-
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.
[Hub Generated] Review request for Microsoft.Communication to add ver…
…sion preview/2020-08-20-preview (#11308) * Add checkNameAvailability endpoint * Add checkNameAvailability examples * Whitespace in examples * Spelling Co-authored-by: Ben Viglietta <[email protected]>
- Loading branch information
1 parent
618cbfe
commit fae84d4
Showing
3 changed files
with
129 additions
and
1 deletion.
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
19 changes: 19 additions & 0 deletions
19
...oft.Communication/preview/2020-08-20-preview/examples/checkNameAvailabilityAvailable.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": "12345", | ||
"api-version": "2020-08-20-preview", | ||
"nameAvailabilityParameters": { | ||
"type": "Microsoft.Communication/CommunicationServices", | ||
"name": "MyCommunicationService" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nameAvailable": true, | ||
"reason": "NameAvailable", | ||
"message": "Requested name is available for the requested type" | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...t.Communication/preview/2020-08-20-preview/examples/checkNameAvailabilityUnavailable.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": "12345", | ||
"api-version": "2020-08-20-preview", | ||
"nameAvailabilityParameters": { | ||
"type": "Microsoft.Communication/CommunicationServices", | ||
"name": "MyCommunicationService" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nameAvailable": false, | ||
"reason": "AlreadyExists", | ||
"message": "Requested name is unavailable for the requested type" | ||
} | ||
} | ||
} | ||
} |