-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update typescript.md for sapvirtualinstance (#27819) * Add job related API * empty line * workload * lint * lint * part * lint * lint * lint * example * change env model * remove addon * prettier * Refine * lint * Add snapshot * add test * fix example * comments * Make job execution resource * remove resource --------- Co-authored-by: ZiWei Chen <[email protected]>
- Loading branch information
1 parent
c4842d8
commit 3bf41e8
Showing
11 changed files
with
1,252 additions
and
2 deletions.
There are no files selected for viewing
808 changes: 806 additions & 2 deletions
808
...atform/resource-manager/Microsoft.AppPlatform/preview/2024-05-01-preview/appplatform.json
Large diffs are not rendered by default.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
...anager/Microsoft.AppPlatform/preview/2024-05-01-preview/examples/JobExecution_Cancel.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-05-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "myResourceGroup", | ||
"serviceName": "myservice", | ||
"jobName": "test-job", | ||
"jobExecutionName": "test-execution" | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/00000000-0000-0000-0000-000000000000?api-version=2024-05-01-preview", | ||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000/Spring/default?api-version=2024-05-01-preview" | ||
} | ||
} | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
...e-manager/Microsoft.AppPlatform/preview/2024-05-01-preview/examples/JobExecution_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-05-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "myResourceGroup", | ||
"serviceName": "myservice", | ||
"jobName": "test-job", | ||
"jobExecutionName": "test-job-execution" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "test-job-execution", | ||
"properties": { | ||
"resourceRequests": { | ||
"cpu": "1", | ||
"memory": "2Gi" | ||
}, | ||
"template": { | ||
"args": [ | ||
"arg1" | ||
], | ||
"environmentVariables": [ | ||
{ | ||
"name": "key1", | ||
"value": "value1" | ||
}, | ||
{ | ||
"name": "env2", | ||
"value": "value2" | ||
}, | ||
{ | ||
"name": "secretKey1" | ||
} | ||
] | ||
} | ||
}, | ||
"jobSnapshot": { | ||
"triggerConfig": { | ||
"triggerType": "Manual", | ||
"timeoutInSeconds": 3600 | ||
} | ||
}, | ||
"startTime": "2024-03-01T05:11:58+00:00", | ||
"endTime": "2024-03-01T05:13:10+00:00", | ||
"status": "Completed" | ||
} | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...icrosoft.AppPlatform/preview/2024-05-01-preview/examples/JobExecution_ListEnvSecrets.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-05-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "myResourceGroup", | ||
"serviceName": "myservice", | ||
"jobName": "test-job", | ||
"jobExecutionName": "test-execution" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "secretKey1", | ||
"value": "secretValue1" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
...manager/Microsoft.AppPlatform/preview/2024-05-01-preview/examples/JobExecutions_List.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-05-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "myResourceGroup", | ||
"serviceName": "myservice", | ||
"jobName": "test-job" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "test-job-execution", | ||
"properties": { | ||
"resourceRequests": { | ||
"cpu": "1", | ||
"memory": "2Gi" | ||
}, | ||
"template": { | ||
"args": [ | ||
"arg1" | ||
], | ||
"environmentVariables": [ | ||
{ | ||
"name": "key1", | ||
"value": "value1" | ||
}, | ||
{ | ||
"name": "env2", | ||
"value": "value2" | ||
}, | ||
{ | ||
"name": "secretKey1" | ||
} | ||
] | ||
} | ||
}, | ||
"jobSnapshot": { | ||
"triggerConfig": { | ||
"triggerType": "Manual", | ||
"timeoutInSeconds": 3600 | ||
} | ||
}, | ||
"startTime": "2024-03-01T05:11:58+00:00", | ||
"endTime": "2024-03-01T05:13:10+00:00", | ||
"status": "Completed" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
130 changes: 130 additions & 0 deletions
130
...manager/Microsoft.AppPlatform/preview/2024-05-01-preview/examples/Job_CreateOrUpdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-05-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "myResourceGroup", | ||
"serviceName": "myservice", | ||
"jobName": "test-job", | ||
"jobResource": { | ||
"properties": { | ||
"triggerConfig": { | ||
"triggerType": "Manual" | ||
}, | ||
"source": { | ||
"type": "BuildResult", | ||
"buildResultId": "<default>" | ||
}, | ||
"template": { | ||
"environmentVariables": [ | ||
{ | ||
"name": "key1", | ||
"value": "value1" | ||
}, | ||
{ | ||
"name": "env2", | ||
"value": "value2" | ||
}, | ||
{ | ||
"name": "secretKey1", | ||
"secretValue": "secretValue1" | ||
} | ||
], | ||
"args": [ | ||
"arg1", | ||
"arg2" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"triggerConfig": { | ||
"triggerType": "Manual" | ||
}, | ||
"source": { | ||
"type": "BuildResult", | ||
"buildResultId": "<default>" | ||
}, | ||
"template": { | ||
"environmentVariables": [ | ||
{ | ||
"name": "key1", | ||
"value": "value1" | ||
}, | ||
{ | ||
"name": "env2", | ||
"value": "value2" | ||
}, | ||
{ | ||
"name": "secretKey1" | ||
} | ||
], | ||
"args": [ | ||
"arg1", | ||
"arg2" | ||
] | ||
} | ||
}, | ||
"systemData": { | ||
"createdBy": "sample-user", | ||
"createdByType": "User", | ||
"createdAt": "2021-08-11T03:16:03.944Z", | ||
"lastModifiedBy": "sample-user", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2021-08-11T03:17:03.944Z" | ||
}, | ||
"type": "Microsoft.AppPlatform/Spring/jobs", | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/jobs/test-job", | ||
"name": "test-job" | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"triggerConfig": { | ||
"triggerType": "Manual" | ||
}, | ||
"source": { | ||
"type": "BuildResult", | ||
"buildResultId": "<default>" | ||
}, | ||
"template": { | ||
"environmentVariables": [ | ||
{ | ||
"name": "key1", | ||
"value": "value1" | ||
}, | ||
{ | ||
"name": "env2", | ||
"value": "value2" | ||
}, | ||
{ | ||
"name": "secretKey1" | ||
} | ||
], | ||
"args": [ | ||
"arg1", | ||
"arg2" | ||
] | ||
} | ||
}, | ||
"systemData": { | ||
"createdBy": "sample-user", | ||
"createdByType": "User", | ||
"createdAt": "2021-08-11T03:16:03.944Z", | ||
"lastModifiedBy": "sample-user", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2021-08-11T03:17:03.944Z" | ||
}, | ||
"type": "Microsoft.AppPlatform/Spring/jobs", | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/jobs/test-job", | ||
"name": "test-job" | ||
} | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...esource-manager/Microsoft.AppPlatform/preview/2024-05-01-preview/examples/Job_Delete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-05-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "myResourceGroup", | ||
"serviceName": "myservice", | ||
"jobName": "test-job" | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/00000000-0000-0000-0000-000000000000?api-version=2024-05-01-preview", | ||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000/Spring/default?api-version=2024-05-01-preview" | ||
} | ||
}, | ||
"204": {} | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
...m/resource-manager/Microsoft.AppPlatform/preview/2024-05-01-preview/examples/Job_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-05-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "myResourceGroup", | ||
"serviceName": "myservice", | ||
"jobName": "test-job" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"triggerConfig": { | ||
"triggerType": "Manual" | ||
}, | ||
"source": { | ||
"type": "BuildResult", | ||
"buildResultId": "<default>" | ||
}, | ||
"template": { | ||
"environmentVariables": [ | ||
{ | ||
"name": "key1", | ||
"value": "value1" | ||
}, | ||
{ | ||
"name": "env2", | ||
"value": "value2" | ||
}, | ||
{ | ||
"name": "secretKey1" | ||
} | ||
], | ||
"args": [ | ||
"arg1", | ||
"arg2" | ||
] | ||
} | ||
}, | ||
"systemData": { | ||
"createdBy": "sample-user", | ||
"createdByType": "User", | ||
"createdAt": "2021-08-11T03:16:03.944Z", | ||
"lastModifiedBy": "sample-user", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2021-08-11T03:17:03.944Z" | ||
}, | ||
"type": "Microsoft.AppPlatform/Spring/jobs", | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/jobs/test-job", | ||
"name": "test-job" | ||
} | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...manager/Microsoft.AppPlatform/preview/2024-05-01-preview/examples/Job_ListEnvSecrets.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-05-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "myResourceGroup", | ||
"serviceName": "myservice", | ||
"jobName": "test-job" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "secretKey1", | ||
"value": "secretValue1" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...resource-manager/Microsoft.AppPlatform/preview/2024-05-01-preview/examples/Job_Start.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-05-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "myResourceGroup", | ||
"serviceName": "myservice", | ||
"jobName": "myjob" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "job-execution-name" | ||
} | ||
}, | ||
"202": { | ||
"headers": { | ||
"location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.AppPlatform/...pathToOperationResult..." | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.