@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.
- package/CHANGELOG.md +71 -0
- package/LICENSE +1 -1
- package/dist/index.js +1232 -42
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/accountsCreateSample.js +17 -8
- package/dist-esm/samples-dev/accountsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/accountsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsGetSample.js +12 -4
- package/dist-esm/samples-dev/accountsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +12 -4
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsListKeysSample.js +12 -4
- package/dist-esm/samples-dev/accountsListKeysSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsListModelsSample.js +11 -4
- package/dist-esm/samples-dev/accountsListModelsSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsListSample.js +11 -3
- package/dist-esm/samples-dev/accountsListSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsListSkusSample.js +12 -4
- package/dist-esm/samples-dev/accountsListSkusSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsListUsagesSample.js +12 -4
- package/dist-esm/samples-dev/accountsListUsagesSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsRegenerateKeySample.js +12 -4
- package/dist-esm/samples-dev/accountsRegenerateKeySample.js.map +1 -1
- package/dist-esm/samples-dev/accountsUpdateSample.js +12 -4
- package/dist-esm/samples-dev/accountsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/checkDomainAvailabilitySample.js +11 -3
- package/dist-esm/samples-dev/checkDomainAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/checkSkuAvailabilitySample.js +11 -3
- package/dist-esm/samples-dev/checkSkuAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateAssociationSample.d.ts +2 -0
- package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateAssociationSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateAssociationSample.js +43 -0
- package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateAssociationSample.js.map +1 -0
- package/dist-esm/samples-dev/commitmentPlansCreateOrUpdatePlanSample.d.ts +2 -0
- package/dist-esm/samples-dev/commitmentPlansCreateOrUpdatePlanSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/commitmentPlansCreateOrUpdatePlanSample.js +50 -0
- package/dist-esm/samples-dev/commitmentPlansCreateOrUpdatePlanSample.js.map +1 -0
- package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateSample.js +11 -4
- package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/commitmentPlansDeleteAssociationSample.d.ts +2 -0
- package/dist-esm/samples-dev/commitmentPlansDeleteAssociationSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/commitmentPlansDeleteAssociationSample.js +40 -0
- package/dist-esm/samples-dev/commitmentPlansDeleteAssociationSample.js.map +1 -0
- package/dist-esm/samples-dev/commitmentPlansDeletePlanSample.d.ts +2 -0
- package/dist-esm/samples-dev/commitmentPlansDeletePlanSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/commitmentPlansDeletePlanSample.js +39 -0
- package/dist-esm/samples-dev/commitmentPlansDeletePlanSample.js.map +1 -0
- package/dist-esm/samples-dev/commitmentPlansDeleteSample.js +11 -4
- package/dist-esm/samples-dev/commitmentPlansDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/commitmentPlansGetAssociationSample.d.ts +2 -0
- package/dist-esm/samples-dev/commitmentPlansGetAssociationSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/commitmentPlansGetAssociationSample.js +40 -0
- package/dist-esm/samples-dev/commitmentPlansGetAssociationSample.js.map +1 -0
- package/dist-esm/samples-dev/commitmentPlansGetPlanSample.d.ts +2 -0
- package/dist-esm/samples-dev/commitmentPlansGetPlanSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/commitmentPlansGetPlanSample.js +39 -0
- package/dist-esm/samples-dev/commitmentPlansGetPlanSample.js.map +1 -0
- package/dist-esm/samples-dev/commitmentPlansGetSample.js +11 -4
- package/dist-esm/samples-dev/commitmentPlansGetSample.js.map +1 -1
- package/dist-esm/samples-dev/commitmentPlansListAssociationsSample.d.ts +2 -0
- package/dist-esm/samples-dev/commitmentPlansListAssociationsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/commitmentPlansListAssociationsSample.js +53 -0
- package/dist-esm/samples-dev/commitmentPlansListAssociationsSample.js.map +1 -0
- package/dist-esm/samples-dev/commitmentPlansListPlansByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/commitmentPlansListPlansByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/commitmentPlansListPlansByResourceGroupSample.js +52 -0
- package/dist-esm/samples-dev/commitmentPlansListPlansByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/commitmentPlansListPlansBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/commitmentPlansListPlansBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/commitmentPlansListPlansBySubscriptionSample.js +51 -0
- package/dist-esm/samples-dev/commitmentPlansListPlansBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/commitmentPlansListSample.js +11 -4
- package/dist-esm/samples-dev/commitmentPlansListSample.js.map +1 -1
- package/dist-esm/samples-dev/commitmentPlansUpdatePlanSample.d.ts +2 -0
- package/dist-esm/samples-dev/commitmentPlansUpdatePlanSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/commitmentPlansUpdatePlanSample.js +40 -0
- package/dist-esm/samples-dev/commitmentPlansUpdatePlanSample.js.map +1 -0
- package/dist-esm/samples-dev/commitmentTiersListSample.js +10 -3
- package/dist-esm/samples-dev/commitmentTiersListSample.js.map +1 -1
- package/dist-esm/samples-dev/deletedAccountsGetSample.js +12 -4
- package/dist-esm/samples-dev/deletedAccountsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/deletedAccountsListSample.js +11 -3
- package/dist-esm/samples-dev/deletedAccountsListSample.js.map +1 -1
- package/dist-esm/samples-dev/deletedAccountsPurgeSample.js +12 -4
- package/dist-esm/samples-dev/deletedAccountsPurgeSample.js.map +1 -1
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js +11 -4
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/deploymentsDeleteSample.js +11 -4
- package/dist-esm/samples-dev/deploymentsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/deploymentsGetSample.js +11 -4
- package/dist-esm/samples-dev/deploymentsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/deploymentsListSample.js +11 -4
- package/dist-esm/samples-dev/deploymentsListSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +11 -3
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListSample.js +11 -4
- package/dist-esm/samples-dev/privateLinkResourcesListSample.js.map +1 -1
- package/dist-esm/samples-dev/resourceSkusListSample.js +11 -3
- package/dist-esm/samples-dev/resourceSkusListSample.js.map +1 -1
- package/dist-esm/src/cognitiveServicesManagementClient.js +2 -2
- package/dist-esm/src/models/index.d.ts +248 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +36 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +10 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +259 -0
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +4 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +36 -2
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/accounts.js +0 -3
- package/dist-esm/src/operations/accounts.js.map +1 -1
- package/dist-esm/src/operations/commitmentPlans.d.ts +181 -1
- package/dist-esm/src/operations/commitmentPlans.d.ts.map +1 -1
- package/dist-esm/src/operations/commitmentPlans.js +864 -5
- package/dist-esm/src/operations/commitmentPlans.js.map +1 -1
- package/dist-esm/src/operations/commitmentTiers.js +0 -1
- package/dist-esm/src/operations/commitmentTiers.js.map +1 -1
- package/dist-esm/src/operations/deletedAccounts.js +0 -1
- package/dist-esm/src/operations/deletedAccounts.js.map +1 -1
- package/dist-esm/src/operations/deployments.js +0 -1
- package/dist-esm/src/operations/deployments.js.map +1 -1
- package/dist-esm/src/operations/operations.js +0 -1
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/resourceSkus.js +0 -1
- package/dist-esm/src/operations/resourceSkus.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/commitmentPlans.d.ts +132 -1
- package/dist-esm/src/operationsInterfaces/commitmentPlans.d.ts.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +4 -4
- package/dist-esm/src/pagingHelper.js +4 -4
- package/dist-esm/test/cognitiveservices_examples.d.ts.map +1 -1
- package/dist-esm/test/cognitiveservices_examples.js +19 -0
- package/dist-esm/test/cognitiveservices_examples.js.map +1 -1
- package/package.json +7 -6
- package/review/arm-cognitiveservices.api.md +220 -0
- package/src/cognitiveServicesManagementClient.ts +2 -2
- package/src/models/index.ts +287 -0
- package/src/models/mappers.ts +283 -0
- package/src/models/parameters.ts +42 -2
- package/src/operations/accounts.ts +0 -3
- package/src/operations/commitmentPlans.ts +1222 -47
- package/src/operations/commitmentTiers.ts +0 -1
- package/src/operations/deletedAccounts.ts +0 -1
- package/src/operations/deployments.ts +0 -1
- package/src/operations/operations.ts +0 -1
- package/src/operations/resourceSkus.ts +0 -1
- package/src/operationsInterfaces/commitmentPlans.ts +232 -1
- package/src/pagingHelper.ts +4 -4
- package/types/arm-cognitiveservices.d.ts +423 -4
- package/types/tsdoc-metadata.json +1 -1
|
@@ -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
|
|
@@ -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
|
}
|
package/src/pagingHelper.ts
CHANGED
|
@@ -13,11 +13,11 @@ export interface PageInfo {
|
|
|
13
13
|
const pageMap = new WeakMap<object, PageInfo>();
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* Given
|
|
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
|
|
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) {
|