@azure/arm-commitmentplans 0.1.0 → 2.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +75 -73
- package/dist/index.js +1794 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/azureMLCommitmentPlansManagementClient.d.ts +22 -0
- package/dist-esm/src/azureMLCommitmentPlansManagementClient.d.ts.map +1 -0
- package/dist-esm/src/azureMLCommitmentPlansManagementClient.js +55 -0
- package/dist-esm/src/azureMLCommitmentPlansManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +522 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +27 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +24 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +352 -337
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +15 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +125 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/commitmentAssociations.d.ts +55 -0
- package/dist-esm/src/operations/commitmentAssociations.d.ts.map +1 -0
- package/dist-esm/src/operations/commitmentAssociations.js +203 -0
- package/dist-esm/src/operations/commitmentAssociations.js.map +1 -0
- package/dist-esm/src/operations/commitmentPlans.d.ts +84 -0
- package/dist-esm/src/operations/commitmentPlans.d.ts.map +1 -0
- package/dist-esm/src/operations/commitmentPlans.js +332 -0
- package/dist-esm/src/operations/commitmentPlans.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +4 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +26 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +87 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/skus.d.ts +26 -0
- package/dist-esm/src/operations/skus.d.ts.map +1 -0
- package/dist-esm/src/operations/skus.js +87 -0
- package/dist-esm/src/operations/skus.js.map +1 -0
- package/dist-esm/src/operations/usageHistory.d.ts +38 -0
- package/dist-esm/src/operations/usageHistory.d.ts.map +1 -0
- package/dist-esm/src/operations/usageHistory.js +131 -0
- package/dist-esm/src/operations/usageHistory.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/commitmentAssociations.d.ts +30 -0
- package/dist-esm/src/operationsInterfaces/commitmentAssociations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/commitmentAssociations.js +9 -0
- package/dist-esm/src/operationsInterfaces/commitmentAssociations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/commitmentPlans.d.ts +48 -0
- package/dist-esm/src/operationsInterfaces/commitmentPlans.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/commitmentPlans.js +9 -0
- package/dist-esm/src/operationsInterfaces/commitmentPlans.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +13 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/skus.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/skus.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/skus.js +9 -0
- package/dist-esm/src/operationsInterfaces/skus.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/usageHistory.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/usageHistory.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/usageHistory.js +9 -0
- package/dist-esm/src/operationsInterfaces/usageHistory.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +77 -34
- package/review/arm-commitmentplans.api.md +405 -0
- package/rollup.config.js +184 -27
- package/src/azureMLCommitmentPlansManagementClient.ts +95 -0
- package/src/index.ts +12 -0
- package/src/models/index.ts +579 -0
- package/{lib → src}/models/mappers.ts +354 -336
- package/src/models/parameters.ts +147 -0
- package/src/operations/commitmentAssociations.ts +281 -0
- package/src/operations/commitmentPlans.ts +420 -0
- package/{lib → src}/operations/index.ts +4 -5
- package/src/operations/operations.ts +95 -0
- package/src/operations/skus.ts +94 -0
- package/src/operations/usageHistory.ts +183 -0
- package/src/operationsInterfaces/commitmentAssociations.ts +62 -0
- package/src/operationsInterfaces/commitmentPlans.ts +92 -0
- package/src/operationsInterfaces/index.ts +13 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/skus.ts +22 -0
- package/src/operationsInterfaces/usageHistory.ts +26 -0
- package/tsconfig.json +6 -5
- package/types/arm-commitmentplans.d.ts +706 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-commitmentplans.js +0 -1649
- package/dist/arm-commitmentplans.js.map +0 -1
- package/dist/arm-commitmentplans.min.js +0 -1
- package/dist/arm-commitmentplans.min.js.map +0 -1
- package/esm/azureMLCommitmentPlansManagementClient.d.ts +0 -21
- package/esm/azureMLCommitmentPlansManagementClient.d.ts.map +0 -1
- package/esm/azureMLCommitmentPlansManagementClient.js +0 -36
- package/esm/azureMLCommitmentPlansManagementClient.js.map +0 -1
- package/esm/azureMLCommitmentPlansManagementClientContext.d.ts +0 -16
- package/esm/azureMLCommitmentPlansManagementClientContext.d.ts.map +0 -1
- package/esm/azureMLCommitmentPlansManagementClientContext.js +0 -56
- package/esm/azureMLCommitmentPlansManagementClientContext.js.map +0 -1
- package/esm/models/commitmentAssociationsMappers.d.ts +0 -2
- package/esm/models/commitmentAssociationsMappers.d.ts.map +0 -1
- package/esm/models/commitmentAssociationsMappers.js +0 -11
- package/esm/models/commitmentAssociationsMappers.js.map +0 -1
- package/esm/models/commitmentPlansMappers.d.ts +0 -2
- package/esm/models/commitmentPlansMappers.d.ts.map +0 -1
- package/esm/models/commitmentPlansMappers.js +0 -11
- package/esm/models/commitmentPlansMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -901
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -10
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -23
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -10
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -93
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/skusMappers.d.ts +0 -2
- package/esm/models/skusMappers.d.ts.map +0 -1
- package/esm/models/skusMappers.js +0 -11
- package/esm/models/skusMappers.js.map +0 -1
- package/esm/models/usageHistoryMappers.d.ts +0 -2
- package/esm/models/usageHistoryMappers.d.ts.map +0 -1
- package/esm/models/usageHistoryMappers.js +0 -11
- package/esm/models/usageHistoryMappers.js.map +0 -1
- package/esm/operations/commitmentAssociations.d.ts +0 -103
- package/esm/operations/commitmentAssociations.d.ts.map +0 -1
- package/esm/operations/commitmentAssociations.js +0 -157
- package/esm/operations/commitmentAssociations.js.map +0 -1
- package/esm/operations/commitmentPlans.d.ts +0 -175
- package/esm/operations/commitmentPlans.d.ts.map +0 -1
- package/esm/operations/commitmentPlans.js +0 -273
- package/esm/operations/commitmentPlans.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/skus.d.ts +0 -28
- package/esm/operations/skus.d.ts.map +0 -1
- package/esm/operations/skus.js +0 -54
- package/esm/operations/skus.js.map +0 -1
- package/esm/operations/usageHistory.d.ts +0 -52
- package/esm/operations/usageHistory.d.ts.map +0 -1
- package/esm/operations/usageHistory.js +0 -85
- package/esm/operations/usageHistory.js.map +0 -1
- package/lib/azureMLCommitmentPlansManagementClient.ts +0 -48
- package/lib/azureMLCommitmentPlansManagementClientContext.ts +0 -62
- package/lib/models/commitmentAssociationsMappers.ts +0 -24
- package/lib/models/commitmentPlansMappers.ts +0 -24
- package/lib/models/index.ts +0 -936
- package/lib/models/parameters.ts +0 -95
- package/lib/models/skusMappers.ts +0 -20
- package/lib/models/usageHistoryMappers.ts +0 -16
- package/lib/operations/commitmentAssociations.ts +0 -272
- package/lib/operations/commitmentPlans.ts +0 -483
- package/lib/operations/skus.ts +0 -77
- package/lib/operations/usageHistory.ts +0 -137
|
@@ -1,483 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
4
|
-
* license information.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
12
|
-
import * as Models from "../models";
|
|
13
|
-
import * as Mappers from "../models/commitmentPlansMappers";
|
|
14
|
-
import * as Parameters from "../models/parameters";
|
|
15
|
-
import { AzureMLCommitmentPlansManagementClientContext } from "../azureMLCommitmentPlansManagementClientContext";
|
|
16
|
-
|
|
17
|
-
/** Class representing a CommitmentPlans. */
|
|
18
|
-
export class CommitmentPlans {
|
|
19
|
-
private readonly client: AzureMLCommitmentPlansManagementClientContext;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Create a CommitmentPlans.
|
|
23
|
-
* @param {AzureMLCommitmentPlansManagementClientContext} client Reference to the service client.
|
|
24
|
-
*/
|
|
25
|
-
constructor(client: AzureMLCommitmentPlansManagementClientContext) {
|
|
26
|
-
this.client = client;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Retrieve an Azure ML commitment plan by its subscription, resource group and name.
|
|
31
|
-
* @param resourceGroupName The resource group name.
|
|
32
|
-
* @param commitmentPlanName The Azure ML commitment plan name.
|
|
33
|
-
* @param [options] The optional parameters
|
|
34
|
-
* @returns Promise<Models.CommitmentPlansGetResponse>
|
|
35
|
-
*/
|
|
36
|
-
get(resourceGroupName: string, commitmentPlanName: string, options?: msRest.RequestOptionsBase): Promise<Models.CommitmentPlansGetResponse>;
|
|
37
|
-
/**
|
|
38
|
-
* @param resourceGroupName The resource group name.
|
|
39
|
-
* @param commitmentPlanName The Azure ML commitment plan name.
|
|
40
|
-
* @param callback The callback
|
|
41
|
-
*/
|
|
42
|
-
get(resourceGroupName: string, commitmentPlanName: string, callback: msRest.ServiceCallback<Models.CommitmentPlan>): void;
|
|
43
|
-
/**
|
|
44
|
-
* @param resourceGroupName The resource group name.
|
|
45
|
-
* @param commitmentPlanName The Azure ML commitment plan name.
|
|
46
|
-
* @param options The optional parameters
|
|
47
|
-
* @param callback The callback
|
|
48
|
-
*/
|
|
49
|
-
get(resourceGroupName: string, commitmentPlanName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CommitmentPlan>): void;
|
|
50
|
-
get(resourceGroupName: string, commitmentPlanName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CommitmentPlan>, callback?: msRest.ServiceCallback<Models.CommitmentPlan>): Promise<Models.CommitmentPlansGetResponse> {
|
|
51
|
-
return this.client.sendOperationRequest(
|
|
52
|
-
{
|
|
53
|
-
resourceGroupName,
|
|
54
|
-
commitmentPlanName,
|
|
55
|
-
options
|
|
56
|
-
},
|
|
57
|
-
getOperationSpec,
|
|
58
|
-
callback) as Promise<Models.CommitmentPlansGetResponse>;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Create a new Azure ML commitment plan resource or updates an existing one.
|
|
63
|
-
* @param createOrUpdatePayload The payload to create or update the Azure ML commitment plan.
|
|
64
|
-
* @param resourceGroupName The resource group name.
|
|
65
|
-
* @param commitmentPlanName The Azure ML commitment plan name.
|
|
66
|
-
* @param [options] The optional parameters
|
|
67
|
-
* @returns Promise<Models.CommitmentPlansCreateOrUpdateResponse>
|
|
68
|
-
*/
|
|
69
|
-
createOrUpdate(createOrUpdatePayload: Models.CommitmentPlan, resourceGroupName: string, commitmentPlanName: string, options?: msRest.RequestOptionsBase): Promise<Models.CommitmentPlansCreateOrUpdateResponse>;
|
|
70
|
-
/**
|
|
71
|
-
* @param createOrUpdatePayload The payload to create or update the Azure ML commitment plan.
|
|
72
|
-
* @param resourceGroupName The resource group name.
|
|
73
|
-
* @param commitmentPlanName The Azure ML commitment plan name.
|
|
74
|
-
* @param callback The callback
|
|
75
|
-
*/
|
|
76
|
-
createOrUpdate(createOrUpdatePayload: Models.CommitmentPlan, resourceGroupName: string, commitmentPlanName: string, callback: msRest.ServiceCallback<Models.CommitmentPlan>): void;
|
|
77
|
-
/**
|
|
78
|
-
* @param createOrUpdatePayload The payload to create or update the Azure ML commitment plan.
|
|
79
|
-
* @param resourceGroupName The resource group name.
|
|
80
|
-
* @param commitmentPlanName The Azure ML commitment plan name.
|
|
81
|
-
* @param options The optional parameters
|
|
82
|
-
* @param callback The callback
|
|
83
|
-
*/
|
|
84
|
-
createOrUpdate(createOrUpdatePayload: Models.CommitmentPlan, resourceGroupName: string, commitmentPlanName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CommitmentPlan>): void;
|
|
85
|
-
createOrUpdate(createOrUpdatePayload: Models.CommitmentPlan, resourceGroupName: string, commitmentPlanName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CommitmentPlan>, callback?: msRest.ServiceCallback<Models.CommitmentPlan>): Promise<Models.CommitmentPlansCreateOrUpdateResponse> {
|
|
86
|
-
return this.client.sendOperationRequest(
|
|
87
|
-
{
|
|
88
|
-
createOrUpdatePayload,
|
|
89
|
-
resourceGroupName,
|
|
90
|
-
commitmentPlanName,
|
|
91
|
-
options
|
|
92
|
-
},
|
|
93
|
-
createOrUpdateOperationSpec,
|
|
94
|
-
callback) as Promise<Models.CommitmentPlansCreateOrUpdateResponse>;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Remove an existing Azure ML commitment plan.
|
|
99
|
-
* @param resourceGroupName The resource group name.
|
|
100
|
-
* @param commitmentPlanName The Azure ML commitment plan name.
|
|
101
|
-
* @param [options] The optional parameters
|
|
102
|
-
* @returns Promise<msRest.RestResponse>
|
|
103
|
-
*/
|
|
104
|
-
remove(resourceGroupName: string, commitmentPlanName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
|
|
105
|
-
/**
|
|
106
|
-
* @param resourceGroupName The resource group name.
|
|
107
|
-
* @param commitmentPlanName The Azure ML commitment plan name.
|
|
108
|
-
* @param callback The callback
|
|
109
|
-
*/
|
|
110
|
-
remove(resourceGroupName: string, commitmentPlanName: string, callback: msRest.ServiceCallback<void>): void;
|
|
111
|
-
/**
|
|
112
|
-
* @param resourceGroupName The resource group name.
|
|
113
|
-
* @param commitmentPlanName The Azure ML commitment plan name.
|
|
114
|
-
* @param options The optional parameters
|
|
115
|
-
* @param callback The callback
|
|
116
|
-
*/
|
|
117
|
-
remove(resourceGroupName: string, commitmentPlanName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
|
|
118
|
-
remove(resourceGroupName: string, commitmentPlanName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
|
|
119
|
-
return this.client.sendOperationRequest(
|
|
120
|
-
{
|
|
121
|
-
resourceGroupName,
|
|
122
|
-
commitmentPlanName,
|
|
123
|
-
options
|
|
124
|
-
},
|
|
125
|
-
removeOperationSpec,
|
|
126
|
-
callback);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Patch an existing Azure ML commitment plan resource.
|
|
131
|
-
* @param patchPayload The payload to use to patch the Azure ML commitment plan. Only tags and SKU
|
|
132
|
-
* may be modified on an existing commitment plan.
|
|
133
|
-
* @param resourceGroupName The resource group name.
|
|
134
|
-
* @param commitmentPlanName The Azure ML commitment plan name.
|
|
135
|
-
* @param [options] The optional parameters
|
|
136
|
-
* @returns Promise<Models.CommitmentPlansPatchResponse>
|
|
137
|
-
*/
|
|
138
|
-
patch(patchPayload: Models.CommitmentPlanPatchPayload, resourceGroupName: string, commitmentPlanName: string, options?: msRest.RequestOptionsBase): Promise<Models.CommitmentPlansPatchResponse>;
|
|
139
|
-
/**
|
|
140
|
-
* @param patchPayload The payload to use to patch the Azure ML commitment plan. Only tags and SKU
|
|
141
|
-
* may be modified on an existing commitment plan.
|
|
142
|
-
* @param resourceGroupName The resource group name.
|
|
143
|
-
* @param commitmentPlanName The Azure ML commitment plan name.
|
|
144
|
-
* @param callback The callback
|
|
145
|
-
*/
|
|
146
|
-
patch(patchPayload: Models.CommitmentPlanPatchPayload, resourceGroupName: string, commitmentPlanName: string, callback: msRest.ServiceCallback<Models.CommitmentPlan>): void;
|
|
147
|
-
/**
|
|
148
|
-
* @param patchPayload The payload to use to patch the Azure ML commitment plan. Only tags and SKU
|
|
149
|
-
* may be modified on an existing commitment plan.
|
|
150
|
-
* @param resourceGroupName The resource group name.
|
|
151
|
-
* @param commitmentPlanName The Azure ML commitment plan name.
|
|
152
|
-
* @param options The optional parameters
|
|
153
|
-
* @param callback The callback
|
|
154
|
-
*/
|
|
155
|
-
patch(patchPayload: Models.CommitmentPlanPatchPayload, resourceGroupName: string, commitmentPlanName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CommitmentPlan>): void;
|
|
156
|
-
patch(patchPayload: Models.CommitmentPlanPatchPayload, resourceGroupName: string, commitmentPlanName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CommitmentPlan>, callback?: msRest.ServiceCallback<Models.CommitmentPlan>): Promise<Models.CommitmentPlansPatchResponse> {
|
|
157
|
-
return this.client.sendOperationRequest(
|
|
158
|
-
{
|
|
159
|
-
patchPayload,
|
|
160
|
-
resourceGroupName,
|
|
161
|
-
commitmentPlanName,
|
|
162
|
-
options
|
|
163
|
-
},
|
|
164
|
-
patchOperationSpec,
|
|
165
|
-
callback) as Promise<Models.CommitmentPlansPatchResponse>;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Retrieve all Azure ML commitment plans in a subscription.
|
|
170
|
-
* @param [options] The optional parameters
|
|
171
|
-
* @returns Promise<Models.CommitmentPlansListResponse>
|
|
172
|
-
*/
|
|
173
|
-
list(options?: Models.CommitmentPlansListOptionalParams): Promise<Models.CommitmentPlansListResponse>;
|
|
174
|
-
/**
|
|
175
|
-
* @param callback The callback
|
|
176
|
-
*/
|
|
177
|
-
list(callback: msRest.ServiceCallback<Models.CommitmentPlanListResult>): void;
|
|
178
|
-
/**
|
|
179
|
-
* @param options The optional parameters
|
|
180
|
-
* @param callback The callback
|
|
181
|
-
*/
|
|
182
|
-
list(options: Models.CommitmentPlansListOptionalParams, callback: msRest.ServiceCallback<Models.CommitmentPlanListResult>): void;
|
|
183
|
-
list(options?: Models.CommitmentPlansListOptionalParams | msRest.ServiceCallback<Models.CommitmentPlanListResult>, callback?: msRest.ServiceCallback<Models.CommitmentPlanListResult>): Promise<Models.CommitmentPlansListResponse> {
|
|
184
|
-
return this.client.sendOperationRequest(
|
|
185
|
-
{
|
|
186
|
-
options
|
|
187
|
-
},
|
|
188
|
-
listOperationSpec,
|
|
189
|
-
callback) as Promise<Models.CommitmentPlansListResponse>;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* Retrieve all Azure ML commitment plans in a resource group.
|
|
194
|
-
* @param resourceGroupName The resource group name.
|
|
195
|
-
* @param [options] The optional parameters
|
|
196
|
-
* @returns Promise<Models.CommitmentPlansListInResourceGroupResponse>
|
|
197
|
-
*/
|
|
198
|
-
listInResourceGroup(resourceGroupName: string, options?: Models.CommitmentPlansListInResourceGroupOptionalParams): Promise<Models.CommitmentPlansListInResourceGroupResponse>;
|
|
199
|
-
/**
|
|
200
|
-
* @param resourceGroupName The resource group name.
|
|
201
|
-
* @param callback The callback
|
|
202
|
-
*/
|
|
203
|
-
listInResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.CommitmentPlanListResult>): void;
|
|
204
|
-
/**
|
|
205
|
-
* @param resourceGroupName The resource group name.
|
|
206
|
-
* @param options The optional parameters
|
|
207
|
-
* @param callback The callback
|
|
208
|
-
*/
|
|
209
|
-
listInResourceGroup(resourceGroupName: string, options: Models.CommitmentPlansListInResourceGroupOptionalParams, callback: msRest.ServiceCallback<Models.CommitmentPlanListResult>): void;
|
|
210
|
-
listInResourceGroup(resourceGroupName: string, options?: Models.CommitmentPlansListInResourceGroupOptionalParams | msRest.ServiceCallback<Models.CommitmentPlanListResult>, callback?: msRest.ServiceCallback<Models.CommitmentPlanListResult>): Promise<Models.CommitmentPlansListInResourceGroupResponse> {
|
|
211
|
-
return this.client.sendOperationRequest(
|
|
212
|
-
{
|
|
213
|
-
resourceGroupName,
|
|
214
|
-
options
|
|
215
|
-
},
|
|
216
|
-
listInResourceGroupOperationSpec,
|
|
217
|
-
callback) as Promise<Models.CommitmentPlansListInResourceGroupResponse>;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* Retrieve all Azure ML commitment plans in a subscription.
|
|
222
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
223
|
-
* @param [options] The optional parameters
|
|
224
|
-
* @returns Promise<Models.CommitmentPlansListNextResponse>
|
|
225
|
-
*/
|
|
226
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.CommitmentPlansListNextResponse>;
|
|
227
|
-
/**
|
|
228
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
229
|
-
* @param callback The callback
|
|
230
|
-
*/
|
|
231
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.CommitmentPlanListResult>): void;
|
|
232
|
-
/**
|
|
233
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
234
|
-
* @param options The optional parameters
|
|
235
|
-
* @param callback The callback
|
|
236
|
-
*/
|
|
237
|
-
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CommitmentPlanListResult>): void;
|
|
238
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CommitmentPlanListResult>, callback?: msRest.ServiceCallback<Models.CommitmentPlanListResult>): Promise<Models.CommitmentPlansListNextResponse> {
|
|
239
|
-
return this.client.sendOperationRequest(
|
|
240
|
-
{
|
|
241
|
-
nextPageLink,
|
|
242
|
-
options
|
|
243
|
-
},
|
|
244
|
-
listNextOperationSpec,
|
|
245
|
-
callback) as Promise<Models.CommitmentPlansListNextResponse>;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* Retrieve all Azure ML commitment plans in a resource group.
|
|
250
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
251
|
-
* @param [options] The optional parameters
|
|
252
|
-
* @returns Promise<Models.CommitmentPlansListInResourceGroupNextResponse>
|
|
253
|
-
*/
|
|
254
|
-
listInResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.CommitmentPlansListInResourceGroupNextResponse>;
|
|
255
|
-
/**
|
|
256
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
257
|
-
* @param callback The callback
|
|
258
|
-
*/
|
|
259
|
-
listInResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.CommitmentPlanListResult>): void;
|
|
260
|
-
/**
|
|
261
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
262
|
-
* @param options The optional parameters
|
|
263
|
-
* @param callback The callback
|
|
264
|
-
*/
|
|
265
|
-
listInResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CommitmentPlanListResult>): void;
|
|
266
|
-
listInResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CommitmentPlanListResult>, callback?: msRest.ServiceCallback<Models.CommitmentPlanListResult>): Promise<Models.CommitmentPlansListInResourceGroupNextResponse> {
|
|
267
|
-
return this.client.sendOperationRequest(
|
|
268
|
-
{
|
|
269
|
-
nextPageLink,
|
|
270
|
-
options
|
|
271
|
-
},
|
|
272
|
-
listInResourceGroupNextOperationSpec,
|
|
273
|
-
callback) as Promise<Models.CommitmentPlansListInResourceGroupNextResponse>;
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
// Operation Specifications
|
|
278
|
-
const serializer = new msRest.Serializer(Mappers);
|
|
279
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
280
|
-
httpMethod: "GET",
|
|
281
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}",
|
|
282
|
-
urlParameters: [
|
|
283
|
-
Parameters.subscriptionId,
|
|
284
|
-
Parameters.resourceGroupName,
|
|
285
|
-
Parameters.commitmentPlanName
|
|
286
|
-
],
|
|
287
|
-
queryParameters: [
|
|
288
|
-
Parameters.apiVersion
|
|
289
|
-
],
|
|
290
|
-
headerParameters: [
|
|
291
|
-
Parameters.acceptLanguage
|
|
292
|
-
],
|
|
293
|
-
responses: {
|
|
294
|
-
200: {
|
|
295
|
-
bodyMapper: Mappers.CommitmentPlan
|
|
296
|
-
},
|
|
297
|
-
default: {
|
|
298
|
-
bodyMapper: Mappers.CloudError
|
|
299
|
-
}
|
|
300
|
-
},
|
|
301
|
-
serializer
|
|
302
|
-
};
|
|
303
|
-
|
|
304
|
-
const createOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
305
|
-
httpMethod: "PUT",
|
|
306
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}",
|
|
307
|
-
urlParameters: [
|
|
308
|
-
Parameters.subscriptionId,
|
|
309
|
-
Parameters.resourceGroupName,
|
|
310
|
-
Parameters.commitmentPlanName
|
|
311
|
-
],
|
|
312
|
-
queryParameters: [
|
|
313
|
-
Parameters.apiVersion
|
|
314
|
-
],
|
|
315
|
-
headerParameters: [
|
|
316
|
-
Parameters.acceptLanguage
|
|
317
|
-
],
|
|
318
|
-
requestBody: {
|
|
319
|
-
parameterPath: "createOrUpdatePayload",
|
|
320
|
-
mapper: {
|
|
321
|
-
...Mappers.CommitmentPlan,
|
|
322
|
-
required: true
|
|
323
|
-
}
|
|
324
|
-
},
|
|
325
|
-
responses: {
|
|
326
|
-
200: {
|
|
327
|
-
bodyMapper: Mappers.CommitmentPlan
|
|
328
|
-
},
|
|
329
|
-
201: {
|
|
330
|
-
bodyMapper: Mappers.CommitmentPlan
|
|
331
|
-
},
|
|
332
|
-
default: {
|
|
333
|
-
bodyMapper: Mappers.CloudError
|
|
334
|
-
}
|
|
335
|
-
},
|
|
336
|
-
serializer
|
|
337
|
-
};
|
|
338
|
-
|
|
339
|
-
const removeOperationSpec: msRest.OperationSpec = {
|
|
340
|
-
httpMethod: "DELETE",
|
|
341
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}",
|
|
342
|
-
urlParameters: [
|
|
343
|
-
Parameters.subscriptionId,
|
|
344
|
-
Parameters.resourceGroupName,
|
|
345
|
-
Parameters.commitmentPlanName
|
|
346
|
-
],
|
|
347
|
-
queryParameters: [
|
|
348
|
-
Parameters.apiVersion
|
|
349
|
-
],
|
|
350
|
-
headerParameters: [
|
|
351
|
-
Parameters.acceptLanguage
|
|
352
|
-
],
|
|
353
|
-
responses: {
|
|
354
|
-
200: {},
|
|
355
|
-
default: {
|
|
356
|
-
bodyMapper: Mappers.CloudError
|
|
357
|
-
}
|
|
358
|
-
},
|
|
359
|
-
serializer
|
|
360
|
-
};
|
|
361
|
-
|
|
362
|
-
const patchOperationSpec: msRest.OperationSpec = {
|
|
363
|
-
httpMethod: "PATCH",
|
|
364
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}",
|
|
365
|
-
urlParameters: [
|
|
366
|
-
Parameters.subscriptionId,
|
|
367
|
-
Parameters.resourceGroupName,
|
|
368
|
-
Parameters.commitmentPlanName
|
|
369
|
-
],
|
|
370
|
-
queryParameters: [
|
|
371
|
-
Parameters.apiVersion
|
|
372
|
-
],
|
|
373
|
-
headerParameters: [
|
|
374
|
-
Parameters.acceptLanguage
|
|
375
|
-
],
|
|
376
|
-
requestBody: {
|
|
377
|
-
parameterPath: "patchPayload",
|
|
378
|
-
mapper: {
|
|
379
|
-
...Mappers.CommitmentPlanPatchPayload,
|
|
380
|
-
required: true
|
|
381
|
-
}
|
|
382
|
-
},
|
|
383
|
-
responses: {
|
|
384
|
-
200: {
|
|
385
|
-
bodyMapper: Mappers.CommitmentPlan
|
|
386
|
-
},
|
|
387
|
-
default: {
|
|
388
|
-
bodyMapper: Mappers.CloudError
|
|
389
|
-
}
|
|
390
|
-
},
|
|
391
|
-
serializer
|
|
392
|
-
};
|
|
393
|
-
|
|
394
|
-
const listOperationSpec: msRest.OperationSpec = {
|
|
395
|
-
httpMethod: "GET",
|
|
396
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/commitmentPlans",
|
|
397
|
-
urlParameters: [
|
|
398
|
-
Parameters.subscriptionId
|
|
399
|
-
],
|
|
400
|
-
queryParameters: [
|
|
401
|
-
Parameters.skipToken,
|
|
402
|
-
Parameters.apiVersion
|
|
403
|
-
],
|
|
404
|
-
headerParameters: [
|
|
405
|
-
Parameters.acceptLanguage
|
|
406
|
-
],
|
|
407
|
-
responses: {
|
|
408
|
-
200: {
|
|
409
|
-
bodyMapper: Mappers.CommitmentPlanListResult
|
|
410
|
-
},
|
|
411
|
-
default: {
|
|
412
|
-
bodyMapper: Mappers.CloudError
|
|
413
|
-
}
|
|
414
|
-
},
|
|
415
|
-
serializer
|
|
416
|
-
};
|
|
417
|
-
|
|
418
|
-
const listInResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
419
|
-
httpMethod: "GET",
|
|
420
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans",
|
|
421
|
-
urlParameters: [
|
|
422
|
-
Parameters.subscriptionId,
|
|
423
|
-
Parameters.resourceGroupName
|
|
424
|
-
],
|
|
425
|
-
queryParameters: [
|
|
426
|
-
Parameters.skipToken,
|
|
427
|
-
Parameters.apiVersion
|
|
428
|
-
],
|
|
429
|
-
headerParameters: [
|
|
430
|
-
Parameters.acceptLanguage
|
|
431
|
-
],
|
|
432
|
-
responses: {
|
|
433
|
-
200: {
|
|
434
|
-
bodyMapper: Mappers.CommitmentPlanListResult
|
|
435
|
-
},
|
|
436
|
-
default: {
|
|
437
|
-
bodyMapper: Mappers.CloudError
|
|
438
|
-
}
|
|
439
|
-
},
|
|
440
|
-
serializer
|
|
441
|
-
};
|
|
442
|
-
|
|
443
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
444
|
-
httpMethod: "GET",
|
|
445
|
-
baseUrl: "https://management.azure.com",
|
|
446
|
-
path: "{nextLink}",
|
|
447
|
-
urlParameters: [
|
|
448
|
-
Parameters.nextPageLink
|
|
449
|
-
],
|
|
450
|
-
headerParameters: [
|
|
451
|
-
Parameters.acceptLanguage
|
|
452
|
-
],
|
|
453
|
-
responses: {
|
|
454
|
-
200: {
|
|
455
|
-
bodyMapper: Mappers.CommitmentPlanListResult
|
|
456
|
-
},
|
|
457
|
-
default: {
|
|
458
|
-
bodyMapper: Mappers.CloudError
|
|
459
|
-
}
|
|
460
|
-
},
|
|
461
|
-
serializer
|
|
462
|
-
};
|
|
463
|
-
|
|
464
|
-
const listInResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
465
|
-
httpMethod: "GET",
|
|
466
|
-
baseUrl: "https://management.azure.com",
|
|
467
|
-
path: "{nextLink}",
|
|
468
|
-
urlParameters: [
|
|
469
|
-
Parameters.nextPageLink
|
|
470
|
-
],
|
|
471
|
-
headerParameters: [
|
|
472
|
-
Parameters.acceptLanguage
|
|
473
|
-
],
|
|
474
|
-
responses: {
|
|
475
|
-
200: {
|
|
476
|
-
bodyMapper: Mappers.CommitmentPlanListResult
|
|
477
|
-
},
|
|
478
|
-
default: {
|
|
479
|
-
bodyMapper: Mappers.CloudError
|
|
480
|
-
}
|
|
481
|
-
},
|
|
482
|
-
serializer
|
|
483
|
-
};
|
package/lib/operations/skus.ts
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
4
|
-
* license information.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
12
|
-
import * as Models from "../models";
|
|
13
|
-
import * as Mappers from "../models/skusMappers";
|
|
14
|
-
import * as Parameters from "../models/parameters";
|
|
15
|
-
import { AzureMLCommitmentPlansManagementClientContext } from "../azureMLCommitmentPlansManagementClientContext";
|
|
16
|
-
|
|
17
|
-
/** Class representing a Skus. */
|
|
18
|
-
export class Skus {
|
|
19
|
-
private readonly client: AzureMLCommitmentPlansManagementClientContext;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Create a Skus.
|
|
23
|
-
* @param {AzureMLCommitmentPlansManagementClientContext} client Reference to the service client.
|
|
24
|
-
*/
|
|
25
|
-
constructor(client: AzureMLCommitmentPlansManagementClientContext) {
|
|
26
|
-
this.client = client;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Lists the available commitment plan SKUs.
|
|
31
|
-
* @param [options] The optional parameters
|
|
32
|
-
* @returns Promise<Models.SkusListResponse>
|
|
33
|
-
*/
|
|
34
|
-
list(options?: msRest.RequestOptionsBase): Promise<Models.SkusListResponse>;
|
|
35
|
-
/**
|
|
36
|
-
* @param callback The callback
|
|
37
|
-
*/
|
|
38
|
-
list(callback: msRest.ServiceCallback<Models.SkuListResult>): void;
|
|
39
|
-
/**
|
|
40
|
-
* @param options The optional parameters
|
|
41
|
-
* @param callback The callback
|
|
42
|
-
*/
|
|
43
|
-
list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SkuListResult>): void;
|
|
44
|
-
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SkuListResult>, callback?: msRest.ServiceCallback<Models.SkuListResult>): Promise<Models.SkusListResponse> {
|
|
45
|
-
return this.client.sendOperationRequest(
|
|
46
|
-
{
|
|
47
|
-
options
|
|
48
|
-
},
|
|
49
|
-
listOperationSpec,
|
|
50
|
-
callback) as Promise<Models.SkusListResponse>;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// Operation Specifications
|
|
55
|
-
const serializer = new msRest.Serializer(Mappers);
|
|
56
|
-
const listOperationSpec: msRest.OperationSpec = {
|
|
57
|
-
httpMethod: "GET",
|
|
58
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/skus",
|
|
59
|
-
urlParameters: [
|
|
60
|
-
Parameters.subscriptionId
|
|
61
|
-
],
|
|
62
|
-
queryParameters: [
|
|
63
|
-
Parameters.apiVersion
|
|
64
|
-
],
|
|
65
|
-
headerParameters: [
|
|
66
|
-
Parameters.acceptLanguage
|
|
67
|
-
],
|
|
68
|
-
responses: {
|
|
69
|
-
200: {
|
|
70
|
-
bodyMapper: Mappers.SkuListResult
|
|
71
|
-
},
|
|
72
|
-
default: {
|
|
73
|
-
bodyMapper: Mappers.CloudError
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
serializer
|
|
77
|
-
};
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
4
|
-
* license information.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
12
|
-
import * as Models from "../models";
|
|
13
|
-
import * as Mappers from "../models/usageHistoryMappers";
|
|
14
|
-
import * as Parameters from "../models/parameters";
|
|
15
|
-
import { AzureMLCommitmentPlansManagementClientContext } from "../azureMLCommitmentPlansManagementClientContext";
|
|
16
|
-
|
|
17
|
-
/** Class representing a UsageHistory. */
|
|
18
|
-
export class UsageHistory {
|
|
19
|
-
private readonly client: AzureMLCommitmentPlansManagementClientContext;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Create a UsageHistory.
|
|
23
|
-
* @param {AzureMLCommitmentPlansManagementClientContext} client Reference to the service client.
|
|
24
|
-
*/
|
|
25
|
-
constructor(client: AzureMLCommitmentPlansManagementClientContext) {
|
|
26
|
-
this.client = client;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Retrieve the usage history for an Azure ML commitment plan.
|
|
31
|
-
* @param resourceGroupName The resource group name.
|
|
32
|
-
* @param commitmentPlanName The Azure ML commitment plan name.
|
|
33
|
-
* @param [options] The optional parameters
|
|
34
|
-
* @returns Promise<Models.UsageHistoryListResponse>
|
|
35
|
-
*/
|
|
36
|
-
list(resourceGroupName: string, commitmentPlanName: string, options?: Models.UsageHistoryListOptionalParams): Promise<Models.UsageHistoryListResponse>;
|
|
37
|
-
/**
|
|
38
|
-
* @param resourceGroupName The resource group name.
|
|
39
|
-
* @param commitmentPlanName The Azure ML commitment plan name.
|
|
40
|
-
* @param callback The callback
|
|
41
|
-
*/
|
|
42
|
-
list(resourceGroupName: string, commitmentPlanName: string, callback: msRest.ServiceCallback<Models.PlanUsageHistoryListResult>): void;
|
|
43
|
-
/**
|
|
44
|
-
* @param resourceGroupName The resource group name.
|
|
45
|
-
* @param commitmentPlanName The Azure ML commitment plan name.
|
|
46
|
-
* @param options The optional parameters
|
|
47
|
-
* @param callback The callback
|
|
48
|
-
*/
|
|
49
|
-
list(resourceGroupName: string, commitmentPlanName: string, options: Models.UsageHistoryListOptionalParams, callback: msRest.ServiceCallback<Models.PlanUsageHistoryListResult>): void;
|
|
50
|
-
list(resourceGroupName: string, commitmentPlanName: string, options?: Models.UsageHistoryListOptionalParams | msRest.ServiceCallback<Models.PlanUsageHistoryListResult>, callback?: msRest.ServiceCallback<Models.PlanUsageHistoryListResult>): Promise<Models.UsageHistoryListResponse> {
|
|
51
|
-
return this.client.sendOperationRequest(
|
|
52
|
-
{
|
|
53
|
-
resourceGroupName,
|
|
54
|
-
commitmentPlanName,
|
|
55
|
-
options
|
|
56
|
-
},
|
|
57
|
-
listOperationSpec,
|
|
58
|
-
callback) as Promise<Models.UsageHistoryListResponse>;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Retrieve the usage history for an Azure ML commitment plan.
|
|
63
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
64
|
-
* @param [options] The optional parameters
|
|
65
|
-
* @returns Promise<Models.UsageHistoryListNextResponse>
|
|
66
|
-
*/
|
|
67
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.UsageHistoryListNextResponse>;
|
|
68
|
-
/**
|
|
69
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
70
|
-
* @param callback The callback
|
|
71
|
-
*/
|
|
72
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.PlanUsageHistoryListResult>): void;
|
|
73
|
-
/**
|
|
74
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
75
|
-
* @param options The optional parameters
|
|
76
|
-
* @param callback The callback
|
|
77
|
-
*/
|
|
78
|
-
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.PlanUsageHistoryListResult>): void;
|
|
79
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.PlanUsageHistoryListResult>, callback?: msRest.ServiceCallback<Models.PlanUsageHistoryListResult>): Promise<Models.UsageHistoryListNextResponse> {
|
|
80
|
-
return this.client.sendOperationRequest(
|
|
81
|
-
{
|
|
82
|
-
nextPageLink,
|
|
83
|
-
options
|
|
84
|
-
},
|
|
85
|
-
listNextOperationSpec,
|
|
86
|
-
callback) as Promise<Models.UsageHistoryListNextResponse>;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
// Operation Specifications
|
|
91
|
-
const serializer = new msRest.Serializer(Mappers);
|
|
92
|
-
const listOperationSpec: msRest.OperationSpec = {
|
|
93
|
-
httpMethod: "GET",
|
|
94
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}/usageHistory",
|
|
95
|
-
urlParameters: [
|
|
96
|
-
Parameters.subscriptionId,
|
|
97
|
-
Parameters.resourceGroupName,
|
|
98
|
-
Parameters.commitmentPlanName
|
|
99
|
-
],
|
|
100
|
-
queryParameters: [
|
|
101
|
-
Parameters.skipToken,
|
|
102
|
-
Parameters.apiVersion
|
|
103
|
-
],
|
|
104
|
-
headerParameters: [
|
|
105
|
-
Parameters.acceptLanguage
|
|
106
|
-
],
|
|
107
|
-
responses: {
|
|
108
|
-
200: {
|
|
109
|
-
bodyMapper: Mappers.PlanUsageHistoryListResult
|
|
110
|
-
},
|
|
111
|
-
default: {
|
|
112
|
-
bodyMapper: Mappers.CloudError
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
serializer
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
119
|
-
httpMethod: "GET",
|
|
120
|
-
baseUrl: "https://management.azure.com",
|
|
121
|
-
path: "{nextLink}",
|
|
122
|
-
urlParameters: [
|
|
123
|
-
Parameters.nextPageLink
|
|
124
|
-
],
|
|
125
|
-
headerParameters: [
|
|
126
|
-
Parameters.acceptLanguage
|
|
127
|
-
],
|
|
128
|
-
responses: {
|
|
129
|
-
200: {
|
|
130
|
-
bodyMapper: Mappers.PlanUsageHistoryListResult
|
|
131
|
-
},
|
|
132
|
-
default: {
|
|
133
|
-
bodyMapper: Mappers.CloudError
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
serializer
|
|
137
|
-
};
|