-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mipatera 2022 06 01 batch management (#18940)
* Baseline commit * Swagger file and readme Swapped swaggers * Examples * Ran prettier Prettier * Added identifiers minor Missing identifier * Prettier * removing 200 response * Removed 200 from example Co-authored-by: wiboris <wiboris@microsoft.com>
- Loading branch information
1 parent
bdbaa45
commit 12d012d
Showing
71 changed files
with
11,048 additions
and
1 deletion.
There are no files selected for viewing
6,296 changes: 6,296 additions & 0 deletions
6,296
specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/BatchManagement.json
Large diffs are not rendered by default.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
.../batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationCreate.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,32 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "sampleacct", | ||
"resourceGroupName": "default-azurebatch-japaneast", | ||
"api-version": "2022-06-01", | ||
"subscriptionId": "subid", | ||
"applicationName": "app1", | ||
"parameters": { | ||
"properties": { | ||
"allowUpdates": false, | ||
"displayName": "myAppName" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": { | ||
"ETag": "W/\"0x8D64F8EBB3DC411\"" | ||
}, | ||
"body": { | ||
"type": "Microsoft.Batch/batchAccounts/applications", | ||
"id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/applications/app1", | ||
"name": "app1", | ||
"etag": "W/\"0x8D64F8EBB3DC411\"", | ||
"properties": { | ||
"allowUpdates": false, | ||
"displayName": "myAppName" | ||
} | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
.../batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationDelete.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,13 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "sampleacct", | ||
"resourceGroupName": "default-azurebatch-japaneast", | ||
"api-version": "2022-06-01", | ||
"subscriptionId": "subid", | ||
"applicationName": "app1" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...ion/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationGet.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,26 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "sampleacct", | ||
"resourceGroupName": "default-azurebatch-japaneast", | ||
"api-version": "2022-06-01", | ||
"subscriptionId": "subid", | ||
"applicationName": "app1" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": { | ||
"ETag": "W/\"0x8D64F915BDF7F00\"" | ||
}, | ||
"body": { | ||
"type": "Microsoft.Batch/batchAccounts/applications", | ||
"id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/applications/app1", | ||
"name": "app1", | ||
"etag": "W/\"0x8D64F915BDF7F00\"", | ||
"properties": { | ||
"allowUpdates": true, | ||
"displayName": "Sample Application" | ||
} | ||
} | ||
} | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
...on/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationList.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,37 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "sampleacct", | ||
"resourceGroupName": "default-azurebatch-japaneast", | ||
"api-version": "2022-06-01", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"type": "Microsoft.Batch/batchAccounts/applications", | ||
"id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/applications/app1", | ||
"name": "app1", | ||
"etag": "W/\"0x8D64F91A9089879\"", | ||
"properties": { | ||
"allowUpdates": false, | ||
"defaultVersion": "1" | ||
} | ||
}, | ||
{ | ||
"type": "Microsoft.Batch/batchAccounts/applications", | ||
"id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/applications/app2", | ||
"name": "app1", | ||
"etag": "W/\"0x8D64F91A9089879\"", | ||
"properties": { | ||
"allowUpdates": false, | ||
"defaultVersion": "2.0", | ||
"displayName": "myAppName" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...source-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationPackageActivate.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,31 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "sampleacct", | ||
"resourceGroupName": "default-azurebatch-japaneast", | ||
"api-version": "2022-06-01", | ||
"subscriptionId": "subid", | ||
"applicationName": "app1", | ||
"versionName": "1", | ||
"parameters": { | ||
"format": "zip" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": { | ||
"ETag": "W/\"0x8D64FEC83A3B436\"" | ||
}, | ||
"body": { | ||
"type": "Microsoft.Batch/batchAccounts/applications/versions", | ||
"id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/applications/app1/versions/1", | ||
"name": "1", | ||
"etag": "W/\"0x8D64FEC83A3B436\"", | ||
"properties": { | ||
"state": "Active", | ||
"format": "zip", | ||
"lastActivationTime": "2017-06-27T18:48:09.9330991Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationPackageCreate.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,28 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "sampleacct", | ||
"resourceGroupName": "default-azurebatch-japaneast", | ||
"api-version": "2022-06-01", | ||
"subscriptionId": "subid", | ||
"applicationName": "app1", | ||
"versionName": "1" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": { | ||
"ETag": "W/\"0x8D64FEC83A3B436\"" | ||
}, | ||
"body": { | ||
"type": "Microsoft.Batch/batchAccounts/applications/versions", | ||
"id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/applications/app1/versions/1", | ||
"name": "1", | ||
"etag": "W/\"0x8D64FEC83A3B436\"", | ||
"properties": { | ||
"storageUrl": "http://mystorage1.blob.core.windows.net/myapp?mysas", | ||
"storageUrlExpiry": "2017-06-27T18:48:09.9330991Z", | ||
"state": "Pending" | ||
} | ||
} | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationPackageDelete.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,14 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "sampleacct", | ||
"resourceGroupName": "default-azurebatch-japaneast", | ||
"api-version": "2022-06-01", | ||
"subscriptionId": "subid", | ||
"applicationName": "app1", | ||
"versionName": "1" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...ch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationPackageGet.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,28 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "sampleacct", | ||
"resourceGroupName": "default-azurebatch-japaneast", | ||
"api-version": "2022-06-01", | ||
"subscriptionId": "subid", | ||
"applicationName": "app1", | ||
"versionName": "1" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": { | ||
"ETag": "W/\"0x8D64FEC83A3B436\"" | ||
}, | ||
"body": { | ||
"type": "Microsoft.Batch/batchAccounts/applications/versions", | ||
"id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/applications/app1/versions/1", | ||
"name": "1", | ||
"etag": "W/\"0x8D64FEC83A3B436\"", | ||
"properties": { | ||
"state": "Active", | ||
"format": "zip", | ||
"lastActivationTime": "2017-06-27T18:48:09.9330991Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
...h/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationPackageList.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,37 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "sampleacct", | ||
"resourceGroupName": "default-azurebatch-japaneast", | ||
"api-version": "2022-06-01", | ||
"subscriptionId": "subid", | ||
"applicationName": "app1" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"type": "Microsoft.Batch/batchAccounts/applications/versions", | ||
"id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/applications/app1/versions/1.0", | ||
"name": "1.0", | ||
"etag": "W/\"0x8D64FF0B9F47F67\"", | ||
"properties": { | ||
"state": "Pending" | ||
} | ||
}, | ||
{ | ||
"type": "Microsoft.Batch/batchAccounts/applications/versions", | ||
"id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/applications/app1/versions/2.0", | ||
"name": "2.0", | ||
"etag": "W/\"0x8D64FF0B9F47F67\"", | ||
"properties": { | ||
"state": "Active", | ||
"format": "zip", | ||
"lastActivationTime": "2017-06-27T18:48:09.9330991Z" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
.../batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationUpdate.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,34 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "sampleacct", | ||
"resourceGroupName": "default-azurebatch-japaneast", | ||
"api-version": "2022-06-01", | ||
"subscriptionId": "subid", | ||
"applicationName": "app1", | ||
"parameters": { | ||
"properties": { | ||
"allowUpdates": true, | ||
"displayName": "myAppName", | ||
"defaultVersion": "2" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": { | ||
"ETag": "W/\"0x8D64F915BDF7F00\"" | ||
}, | ||
"body": { | ||
"type": "Microsoft.Batch/batchAccounts/applications", | ||
"id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/applications/app1", | ||
"name": "app1", | ||
"etag": "W/\"0x8D64F915BDF7F00\"", | ||
"properties": { | ||
"allowUpdates": true, | ||
"displayName": "myAppName", | ||
"defaultVersion": "2" | ||
} | ||
} | ||
} | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
.../resource-manager/Microsoft.Batch/stable/2022-06-01/examples/BatchAccountCreate_BYOS.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": { | ||
"accountName": "sampleacct", | ||
"resourceGroupName": "default-azurebatch-japaneast", | ||
"api-version": "2022-06-01", | ||
"subscriptionId": "subid", | ||
"parameters": { | ||
"location": "japaneast", | ||
"properties": { | ||
"autoStorage": { | ||
"storageAccountId": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" | ||
}, | ||
"poolAllocationMode": "UserSubscription", | ||
"keyVaultReference": { | ||
"id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample", | ||
"url": "http://sample.vault.azure.net/" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": {}, | ||
"200": { | ||
"body": { | ||
"name": "sampleacct", | ||
"location": "japaneast", | ||
"properties": { | ||
"accountEndpoint": "sampleacct.japaneast.batch.azure.com", | ||
"provisioningState": "Succeeded", | ||
"poolAllocationMode": "UserSubscription", | ||
"dedicatedCoreQuota": 20, | ||
"lowPriorityCoreQuota": 20, | ||
"poolQuota": 20, | ||
"activeJobAndJobScheduleQuota": 20, | ||
"autoStorage": { | ||
"storageAccountId": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", | ||
"lastKeySync": "2016-03-10T23:48:38.9878479Z" | ||
}, | ||
"keyVaultReference": { | ||
"id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample", | ||
"url": "http://sample.vault.azure.net/" | ||
}, | ||
"publicNetworkAccess": "Enabled" | ||
}, | ||
"identity": { | ||
"type": "None" | ||
}, | ||
"id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct", | ||
"type": "Microsoft.Batch/batchAccounts" | ||
} | ||
} | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
...source-manager/Microsoft.Batch/stable/2022-06-01/examples/BatchAccountCreate_Default.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,44 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "sampleacct", | ||
"resourceGroupName": "default-azurebatch-japaneast", | ||
"api-version": "2022-06-01", | ||
"subscriptionId": "subid", | ||
"parameters": { | ||
"location": "japaneast", | ||
"properties": { | ||
"autoStorage": { | ||
"storageAccountId": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": {}, | ||
"200": { | ||
"body": { | ||
"name": "sampleacct", | ||
"location": "japaneast", | ||
"properties": { | ||
"accountEndpoint": "sampleacct.japaneast.batch.azure.com", | ||
"provisioningState": "Succeeded", | ||
"poolAllocationMode": "BatchService", | ||
"dedicatedCoreQuota": 20, | ||
"lowPriorityCoreQuota": 20, | ||
"poolQuota": 20, | ||
"activeJobAndJobScheduleQuota": 20, | ||
"autoStorage": { | ||
"storageAccountId": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", | ||
"lastKeySync": "2016-03-10T23:48:38.9878479Z" | ||
}, | ||
"publicNetworkAccess": "Enabled" | ||
}, | ||
"identity": { | ||
"type": "None" | ||
}, | ||
"id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct", | ||
"type": "Microsoft.Batch/batchAccounts" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.