forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[arm-batch] Add CheckNameAvailability operation to 2017-05-01 Swagger…
… (management plane) for Azure Batch (Azure#1432) * Add Azure Batch Resource Manager CheckNameAvailability operation * Adding 204 response to BatchAccountDelete example
- Loading branch information
1 parent
8da6f40
commit 1183158
Showing
4 changed files
with
139 additions
and
2 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {} | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...ager/Microsoft.Batch/2017-05-01/examples/LocationCheckNameAvailability_AlreadyExists.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,20 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2017-05-01", | ||
"subscriptionId": "subid", | ||
"locationName": "japaneast", | ||
"parameters": { | ||
"name": "existingaccountname", | ||
"type": "Microsoft.Batch/batchAccounts" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nameAvailable": false, | ||
"reason": "AlreadyExists", | ||
"message": "An account named 'existingaccountname' is already in use." | ||
} | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...-manager/Microsoft.Batch/2017-05-01/examples/LocationCheckNameAvailability_Available.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": "2017-05-01", | ||
"subscriptionId": "subid", | ||
"locationName": "japaneast", | ||
"parameters": { | ||
"name": "newaccountname", | ||
"type": "Microsoft.Batch/batchAccounts" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nameAvailable": true | ||
} | ||
} | ||
} | ||
} |