@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.
Files changed (155) hide show
  1. package/CHANGELOG.md +37 -10
  2. package/dist/index.js +770 -166
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/samples-dev/accountsCreateSample.js +2 -2
  7. package/dist-esm/samples-dev/accountsDeleteSample.js +1 -1
  8. package/dist-esm/samples-dev/accountsGetSample.js +1 -1
  9. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +1 -1
  10. package/dist-esm/samples-dev/accountsListKeysSample.js +1 -1
  11. package/dist-esm/samples-dev/accountsListModelsSample.js +1 -1
  12. package/dist-esm/samples-dev/accountsListSample.js +1 -1
  13. package/dist-esm/samples-dev/accountsListSkusSample.js +1 -1
  14. package/dist-esm/samples-dev/accountsListUsagesSample.js +1 -1
  15. package/dist-esm/samples-dev/accountsRegenerateKeySample.js +1 -1
  16. package/dist-esm/samples-dev/accountsUpdateSample.js +1 -1
  17. package/dist-esm/samples-dev/checkDomainAvailabilitySample.js +1 -1
  18. package/dist-esm/samples-dev/checkSkuAvailabilitySample.js +1 -1
  19. package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateAssociationSample.js +1 -1
  20. package/dist-esm/samples-dev/commitmentPlansCreateOrUpdatePlanSample.js +1 -1
  21. package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateSample.js +1 -1
  22. package/dist-esm/samples-dev/commitmentPlansDeleteAssociationSample.js +1 -1
  23. package/dist-esm/samples-dev/commitmentPlansDeletePlanSample.js +1 -1
  24. package/dist-esm/samples-dev/commitmentPlansDeleteSample.js +1 -1
  25. package/dist-esm/samples-dev/commitmentPlansGetAssociationSample.js +1 -1
  26. package/dist-esm/samples-dev/commitmentPlansGetPlanSample.js +1 -1
  27. package/dist-esm/samples-dev/commitmentPlansGetSample.js +1 -1
  28. package/dist-esm/samples-dev/commitmentPlansListAssociationsSample.js +1 -1
  29. package/dist-esm/samples-dev/commitmentPlansListPlansByResourceGroupSample.js +1 -1
  30. package/dist-esm/samples-dev/commitmentPlansListPlansBySubscriptionSample.js +1 -1
  31. package/dist-esm/samples-dev/commitmentPlansListSample.js +1 -1
  32. package/dist-esm/samples-dev/commitmentPlansUpdatePlanSample.js +1 -1
  33. package/dist-esm/samples-dev/commitmentTiersListSample.js +1 -1
  34. package/dist-esm/samples-dev/deletedAccountsGetSample.js +1 -1
  35. package/dist-esm/samples-dev/deletedAccountsListSample.js +1 -1
  36. package/dist-esm/samples-dev/deletedAccountsPurgeSample.js +1 -1
  37. package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js +3 -5
  38. package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js.map +1 -1
  39. package/dist-esm/samples-dev/deploymentsDeleteSample.js +1 -1
  40. package/dist-esm/samples-dev/deploymentsGetSample.js +1 -1
  41. package/dist-esm/samples-dev/deploymentsListSample.js +1 -1
  42. package/dist-esm/samples-dev/modelsListSample.d.ts +2 -0
  43. package/dist-esm/samples-dev/modelsListSample.d.ts.map +1 -0
  44. package/dist-esm/samples-dev/modelsListSample.js +59 -0
  45. package/dist-esm/samples-dev/modelsListSample.js.map +1 -0
  46. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  47. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +1 -1
  48. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
  49. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
  50. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +1 -1
  51. package/dist-esm/samples-dev/privateLinkResourcesListSample.js +1 -1
  52. package/dist-esm/samples-dev/resourceSkusListSample.js +1 -1
  53. package/dist-esm/samples-dev/usagesListSample.d.ts +2 -0
  54. package/dist-esm/samples-dev/usagesListSample.d.ts.map +1 -0
  55. package/dist-esm/samples-dev/usagesListSample.js +59 -0
  56. package/dist-esm/samples-dev/usagesListSample.js.map +1 -0
  57. package/dist-esm/src/cognitiveServicesManagementClient.d.ts +3 -1
  58. package/dist-esm/src/cognitiveServicesManagementClient.d.ts.map +1 -1
  59. package/dist-esm/src/cognitiveServicesManagementClient.js +5 -3
  60. package/dist-esm/src/cognitiveServicesManagementClient.js.map +1 -1
  61. package/dist-esm/src/lroImpl.d.ts +6 -11
  62. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  63. package/dist-esm/src/lroImpl.js +12 -20
  64. package/dist-esm/src/lroImpl.js.map +1 -1
  65. package/dist-esm/src/models/index.d.ts +144 -5
  66. package/dist-esm/src/models/index.d.ts.map +1 -1
  67. package/dist-esm/src/models/index.js +24 -0
  68. package/dist-esm/src/models/index.js.map +1 -1
  69. package/dist-esm/src/models/mappers.d.ts +5 -0
  70. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  71. package/dist-esm/src/models/mappers.js +229 -1
  72. package/dist-esm/src/models/mappers.js.map +1 -1
  73. package/dist-esm/src/models/parameters.js +1 -1
  74. package/dist-esm/src/operations/accounts.d.ts +4 -4
  75. package/dist-esm/src/operations/accounts.d.ts.map +1 -1
  76. package/dist-esm/src/operations/accounts.js +26 -14
  77. package/dist-esm/src/operations/accounts.js.map +1 -1
  78. package/dist-esm/src/operations/commitmentPlans.d.ts +7 -7
  79. package/dist-esm/src/operations/commitmentPlans.d.ts.map +1 -1
  80. package/dist-esm/src/operations/commitmentPlans.js +66 -42
  81. package/dist-esm/src/operations/commitmentPlans.js.map +1 -1
  82. package/dist-esm/src/operations/deletedAccounts.d.ts +2 -2
  83. package/dist-esm/src/operations/deletedAccounts.d.ts.map +1 -1
  84. package/dist-esm/src/operations/deletedAccounts.js +10 -6
  85. package/dist-esm/src/operations/deletedAccounts.js.map +1 -1
  86. package/dist-esm/src/operations/deployments.d.ts +3 -3
  87. package/dist-esm/src/operations/deployments.d.ts.map +1 -1
  88. package/dist-esm/src/operations/deployments.js +26 -11
  89. package/dist-esm/src/operations/deployments.js.map +1 -1
  90. package/dist-esm/src/operations/index.d.ts +2 -0
  91. package/dist-esm/src/operations/index.d.ts.map +1 -1
  92. package/dist-esm/src/operations/index.js +2 -0
  93. package/dist-esm/src/operations/index.js.map +1 -1
  94. package/dist-esm/src/operations/models.d.ts +35 -0
  95. package/dist-esm/src/operations/models.d.ts.map +1 -0
  96. package/dist-esm/src/operations/models.js +150 -0
  97. package/dist-esm/src/operations/models.js.map +1 -0
  98. package/dist-esm/src/operations/privateEndpointConnections.d.ts +3 -3
  99. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  100. package/dist-esm/src/operations/privateEndpointConnections.js +29 -21
  101. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  102. package/dist-esm/src/operations/usages.d.ts +35 -0
  103. package/dist-esm/src/operations/usages.d.ts.map +1 -0
  104. package/dist-esm/src/operations/usages.js +150 -0
  105. package/dist-esm/src/operations/usages.js.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/accounts.d.ts +4 -4
  107. package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -1
  108. package/dist-esm/src/operationsInterfaces/commitmentPlans.d.ts +7 -7
  109. package/dist-esm/src/operationsInterfaces/commitmentPlans.d.ts.map +1 -1
  110. package/dist-esm/src/operationsInterfaces/deletedAccounts.d.ts +2 -2
  111. package/dist-esm/src/operationsInterfaces/deletedAccounts.d.ts.map +1 -1
  112. package/dist-esm/src/operationsInterfaces/deployments.d.ts +3 -3
  113. package/dist-esm/src/operationsInterfaces/deployments.d.ts.map +1 -1
  114. package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
  115. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  116. package/dist-esm/src/operationsInterfaces/index.js +2 -0
  117. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  118. package/dist-esm/src/operationsInterfaces/models.d.ts +12 -0
  119. package/dist-esm/src/operationsInterfaces/models.d.ts.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/models.js +9 -0
  121. package/dist-esm/src/operationsInterfaces/models.js.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +3 -3
  123. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
  124. package/dist-esm/src/operationsInterfaces/usages.d.ts +12 -0
  125. package/dist-esm/src/operationsInterfaces/usages.d.ts.map +1 -0
  126. package/dist-esm/src/operationsInterfaces/usages.js +9 -0
  127. package/dist-esm/src/operationsInterfaces/usages.js.map +1 -0
  128. package/dist-esm/test/cognitiveservices_congitiveservice.spec.js +1 -1
  129. package/dist-esm/test/cognitiveservices_congitiveservice.spec.js.map +1 -1
  130. package/dist-esm/test/cognitiveservices_openai.spec.js +1 -2
  131. package/dist-esm/test/cognitiveservices_openai.spec.js.map +1 -1
  132. package/package.json +7 -7
  133. package/review/arm-cognitiveservices.api.md +127 -16
  134. package/src/cognitiveServicesManagementClient.ts +10 -2
  135. package/src/lroImpl.ts +31 -23
  136. package/src/models/index.ts +160 -5
  137. package/src/models/mappers.ts +236 -0
  138. package/src/models/parameters.ts +1 -1
  139. package/src/operations/accounts.ts +41 -31
  140. package/src/operations/commitmentPlans.ts +77 -64
  141. package/src/operations/deletedAccounts.ts +15 -11
  142. package/src/operations/deployments.ts +36 -22
  143. package/src/operations/index.ts +2 -0
  144. package/src/operations/models.ts +170 -0
  145. package/src/operations/privateEndpointConnections.ts +28 -21
  146. package/src/operations/usages.ts +170 -0
  147. package/src/operationsInterfaces/accounts.ts +6 -6
  148. package/src/operationsInterfaces/commitmentPlans.ts +10 -10
  149. package/src/operationsInterfaces/deletedAccounts.ts +2 -2
  150. package/src/operationsInterfaces/deployments.ts +4 -4
  151. package/src/operationsInterfaces/index.ts +2 -0
  152. package/src/operationsInterfaces/models.ts +24 -0
  153. package/src/operationsInterfaces/privateEndpointConnections.ts +4 -4
  154. package/src/operationsInterfaces/usages.ts +24 -0
  155. package/types/arm-cognitiveservices.d.ts +199 -21
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Check whether a domain is available.
17
17
  *
18
18
  * @summary Check whether a domain is available.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/CheckDomainAvailability.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/CheckDomainAvailability.json
20
20
  */
21
21
  function checkSkuAvailability() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Check available SKUs.
17
17
  *
18
18
  * @summary Check available SKUs.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/CheckSkuAvailability.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/CheckSkuAvailability.json
20
20
  */
21
21
  function checkSkuAvailability() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Create or update the association of the Cognitive Services commitment plan.
17
17
  *
18
18
  * @summary Create or update the association of the Cognitive Services commitment plan.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/CreateSharedCommitmentPlanAssociation.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/CreateSharedCommitmentPlanAssociation.json
20
20
  */
21
21
  function putCommitmentPlan() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Create Cognitive Services commitment plan.
17
17
  *
18
18
  * @summary Create Cognitive Services commitment plan.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/CreateSharedCommitmentPlan.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/CreateSharedCommitmentPlan.json
20
20
  */
21
21
  function createCommitmentPlan() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Update the state of specified commitmentPlans associated with the Cognitive Services account.
17
17
  *
18
18
  * @summary Update the state of specified commitmentPlans associated with the Cognitive Services account.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/PutCommitmentPlan.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/PutCommitmentPlan.json
20
20
  */
21
21
  function putCommitmentPlan() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Deletes the association of the Cognitive Services commitment plan.
17
17
  *
18
18
  * @summary Deletes the association of the Cognitive Services commitment plan.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/DeleteSharedCommitmentPlanAssociation.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/DeleteSharedCommitmentPlanAssociation.json
20
20
  */
21
21
  function deleteCommitmentPlan() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Deletes a Cognitive Services commitment plan from the resource group.
17
17
  *
18
18
  * @summary Deletes a Cognitive Services commitment plan from the resource group.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/DeleteSharedCommitmentPlan.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/DeleteSharedCommitmentPlan.json
20
20
  */
21
21
  function deleteCommitmentPlan() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Deletes the specified commitmentPlan associated with the Cognitive Services account.
17
17
  *
18
18
  * @summary Deletes the specified commitmentPlan associated with the Cognitive Services account.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/DeleteCommitmentPlan.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/DeleteCommitmentPlan.json
20
20
  */
21
21
  function deleteCommitmentPlan() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets the association of the Cognitive Services commitment plan.
17
17
  *
18
18
  * @summary Gets the association of the Cognitive Services commitment plan.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/GetSharedCommitmentPlanAssociation.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/GetSharedCommitmentPlanAssociation.json
20
20
  */
21
21
  function getCommitmentPlan() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Returns a Cognitive Services commitment plan specified by the parameters.
17
17
  *
18
18
  * @summary Returns a Cognitive Services commitment plan specified by the parameters.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/GetSharedCommitmentPlan.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/GetSharedCommitmentPlan.json
20
20
  */
21
21
  function getCommitmentPlan() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets the specified commitmentPlans associated with the Cognitive Services account.
17
17
  *
18
18
  * @summary Gets the specified commitmentPlans associated with the Cognitive Services account.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/GetCommitmentPlan.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/GetCommitmentPlan.json
20
20
  */
21
21
  function getCommitmentPlan() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets the associations of the Cognitive Services commitment plan.
17
17
  *
18
18
  * @summary Gets the associations of the Cognitive Services commitment plan.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/ListSharedCommitmentPlanAssociations.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ListSharedCommitmentPlanAssociations.json
20
20
  */
21
21
  function listCommitmentPlans() {
22
22
  var _a, e_1, _b, _c;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Returns all the resources of a particular type belonging to a resource group
17
17
  *
18
18
  * @summary Returns all the resources of a particular type belonging to a resource group
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/ListSharedCommitmentPlansByResourceGroup.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ListSharedCommitmentPlansByResourceGroup.json
20
20
  */
21
21
  function listCommitmentPlansByResourceGroup() {
22
22
  var _a, e_1, _b, _c;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Returns all the resources of a particular type belonging to a subscription.
17
17
  *
18
18
  * @summary Returns all the resources of a particular type belonging to a subscription.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/ListSharedCommitmentPlansBySubscription.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ListSharedCommitmentPlansBySubscription.json
20
20
  */
21
21
  function listAccountsBySubscription() {
22
22
  var _a, e_1, _b, _c;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets the commitmentPlans associated with the Cognitive Services account.
17
17
  *
18
18
  * @summary Gets the commitmentPlans associated with the Cognitive Services account.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/ListCommitmentPlans.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ListCommitmentPlans.json
20
20
  */
21
21
  function listCommitmentPlans() {
22
22
  var _a, e_1, _b, _c;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Create Cognitive Services commitment plan.
17
17
  *
18
18
  * @summary Create Cognitive Services commitment plan.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/UpdateSharedCommitmentPlan.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/UpdateSharedCommitmentPlan.json
20
20
  */
21
21
  function createCommitmentPlan() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to List Commitment Tiers.
17
17
  *
18
18
  * @summary List Commitment Tiers.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/ListCommitmentTiers.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ListCommitmentTiers.json
20
20
  */
21
21
  function listCommitmentTiers() {
22
22
  var _a, e_1, _b, _c;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Returns a Cognitive Services account specified by the parameters.
17
17
  *
18
18
  * @summary Returns a Cognitive Services account specified by the parameters.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/GetDeletedAccount.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/GetDeletedAccount.json
20
20
  */
21
21
  function getAccount() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Returns all the resources of a particular type belonging to a subscription.
17
17
  *
18
18
  * @summary Returns all the resources of a particular type belonging to a subscription.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/ListDeletedAccountsBySubscription.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ListDeletedAccountsBySubscription.json
20
20
  */
21
21
  function listDeletedAccountsBySubscription() {
22
22
  var _a, e_1, _b, _c;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Deletes a Cognitive Services account from the resource group.
17
17
  *
18
18
  * @summary Deletes a Cognitive Services account from the resource group.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/PurgeDeletedAccount.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/PurgeDeletedAccount.json
20
20
  */
21
21
  function deleteAccount() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Update the state of specified deployments associated with the Cognitive Services account.
17
17
  *
18
18
  * @summary Update the state of specified deployments associated with the Cognitive Services account.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/PutDeployment.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/PutDeployment.json
20
20
  */
21
21
  function putDeployment() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -25,10 +25,8 @@ function putDeployment() {
25
25
  const accountName = "accountName";
26
26
  const deploymentName = "deploymentName";
27
27
  const deployment = {
28
- properties: {
29
- model: { name: "ada", format: "OpenAI", version: "1" },
30
- scaleSettings: { capacity: 1, scaleType: "Manual" }
31
- }
28
+ properties: { model: { name: "ada", format: "OpenAI", version: "1" } },
29
+ sku: { name: "Standard", capacity: 1 }
32
30
  };
33
31
  const credential = new DefaultAzureCredential();
34
32
  const client = new CognitiveServicesManagementClient(credential, subscriptionId);
@@ -1 +1 @@
1
- {"version":3,"file":"deploymentsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/deploymentsCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,iCAAiC,EAClC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,aAAa;;QAC1B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,IAAI,gBAAgB,CAAC;QACvE,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,mBAAmB,CAAC;QACzE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,cAAc,GAAG,gBAAgB,CAAC;QACxC,MAAM,UAAU,GAAe;YAC7B,UAAU,EAAE;gBACV,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;gBACtD,aAAa,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE;aACpD;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,0BAA0B,CAChE,iBAAiB,EACjB,WAAW,EACX,cAAc,EACd,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,aAAa,EAAE,CAAC;IAClB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"deploymentsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/deploymentsCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,iCAAiC,EAClC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,aAAa;;QAC1B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,IAAI,gBAAgB,CAAC;QACvE,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,mBAAmB,CAAC;QACzE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,cAAc,GAAG,gBAAgB,CAAC;QACxC,MAAM,UAAU,GAAe;YAC7B,UAAU,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE;YACtE,GAAG,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC,EAAE;SACvC,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,0BAA0B,CAChE,iBAAiB,EACjB,WAAW,EACX,cAAc,EACd,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,aAAa,EAAE,CAAC;IAClB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Deletes the specified deployment associated with the Cognitive Services account.
17
17
  *
18
18
  * @summary Deletes the specified deployment associated with the Cognitive Services account.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/DeleteDeployment.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/DeleteDeployment.json
20
20
  */
21
21
  function deleteDeployment() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets the specified deployments associated with the Cognitive Services account.
17
17
  *
18
18
  * @summary Gets the specified deployments associated with the Cognitive Services account.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/GetDeployment.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/GetDeployment.json
20
20
  */
21
21
  function getDeployment() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets the deployments associated with the Cognitive Services account.
17
17
  *
18
18
  * @summary Gets the deployments associated with the Cognitive Services account.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/ListDeployments.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ListDeployments.json
20
20
  */
21
21
  function listDeployments() {
22
22
  var _a, e_1, _b, _c;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=modelsListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modelsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/modelsListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,59 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { CognitiveServicesManagementClient } from "@azure/arm-cognitiveservices";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to List Models.
17
+ *
18
+ * @summary List Models.
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ListModels.json
20
+ */
21
+ function listModels() {
22
+ var _a, e_1, _b, _c;
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const subscriptionId = process.env["COGNITIVESERVICES_SUBSCRIPTION_ID"] ||
25
+ "00000000-0000-0000-0000-000000000000";
26
+ const location = "WestUS";
27
+ const credential = new DefaultAzureCredential();
28
+ const client = new CognitiveServicesManagementClient(credential, subscriptionId);
29
+ const resArray = new Array();
30
+ try {
31
+ for (var _d = true, _e = __asyncValues(client.models.list(location)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
32
+ _c = _f.value;
33
+ _d = false;
34
+ try {
35
+ let item = _c;
36
+ resArray.push(item);
37
+ }
38
+ finally {
39
+ _d = true;
40
+ }
41
+ }
42
+ }
43
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
44
+ finally {
45
+ try {
46
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
47
+ }
48
+ finally { if (e_1) throw e_1.error; }
49
+ }
50
+ console.log(resArray);
51
+ });
52
+ }
53
+ function main() {
54
+ return __awaiter(this, void 0, void 0, function* () {
55
+ listModels();
56
+ });
57
+ }
58
+ main().catch(console.error);
59
+ //# sourceMappingURL=modelsListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modelsListSample.js","sourceRoot":"","sources":["../../samples-dev/modelsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,UAAU;;;QACvB,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,QAAQ,GAAG,QAAQ,CAAC;QAC1B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA,IAAA;gBAA5B,cAA4B;gBAA5B,WAA4B;;oBAAxC,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,UAAU,EAAE,CAAC;IACf,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Lists all the available Cognitive Services account operations.
17
17
  *
18
18
  * @summary Lists all the available Cognitive Services account operations.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/GetOperations.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/GetOperations.json
20
20
  */
21
21
  function getOperations() {
22
22
  var _a, e_1, _b, _c;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Update the state of specified private endpoint connection associated with the Cognitive Services account.
17
17
  *
18
18
  * @summary Update the state of specified private endpoint connection associated with the Cognitive Services account.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/PutPrivateEndpointConnection.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/PutPrivateEndpointConnection.json
20
20
  */
21
21
  function putPrivateEndpointConnection() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Deletes the specified private endpoint connection associated with the Cognitive Services account.
17
17
  *
18
18
  * @summary Deletes the specified private endpoint connection associated with the Cognitive Services account.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/DeletePrivateEndpointConnection.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/DeletePrivateEndpointConnection.json
20
20
  */
21
21
  function deletePrivateEndpointConnection() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets the specified private endpoint connection associated with the Cognitive Services account.
17
17
  *
18
18
  * @summary Gets the specified private endpoint connection associated with the Cognitive Services account.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/GetPrivateEndpointConnection.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/GetPrivateEndpointConnection.json
20
20
  */
21
21
  function getPrivateEndpointConnection() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets the private endpoint connections associated with the Cognitive Services account.
17
17
  *
18
18
  * @summary Gets the private endpoint connections associated with the Cognitive Services account.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/ListPrivateEndpointConnections.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ListPrivateEndpointConnections.json
20
20
  */
21
21
  function getPrivateEndpointConnection() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets the private link resources that need to be created for a Cognitive Services account.
17
17
  *
18
18
  * @summary Gets the private link resources that need to be created for a Cognitive Services account.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/ListPrivateLinkResources.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ListPrivateLinkResources.json
20
20
  */
21
21
  function listPrivateLinkResources() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets the list of Microsoft.CognitiveServices SKUs available for your Subscription.
17
17
  *
18
18
  * @summary Gets the list of Microsoft.CognitiveServices SKUs available for your Subscription.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/GetSkus.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/GetSkus.json
20
20
  */
21
21
  function regenerateKeys() {
22
22
  var _a, e_1, _b, _c;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=usagesListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usagesListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/usagesListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,59 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { CognitiveServicesManagementClient } from "@azure/arm-cognitiveservices";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Get usages for the requested subscription
17
+ *
18
+ * @summary Get usages for the requested subscription
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ListUsages.json
20
+ */
21
+ function getUsages() {
22
+ var _a, e_1, _b, _c;
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const subscriptionId = process.env["COGNITIVESERVICES_SUBSCRIPTION_ID"] ||
25
+ "00000000-0000-0000-0000-000000000000";
26
+ const location = "WestUS";
27
+ const credential = new DefaultAzureCredential();
28
+ const client = new CognitiveServicesManagementClient(credential, subscriptionId);
29
+ const resArray = new Array();
30
+ try {
31
+ for (var _d = true, _e = __asyncValues(client.usages.list(location)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
32
+ _c = _f.value;
33
+ _d = false;
34
+ try {
35
+ let item = _c;
36
+ resArray.push(item);
37
+ }
38
+ finally {
39
+ _d = true;
40
+ }
41
+ }
42
+ }
43
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
44
+ finally {
45
+ try {
46
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
47
+ }
48
+ finally { if (e_1) throw e_1.error; }
49
+ }
50
+ console.log(resArray);
51
+ });
52
+ }
53
+ function main() {
54
+ return __awaiter(this, void 0, void 0, function* () {
55
+ getUsages();
56
+ });
57
+ }
58
+ main().catch(console.error);
59
+ //# sourceMappingURL=usagesListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usagesListSample.js","sourceRoot":"","sources":["../../samples-dev/usagesListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,SAAS;;;QACtB,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,QAAQ,GAAG,QAAQ,CAAC;QAC1B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA,IAAA;gBAA5B,cAA4B;gBAA5B,WAA4B;;oBAAxC,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,SAAS,EAAE,CAAC;IACd,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import * as coreClient from "@azure/core-client";
2
2
  import * as coreAuth from "@azure/core-auth";
3
- import { Accounts, DeletedAccounts, ResourceSkus, Operations, CommitmentTiers, PrivateEndpointConnections, PrivateLinkResources, Deployments, CommitmentPlans } from "./operationsInterfaces";
3
+ import { Accounts, DeletedAccounts, ResourceSkus, Usages, Operations, CommitmentTiers, Models, PrivateEndpointConnections, PrivateLinkResources, Deployments, CommitmentPlans } from "./operationsInterfaces";
4
4
  import { CognitiveServicesManagementClientOptionalParams, CheckSkuAvailabilityOptionalParams, CheckSkuAvailabilityResponse, CheckDomainAvailabilityOptionalParams, CheckDomainAvailabilityResponse } from "./models";
5
5
  export declare class CognitiveServicesManagementClient extends coreClient.ServiceClient {
6
6
  $host: string;
@@ -34,8 +34,10 @@ export declare class CognitiveServicesManagementClient extends coreClient.Servic
34
34
  accounts: Accounts;
35
35
  deletedAccounts: DeletedAccounts;
36
36
  resourceSkus: ResourceSkus;
37
+ usages: Usages;
37
38
  operations: Operations;
38
39
  commitmentTiers: CommitmentTiers;
40
+ models: Models;
39
41
  privateEndpointConnections: PrivateEndpointConnections;
40
42
  privateLinkResources: PrivateLinkResources;
41
43
  deployments: Deployments;
@@ -1 +1 @@
1
- {"version":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;IACjC,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,WAAW,EAAE,WAAW,CAAC;IACzB,eAAe,EAAE,eAAe,CAAC;CAClC"}
1
+ {"version":3,"file":"cognitiveServicesManagementClient.d.ts","sourceRoot":"","sources":["../../src/cognitiveServicesManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAc7C,OAAO,EACL,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,MAAM,EACN,UAAU,EACV,eAAe,EACf,MAAM,EACN,0BAA0B,EAC1B,oBAAoB,EACpB,WAAW,EACX,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EACL,+CAA+C,EAC/C,kCAAkC,EAClC,4BAA4B,EAC5B,qCAAqC,EACrC,+BAA+B,EAChC,MAAM,UAAU,CAAC;AAElB,qBAAa,iCAAkC,SAAQ,UAAU,CAAC,aAAa;IAC7E,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,+CAA+C;IAsF3D,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC;;;;;;;OAOG;IACH,oBAAoB,CAClB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EAAE,EACd,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,4BAA4B,CAAC;IAOxC;;;;;OAKG;IACH,uBAAuB,CACrB,aAAa,EAAE,MAAM,EACrB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC;IAO3C,QAAQ,EAAE,QAAQ,CAAC;IACnB,eAAe,EAAE,eAAe,CAAC;IACjC,YAAY,EAAE,YAAY,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,UAAU,CAAC;IACvB,eAAe,EAAE,eAAe,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,WAAW,EAAE,WAAW,CAAC;IACzB,eAAe,EAAE,eAAe,CAAC;CAClC"}
@@ -8,7 +8,7 @@
8
8
  import { __awaiter } from "tslib";
9
9
  import * as coreClient from "@azure/core-client";
10
10
  import * as coreRestPipeline from "@azure/core-rest-pipeline";
11
- import { AccountsImpl, DeletedAccountsImpl, ResourceSkusImpl, OperationsImpl, CommitmentTiersImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, DeploymentsImpl, CommitmentPlansImpl } from "./operations";
11
+ import { AccountsImpl, DeletedAccountsImpl, ResourceSkusImpl, UsagesImpl, OperationsImpl, CommitmentTiersImpl, ModelsImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, DeploymentsImpl, CommitmentPlansImpl } from "./operations";
12
12
  import * as Parameters from "./models/parameters";
13
13
  import * as Mappers from "./models/mappers";
14
14
  export class CognitiveServicesManagementClient extends coreClient.ServiceClient {
@@ -34,7 +34,7 @@ export class CognitiveServicesManagementClient extends coreClient.ServiceClient
34
34
  requestContentType: "application/json; charset=utf-8",
35
35
  credential: credentials
36
36
  };
37
- const packageDetails = `azsdk-js-arm-cognitiveservices/7.4.1`;
37
+ const packageDetails = `azsdk-js-arm-cognitiveservices/7.5.0`;
38
38
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
39
39
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
40
40
  : `${packageDetails}`;
@@ -67,12 +67,14 @@ export class CognitiveServicesManagementClient extends coreClient.ServiceClient
67
67
  this.subscriptionId = subscriptionId;
68
68
  // Assigning values to Constant parameters
69
69
  this.$host = options.$host || "https://management.azure.com";
70
- this.apiVersion = options.apiVersion || "2022-12-01";
70
+ this.apiVersion = options.apiVersion || "2023-05-01";
71
71
  this.accounts = new AccountsImpl(this);
72
72
  this.deletedAccounts = new DeletedAccountsImpl(this);
73
73
  this.resourceSkus = new ResourceSkusImpl(this);
74
+ this.usages = new UsagesImpl(this);
74
75
  this.operations = new OperationsImpl(this);
75
76
  this.commitmentTiers = new CommitmentTiersImpl(this);
77
+ this.models = new ModelsImpl(this);
76
78
  this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
77
79
  this.privateLinkResources = new PrivateLinkResourcesImpl(this);
78
80
  this.deployments = new DeploymentsImpl(this);
@@ -1 +1 @@
1
- {"version":3,"file":"cognitiveServicesManagementClient.js","sourceRoot":"","sources":["../../src/cognitiveServicesManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,8BAA8B,EAC9B,wBAAwB,EACxB,eAAe,EACf,mBAAmB,EACpB,MAAM,cAAc,CAAC;AAYtB,OAAO,KAAK,UAAU,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAS5C,MAAM,OAAO,iCAAkC,SAAQ,UAAU,CAAC,aAAa;IAK7E;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAyD;;QAEzD,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,MAAM,IAAI,KAAK,CAA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,EAAE,CAAC,WAAW,CAAC;YACxB,IAAI,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC;SAC1B;QACD,MAAM,kCAAO,OAAO,CAAC,gCAAgC,KAAE,QAAQ,EAAE,IAAI,GAAE;KACxE;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC"}
1
+ {"version":3,"file":"cognitiveServicesManagementClient.js","sourceRoot":"","sources":["../../src/cognitiveServicesManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,mBAAmB,EACnB,UAAU,EACV,8BAA8B,EAC9B,wBAAwB,EACxB,eAAe,EACf,mBAAmB,EACpB,MAAM,cAAc,CAAC;AActB,OAAO,KAAK,UAAU,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAS5C,MAAM,OAAO,iCAAkC,SAAQ,UAAU,CAAC,aAAa;IAK7E;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAyD;;QAEzD,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GA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ACb,aAAa,EAAE,CAAC,eAAe,CAAC;YAChC,SAAS,EAAE,CAAC,WAAW,CAAC;YACxB,IAAI,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC;SAC1B;QACD,MAAM,kCAAO,OAAO,CAAC,gCAAgC,KAAE,QAAQ,EAAE,IAAI,GAAE;KACxE;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC"}
@@ -1,16 +1,11 @@
1
1
  import { LongRunningOperation, LroResponse } from "@azure/core-lro";
2
- export declare class LroImpl<T> implements LongRunningOperation<T> {
3
- private sendOperationFn;
4
- private args;
5
- private spec;
6
- requestPath: string;
7
- requestMethod: string;
8
- constructor(sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>, args: Record<string, unknown>, spec: {
2
+ export declare function createLroSpec<T>(inputs: {
3
+ sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
4
+ args: Record<string, unknown>;
5
+ spec: {
9
6
  readonly requestBody?: unknown;
10
7
  readonly path?: string;
11
8
  readonly httpMethod: string;
12
- } & Record<string, any>, requestPath?: string, requestMethod?: string);
13
- sendInitialRequest(): Promise<LroResponse<T>>;
14
- sendPollRequest(path: string): Promise<LroResponse<T>>;
15
- }
9
+ } & Record<string, any>;
10
+ }): LongRunningOperation<T>;
16
11
  //# sourceMappingURL=lroImpl.d.ts.map