Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixes issues with CheckSkuAvailability operation
1. Changes type of skuName property from Sku to SkuName.
2. Marks some fields as required.
  • Loading branch information
felixwa committed May 12, 2017
commit 191e4d15ab8c8a98942742fdcb3d1fab5c77e020
56 changes: 34 additions & 22 deletions arm-cognitiveservices/2017-04-18/swagger/cognitiveservices.json
Original file line number Diff line number Diff line change
Expand Up @@ -665,25 +665,8 @@
"Sku": {
"properties": {
"name": {
"type": "string",
"description": "Gets or sets the sku name. Required for account creation, optional for update.",
"enum": [
"F0",
"P0",
"P1",
"P2",
"S0",
"S1",
"S2",
"S3",
"S4",
"S5",
"S6"
],
"x-ms-enum": {
"name": "SkuName",
"modelAsString": true
}
"$ref": "#/definitions/SkuName",
"description": "Gets or sets the sku name. Required for account creation, optional for update."
},
"tier": {
"readOnly": true,
Expand All @@ -705,6 +688,27 @@
],
"description": "The SKU of the cognitive services account."
},
"SkuName": {
"type": "string",
"description": "The name of SKU.",
"enum": [
"F0",
"P0",
"P1",
"P2",
"S0",
"S1",
"S2",
"S3",
"S4",
"S5",
"S6"
],
"x-ms-enum": {
"name": "SkuName",
"modelAsString": true
}
},
"CognitiveServicesAccount": {
"description": "Cognitive Services Account is an Azure resource representing the provisioned account, its type, location and SKU.",
"type": "object",
Expand Down Expand Up @@ -825,6 +829,9 @@
}
}
},
"required": [
"keyName"
],
"description": "Regenerate key parameters."
},
"CognitiveServicesAccountEnumerateSkusResult": {
Expand Down Expand Up @@ -946,7 +953,7 @@
"skus": {
"type": "array",
"items": {
"$ref": "#/definitions/Sku"
"$ref": "#/definitions/SkuName"
},
"description": "The SKU of the resource."
},
Expand All @@ -958,7 +965,12 @@
"type": "string",
"description": "The Type of the resource."
}
}
},
"required": [
"skus",
"kind",
"type"
]
},
"CheckSkuAvailabilityResultList": {
"description": "Check SKU availability result list.",
Expand All @@ -984,7 +996,7 @@
"description": "The Type of the resource."
},
"skuName": {
"$ref": "#/definitions/Sku",
"$ref": "#/definitions/SkuName",
"description": "The SKU of Cognitive Services account."
},
"skuAvailable": {
Expand Down