Skip to content

Commit 7a6ec0f

Browse files
authored
Cognitive Services 2022-10-01 (#20418)
* Adds base for updating Microsoft.CognitiveServices from version stable/2022-03-01 to version 2022-10-01 * Updates readme * Updates API version in new specs and examples * Cognitive Services 2022-10-01 * Fix sample, remove breaking change
1 parent 7816ad3 commit 7a6ec0f

35 files changed

+6573
-2
lines changed

specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/cognitiveservices.json

Lines changed: 3138 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-10-01",
4+
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
5+
"location": "westus",
6+
"parameters": {
7+
"subdomainName": "contosodemoapp1",
8+
"type": "Microsoft.CognitiveServices/accounts"
9+
}
10+
},
11+
"responses": {
12+
"200": {
13+
"body": {
14+
"isSubdomainAvailable": false,
15+
"reason": "Sub domain name 'contosodemoapp1' is not valid",
16+
"subdomainName": "contosodemoapp1",
17+
"type": "Microsoft.CognitiveServices/accounts"
18+
}
19+
}
20+
}
21+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-10-01",
4+
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
5+
"location": "westus",
6+
"parameters": {
7+
"skus": [
8+
"S0"
9+
],
10+
"kind": "Face",
11+
"type": "Microsoft.CognitiveServices/accounts"
12+
}
13+
},
14+
"responses": {
15+
"200": {
16+
"body": {
17+
"value": [
18+
{
19+
"kind": "Face",
20+
"type": "Microsoft.CognitiveServices/accounts",
21+
"skuName": "S0",
22+
"skuAvailable": true,
23+
"reason": null,
24+
"message": null
25+
}
26+
]
27+
}
28+
}
29+
}
30+
}
Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-10-01",
4+
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
5+
"resourceGroupName": "myResourceGroup",
6+
"accountName": "testCreate1",
7+
"account": {
8+
"location": "West US",
9+
"kind": "Emotion",
10+
"sku": {
11+
"name": "S0"
12+
},
13+
"properties": {
14+
"encryption": {
15+
"keyVaultProperties": {
16+
"keyName": "KeyName",
17+
"keyVersion": "891CF236-D241-4738-9462-D506AF493DFA",
18+
"keyVaultUri": "https://pltfrmscrts-use-pc-dev.vault.azure.net/"
19+
},
20+
"keySource": "Microsoft.KeyVault"
21+
},
22+
"userOwnedStorage": [
23+
{
24+
"resourceId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount"
25+
}
26+
]
27+
},
28+
"identity": {
29+
"type": "SystemAssigned"
30+
}
31+
}
32+
},
33+
"responses": {
34+
"200": {
35+
"body": {
36+
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.CognitiveServices/accounts/testCreate1",
37+
"name": "testCreate1",
38+
"type": "Microsoft.CognitiveServices/accounts",
39+
"location": "West US",
40+
"sku": {
41+
"name": "S0"
42+
},
43+
"kind": "Emotion",
44+
"etag": "W/\"datetime'2017-04-10T08%3A00%3A05.445595Z'\"",
45+
"properties": {
46+
"endpoint": "https://westus.api.cognitive.microsoft.com/emotion/v1.0",
47+
"provisioningState": "Succeeded",
48+
"encryption": {
49+
"keySource": "Microsoft.KeyVault",
50+
"keyVaultProperties": {
51+
"keyName": "FakeKeyName",
52+
"keyVersion": "891CF236-D241-4738-9462-D506AF493DFA",
53+
"keyVaultUri": "https://pltfrmscrts-use-pc-dev.vault.azure.net/"
54+
}
55+
},
56+
"userOwnedStorage": [
57+
{
58+
"resourceId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount"
59+
}
60+
]
61+
},
62+
"identity": {
63+
"principalId": "b5cf119e-a5c2-42c7-802f-592e0efb169f",
64+
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
65+
"type": "SystemAssigned"
66+
}
67+
}
68+
},
69+
"201": {
70+
"body": {
71+
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.CognitiveServices/accounts/testCreate1",
72+
"name": "testCreate1",
73+
"type": "Microsoft.CognitiveServices/accounts",
74+
"location": "West US",
75+
"sku": {
76+
"name": "S0"
77+
},
78+
"kind": "Emotion",
79+
"etag": "W/\"datetime'2017-04-10T07%3A57%3A48.4582781Z'\"",
80+
"properties": {
81+
"endpoint": "https://westus.api.cognitive.microsoft.com/emotion/v1.0",
82+
"provisioningState": "Succeeded",
83+
"encryption": {
84+
"keySource": "Microsoft.KeyVault",
85+
"keyVaultProperties": {
86+
"keyName": "FakeKeyName",
87+
"keyVersion": "891CF236-D241-4738-9462-D506AF493DFA",
88+
"keyVaultUri": "https://pltfrmscrts-use-pc-dev.vault.azure.net/"
89+
}
90+
},
91+
"userOwnedStorage": [
92+
{
93+
"resourceId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount"
94+
}
95+
]
96+
},
97+
"identity": {
98+
"principalId": "b5cf119e-a5c2-42c7-802f-592e0efb169f",
99+
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
100+
"type": "SystemAssigned"
101+
}
102+
}
103+
},
104+
"202": {
105+
"body": {
106+
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.CognitiveServices/accounts/testCreate1",
107+
"name": "testCreate1",
108+
"type": "Microsoft.CognitiveServices/accounts",
109+
"location": "West US",
110+
"sku": {
111+
"name": "S0"
112+
},
113+
"kind": "Emotion",
114+
"etag": "W/\"datetime'2017-04-10T07%3A57%3A48.4582781Z'\"",
115+
"properties": {
116+
"endpoint": "https://westus.api.cognitive.microsoft.com/emotion/v1.0",
117+
"provisioningState": "Succeeded",
118+
"encryption": {
119+
"keySource": "Microsoft.KeyVault",
120+
"keyVaultProperties": {
121+
"keyName": "FakeKeyName",
122+
"keyVersion": "891CF236-D241-4738-9462-D506AF493DFA",
123+
"keyVaultUri": "https://pltfrmscrts-use-pc-dev.vault.azure.net/"
124+
}
125+
},
126+
"userOwnedStorage": [
127+
{
128+
"resourceId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount"
129+
}
130+
]
131+
},
132+
"identity": {
133+
"principalId": "b5cf119e-a5c2-42c7-802f-592e0efb169f",
134+
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
135+
"type": "SystemAssigned"
136+
}
137+
}
138+
}
139+
}
140+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-10-01",
4+
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
5+
"resourceGroupName": "myResourceGroup",
6+
"accountName": "testCreate1",
7+
"account": {
8+
"location": "West US",
9+
"kind": "CognitiveServices",
10+
"sku": {
11+
"name": "S0"
12+
},
13+
"properties": {},
14+
"identity": {
15+
"type": "SystemAssigned"
16+
}
17+
}
18+
},
19+
"responses": {
20+
"200": {
21+
"body": {
22+
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.CognitiveServices/accounts/testCreate1",
23+
"name": "testCreate1",
24+
"type": "Microsoft.CognitiveServices/accounts",
25+
"location": "West US",
26+
"sku": {
27+
"name": "S0"
28+
},
29+
"kind": "Emotion",
30+
"etag": "W/\"datetime'2017-04-10T08%3A00%3A05.445595Z'\"",
31+
"properties": {
32+
"endpoint": "https://westus.api.cognitive.microsoft.com/emotion/v1.0",
33+
"provisioningState": "Succeeded"
34+
},
35+
"identity": {
36+
"principalId": "b5cf119e-a5c2-42c7-802f-592e0efb169f",
37+
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
38+
"type": "SystemAssigned"
39+
}
40+
}
41+
},
42+
"201": {
43+
"body": {
44+
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.CognitiveServices/accounts/testCreate1",
45+
"name": "testCreate1",
46+
"type": "Microsoft.CognitiveServices/accounts",
47+
"location": "West US",
48+
"sku": {
49+
"name": "S0"
50+
},
51+
"kind": "Emotion",
52+
"etag": "W/\"datetime'2017-04-10T07%3A57%3A48.4582781Z'\"",
53+
"properties": {
54+
"endpoint": "https://westus.api.cognitive.microsoft.com/emotion/v1.0",
55+
"provisioningState": "Succeeded"
56+
},
57+
"identity": {
58+
"principalId": "b5cf119e-a5c2-42c7-802f-592e0efb169f",
59+
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
60+
"type": "SystemAssigned"
61+
}
62+
}
63+
},
64+
"202": {
65+
"body": {
66+
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.CognitiveServices/accounts/testCreate1",
67+
"name": "testCreate1",
68+
"type": "Microsoft.CognitiveServices/accounts",
69+
"location": "West US",
70+
"sku": {
71+
"name": "S0"
72+
},
73+
"kind": "Emotion",
74+
"etag": "W/\"datetime'2017-04-10T07%3A57%3A48.4582781Z'\"",
75+
"properties": {
76+
"endpoint": "https://westus.api.cognitive.microsoft.com/emotion/v1.0",
77+
"provisioningState": "Succeeded"
78+
},
79+
"identity": {
80+
"principalId": "b5cf119e-a5c2-42c7-802f-592e0efb169f",
81+
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
82+
"type": "SystemAssigned"
83+
}
84+
}
85+
}
86+
}
87+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-10-01",
4+
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
5+
"resourceGroupName": "myResourceGroup",
6+
"accountName": "PropTest01"
7+
},
8+
"responses": {
9+
"200": {},
10+
"202": {},
11+
"204": {}
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-10-01",
4+
"subscriptionId": "subscriptionId",
5+
"resourceGroupName": "resourceGroupName",
6+
"accountName": "accountName",
7+
"commitmentPlanName": "commitmentPlanName"
8+
},
9+
"responses": {
10+
"200": {},
11+
"202": {},
12+
"204": {}
13+
}
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-10-01",
4+
"subscriptionId": "subscriptionId",
5+
"resourceGroupName": "resourceGroupName",
6+
"accountName": "accountName",
7+
"deploymentName": "deploymentName"
8+
},
9+
"responses": {
10+
"200": {},
11+
"202": {},
12+
"204": {}
13+
}
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscription-id}",
4+
"resourceGroupName": "res6977",
5+
"accountName": "sto2527",
6+
"privateEndpointConnectionName": "{privateEndpointConnectionName}",
7+
"api-version": "2022-10-01",
8+
"monitor": "true"
9+
},
10+
"responses": {
11+
"200": {},
12+
"202": {},
13+
"204": {}
14+
}
15+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-10-01",
4+
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
5+
"resourceGroupName": "myResourceGroup",
6+
"accountName": "myAccount"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.CognitiveServices/accounts/myAccount",
12+
"name": "myAccount",
13+
"type": "Microsoft.CognitiveServices/accounts",
14+
"location": "westus",
15+
"sku": {
16+
"name": "F0"
17+
},
18+
"kind": "Emotion",
19+
"tags": {
20+
"Owner": "felixwa",
21+
"ExpiredDate": "2017/09/01"
22+
},
23+
"etag": "W/\"datetime'2017-04-10T04%3A42%3A19.7067387Z'\"",
24+
"properties": {
25+
"endpoint": "https://westus.api.cognitive.microsoft.com/emotion/v1.0",
26+
"provisioningState": "Succeeded"
27+
}
28+
}
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)