-
Notifications
You must be signed in to change notification settings - Fork 5.6k
[Hub Generated] Review request for Microsoft.CognitiveServices to add version 2017-04-18 #5355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
DavidLiCIG
wants to merge
22
commits into
Azure:master
from
DavidLiCIG:dev-cognitiveservices-Microsoft.CognitiveServices-2017-04-18
Closed
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
5e734a0
Adding data plane spec starting with Face
DavidLiCIG e8f1ee2
Move Spec to right folder
DavidLiCIG c56cc0e
Fixing validation issues.
DavidLiCIG e46c1ff
Fixing issues and adding a readme.md
DavidLiCIG 53aff4a
Fixing examples by removing decimals.
DavidLiCIG c529bbb
Removing another decimal value
DavidLiCIG 93cb8ef
Update readme.md
fearthecowboy 95cac3a
Updating spec based on comments.
DavidLiCIG 3de638b
Removing .gitignore.
DavidLiCIG 16d9650
Changing namespace to include category.
DavidLiCIG b0bd08e
Adding ComputerVision jsopn
DavidLiCIG d10d86a
Merge from remote
DavidLiCIG dcbcfc9
Merge from main
DavidLiCIG 22f9aa0
Merge branch 'master' of e:\code\azure-rest-api-specs into current
DavidLiCIG 69c4aeb
Add checkdomain availability
DavidLiCIG 676984a
Adding missing properties
DavidLiCIG 1fad59a
Fix example error
DavidLiCIG f1c5785
Merge branch 'davl/AddCheckDomainAvailability' into dev-cognitiveserv…
DavidLiCIG 21797ee
Changing operation id based on linter feedback
DavidLiCIG c69a621
Update operation Id based on linter requirements
DavidLiCIG 30149a9
REmoved redundant cv json
DavidLiCIG 14f19b5
Change account to locations
DavidLiCIG File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -675,6 +675,49 @@ | |
| } | ||
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/checkDomainAvailability": { | ||
| "post": { | ||
| "tags": [ | ||
| "CognitiveServicesAccounts" | ||
| ], | ||
| "operationId": "Locations_CheckDomainAvailabilityPost", | ||
| "description": "Check available SKUs.", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is the description correct? I thought this API is to check availability of domain name. |
||
| "x-ms-examples": { | ||
| "Check Domain Availability": { | ||
| "$ref": "./examples/CheckDomainAvailability.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/subscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/apiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/locationParameter" | ||
| }, | ||
| { | ||
| "name": "parameters", | ||
| "in": "body", | ||
| "required": true, | ||
| "x-ms-client-flatten": true, | ||
| "schema": { | ||
| "$ref": "#/definitions/CheckDomainAvailabilityParameter" | ||
| }, | ||
| "description": "Check Domain Availability POST body." | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you could say "Check Domain Availability parameter." |
||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK.", | ||
| "schema": { | ||
| "$ref": "#/definitions/CheckDomainAvailabilityResult" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "definitions": { | ||
|
|
@@ -1130,6 +1173,23 @@ | |
| "type" | ||
| ] | ||
| }, | ||
| "CheckDomainAvailabilityParameter": { | ||
| "description": "Check Domain availability parameter.", | ||
| "properties": { | ||
| "subdomainName": { | ||
| "type": "string", | ||
| "description": "The subdomain name to use." | ||
| }, | ||
| "type": { | ||
| "type": "string", | ||
| "description": "The Type of the resource." | ||
| } | ||
| }, | ||
| "required": [ | ||
| "subdomainName", | ||
| "type" | ||
| ] | ||
| }, | ||
| "CheckSkuAvailabilityResultList": { | ||
| "description": "Check SKU availability result list.", | ||
| "properties": { | ||
|
|
@@ -1142,6 +1202,27 @@ | |
| } | ||
| } | ||
| }, | ||
| "CheckDomainAvailabilityResult": { | ||
| "description": "Check Domain availability result.", | ||
| "properties": { | ||
| "isSubdomainAvailable": { | ||
| "type": "boolean", | ||
| "description": "Indicates the given SKU is available or not." | ||
| }, | ||
| "reason": { | ||
| "type": "string", | ||
| "description": "Reason why the SKU is not available." | ||
| }, | ||
| "subdomainName": { | ||
| "type": "string", | ||
| "description": "The subdomain name to use." | ||
| }, | ||
| "type": { | ||
| "type": "string", | ||
| "description": "The Type of the resource." | ||
| } | ||
| } | ||
| }, | ||
| "CheckSkuAvailabilityResult": { | ||
| "description": "Check SKU availability result.", | ||
| "properties": { | ||
|
|
||
21 changes: 21 additions & 0 deletions
21
...nager/Microsoft.CognitiveServices/stable/2017-04-18/examples/CheckDomainAvailability.json
This file contains hidden or 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": "2017-04-18", | ||
| "subscriptionId": "f9b96b36-1f5e-4021-8959-51527e26e6d3", | ||
| "location": "westus", | ||
| "parameters": { | ||
| "subdomainName": "contosodemoapp1", | ||
| "type": "Microsoft.CognitiveServices/accounts" | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "isSubdomainAvailable": false, | ||
| "reason": "Sub domain name 'contosodemoapp1' is not valid", | ||
| "subdomainName": "contosodemoapp1", | ||
| "type": "Microsoft.CognitiveServices/accounts" | ||
| } | ||
| } | ||
| } | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be good if we can rename operation id to
Locations_CheckDomainAvailability, no need to include underneath HTTP verb in the method name