@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,1649 +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
|
-
(function (global, factory) {
|
|
11
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@azure/ms-rest-azure-js'), require('@azure/ms-rest-js')) :
|
|
12
|
-
typeof define === 'function' && define.amd ? define(['exports', '@azure/ms-rest-azure-js', '@azure/ms-rest-js'], factory) :
|
|
13
|
-
(factory((global.Azure = global.Azure || {}, global.Azure.ArmCommitmentplans = {}),global.msRestAzure,global.msRest));
|
|
14
|
-
}(this, (function (exports,msRestAzure,msRest) { 'use strict';
|
|
15
|
-
|
|
16
|
-
/*! *****************************************************************************
|
|
17
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
18
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
19
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
20
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
21
|
-
|
|
22
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
23
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
24
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
25
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
26
|
-
|
|
27
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
28
|
-
and limitations under the License.
|
|
29
|
-
***************************************************************************** */
|
|
30
|
-
/* global Reflect, Promise */
|
|
31
|
-
|
|
32
|
-
var extendStatics = function(d, b) {
|
|
33
|
-
extendStatics = Object.setPrototypeOf ||
|
|
34
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
35
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
36
|
-
return extendStatics(d, b);
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
function __extends(d, b) {
|
|
40
|
-
extendStatics(d, b);
|
|
41
|
-
function __() { this.constructor = d; }
|
|
42
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
var __assign = function() {
|
|
46
|
-
__assign = Object.assign || function __assign(t) {
|
|
47
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
48
|
-
s = arguments[i];
|
|
49
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
50
|
-
}
|
|
51
|
-
return t;
|
|
52
|
-
};
|
|
53
|
-
return __assign.apply(this, arguments);
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
/*
|
|
57
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
58
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
59
|
-
* license information.
|
|
60
|
-
*
|
|
61
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
62
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
63
|
-
* regenerated.
|
|
64
|
-
*/
|
|
65
|
-
|
|
66
|
-
var index = /*#__PURE__*/Object.freeze({
|
|
67
|
-
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
/*
|
|
71
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
72
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
73
|
-
* license information.
|
|
74
|
-
*
|
|
75
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
76
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
77
|
-
* regenerated.
|
|
78
|
-
*/
|
|
79
|
-
var CloudError = msRestAzure.CloudErrorMapper;
|
|
80
|
-
var BaseResource = msRestAzure.BaseResourceMapper;
|
|
81
|
-
var SkuCapacity = {
|
|
82
|
-
serializedName: "SkuCapacity",
|
|
83
|
-
type: {
|
|
84
|
-
name: "Composite",
|
|
85
|
-
className: "SkuCapacity",
|
|
86
|
-
modelProperties: {
|
|
87
|
-
minimum: {
|
|
88
|
-
readOnly: true,
|
|
89
|
-
serializedName: "minimum",
|
|
90
|
-
type: {
|
|
91
|
-
name: "Number"
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
maximum: {
|
|
95
|
-
readOnly: true,
|
|
96
|
-
serializedName: "maximum",
|
|
97
|
-
type: {
|
|
98
|
-
name: "Number"
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
default: {
|
|
102
|
-
readOnly: true,
|
|
103
|
-
serializedName: "default",
|
|
104
|
-
type: {
|
|
105
|
-
name: "Number"
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
scaleType: {
|
|
109
|
-
readOnly: true,
|
|
110
|
-
serializedName: "scaleType",
|
|
111
|
-
type: {
|
|
112
|
-
name: "String"
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
var SkuCapability = {
|
|
119
|
-
serializedName: "SkuCapability",
|
|
120
|
-
type: {
|
|
121
|
-
name: "Composite",
|
|
122
|
-
className: "SkuCapability",
|
|
123
|
-
modelProperties: {
|
|
124
|
-
name: {
|
|
125
|
-
readOnly: true,
|
|
126
|
-
serializedName: "name",
|
|
127
|
-
type: {
|
|
128
|
-
name: "String"
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
value: {
|
|
132
|
-
readOnly: true,
|
|
133
|
-
serializedName: "value",
|
|
134
|
-
type: {
|
|
135
|
-
name: "String"
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
var SkuCost = {
|
|
142
|
-
serializedName: "SkuCost",
|
|
143
|
-
type: {
|
|
144
|
-
name: "Composite",
|
|
145
|
-
className: "SkuCost",
|
|
146
|
-
modelProperties: {
|
|
147
|
-
meterID: {
|
|
148
|
-
readOnly: true,
|
|
149
|
-
serializedName: "meterID",
|
|
150
|
-
type: {
|
|
151
|
-
name: "String"
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
quantity: {
|
|
155
|
-
readOnly: true,
|
|
156
|
-
serializedName: "quantity",
|
|
157
|
-
type: {
|
|
158
|
-
name: "Number"
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
|
-
extendedUnit: {
|
|
162
|
-
readOnly: true,
|
|
163
|
-
serializedName: "extendedUnit",
|
|
164
|
-
type: {
|
|
165
|
-
name: "String"
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
};
|
|
171
|
-
var SkuRestrictions = {
|
|
172
|
-
serializedName: "SkuRestrictions",
|
|
173
|
-
type: {
|
|
174
|
-
name: "Composite",
|
|
175
|
-
className: "SkuRestrictions",
|
|
176
|
-
modelProperties: {
|
|
177
|
-
type: {
|
|
178
|
-
readOnly: true,
|
|
179
|
-
serializedName: "type",
|
|
180
|
-
type: {
|
|
181
|
-
name: "String"
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
values: {
|
|
185
|
-
readOnly: true,
|
|
186
|
-
serializedName: "values",
|
|
187
|
-
type: {
|
|
188
|
-
name: "Sequence",
|
|
189
|
-
element: {
|
|
190
|
-
type: {
|
|
191
|
-
name: "String"
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
-
reasonCode: {
|
|
197
|
-
readOnly: true,
|
|
198
|
-
serializedName: "reasonCode",
|
|
199
|
-
type: {
|
|
200
|
-
name: "String"
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
};
|
|
206
|
-
var CatalogSku = {
|
|
207
|
-
serializedName: "CatalogSku",
|
|
208
|
-
type: {
|
|
209
|
-
name: "Composite",
|
|
210
|
-
className: "CatalogSku",
|
|
211
|
-
modelProperties: {
|
|
212
|
-
resourceType: {
|
|
213
|
-
readOnly: true,
|
|
214
|
-
serializedName: "resourceType",
|
|
215
|
-
type: {
|
|
216
|
-
name: "String"
|
|
217
|
-
}
|
|
218
|
-
},
|
|
219
|
-
name: {
|
|
220
|
-
readOnly: true,
|
|
221
|
-
serializedName: "name",
|
|
222
|
-
type: {
|
|
223
|
-
name: "String"
|
|
224
|
-
}
|
|
225
|
-
},
|
|
226
|
-
tier: {
|
|
227
|
-
readOnly: true,
|
|
228
|
-
serializedName: "tier",
|
|
229
|
-
type: {
|
|
230
|
-
name: "String"
|
|
231
|
-
}
|
|
232
|
-
},
|
|
233
|
-
locations: {
|
|
234
|
-
readOnly: true,
|
|
235
|
-
serializedName: "locations",
|
|
236
|
-
type: {
|
|
237
|
-
name: "Sequence",
|
|
238
|
-
element: {
|
|
239
|
-
type: {
|
|
240
|
-
name: "String"
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
},
|
|
245
|
-
capacity: {
|
|
246
|
-
readOnly: true,
|
|
247
|
-
serializedName: "capacity",
|
|
248
|
-
type: {
|
|
249
|
-
name: "Composite",
|
|
250
|
-
className: "SkuCapacity"
|
|
251
|
-
}
|
|
252
|
-
},
|
|
253
|
-
capabilities: {
|
|
254
|
-
readOnly: true,
|
|
255
|
-
serializedName: "capabilities",
|
|
256
|
-
type: {
|
|
257
|
-
name: "Sequence",
|
|
258
|
-
element: {
|
|
259
|
-
type: {
|
|
260
|
-
name: "Composite",
|
|
261
|
-
className: "SkuCapability"
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
},
|
|
266
|
-
costs: {
|
|
267
|
-
readOnly: true,
|
|
268
|
-
serializedName: "costs",
|
|
269
|
-
type: {
|
|
270
|
-
name: "Sequence",
|
|
271
|
-
element: {
|
|
272
|
-
type: {
|
|
273
|
-
name: "Composite",
|
|
274
|
-
className: "SkuCost"
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
},
|
|
279
|
-
restrictions: {
|
|
280
|
-
readOnly: true,
|
|
281
|
-
serializedName: "restrictions",
|
|
282
|
-
type: {
|
|
283
|
-
name: "Sequence",
|
|
284
|
-
element: {
|
|
285
|
-
type: {
|
|
286
|
-
name: "Composite",
|
|
287
|
-
className: "SkuRestrictions"
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
};
|
|
295
|
-
var Resource = {
|
|
296
|
-
serializedName: "Resource",
|
|
297
|
-
type: {
|
|
298
|
-
name: "Composite",
|
|
299
|
-
className: "Resource",
|
|
300
|
-
modelProperties: {
|
|
301
|
-
id: {
|
|
302
|
-
readOnly: true,
|
|
303
|
-
serializedName: "id",
|
|
304
|
-
type: {
|
|
305
|
-
name: "String"
|
|
306
|
-
}
|
|
307
|
-
},
|
|
308
|
-
name: {
|
|
309
|
-
readOnly: true,
|
|
310
|
-
serializedName: "name",
|
|
311
|
-
type: {
|
|
312
|
-
name: "String"
|
|
313
|
-
}
|
|
314
|
-
},
|
|
315
|
-
location: {
|
|
316
|
-
required: true,
|
|
317
|
-
serializedName: "location",
|
|
318
|
-
type: {
|
|
319
|
-
name: "String"
|
|
320
|
-
}
|
|
321
|
-
},
|
|
322
|
-
type: {
|
|
323
|
-
readOnly: true,
|
|
324
|
-
serializedName: "type",
|
|
325
|
-
type: {
|
|
326
|
-
name: "String"
|
|
327
|
-
}
|
|
328
|
-
},
|
|
329
|
-
tags: {
|
|
330
|
-
serializedName: "tags",
|
|
331
|
-
type: {
|
|
332
|
-
name: "Dictionary",
|
|
333
|
-
value: {
|
|
334
|
-
type: {
|
|
335
|
-
name: "String"
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
};
|
|
343
|
-
var CommitmentAssociationProperties = {
|
|
344
|
-
serializedName: "CommitmentAssociationProperties",
|
|
345
|
-
type: {
|
|
346
|
-
name: "Composite",
|
|
347
|
-
className: "CommitmentAssociationProperties",
|
|
348
|
-
modelProperties: {
|
|
349
|
-
associatedResourceId: {
|
|
350
|
-
readOnly: true,
|
|
351
|
-
serializedName: "associatedResourceId",
|
|
352
|
-
type: {
|
|
353
|
-
name: "String"
|
|
354
|
-
}
|
|
355
|
-
},
|
|
356
|
-
commitmentPlanId: {
|
|
357
|
-
readOnly: true,
|
|
358
|
-
serializedName: "commitmentPlanId",
|
|
359
|
-
type: {
|
|
360
|
-
name: "String"
|
|
361
|
-
}
|
|
362
|
-
},
|
|
363
|
-
creationDate: {
|
|
364
|
-
readOnly: true,
|
|
365
|
-
serializedName: "creationDate",
|
|
366
|
-
type: {
|
|
367
|
-
name: "DateTime"
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
};
|
|
373
|
-
var CommitmentAssociation = {
|
|
374
|
-
serializedName: "CommitmentAssociation",
|
|
375
|
-
type: {
|
|
376
|
-
name: "Composite",
|
|
377
|
-
className: "CommitmentAssociation",
|
|
378
|
-
modelProperties: __assign({}, Resource.type.modelProperties, { etag: {
|
|
379
|
-
serializedName: "etag",
|
|
380
|
-
type: {
|
|
381
|
-
name: "String"
|
|
382
|
-
}
|
|
383
|
-
}, properties: {
|
|
384
|
-
serializedName: "properties",
|
|
385
|
-
type: {
|
|
386
|
-
name: "Composite",
|
|
387
|
-
className: "CommitmentAssociationProperties"
|
|
388
|
-
}
|
|
389
|
-
} })
|
|
390
|
-
}
|
|
391
|
-
};
|
|
392
|
-
var ResourceSku = {
|
|
393
|
-
serializedName: "ResourceSku",
|
|
394
|
-
type: {
|
|
395
|
-
name: "Composite",
|
|
396
|
-
className: "ResourceSku",
|
|
397
|
-
modelProperties: {
|
|
398
|
-
capacity: {
|
|
399
|
-
serializedName: "capacity",
|
|
400
|
-
type: {
|
|
401
|
-
name: "Number"
|
|
402
|
-
}
|
|
403
|
-
},
|
|
404
|
-
name: {
|
|
405
|
-
serializedName: "name",
|
|
406
|
-
type: {
|
|
407
|
-
name: "String"
|
|
408
|
-
}
|
|
409
|
-
},
|
|
410
|
-
tier: {
|
|
411
|
-
serializedName: "tier",
|
|
412
|
-
type: {
|
|
413
|
-
name: "String"
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
};
|
|
419
|
-
var MoveCommitmentAssociationRequest = {
|
|
420
|
-
serializedName: "MoveCommitmentAssociationRequest",
|
|
421
|
-
type: {
|
|
422
|
-
name: "Composite",
|
|
423
|
-
className: "MoveCommitmentAssociationRequest",
|
|
424
|
-
modelProperties: {
|
|
425
|
-
destinationPlanId: {
|
|
426
|
-
serializedName: "destinationPlanId",
|
|
427
|
-
type: {
|
|
428
|
-
name: "String"
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
};
|
|
434
|
-
var CommitmentPlanPatchPayload = {
|
|
435
|
-
serializedName: "CommitmentPlanPatchPayload",
|
|
436
|
-
type: {
|
|
437
|
-
name: "Composite",
|
|
438
|
-
className: "CommitmentPlanPatchPayload",
|
|
439
|
-
modelProperties: {
|
|
440
|
-
tags: {
|
|
441
|
-
serializedName: "tags",
|
|
442
|
-
type: {
|
|
443
|
-
name: "Dictionary",
|
|
444
|
-
value: {
|
|
445
|
-
type: {
|
|
446
|
-
name: "String"
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
},
|
|
451
|
-
sku: {
|
|
452
|
-
serializedName: "sku",
|
|
453
|
-
type: {
|
|
454
|
-
name: "Composite",
|
|
455
|
-
className: "ResourceSku"
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
};
|
|
461
|
-
var PlanQuantity = {
|
|
462
|
-
serializedName: "PlanQuantity",
|
|
463
|
-
type: {
|
|
464
|
-
name: "Composite",
|
|
465
|
-
className: "PlanQuantity",
|
|
466
|
-
modelProperties: {
|
|
467
|
-
allowance: {
|
|
468
|
-
readOnly: true,
|
|
469
|
-
serializedName: "allowance",
|
|
470
|
-
type: {
|
|
471
|
-
name: "Number"
|
|
472
|
-
}
|
|
473
|
-
},
|
|
474
|
-
amount: {
|
|
475
|
-
readOnly: true,
|
|
476
|
-
serializedName: "amount",
|
|
477
|
-
type: {
|
|
478
|
-
name: "Number"
|
|
479
|
-
}
|
|
480
|
-
},
|
|
481
|
-
includedQuantityMeter: {
|
|
482
|
-
readOnly: true,
|
|
483
|
-
serializedName: "includedQuantityMeter",
|
|
484
|
-
type: {
|
|
485
|
-
name: "String"
|
|
486
|
-
}
|
|
487
|
-
},
|
|
488
|
-
overageMeter: {
|
|
489
|
-
readOnly: true,
|
|
490
|
-
serializedName: "overageMeter",
|
|
491
|
-
type: {
|
|
492
|
-
name: "String"
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
};
|
|
498
|
-
var CommitmentPlanProperties = {
|
|
499
|
-
serializedName: "CommitmentPlanProperties",
|
|
500
|
-
type: {
|
|
501
|
-
name: "Composite",
|
|
502
|
-
className: "CommitmentPlanProperties",
|
|
503
|
-
modelProperties: {
|
|
504
|
-
chargeForOverage: {
|
|
505
|
-
readOnly: true,
|
|
506
|
-
serializedName: "chargeForOverage",
|
|
507
|
-
type: {
|
|
508
|
-
name: "Boolean"
|
|
509
|
-
}
|
|
510
|
-
},
|
|
511
|
-
chargeForPlan: {
|
|
512
|
-
readOnly: true,
|
|
513
|
-
serializedName: "chargeForPlan",
|
|
514
|
-
type: {
|
|
515
|
-
name: "Boolean"
|
|
516
|
-
}
|
|
517
|
-
},
|
|
518
|
-
creationDate: {
|
|
519
|
-
readOnly: true,
|
|
520
|
-
serializedName: "creationDate",
|
|
521
|
-
type: {
|
|
522
|
-
name: "DateTime"
|
|
523
|
-
}
|
|
524
|
-
},
|
|
525
|
-
includedQuantities: {
|
|
526
|
-
readOnly: true,
|
|
527
|
-
serializedName: "includedQuantities",
|
|
528
|
-
type: {
|
|
529
|
-
name: "Dictionary",
|
|
530
|
-
value: {
|
|
531
|
-
type: {
|
|
532
|
-
name: "Composite",
|
|
533
|
-
className: "PlanQuantity"
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
},
|
|
538
|
-
maxAssociationLimit: {
|
|
539
|
-
readOnly: true,
|
|
540
|
-
serializedName: "maxAssociationLimit",
|
|
541
|
-
type: {
|
|
542
|
-
name: "Number"
|
|
543
|
-
}
|
|
544
|
-
},
|
|
545
|
-
maxCapacityLimit: {
|
|
546
|
-
readOnly: true,
|
|
547
|
-
serializedName: "maxCapacityLimit",
|
|
548
|
-
type: {
|
|
549
|
-
name: "Number"
|
|
550
|
-
}
|
|
551
|
-
},
|
|
552
|
-
minCapacityLimit: {
|
|
553
|
-
readOnly: true,
|
|
554
|
-
serializedName: "minCapacityLimit",
|
|
555
|
-
type: {
|
|
556
|
-
name: "Number"
|
|
557
|
-
}
|
|
558
|
-
},
|
|
559
|
-
planMeter: {
|
|
560
|
-
readOnly: true,
|
|
561
|
-
serializedName: "planMeter",
|
|
562
|
-
type: {
|
|
563
|
-
name: "String"
|
|
564
|
-
}
|
|
565
|
-
},
|
|
566
|
-
refillFrequencyInDays: {
|
|
567
|
-
readOnly: true,
|
|
568
|
-
serializedName: "refillFrequencyInDays",
|
|
569
|
-
type: {
|
|
570
|
-
name: "Number"
|
|
571
|
-
}
|
|
572
|
-
},
|
|
573
|
-
suspendPlanOnOverage: {
|
|
574
|
-
readOnly: true,
|
|
575
|
-
serializedName: "suspendPlanOnOverage",
|
|
576
|
-
type: {
|
|
577
|
-
name: "Boolean"
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
};
|
|
583
|
-
var CommitmentPlan = {
|
|
584
|
-
serializedName: "CommitmentPlan",
|
|
585
|
-
type: {
|
|
586
|
-
name: "Composite",
|
|
587
|
-
className: "CommitmentPlan",
|
|
588
|
-
modelProperties: __assign({}, Resource.type.modelProperties, { etag: {
|
|
589
|
-
serializedName: "etag",
|
|
590
|
-
type: {
|
|
591
|
-
name: "String"
|
|
592
|
-
}
|
|
593
|
-
}, properties: {
|
|
594
|
-
readOnly: true,
|
|
595
|
-
serializedName: "properties",
|
|
596
|
-
type: {
|
|
597
|
-
name: "Composite",
|
|
598
|
-
className: "CommitmentPlanProperties"
|
|
599
|
-
}
|
|
600
|
-
}, sku: {
|
|
601
|
-
serializedName: "sku",
|
|
602
|
-
type: {
|
|
603
|
-
name: "Composite",
|
|
604
|
-
className: "ResourceSku"
|
|
605
|
-
}
|
|
606
|
-
} })
|
|
607
|
-
}
|
|
608
|
-
};
|
|
609
|
-
var PlanUsageHistory = {
|
|
610
|
-
serializedName: "PlanUsageHistory",
|
|
611
|
-
type: {
|
|
612
|
-
name: "Composite",
|
|
613
|
-
className: "PlanUsageHistory",
|
|
614
|
-
modelProperties: {
|
|
615
|
-
planDeletionOverage: {
|
|
616
|
-
serializedName: "planDeletionOverage",
|
|
617
|
-
type: {
|
|
618
|
-
name: "Dictionary",
|
|
619
|
-
value: {
|
|
620
|
-
type: {
|
|
621
|
-
name: "Number"
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
|
-
},
|
|
626
|
-
planMigrationOverage: {
|
|
627
|
-
serializedName: "planMigrationOverage",
|
|
628
|
-
type: {
|
|
629
|
-
name: "Dictionary",
|
|
630
|
-
value: {
|
|
631
|
-
type: {
|
|
632
|
-
name: "Number"
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
},
|
|
637
|
-
planQuantitiesAfterUsage: {
|
|
638
|
-
serializedName: "planQuantitiesAfterUsage",
|
|
639
|
-
type: {
|
|
640
|
-
name: "Dictionary",
|
|
641
|
-
value: {
|
|
642
|
-
type: {
|
|
643
|
-
name: "Number"
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
},
|
|
648
|
-
planQuantitiesBeforeUsage: {
|
|
649
|
-
serializedName: "planQuantitiesBeforeUsage",
|
|
650
|
-
type: {
|
|
651
|
-
name: "Dictionary",
|
|
652
|
-
value: {
|
|
653
|
-
type: {
|
|
654
|
-
name: "Number"
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
},
|
|
659
|
-
planUsageOverage: {
|
|
660
|
-
serializedName: "planUsageOverage",
|
|
661
|
-
type: {
|
|
662
|
-
name: "Dictionary",
|
|
663
|
-
value: {
|
|
664
|
-
type: {
|
|
665
|
-
name: "Number"
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
},
|
|
670
|
-
usage: {
|
|
671
|
-
serializedName: "usage",
|
|
672
|
-
type: {
|
|
673
|
-
name: "Dictionary",
|
|
674
|
-
value: {
|
|
675
|
-
type: {
|
|
676
|
-
name: "Number"
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
}
|
|
680
|
-
},
|
|
681
|
-
usageDate: {
|
|
682
|
-
serializedName: "usageDate",
|
|
683
|
-
type: {
|
|
684
|
-
name: "DateTime"
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
};
|
|
690
|
-
var SkuListResult = {
|
|
691
|
-
serializedName: "SkuListResult",
|
|
692
|
-
type: {
|
|
693
|
-
name: "Composite",
|
|
694
|
-
className: "SkuListResult",
|
|
695
|
-
modelProperties: {
|
|
696
|
-
value: {
|
|
697
|
-
readOnly: true,
|
|
698
|
-
serializedName: "",
|
|
699
|
-
type: {
|
|
700
|
-
name: "Sequence",
|
|
701
|
-
element: {
|
|
702
|
-
type: {
|
|
703
|
-
name: "Composite",
|
|
704
|
-
className: "CatalogSku"
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
};
|
|
712
|
-
var CommitmentAssociationListResult = {
|
|
713
|
-
serializedName: "CommitmentAssociationListResult",
|
|
714
|
-
type: {
|
|
715
|
-
name: "Composite",
|
|
716
|
-
className: "CommitmentAssociationListResult",
|
|
717
|
-
modelProperties: {
|
|
718
|
-
nextLink: {
|
|
719
|
-
serializedName: "nextLink",
|
|
720
|
-
type: {
|
|
721
|
-
name: "String"
|
|
722
|
-
}
|
|
723
|
-
},
|
|
724
|
-
value: {
|
|
725
|
-
serializedName: "",
|
|
726
|
-
type: {
|
|
727
|
-
name: "Sequence",
|
|
728
|
-
element: {
|
|
729
|
-
type: {
|
|
730
|
-
name: "Composite",
|
|
731
|
-
className: "CommitmentAssociation"
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
}
|
|
738
|
-
};
|
|
739
|
-
var CommitmentPlanListResult = {
|
|
740
|
-
serializedName: "CommitmentPlanListResult",
|
|
741
|
-
type: {
|
|
742
|
-
name: "Composite",
|
|
743
|
-
className: "CommitmentPlanListResult",
|
|
744
|
-
modelProperties: {
|
|
745
|
-
nextLink: {
|
|
746
|
-
serializedName: "nextLink",
|
|
747
|
-
type: {
|
|
748
|
-
name: "String"
|
|
749
|
-
}
|
|
750
|
-
},
|
|
751
|
-
value: {
|
|
752
|
-
serializedName: "",
|
|
753
|
-
type: {
|
|
754
|
-
name: "Sequence",
|
|
755
|
-
element: {
|
|
756
|
-
type: {
|
|
757
|
-
name: "Composite",
|
|
758
|
-
className: "CommitmentPlan"
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
};
|
|
766
|
-
var PlanUsageHistoryListResult = {
|
|
767
|
-
serializedName: "PlanUsageHistoryListResult",
|
|
768
|
-
type: {
|
|
769
|
-
name: "Composite",
|
|
770
|
-
className: "PlanUsageHistoryListResult",
|
|
771
|
-
modelProperties: {
|
|
772
|
-
nextLink: {
|
|
773
|
-
serializedName: "nextLink",
|
|
774
|
-
type: {
|
|
775
|
-
name: "String"
|
|
776
|
-
}
|
|
777
|
-
},
|
|
778
|
-
value: {
|
|
779
|
-
serializedName: "",
|
|
780
|
-
type: {
|
|
781
|
-
name: "Sequence",
|
|
782
|
-
element: {
|
|
783
|
-
type: {
|
|
784
|
-
name: "Composite",
|
|
785
|
-
className: "PlanUsageHistory"
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
}
|
|
791
|
-
}
|
|
792
|
-
};
|
|
793
|
-
|
|
794
|
-
var mappers = /*#__PURE__*/Object.freeze({
|
|
795
|
-
CloudError: CloudError,
|
|
796
|
-
BaseResource: BaseResource,
|
|
797
|
-
SkuCapacity: SkuCapacity,
|
|
798
|
-
SkuCapability: SkuCapability,
|
|
799
|
-
SkuCost: SkuCost,
|
|
800
|
-
SkuRestrictions: SkuRestrictions,
|
|
801
|
-
CatalogSku: CatalogSku,
|
|
802
|
-
Resource: Resource,
|
|
803
|
-
CommitmentAssociationProperties: CommitmentAssociationProperties,
|
|
804
|
-
CommitmentAssociation: CommitmentAssociation,
|
|
805
|
-
ResourceSku: ResourceSku,
|
|
806
|
-
MoveCommitmentAssociationRequest: MoveCommitmentAssociationRequest,
|
|
807
|
-
CommitmentPlanPatchPayload: CommitmentPlanPatchPayload,
|
|
808
|
-
PlanQuantity: PlanQuantity,
|
|
809
|
-
CommitmentPlanProperties: CommitmentPlanProperties,
|
|
810
|
-
CommitmentPlan: CommitmentPlan,
|
|
811
|
-
PlanUsageHistory: PlanUsageHistory,
|
|
812
|
-
SkuListResult: SkuListResult,
|
|
813
|
-
CommitmentAssociationListResult: CommitmentAssociationListResult,
|
|
814
|
-
CommitmentPlanListResult: CommitmentPlanListResult,
|
|
815
|
-
PlanUsageHistoryListResult: PlanUsageHistoryListResult
|
|
816
|
-
});
|
|
817
|
-
|
|
818
|
-
/*
|
|
819
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
820
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
821
|
-
* license information.
|
|
822
|
-
*
|
|
823
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
824
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
825
|
-
* regenerated.
|
|
826
|
-
*/
|
|
827
|
-
|
|
828
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
829
|
-
SkuListResult: SkuListResult,
|
|
830
|
-
CatalogSku: CatalogSku,
|
|
831
|
-
SkuCapacity: SkuCapacity,
|
|
832
|
-
SkuCapability: SkuCapability,
|
|
833
|
-
SkuCost: SkuCost,
|
|
834
|
-
SkuRestrictions: SkuRestrictions,
|
|
835
|
-
CloudError: CloudError
|
|
836
|
-
});
|
|
837
|
-
|
|
838
|
-
/*
|
|
839
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
840
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
841
|
-
* license information.
|
|
842
|
-
*
|
|
843
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
844
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
845
|
-
* regenerated.
|
|
846
|
-
*/
|
|
847
|
-
var acceptLanguage = {
|
|
848
|
-
parameterPath: "acceptLanguage",
|
|
849
|
-
mapper: {
|
|
850
|
-
serializedName: "accept-language",
|
|
851
|
-
defaultValue: 'en-US',
|
|
852
|
-
type: {
|
|
853
|
-
name: "String"
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
};
|
|
857
|
-
var apiVersion = {
|
|
858
|
-
parameterPath: "apiVersion",
|
|
859
|
-
mapper: {
|
|
860
|
-
required: true,
|
|
861
|
-
serializedName: "api-version",
|
|
862
|
-
type: {
|
|
863
|
-
name: "String"
|
|
864
|
-
}
|
|
865
|
-
}
|
|
866
|
-
};
|
|
867
|
-
var commitmentAssociationName = {
|
|
868
|
-
parameterPath: "commitmentAssociationName",
|
|
869
|
-
mapper: {
|
|
870
|
-
required: true,
|
|
871
|
-
serializedName: "commitmentAssociationName",
|
|
872
|
-
type: {
|
|
873
|
-
name: "String"
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
};
|
|
877
|
-
var commitmentPlanName = {
|
|
878
|
-
parameterPath: "commitmentPlanName",
|
|
879
|
-
mapper: {
|
|
880
|
-
required: true,
|
|
881
|
-
serializedName: "commitmentPlanName",
|
|
882
|
-
type: {
|
|
883
|
-
name: "String"
|
|
884
|
-
}
|
|
885
|
-
}
|
|
886
|
-
};
|
|
887
|
-
var nextPageLink = {
|
|
888
|
-
parameterPath: "nextPageLink",
|
|
889
|
-
mapper: {
|
|
890
|
-
required: true,
|
|
891
|
-
serializedName: "nextLink",
|
|
892
|
-
type: {
|
|
893
|
-
name: "String"
|
|
894
|
-
}
|
|
895
|
-
},
|
|
896
|
-
skipEncoding: true
|
|
897
|
-
};
|
|
898
|
-
var resourceGroupName = {
|
|
899
|
-
parameterPath: "resourceGroupName",
|
|
900
|
-
mapper: {
|
|
901
|
-
required: true,
|
|
902
|
-
serializedName: "resourceGroupName",
|
|
903
|
-
type: {
|
|
904
|
-
name: "String"
|
|
905
|
-
}
|
|
906
|
-
}
|
|
907
|
-
};
|
|
908
|
-
var skipToken = {
|
|
909
|
-
parameterPath: [
|
|
910
|
-
"options",
|
|
911
|
-
"skipToken"
|
|
912
|
-
],
|
|
913
|
-
mapper: {
|
|
914
|
-
serializedName: "$skipToken",
|
|
915
|
-
type: {
|
|
916
|
-
name: "String"
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
};
|
|
920
|
-
var subscriptionId = {
|
|
921
|
-
parameterPath: "subscriptionId",
|
|
922
|
-
mapper: {
|
|
923
|
-
required: true,
|
|
924
|
-
serializedName: "subscriptionId",
|
|
925
|
-
type: {
|
|
926
|
-
name: "String"
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
};
|
|
930
|
-
|
|
931
|
-
/*
|
|
932
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
933
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
934
|
-
* license information.
|
|
935
|
-
*
|
|
936
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
937
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
938
|
-
* regenerated.
|
|
939
|
-
*/
|
|
940
|
-
/** Class representing a Skus. */
|
|
941
|
-
var Skus = /** @class */ (function () {
|
|
942
|
-
/**
|
|
943
|
-
* Create a Skus.
|
|
944
|
-
* @param {AzureMLCommitmentPlansManagementClientContext} client Reference to the service client.
|
|
945
|
-
*/
|
|
946
|
-
function Skus(client) {
|
|
947
|
-
this.client = client;
|
|
948
|
-
}
|
|
949
|
-
Skus.prototype.list = function (options, callback) {
|
|
950
|
-
return this.client.sendOperationRequest({
|
|
951
|
-
options: options
|
|
952
|
-
}, listOperationSpec, callback);
|
|
953
|
-
};
|
|
954
|
-
return Skus;
|
|
955
|
-
}());
|
|
956
|
-
// Operation Specifications
|
|
957
|
-
var serializer = new msRest.Serializer(Mappers);
|
|
958
|
-
var listOperationSpec = {
|
|
959
|
-
httpMethod: "GET",
|
|
960
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/skus",
|
|
961
|
-
urlParameters: [
|
|
962
|
-
subscriptionId
|
|
963
|
-
],
|
|
964
|
-
queryParameters: [
|
|
965
|
-
apiVersion
|
|
966
|
-
],
|
|
967
|
-
headerParameters: [
|
|
968
|
-
acceptLanguage
|
|
969
|
-
],
|
|
970
|
-
responses: {
|
|
971
|
-
200: {
|
|
972
|
-
bodyMapper: SkuListResult
|
|
973
|
-
},
|
|
974
|
-
default: {
|
|
975
|
-
bodyMapper: CloudError
|
|
976
|
-
}
|
|
977
|
-
},
|
|
978
|
-
serializer: serializer
|
|
979
|
-
};
|
|
980
|
-
|
|
981
|
-
/*
|
|
982
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
983
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
984
|
-
* license information.
|
|
985
|
-
*
|
|
986
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
987
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
988
|
-
* regenerated.
|
|
989
|
-
*/
|
|
990
|
-
|
|
991
|
-
var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
992
|
-
CommitmentAssociation: CommitmentAssociation,
|
|
993
|
-
Resource: Resource,
|
|
994
|
-
BaseResource: BaseResource,
|
|
995
|
-
CommitmentAssociationProperties: CommitmentAssociationProperties,
|
|
996
|
-
CloudError: CloudError,
|
|
997
|
-
CommitmentAssociationListResult: CommitmentAssociationListResult,
|
|
998
|
-
MoveCommitmentAssociationRequest: MoveCommitmentAssociationRequest,
|
|
999
|
-
CommitmentPlan: CommitmentPlan,
|
|
1000
|
-
CommitmentPlanProperties: CommitmentPlanProperties,
|
|
1001
|
-
PlanQuantity: PlanQuantity,
|
|
1002
|
-
ResourceSku: ResourceSku
|
|
1003
|
-
});
|
|
1004
|
-
|
|
1005
|
-
/*
|
|
1006
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1007
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
1008
|
-
* license information.
|
|
1009
|
-
*
|
|
1010
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1011
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1012
|
-
* regenerated.
|
|
1013
|
-
*/
|
|
1014
|
-
/** Class representing a CommitmentAssociations. */
|
|
1015
|
-
var CommitmentAssociations = /** @class */ (function () {
|
|
1016
|
-
/**
|
|
1017
|
-
* Create a CommitmentAssociations.
|
|
1018
|
-
* @param {AzureMLCommitmentPlansManagementClientContext} client Reference to the service client.
|
|
1019
|
-
*/
|
|
1020
|
-
function CommitmentAssociations(client) {
|
|
1021
|
-
this.client = client;
|
|
1022
|
-
}
|
|
1023
|
-
CommitmentAssociations.prototype.get = function (resourceGroupName$$1, commitmentPlanName$$1, commitmentAssociationName$$1, options, callback) {
|
|
1024
|
-
return this.client.sendOperationRequest({
|
|
1025
|
-
resourceGroupName: resourceGroupName$$1,
|
|
1026
|
-
commitmentPlanName: commitmentPlanName$$1,
|
|
1027
|
-
commitmentAssociationName: commitmentAssociationName$$1,
|
|
1028
|
-
options: options
|
|
1029
|
-
}, getOperationSpec, callback);
|
|
1030
|
-
};
|
|
1031
|
-
CommitmentAssociations.prototype.list = function (resourceGroupName$$1, commitmentPlanName$$1, options, callback) {
|
|
1032
|
-
return this.client.sendOperationRequest({
|
|
1033
|
-
resourceGroupName: resourceGroupName$$1,
|
|
1034
|
-
commitmentPlanName: commitmentPlanName$$1,
|
|
1035
|
-
options: options
|
|
1036
|
-
}, listOperationSpec$1, callback);
|
|
1037
|
-
};
|
|
1038
|
-
CommitmentAssociations.prototype.move = function (resourceGroupName$$1, commitmentPlanName$$1, commitmentAssociationName$$1, movePayload, options, callback) {
|
|
1039
|
-
return this.client.sendOperationRequest({
|
|
1040
|
-
resourceGroupName: resourceGroupName$$1,
|
|
1041
|
-
commitmentPlanName: commitmentPlanName$$1,
|
|
1042
|
-
commitmentAssociationName: commitmentAssociationName$$1,
|
|
1043
|
-
movePayload: movePayload,
|
|
1044
|
-
options: options
|
|
1045
|
-
}, moveOperationSpec, callback);
|
|
1046
|
-
};
|
|
1047
|
-
CommitmentAssociations.prototype.listNext = function (nextPageLink$$1, options, callback) {
|
|
1048
|
-
return this.client.sendOperationRequest({
|
|
1049
|
-
nextPageLink: nextPageLink$$1,
|
|
1050
|
-
options: options
|
|
1051
|
-
}, listNextOperationSpec, callback);
|
|
1052
|
-
};
|
|
1053
|
-
return CommitmentAssociations;
|
|
1054
|
-
}());
|
|
1055
|
-
// Operation Specifications
|
|
1056
|
-
var serializer$1 = new msRest.Serializer(Mappers$1);
|
|
1057
|
-
var getOperationSpec = {
|
|
1058
|
-
httpMethod: "GET",
|
|
1059
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}/commitmentAssociations/{commitmentAssociationName}",
|
|
1060
|
-
urlParameters: [
|
|
1061
|
-
subscriptionId,
|
|
1062
|
-
resourceGroupName,
|
|
1063
|
-
commitmentPlanName,
|
|
1064
|
-
commitmentAssociationName
|
|
1065
|
-
],
|
|
1066
|
-
queryParameters: [
|
|
1067
|
-
apiVersion
|
|
1068
|
-
],
|
|
1069
|
-
headerParameters: [
|
|
1070
|
-
acceptLanguage
|
|
1071
|
-
],
|
|
1072
|
-
responses: {
|
|
1073
|
-
200: {
|
|
1074
|
-
bodyMapper: CommitmentAssociation
|
|
1075
|
-
},
|
|
1076
|
-
default: {
|
|
1077
|
-
bodyMapper: CloudError
|
|
1078
|
-
}
|
|
1079
|
-
},
|
|
1080
|
-
serializer: serializer$1
|
|
1081
|
-
};
|
|
1082
|
-
var listOperationSpec$1 = {
|
|
1083
|
-
httpMethod: "GET",
|
|
1084
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}/commitmentAssociations",
|
|
1085
|
-
urlParameters: [
|
|
1086
|
-
subscriptionId,
|
|
1087
|
-
resourceGroupName,
|
|
1088
|
-
commitmentPlanName
|
|
1089
|
-
],
|
|
1090
|
-
queryParameters: [
|
|
1091
|
-
skipToken,
|
|
1092
|
-
apiVersion
|
|
1093
|
-
],
|
|
1094
|
-
headerParameters: [
|
|
1095
|
-
acceptLanguage
|
|
1096
|
-
],
|
|
1097
|
-
responses: {
|
|
1098
|
-
200: {
|
|
1099
|
-
bodyMapper: CommitmentAssociationListResult
|
|
1100
|
-
},
|
|
1101
|
-
default: {
|
|
1102
|
-
bodyMapper: CloudError
|
|
1103
|
-
}
|
|
1104
|
-
},
|
|
1105
|
-
serializer: serializer$1
|
|
1106
|
-
};
|
|
1107
|
-
var moveOperationSpec = {
|
|
1108
|
-
httpMethod: "POST",
|
|
1109
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}/commitmentAssociations/{commitmentAssociationName}/move",
|
|
1110
|
-
urlParameters: [
|
|
1111
|
-
subscriptionId,
|
|
1112
|
-
resourceGroupName,
|
|
1113
|
-
commitmentPlanName,
|
|
1114
|
-
commitmentAssociationName
|
|
1115
|
-
],
|
|
1116
|
-
queryParameters: [
|
|
1117
|
-
apiVersion
|
|
1118
|
-
],
|
|
1119
|
-
headerParameters: [
|
|
1120
|
-
acceptLanguage
|
|
1121
|
-
],
|
|
1122
|
-
requestBody: {
|
|
1123
|
-
parameterPath: "movePayload",
|
|
1124
|
-
mapper: __assign({}, MoveCommitmentAssociationRequest, { required: true })
|
|
1125
|
-
},
|
|
1126
|
-
responses: {
|
|
1127
|
-
200: {
|
|
1128
|
-
bodyMapper: CommitmentAssociation
|
|
1129
|
-
},
|
|
1130
|
-
default: {
|
|
1131
|
-
bodyMapper: CloudError
|
|
1132
|
-
}
|
|
1133
|
-
},
|
|
1134
|
-
serializer: serializer$1
|
|
1135
|
-
};
|
|
1136
|
-
var listNextOperationSpec = {
|
|
1137
|
-
httpMethod: "GET",
|
|
1138
|
-
baseUrl: "https://management.azure.com",
|
|
1139
|
-
path: "{nextLink}",
|
|
1140
|
-
urlParameters: [
|
|
1141
|
-
nextPageLink
|
|
1142
|
-
],
|
|
1143
|
-
headerParameters: [
|
|
1144
|
-
acceptLanguage
|
|
1145
|
-
],
|
|
1146
|
-
responses: {
|
|
1147
|
-
200: {
|
|
1148
|
-
bodyMapper: CommitmentAssociationListResult
|
|
1149
|
-
},
|
|
1150
|
-
default: {
|
|
1151
|
-
bodyMapper: CloudError
|
|
1152
|
-
}
|
|
1153
|
-
},
|
|
1154
|
-
serializer: serializer$1
|
|
1155
|
-
};
|
|
1156
|
-
|
|
1157
|
-
/*
|
|
1158
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1159
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
1160
|
-
* license information.
|
|
1161
|
-
*
|
|
1162
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1163
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1164
|
-
* regenerated.
|
|
1165
|
-
*/
|
|
1166
|
-
|
|
1167
|
-
var Mappers$2 = /*#__PURE__*/Object.freeze({
|
|
1168
|
-
CommitmentPlan: CommitmentPlan,
|
|
1169
|
-
Resource: Resource,
|
|
1170
|
-
BaseResource: BaseResource,
|
|
1171
|
-
CommitmentPlanProperties: CommitmentPlanProperties,
|
|
1172
|
-
PlanQuantity: PlanQuantity,
|
|
1173
|
-
ResourceSku: ResourceSku,
|
|
1174
|
-
CloudError: CloudError,
|
|
1175
|
-
CommitmentPlanPatchPayload: CommitmentPlanPatchPayload,
|
|
1176
|
-
CommitmentPlanListResult: CommitmentPlanListResult,
|
|
1177
|
-
CommitmentAssociation: CommitmentAssociation,
|
|
1178
|
-
CommitmentAssociationProperties: CommitmentAssociationProperties
|
|
1179
|
-
});
|
|
1180
|
-
|
|
1181
|
-
/*
|
|
1182
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1183
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
1184
|
-
* license information.
|
|
1185
|
-
*
|
|
1186
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1187
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1188
|
-
* regenerated.
|
|
1189
|
-
*/
|
|
1190
|
-
/** Class representing a CommitmentPlans. */
|
|
1191
|
-
var CommitmentPlans = /** @class */ (function () {
|
|
1192
|
-
/**
|
|
1193
|
-
* Create a CommitmentPlans.
|
|
1194
|
-
* @param {AzureMLCommitmentPlansManagementClientContext} client Reference to the service client.
|
|
1195
|
-
*/
|
|
1196
|
-
function CommitmentPlans(client) {
|
|
1197
|
-
this.client = client;
|
|
1198
|
-
}
|
|
1199
|
-
CommitmentPlans.prototype.get = function (resourceGroupName$$1, commitmentPlanName$$1, options, callback) {
|
|
1200
|
-
return this.client.sendOperationRequest({
|
|
1201
|
-
resourceGroupName: resourceGroupName$$1,
|
|
1202
|
-
commitmentPlanName: commitmentPlanName$$1,
|
|
1203
|
-
options: options
|
|
1204
|
-
}, getOperationSpec$1, callback);
|
|
1205
|
-
};
|
|
1206
|
-
CommitmentPlans.prototype.createOrUpdate = function (createOrUpdatePayload, resourceGroupName$$1, commitmentPlanName$$1, options, callback) {
|
|
1207
|
-
return this.client.sendOperationRequest({
|
|
1208
|
-
createOrUpdatePayload: createOrUpdatePayload,
|
|
1209
|
-
resourceGroupName: resourceGroupName$$1,
|
|
1210
|
-
commitmentPlanName: commitmentPlanName$$1,
|
|
1211
|
-
options: options
|
|
1212
|
-
}, createOrUpdateOperationSpec, callback);
|
|
1213
|
-
};
|
|
1214
|
-
CommitmentPlans.prototype.remove = function (resourceGroupName$$1, commitmentPlanName$$1, options, callback) {
|
|
1215
|
-
return this.client.sendOperationRequest({
|
|
1216
|
-
resourceGroupName: resourceGroupName$$1,
|
|
1217
|
-
commitmentPlanName: commitmentPlanName$$1,
|
|
1218
|
-
options: options
|
|
1219
|
-
}, removeOperationSpec, callback);
|
|
1220
|
-
};
|
|
1221
|
-
CommitmentPlans.prototype.patch = function (patchPayload, resourceGroupName$$1, commitmentPlanName$$1, options, callback) {
|
|
1222
|
-
return this.client.sendOperationRequest({
|
|
1223
|
-
patchPayload: patchPayload,
|
|
1224
|
-
resourceGroupName: resourceGroupName$$1,
|
|
1225
|
-
commitmentPlanName: commitmentPlanName$$1,
|
|
1226
|
-
options: options
|
|
1227
|
-
}, patchOperationSpec, callback);
|
|
1228
|
-
};
|
|
1229
|
-
CommitmentPlans.prototype.list = function (options, callback) {
|
|
1230
|
-
return this.client.sendOperationRequest({
|
|
1231
|
-
options: options
|
|
1232
|
-
}, listOperationSpec$2, callback);
|
|
1233
|
-
};
|
|
1234
|
-
CommitmentPlans.prototype.listInResourceGroup = function (resourceGroupName$$1, options, callback) {
|
|
1235
|
-
return this.client.sendOperationRequest({
|
|
1236
|
-
resourceGroupName: resourceGroupName$$1,
|
|
1237
|
-
options: options
|
|
1238
|
-
}, listInResourceGroupOperationSpec, callback);
|
|
1239
|
-
};
|
|
1240
|
-
CommitmentPlans.prototype.listNext = function (nextPageLink$$1, options, callback) {
|
|
1241
|
-
return this.client.sendOperationRequest({
|
|
1242
|
-
nextPageLink: nextPageLink$$1,
|
|
1243
|
-
options: options
|
|
1244
|
-
}, listNextOperationSpec$1, callback);
|
|
1245
|
-
};
|
|
1246
|
-
CommitmentPlans.prototype.listInResourceGroupNext = function (nextPageLink$$1, options, callback) {
|
|
1247
|
-
return this.client.sendOperationRequest({
|
|
1248
|
-
nextPageLink: nextPageLink$$1,
|
|
1249
|
-
options: options
|
|
1250
|
-
}, listInResourceGroupNextOperationSpec, callback);
|
|
1251
|
-
};
|
|
1252
|
-
return CommitmentPlans;
|
|
1253
|
-
}());
|
|
1254
|
-
// Operation Specifications
|
|
1255
|
-
var serializer$2 = new msRest.Serializer(Mappers$2);
|
|
1256
|
-
var getOperationSpec$1 = {
|
|
1257
|
-
httpMethod: "GET",
|
|
1258
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}",
|
|
1259
|
-
urlParameters: [
|
|
1260
|
-
subscriptionId,
|
|
1261
|
-
resourceGroupName,
|
|
1262
|
-
commitmentPlanName
|
|
1263
|
-
],
|
|
1264
|
-
queryParameters: [
|
|
1265
|
-
apiVersion
|
|
1266
|
-
],
|
|
1267
|
-
headerParameters: [
|
|
1268
|
-
acceptLanguage
|
|
1269
|
-
],
|
|
1270
|
-
responses: {
|
|
1271
|
-
200: {
|
|
1272
|
-
bodyMapper: CommitmentPlan
|
|
1273
|
-
},
|
|
1274
|
-
default: {
|
|
1275
|
-
bodyMapper: CloudError
|
|
1276
|
-
}
|
|
1277
|
-
},
|
|
1278
|
-
serializer: serializer$2
|
|
1279
|
-
};
|
|
1280
|
-
var createOrUpdateOperationSpec = {
|
|
1281
|
-
httpMethod: "PUT",
|
|
1282
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}",
|
|
1283
|
-
urlParameters: [
|
|
1284
|
-
subscriptionId,
|
|
1285
|
-
resourceGroupName,
|
|
1286
|
-
commitmentPlanName
|
|
1287
|
-
],
|
|
1288
|
-
queryParameters: [
|
|
1289
|
-
apiVersion
|
|
1290
|
-
],
|
|
1291
|
-
headerParameters: [
|
|
1292
|
-
acceptLanguage
|
|
1293
|
-
],
|
|
1294
|
-
requestBody: {
|
|
1295
|
-
parameterPath: "createOrUpdatePayload",
|
|
1296
|
-
mapper: __assign({}, CommitmentPlan, { required: true })
|
|
1297
|
-
},
|
|
1298
|
-
responses: {
|
|
1299
|
-
200: {
|
|
1300
|
-
bodyMapper: CommitmentPlan
|
|
1301
|
-
},
|
|
1302
|
-
201: {
|
|
1303
|
-
bodyMapper: CommitmentPlan
|
|
1304
|
-
},
|
|
1305
|
-
default: {
|
|
1306
|
-
bodyMapper: CloudError
|
|
1307
|
-
}
|
|
1308
|
-
},
|
|
1309
|
-
serializer: serializer$2
|
|
1310
|
-
};
|
|
1311
|
-
var removeOperationSpec = {
|
|
1312
|
-
httpMethod: "DELETE",
|
|
1313
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}",
|
|
1314
|
-
urlParameters: [
|
|
1315
|
-
subscriptionId,
|
|
1316
|
-
resourceGroupName,
|
|
1317
|
-
commitmentPlanName
|
|
1318
|
-
],
|
|
1319
|
-
queryParameters: [
|
|
1320
|
-
apiVersion
|
|
1321
|
-
],
|
|
1322
|
-
headerParameters: [
|
|
1323
|
-
acceptLanguage
|
|
1324
|
-
],
|
|
1325
|
-
responses: {
|
|
1326
|
-
200: {},
|
|
1327
|
-
default: {
|
|
1328
|
-
bodyMapper: CloudError
|
|
1329
|
-
}
|
|
1330
|
-
},
|
|
1331
|
-
serializer: serializer$2
|
|
1332
|
-
};
|
|
1333
|
-
var patchOperationSpec = {
|
|
1334
|
-
httpMethod: "PATCH",
|
|
1335
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}",
|
|
1336
|
-
urlParameters: [
|
|
1337
|
-
subscriptionId,
|
|
1338
|
-
resourceGroupName,
|
|
1339
|
-
commitmentPlanName
|
|
1340
|
-
],
|
|
1341
|
-
queryParameters: [
|
|
1342
|
-
apiVersion
|
|
1343
|
-
],
|
|
1344
|
-
headerParameters: [
|
|
1345
|
-
acceptLanguage
|
|
1346
|
-
],
|
|
1347
|
-
requestBody: {
|
|
1348
|
-
parameterPath: "patchPayload",
|
|
1349
|
-
mapper: __assign({}, CommitmentPlanPatchPayload, { required: true })
|
|
1350
|
-
},
|
|
1351
|
-
responses: {
|
|
1352
|
-
200: {
|
|
1353
|
-
bodyMapper: CommitmentPlan
|
|
1354
|
-
},
|
|
1355
|
-
default: {
|
|
1356
|
-
bodyMapper: CloudError
|
|
1357
|
-
}
|
|
1358
|
-
},
|
|
1359
|
-
serializer: serializer$2
|
|
1360
|
-
};
|
|
1361
|
-
var listOperationSpec$2 = {
|
|
1362
|
-
httpMethod: "GET",
|
|
1363
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/commitmentPlans",
|
|
1364
|
-
urlParameters: [
|
|
1365
|
-
subscriptionId
|
|
1366
|
-
],
|
|
1367
|
-
queryParameters: [
|
|
1368
|
-
skipToken,
|
|
1369
|
-
apiVersion
|
|
1370
|
-
],
|
|
1371
|
-
headerParameters: [
|
|
1372
|
-
acceptLanguage
|
|
1373
|
-
],
|
|
1374
|
-
responses: {
|
|
1375
|
-
200: {
|
|
1376
|
-
bodyMapper: CommitmentPlanListResult
|
|
1377
|
-
},
|
|
1378
|
-
default: {
|
|
1379
|
-
bodyMapper: CloudError
|
|
1380
|
-
}
|
|
1381
|
-
},
|
|
1382
|
-
serializer: serializer$2
|
|
1383
|
-
};
|
|
1384
|
-
var listInResourceGroupOperationSpec = {
|
|
1385
|
-
httpMethod: "GET",
|
|
1386
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans",
|
|
1387
|
-
urlParameters: [
|
|
1388
|
-
subscriptionId,
|
|
1389
|
-
resourceGroupName
|
|
1390
|
-
],
|
|
1391
|
-
queryParameters: [
|
|
1392
|
-
skipToken,
|
|
1393
|
-
apiVersion
|
|
1394
|
-
],
|
|
1395
|
-
headerParameters: [
|
|
1396
|
-
acceptLanguage
|
|
1397
|
-
],
|
|
1398
|
-
responses: {
|
|
1399
|
-
200: {
|
|
1400
|
-
bodyMapper: CommitmentPlanListResult
|
|
1401
|
-
},
|
|
1402
|
-
default: {
|
|
1403
|
-
bodyMapper: CloudError
|
|
1404
|
-
}
|
|
1405
|
-
},
|
|
1406
|
-
serializer: serializer$2
|
|
1407
|
-
};
|
|
1408
|
-
var listNextOperationSpec$1 = {
|
|
1409
|
-
httpMethod: "GET",
|
|
1410
|
-
baseUrl: "https://management.azure.com",
|
|
1411
|
-
path: "{nextLink}",
|
|
1412
|
-
urlParameters: [
|
|
1413
|
-
nextPageLink
|
|
1414
|
-
],
|
|
1415
|
-
headerParameters: [
|
|
1416
|
-
acceptLanguage
|
|
1417
|
-
],
|
|
1418
|
-
responses: {
|
|
1419
|
-
200: {
|
|
1420
|
-
bodyMapper: CommitmentPlanListResult
|
|
1421
|
-
},
|
|
1422
|
-
default: {
|
|
1423
|
-
bodyMapper: CloudError
|
|
1424
|
-
}
|
|
1425
|
-
},
|
|
1426
|
-
serializer: serializer$2
|
|
1427
|
-
};
|
|
1428
|
-
var listInResourceGroupNextOperationSpec = {
|
|
1429
|
-
httpMethod: "GET",
|
|
1430
|
-
baseUrl: "https://management.azure.com",
|
|
1431
|
-
path: "{nextLink}",
|
|
1432
|
-
urlParameters: [
|
|
1433
|
-
nextPageLink
|
|
1434
|
-
],
|
|
1435
|
-
headerParameters: [
|
|
1436
|
-
acceptLanguage
|
|
1437
|
-
],
|
|
1438
|
-
responses: {
|
|
1439
|
-
200: {
|
|
1440
|
-
bodyMapper: CommitmentPlanListResult
|
|
1441
|
-
},
|
|
1442
|
-
default: {
|
|
1443
|
-
bodyMapper: CloudError
|
|
1444
|
-
}
|
|
1445
|
-
},
|
|
1446
|
-
serializer: serializer$2
|
|
1447
|
-
};
|
|
1448
|
-
|
|
1449
|
-
/*
|
|
1450
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1451
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
1452
|
-
* license information.
|
|
1453
|
-
*
|
|
1454
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1455
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1456
|
-
* regenerated.
|
|
1457
|
-
*/
|
|
1458
|
-
|
|
1459
|
-
var Mappers$3 = /*#__PURE__*/Object.freeze({
|
|
1460
|
-
PlanUsageHistoryListResult: PlanUsageHistoryListResult,
|
|
1461
|
-
PlanUsageHistory: PlanUsageHistory,
|
|
1462
|
-
CloudError: CloudError
|
|
1463
|
-
});
|
|
1464
|
-
|
|
1465
|
-
/*
|
|
1466
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1467
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
1468
|
-
* license information.
|
|
1469
|
-
*
|
|
1470
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1471
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1472
|
-
* regenerated.
|
|
1473
|
-
*/
|
|
1474
|
-
/** Class representing a UsageHistory. */
|
|
1475
|
-
var UsageHistory = /** @class */ (function () {
|
|
1476
|
-
/**
|
|
1477
|
-
* Create a UsageHistory.
|
|
1478
|
-
* @param {AzureMLCommitmentPlansManagementClientContext} client Reference to the service client.
|
|
1479
|
-
*/
|
|
1480
|
-
function UsageHistory(client) {
|
|
1481
|
-
this.client = client;
|
|
1482
|
-
}
|
|
1483
|
-
UsageHistory.prototype.list = function (resourceGroupName$$1, commitmentPlanName$$1, options, callback) {
|
|
1484
|
-
return this.client.sendOperationRequest({
|
|
1485
|
-
resourceGroupName: resourceGroupName$$1,
|
|
1486
|
-
commitmentPlanName: commitmentPlanName$$1,
|
|
1487
|
-
options: options
|
|
1488
|
-
}, listOperationSpec$3, callback);
|
|
1489
|
-
};
|
|
1490
|
-
UsageHistory.prototype.listNext = function (nextPageLink$$1, options, callback) {
|
|
1491
|
-
return this.client.sendOperationRequest({
|
|
1492
|
-
nextPageLink: nextPageLink$$1,
|
|
1493
|
-
options: options
|
|
1494
|
-
}, listNextOperationSpec$2, callback);
|
|
1495
|
-
};
|
|
1496
|
-
return UsageHistory;
|
|
1497
|
-
}());
|
|
1498
|
-
// Operation Specifications
|
|
1499
|
-
var serializer$3 = new msRest.Serializer(Mappers$3);
|
|
1500
|
-
var listOperationSpec$3 = {
|
|
1501
|
-
httpMethod: "GET",
|
|
1502
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}/usageHistory",
|
|
1503
|
-
urlParameters: [
|
|
1504
|
-
subscriptionId,
|
|
1505
|
-
resourceGroupName,
|
|
1506
|
-
commitmentPlanName
|
|
1507
|
-
],
|
|
1508
|
-
queryParameters: [
|
|
1509
|
-
skipToken,
|
|
1510
|
-
apiVersion
|
|
1511
|
-
],
|
|
1512
|
-
headerParameters: [
|
|
1513
|
-
acceptLanguage
|
|
1514
|
-
],
|
|
1515
|
-
responses: {
|
|
1516
|
-
200: {
|
|
1517
|
-
bodyMapper: PlanUsageHistoryListResult
|
|
1518
|
-
},
|
|
1519
|
-
default: {
|
|
1520
|
-
bodyMapper: CloudError
|
|
1521
|
-
}
|
|
1522
|
-
},
|
|
1523
|
-
serializer: serializer$3
|
|
1524
|
-
};
|
|
1525
|
-
var listNextOperationSpec$2 = {
|
|
1526
|
-
httpMethod: "GET",
|
|
1527
|
-
baseUrl: "https://management.azure.com",
|
|
1528
|
-
path: "{nextLink}",
|
|
1529
|
-
urlParameters: [
|
|
1530
|
-
nextPageLink
|
|
1531
|
-
],
|
|
1532
|
-
headerParameters: [
|
|
1533
|
-
acceptLanguage
|
|
1534
|
-
],
|
|
1535
|
-
responses: {
|
|
1536
|
-
200: {
|
|
1537
|
-
bodyMapper: PlanUsageHistoryListResult
|
|
1538
|
-
},
|
|
1539
|
-
default: {
|
|
1540
|
-
bodyMapper: CloudError
|
|
1541
|
-
}
|
|
1542
|
-
},
|
|
1543
|
-
serializer: serializer$3
|
|
1544
|
-
};
|
|
1545
|
-
|
|
1546
|
-
/*
|
|
1547
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1548
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
1549
|
-
* license information.
|
|
1550
|
-
*
|
|
1551
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1552
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1553
|
-
* regenerated.
|
|
1554
|
-
*/
|
|
1555
|
-
|
|
1556
|
-
/*
|
|
1557
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1558
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
1559
|
-
* license information.
|
|
1560
|
-
*
|
|
1561
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1562
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1563
|
-
* regenerated.
|
|
1564
|
-
*/
|
|
1565
|
-
var packageName = "@azure/arm-commitmentplans";
|
|
1566
|
-
var packageVersion = "0.1.0";
|
|
1567
|
-
var AzureMLCommitmentPlansManagementClientContext = /** @class */ (function (_super) {
|
|
1568
|
-
__extends(AzureMLCommitmentPlansManagementClientContext, _super);
|
|
1569
|
-
/**
|
|
1570
|
-
* Initializes a new instance of the AzureMLCommitmentPlansManagementClient class.
|
|
1571
|
-
* @param credentials Credentials needed for the client to connect to Azure.
|
|
1572
|
-
* @param subscriptionId Azure Subscription ID.
|
|
1573
|
-
* @param [options] The parameter options
|
|
1574
|
-
*/
|
|
1575
|
-
function AzureMLCommitmentPlansManagementClientContext(credentials, subscriptionId, options) {
|
|
1576
|
-
var _this = this;
|
|
1577
|
-
if (credentials == undefined) {
|
|
1578
|
-
throw new Error('\'credentials\' cannot be null.');
|
|
1579
|
-
}
|
|
1580
|
-
if (subscriptionId == undefined) {
|
|
1581
|
-
throw new Error('\'subscriptionId\' cannot be null.');
|
|
1582
|
-
}
|
|
1583
|
-
if (!options) {
|
|
1584
|
-
options = {};
|
|
1585
|
-
}
|
|
1586
|
-
if (!options.userAgent) {
|
|
1587
|
-
var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
|
|
1588
|
-
options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
|
|
1589
|
-
}
|
|
1590
|
-
_this = _super.call(this, credentials, options) || this;
|
|
1591
|
-
_this.apiVersion = '2016-05-01-preview';
|
|
1592
|
-
_this.acceptLanguage = 'en-US';
|
|
1593
|
-
_this.longRunningOperationRetryTimeout = 30;
|
|
1594
|
-
_this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
|
|
1595
|
-
_this.requestContentType = "application/json; charset=utf-8";
|
|
1596
|
-
_this.credentials = credentials;
|
|
1597
|
-
_this.subscriptionId = subscriptionId;
|
|
1598
|
-
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
|
|
1599
|
-
_this.acceptLanguage = options.acceptLanguage;
|
|
1600
|
-
}
|
|
1601
|
-
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
|
|
1602
|
-
_this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
|
|
1603
|
-
}
|
|
1604
|
-
return _this;
|
|
1605
|
-
}
|
|
1606
|
-
return AzureMLCommitmentPlansManagementClientContext;
|
|
1607
|
-
}(msRestAzure.AzureServiceClient));
|
|
1608
|
-
|
|
1609
|
-
/*
|
|
1610
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1611
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
1612
|
-
* license information.
|
|
1613
|
-
*
|
|
1614
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1615
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1616
|
-
* regenerated.
|
|
1617
|
-
*/
|
|
1618
|
-
var AzureMLCommitmentPlansManagementClient = /** @class */ (function (_super) {
|
|
1619
|
-
__extends(AzureMLCommitmentPlansManagementClient, _super);
|
|
1620
|
-
/**
|
|
1621
|
-
* Initializes a new instance of the AzureMLCommitmentPlansManagementClient class.
|
|
1622
|
-
* @param credentials Credentials needed for the client to connect to Azure.
|
|
1623
|
-
* @param subscriptionId Azure Subscription ID.
|
|
1624
|
-
* @param [options] The parameter options
|
|
1625
|
-
*/
|
|
1626
|
-
function AzureMLCommitmentPlansManagementClient(credentials, subscriptionId, options) {
|
|
1627
|
-
var _this = _super.call(this, credentials, subscriptionId, options) || this;
|
|
1628
|
-
_this.skus = new Skus(_this);
|
|
1629
|
-
_this.commitmentAssociations = new CommitmentAssociations(_this);
|
|
1630
|
-
_this.commitmentPlans = new CommitmentPlans(_this);
|
|
1631
|
-
_this.usageHistory = new UsageHistory(_this);
|
|
1632
|
-
return _this;
|
|
1633
|
-
}
|
|
1634
|
-
return AzureMLCommitmentPlansManagementClient;
|
|
1635
|
-
}(AzureMLCommitmentPlansManagementClientContext));
|
|
1636
|
-
|
|
1637
|
-
exports.AzureMLCommitmentPlansManagementClient = AzureMLCommitmentPlansManagementClient;
|
|
1638
|
-
exports.AzureMLCommitmentPlansManagementClientContext = AzureMLCommitmentPlansManagementClientContext;
|
|
1639
|
-
exports.AzureMLCommitmentPlansManagementModels = index;
|
|
1640
|
-
exports.AzureMLCommitmentPlansManagementMappers = mappers;
|
|
1641
|
-
exports.Skus = Skus;
|
|
1642
|
-
exports.CommitmentAssociations = CommitmentAssociations;
|
|
1643
|
-
exports.CommitmentPlans = CommitmentPlans;
|
|
1644
|
-
exports.UsageHistory = UsageHistory;
|
|
1645
|
-
|
|
1646
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1647
|
-
|
|
1648
|
-
})));
|
|
1649
|
-
//# sourceMappingURL=arm-commitmentplans.js.map
|