@azure/arm-cognitiveservices 7.4.1-alpha.20230717.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
- package/types/tsdoc-metadata.json +1 -1
package/src/models/index.ts
CHANGED
|
@@ -161,6 +161,11 @@ export interface AccountProperties {
|
|
|
161
161
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
162
162
|
*/
|
|
163
163
|
readonly commitmentPlanAssociations?: CommitmentPlanAssociation[];
|
|
164
|
+
/**
|
|
165
|
+
* The abuse penalty.
|
|
166
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
167
|
+
*/
|
|
168
|
+
readonly abusePenalty?: AbusePenalty;
|
|
164
169
|
}
|
|
165
170
|
|
|
166
171
|
/** SkuCapability indicates the capability of a certain feature. */
|
|
@@ -366,6 +371,16 @@ export interface CommitmentPlanAssociation {
|
|
|
366
371
|
commitmentPlanLocation?: string;
|
|
367
372
|
}
|
|
368
373
|
|
|
374
|
+
/** The abuse penalty. */
|
|
375
|
+
export interface AbusePenalty {
|
|
376
|
+
/** The action of AbusePenalty. */
|
|
377
|
+
action?: AbusePenaltyAction;
|
|
378
|
+
/** The percentage of rate limit. */
|
|
379
|
+
rateLimitPercentage?: number;
|
|
380
|
+
/** The datetime of expiration of the AbusePenalty. */
|
|
381
|
+
expiration?: Date;
|
|
382
|
+
}
|
|
383
|
+
|
|
369
384
|
/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
|
|
370
385
|
export interface ErrorResponse {
|
|
371
386
|
/** The error object. */
|
|
@@ -499,6 +514,8 @@ export interface AccountSku {
|
|
|
499
514
|
|
|
500
515
|
/** The response to a list usage request. */
|
|
501
516
|
export interface UsageListResult {
|
|
517
|
+
/** The link used to get the next page of Usages. */
|
|
518
|
+
nextLink?: string;
|
|
502
519
|
/** The list of usages for Cognitive Service account. */
|
|
503
520
|
value?: Usage[];
|
|
504
521
|
}
|
|
@@ -543,8 +560,10 @@ export interface DeploymentModel {
|
|
|
543
560
|
format?: string;
|
|
544
561
|
/** Deployment model name. */
|
|
545
562
|
name?: string;
|
|
546
|
-
/** Deployment model version. */
|
|
563
|
+
/** 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. */
|
|
547
564
|
version?: string;
|
|
565
|
+
/** Optional. Deployment model source ARM resource ID. */
|
|
566
|
+
source?: string;
|
|
548
567
|
/**
|
|
549
568
|
* The call rate limit Cognitive Services account.
|
|
550
569
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
@@ -552,6 +571,32 @@ export interface DeploymentModel {
|
|
|
552
571
|
readonly callRateLimit?: CallRateLimit;
|
|
553
572
|
}
|
|
554
573
|
|
|
574
|
+
/** Describes an available Cognitive Services Model SKU. */
|
|
575
|
+
export interface ModelSku {
|
|
576
|
+
/** The name of the model SKU. */
|
|
577
|
+
name?: string;
|
|
578
|
+
/** The usage name of the model SKU. */
|
|
579
|
+
usageName?: string;
|
|
580
|
+
/** The datetime of deprecation of the model SKU. */
|
|
581
|
+
deprecationDate?: Date;
|
|
582
|
+
/** The capacity configuration. */
|
|
583
|
+
capacity?: CapacityConfig;
|
|
584
|
+
/** The list of rateLimit. */
|
|
585
|
+
rateLimits?: CallRateLimit[];
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
/** The capacity configuration. */
|
|
589
|
+
export interface CapacityConfig {
|
|
590
|
+
/** The minimum capacity. */
|
|
591
|
+
minimum?: number;
|
|
592
|
+
/** The maximum capacity. */
|
|
593
|
+
maximum?: number;
|
|
594
|
+
/** The minimal incremental between allowed values for capacity. */
|
|
595
|
+
step?: number;
|
|
596
|
+
/** The default capacity. */
|
|
597
|
+
default?: number;
|
|
598
|
+
}
|
|
599
|
+
|
|
555
600
|
/** Cognitive Services account ModelDeprecationInfo. */
|
|
556
601
|
export interface ModelDeprecationInfo {
|
|
557
602
|
/** The datetime of deprecation of the fineTune Model. */
|
|
@@ -703,6 +748,24 @@ export interface CommitmentCost {
|
|
|
703
748
|
overageMeterId?: string;
|
|
704
749
|
}
|
|
705
750
|
|
|
751
|
+
/** The list of cognitive services models. */
|
|
752
|
+
export interface ModelListResult {
|
|
753
|
+
/** The link used to get the next page of Model. */
|
|
754
|
+
nextLink?: string;
|
|
755
|
+
/** Gets the list of Cognitive Services accounts Model and their properties. */
|
|
756
|
+
value?: Model[];
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
/** Cognitive Services Model. */
|
|
760
|
+
export interface Model {
|
|
761
|
+
/** Model Metadata. */
|
|
762
|
+
model?: AccountModel;
|
|
763
|
+
/** The Kind of the Model. */
|
|
764
|
+
kind?: string;
|
|
765
|
+
/** The SKU of the Model. */
|
|
766
|
+
skuName?: string;
|
|
767
|
+
}
|
|
768
|
+
|
|
706
769
|
/** Check Domain availability parameter. */
|
|
707
770
|
export interface CheckDomainAvailabilityParameter {
|
|
708
771
|
/** The subdomain name to use. */
|
|
@@ -794,6 +857,10 @@ export interface DeploymentProperties {
|
|
|
794
857
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
795
858
|
*/
|
|
796
859
|
readonly callRateLimit?: CallRateLimit;
|
|
860
|
+
/** NOTE: This property will not be serialized. It can only be populated by the server. */
|
|
861
|
+
readonly rateLimits?: ThrottlingRule[];
|
|
862
|
+
/** Deployment model version upgrade option. */
|
|
863
|
+
versionUpgradeOption?: DeploymentModelVersionUpgradeOption;
|
|
797
864
|
}
|
|
798
865
|
|
|
799
866
|
/** Properties of Cognitive Services account deployment model. */
|
|
@@ -844,6 +911,11 @@ export interface CommitmentPlanProperties {
|
|
|
844
911
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
845
912
|
*/
|
|
846
913
|
readonly last?: CommitmentPeriod;
|
|
914
|
+
/**
|
|
915
|
+
* The list of ProvisioningIssue.
|
|
916
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
917
|
+
*/
|
|
918
|
+
readonly provisioningIssues?: string[];
|
|
847
919
|
}
|
|
848
920
|
|
|
849
921
|
/** Cognitive Services account commitment period. */
|
|
@@ -908,6 +980,10 @@ export interface ProxyResource extends Resource {}
|
|
|
908
980
|
export interface AccountModel extends DeploymentModel {
|
|
909
981
|
/** Base Model Identifier. */
|
|
910
982
|
baseModel?: DeploymentModel;
|
|
983
|
+
/** If the model is default version. */
|
|
984
|
+
isDefaultVersion?: boolean;
|
|
985
|
+
/** The list of Model Sku. */
|
|
986
|
+
skus?: ModelSku[];
|
|
911
987
|
/** The max capacity. */
|
|
912
988
|
maxCapacity?: number;
|
|
913
989
|
/** The capabilities. */
|
|
@@ -967,6 +1043,8 @@ export interface Account extends AzureEntityResource {
|
|
|
967
1043
|
|
|
968
1044
|
/** Cognitive Services account deployment. */
|
|
969
1045
|
export interface Deployment extends ProxyResource {
|
|
1046
|
+
/** The resource model definition representing SKU */
|
|
1047
|
+
sku?: Sku;
|
|
970
1048
|
/**
|
|
971
1049
|
* Metadata pertaining to creation and last modification of the resource.
|
|
972
1050
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
@@ -1240,6 +1318,24 @@ export enum KnownRoutingMethods {
|
|
|
1240
1318
|
*/
|
|
1241
1319
|
export type RoutingMethods = string;
|
|
1242
1320
|
|
|
1321
|
+
/** Known values of {@link AbusePenaltyAction} that the service accepts. */
|
|
1322
|
+
export enum KnownAbusePenaltyAction {
|
|
1323
|
+
/** Throttle */
|
|
1324
|
+
Throttle = "Throttle",
|
|
1325
|
+
/** Block */
|
|
1326
|
+
Block = "Block"
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
/**
|
|
1330
|
+
* Defines values for AbusePenaltyAction. \
|
|
1331
|
+
* {@link KnownAbusePenaltyAction} can be used interchangeably with AbusePenaltyAction,
|
|
1332
|
+
* this enum contains the known values that the service supports.
|
|
1333
|
+
* ### Known values supported by the service
|
|
1334
|
+
* **Throttle** \
|
|
1335
|
+
* **Block**
|
|
1336
|
+
*/
|
|
1337
|
+
export type AbusePenaltyAction = string;
|
|
1338
|
+
|
|
1243
1339
|
/** Known values of {@link ResourceSkuRestrictionsReasonCode} that the service accepts. */
|
|
1244
1340
|
export enum KnownResourceSkuRestrictionsReasonCode {
|
|
1245
1341
|
/** QuotaId */
|
|
@@ -1376,7 +1472,9 @@ export enum KnownHostingModel {
|
|
|
1376
1472
|
/** ConnectedContainer */
|
|
1377
1473
|
ConnectedContainer = "ConnectedContainer",
|
|
1378
1474
|
/** DisconnectedContainer */
|
|
1379
|
-
DisconnectedContainer = "DisconnectedContainer"
|
|
1475
|
+
DisconnectedContainer = "DisconnectedContainer",
|
|
1476
|
+
/** ProvisionedWeb */
|
|
1477
|
+
ProvisionedWeb = "ProvisionedWeb"
|
|
1380
1478
|
}
|
|
1381
1479
|
|
|
1382
1480
|
/**
|
|
@@ -1386,7 +1484,8 @@ export enum KnownHostingModel {
|
|
|
1386
1484
|
* ### Known values supported by the service
|
|
1387
1485
|
* **Web** \
|
|
1388
1486
|
* **ConnectedContainer** \
|
|
1389
|
-
* **DisconnectedContainer**
|
|
1487
|
+
* **DisconnectedContainer** \
|
|
1488
|
+
* **ProvisionedWeb**
|
|
1390
1489
|
*/
|
|
1391
1490
|
export type HostingModel = string;
|
|
1392
1491
|
|
|
@@ -1403,7 +1502,11 @@ export enum KnownDeploymentProvisioningState {
|
|
|
1403
1502
|
/** Failed */
|
|
1404
1503
|
Failed = "Failed",
|
|
1405
1504
|
/** Succeeded */
|
|
1406
|
-
Succeeded = "Succeeded"
|
|
1505
|
+
Succeeded = "Succeeded",
|
|
1506
|
+
/** Disabled */
|
|
1507
|
+
Disabled = "Disabled",
|
|
1508
|
+
/** Canceled */
|
|
1509
|
+
Canceled = "Canceled"
|
|
1407
1510
|
}
|
|
1408
1511
|
|
|
1409
1512
|
/**
|
|
@@ -1416,7 +1519,9 @@ export enum KnownDeploymentProvisioningState {
|
|
|
1416
1519
|
* **Deleting** \
|
|
1417
1520
|
* **Moving** \
|
|
1418
1521
|
* **Failed** \
|
|
1419
|
-
* **Succeeded**
|
|
1522
|
+
* **Succeeded** \
|
|
1523
|
+
* **Disabled** \
|
|
1524
|
+
* **Canceled**
|
|
1420
1525
|
*/
|
|
1421
1526
|
export type DeploymentProvisioningState = string;
|
|
1422
1527
|
|
|
@@ -1438,6 +1543,27 @@ export enum KnownDeploymentScaleType {
|
|
|
1438
1543
|
*/
|
|
1439
1544
|
export type DeploymentScaleType = string;
|
|
1440
1545
|
|
|
1546
|
+
/** Known values of {@link DeploymentModelVersionUpgradeOption} that the service accepts. */
|
|
1547
|
+
export enum KnownDeploymentModelVersionUpgradeOption {
|
|
1548
|
+
/** OnceNewDefaultVersionAvailable */
|
|
1549
|
+
OnceNewDefaultVersionAvailable = "OnceNewDefaultVersionAvailable",
|
|
1550
|
+
/** OnceCurrentVersionExpired */
|
|
1551
|
+
OnceCurrentVersionExpired = "OnceCurrentVersionExpired",
|
|
1552
|
+
/** NoAutoUpgrade */
|
|
1553
|
+
NoAutoUpgrade = "NoAutoUpgrade"
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
/**
|
|
1557
|
+
* Defines values for DeploymentModelVersionUpgradeOption. \
|
|
1558
|
+
* {@link KnownDeploymentModelVersionUpgradeOption} can be used interchangeably with DeploymentModelVersionUpgradeOption,
|
|
1559
|
+
* this enum contains the known values that the service supports.
|
|
1560
|
+
* ### Known values supported by the service
|
|
1561
|
+
* **OnceNewDefaultVersionAvailable** \
|
|
1562
|
+
* **OnceCurrentVersionExpired** \
|
|
1563
|
+
* **NoAutoUpgrade**
|
|
1564
|
+
*/
|
|
1565
|
+
export type DeploymentModelVersionUpgradeOption = string;
|
|
1566
|
+
|
|
1441
1567
|
/** Known values of {@link CommitmentPlanProvisioningState} that the service accepts. */
|
|
1442
1568
|
export enum KnownCommitmentPlanProvisioningState {
|
|
1443
1569
|
/** Accepted */
|
|
@@ -1638,6 +1764,22 @@ export interface ResourceSkusListNextOptionalParams
|
|
|
1638
1764
|
/** Contains response data for the listNext operation. */
|
|
1639
1765
|
export type ResourceSkusListNextResponse = ResourceSkuListResult;
|
|
1640
1766
|
|
|
1767
|
+
/** Optional parameters. */
|
|
1768
|
+
export interface UsagesListOptionalParams extends coreClient.OperationOptions {
|
|
1769
|
+
/** 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). */
|
|
1770
|
+
filter?: string;
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
/** Contains response data for the list operation. */
|
|
1774
|
+
export type UsagesListResponse = UsageListResult;
|
|
1775
|
+
|
|
1776
|
+
/** Optional parameters. */
|
|
1777
|
+
export interface UsagesListNextOptionalParams
|
|
1778
|
+
extends coreClient.OperationOptions {}
|
|
1779
|
+
|
|
1780
|
+
/** Contains response data for the listNext operation. */
|
|
1781
|
+
export type UsagesListNextResponse = UsageListResult;
|
|
1782
|
+
|
|
1641
1783
|
/** Optional parameters. */
|
|
1642
1784
|
export interface OperationsListOptionalParams
|
|
1643
1785
|
extends coreClient.OperationOptions {}
|
|
@@ -1683,6 +1825,19 @@ export interface CommitmentTiersListNextOptionalParams
|
|
|
1683
1825
|
/** Contains response data for the listNext operation. */
|
|
1684
1826
|
export type CommitmentTiersListNextResponse = CommitmentTierListResult;
|
|
1685
1827
|
|
|
1828
|
+
/** Optional parameters. */
|
|
1829
|
+
export interface ModelsListOptionalParams extends coreClient.OperationOptions {}
|
|
1830
|
+
|
|
1831
|
+
/** Contains response data for the list operation. */
|
|
1832
|
+
export type ModelsListResponse = ModelListResult;
|
|
1833
|
+
|
|
1834
|
+
/** Optional parameters. */
|
|
1835
|
+
export interface ModelsListNextOptionalParams
|
|
1836
|
+
extends coreClient.OperationOptions {}
|
|
1837
|
+
|
|
1838
|
+
/** Contains response data for the listNext operation. */
|
|
1839
|
+
export type ModelsListNextResponse = ModelListResult;
|
|
1840
|
+
|
|
1686
1841
|
/** Optional parameters. */
|
|
1687
1842
|
export interface PrivateEndpointConnectionsListOptionalParams
|
|
1688
1843
|
extends coreClient.OperationOptions {}
|
package/src/models/mappers.ts
CHANGED
|
@@ -374,6 +374,13 @@ export const AccountProperties: coreClient.CompositeMapper = {
|
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
|
+
},
|
|
378
|
+
abusePenalty: {
|
|
379
|
+
serializedName: "abusePenalty",
|
|
380
|
+
type: {
|
|
381
|
+
name: "Composite",
|
|
382
|
+
className: "AbusePenalty"
|
|
383
|
+
}
|
|
377
384
|
}
|
|
378
385
|
}
|
|
379
386
|
}
|
|
@@ -1008,6 +1015,33 @@ export const CommitmentPlanAssociation: coreClient.CompositeMapper = {
|
|
|
1008
1015
|
}
|
|
1009
1016
|
};
|
|
1010
1017
|
|
|
1018
|
+
export const AbusePenalty: coreClient.CompositeMapper = {
|
|
1019
|
+
type: {
|
|
1020
|
+
name: "Composite",
|
|
1021
|
+
className: "AbusePenalty",
|
|
1022
|
+
modelProperties: {
|
|
1023
|
+
action: {
|
|
1024
|
+
serializedName: "action",
|
|
1025
|
+
type: {
|
|
1026
|
+
name: "String"
|
|
1027
|
+
}
|
|
1028
|
+
},
|
|
1029
|
+
rateLimitPercentage: {
|
|
1030
|
+
serializedName: "rateLimitPercentage",
|
|
1031
|
+
type: {
|
|
1032
|
+
name: "Number"
|
|
1033
|
+
}
|
|
1034
|
+
},
|
|
1035
|
+
expiration: {
|
|
1036
|
+
serializedName: "expiration",
|
|
1037
|
+
type: {
|
|
1038
|
+
name: "DateTime"
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
};
|
|
1044
|
+
|
|
1011
1045
|
export const ErrorResponse: coreClient.CompositeMapper = {
|
|
1012
1046
|
type: {
|
|
1013
1047
|
name: "Composite",
|
|
@@ -1373,6 +1407,12 @@ export const UsageListResult: coreClient.CompositeMapper = {
|
|
|
1373
1407
|
name: "Composite",
|
|
1374
1408
|
className: "UsageListResult",
|
|
1375
1409
|
modelProperties: {
|
|
1410
|
+
nextLink: {
|
|
1411
|
+
serializedName: "nextLink",
|
|
1412
|
+
type: {
|
|
1413
|
+
name: "String"
|
|
1414
|
+
}
|
|
1415
|
+
},
|
|
1376
1416
|
value: {
|
|
1377
1417
|
serializedName: "value",
|
|
1378
1418
|
type: {
|
|
@@ -1512,6 +1552,12 @@ export const DeploymentModel: coreClient.CompositeMapper = {
|
|
|
1512
1552
|
name: "String"
|
|
1513
1553
|
}
|
|
1514
1554
|
},
|
|
1555
|
+
source: {
|
|
1556
|
+
serializedName: "source",
|
|
1557
|
+
type: {
|
|
1558
|
+
name: "String"
|
|
1559
|
+
}
|
|
1560
|
+
},
|
|
1515
1561
|
callRateLimit: {
|
|
1516
1562
|
serializedName: "callRateLimit",
|
|
1517
1563
|
type: {
|
|
@@ -1523,6 +1569,85 @@ export const DeploymentModel: coreClient.CompositeMapper = {
|
|
|
1523
1569
|
}
|
|
1524
1570
|
};
|
|
1525
1571
|
|
|
1572
|
+
export const ModelSku: coreClient.CompositeMapper = {
|
|
1573
|
+
type: {
|
|
1574
|
+
name: "Composite",
|
|
1575
|
+
className: "ModelSku",
|
|
1576
|
+
modelProperties: {
|
|
1577
|
+
name: {
|
|
1578
|
+
serializedName: "name",
|
|
1579
|
+
type: {
|
|
1580
|
+
name: "String"
|
|
1581
|
+
}
|
|
1582
|
+
},
|
|
1583
|
+
usageName: {
|
|
1584
|
+
serializedName: "usageName",
|
|
1585
|
+
type: {
|
|
1586
|
+
name: "String"
|
|
1587
|
+
}
|
|
1588
|
+
},
|
|
1589
|
+
deprecationDate: {
|
|
1590
|
+
serializedName: "deprecationDate",
|
|
1591
|
+
type: {
|
|
1592
|
+
name: "DateTime"
|
|
1593
|
+
}
|
|
1594
|
+
},
|
|
1595
|
+
capacity: {
|
|
1596
|
+
serializedName: "capacity",
|
|
1597
|
+
type: {
|
|
1598
|
+
name: "Composite",
|
|
1599
|
+
className: "CapacityConfig"
|
|
1600
|
+
}
|
|
1601
|
+
},
|
|
1602
|
+
rateLimits: {
|
|
1603
|
+
serializedName: "rateLimits",
|
|
1604
|
+
type: {
|
|
1605
|
+
name: "Sequence",
|
|
1606
|
+
element: {
|
|
1607
|
+
type: {
|
|
1608
|
+
name: "Composite",
|
|
1609
|
+
className: "CallRateLimit"
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
};
|
|
1617
|
+
|
|
1618
|
+
export const CapacityConfig: coreClient.CompositeMapper = {
|
|
1619
|
+
type: {
|
|
1620
|
+
name: "Composite",
|
|
1621
|
+
className: "CapacityConfig",
|
|
1622
|
+
modelProperties: {
|
|
1623
|
+
minimum: {
|
|
1624
|
+
serializedName: "minimum",
|
|
1625
|
+
type: {
|
|
1626
|
+
name: "Number"
|
|
1627
|
+
}
|
|
1628
|
+
},
|
|
1629
|
+
maximum: {
|
|
1630
|
+
serializedName: "maximum",
|
|
1631
|
+
type: {
|
|
1632
|
+
name: "Number"
|
|
1633
|
+
}
|
|
1634
|
+
},
|
|
1635
|
+
step: {
|
|
1636
|
+
serializedName: "step",
|
|
1637
|
+
type: {
|
|
1638
|
+
name: "Number"
|
|
1639
|
+
}
|
|
1640
|
+
},
|
|
1641
|
+
default: {
|
|
1642
|
+
serializedName: "default",
|
|
1643
|
+
type: {
|
|
1644
|
+
name: "Number"
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1649
|
+
};
|
|
1650
|
+
|
|
1526
1651
|
export const ModelDeprecationInfo: coreClient.CompositeMapper = {
|
|
1527
1652
|
type: {
|
|
1528
1653
|
name: "Composite",
|
|
@@ -1884,6 +2009,61 @@ export const CommitmentCost: coreClient.CompositeMapper = {
|
|
|
1884
2009
|
}
|
|
1885
2010
|
};
|
|
1886
2011
|
|
|
2012
|
+
export const ModelListResult: coreClient.CompositeMapper = {
|
|
2013
|
+
type: {
|
|
2014
|
+
name: "Composite",
|
|
2015
|
+
className: "ModelListResult",
|
|
2016
|
+
modelProperties: {
|
|
2017
|
+
nextLink: {
|
|
2018
|
+
serializedName: "nextLink",
|
|
2019
|
+
type: {
|
|
2020
|
+
name: "String"
|
|
2021
|
+
}
|
|
2022
|
+
},
|
|
2023
|
+
value: {
|
|
2024
|
+
serializedName: "value",
|
|
2025
|
+
type: {
|
|
2026
|
+
name: "Sequence",
|
|
2027
|
+
element: {
|
|
2028
|
+
type: {
|
|
2029
|
+
name: "Composite",
|
|
2030
|
+
className: "Model"
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
}
|
|
2035
|
+
}
|
|
2036
|
+
}
|
|
2037
|
+
};
|
|
2038
|
+
|
|
2039
|
+
export const Model: coreClient.CompositeMapper = {
|
|
2040
|
+
type: {
|
|
2041
|
+
name: "Composite",
|
|
2042
|
+
className: "Model",
|
|
2043
|
+
modelProperties: {
|
|
2044
|
+
model: {
|
|
2045
|
+
serializedName: "model",
|
|
2046
|
+
type: {
|
|
2047
|
+
name: "Composite",
|
|
2048
|
+
className: "AccountModel"
|
|
2049
|
+
}
|
|
2050
|
+
},
|
|
2051
|
+
kind: {
|
|
2052
|
+
serializedName: "kind",
|
|
2053
|
+
type: {
|
|
2054
|
+
name: "String"
|
|
2055
|
+
}
|
|
2056
|
+
},
|
|
2057
|
+
skuName: {
|
|
2058
|
+
serializedName: "skuName",
|
|
2059
|
+
type: {
|
|
2060
|
+
name: "String"
|
|
2061
|
+
}
|
|
2062
|
+
}
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
};
|
|
2066
|
+
|
|
1887
2067
|
export const CheckDomainAvailabilityParameter: coreClient.CompositeMapper = {
|
|
1888
2068
|
type: {
|
|
1889
2069
|
name: "Composite",
|
|
@@ -2114,6 +2294,25 @@ export const DeploymentProperties: coreClient.CompositeMapper = {
|
|
|
2114
2294
|
name: "Composite",
|
|
2115
2295
|
className: "CallRateLimit"
|
|
2116
2296
|
}
|
|
2297
|
+
},
|
|
2298
|
+
rateLimits: {
|
|
2299
|
+
serializedName: "rateLimits",
|
|
2300
|
+
readOnly: true,
|
|
2301
|
+
type: {
|
|
2302
|
+
name: "Sequence",
|
|
2303
|
+
element: {
|
|
2304
|
+
type: {
|
|
2305
|
+
name: "Composite",
|
|
2306
|
+
className: "ThrottlingRule"
|
|
2307
|
+
}
|
|
2308
|
+
}
|
|
2309
|
+
}
|
|
2310
|
+
},
|
|
2311
|
+
versionUpgradeOption: {
|
|
2312
|
+
serializedName: "versionUpgradeOption",
|
|
2313
|
+
type: {
|
|
2314
|
+
name: "String"
|
|
2315
|
+
}
|
|
2117
2316
|
}
|
|
2118
2317
|
}
|
|
2119
2318
|
}
|
|
@@ -2231,6 +2430,18 @@ export const CommitmentPlanProperties: coreClient.CompositeMapper = {
|
|
|
2231
2430
|
name: "Composite",
|
|
2232
2431
|
className: "CommitmentPeriod"
|
|
2233
2432
|
}
|
|
2433
|
+
},
|
|
2434
|
+
provisioningIssues: {
|
|
2435
|
+
serializedName: "provisioningIssues",
|
|
2436
|
+
readOnly: true,
|
|
2437
|
+
type: {
|
|
2438
|
+
name: "Sequence",
|
|
2439
|
+
element: {
|
|
2440
|
+
type: {
|
|
2441
|
+
name: "String"
|
|
2442
|
+
}
|
|
2443
|
+
}
|
|
2444
|
+
}
|
|
2234
2445
|
}
|
|
2235
2446
|
}
|
|
2236
2447
|
}
|
|
@@ -2379,6 +2590,24 @@ export const AccountModel: coreClient.CompositeMapper = {
|
|
|
2379
2590
|
className: "DeploymentModel"
|
|
2380
2591
|
}
|
|
2381
2592
|
},
|
|
2593
|
+
isDefaultVersion: {
|
|
2594
|
+
serializedName: "isDefaultVersion",
|
|
2595
|
+
type: {
|
|
2596
|
+
name: "Boolean"
|
|
2597
|
+
}
|
|
2598
|
+
},
|
|
2599
|
+
skus: {
|
|
2600
|
+
serializedName: "skus",
|
|
2601
|
+
type: {
|
|
2602
|
+
name: "Sequence",
|
|
2603
|
+
element: {
|
|
2604
|
+
type: {
|
|
2605
|
+
name: "Composite",
|
|
2606
|
+
className: "ModelSku"
|
|
2607
|
+
}
|
|
2608
|
+
}
|
|
2609
|
+
}
|
|
2610
|
+
},
|
|
2382
2611
|
maxCapacity: {
|
|
2383
2612
|
serializedName: "maxCapacity",
|
|
2384
2613
|
type: {
|
|
@@ -2533,6 +2762,13 @@ export const Deployment: coreClient.CompositeMapper = {
|
|
|
2533
2762
|
className: "Deployment",
|
|
2534
2763
|
modelProperties: {
|
|
2535
2764
|
...ProxyResource.type.modelProperties,
|
|
2765
|
+
sku: {
|
|
2766
|
+
serializedName: "sku",
|
|
2767
|
+
type: {
|
|
2768
|
+
name: "Composite",
|
|
2769
|
+
className: "Sku"
|
|
2770
|
+
}
|
|
2771
|
+
},
|
|
2536
2772
|
systemData: {
|
|
2537
2773
|
serializedName: "systemData",
|
|
2538
2774
|
type: {
|
package/src/models/parameters.ts
CHANGED
|
@@ -98,7 +98,7 @@ export const accountName: OperationURLParameter = {
|
|
|
98
98
|
export const apiVersion: OperationQueryParameter = {
|
|
99
99
|
parameterPath: "apiVersion",
|
|
100
100
|
mapper: {
|
|
101
|
-
defaultValue: "
|
|
101
|
+
defaultValue: "2023-05-01",
|
|
102
102
|
isConstant: true,
|
|
103
103
|
serializedName: "api-version",
|
|
104
104
|
type: {
|