-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cognitive Services 2024-04-01-preview (#28509)
* Adds base for updating Microsoft.CognitiveServices from version preview/2023-10-01-preview to version 2024-04-01-preview * Updates readme * Updates API version in new specs and examples * Cognitive Services 2024-04-01-preview * Add NSP APIs * address some error * address lintdiff error * Add list for defender * fix nsp ModelValidation * Add Mode Capacities Apis * fix example * Added properties for models api * Update models APIs * fix a name * Removed getModel * Change an example name * Fix example name * Update NSP APIs * update PutRaiPolicy example * using proxy resource type * Fix example * Remove models API from 04-01-preview * Remove sibling values alongside $ref * Address ModelValidation check * Address comments * fix breaking change * address NSP comments * fix nsp example * fix NSP * fix an example * fix sdk-go * Fix modelCapacities APIs * removed $ --------- Co-authored-by: madhura <[email protected]>
- Loading branch information
1 parent
a59809d
commit 99e6b32
Showing
77 changed files
with
11,956 additions
and
2 deletions.
There are no files selected for viewing
6,791 changes: 6,791 additions & 0 deletions
6,791
...rce-manager/Microsoft.CognitiveServices/preview/2024-04-01-preview/cognitiveservices.json
Large diffs are not rendered by default.
Oops, something went wrong.
36 changes: 36 additions & 0 deletions
36
...Microsoft.CognitiveServices/preview/2024-04-01-preview/examples/AddRaiBlocklistItems.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,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\"" | ||
} | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...rosoft.CognitiveServices/preview/2024-04-01-preview/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": "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" | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...Microsoft.CognitiveServices/preview/2024-04-01-preview/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": "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 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
140 changes: 140 additions & 0 deletions
140
...anager/Microsoft.CognitiveServices/preview/2024-04-01-preview/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": "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" | ||
} | ||
} | ||
} | ||
} | ||
} |
87 changes: 87 additions & 0 deletions
87
...ger/Microsoft.CognitiveServices/preview/2024-04-01-preview/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": "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" | ||
} | ||
} | ||
} | ||
} | ||
} |
67 changes: 67 additions & 0 deletions
67
...oft.CognitiveServices/preview/2024-04-01-preview/examples/CreateSharedCommitmentPlan.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,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" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.