@azure/arm-commitmentplans 1.3.1 → 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.
Files changed (164) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -80
  4. package/dist/index.js +1794 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/azureMLCommitmentPlansManagementClient.d.ts +22 -0
  9. package/dist-esm/src/azureMLCommitmentPlansManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/azureMLCommitmentPlansManagementClient.js +55 -0
  11. package/dist-esm/src/azureMLCommitmentPlansManagementClient.js.map +1 -0
  12. package/dist-esm/src/index.d.ts +5 -0
  13. package/dist-esm/src/index.d.ts.map +1 -0
  14. package/dist-esm/src/index.js +12 -0
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/models/index.d.ts +522 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +27 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +24 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/{esm → dist-esm/src}/models/mappers.js +352 -337
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +15 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/dist-esm/src/models/parameters.js +125 -0
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/dist-esm/src/operations/commitmentAssociations.d.ts +55 -0
  29. package/dist-esm/src/operations/commitmentAssociations.d.ts.map +1 -0
  30. package/dist-esm/src/operations/commitmentAssociations.js +203 -0
  31. package/dist-esm/src/operations/commitmentAssociations.js.map +1 -0
  32. package/dist-esm/src/operations/commitmentPlans.d.ts +84 -0
  33. package/dist-esm/src/operations/commitmentPlans.d.ts.map +1 -0
  34. package/dist-esm/src/operations/commitmentPlans.js +332 -0
  35. package/dist-esm/src/operations/commitmentPlans.js.map +1 -0
  36. package/{esm → dist-esm/src}/operations/index.d.ts +1 -0
  37. package/dist-esm/src/operations/index.d.ts.map +1 -0
  38. package/{esm → dist-esm/src}/operations/index.js +4 -5
  39. package/dist-esm/src/operations/index.js.map +1 -0
  40. package/dist-esm/src/operations/operations.d.ts +26 -0
  41. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  42. package/dist-esm/src/operations/operations.js +87 -0
  43. package/dist-esm/src/operations/operations.js.map +1 -0
  44. package/dist-esm/src/operations/skus.d.ts +26 -0
  45. package/dist-esm/src/operations/skus.d.ts.map +1 -0
  46. package/dist-esm/src/operations/skus.js +87 -0
  47. package/dist-esm/src/operations/skus.js.map +1 -0
  48. package/dist-esm/src/operations/usageHistory.d.ts +38 -0
  49. package/dist-esm/src/operations/usageHistory.d.ts.map +1 -0
  50. package/dist-esm/src/operations/usageHistory.js +131 -0
  51. package/dist-esm/src/operations/usageHistory.js.map +1 -0
  52. package/dist-esm/src/operationsInterfaces/commitmentAssociations.d.ts +30 -0
  53. package/dist-esm/src/operationsInterfaces/commitmentAssociations.d.ts.map +1 -0
  54. package/dist-esm/src/operationsInterfaces/commitmentAssociations.js +9 -0
  55. package/dist-esm/src/operationsInterfaces/commitmentAssociations.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/commitmentPlans.d.ts +48 -0
  57. package/dist-esm/src/operationsInterfaces/commitmentPlans.d.ts.map +1 -0
  58. package/dist-esm/src/operationsInterfaces/commitmentPlans.js +9 -0
  59. package/dist-esm/src/operationsInterfaces/commitmentPlans.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
  61. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/index.js +13 -0
  63. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  65. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  67. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/skus.d.ts +11 -0
  69. package/dist-esm/src/operationsInterfaces/skus.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/skus.js +9 -0
  71. package/dist-esm/src/operationsInterfaces/skus.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/usageHistory.d.ts +13 -0
  73. package/dist-esm/src/operationsInterfaces/usageHistory.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/usageHistory.js +9 -0
  75. package/dist-esm/src/operationsInterfaces/usageHistory.js.map +1 -0
  76. package/dist-esm/test/sampleTest.d.ts +2 -0
  77. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  78. package/dist-esm/test/sampleTest.js +40 -0
  79. package/dist-esm/test/sampleTest.js.map +1 -0
  80. package/package.json +74 -33
  81. package/review/arm-commitmentplans.api.md +405 -0
  82. package/rollup.config.js +184 -27
  83. package/src/azureMLCommitmentPlansManagementClient.ts +82 -41
  84. package/src/index.ts +12 -0
  85. package/src/models/index.ts +388 -745
  86. package/src/models/mappers.ts +354 -336
  87. package/src/models/parameters.ts +87 -35
  88. package/src/operations/commitmentAssociations.ts +183 -174
  89. package/src/operations/commitmentPlans.ts +277 -340
  90. package/src/operations/index.ts +4 -5
  91. package/src/operations/operations.ts +95 -0
  92. package/src/operations/skus.ts +65 -48
  93. package/src/operations/usageHistory.ts +135 -89
  94. package/src/operationsInterfaces/commitmentAssociations.ts +62 -0
  95. package/src/operationsInterfaces/commitmentPlans.ts +92 -0
  96. package/src/operationsInterfaces/index.ts +13 -0
  97. package/src/operationsInterfaces/operations.ts +22 -0
  98. package/src/operationsInterfaces/skus.ts +22 -0
  99. package/src/operationsInterfaces/usageHistory.ts +26 -0
  100. package/tsconfig.json +6 -5
  101. package/types/arm-commitmentplans.d.ts +706 -0
  102. package/types/tsdoc-metadata.json +11 -0
  103. package/dist/arm-commitmentplans.js +0 -1659
  104. package/dist/arm-commitmentplans.js.map +0 -1
  105. package/dist/arm-commitmentplans.min.js +0 -1
  106. package/dist/arm-commitmentplans.min.js.map +0 -1
  107. package/esm/azureMLCommitmentPlansManagementClient.d.ts +0 -27
  108. package/esm/azureMLCommitmentPlansManagementClient.d.ts.map +0 -1
  109. package/esm/azureMLCommitmentPlansManagementClient.js +0 -41
  110. package/esm/azureMLCommitmentPlansManagementClient.js.map +0 -1
  111. package/esm/azureMLCommitmentPlansManagementClientContext.d.ts +0 -22
  112. package/esm/azureMLCommitmentPlansManagementClientContext.d.ts.map +0 -1
  113. package/esm/azureMLCommitmentPlansManagementClientContext.js +0 -61
  114. package/esm/azureMLCommitmentPlansManagementClientContext.js.map +0 -1
  115. package/esm/models/commitmentAssociationsMappers.d.ts +0 -2
  116. package/esm/models/commitmentAssociationsMappers.d.ts.map +0 -1
  117. package/esm/models/commitmentAssociationsMappers.js +0 -11
  118. package/esm/models/commitmentAssociationsMappers.js.map +0 -1
  119. package/esm/models/commitmentPlansMappers.d.ts +0 -2
  120. package/esm/models/commitmentPlansMappers.d.ts.map +0 -1
  121. package/esm/models/commitmentPlansMappers.js +0 -11
  122. package/esm/models/commitmentPlansMappers.js.map +0 -1
  123. package/esm/models/index.d.ts +0 -901
  124. package/esm/models/index.d.ts.map +0 -1
  125. package/esm/models/index.js +0 -10
  126. package/esm/models/index.js.map +0 -1
  127. package/esm/models/mappers.d.ts +0 -23
  128. package/esm/models/mappers.d.ts.map +0 -1
  129. package/esm/models/mappers.js.map +0 -1
  130. package/esm/models/parameters.d.ts +0 -10
  131. package/esm/models/parameters.d.ts.map +0 -1
  132. package/esm/models/parameters.js +0 -93
  133. package/esm/models/parameters.js.map +0 -1
  134. package/esm/models/skusMappers.d.ts +0 -2
  135. package/esm/models/skusMappers.d.ts.map +0 -1
  136. package/esm/models/skusMappers.js +0 -11
  137. package/esm/models/skusMappers.js.map +0 -1
  138. package/esm/models/usageHistoryMappers.d.ts +0 -2
  139. package/esm/models/usageHistoryMappers.d.ts.map +0 -1
  140. package/esm/models/usageHistoryMappers.js +0 -11
  141. package/esm/models/usageHistoryMappers.js.map +0 -1
  142. package/esm/operations/commitmentAssociations.d.ts +0 -103
  143. package/esm/operations/commitmentAssociations.d.ts.map +0 -1
  144. package/esm/operations/commitmentAssociations.js +0 -157
  145. package/esm/operations/commitmentAssociations.js.map +0 -1
  146. package/esm/operations/commitmentPlans.d.ts +0 -175
  147. package/esm/operations/commitmentPlans.d.ts.map +0 -1
  148. package/esm/operations/commitmentPlans.js +0 -273
  149. package/esm/operations/commitmentPlans.js.map +0 -1
  150. package/esm/operations/index.d.ts.map +0 -1
  151. package/esm/operations/index.js.map +0 -1
  152. package/esm/operations/skus.d.ts +0 -28
  153. package/esm/operations/skus.d.ts.map +0 -1
  154. package/esm/operations/skus.js +0 -54
  155. package/esm/operations/skus.js.map +0 -1
  156. package/esm/operations/usageHistory.d.ts +0 -52
  157. package/esm/operations/usageHistory.d.ts.map +0 -1
  158. package/esm/operations/usageHistory.js +0 -85
  159. package/esm/operations/usageHistory.js.map +0 -1
  160. package/src/azureMLCommitmentPlansManagementClientContext.ts +0 -68
  161. package/src/models/commitmentAssociationsMappers.ts +0 -24
  162. package/src/models/commitmentPlansMappers.ts +0 -24
  163. package/src/models/skusMappers.ts +0 -20
  164. package/src/models/usageHistoryMappers.ts +0 -16
@@ -1,1659 +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.
18
-
19
- Permission to use, copy, modify, and/or distribute this software for any
20
- purpose with or without fee is hereby granted.
21
-
22
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
23
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
24
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
25
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
26
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
27
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28
- PERFORMANCE OF THIS SOFTWARE.
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(__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(__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(__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(__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(__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 = "1.3.1";
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. Credentials
1572
- * implementing the TokenCredential interface from the @azure/identity package are recommended. For
1573
- * more information about these credentials, see
1574
- * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
1575
- * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
1576
- * @azure/ms-rest-browserauth are also supported.
1577
- * @param subscriptionId Azure Subscription ID.
1578
- * @param [options] The parameter options
1579
- */
1580
- function AzureMLCommitmentPlansManagementClientContext(credentials, subscriptionId, options) {
1581
- var _this = this;
1582
- if (credentials == undefined) {
1583
- throw new Error('\'credentials\' cannot be null.');
1584
- }
1585
- if (subscriptionId == undefined) {
1586
- throw new Error('\'subscriptionId\' cannot be null.');
1587
- }
1588
- if (!options) {
1589
- options = {};
1590
- }
1591
- if (!options.userAgent) {
1592
- var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
1593
- options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
1594
- }
1595
- _this = _super.call(this, credentials, options) || this;
1596
- _this.apiVersion = '2016-05-01-preview';
1597
- _this.acceptLanguage = 'en-US';
1598
- _this.longRunningOperationRetryTimeout = 30;
1599
- _this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
1600
- _this.requestContentType = "application/json; charset=utf-8";
1601
- _this.credentials = credentials;
1602
- _this.subscriptionId = subscriptionId;
1603
- if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
1604
- _this.acceptLanguage = options.acceptLanguage;
1605
- }
1606
- if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
1607
- _this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
1608
- }
1609
- return _this;
1610
- }
1611
- return AzureMLCommitmentPlansManagementClientContext;
1612
- }(msRestAzure.AzureServiceClient));
1613
-
1614
- /*
1615
- * Copyright (c) Microsoft Corporation. All rights reserved.
1616
- * Licensed under the MIT License. See License.txt in the project root for
1617
- * license information.
1618
- *
1619
- * Code generated by Microsoft (R) AutoRest Code Generator.
1620
- * Changes may cause incorrect behavior and will be lost if the code is
1621
- * regenerated.
1622
- */
1623
- var AzureMLCommitmentPlansManagementClient = /** @class */ (function (_super) {
1624
- __extends(AzureMLCommitmentPlansManagementClient, _super);
1625
- /**
1626
- * Initializes a new instance of the AzureMLCommitmentPlansManagementClient class.
1627
- * @param credentials Credentials needed for the client to connect to Azure. Credentials
1628
- * implementing the TokenCredential interface from the @azure/identity package are recommended. For
1629
- * more information about these credentials, see
1630
- * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
1631
- * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
1632
- * @azure/ms-rest-browserauth are also supported.
1633
- * @param subscriptionId Azure Subscription ID.
1634
- * @param [options] The parameter options
1635
- */
1636
- function AzureMLCommitmentPlansManagementClient(credentials, subscriptionId, options) {
1637
- var _this = _super.call(this, credentials, subscriptionId, options) || this;
1638
- _this.skus = new Skus(_this);
1639
- _this.commitmentAssociations = new CommitmentAssociations(_this);
1640
- _this.commitmentPlans = new CommitmentPlans(_this);
1641
- _this.usageHistory = new UsageHistory(_this);
1642
- return _this;
1643
- }
1644
- return AzureMLCommitmentPlansManagementClient;
1645
- }(AzureMLCommitmentPlansManagementClientContext));
1646
-
1647
- exports.AzureMLCommitmentPlansManagementClient = AzureMLCommitmentPlansManagementClient;
1648
- exports.AzureMLCommitmentPlansManagementClientContext = AzureMLCommitmentPlansManagementClientContext;
1649
- exports.AzureMLCommitmentPlansManagementModels = index;
1650
- exports.AzureMLCommitmentPlansManagementMappers = mappers;
1651
- exports.Skus = Skus;
1652
- exports.CommitmentAssociations = CommitmentAssociations;
1653
- exports.CommitmentPlans = CommitmentPlans;
1654
- exports.UsageHistory = UsageHistory;
1655
-
1656
- Object.defineProperty(exports, '__esModule', { value: true });
1657
-
1658
- })));
1659
- //# sourceMappingURL=arm-commitmentplans.js.map