@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
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Class containing CommitmentPlans operations. */
|
|
14
|
+
export class CommitmentPlansImpl {
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class CommitmentPlans class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Retrieve all Azure ML commitment plans in a subscription.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
list(options) {
|
|
27
|
+
const iter = this.listPagingAll(options);
|
|
28
|
+
return {
|
|
29
|
+
next() {
|
|
30
|
+
return iter.next();
|
|
31
|
+
},
|
|
32
|
+
[Symbol.asyncIterator]() {
|
|
33
|
+
return this;
|
|
34
|
+
},
|
|
35
|
+
byPage: () => {
|
|
36
|
+
return this.listPagingPage(options);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
listPagingPage(options) {
|
|
41
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
42
|
+
let result = yield __await(this._list(options));
|
|
43
|
+
yield yield __await(result.value || []);
|
|
44
|
+
let continuationToken = result.nextLink;
|
|
45
|
+
while (continuationToken) {
|
|
46
|
+
result = yield __await(this._listNext(continuationToken, options));
|
|
47
|
+
continuationToken = result.nextLink;
|
|
48
|
+
yield yield __await(result.value || []);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
listPagingAll(options) {
|
|
53
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
54
|
+
var e_1, _a;
|
|
55
|
+
try {
|
|
56
|
+
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
57
|
+
const page = _c.value;
|
|
58
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
62
|
+
finally {
|
|
63
|
+
try {
|
|
64
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
65
|
+
}
|
|
66
|
+
finally { if (e_1) throw e_1.error; }
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Retrieve all Azure ML commitment plans in a resource group.
|
|
72
|
+
* @param resourceGroupName The resource group name.
|
|
73
|
+
* @param options The options parameters.
|
|
74
|
+
*/
|
|
75
|
+
listInResourceGroup(resourceGroupName, options) {
|
|
76
|
+
const iter = this.listInResourceGroupPagingAll(resourceGroupName, options);
|
|
77
|
+
return {
|
|
78
|
+
next() {
|
|
79
|
+
return iter.next();
|
|
80
|
+
},
|
|
81
|
+
[Symbol.asyncIterator]() {
|
|
82
|
+
return this;
|
|
83
|
+
},
|
|
84
|
+
byPage: () => {
|
|
85
|
+
return this.listInResourceGroupPagingPage(resourceGroupName, options);
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
listInResourceGroupPagingPage(resourceGroupName, options) {
|
|
90
|
+
return __asyncGenerator(this, arguments, function* listInResourceGroupPagingPage_1() {
|
|
91
|
+
let result = yield __await(this._listInResourceGroup(resourceGroupName, options));
|
|
92
|
+
yield yield __await(result.value || []);
|
|
93
|
+
let continuationToken = result.nextLink;
|
|
94
|
+
while (continuationToken) {
|
|
95
|
+
result = yield __await(this._listInResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
96
|
+
continuationToken = result.nextLink;
|
|
97
|
+
yield yield __await(result.value || []);
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
listInResourceGroupPagingAll(resourceGroupName, options) {
|
|
102
|
+
return __asyncGenerator(this, arguments, function* listInResourceGroupPagingAll_1() {
|
|
103
|
+
var e_2, _a;
|
|
104
|
+
try {
|
|
105
|
+
for (var _b = __asyncValues(this.listInResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
106
|
+
const page = _c.value;
|
|
107
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
111
|
+
finally {
|
|
112
|
+
try {
|
|
113
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
114
|
+
}
|
|
115
|
+
finally { if (e_2) throw e_2.error; }
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Retrieve an Azure ML commitment plan by its subscription, resource group and name.
|
|
121
|
+
* @param resourceGroupName The resource group name.
|
|
122
|
+
* @param commitmentPlanName The Azure ML commitment plan name.
|
|
123
|
+
* @param options The options parameters.
|
|
124
|
+
*/
|
|
125
|
+
get(resourceGroupName, commitmentPlanName, options) {
|
|
126
|
+
return this.client.sendOperationRequest({ resourceGroupName, commitmentPlanName, options }, getOperationSpec);
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Create a new Azure ML commitment plan resource or updates an existing one.
|
|
130
|
+
* @param resourceGroupName The resource group name.
|
|
131
|
+
* @param commitmentPlanName The Azure ML commitment plan name.
|
|
132
|
+
* @param createOrUpdatePayload The payload to create or update the Azure ML commitment plan.
|
|
133
|
+
* @param options The options parameters.
|
|
134
|
+
*/
|
|
135
|
+
createOrUpdate(resourceGroupName, commitmentPlanName, createOrUpdatePayload, options) {
|
|
136
|
+
return this.client.sendOperationRequest({ resourceGroupName, commitmentPlanName, createOrUpdatePayload, options }, createOrUpdateOperationSpec);
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Remove an existing Azure ML commitment plan.
|
|
140
|
+
* @param resourceGroupName The resource group name.
|
|
141
|
+
* @param commitmentPlanName The Azure ML commitment plan name.
|
|
142
|
+
* @param options The options parameters.
|
|
143
|
+
*/
|
|
144
|
+
remove(resourceGroupName, commitmentPlanName, options) {
|
|
145
|
+
return this.client.sendOperationRequest({ resourceGroupName, commitmentPlanName, options }, removeOperationSpec);
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Patch an existing Azure ML commitment plan resource.
|
|
149
|
+
* @param resourceGroupName The resource group name.
|
|
150
|
+
* @param commitmentPlanName The Azure ML commitment plan name.
|
|
151
|
+
* @param patchPayload The payload to use to patch the Azure ML commitment plan. Only tags and SKU may
|
|
152
|
+
* be modified on an existing commitment plan.
|
|
153
|
+
* @param options The options parameters.
|
|
154
|
+
*/
|
|
155
|
+
patch(resourceGroupName, commitmentPlanName, patchPayload, options) {
|
|
156
|
+
return this.client.sendOperationRequest({ resourceGroupName, commitmentPlanName, patchPayload, options }, patchOperationSpec);
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Retrieve all Azure ML commitment plans in a subscription.
|
|
160
|
+
* @param options The options parameters.
|
|
161
|
+
*/
|
|
162
|
+
_list(options) {
|
|
163
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Retrieve all Azure ML commitment plans in a resource group.
|
|
167
|
+
* @param resourceGroupName The resource group name.
|
|
168
|
+
* @param options The options parameters.
|
|
169
|
+
*/
|
|
170
|
+
_listInResourceGroup(resourceGroupName, options) {
|
|
171
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listInResourceGroupOperationSpec);
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* ListNext
|
|
175
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
176
|
+
* @param options The options parameters.
|
|
177
|
+
*/
|
|
178
|
+
_listNext(nextLink, options) {
|
|
179
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* ListInResourceGroupNext
|
|
183
|
+
* @param resourceGroupName The resource group name.
|
|
184
|
+
* @param nextLink The nextLink from the previous successful call to the ListInResourceGroup method.
|
|
185
|
+
* @param options The options parameters.
|
|
186
|
+
*/
|
|
187
|
+
_listInResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
188
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listInResourceGroupNextOperationSpec);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
// Operation Specifications
|
|
192
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
193
|
+
const getOperationSpec = {
|
|
194
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}",
|
|
195
|
+
httpMethod: "GET",
|
|
196
|
+
responses: {
|
|
197
|
+
200: {
|
|
198
|
+
bodyMapper: Mappers.CommitmentPlan
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
queryParameters: [Parameters.apiVersion],
|
|
202
|
+
urlParameters: [
|
|
203
|
+
Parameters.$host,
|
|
204
|
+
Parameters.subscriptionId,
|
|
205
|
+
Parameters.resourceGroupName,
|
|
206
|
+
Parameters.commitmentPlanName
|
|
207
|
+
],
|
|
208
|
+
headerParameters: [Parameters.accept],
|
|
209
|
+
serializer
|
|
210
|
+
};
|
|
211
|
+
const createOrUpdateOperationSpec = {
|
|
212
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}",
|
|
213
|
+
httpMethod: "PUT",
|
|
214
|
+
responses: {
|
|
215
|
+
200: {
|
|
216
|
+
bodyMapper: Mappers.CommitmentPlan
|
|
217
|
+
},
|
|
218
|
+
201: {
|
|
219
|
+
bodyMapper: Mappers.CommitmentPlan
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
requestBody: Parameters.createOrUpdatePayload,
|
|
223
|
+
queryParameters: [Parameters.apiVersion],
|
|
224
|
+
urlParameters: [
|
|
225
|
+
Parameters.$host,
|
|
226
|
+
Parameters.subscriptionId,
|
|
227
|
+
Parameters.resourceGroupName,
|
|
228
|
+
Parameters.commitmentPlanName
|
|
229
|
+
],
|
|
230
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
231
|
+
mediaType: "json",
|
|
232
|
+
serializer
|
|
233
|
+
};
|
|
234
|
+
const removeOperationSpec = {
|
|
235
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}",
|
|
236
|
+
httpMethod: "DELETE",
|
|
237
|
+
responses: { 200: {} },
|
|
238
|
+
queryParameters: [Parameters.apiVersion],
|
|
239
|
+
urlParameters: [
|
|
240
|
+
Parameters.$host,
|
|
241
|
+
Parameters.subscriptionId,
|
|
242
|
+
Parameters.resourceGroupName,
|
|
243
|
+
Parameters.commitmentPlanName
|
|
244
|
+
],
|
|
245
|
+
serializer
|
|
246
|
+
};
|
|
247
|
+
const patchOperationSpec = {
|
|
248
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}",
|
|
249
|
+
httpMethod: "PATCH",
|
|
250
|
+
responses: {
|
|
251
|
+
200: {
|
|
252
|
+
bodyMapper: Mappers.CommitmentPlan
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
requestBody: Parameters.patchPayload,
|
|
256
|
+
queryParameters: [Parameters.apiVersion],
|
|
257
|
+
urlParameters: [
|
|
258
|
+
Parameters.$host,
|
|
259
|
+
Parameters.subscriptionId,
|
|
260
|
+
Parameters.resourceGroupName,
|
|
261
|
+
Parameters.commitmentPlanName
|
|
262
|
+
],
|
|
263
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
264
|
+
mediaType: "json",
|
|
265
|
+
serializer
|
|
266
|
+
};
|
|
267
|
+
const listOperationSpec = {
|
|
268
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/commitmentPlans",
|
|
269
|
+
httpMethod: "GET",
|
|
270
|
+
responses: {
|
|
271
|
+
200: {
|
|
272
|
+
bodyMapper: Mappers.CommitmentPlanListResult
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
queryParameters: [Parameters.apiVersion, Parameters.skipToken],
|
|
276
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
277
|
+
headerParameters: [Parameters.accept],
|
|
278
|
+
serializer
|
|
279
|
+
};
|
|
280
|
+
const listInResourceGroupOperationSpec = {
|
|
281
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans",
|
|
282
|
+
httpMethod: "GET",
|
|
283
|
+
responses: {
|
|
284
|
+
200: {
|
|
285
|
+
bodyMapper: Mappers.CommitmentPlanListResult
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
queryParameters: [Parameters.apiVersion, Parameters.skipToken],
|
|
289
|
+
urlParameters: [
|
|
290
|
+
Parameters.$host,
|
|
291
|
+
Parameters.subscriptionId,
|
|
292
|
+
Parameters.resourceGroupName
|
|
293
|
+
],
|
|
294
|
+
headerParameters: [Parameters.accept],
|
|
295
|
+
serializer
|
|
296
|
+
};
|
|
297
|
+
const listNextOperationSpec = {
|
|
298
|
+
path: "{nextLink}",
|
|
299
|
+
httpMethod: "GET",
|
|
300
|
+
responses: {
|
|
301
|
+
200: {
|
|
302
|
+
bodyMapper: Mappers.CommitmentPlanListResult
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
queryParameters: [Parameters.apiVersion, Parameters.skipToken],
|
|
306
|
+
urlParameters: [
|
|
307
|
+
Parameters.$host,
|
|
308
|
+
Parameters.subscriptionId,
|
|
309
|
+
Parameters.nextLink
|
|
310
|
+
],
|
|
311
|
+
headerParameters: [Parameters.accept],
|
|
312
|
+
serializer
|
|
313
|
+
};
|
|
314
|
+
const listInResourceGroupNextOperationSpec = {
|
|
315
|
+
path: "{nextLink}",
|
|
316
|
+
httpMethod: "GET",
|
|
317
|
+
responses: {
|
|
318
|
+
200: {
|
|
319
|
+
bodyMapper: Mappers.CommitmentPlanListResult
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
queryParameters: [Parameters.apiVersion, Parameters.skipToken],
|
|
323
|
+
urlParameters: [
|
|
324
|
+
Parameters.$host,
|
|
325
|
+
Parameters.subscriptionId,
|
|
326
|
+
Parameters.resourceGroupName,
|
|
327
|
+
Parameters.nextLink
|
|
328
|
+
],
|
|
329
|
+
headerParameters: [Parameters.accept],
|
|
330
|
+
serializer
|
|
331
|
+
};
|
|
332
|
+
//# sourceMappingURL=commitmentPlans.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commitmentPlans.js","sourceRoot":"","sources":["../../../src/operations/commitmentPlans.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAsBnD,4CAA4C;AAC5C,mDAAmD;AACnD,MAAM,OAAO,mBAAmB;IAG9B;;;OAGG;IACH,YAAY,MAA8C;QACxD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAA2C;QAE3C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;YACtC,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAA2C;;YAE3C,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA,CAAC;YACvC,oBAAM,M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H,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,SAAS,CAAC;IAC9D,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,SAAS,CAAC;IAC9D,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
8
|
+
export * from "./operations";
|
|
10
9
|
export * from "./skus";
|
|
11
10
|
export * from "./commitmentAssociations";
|
|
12
11
|
export * from "./commitmentPlans";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Operations } from "../operationsInterfaces";
|
|
3
|
+
import { AzureMLCommitmentPlansManagementClient } from "../azureMLCommitmentPlansManagementClient";
|
|
4
|
+
import { OperationEntity, OperationsListOptionalParams } from "../models";
|
|
5
|
+
/** Class containing Operations operations. */
|
|
6
|
+
export declare class OperationsImpl implements Operations {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Operations class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: AzureMLCommitmentPlansManagementClient);
|
|
13
|
+
/**
|
|
14
|
+
* Lists all of the available Azure Machine Learning Studio Commitment Plan RP REST API operations.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<OperationEntity>;
|
|
18
|
+
private listPagingPage;
|
|
19
|
+
private listPagingAll;
|
|
20
|
+
/**
|
|
21
|
+
* Lists all of the available Azure Machine Learning Studio Commitment Plan RP REST API operations.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
private _list;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,sCAAsC,EAAE,MAAM,2CAA2C,CAAC;AACnG,OAAO,EACL,eAAe,EACf,4BAA4B,EAE7B,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyC;IAEhE;;;OAGG;gBACS,MAAM,EAAE,sCAAsC;IAI1D;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,eAAe,CAAC;YAe/B,cAAc;YAOd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;CAKd"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Class containing Operations operations. */
|
|
14
|
+
export class OperationsImpl {
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class Operations class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Lists all of the available Azure Machine Learning Studio Commitment Plan RP REST API operations.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
list(options) {
|
|
27
|
+
const iter = this.listPagingAll(options);
|
|
28
|
+
return {
|
|
29
|
+
next() {
|
|
30
|
+
return iter.next();
|
|
31
|
+
},
|
|
32
|
+
[Symbol.asyncIterator]() {
|
|
33
|
+
return this;
|
|
34
|
+
},
|
|
35
|
+
byPage: () => {
|
|
36
|
+
return this.listPagingPage(options);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
listPagingPage(options) {
|
|
41
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
42
|
+
let result = yield __await(this._list(options));
|
|
43
|
+
yield yield __await(result.value || []);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
listPagingAll(options) {
|
|
47
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
48
|
+
var e_1, _a;
|
|
49
|
+
try {
|
|
50
|
+
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
51
|
+
const page = _c.value;
|
|
52
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
56
|
+
finally {
|
|
57
|
+
try {
|
|
58
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
59
|
+
}
|
|
60
|
+
finally { if (e_1) throw e_1.error; }
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Lists all of the available Azure Machine Learning Studio Commitment Plan RP REST API operations.
|
|
66
|
+
* @param options The options parameters.
|
|
67
|
+
*/
|
|
68
|
+
_list(options) {
|
|
69
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
// Operation Specifications
|
|
73
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
74
|
+
const listOperationSpec = {
|
|
75
|
+
path: "/providers/Microsoft.MachineLearning/operations",
|
|
76
|
+
httpMethod: "GET",
|
|
77
|
+
responses: {
|
|
78
|
+
200: {
|
|
79
|
+
bodyMapper: Mappers.OperationEntityListResult
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
queryParameters: [Parameters.apiVersion],
|
|
83
|
+
urlParameters: [Parameters.$host],
|
|
84
|
+
headerParameters: [Parameters.accept],
|
|
85
|
+
serializer
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAQnD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAA8C;QACxD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;YACtC,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAAsC;;YAEtC,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA,CAAC;YACvC,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;QAC3B,CAAC;KAAA;IAEc,aAAa,CAC1B,OAAsC;;;;gBAEtC,KAAyB,IAAA,KAAA,cAAA,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAA,IAAA;oBAA1C,MAAM,IAAI,WAAA,CAAA;oBACnB,cAAA,KAAK,CAAC,CAAC,iBAAA,cAAA,IAAI,CAAA,CAAA,CAAA,CAAC;iBACb;;;;;;;;;QACH,CAAC;KAAA;IAED;;;OAGG;IACK,KAAK,CACX,OAAsC;QAEtC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,iDAAiD;IACvD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Skus } from "../operationsInterfaces";
|
|
3
|
+
import { AzureMLCommitmentPlansManagementClient } from "../azureMLCommitmentPlansManagementClient";
|
|
4
|
+
import { CatalogSku, SkusListOptionalParams } from "../models";
|
|
5
|
+
/** Class containing Skus operations. */
|
|
6
|
+
export declare class SkusImpl implements Skus {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Skus class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: AzureMLCommitmentPlansManagementClient);
|
|
13
|
+
/**
|
|
14
|
+
* Lists the available commitment plan SKUs.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
list(options?: SkusListOptionalParams): PagedAsyncIterableIterator<CatalogSku>;
|
|
18
|
+
private listPagingPage;
|
|
19
|
+
private listPagingAll;
|
|
20
|
+
/**
|
|
21
|
+
* Lists the available commitment plan SKUs.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
private _list;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=skus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skus.d.ts","sourceRoot":"","sources":["../../../src/operations/skus.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAI/C,OAAO,EAAE,sCAAsC,EAAE,MAAM,2CAA2C,CAAC;AACnG,OAAO,EACL,UAAU,EACV,sBAAsB,EAEvB,MAAM,WAAW,CAAC;AAGnB,wCAAwC;AACxC,qBAAa,QAAS,YAAW,IAAI;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyC;IAEhE;;;OAGG;gBACS,MAAM,EAAE,sCAAsC;IAI1D;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,sBAAsB,GAC/B,0BAA0B,CAAC,UAAU,CAAC;YAe1B,cAAc;YAOd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;CAGd"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Class containing Skus operations. */
|
|
14
|
+
export class SkusImpl {
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class Skus class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Lists the available commitment plan SKUs.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
list(options) {
|
|
27
|
+
const iter = this.listPagingAll(options);
|
|
28
|
+
return {
|
|
29
|
+
next() {
|
|
30
|
+
return iter.next();
|
|
31
|
+
},
|
|
32
|
+
[Symbol.asyncIterator]() {
|
|
33
|
+
return this;
|
|
34
|
+
},
|
|
35
|
+
byPage: () => {
|
|
36
|
+
return this.listPagingPage(options);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
listPagingPage(options) {
|
|
41
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
42
|
+
let result = yield __await(this._list(options));
|
|
43
|
+
yield yield __await(result.value || []);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
listPagingAll(options) {
|
|
47
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
48
|
+
var e_1, _a;
|
|
49
|
+
try {
|
|
50
|
+
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
51
|
+
const page = _c.value;
|
|
52
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
56
|
+
finally {
|
|
57
|
+
try {
|
|
58
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
59
|
+
}
|
|
60
|
+
finally { if (e_1) throw e_1.error; }
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Lists the available commitment plan SKUs.
|
|
66
|
+
* @param options The options parameters.
|
|
67
|
+
*/
|
|
68
|
+
_list(options) {
|
|
69
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
// Operation Specifications
|
|
73
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
74
|
+
const listOperationSpec = {
|
|
75
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/skus",
|
|
76
|
+
httpMethod: "GET",
|
|
77
|
+
responses: {
|
|
78
|
+
200: {
|
|
79
|
+
bodyMapper: Mappers.SkuListResult
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
queryParameters: [Parameters.apiVersion],
|
|
83
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
84
|
+
headerParameters: [Parameters.accept],
|
|
85
|
+
serializer
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=skus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skus.js","sourceRoot":"","sources":["../../../src/operations/skus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,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,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EACF,0EAA0E;IAC5E,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { UsageHistory } from "../operationsInterfaces";
|
|
3
|
+
import { AzureMLCommitmentPlansManagementClient } from "../azureMLCommitmentPlansManagementClient";
|
|
4
|
+
import { PlanUsageHistory, UsageHistoryListOptionalParams } from "../models";
|
|
5
|
+
/** Class containing UsageHistory operations. */
|
|
6
|
+
export declare class UsageHistoryImpl implements UsageHistory {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class UsageHistory class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: AzureMLCommitmentPlansManagementClient);
|
|
13
|
+
/**
|
|
14
|
+
* Retrieve the usage history for an Azure ML commitment plan.
|
|
15
|
+
* @param resourceGroupName The resource group name.
|
|
16
|
+
* @param commitmentPlanName The Azure ML commitment plan name.
|
|
17
|
+
* @param options The options parameters.
|
|
18
|
+
*/
|
|
19
|
+
list(resourceGroupName: string, commitmentPlanName: string, options?: UsageHistoryListOptionalParams): PagedAsyncIterableIterator<PlanUsageHistory>;
|
|
20
|
+
private listPagingPage;
|
|
21
|
+
private listPagingAll;
|
|
22
|
+
/**
|
|
23
|
+
* Retrieve the usage history for an Azure ML commitment plan.
|
|
24
|
+
* @param resourceGroupName The resource group name.
|
|
25
|
+
* @param commitmentPlanName The Azure ML commitment plan name.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
private _list;
|
|
29
|
+
/**
|
|
30
|
+
* ListNext
|
|
31
|
+
* @param resourceGroupName The resource group name.
|
|
32
|
+
* @param commitmentPlanName The Azure ML commitment plan name.
|
|
33
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
34
|
+
* @param options The options parameters.
|
|
35
|
+
*/
|
|
36
|
+
private _listNext;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=usageHistory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usageHistory.d.ts","sourceRoot":"","sources":["../../../src/operations/usageHistory.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAIvD,OAAO,EAAE,sCAAsC,EAAE,MAAM,2CAA2C,CAAC;AACnG,OAAO,EACL,gBAAgB,EAEhB,8BAA8B,EAG/B,MAAM,WAAW,CAAC;AAGnB,gDAAgD;AAChD,qBAAa,gBAAiB,YAAW,YAAY;IACnD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyC;IAEhE;;;OAGG;gBACS,MAAM,EAAE,sCAAsC;IAI1D;;;;;OAKG;IACI,IAAI,CACT,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,8BAA8B,GACvC,0BAA0B,CAAC,gBAAgB,CAAC;YAuBhC,cAAc;YAwBd,aAAa;IAc5B;;;;;OAKG;IACH,OAAO,CAAC,KAAK;IAWb;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;CAWlB"}
|