Skip to content

Commit fd296f4

Browse files
yangyuanjianyexi
andauthored
Cognitive Services 2022-12-01 (#21716)
* Adds base for updating Microsoft.CognitiveServices from version stable/2022-10-01 to version 2022-12-01 * Updates readme * Updates API version in new specs and examples * Cognitive Services 2022-12-01 * adress comments * Revert v4 common types to v2 * Add supression * Update specification/cognitiveservices/resource-manager/readme.md Co-authored-by: Jianye Xi <[email protected]> Co-authored-by: Jianye Xi <[email protected]>
1 parent e812b54 commit fd296f4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+7680
-2
lines changed

custom-words.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,7 @@ customprebuiltintents
483483
customprebuiltmodels
484484
customproviders
485485
customsearch
486+
customsubdomain
486487
customvision
487488
customvisionprediction
488489
customvisiontraining
@@ -1324,6 +1325,7 @@ Multinomial
13241325
multipart
13251326
multipoint
13261327
multipoints
1328+
multiregion
13271329
Multiset
13281330
multislot
13291331
multispeaker

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

Lines changed: 3889 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-12-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-12-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+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-12-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-12-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,67 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-12-01",
4+
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
5+
"resourceGroupName": "resourceGroupName",
6+
"commitmentPlanName": "commitmentPlanName",
7+
"commitmentPlan": {
8+
"location": "West US",
9+
"kind": "SpeechServices",
10+
"sku": {
11+
"name": "S0"
12+
},
13+
"properties": {
14+
"hostingModel": "Web",
15+
"planType": "STT",
16+
"autoRenew": true,
17+
"current": {
18+
"tier": "T1"
19+
}
20+
}
21+
}
22+
},
23+
"responses": {
24+
"200": {
25+
"body": {
26+
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/commitmentPlans/commitmentPlanName",
27+
"name": "commitmentPlanName",
28+
"type": "Microsoft.CognitiveServices/commitmentPlans",
29+
"location": "West US",
30+
"sku": {
31+
"name": "S0"
32+
},
33+
"kind": "SpeechServices",
34+
"properties": {
35+
"provisioningState": "Succeeded",
36+
"hostingModel": "Web",
37+
"planType": "STT",
38+
"autoRenew": true,
39+
"current": {
40+
"tier": "T1"
41+
}
42+
}
43+
}
44+
},
45+
"201": {
46+
"body": {
47+
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/commitmentPlans/commitmentPlanName",
48+
"name": "commitmentPlanName",
49+
"type": "Microsoft.CognitiveServices/commitmentPlans",
50+
"location": "West US",
51+
"sku": {
52+
"name": "S0"
53+
},
54+
"kind": "SpeechServices",
55+
"properties": {
56+
"provisioningState": "Succeeded",
57+
"hostingModel": "Web",
58+
"planType": "STT",
59+
"autoRenew": true,
60+
"current": {
61+
"tier": "T1"
62+
}
63+
}
64+
}
65+
}
66+
}
67+
}

0 commit comments

Comments
 (0)