Skip to content
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

Cognitive Services 2024-04-01-preview #28509

Merged
merged 35 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
28d0cc2
Adds base for updating Microsoft.CognitiveServices from version previ…
tianxin-ms Mar 25, 2024
0660405
Updates readme
tianxin-ms Mar 25, 2024
0a714ec
Updates API version in new specs and examples
tianxin-ms Mar 25, 2024
4a8588e
Cognitive Services 2024-04-01-preview
tianxin-ms Mar 28, 2024
3e05897
Add NSP APIs
tianxin-ms Apr 2, 2024
c7e1fa3
address some error
tianxin-ms Apr 2, 2024
9899fad
address lintdiff error
tianxin-ms Apr 3, 2024
81ee758
Add list for defender
tianxin-ms Apr 3, 2024
ba576c5
fix nsp ModelValidation
tianxin-ms Apr 4, 2024
a02a89f
Add Mode Capacities Apis
tianxin-ms Apr 8, 2024
8193358
fix example
tianxin-ms Apr 9, 2024
cff687f
Added properties for models api
tianxin-ms Apr 10, 2024
10fd2bb
Update models APIs
tianxin-ms Apr 11, 2024
69b01c8
fix a name
tianxin-ms Apr 11, 2024
44ff0e8
Removed getModel
tianxin-ms Apr 12, 2024
93f08f8
Change an example name
tianxin-ms Apr 12, 2024
e41289c
Fix example name
tianxin-ms Apr 12, 2024
5a29fea
Update NSP APIs
tianxin-ms Apr 12, 2024
06e8d0a
update PutRaiPolicy example
tianxin-ms Apr 17, 2024
d75f785
using proxy resource type
tianxin-ms Apr 18, 2024
ea29866
Fix example
tianxin-ms Apr 25, 2024
1b5c11d
Remove models API from 04-01-preview
tianxin-ms Apr 25, 2024
17d4189
Remove sibling values alongside $ref
tianxin-ms Apr 25, 2024
4d8d9e0
Address ModelValidation check
tianxin-ms Apr 25, 2024
92a868b
Address comments
tianxin-ms Apr 30, 2024
ef26cc1
fix breaking change
tianxin-ms Apr 30, 2024
15ed242
address NSP comments
tianxin-ms May 1, 2024
3b33a5d
fix nsp example
tianxin-ms May 1, 2024
8b5dae9
fix NSP
tianxin-ms May 1, 2024
8fde152
fix an example
tianxin-ms May 1, 2024
9d11c31
fix sdk-go
tianxin-ms May 2, 2024
a2e20e1
Fix modelCapacities APIs
tianxin-ms May 3, 2024
be7f535
removed $
tianxin-ms May 3, 2024
61237fa
Merge branch 'main' into tianxinliu/2024-04-01-preview
madhura-np May 7, 2024
7e7de19
Merge branch 'main' into tianxinliu/2024-04-01-preview
madhura-np May 8, 2024
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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"api-version": "2024-04-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "resourceGroupName",
"accountName": "accountName",
"raiBlocklistName": "myblocklist",
"raiBlocklistItems": [
{
"name": "myblocklistitem1",
"properties": {
"pattern": "^[a-z0-9_-]{2,16}$",
"isRegex": true
}
},
{
"name": "myblocklistitem2",
"properties": {
"pattern": "blockwords",
"isRegex": false
}
}
]
},
"responses": {
"200": {
"body": {
"name": "myblocklist",
"properties": {
"description": "Brief description of the blocklist"
},
"etag": "\"00000000-0000-0000-0000-000000000000\""
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"parameters": {
"api-version": "2024-04-01-preview",
"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"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"api-version": "2024-04-01-preview",
"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
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
{
"parameters": {
"api-version": "2024-04-01-preview",
"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"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"parameters": {
"api-version": "2024-04-01-preview",
"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"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"parameters": {
"api-version": "2024-04-01-preview",
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"resourceGroupName": "resourceGroupName",
"commitmentPlanName": "commitmentPlanName",
"commitmentPlan": {
"location": "West US",
"kind": "SpeechServices",
"sku": {
"name": "S0"
},
"properties": {
"hostingModel": "Web",
"planType": "STT",
"autoRenew": true,
"current": {
"tier": "T1"
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/commitmentPlans/commitmentPlanName",
"name": "commitmentPlanName",
"type": "Microsoft.CognitiveServices/commitmentPlans",
"location": "West US",
"sku": {
"name": "S0"
},
"kind": "SpeechServices",
"properties": {
"provisioningState": "Succeeded",
"hostingModel": "Web",
"planType": "STT",
"autoRenew": true,
"current": {
"tier": "T1"
}
}
}
},
"201": {
"body": {
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/commitmentPlans/commitmentPlanName",
"name": "commitmentPlanName",
"type": "Microsoft.CognitiveServices/commitmentPlans",
"location": "West US",
"sku": {
"name": "S0"
},
"kind": "SpeechServices",
"properties": {
"provisioningState": "Succeeded",
"hostingModel": "Web",
"planType": "STT",
"autoRenew": true,
"current": {
"tier": "T1"
}
}
}
}
}
}
Loading