@azure/arm-cognitiveservices 7.4.1-alpha.20230724.1 → 7.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +37 -10
- package/dist/index.js +770 -166
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/accountsCreateSample.js +2 -2
- package/dist-esm/samples-dev/accountsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/accountsGetSample.js +1 -1
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/accountsListKeysSample.js +1 -1
- package/dist-esm/samples-dev/accountsListModelsSample.js +1 -1
- package/dist-esm/samples-dev/accountsListSample.js +1 -1
- package/dist-esm/samples-dev/accountsListSkusSample.js +1 -1
- package/dist-esm/samples-dev/accountsListUsagesSample.js +1 -1
- package/dist-esm/samples-dev/accountsRegenerateKeySample.js +1 -1
- package/dist-esm/samples-dev/accountsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/checkDomainAvailabilitySample.js +1 -1
- package/dist-esm/samples-dev/checkSkuAvailabilitySample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateAssociationSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansCreateOrUpdatePlanSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansDeleteAssociationSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansDeletePlanSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansDeleteSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansGetAssociationSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansGetPlanSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansGetSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansListAssociationsSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansListPlansByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansListPlansBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansListSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansUpdatePlanSample.js +1 -1
- package/dist-esm/samples-dev/commitmentTiersListSample.js +1 -1
- package/dist-esm/samples-dev/deletedAccountsGetSample.js +1 -1
- package/dist-esm/samples-dev/deletedAccountsListSample.js +1 -1
- package/dist-esm/samples-dev/deletedAccountsPurgeSample.js +1 -1
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js +3 -5
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/deploymentsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/deploymentsGetSample.js +1 -1
- package/dist-esm/samples-dev/deploymentsListSample.js +1 -1
- package/dist-esm/samples-dev/modelsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/modelsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/modelsListSample.js +59 -0
- package/dist-esm/samples-dev/modelsListSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListSample.js +1 -1
- package/dist-esm/samples-dev/resourceSkusListSample.js +1 -1
- package/dist-esm/samples-dev/usagesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/usagesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/usagesListSample.js +59 -0
- package/dist-esm/samples-dev/usagesListSample.js.map +1 -0
- package/dist-esm/src/cognitiveServicesManagementClient.d.ts +3 -1
- package/dist-esm/src/cognitiveServicesManagementClient.d.ts.map +1 -1
- package/dist-esm/src/cognitiveServicesManagementClient.js +5 -3
- package/dist-esm/src/cognitiveServicesManagementClient.js.map +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +144 -5
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +24 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +5 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +229 -1
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/operations/accounts.d.ts +4 -4
- package/dist-esm/src/operations/accounts.d.ts.map +1 -1
- package/dist-esm/src/operations/accounts.js +26 -14
- package/dist-esm/src/operations/accounts.js.map +1 -1
- package/dist-esm/src/operations/commitmentPlans.d.ts +7 -7
- package/dist-esm/src/operations/commitmentPlans.d.ts.map +1 -1
- package/dist-esm/src/operations/commitmentPlans.js +66 -42
- package/dist-esm/src/operations/commitmentPlans.js.map +1 -1
- package/dist-esm/src/operations/deletedAccounts.d.ts +2 -2
- package/dist-esm/src/operations/deletedAccounts.d.ts.map +1 -1
- package/dist-esm/src/operations/deletedAccounts.js +10 -6
- package/dist-esm/src/operations/deletedAccounts.js.map +1 -1
- package/dist-esm/src/operations/deployments.d.ts +3 -3
- package/dist-esm/src/operations/deployments.d.ts.map +1 -1
- package/dist-esm/src/operations/deployments.js +26 -11
- package/dist-esm/src/operations/deployments.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +2 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +2 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/models.d.ts +35 -0
- package/dist-esm/src/operations/models.d.ts.map +1 -0
- package/dist-esm/src/operations/models.js +150 -0
- package/dist-esm/src/operations/models.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +3 -3
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +29 -21
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/usages.d.ts +35 -0
- package/dist-esm/src/operations/usages.d.ts.map +1 -0
- package/dist-esm/src/operations/usages.js +150 -0
- package/dist-esm/src/operations/usages.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/commitmentPlans.d.ts +7 -7
- package/dist-esm/src/operationsInterfaces/commitmentPlans.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/deletedAccounts.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/deletedAccounts.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/deployments.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/deployments.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +2 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/models.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/models.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/models.js +9 -0
- package/dist-esm/src/operationsInterfaces/models.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/usages.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/usages.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/usages.js +9 -0
- package/dist-esm/src/operationsInterfaces/usages.js.map +1 -0
- package/dist-esm/test/cognitiveservices_congitiveservice.spec.js +1 -1
- package/dist-esm/test/cognitiveservices_congitiveservice.spec.js.map +1 -1
- package/dist-esm/test/cognitiveservices_openai.spec.js +1 -2
- package/dist-esm/test/cognitiveservices_openai.spec.js.map +1 -1
- package/package.json +7 -7
- package/review/arm-cognitiveservices.api.md +127 -16
- package/src/cognitiveServicesManagementClient.ts +10 -2
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +160 -5
- package/src/models/mappers.ts +236 -0
- package/src/models/parameters.ts +1 -1
- package/src/operations/accounts.ts +41 -31
- package/src/operations/commitmentPlans.ts +77 -64
- package/src/operations/deletedAccounts.ts +15 -11
- package/src/operations/deployments.ts +36 -22
- package/src/operations/index.ts +2 -0
- package/src/operations/models.ts +170 -0
- package/src/operations/privateEndpointConnections.ts +28 -21
- package/src/operations/usages.ts +170 -0
- package/src/operationsInterfaces/accounts.ts +6 -6
- package/src/operationsInterfaces/commitmentPlans.ts +10 -10
- package/src/operationsInterfaces/deletedAccounts.ts +2 -2
- package/src/operationsInterfaces/deployments.ts +4 -4
- package/src/operationsInterfaces/index.ts +2 -0
- package/src/operationsInterfaces/models.ts +24 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +4 -4
- package/src/operationsInterfaces/usages.ts +24 -0
- package/types/arm-cognitiveservices.d.ts +199 -21
|
@@ -1,8 +1,28 @@
|
|
|
1
1
|
import * as coreAuth from '@azure/core-auth';
|
|
2
2
|
import * as coreClient from '@azure/core-client';
|
|
3
|
+
import { OperationState } from '@azure/core-lro';
|
|
3
4
|
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
4
|
-
import {
|
|
5
|
-
|
|
5
|
+
import { SimplePollerLike } from '@azure/core-lro';
|
|
6
|
+
|
|
7
|
+
/** The abuse penalty. */
|
|
8
|
+
export declare interface AbusePenalty {
|
|
9
|
+
/** The action of AbusePenalty. */
|
|
10
|
+
action?: AbusePenaltyAction;
|
|
11
|
+
/** The percentage of rate limit. */
|
|
12
|
+
rateLimitPercentage?: number;
|
|
13
|
+
/** The datetime of expiration of the AbusePenalty. */
|
|
14
|
+
expiration?: Date;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Defines values for AbusePenaltyAction. \
|
|
19
|
+
* {@link KnownAbusePenaltyAction} can be used interchangeably with AbusePenaltyAction,
|
|
20
|
+
* this enum contains the known values that the service supports.
|
|
21
|
+
* ### Known values supported by the service
|
|
22
|
+
* **Throttle** \
|
|
23
|
+
* **Block**
|
|
24
|
+
*/
|
|
25
|
+
export declare type AbusePenaltyAction = string;
|
|
6
26
|
|
|
7
27
|
/** Cognitive Services account is an Azure resource representing the provisioned account, it's type, location and SKU. */
|
|
8
28
|
export declare interface Account extends AzureEntityResource {
|
|
@@ -42,6 +62,10 @@ export declare interface AccountListResult {
|
|
|
42
62
|
export declare interface AccountModel extends DeploymentModel {
|
|
43
63
|
/** Base Model Identifier. */
|
|
44
64
|
baseModel?: DeploymentModel;
|
|
65
|
+
/** If the model is default version. */
|
|
66
|
+
isDefaultVersion?: boolean;
|
|
67
|
+
/** The list of Model Sku. */
|
|
68
|
+
skus?: ModelSku[];
|
|
45
69
|
/** The max capacity. */
|
|
46
70
|
maxCapacity?: number;
|
|
47
71
|
/** The capabilities. */
|
|
@@ -164,6 +188,11 @@ export declare interface AccountProperties {
|
|
|
164
188
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
165
189
|
*/
|
|
166
190
|
readonly commitmentPlanAssociations?: CommitmentPlanAssociation[];
|
|
191
|
+
/**
|
|
192
|
+
* The abuse penalty.
|
|
193
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
194
|
+
*/
|
|
195
|
+
readonly abusePenalty?: AbusePenalty;
|
|
167
196
|
}
|
|
168
197
|
|
|
169
198
|
/** Interface representing a Accounts. */
|
|
@@ -194,7 +223,7 @@ export declare interface Accounts {
|
|
|
194
223
|
* @param account The parameters to provide for the created account.
|
|
195
224
|
* @param options The options parameters.
|
|
196
225
|
*/
|
|
197
|
-
beginCreate(resourceGroupName: string, accountName: string, account: Account, options?: AccountsCreateOptionalParams): Promise<
|
|
226
|
+
beginCreate(resourceGroupName: string, accountName: string, account: Account, options?: AccountsCreateOptionalParams): Promise<SimplePollerLike<OperationState<AccountsCreateResponse>, AccountsCreateResponse>>;
|
|
198
227
|
/**
|
|
199
228
|
* Create Cognitive Services Account. Accounts is a resource group wide resource type. It holds the
|
|
200
229
|
* keys for developer to access intelligent APIs. It's also the resource type for billing.
|
|
@@ -211,7 +240,7 @@ export declare interface Accounts {
|
|
|
211
240
|
* @param account The parameters to provide for the created account.
|
|
212
241
|
* @param options The options parameters.
|
|
213
242
|
*/
|
|
214
|
-
beginUpdate(resourceGroupName: string, accountName: string, account: Account, options?: AccountsUpdateOptionalParams): Promise<
|
|
243
|
+
beginUpdate(resourceGroupName: string, accountName: string, account: Account, options?: AccountsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<AccountsUpdateResponse>, AccountsUpdateResponse>>;
|
|
215
244
|
/**
|
|
216
245
|
* Updates a Cognitive Services account
|
|
217
246
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -226,7 +255,7 @@ export declare interface Accounts {
|
|
|
226
255
|
* @param accountName The name of Cognitive Services account.
|
|
227
256
|
* @param options The options parameters.
|
|
228
257
|
*/
|
|
229
|
-
beginDelete(resourceGroupName: string, accountName: string, options?: AccountsDeleteOptionalParams): Promise<
|
|
258
|
+
beginDelete(resourceGroupName: string, accountName: string, options?: AccountsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
230
259
|
/**
|
|
231
260
|
* Deletes a Cognitive Services account from the resource group.
|
|
232
261
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -456,6 +485,18 @@ export declare interface CallRateLimit {
|
|
|
456
485
|
rules?: ThrottlingRule[];
|
|
457
486
|
}
|
|
458
487
|
|
|
488
|
+
/** The capacity configuration. */
|
|
489
|
+
export declare interface CapacityConfig {
|
|
490
|
+
/** The minimum capacity. */
|
|
491
|
+
minimum?: number;
|
|
492
|
+
/** The maximum capacity. */
|
|
493
|
+
maximum?: number;
|
|
494
|
+
/** The minimal incremental between allowed values for capacity. */
|
|
495
|
+
step?: number;
|
|
496
|
+
/** The default capacity. */
|
|
497
|
+
default?: number;
|
|
498
|
+
}
|
|
499
|
+
|
|
459
500
|
/** Optional parameters. */
|
|
460
501
|
export declare interface CheckDomainAvailabilityOptionalParams extends coreClient.OperationOptions {
|
|
461
502
|
/** The Kind of the resource. */
|
|
@@ -524,8 +565,10 @@ export declare class CognitiveServicesManagementClient extends coreClient.Servic
|
|
|
524
565
|
accounts: Accounts;
|
|
525
566
|
deletedAccounts: DeletedAccounts;
|
|
526
567
|
resourceSkus: ResourceSkus;
|
|
568
|
+
usages: Usages;
|
|
527
569
|
operations: Operations;
|
|
528
570
|
commitmentTiers: CommitmentTiers;
|
|
571
|
+
models: Models;
|
|
529
572
|
privateEndpointConnections: PrivateEndpointConnections;
|
|
530
573
|
privateLinkResources: PrivateLinkResources;
|
|
531
574
|
deployments: Deployments;
|
|
@@ -669,6 +712,11 @@ export declare interface CommitmentPlanProperties {
|
|
|
669
712
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
670
713
|
*/
|
|
671
714
|
readonly last?: CommitmentPeriod;
|
|
715
|
+
/**
|
|
716
|
+
* The list of ProvisioningIssue.
|
|
717
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
718
|
+
*/
|
|
719
|
+
readonly provisioningIssues?: string[];
|
|
672
720
|
}
|
|
673
721
|
|
|
674
722
|
/**
|
|
@@ -741,7 +789,7 @@ export declare interface CommitmentPlans {
|
|
|
741
789
|
* Account
|
|
742
790
|
* @param options The options parameters.
|
|
743
791
|
*/
|
|
744
|
-
beginDelete(resourceGroupName: string, accountName: string, commitmentPlanName: string, options?: CommitmentPlansDeleteOptionalParams): Promise<
|
|
792
|
+
beginDelete(resourceGroupName: string, accountName: string, commitmentPlanName: string, options?: CommitmentPlansDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
745
793
|
/**
|
|
746
794
|
* Deletes the specified commitmentPlan associated with the Cognitive Services account.
|
|
747
795
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -759,7 +807,7 @@ export declare interface CommitmentPlans {
|
|
|
759
807
|
* @param commitmentPlan The parameters to provide for the created commitment plan.
|
|
760
808
|
* @param options The options parameters.
|
|
761
809
|
*/
|
|
762
|
-
beginCreateOrUpdatePlan(resourceGroupName: string, commitmentPlanName: string, commitmentPlan: CommitmentPlan, options?: CommitmentPlansCreateOrUpdatePlanOptionalParams): Promise<
|
|
810
|
+
beginCreateOrUpdatePlan(resourceGroupName: string, commitmentPlanName: string, commitmentPlan: CommitmentPlan, options?: CommitmentPlansCreateOrUpdatePlanOptionalParams): Promise<SimplePollerLike<OperationState<CommitmentPlansCreateOrUpdatePlanResponse>, CommitmentPlansCreateOrUpdatePlanResponse>>;
|
|
763
811
|
/**
|
|
764
812
|
* Create Cognitive Services commitment plan.
|
|
765
813
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -777,7 +825,7 @@ export declare interface CommitmentPlans {
|
|
|
777
825
|
* @param commitmentPlan The parameters to provide for the created commitment plan.
|
|
778
826
|
* @param options The options parameters.
|
|
779
827
|
*/
|
|
780
|
-
beginUpdatePlan(resourceGroupName: string, commitmentPlanName: string, commitmentPlan: PatchResourceTagsAndSku, options?: CommitmentPlansUpdatePlanOptionalParams): Promise<
|
|
828
|
+
beginUpdatePlan(resourceGroupName: string, commitmentPlanName: string, commitmentPlan: PatchResourceTagsAndSku, options?: CommitmentPlansUpdatePlanOptionalParams): Promise<SimplePollerLike<OperationState<CommitmentPlansUpdatePlanResponse>, CommitmentPlansUpdatePlanResponse>>;
|
|
781
829
|
/**
|
|
782
830
|
* Create Cognitive Services commitment plan.
|
|
783
831
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -794,7 +842,7 @@ export declare interface CommitmentPlans {
|
|
|
794
842
|
* Account
|
|
795
843
|
* @param options The options parameters.
|
|
796
844
|
*/
|
|
797
|
-
beginDeletePlan(resourceGroupName: string, commitmentPlanName: string, options?: CommitmentPlansDeletePlanOptionalParams): Promise<
|
|
845
|
+
beginDeletePlan(resourceGroupName: string, commitmentPlanName: string, options?: CommitmentPlansDeletePlanOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
798
846
|
/**
|
|
799
847
|
* Deletes a Cognitive Services commitment plan from the resource group.
|
|
800
848
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -831,7 +879,7 @@ export declare interface CommitmentPlans {
|
|
|
831
879
|
* @param association The commitmentPlan properties.
|
|
832
880
|
* @param options The options parameters.
|
|
833
881
|
*/
|
|
834
|
-
beginCreateOrUpdateAssociation(resourceGroupName: string, commitmentPlanName: string, commitmentPlanAssociationName: string, association: CommitmentPlanAccountAssociation, options?: CommitmentPlansCreateOrUpdateAssociationOptionalParams): Promise<
|
|
882
|
+
beginCreateOrUpdateAssociation(resourceGroupName: string, commitmentPlanName: string, commitmentPlanAssociationName: string, association: CommitmentPlanAccountAssociation, options?: CommitmentPlansCreateOrUpdateAssociationOptionalParams): Promise<SimplePollerLike<OperationState<CommitmentPlansCreateOrUpdateAssociationResponse>, CommitmentPlansCreateOrUpdateAssociationResponse>>;
|
|
835
883
|
/**
|
|
836
884
|
* Create or update the association of the Cognitive Services commitment plan.
|
|
837
885
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -852,7 +900,7 @@ export declare interface CommitmentPlans {
|
|
|
852
900
|
* Services Account
|
|
853
901
|
* @param options The options parameters.
|
|
854
902
|
*/
|
|
855
|
-
beginDeleteAssociation(resourceGroupName: string, commitmentPlanName: string, commitmentPlanAssociationName: string, options?: CommitmentPlansDeleteAssociationOptionalParams): Promise<
|
|
903
|
+
beginDeleteAssociation(resourceGroupName: string, commitmentPlanName: string, commitmentPlanAssociationName: string, options?: CommitmentPlansDeleteAssociationOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
856
904
|
/**
|
|
857
905
|
* Deletes the association of the Cognitive Services commitment plan.
|
|
858
906
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -1118,7 +1166,7 @@ export declare interface DeletedAccounts {
|
|
|
1118
1166
|
* @param accountName The name of Cognitive Services account.
|
|
1119
1167
|
* @param options The options parameters.
|
|
1120
1168
|
*/
|
|
1121
|
-
beginPurge(location: string, resourceGroupName: string, accountName: string, options?: DeletedAccountsPurgeOptionalParams): Promise<
|
|
1169
|
+
beginPurge(location: string, resourceGroupName: string, accountName: string, options?: DeletedAccountsPurgeOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
1122
1170
|
/**
|
|
1123
1171
|
* Deletes a Cognitive Services account from the resource group.
|
|
1124
1172
|
* @param location Resource location.
|
|
@@ -1160,6 +1208,8 @@ export declare interface DeletedAccountsPurgeOptionalParams extends coreClient.O
|
|
|
1160
1208
|
|
|
1161
1209
|
/** Cognitive Services account deployment. */
|
|
1162
1210
|
export declare interface Deployment extends ProxyResource {
|
|
1211
|
+
/** The resource model definition representing SKU */
|
|
1212
|
+
sku?: Sku;
|
|
1163
1213
|
/**
|
|
1164
1214
|
* Metadata pertaining to creation and last modification of the resource.
|
|
1165
1215
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
@@ -1191,8 +1241,10 @@ export declare interface DeploymentModel {
|
|
|
1191
1241
|
format?: string;
|
|
1192
1242
|
/** Deployment model name. */
|
|
1193
1243
|
name?: string;
|
|
1194
|
-
/** Deployment model version. */
|
|
1244
|
+
/** Optional. Deployment model version. If version is not specified, a default version will be assigned. The default version is different for different models and might change when there is new version available for a model. Default version for a model could be found from list models API. */
|
|
1195
1245
|
version?: string;
|
|
1246
|
+
/** Optional. Deployment model source ARM resource ID. */
|
|
1247
|
+
source?: string;
|
|
1196
1248
|
/**
|
|
1197
1249
|
* The call rate limit Cognitive Services account.
|
|
1198
1250
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
@@ -1200,6 +1252,17 @@ export declare interface DeploymentModel {
|
|
|
1200
1252
|
readonly callRateLimit?: CallRateLimit;
|
|
1201
1253
|
}
|
|
1202
1254
|
|
|
1255
|
+
/**
|
|
1256
|
+
* Defines values for DeploymentModelVersionUpgradeOption. \
|
|
1257
|
+
* {@link KnownDeploymentModelVersionUpgradeOption} can be used interchangeably with DeploymentModelVersionUpgradeOption,
|
|
1258
|
+
* this enum contains the known values that the service supports.
|
|
1259
|
+
* ### Known values supported by the service
|
|
1260
|
+
* **OnceNewDefaultVersionAvailable** \
|
|
1261
|
+
* **OnceCurrentVersionExpired** \
|
|
1262
|
+
* **NoAutoUpgrade**
|
|
1263
|
+
*/
|
|
1264
|
+
export declare type DeploymentModelVersionUpgradeOption = string;
|
|
1265
|
+
|
|
1203
1266
|
/** Properties of Cognitive Services account deployment. */
|
|
1204
1267
|
export declare interface DeploymentProperties {
|
|
1205
1268
|
/**
|
|
@@ -1225,6 +1288,10 @@ export declare interface DeploymentProperties {
|
|
|
1225
1288
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1226
1289
|
*/
|
|
1227
1290
|
readonly callRateLimit?: CallRateLimit;
|
|
1291
|
+
/** NOTE: This property will not be serialized. It can only be populated by the server. */
|
|
1292
|
+
readonly rateLimits?: ThrottlingRule[];
|
|
1293
|
+
/** Deployment model version upgrade option. */
|
|
1294
|
+
versionUpgradeOption?: DeploymentModelVersionUpgradeOption;
|
|
1228
1295
|
}
|
|
1229
1296
|
|
|
1230
1297
|
/**
|
|
@@ -1237,7 +1304,9 @@ export declare interface DeploymentProperties {
|
|
|
1237
1304
|
* **Deleting** \
|
|
1238
1305
|
* **Moving** \
|
|
1239
1306
|
* **Failed** \
|
|
1240
|
-
* **Succeeded**
|
|
1307
|
+
* **Succeeded** \
|
|
1308
|
+
* **Disabled** \
|
|
1309
|
+
* **Canceled**
|
|
1241
1310
|
*/
|
|
1242
1311
|
export declare type DeploymentProvisioningState = string;
|
|
1243
1312
|
|
|
@@ -1266,7 +1335,7 @@ export declare interface Deployments {
|
|
|
1266
1335
|
* @param deployment The deployment properties.
|
|
1267
1336
|
* @param options The options parameters.
|
|
1268
1337
|
*/
|
|
1269
|
-
beginCreateOrUpdate(resourceGroupName: string, accountName: string, deploymentName: string, deployment: Deployment, options?: DeploymentsCreateOrUpdateOptionalParams): Promise<
|
|
1338
|
+
beginCreateOrUpdate(resourceGroupName: string, accountName: string, deploymentName: string, deployment: Deployment, options?: DeploymentsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<DeploymentsCreateOrUpdateResponse>, DeploymentsCreateOrUpdateResponse>>;
|
|
1270
1339
|
/**
|
|
1271
1340
|
* Update the state of specified deployments associated with the Cognitive Services account.
|
|
1272
1341
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -1283,7 +1352,7 @@ export declare interface Deployments {
|
|
|
1283
1352
|
* @param deploymentName The name of the deployment associated with the Cognitive Services Account
|
|
1284
1353
|
* @param options The options parameters.
|
|
1285
1354
|
*/
|
|
1286
|
-
beginDelete(resourceGroupName: string, accountName: string, deploymentName: string, options?: DeploymentsDeleteOptionalParams): Promise<
|
|
1355
|
+
beginDelete(resourceGroupName: string, accountName: string, deploymentName: string, options?: DeploymentsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
1287
1356
|
/**
|
|
1288
1357
|
* Deletes the specified deployment associated with the Cognitive Services account.
|
|
1289
1358
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -1444,7 +1513,8 @@ export declare function getContinuationToken(page: unknown): string | undefined;
|
|
|
1444
1513
|
* ### Known values supported by the service
|
|
1445
1514
|
* **Web** \
|
|
1446
1515
|
* **ConnectedContainer** \
|
|
1447
|
-
* **DisconnectedContainer**
|
|
1516
|
+
* **DisconnectedContainer** \
|
|
1517
|
+
* **ProvisionedWeb**
|
|
1448
1518
|
*/
|
|
1449
1519
|
export declare type HostingModel = string;
|
|
1450
1520
|
|
|
@@ -1498,6 +1568,14 @@ export declare interface KeyVaultProperties {
|
|
|
1498
1568
|
identityClientId?: string;
|
|
1499
1569
|
}
|
|
1500
1570
|
|
|
1571
|
+
/** Known values of {@link AbusePenaltyAction} that the service accepts. */
|
|
1572
|
+
export declare enum KnownAbusePenaltyAction {
|
|
1573
|
+
/** Throttle */
|
|
1574
|
+
Throttle = "Throttle",
|
|
1575
|
+
/** Block */
|
|
1576
|
+
Block = "Block"
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1501
1579
|
/** Known values of {@link ActionType} that the service accepts. */
|
|
1502
1580
|
export declare enum KnownActionType {
|
|
1503
1581
|
/** Internal */
|
|
@@ -1534,6 +1612,16 @@ export declare enum KnownCreatedByType {
|
|
|
1534
1612
|
Key = "Key"
|
|
1535
1613
|
}
|
|
1536
1614
|
|
|
1615
|
+
/** Known values of {@link DeploymentModelVersionUpgradeOption} that the service accepts. */
|
|
1616
|
+
export declare enum KnownDeploymentModelVersionUpgradeOption {
|
|
1617
|
+
/** OnceNewDefaultVersionAvailable */
|
|
1618
|
+
OnceNewDefaultVersionAvailable = "OnceNewDefaultVersionAvailable",
|
|
1619
|
+
/** OnceCurrentVersionExpired */
|
|
1620
|
+
OnceCurrentVersionExpired = "OnceCurrentVersionExpired",
|
|
1621
|
+
/** NoAutoUpgrade */
|
|
1622
|
+
NoAutoUpgrade = "NoAutoUpgrade"
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1537
1625
|
/** Known values of {@link DeploymentProvisioningState} that the service accepts. */
|
|
1538
1626
|
export declare enum KnownDeploymentProvisioningState {
|
|
1539
1627
|
/** Accepted */
|
|
@@ -1547,7 +1635,11 @@ export declare enum KnownDeploymentProvisioningState {
|
|
|
1547
1635
|
/** Failed */
|
|
1548
1636
|
Failed = "Failed",
|
|
1549
1637
|
/** Succeeded */
|
|
1550
|
-
Succeeded = "Succeeded"
|
|
1638
|
+
Succeeded = "Succeeded",
|
|
1639
|
+
/** Disabled */
|
|
1640
|
+
Disabled = "Disabled",
|
|
1641
|
+
/** Canceled */
|
|
1642
|
+
Canceled = "Canceled"
|
|
1551
1643
|
}
|
|
1552
1644
|
|
|
1553
1645
|
/** Known values of {@link DeploymentScaleType} that the service accepts. */
|
|
@@ -1565,7 +1657,9 @@ export declare enum KnownHostingModel {
|
|
|
1565
1657
|
/** ConnectedContainer */
|
|
1566
1658
|
ConnectedContainer = "ConnectedContainer",
|
|
1567
1659
|
/** DisconnectedContainer */
|
|
1568
|
-
DisconnectedContainer = "DisconnectedContainer"
|
|
1660
|
+
DisconnectedContainer = "DisconnectedContainer",
|
|
1661
|
+
/** ProvisionedWeb */
|
|
1662
|
+
ProvisionedWeb = "ProvisionedWeb"
|
|
1569
1663
|
}
|
|
1570
1664
|
|
|
1571
1665
|
/** Known values of {@link KeySource} that the service accepts. */
|
|
@@ -1720,6 +1814,16 @@ export declare interface MetricName {
|
|
|
1720
1814
|
localizedValue?: string;
|
|
1721
1815
|
}
|
|
1722
1816
|
|
|
1817
|
+
/** Cognitive Services Model. */
|
|
1818
|
+
export declare interface Model {
|
|
1819
|
+
/** Model Metadata. */
|
|
1820
|
+
model?: AccountModel;
|
|
1821
|
+
/** The Kind of the Model. */
|
|
1822
|
+
kind?: string;
|
|
1823
|
+
/** The SKU of the Model. */
|
|
1824
|
+
skuName?: string;
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1723
1827
|
/** Cognitive Services account ModelDeprecationInfo. */
|
|
1724
1828
|
export declare interface ModelDeprecationInfo {
|
|
1725
1829
|
/** The datetime of deprecation of the fineTune Model. */
|
|
@@ -1738,6 +1842,52 @@ export declare interface ModelDeprecationInfo {
|
|
|
1738
1842
|
*/
|
|
1739
1843
|
export declare type ModelLifecycleStatus = string;
|
|
1740
1844
|
|
|
1845
|
+
/** The list of cognitive services models. */
|
|
1846
|
+
export declare interface ModelListResult {
|
|
1847
|
+
/** The link used to get the next page of Model. */
|
|
1848
|
+
nextLink?: string;
|
|
1849
|
+
/** Gets the list of Cognitive Services accounts Model and their properties. */
|
|
1850
|
+
value?: Model[];
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
/** Interface representing a Models. */
|
|
1854
|
+
export declare interface Models {
|
|
1855
|
+
/**
|
|
1856
|
+
* List Models.
|
|
1857
|
+
* @param location Resource location.
|
|
1858
|
+
* @param options The options parameters.
|
|
1859
|
+
*/
|
|
1860
|
+
list(location: string, options?: ModelsListOptionalParams): PagedAsyncIterableIterator<Model>;
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
/** Describes an available Cognitive Services Model SKU. */
|
|
1864
|
+
export declare interface ModelSku {
|
|
1865
|
+
/** The name of the model SKU. */
|
|
1866
|
+
name?: string;
|
|
1867
|
+
/** The usage name of the model SKU. */
|
|
1868
|
+
usageName?: string;
|
|
1869
|
+
/** The datetime of deprecation of the model SKU. */
|
|
1870
|
+
deprecationDate?: Date;
|
|
1871
|
+
/** The capacity configuration. */
|
|
1872
|
+
capacity?: CapacityConfig;
|
|
1873
|
+
/** The list of rateLimit. */
|
|
1874
|
+
rateLimits?: CallRateLimit[];
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1877
|
+
/** Optional parameters. */
|
|
1878
|
+
export declare interface ModelsListNextOptionalParams extends coreClient.OperationOptions {
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
/** Contains response data for the listNext operation. */
|
|
1882
|
+
export declare type ModelsListNextResponse = ModelListResult;
|
|
1883
|
+
|
|
1884
|
+
/** Optional parameters. */
|
|
1885
|
+
export declare interface ModelsListOptionalParams extends coreClient.OperationOptions {
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
/** Contains response data for the list operation. */
|
|
1889
|
+
export declare type ModelsListResponse = ModelListResult;
|
|
1890
|
+
|
|
1741
1891
|
/** The multiregion settings Cognitive Services account. */
|
|
1742
1892
|
export declare interface MultiRegionSettings {
|
|
1743
1893
|
/** Multiregion routing methods. */
|
|
@@ -1960,7 +2110,7 @@ export declare interface PrivateEndpointConnections {
|
|
|
1960
2110
|
* @param properties The private endpoint connection properties.
|
|
1961
2111
|
* @param options The options parameters.
|
|
1962
2112
|
*/
|
|
1963
|
-
beginCreateOrUpdate(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, properties: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise<
|
|
2113
|
+
beginCreateOrUpdate(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, properties: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>, PrivateEndpointConnectionsCreateOrUpdateResponse>>;
|
|
1964
2114
|
/**
|
|
1965
2115
|
* Update the state of specified private endpoint connection associated with the Cognitive Services
|
|
1966
2116
|
* account.
|
|
@@ -1980,7 +2130,7 @@ export declare interface PrivateEndpointConnections {
|
|
|
1980
2130
|
* Cognitive Services Account
|
|
1981
2131
|
* @param options The options parameters.
|
|
1982
2132
|
*/
|
|
1983
|
-
beginDelete(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<
|
|
2133
|
+
beginDelete(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
1984
2134
|
/**
|
|
1985
2135
|
* Deletes the specified private endpoint connection associated with the Cognitive Services account.
|
|
1986
2136
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -2404,10 +2554,38 @@ export declare interface Usage {
|
|
|
2404
2554
|
|
|
2405
2555
|
/** The response to a list usage request. */
|
|
2406
2556
|
export declare interface UsageListResult {
|
|
2557
|
+
/** The link used to get the next page of Usages. */
|
|
2558
|
+
nextLink?: string;
|
|
2407
2559
|
/** The list of usages for Cognitive Service account. */
|
|
2408
2560
|
value?: Usage[];
|
|
2409
2561
|
}
|
|
2410
2562
|
|
|
2563
|
+
/** Interface representing a Usages. */
|
|
2564
|
+
export declare interface Usages {
|
|
2565
|
+
/**
|
|
2566
|
+
* Get usages for the requested subscription
|
|
2567
|
+
* @param location Resource location.
|
|
2568
|
+
* @param options The options parameters.
|
|
2569
|
+
*/
|
|
2570
|
+
list(location: string, options?: UsagesListOptionalParams): PagedAsyncIterableIterator<Usage>;
|
|
2571
|
+
}
|
|
2572
|
+
|
|
2573
|
+
/** Optional parameters. */
|
|
2574
|
+
export declare interface UsagesListNextOptionalParams extends coreClient.OperationOptions {
|
|
2575
|
+
}
|
|
2576
|
+
|
|
2577
|
+
/** Contains response data for the listNext operation. */
|
|
2578
|
+
export declare type UsagesListNextResponse = UsageListResult;
|
|
2579
|
+
|
|
2580
|
+
/** Optional parameters. */
|
|
2581
|
+
export declare interface UsagesListOptionalParams extends coreClient.OperationOptions {
|
|
2582
|
+
/** An OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of the metric, can have an or of multiple names). */
|
|
2583
|
+
filter?: string;
|
|
2584
|
+
}
|
|
2585
|
+
|
|
2586
|
+
/** Contains response data for the list operation. */
|
|
2587
|
+
export declare type UsagesListResponse = UsageListResult;
|
|
2588
|
+
|
|
2411
2589
|
/** User-assigned managed identity. */
|
|
2412
2590
|
export declare interface UserAssignedIdentity {
|
|
2413
2591
|
/**
|