forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Cognitive Services] RP version 2021-04-30 (Azure#14222)
* Base Change * checkin samples and readme * Swagger Change * fix pretty * adress lint issues * fix prettier * Add deletedAccount, few other fixes * Change apiProperties to raw dictionary. * remove unnecessary files * mark PrivateEndpointConnections as readonly in AccountProperties * Add "x-ms-long-running-operation" * bring ApiProperties back * fix a mistake in URL * fix: mark endpoints as read-only * fix build errors * Adjust swagger for issues found in generated SDK.
- Loading branch information
Showing
24 changed files
with
5,180 additions
and
1 deletion.
There are no files selected for viewing
2,166 changes: 2,166 additions & 0 deletions
2,166
...ces/resource-manager/Microsoft.CognitiveServices/stable/2021-04-30/cognitiveservices.json
Large diffs are not rendered by default.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
...nager/Microsoft.CognitiveServices/stable/2021-04-30/examples/CheckDomainAvailability.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": { | ||
"api-version": "2021-04-30", | ||
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", | ||
"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" | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...-manager/Microsoft.CognitiveServices/stable/2021-04-30/examples/CheckSkuAvailability.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,30 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-04-30", | ||
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", | ||
"location": "westus", | ||
"parameters": { | ||
"skus": [ | ||
"S0" | ||
], | ||
"kind": "Face", | ||
"type": "Microsoft.CognitiveServices/accounts" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"kind": "Face", | ||
"type": "Microsoft.CognitiveServices/accounts", | ||
"skuName": "S0", | ||
"skuAvailable": true, | ||
"reason": null, | ||
"message": null | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
140 changes: 140 additions & 0 deletions
140
...esource-manager/Microsoft.CognitiveServices/stable/2021-04-30/examples/CreateAccount.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,140 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-04-30", | ||
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", | ||
"resourceGroupName": "myResourceGroup", | ||
"accountName": "testCreate1", | ||
"account": { | ||
"location": "West US", | ||
"kind": "Emotion", | ||
"sku": { | ||
"name": "S0" | ||
}, | ||
"properties": { | ||
"encryption": { | ||
"keyVaultProperties": { | ||
"keyName": "KeyName", | ||
"keyVersion": "891CF236-D241-4738-9462-D506AF493DFA", | ||
"keyVaultUri": "https://pltfrmscrts-use-pc-dev.vault.azure.net/" | ||
}, | ||
"keySource": "Microsoft.KeyVault" | ||
}, | ||
"userOwnedStorage": [ | ||
{ | ||
"resourceId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount" | ||
} | ||
] | ||
}, | ||
"identity": { | ||
"type": "SystemAssigned" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.CognitiveServices/accounts/testCreate1", | ||
"name": "testCreate1", | ||
"type": "Microsoft.CognitiveServices/accounts", | ||
"location": "West US", | ||
"sku": { | ||
"name": "S0" | ||
}, | ||
"kind": "Emotion", | ||
"etag": "W/\"datetime'2017-04-10T08%3A00%3A05.445595Z'\"", | ||
"properties": { | ||
"endpoint": "https://westus.api.cognitive.microsoft.com/emotion/v1.0", | ||
"provisioningState": "Succeeded", | ||
"encryption": { | ||
"keySource": "Microsoft.KeyVault", | ||
"keyVaultProperties": { | ||
"keyName": "FakeKeyName", | ||
"keyVersion": "891CF236-D241-4738-9462-D506AF493DFA", | ||
"keyVaultUri": "https://pltfrmscrts-use-pc-dev.vault.azure.net/" | ||
} | ||
}, | ||
"userOwnedStorage": [ | ||
{ | ||
"resourceId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount" | ||
} | ||
] | ||
}, | ||
"identity": { | ||
"principalId": "b5cf119e-a5c2-42c7-802f-592e0efb169f", | ||
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", | ||
"type": "SystemAssigned" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.CognitiveServices/accounts/testCreate1", | ||
"name": "testCreate1", | ||
"type": "Microsoft.CognitiveServices/accounts", | ||
"location": "West US", | ||
"sku": { | ||
"name": "S0" | ||
}, | ||
"kind": "Emotion", | ||
"etag": "W/\"datetime'2017-04-10T07%3A57%3A48.4582781Z'\"", | ||
"properties": { | ||
"endpoint": "https://westus.api.cognitive.microsoft.com/emotion/v1.0", | ||
"provisioningState": "Succeeded", | ||
"encryption": { | ||
"keySource": "Microsoft.KeyVault", | ||
"keyVaultProperties": { | ||
"keyName": "FakeKeyName", | ||
"keyVersion": "891CF236-D241-4738-9462-D506AF493DFA", | ||
"keyVaultUri": "https://pltfrmscrts-use-pc-dev.vault.azure.net/" | ||
} | ||
}, | ||
"userOwnedStorage": [ | ||
{ | ||
"resourceId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount" | ||
} | ||
] | ||
}, | ||
"identity": { | ||
"principalId": "b5cf119e-a5c2-42c7-802f-592e0efb169f", | ||
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", | ||
"type": "SystemAssigned" | ||
} | ||
} | ||
}, | ||
"202": { | ||
"body": { | ||
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.CognitiveServices/accounts/testCreate1", | ||
"name": "testCreate1", | ||
"type": "Microsoft.CognitiveServices/accounts", | ||
"location": "West US", | ||
"sku": { | ||
"name": "S0" | ||
}, | ||
"kind": "Emotion", | ||
"etag": "W/\"datetime'2017-04-10T07%3A57%3A48.4582781Z'\"", | ||
"properties": { | ||
"endpoint": "https://westus.api.cognitive.microsoft.com/emotion/v1.0", | ||
"provisioningState": "Succeeded", | ||
"encryption": { | ||
"keySource": "Microsoft.KeyVault", | ||
"keyVaultProperties": { | ||
"keyName": "FakeKeyName", | ||
"keyVersion": "891CF236-D241-4738-9462-D506AF493DFA", | ||
"keyVaultUri": "https://pltfrmscrts-use-pc-dev.vault.azure.net/" | ||
} | ||
}, | ||
"userOwnedStorage": [ | ||
{ | ||
"resourceId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount" | ||
} | ||
] | ||
}, | ||
"identity": { | ||
"principalId": "b5cf119e-a5c2-42c7-802f-592e0efb169f", | ||
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", | ||
"type": "SystemAssigned" | ||
} | ||
} | ||
} | ||
} | ||
} |
87 changes: 87 additions & 0 deletions
87
...urce-manager/Microsoft.CognitiveServices/stable/2021-04-30/examples/CreateAccountMin.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,87 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-04-30", | ||
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", | ||
"resourceGroupName": "myResourceGroup", | ||
"accountName": "testCreate1", | ||
"account": { | ||
"location": "West US", | ||
"kind": "CognitiveServices", | ||
"sku": { | ||
"name": "S0" | ||
}, | ||
"properties": {}, | ||
"identity": { | ||
"type": "SystemAssigned" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.CognitiveServices/accounts/testCreate1", | ||
"name": "testCreate1", | ||
"type": "Microsoft.CognitiveServices/accounts", | ||
"location": "West US", | ||
"sku": { | ||
"name": "S0" | ||
}, | ||
"kind": "Emotion", | ||
"etag": "W/\"datetime'2017-04-10T08%3A00%3A05.445595Z'\"", | ||
"properties": { | ||
"endpoint": "https://westus.api.cognitive.microsoft.com/emotion/v1.0", | ||
"provisioningState": "Succeeded" | ||
}, | ||
"identity": { | ||
"principalId": "b5cf119e-a5c2-42c7-802f-592e0efb169f", | ||
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", | ||
"type": "SystemAssigned" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.CognitiveServices/accounts/testCreate1", | ||
"name": "testCreate1", | ||
"type": "Microsoft.CognitiveServices/accounts", | ||
"location": "West US", | ||
"sku": { | ||
"name": "S0" | ||
}, | ||
"kind": "Emotion", | ||
"etag": "W/\"datetime'2017-04-10T07%3A57%3A48.4582781Z'\"", | ||
"properties": { | ||
"endpoint": "https://westus.api.cognitive.microsoft.com/emotion/v1.0", | ||
"provisioningState": "Succeeded" | ||
}, | ||
"identity": { | ||
"principalId": "b5cf119e-a5c2-42c7-802f-592e0efb169f", | ||
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", | ||
"type": "SystemAssigned" | ||
} | ||
} | ||
}, | ||
"202": { | ||
"body": { | ||
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.CognitiveServices/accounts/testCreate1", | ||
"name": "testCreate1", | ||
"type": "Microsoft.CognitiveServices/accounts", | ||
"location": "West US", | ||
"sku": { | ||
"name": "S0" | ||
}, | ||
"kind": "Emotion", | ||
"etag": "W/\"datetime'2017-04-10T07%3A57%3A48.4582781Z'\"", | ||
"properties": { | ||
"endpoint": "https://westus.api.cognitive.microsoft.com/emotion/v1.0", | ||
"provisioningState": "Succeeded" | ||
}, | ||
"identity": { | ||
"principalId": "b5cf119e-a5c2-42c7-802f-592e0efb169f", | ||
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", | ||
"type": "SystemAssigned" | ||
} | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...esource-manager/Microsoft.CognitiveServices/stable/2021-04-30/examples/DeleteAccount.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,13 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-04-30", | ||
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", | ||
"resourceGroupName": "myResourceGroup", | ||
"accountName": "PropTest01" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...crosoft.CognitiveServices/stable/2021-04-30/examples/DeletePrivateEndpointConnection.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,15 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "res6977", | ||
"accountName": "sto2527", | ||
"privateEndpointConnectionName": "{privateEndpointConnectionName}", | ||
"api-version": "2021-04-30", | ||
"monitor": "true" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...s/resource-manager/Microsoft.CognitiveServices/stable/2021-04-30/examples/GetAccount.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,31 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-04-30", | ||
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", | ||
"resourceGroupName": "myResourceGroup", | ||
"accountName": "myAccount" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.CognitiveServices/accounts/myAccount", | ||
"name": "myAccount", | ||
"type": "Microsoft.CognitiveServices/accounts", | ||
"location": "westus", | ||
"sku": { | ||
"name": "F0" | ||
}, | ||
"kind": "Emotion", | ||
"tags": { | ||
"Owner": "felixwa", | ||
"ExpiredDate": "2017/09/01" | ||
}, | ||
"etag": "W/\"datetime'2017-04-10T04%3A42%3A19.7067387Z'\"", | ||
"properties": { | ||
"endpoint": "https://westus.api.cognitive.microsoft.com/emotion/v1.0", | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...rce-manager/Microsoft.CognitiveServices/stable/2021-04-30/examples/GetDeletedAccount.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,32 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-04-30", | ||
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", | ||
"resourceGroupName": "myResourceGroup", | ||
"accountName": "myAccount", | ||
"location": "westus" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.CognitiveServices/locations/westus/resourceGroups/myResourceGroup/deletedAccounts/myAccount", | ||
"name": "myAccount", | ||
"type": "Microsoft.CognitiveServices/accounts", | ||
"location": "westus", | ||
"sku": { | ||
"name": "F0" | ||
}, | ||
"kind": "Emotion", | ||
"tags": { | ||
"Owner": "felixwa", | ||
"ExpiredDate": "2017/09/01" | ||
}, | ||
"etag": "W/\"datetime'2017-04-10T04%3A42%3A19.7067387Z'\"", | ||
"properties": { | ||
"endpoint": "https://westus.api.cognitive.microsoft.com/emotion/v1.0", | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.