-
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.
Added Swagger details for CheckNameAvailability API (#5496)
* Added swagger for CheckNameAvailability API * Adding ResourceGroupName to Route for CheckNameAvailability API and renaming ResourceNameAvailabilityInput to ResourceNameAvailabilityParameters * Changed operationId for checkNameAvailability from CheckResourceNameAvailability_Post to RecoveryServices_CheckNameAvailability * Renaming ResourceNameAvailabilityResponse to ResourceNameAvailabilityResult * Renaming ResourceNameAvailabilityResult to CheckNameAvailabilityResult and changing GCed to GC'ed in swagger API summary * Renaming ResourceNameAvailabilityParameters to CheckNameAvailabilityParameters
- Loading branch information
Showing
4 changed files
with
155 additions
and
4 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
...icrosoft.RecoveryServices/stable/2016-06-01/examples/CheckNameAvailability_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,19 @@ | ||
{ | ||
"parameters":{ | ||
"subscriptionId":"77777777-b0c6-47a2-b37c-d8e65a629c18", | ||
"resourceGroupName":"resGroupFoo", | ||
"api-version": "2016-06-01", | ||
"location":"westus", | ||
"input":{ | ||
"name":"swaggerExample", | ||
"type": "Microsoft.RecoveryServices/Vaults" | ||
} | ||
}, | ||
"responses":{ | ||
"200":{ | ||
"body":{ | ||
"nameAvailable": true | ||
} | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...osoft.RecoveryServices/stable/2016-06-01/examples/CheckNameAvailability_NotAvailable.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":{ | ||
"subscriptionId":"77777777-b0c6-47a2-b37c-d8e65a629c18", | ||
"resourceGroupName":"resGroupBar", | ||
"api-version": "2016-06-01", | ||
"location":"westus", | ||
"input":{ | ||
"name":"swaggerExample2", | ||
"type": "Microsoft.RecoveryServices/Vaults" | ||
} | ||
}, | ||
"responses":{ | ||
"200":{ | ||
"body":{ | ||
"nameAvailable": false, | ||
"reason": "AlreadyExists", | ||
"message": "Resource already exists with the same name." | ||
} | ||
} | ||
} | ||
} |
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