@azure/arm-cognitiveservices 7.3.1 → 7.4.0-alpha.20230220.1

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.
Files changed (163) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/LICENSE +1 -1
  3. package/dist/index.js +1232 -42
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/accountsCreateSample.js +17 -8
  8. package/dist-esm/samples-dev/accountsCreateSample.js.map +1 -1
  9. package/dist-esm/samples-dev/accountsDeleteSample.js +12 -4
  10. package/dist-esm/samples-dev/accountsDeleteSample.js.map +1 -1
  11. package/dist-esm/samples-dev/accountsGetSample.js +12 -4
  12. package/dist-esm/samples-dev/accountsGetSample.js.map +1 -1
  13. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +12 -4
  14. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js.map +1 -1
  15. package/dist-esm/samples-dev/accountsListKeysSample.js +12 -4
  16. package/dist-esm/samples-dev/accountsListKeysSample.js.map +1 -1
  17. package/dist-esm/samples-dev/accountsListModelsSample.js +11 -4
  18. package/dist-esm/samples-dev/accountsListModelsSample.js.map +1 -1
  19. package/dist-esm/samples-dev/accountsListSample.js +11 -3
  20. package/dist-esm/samples-dev/accountsListSample.js.map +1 -1
  21. package/dist-esm/samples-dev/accountsListSkusSample.js +12 -4
  22. package/dist-esm/samples-dev/accountsListSkusSample.js.map +1 -1
  23. package/dist-esm/samples-dev/accountsListUsagesSample.js +12 -4
  24. package/dist-esm/samples-dev/accountsListUsagesSample.js.map +1 -1
  25. package/dist-esm/samples-dev/accountsRegenerateKeySample.js +12 -4
  26. package/dist-esm/samples-dev/accountsRegenerateKeySample.js.map +1 -1
  27. package/dist-esm/samples-dev/accountsUpdateSample.js +12 -4
  28. package/dist-esm/samples-dev/accountsUpdateSample.js.map +1 -1
  29. package/dist-esm/samples-dev/checkDomainAvailabilitySample.js +11 -3
  30. package/dist-esm/samples-dev/checkDomainAvailabilitySample.js.map +1 -1
  31. package/dist-esm/samples-dev/checkSkuAvailabilitySample.js +11 -3
  32. package/dist-esm/samples-dev/checkSkuAvailabilitySample.js.map +1 -1
  33. package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateAssociationSample.d.ts +2 -0
  34. package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateAssociationSample.d.ts.map +1 -0
  35. package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateAssociationSample.js +43 -0
  36. package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateAssociationSample.js.map +1 -0
  37. package/dist-esm/samples-dev/commitmentPlansCreateOrUpdatePlanSample.d.ts +2 -0
  38. package/dist-esm/samples-dev/commitmentPlansCreateOrUpdatePlanSample.d.ts.map +1 -0
  39. package/dist-esm/samples-dev/commitmentPlansCreateOrUpdatePlanSample.js +50 -0
  40. package/dist-esm/samples-dev/commitmentPlansCreateOrUpdatePlanSample.js.map +1 -0
  41. package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateSample.js +11 -4
  42. package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateSample.js.map +1 -1
  43. package/dist-esm/samples-dev/commitmentPlansDeleteAssociationSample.d.ts +2 -0
  44. package/dist-esm/samples-dev/commitmentPlansDeleteAssociationSample.d.ts.map +1 -0
  45. package/dist-esm/samples-dev/commitmentPlansDeleteAssociationSample.js +40 -0
  46. package/dist-esm/samples-dev/commitmentPlansDeleteAssociationSample.js.map +1 -0
  47. package/dist-esm/samples-dev/commitmentPlansDeletePlanSample.d.ts +2 -0
  48. package/dist-esm/samples-dev/commitmentPlansDeletePlanSample.d.ts.map +1 -0
  49. package/dist-esm/samples-dev/commitmentPlansDeletePlanSample.js +39 -0
  50. package/dist-esm/samples-dev/commitmentPlansDeletePlanSample.js.map +1 -0
  51. package/dist-esm/samples-dev/commitmentPlansDeleteSample.js +11 -4
  52. package/dist-esm/samples-dev/commitmentPlansDeleteSample.js.map +1 -1
  53. package/dist-esm/samples-dev/commitmentPlansGetAssociationSample.d.ts +2 -0
  54. package/dist-esm/samples-dev/commitmentPlansGetAssociationSample.d.ts.map +1 -0
  55. package/dist-esm/samples-dev/commitmentPlansGetAssociationSample.js +40 -0
  56. package/dist-esm/samples-dev/commitmentPlansGetAssociationSample.js.map +1 -0
  57. package/dist-esm/samples-dev/commitmentPlansGetPlanSample.d.ts +2 -0
  58. package/dist-esm/samples-dev/commitmentPlansGetPlanSample.d.ts.map +1 -0
  59. package/dist-esm/samples-dev/commitmentPlansGetPlanSample.js +39 -0
  60. package/dist-esm/samples-dev/commitmentPlansGetPlanSample.js.map +1 -0
  61. package/dist-esm/samples-dev/commitmentPlansGetSample.js +11 -4
  62. package/dist-esm/samples-dev/commitmentPlansGetSample.js.map +1 -1
  63. package/dist-esm/samples-dev/commitmentPlansListAssociationsSample.d.ts +2 -0
  64. package/dist-esm/samples-dev/commitmentPlansListAssociationsSample.d.ts.map +1 -0
  65. package/dist-esm/samples-dev/commitmentPlansListAssociationsSample.js +53 -0
  66. package/dist-esm/samples-dev/commitmentPlansListAssociationsSample.js.map +1 -0
  67. package/dist-esm/samples-dev/commitmentPlansListPlansByResourceGroupSample.d.ts +2 -0
  68. package/dist-esm/samples-dev/commitmentPlansListPlansByResourceGroupSample.d.ts.map +1 -0
  69. package/dist-esm/samples-dev/commitmentPlansListPlansByResourceGroupSample.js +52 -0
  70. package/dist-esm/samples-dev/commitmentPlansListPlansByResourceGroupSample.js.map +1 -0
  71. package/dist-esm/samples-dev/commitmentPlansListPlansBySubscriptionSample.d.ts +2 -0
  72. package/dist-esm/samples-dev/commitmentPlansListPlansBySubscriptionSample.d.ts.map +1 -0
  73. package/dist-esm/samples-dev/commitmentPlansListPlansBySubscriptionSample.js +51 -0
  74. package/dist-esm/samples-dev/commitmentPlansListPlansBySubscriptionSample.js.map +1 -0
  75. package/dist-esm/samples-dev/commitmentPlansListSample.js +11 -4
  76. package/dist-esm/samples-dev/commitmentPlansListSample.js.map +1 -1
  77. package/dist-esm/samples-dev/commitmentPlansUpdatePlanSample.d.ts +2 -0
  78. package/dist-esm/samples-dev/commitmentPlansUpdatePlanSample.d.ts.map +1 -0
  79. package/dist-esm/samples-dev/commitmentPlansUpdatePlanSample.js +40 -0
  80. package/dist-esm/samples-dev/commitmentPlansUpdatePlanSample.js.map +1 -0
  81. package/dist-esm/samples-dev/commitmentTiersListSample.js +10 -3
  82. package/dist-esm/samples-dev/commitmentTiersListSample.js.map +1 -1
  83. package/dist-esm/samples-dev/deletedAccountsGetSample.js +12 -4
  84. package/dist-esm/samples-dev/deletedAccountsGetSample.js.map +1 -1
  85. package/dist-esm/samples-dev/deletedAccountsListSample.js +11 -3
  86. package/dist-esm/samples-dev/deletedAccountsListSample.js.map +1 -1
  87. package/dist-esm/samples-dev/deletedAccountsPurgeSample.js +12 -4
  88. package/dist-esm/samples-dev/deletedAccountsPurgeSample.js.map +1 -1
  89. package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js +11 -4
  90. package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js.map +1 -1
  91. package/dist-esm/samples-dev/deploymentsDeleteSample.js +11 -4
  92. package/dist-esm/samples-dev/deploymentsDeleteSample.js.map +1 -1
  93. package/dist-esm/samples-dev/deploymentsGetSample.js +11 -4
  94. package/dist-esm/samples-dev/deploymentsGetSample.js.map +1 -1
  95. package/dist-esm/samples-dev/deploymentsListSample.js +11 -4
  96. package/dist-esm/samples-dev/deploymentsListSample.js.map +1 -1
  97. package/dist-esm/samples-dev/operationsListSample.js +11 -3
  98. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  99. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +11 -4
  100. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +1 -1
  101. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +11 -4
  102. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -1
  103. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +11 -4
  104. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -1
  105. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +11 -4
  106. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -1
  107. package/dist-esm/samples-dev/privateLinkResourcesListSample.js +11 -4
  108. package/dist-esm/samples-dev/privateLinkResourcesListSample.js.map +1 -1
  109. package/dist-esm/samples-dev/resourceSkusListSample.js +11 -3
  110. package/dist-esm/samples-dev/resourceSkusListSample.js.map +1 -1
  111. package/dist-esm/src/cognitiveServicesManagementClient.js +2 -2
  112. package/dist-esm/src/models/index.d.ts +248 -0
  113. package/dist-esm/src/models/index.d.ts.map +1 -1
  114. package/dist-esm/src/models/index.js +36 -0
  115. package/dist-esm/src/models/index.js.map +1 -1
  116. package/dist-esm/src/models/mappers.d.ts +10 -0
  117. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  118. package/dist-esm/src/models/mappers.js +259 -0
  119. package/dist-esm/src/models/mappers.js.map +1 -1
  120. package/dist-esm/src/models/parameters.d.ts +4 -0
  121. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  122. package/dist-esm/src/models/parameters.js +36 -2
  123. package/dist-esm/src/models/parameters.js.map +1 -1
  124. package/dist-esm/src/operations/accounts.js +0 -3
  125. package/dist-esm/src/operations/accounts.js.map +1 -1
  126. package/dist-esm/src/operations/commitmentPlans.d.ts +181 -1
  127. package/dist-esm/src/operations/commitmentPlans.d.ts.map +1 -1
  128. package/dist-esm/src/operations/commitmentPlans.js +864 -5
  129. package/dist-esm/src/operations/commitmentPlans.js.map +1 -1
  130. package/dist-esm/src/operations/commitmentTiers.js +0 -1
  131. package/dist-esm/src/operations/commitmentTiers.js.map +1 -1
  132. package/dist-esm/src/operations/deletedAccounts.js +0 -1
  133. package/dist-esm/src/operations/deletedAccounts.js.map +1 -1
  134. package/dist-esm/src/operations/deployments.js +0 -1
  135. package/dist-esm/src/operations/deployments.js.map +1 -1
  136. package/dist-esm/src/operations/operations.js +0 -1
  137. package/dist-esm/src/operations/operations.js.map +1 -1
  138. package/dist-esm/src/operations/resourceSkus.js +0 -1
  139. package/dist-esm/src/operations/resourceSkus.js.map +1 -1
  140. package/dist-esm/src/operationsInterfaces/commitmentPlans.d.ts +132 -1
  141. package/dist-esm/src/operationsInterfaces/commitmentPlans.d.ts.map +1 -1
  142. package/dist-esm/src/pagingHelper.d.ts +4 -4
  143. package/dist-esm/src/pagingHelper.js +4 -4
  144. package/dist-esm/test/cognitiveservices_examples.d.ts.map +1 -1
  145. package/dist-esm/test/cognitiveservices_examples.js +19 -0
  146. package/dist-esm/test/cognitiveservices_examples.js.map +1 -1
  147. package/package.json +8 -7
  148. package/review/arm-cognitiveservices.api.md +220 -0
  149. package/src/cognitiveServicesManagementClient.ts +2 -2
  150. package/src/models/index.ts +287 -0
  151. package/src/models/mappers.ts +283 -0
  152. package/src/models/parameters.ts +42 -2
  153. package/src/operations/accounts.ts +0 -3
  154. package/src/operations/commitmentPlans.ts +1222 -47
  155. package/src/operations/commitmentTiers.ts +0 -1
  156. package/src/operations/deletedAccounts.ts +0 -1
  157. package/src/operations/deployments.ts +0 -1
  158. package/src/operations/operations.ts +0 -1
  159. package/src/operations/resourceSkus.ts +0 -1
  160. package/src/operationsInterfaces/commitmentPlans.ts +232 -1
  161. package/src/pagingHelper.ts +4 -4
  162. package/types/arm-cognitiveservices.d.ts +423 -4
  163. package/types/tsdoc-metadata.json +1 -1
@@ -154,6 +154,13 @@ export interface AccountProperties {
154
154
  * NOTE: This property will not be serialized. It can only be populated by the server.
155
155
  */
156
156
  readonly scheduledPurgeDate?: string;
157
+ /** The multiregion settings of Cognitive Services account. */
158
+ locations?: MultiRegionSettings;
159
+ /**
160
+ * The commitment plan associations of Cognitive Services account.
161
+ * NOTE: This property will not be serialized. It can only be populated by the server.
162
+ */
163
+ readonly commitmentPlanAssociations?: CommitmentPlanAssociation[];
157
164
  }
158
165
 
159
166
  /** SkuCapability indicates the capability of a certain feature. */
@@ -334,6 +341,31 @@ export interface QuotaLimit {
334
341
  rules?: ThrottlingRule[];
335
342
  }
336
343
 
344
+ /** The multiregion settings Cognitive Services account. */
345
+ export interface MultiRegionSettings {
346
+ /** Multiregion routing methods. */
347
+ routingMethod?: RoutingMethods;
348
+ regions?: RegionSetting[];
349
+ }
350
+
351
+ /** The call rate limit Cognitive Services account. */
352
+ export interface RegionSetting {
353
+ /** Name of the region. */
354
+ name?: string;
355
+ /** A value for priority or weighted routing methods. */
356
+ value?: number;
357
+ /** Maps the region to the regional custom subdomain. */
358
+ customsubdomain?: string;
359
+ }
360
+
361
+ /** The commitment plan association. */
362
+ export interface CommitmentPlanAssociation {
363
+ /** The Azure resource id of the commitment plan. */
364
+ commitmentPlanId?: string;
365
+ /** The location of of the commitment plan. */
366
+ commitmentPlanLocation?: string;
367
+ }
368
+
337
369
  /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
338
370
  export interface ErrorResponse {
339
371
  /** The error object. */
@@ -790,6 +822,13 @@ export interface CommitmentPlanListResult {
790
822
 
791
823
  /** Properties of Cognitive Services account commitment plan. */
792
824
  export interface CommitmentPlanProperties {
825
+ /**
826
+ * Gets the status of the resource at the time the operation was called.
827
+ * NOTE: This property will not be serialized. It can only be populated by the server.
828
+ */
829
+ readonly provisioningState?: CommitmentPlanProvisioningState;
830
+ /** Commitment plan guid. */
831
+ commitmentPlanGuid?: string;
793
832
  /** Account hosting model. */
794
833
  hostingModel?: HostingModel;
795
834
  /** Commitment plan type. */
@@ -830,6 +869,23 @@ export interface CommitmentPeriod {
830
869
  readonly endDate?: string;
831
870
  }
832
871
 
872
+ /** The object being used to update tags of a resource, in general used for PATCH operations. */
873
+ export interface PatchResourceTags {
874
+ /** Resource tags. */
875
+ tags?: { [propertyName: string]: string };
876
+ }
877
+
878
+ /** The list of cognitive services Commitment Plan Account Association operation response. */
879
+ export interface CommitmentPlanAccountAssociationListResult {
880
+ /** The link used to get the next page of Commitment Plan Account Association. */
881
+ nextLink?: string;
882
+ /**
883
+ * Gets the list of Cognitive Services Commitment Plan Account Association and their properties.
884
+ * NOTE: This property will not be serialized. It can only be populated by the server.
885
+ */
886
+ readonly value?: CommitmentPlanAccountAssociation[];
887
+ }
888
+
833
889
  /** The resource model definition for an Azure Resource Manager resource with an etag. */
834
890
  export interface AzureEntityResource extends Resource {
835
891
  /**
@@ -856,8 +912,12 @@ export interface AccountModel extends DeploymentModel {
856
912
  maxCapacity?: number;
857
913
  /** The capabilities. */
858
914
  capabilities?: { [propertyName: string]: string };
915
+ /** The capabilities for finetune models. */
916
+ finetuneCapabilities?: { [propertyName: string]: string };
859
917
  /** Cognitive Services account ModelDeprecationInfo. */
860
918
  deprecation?: ModelDeprecationInfo;
919
+ /** Model lifecycle status. */
920
+ lifecycleStatus?: ModelLifecycleStatus;
861
921
  /**
862
922
  * Metadata pertaining to creation and last modification of the resource.
863
923
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -865,6 +925,12 @@ export interface AccountModel extends DeploymentModel {
865
925
  readonly systemData?: SystemData;
866
926
  }
867
927
 
928
+ /** The object being used to update tags and sku of a resource, in general used for PATCH operations. */
929
+ export interface PatchResourceTagsAndSku extends PatchResourceTags {
930
+ /** The resource model definition representing SKU */
931
+ sku?: Sku;
932
+ }
933
+
868
934
  /** The Private Endpoint Connection resource. */
869
935
  export interface PrivateEndpointConnection extends AzureEntityResource {
870
936
  /** Resource properties. */
@@ -927,10 +993,49 @@ export interface CommitmentPlan extends ProxyResource {
927
993
  * NOTE: This property will not be serialized. It can only be populated by the server.
928
994
  */
929
995
  readonly etag?: string;
996
+ /** The Kind of the resource. */
997
+ kind?: string;
998
+ /** The resource model definition representing SKU */
999
+ sku?: Sku;
1000
+ /** Resource tags. */
1001
+ tags?: { [propertyName: string]: string };
1002
+ /** The geo-location where the resource lives */
1003
+ location?: string;
930
1004
  /** Properties of Cognitive Services account commitment plan. */
931
1005
  properties?: CommitmentPlanProperties;
932
1006
  }
933
1007
 
1008
+ /** The commitment plan association. */
1009
+ export interface CommitmentPlanAccountAssociation extends ProxyResource {
1010
+ /**
1011
+ * Metadata pertaining to creation and last modification of the resource.
1012
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1013
+ */
1014
+ readonly systemData?: SystemData;
1015
+ /**
1016
+ * Resource Etag.
1017
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1018
+ */
1019
+ readonly etag?: string;
1020
+ /** The Azure resource id of the account. */
1021
+ accountId?: string;
1022
+ }
1023
+
1024
+ /** Defines headers for CommitmentPlans_updatePlan operation. */
1025
+ export interface CommitmentPlansUpdatePlanHeaders {
1026
+ location?: string;
1027
+ }
1028
+
1029
+ /** Defines headers for CommitmentPlans_deletePlan operation. */
1030
+ export interface CommitmentPlansDeletePlanHeaders {
1031
+ location?: string;
1032
+ }
1033
+
1034
+ /** Defines headers for CommitmentPlans_deleteAssociation operation. */
1035
+ export interface CommitmentPlansDeleteAssociationHeaders {
1036
+ location?: string;
1037
+ }
1038
+
934
1039
  /** Known values of {@link SkuTier} that the service accepts. */
935
1040
  export enum KnownSkuTier {
936
1041
  /** Free */
@@ -1114,6 +1219,27 @@ export enum KnownPublicNetworkAccess {
1114
1219
  */
1115
1220
  export type PublicNetworkAccess = string;
1116
1221
 
1222
+ /** Known values of {@link RoutingMethods} that the service accepts. */
1223
+ export enum KnownRoutingMethods {
1224
+ /** Priority */
1225
+ Priority = "Priority",
1226
+ /** Weighted */
1227
+ Weighted = "Weighted",
1228
+ /** Performance */
1229
+ Performance = "Performance"
1230
+ }
1231
+
1232
+ /**
1233
+ * Defines values for RoutingMethods. \
1234
+ * {@link KnownRoutingMethods} can be used interchangeably with RoutingMethods,
1235
+ * this enum contains the known values that the service supports.
1236
+ * ### Known values supported by the service
1237
+ * **Priority** \
1238
+ * **Weighted** \
1239
+ * **Performance**
1240
+ */
1241
+ export type RoutingMethods = string;
1242
+
1117
1243
  /** Known values of {@link ResourceSkuRestrictionsReasonCode} that the service accepts. */
1118
1244
  export enum KnownResourceSkuRestrictionsReasonCode {
1119
1245
  /** QuotaId */
@@ -1189,6 +1315,24 @@ export enum KnownQuotaUsageStatus {
1189
1315
  */
1190
1316
  export type QuotaUsageStatus = string;
1191
1317
 
1318
+ /** Known values of {@link ModelLifecycleStatus} that the service accepts. */
1319
+ export enum KnownModelLifecycleStatus {
1320
+ /** GenerallyAvailable */
1321
+ GenerallyAvailable = "GenerallyAvailable",
1322
+ /** Preview */
1323
+ Preview = "Preview"
1324
+ }
1325
+
1326
+ /**
1327
+ * Defines values for ModelLifecycleStatus. \
1328
+ * {@link KnownModelLifecycleStatus} can be used interchangeably with ModelLifecycleStatus,
1329
+ * this enum contains the known values that the service supports.
1330
+ * ### Known values supported by the service
1331
+ * **GenerallyAvailable** \
1332
+ * **Preview**
1333
+ */
1334
+ export type ModelLifecycleStatus = string;
1335
+
1192
1336
  /** Known values of {@link Origin} that the service accepts. */
1193
1337
  export enum KnownOrigin {
1194
1338
  /** User */
@@ -1293,6 +1437,39 @@ export enum KnownDeploymentScaleType {
1293
1437
  * **Manual**
1294
1438
  */
1295
1439
  export type DeploymentScaleType = string;
1440
+
1441
+ /** Known values of {@link CommitmentPlanProvisioningState} that the service accepts. */
1442
+ export enum KnownCommitmentPlanProvisioningState {
1443
+ /** Accepted */
1444
+ Accepted = "Accepted",
1445
+ /** Creating */
1446
+ Creating = "Creating",
1447
+ /** Deleting */
1448
+ Deleting = "Deleting",
1449
+ /** Moving */
1450
+ Moving = "Moving",
1451
+ /** Failed */
1452
+ Failed = "Failed",
1453
+ /** Succeeded */
1454
+ Succeeded = "Succeeded",
1455
+ /** Canceled */
1456
+ Canceled = "Canceled"
1457
+ }
1458
+
1459
+ /**
1460
+ * Defines values for CommitmentPlanProvisioningState. \
1461
+ * {@link KnownCommitmentPlanProvisioningState} can be used interchangeably with CommitmentPlanProvisioningState,
1462
+ * this enum contains the known values that the service supports.
1463
+ * ### Known values supported by the service
1464
+ * **Accepted** \
1465
+ * **Creating** \
1466
+ * **Deleting** \
1467
+ * **Moving** \
1468
+ * **Failed** \
1469
+ * **Succeeded** \
1470
+ * **Canceled**
1471
+ */
1472
+ export type CommitmentPlanProvisioningState = string;
1296
1473
  /** Defines values for ResourceIdentityType. */
1297
1474
  export type ResourceIdentityType =
1298
1475
  | "None"
@@ -1620,6 +1797,95 @@ export interface CommitmentPlansDeleteOptionalParams
1620
1797
  resumeFrom?: string;
1621
1798
  }
1622
1799
 
1800
+ /** Optional parameters. */
1801
+ export interface CommitmentPlansCreateOrUpdatePlanOptionalParams
1802
+ extends coreClient.OperationOptions {
1803
+ /** Delay to wait until next poll, in milliseconds. */
1804
+ updateIntervalInMs?: number;
1805
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1806
+ resumeFrom?: string;
1807
+ }
1808
+
1809
+ /** Contains response data for the createOrUpdatePlan operation. */
1810
+ export type CommitmentPlansCreateOrUpdatePlanResponse = CommitmentPlan;
1811
+
1812
+ /** Optional parameters. */
1813
+ export interface CommitmentPlansUpdatePlanOptionalParams
1814
+ extends coreClient.OperationOptions {
1815
+ /** Delay to wait until next poll, in milliseconds. */
1816
+ updateIntervalInMs?: number;
1817
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1818
+ resumeFrom?: string;
1819
+ }
1820
+
1821
+ /** Contains response data for the updatePlan operation. */
1822
+ export type CommitmentPlansUpdatePlanResponse = CommitmentPlan;
1823
+
1824
+ /** Optional parameters. */
1825
+ export interface CommitmentPlansDeletePlanOptionalParams
1826
+ extends coreClient.OperationOptions {
1827
+ /** Delay to wait until next poll, in milliseconds. */
1828
+ updateIntervalInMs?: number;
1829
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1830
+ resumeFrom?: string;
1831
+ }
1832
+
1833
+ /** Optional parameters. */
1834
+ export interface CommitmentPlansGetPlanOptionalParams
1835
+ extends coreClient.OperationOptions {}
1836
+
1837
+ /** Contains response data for the getPlan operation. */
1838
+ export type CommitmentPlansGetPlanResponse = CommitmentPlan;
1839
+
1840
+ /** Optional parameters. */
1841
+ export interface CommitmentPlansListPlansByResourceGroupOptionalParams
1842
+ extends coreClient.OperationOptions {}
1843
+
1844
+ /** Contains response data for the listPlansByResourceGroup operation. */
1845
+ export type CommitmentPlansListPlansByResourceGroupResponse = CommitmentPlanListResult;
1846
+
1847
+ /** Optional parameters. */
1848
+ export interface CommitmentPlansListPlansBySubscriptionOptionalParams
1849
+ extends coreClient.OperationOptions {}
1850
+
1851
+ /** Contains response data for the listPlansBySubscription operation. */
1852
+ export type CommitmentPlansListPlansBySubscriptionResponse = CommitmentPlanListResult;
1853
+
1854
+ /** Optional parameters. */
1855
+ export interface CommitmentPlansListAssociationsOptionalParams
1856
+ extends coreClient.OperationOptions {}
1857
+
1858
+ /** Contains response data for the listAssociations operation. */
1859
+ export type CommitmentPlansListAssociationsResponse = CommitmentPlanAccountAssociationListResult;
1860
+
1861
+ /** Optional parameters. */
1862
+ export interface CommitmentPlansGetAssociationOptionalParams
1863
+ extends coreClient.OperationOptions {}
1864
+
1865
+ /** Contains response data for the getAssociation operation. */
1866
+ export type CommitmentPlansGetAssociationResponse = CommitmentPlanAccountAssociation;
1867
+
1868
+ /** Optional parameters. */
1869
+ export interface CommitmentPlansCreateOrUpdateAssociationOptionalParams
1870
+ extends coreClient.OperationOptions {
1871
+ /** Delay to wait until next poll, in milliseconds. */
1872
+ updateIntervalInMs?: number;
1873
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1874
+ resumeFrom?: string;
1875
+ }
1876
+
1877
+ /** Contains response data for the createOrUpdateAssociation operation. */
1878
+ export type CommitmentPlansCreateOrUpdateAssociationResponse = CommitmentPlanAccountAssociation;
1879
+
1880
+ /** Optional parameters. */
1881
+ export interface CommitmentPlansDeleteAssociationOptionalParams
1882
+ extends coreClient.OperationOptions {
1883
+ /** Delay to wait until next poll, in milliseconds. */
1884
+ updateIntervalInMs?: number;
1885
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1886
+ resumeFrom?: string;
1887
+ }
1888
+
1623
1889
  /** Optional parameters. */
1624
1890
  export interface CommitmentPlansListNextOptionalParams
1625
1891
  extends coreClient.OperationOptions {}
@@ -1627,6 +1893,27 @@ export interface CommitmentPlansListNextOptionalParams
1627
1893
  /** Contains response data for the listNext operation. */
1628
1894
  export type CommitmentPlansListNextResponse = CommitmentPlanListResult;
1629
1895
 
1896
+ /** Optional parameters. */
1897
+ export interface CommitmentPlansListPlansByResourceGroupNextOptionalParams
1898
+ extends coreClient.OperationOptions {}
1899
+
1900
+ /** Contains response data for the listPlansByResourceGroupNext operation. */
1901
+ export type CommitmentPlansListPlansByResourceGroupNextResponse = CommitmentPlanListResult;
1902
+
1903
+ /** Optional parameters. */
1904
+ export interface CommitmentPlansListPlansBySubscriptionNextOptionalParams
1905
+ extends coreClient.OperationOptions {}
1906
+
1907
+ /** Contains response data for the listPlansBySubscriptionNext operation. */
1908
+ export type CommitmentPlansListPlansBySubscriptionNextResponse = CommitmentPlanListResult;
1909
+
1910
+ /** Optional parameters. */
1911
+ export interface CommitmentPlansListAssociationsNextOptionalParams
1912
+ extends coreClient.OperationOptions {}
1913
+
1914
+ /** Contains response data for the listAssociationsNext operation. */
1915
+ export type CommitmentPlansListAssociationsNextResponse = CommitmentPlanAccountAssociationListResult;
1916
+
1630
1917
  /** Optional parameters. */
1631
1918
  export interface CognitiveServicesManagementClientOptionalParams
1632
1919
  extends coreClient.ServiceClientOptions {
@@ -354,6 +354,26 @@ export const AccountProperties: coreClient.CompositeMapper = {
354
354
  type: {
355
355
  name: "String"
356
356
  }
357
+ },
358
+ locations: {
359
+ serializedName: "locations",
360
+ type: {
361
+ name: "Composite",
362
+ className: "MultiRegionSettings"
363
+ }
364
+ },
365
+ commitmentPlanAssociations: {
366
+ serializedName: "commitmentPlanAssociations",
367
+ readOnly: true,
368
+ type: {
369
+ name: "Sequence",
370
+ element: {
371
+ type: {
372
+ name: "Composite",
373
+ className: "CommitmentPlanAssociation"
374
+ }
375
+ }
376
+ }
357
377
  }
358
378
  }
359
379
  }
@@ -913,6 +933,81 @@ export const QuotaLimit: coreClient.CompositeMapper = {
913
933
  }
914
934
  };
915
935
 
936
+ export const MultiRegionSettings: coreClient.CompositeMapper = {
937
+ type: {
938
+ name: "Composite",
939
+ className: "MultiRegionSettings",
940
+ modelProperties: {
941
+ routingMethod: {
942
+ serializedName: "routingMethod",
943
+ type: {
944
+ name: "String"
945
+ }
946
+ },
947
+ regions: {
948
+ serializedName: "regions",
949
+ type: {
950
+ name: "Sequence",
951
+ element: {
952
+ type: {
953
+ name: "Composite",
954
+ className: "RegionSetting"
955
+ }
956
+ }
957
+ }
958
+ }
959
+ }
960
+ }
961
+ };
962
+
963
+ export const RegionSetting: coreClient.CompositeMapper = {
964
+ type: {
965
+ name: "Composite",
966
+ className: "RegionSetting",
967
+ modelProperties: {
968
+ name: {
969
+ serializedName: "name",
970
+ type: {
971
+ name: "String"
972
+ }
973
+ },
974
+ value: {
975
+ serializedName: "value",
976
+ type: {
977
+ name: "Number"
978
+ }
979
+ },
980
+ customsubdomain: {
981
+ serializedName: "customsubdomain",
982
+ type: {
983
+ name: "String"
984
+ }
985
+ }
986
+ }
987
+ }
988
+ };
989
+
990
+ export const CommitmentPlanAssociation: coreClient.CompositeMapper = {
991
+ type: {
992
+ name: "Composite",
993
+ className: "CommitmentPlanAssociation",
994
+ modelProperties: {
995
+ commitmentPlanId: {
996
+ serializedName: "commitmentPlanId",
997
+ type: {
998
+ name: "String"
999
+ }
1000
+ },
1001
+ commitmentPlanLocation: {
1002
+ serializedName: "commitmentPlanLocation",
1003
+ type: {
1004
+ name: "String"
1005
+ }
1006
+ }
1007
+ }
1008
+ }
1009
+ };
1010
+
916
1011
  export const ErrorResponse: coreClient.CompositeMapper = {
917
1012
  type: {
918
1013
  name: "Composite",
@@ -2085,6 +2180,19 @@ export const CommitmentPlanProperties: coreClient.CompositeMapper = {
2085
2180
  name: "Composite",
2086
2181
  className: "CommitmentPlanProperties",
2087
2182
  modelProperties: {
2183
+ provisioningState: {
2184
+ serializedName: "provisioningState",
2185
+ readOnly: true,
2186
+ type: {
2187
+ name: "String"
2188
+ }
2189
+ },
2190
+ commitmentPlanGuid: {
2191
+ serializedName: "commitmentPlanGuid",
2192
+ type: {
2193
+ name: "String"
2194
+ }
2195
+ },
2088
2196
  hostingModel: {
2089
2197
  serializedName: "hostingModel",
2090
2198
  type: {
@@ -2170,6 +2278,50 @@ export const CommitmentPeriod: coreClient.CompositeMapper = {
2170
2278
  }
2171
2279
  };
2172
2280
 
2281
+ export const PatchResourceTags: coreClient.CompositeMapper = {
2282
+ type: {
2283
+ name: "Composite",
2284
+ className: "PatchResourceTags",
2285
+ modelProperties: {
2286
+ tags: {
2287
+ serializedName: "tags",
2288
+ type: {
2289
+ name: "Dictionary",
2290
+ value: { type: { name: "String" } }
2291
+ }
2292
+ }
2293
+ }
2294
+ }
2295
+ };
2296
+
2297
+ export const CommitmentPlanAccountAssociationListResult: coreClient.CompositeMapper = {
2298
+ type: {
2299
+ name: "Composite",
2300
+ className: "CommitmentPlanAccountAssociationListResult",
2301
+ modelProperties: {
2302
+ nextLink: {
2303
+ serializedName: "nextLink",
2304
+ type: {
2305
+ name: "String"
2306
+ }
2307
+ },
2308
+ value: {
2309
+ serializedName: "value",
2310
+ readOnly: true,
2311
+ type: {
2312
+ name: "Sequence",
2313
+ element: {
2314
+ type: {
2315
+ name: "Composite",
2316
+ className: "CommitmentPlanAccountAssociation"
2317
+ }
2318
+ }
2319
+ }
2320
+ }
2321
+ }
2322
+ }
2323
+ };
2324
+
2173
2325
  export const AzureEntityResource: coreClient.CompositeMapper = {
2174
2326
  type: {
2175
2327
  name: "Composite",
@@ -2240,6 +2392,13 @@ export const AccountModel: coreClient.CompositeMapper = {
2240
2392
  value: { type: { name: "String" } }
2241
2393
  }
2242
2394
  },
2395
+ finetuneCapabilities: {
2396
+ serializedName: "finetuneCapabilities",
2397
+ type: {
2398
+ name: "Dictionary",
2399
+ value: { type: { name: "String" } }
2400
+ }
2401
+ },
2243
2402
  deprecation: {
2244
2403
  serializedName: "deprecation",
2245
2404
  type: {
@@ -2247,6 +2406,12 @@ export const AccountModel: coreClient.CompositeMapper = {
2247
2406
  className: "ModelDeprecationInfo"
2248
2407
  }
2249
2408
  },
2409
+ lifecycleStatus: {
2410
+ serializedName: "lifecycleStatus",
2411
+ type: {
2412
+ name: "String"
2413
+ }
2414
+ },
2250
2415
  systemData: {
2251
2416
  serializedName: "systemData",
2252
2417
  type: {
@@ -2258,6 +2423,23 @@ export const AccountModel: coreClient.CompositeMapper = {
2258
2423
  }
2259
2424
  };
2260
2425
 
2426
+ export const PatchResourceTagsAndSku: coreClient.CompositeMapper = {
2427
+ type: {
2428
+ name: "Composite",
2429
+ className: "PatchResourceTagsAndSku",
2430
+ modelProperties: {
2431
+ ...PatchResourceTags.type.modelProperties,
2432
+ sku: {
2433
+ serializedName: "sku",
2434
+ type: {
2435
+ name: "Composite",
2436
+ className: "Sku"
2437
+ }
2438
+ }
2439
+ }
2440
+ }
2441
+ };
2442
+
2261
2443
  export const PrivateEndpointConnection: coreClient.CompositeMapper = {
2262
2444
  type: {
2263
2445
  name: "Composite",
@@ -2396,6 +2578,32 @@ export const CommitmentPlan: coreClient.CompositeMapper = {
2396
2578
  name: "String"
2397
2579
  }
2398
2580
  },
2581
+ kind: {
2582
+ serializedName: "kind",
2583
+ type: {
2584
+ name: "String"
2585
+ }
2586
+ },
2587
+ sku: {
2588
+ serializedName: "sku",
2589
+ type: {
2590
+ name: "Composite",
2591
+ className: "Sku"
2592
+ }
2593
+ },
2594
+ tags: {
2595
+ serializedName: "tags",
2596
+ type: {
2597
+ name: "Dictionary",
2598
+ value: { type: { name: "String" } }
2599
+ }
2600
+ },
2601
+ location: {
2602
+ serializedName: "location",
2603
+ type: {
2604
+ name: "String"
2605
+ }
2606
+ },
2399
2607
  properties: {
2400
2608
  serializedName: "properties",
2401
2609
  type: {
@@ -2406,3 +2614,78 @@ export const CommitmentPlan: coreClient.CompositeMapper = {
2406
2614
  }
2407
2615
  }
2408
2616
  };
2617
+
2618
+ export const CommitmentPlanAccountAssociation: coreClient.CompositeMapper = {
2619
+ type: {
2620
+ name: "Composite",
2621
+ className: "CommitmentPlanAccountAssociation",
2622
+ modelProperties: {
2623
+ ...ProxyResource.type.modelProperties,
2624
+ systemData: {
2625
+ serializedName: "systemData",
2626
+ type: {
2627
+ name: "Composite",
2628
+ className: "SystemData"
2629
+ }
2630
+ },
2631
+ etag: {
2632
+ serializedName: "etag",
2633
+ readOnly: true,
2634
+ type: {
2635
+ name: "String"
2636
+ }
2637
+ },
2638
+ accountId: {
2639
+ serializedName: "properties.accountId",
2640
+ type: {
2641
+ name: "String"
2642
+ }
2643
+ }
2644
+ }
2645
+ }
2646
+ };
2647
+
2648
+ export const CommitmentPlansUpdatePlanHeaders: coreClient.CompositeMapper = {
2649
+ type: {
2650
+ name: "Composite",
2651
+ className: "CommitmentPlansUpdatePlanHeaders",
2652
+ modelProperties: {
2653
+ location: {
2654
+ serializedName: "location",
2655
+ type: {
2656
+ name: "String"
2657
+ }
2658
+ }
2659
+ }
2660
+ }
2661
+ };
2662
+
2663
+ export const CommitmentPlansDeletePlanHeaders: coreClient.CompositeMapper = {
2664
+ type: {
2665
+ name: "Composite",
2666
+ className: "CommitmentPlansDeletePlanHeaders",
2667
+ modelProperties: {
2668
+ location: {
2669
+ serializedName: "location",
2670
+ type: {
2671
+ name: "String"
2672
+ }
2673
+ }
2674
+ }
2675
+ }
2676
+ };
2677
+
2678
+ export const CommitmentPlansDeleteAssociationHeaders: coreClient.CompositeMapper = {
2679
+ type: {
2680
+ name: "Composite",
2681
+ className: "CommitmentPlansDeleteAssociationHeaders",
2682
+ modelProperties: {
2683
+ location: {
2684
+ serializedName: "location",
2685
+ type: {
2686
+ name: "String"
2687
+ }
2688
+ }
2689
+ }
2690
+ }
2691
+ };