@azure/arm-cognitiveservices 7.3.1 → 7.4.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 (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 +7 -6
  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
@@ -159,7 +159,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
159
159
  bodyMapper: Mappers.ErrorResponse
160
160
  }
161
161
  },
162
- queryParameters: [Parameters.apiVersion],
163
162
  urlParameters: [
164
163
  Parameters.$host,
165
164
  Parameters.subscriptionId,
@@ -302,7 +302,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
302
302
  bodyMapper: Mappers.ErrorResponse
303
303
  }
304
304
  },
305
- queryParameters: [Parameters.apiVersion],
306
305
  urlParameters: [
307
306
  Parameters.$host,
308
307
  Parameters.subscriptionId,
@@ -473,7 +473,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
473
473
  bodyMapper: Mappers.ErrorResponse
474
474
  }
475
475
  },
476
- queryParameters: [Parameters.apiVersion],
477
476
  urlParameters: [
478
477
  Parameters.$host,
479
478
  Parameters.resourceGroupName,
@@ -143,7 +143,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
143
143
  bodyMapper: Mappers.ErrorResponse
144
144
  }
145
145
  },
146
- queryParameters: [Parameters.apiVersion],
147
146
  urlParameters: [Parameters.$host, Parameters.nextLink],
148
147
  headerParameters: [Parameters.accept],
149
148
  serializer
@@ -144,7 +144,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
144
144
  bodyMapper: Mappers.ErrorResponse
145
145
  }
146
146
  },
147
- queryParameters: [Parameters.apiVersion],
148
147
  urlParameters: [
149
148
  Parameters.$host,
150
149
  Parameters.subscriptionId,
@@ -11,11 +11,28 @@ import { PollerLike, PollOperationState } from "@azure/core-lro";
11
11
  import {
12
12
  CommitmentPlan,
13
13
  CommitmentPlansListOptionalParams,
14
+ CommitmentPlansListPlansByResourceGroupOptionalParams,
15
+ CommitmentPlansListPlansBySubscriptionOptionalParams,
16
+ CommitmentPlanAccountAssociation,
17
+ CommitmentPlansListAssociationsOptionalParams,
14
18
  CommitmentPlansGetOptionalParams,
15
19
  CommitmentPlansGetResponse,
16
20
  CommitmentPlansCreateOrUpdateOptionalParams,
17
21
  CommitmentPlansCreateOrUpdateResponse,
18
- CommitmentPlansDeleteOptionalParams
22
+ CommitmentPlansDeleteOptionalParams,
23
+ CommitmentPlansCreateOrUpdatePlanOptionalParams,
24
+ CommitmentPlansCreateOrUpdatePlanResponse,
25
+ PatchResourceTagsAndSku,
26
+ CommitmentPlansUpdatePlanOptionalParams,
27
+ CommitmentPlansUpdatePlanResponse,
28
+ CommitmentPlansDeletePlanOptionalParams,
29
+ CommitmentPlansGetPlanOptionalParams,
30
+ CommitmentPlansGetPlanResponse,
31
+ CommitmentPlansGetAssociationOptionalParams,
32
+ CommitmentPlansGetAssociationResponse,
33
+ CommitmentPlansCreateOrUpdateAssociationOptionalParams,
34
+ CommitmentPlansCreateOrUpdateAssociationResponse,
35
+ CommitmentPlansDeleteAssociationOptionalParams
19
36
  } from "../models";
20
37
 
21
38
  /// <reference lib="esnext.asynciterable" />
@@ -32,6 +49,34 @@ export interface CommitmentPlans {
32
49
  accountName: string,
33
50
  options?: CommitmentPlansListOptionalParams
34
51
  ): PagedAsyncIterableIterator<CommitmentPlan>;
52
+ /**
53
+ * Returns all the resources of a particular type belonging to a resource group
54
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
55
+ * @param options The options parameters.
56
+ */
57
+ listPlansByResourceGroup(
58
+ resourceGroupName: string,
59
+ options?: CommitmentPlansListPlansByResourceGroupOptionalParams
60
+ ): PagedAsyncIterableIterator<CommitmentPlan>;
61
+ /**
62
+ * Returns all the resources of a particular type belonging to a subscription.
63
+ * @param options The options parameters.
64
+ */
65
+ listPlansBySubscription(
66
+ options?: CommitmentPlansListPlansBySubscriptionOptionalParams
67
+ ): PagedAsyncIterableIterator<CommitmentPlan>;
68
+ /**
69
+ * Gets the associations of the Cognitive Services commitment plan.
70
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
71
+ * @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services
72
+ * Account
73
+ * @param options The options parameters.
74
+ */
75
+ listAssociations(
76
+ resourceGroupName: string,
77
+ commitmentPlanName: string,
78
+ options?: CommitmentPlansListAssociationsOptionalParams
79
+ ): PagedAsyncIterableIterator<CommitmentPlanAccountAssociation>;
35
80
  /**
36
81
  * Gets the specified commitmentPlans associated with the Cognitive Services account.
37
82
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -90,4 +135,190 @@ export interface CommitmentPlans {
90
135
  commitmentPlanName: string,
91
136
  options?: CommitmentPlansDeleteOptionalParams
92
137
  ): Promise<void>;
138
+ /**
139
+ * Create Cognitive Services commitment plan.
140
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
141
+ * @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services
142
+ * Account
143
+ * @param commitmentPlan The parameters to provide for the created commitment plan.
144
+ * @param options The options parameters.
145
+ */
146
+ beginCreateOrUpdatePlan(
147
+ resourceGroupName: string,
148
+ commitmentPlanName: string,
149
+ commitmentPlan: CommitmentPlan,
150
+ options?: CommitmentPlansCreateOrUpdatePlanOptionalParams
151
+ ): Promise<
152
+ PollerLike<
153
+ PollOperationState<CommitmentPlansCreateOrUpdatePlanResponse>,
154
+ CommitmentPlansCreateOrUpdatePlanResponse
155
+ >
156
+ >;
157
+ /**
158
+ * Create Cognitive Services commitment plan.
159
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
160
+ * @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services
161
+ * Account
162
+ * @param commitmentPlan The parameters to provide for the created commitment plan.
163
+ * @param options The options parameters.
164
+ */
165
+ beginCreateOrUpdatePlanAndWait(
166
+ resourceGroupName: string,
167
+ commitmentPlanName: string,
168
+ commitmentPlan: CommitmentPlan,
169
+ options?: CommitmentPlansCreateOrUpdatePlanOptionalParams
170
+ ): Promise<CommitmentPlansCreateOrUpdatePlanResponse>;
171
+ /**
172
+ * Create Cognitive Services commitment plan.
173
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
174
+ * @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services
175
+ * Account
176
+ * @param commitmentPlan The parameters to provide for the created commitment plan.
177
+ * @param options The options parameters.
178
+ */
179
+ beginUpdatePlan(
180
+ resourceGroupName: string,
181
+ commitmentPlanName: string,
182
+ commitmentPlan: PatchResourceTagsAndSku,
183
+ options?: CommitmentPlansUpdatePlanOptionalParams
184
+ ): Promise<
185
+ PollerLike<
186
+ PollOperationState<CommitmentPlansUpdatePlanResponse>,
187
+ CommitmentPlansUpdatePlanResponse
188
+ >
189
+ >;
190
+ /**
191
+ * Create Cognitive Services commitment plan.
192
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
193
+ * @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services
194
+ * Account
195
+ * @param commitmentPlan The parameters to provide for the created commitment plan.
196
+ * @param options The options parameters.
197
+ */
198
+ beginUpdatePlanAndWait(
199
+ resourceGroupName: string,
200
+ commitmentPlanName: string,
201
+ commitmentPlan: PatchResourceTagsAndSku,
202
+ options?: CommitmentPlansUpdatePlanOptionalParams
203
+ ): Promise<CommitmentPlansUpdatePlanResponse>;
204
+ /**
205
+ * Deletes a Cognitive Services commitment plan from the resource group.
206
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
207
+ * @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services
208
+ * Account
209
+ * @param options The options parameters.
210
+ */
211
+ beginDeletePlan(
212
+ resourceGroupName: string,
213
+ commitmentPlanName: string,
214
+ options?: CommitmentPlansDeletePlanOptionalParams
215
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
216
+ /**
217
+ * Deletes a Cognitive Services commitment plan from the resource group.
218
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
219
+ * @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services
220
+ * Account
221
+ * @param options The options parameters.
222
+ */
223
+ beginDeletePlanAndWait(
224
+ resourceGroupName: string,
225
+ commitmentPlanName: string,
226
+ options?: CommitmentPlansDeletePlanOptionalParams
227
+ ): Promise<void>;
228
+ /**
229
+ * Returns a Cognitive Services commitment plan specified by the parameters.
230
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
231
+ * @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services
232
+ * Account
233
+ * @param options The options parameters.
234
+ */
235
+ getPlan(
236
+ resourceGroupName: string,
237
+ commitmentPlanName: string,
238
+ options?: CommitmentPlansGetPlanOptionalParams
239
+ ): Promise<CommitmentPlansGetPlanResponse>;
240
+ /**
241
+ * Gets the association of the Cognitive Services commitment plan.
242
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
243
+ * @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services
244
+ * Account
245
+ * @param commitmentPlanAssociationName The name of the commitment plan association with the Cognitive
246
+ * Services Account
247
+ * @param options The options parameters.
248
+ */
249
+ getAssociation(
250
+ resourceGroupName: string,
251
+ commitmentPlanName: string,
252
+ commitmentPlanAssociationName: string,
253
+ options?: CommitmentPlansGetAssociationOptionalParams
254
+ ): Promise<CommitmentPlansGetAssociationResponse>;
255
+ /**
256
+ * Create or update the association of the Cognitive Services commitment plan.
257
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
258
+ * @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services
259
+ * Account
260
+ * @param commitmentPlanAssociationName The name of the commitment plan association with the Cognitive
261
+ * Services Account
262
+ * @param association The commitmentPlan properties.
263
+ * @param options The options parameters.
264
+ */
265
+ beginCreateOrUpdateAssociation(
266
+ resourceGroupName: string,
267
+ commitmentPlanName: string,
268
+ commitmentPlanAssociationName: string,
269
+ association: CommitmentPlanAccountAssociation,
270
+ options?: CommitmentPlansCreateOrUpdateAssociationOptionalParams
271
+ ): Promise<
272
+ PollerLike<
273
+ PollOperationState<CommitmentPlansCreateOrUpdateAssociationResponse>,
274
+ CommitmentPlansCreateOrUpdateAssociationResponse
275
+ >
276
+ >;
277
+ /**
278
+ * Create or update the association of the Cognitive Services commitment plan.
279
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
280
+ * @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services
281
+ * Account
282
+ * @param commitmentPlanAssociationName The name of the commitment plan association with the Cognitive
283
+ * Services Account
284
+ * @param association The commitmentPlan properties.
285
+ * @param options The options parameters.
286
+ */
287
+ beginCreateOrUpdateAssociationAndWait(
288
+ resourceGroupName: string,
289
+ commitmentPlanName: string,
290
+ commitmentPlanAssociationName: string,
291
+ association: CommitmentPlanAccountAssociation,
292
+ options?: CommitmentPlansCreateOrUpdateAssociationOptionalParams
293
+ ): Promise<CommitmentPlansCreateOrUpdateAssociationResponse>;
294
+ /**
295
+ * Deletes the association of the Cognitive Services commitment plan.
296
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
297
+ * @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services
298
+ * Account
299
+ * @param commitmentPlanAssociationName The name of the commitment plan association with the Cognitive
300
+ * Services Account
301
+ * @param options The options parameters.
302
+ */
303
+ beginDeleteAssociation(
304
+ resourceGroupName: string,
305
+ commitmentPlanName: string,
306
+ commitmentPlanAssociationName: string,
307
+ options?: CommitmentPlansDeleteAssociationOptionalParams
308
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
309
+ /**
310
+ * Deletes the association of the Cognitive Services commitment plan.
311
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
312
+ * @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services
313
+ * Account
314
+ * @param commitmentPlanAssociationName The name of the commitment plan association with the Cognitive
315
+ * Services Account
316
+ * @param options The options parameters.
317
+ */
318
+ beginDeleteAssociationAndWait(
319
+ resourceGroupName: string,
320
+ commitmentPlanName: string,
321
+ commitmentPlanAssociationName: string,
322
+ options?: CommitmentPlansDeleteAssociationOptionalParams
323
+ ): Promise<void>;
93
324
  }
@@ -13,11 +13,11 @@ export interface PageInfo {
13
13
  const pageMap = new WeakMap<object, PageInfo>();
14
14
 
15
15
  /**
16
- * Given a result page from a pageable operation, returns a
17
- * continuation token that can be used to begin paging from
16
+ * Given the last `.value` produced by the `byPage` iterator,
17
+ * returns a continuation token that can be used to begin paging from
18
18
  * that point later.
19
- * @param page A result object from calling .byPage() on a paged operation.
20
- * @returns The continuation token that can be passed into byPage().
19
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
20
+ * @returns The continuation token that can be passed into byPage() during future calls.
21
21
  */
22
22
  export function getContinuationToken(page: unknown): string | undefined {
23
23
  if (typeof page !== "object" || page === null) {