@azure/arm-azurestack 2.1.1 → 3.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 (174) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +69 -80
  4. package/dist/index.js +3000 -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/azureStackManagementClient.d.ts +24 -0
  9. package/dist-esm/src/azureStackManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/azureStackManagementClient.js +57 -0
  11. package/dist-esm/src/azureStackManagementClient.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 +854 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +55 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +37 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/{esm → dist-esm/src}/models/mappers.js +608 -394
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +20 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/dist-esm/src/models/parameters.js +163 -0
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/dist-esm/src/operations/cloudManifestFile.d.ts +24 -0
  29. package/dist-esm/src/operations/cloudManifestFile.d.ts.map +1 -0
  30. package/dist-esm/src/operations/cloudManifestFile.js +70 -0
  31. package/dist-esm/src/operations/cloudManifestFile.js.map +1 -0
  32. package/dist-esm/src/operations/customerSubscriptions.d.ts +63 -0
  33. package/dist-esm/src/operations/customerSubscriptions.d.ts.map +1 -0
  34. package/dist-esm/src/operations/customerSubscriptions.js +241 -0
  35. package/dist-esm/src/operations/customerSubscriptions.js.map +1 -0
  36. package/{esm → dist-esm/src}/operations/index.d.ts +3 -1
  37. package/dist-esm/src/operations/index.d.ts.map +1 -0
  38. package/{esm → dist-esm/src}/operations/index.js +6 -6
  39. package/dist-esm/src/operations/index.js.map +1 -0
  40. package/dist-esm/src/operations/linkedSubscriptions.d.ts +83 -0
  41. package/dist-esm/src/operations/linkedSubscriptions.d.ts.map +1 -0
  42. package/dist-esm/src/operations/linkedSubscriptions.js +359 -0
  43. package/dist-esm/src/operations/linkedSubscriptions.js.map +1 -0
  44. package/dist-esm/src/operations/operations.d.ts +32 -0
  45. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  46. package/dist-esm/src/operations/operations.js +120 -0
  47. package/dist-esm/src/operations/operations.js.map +1 -0
  48. package/dist-esm/src/operations/products.d.ts +78 -0
  49. package/dist-esm/src/operations/products.d.ts.map +1 -0
  50. package/dist-esm/src/operations/products.js +303 -0
  51. package/dist-esm/src/operations/products.js.map +1 -0
  52. package/dist-esm/src/operations/registrations.d.ts +97 -0
  53. package/dist-esm/src/operations/registrations.d.ts.map +1 -0
  54. package/dist-esm/src/operations/registrations.js +416 -0
  55. package/dist-esm/src/operations/registrations.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/cloudManifestFile.d.ts +16 -0
  57. package/dist-esm/src/operationsInterfaces/cloudManifestFile.d.ts.map +1 -0
  58. package/dist-esm/src/operationsInterfaces/cloudManifestFile.js +9 -0
  59. package/dist-esm/src/operationsInterfaces/cloudManifestFile.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/customerSubscriptions.d.ts +38 -0
  61. package/dist-esm/src/operationsInterfaces/customerSubscriptions.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/customerSubscriptions.js +9 -0
  63. package/dist-esm/src/operationsInterfaces/customerSubscriptions.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/index.d.ts +7 -0
  65. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/index.js +14 -0
  67. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/linkedSubscriptions.d.ts +47 -0
  69. package/dist-esm/src/operationsInterfaces/linkedSubscriptions.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/linkedSubscriptions.js +9 -0
  71. package/dist-esm/src/operationsInterfaces/linkedSubscriptions.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  73. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  75. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/products.d.ts +53 -0
  77. package/dist-esm/src/operationsInterfaces/products.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/products.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/products.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/registrations.d.ts +61 -0
  81. package/dist-esm/src/operationsInterfaces/registrations.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/registrations.js +9 -0
  83. package/dist-esm/src/operationsInterfaces/registrations.js.map +1 -0
  84. package/dist-esm/test/sampleTest.d.ts +4 -0
  85. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  86. package/dist-esm/test/sampleTest.js +43 -0
  87. package/dist-esm/test/sampleTest.js.map +1 -0
  88. package/package.json +63 -32
  89. package/review/arm-azurestack.api.md +695 -0
  90. package/rollup.config.js +181 -30
  91. package/src/azureStackManagementClient.ts +88 -43
  92. package/src/index.ts +12 -0
  93. package/src/models/index.ts +725 -836
  94. package/src/models/mappers.ts +623 -384
  95. package/src/models/parameters.ts +130 -32
  96. package/src/operations/cloudManifestFile.ts +93 -0
  97. package/src/operations/customerSubscriptions.ts +191 -206
  98. package/src/operations/index.ts +6 -6
  99. package/src/operations/linkedSubscriptions.ts +450 -0
  100. package/src/operations/operations.ts +89 -75
  101. package/src/operations/products.ts +240 -299
  102. package/src/operations/registrations.ts +347 -266
  103. package/src/operationsInterfaces/cloudManifestFile.ts +34 -0
  104. package/src/operationsInterfaces/customerSubscriptions.ts +75 -0
  105. package/src/operationsInterfaces/index.ts +14 -0
  106. package/src/operationsInterfaces/linkedSubscriptions.ts +91 -0
  107. package/src/operationsInterfaces/operations.ts +22 -0
  108. package/src/operationsInterfaces/products.ts +104 -0
  109. package/src/operationsInterfaces/registrations.ts +116 -0
  110. package/tsconfig.json +3 -3
  111. package/types/arm-azurestack.d.ts +1206 -0
  112. package/types/tsdoc-metadata.json +11 -0
  113. package/dist/arm-azurestack.js +0 -2153
  114. package/dist/arm-azurestack.js.map +0 -1
  115. package/dist/arm-azurestack.min.js +0 -1
  116. package/dist/arm-azurestack.min.js.map +0 -1
  117. package/esm/azureStackManagementClient.d.ts +0 -28
  118. package/esm/azureStackManagementClient.d.ts.map +0 -1
  119. package/esm/azureStackManagementClient.js +0 -42
  120. package/esm/azureStackManagementClient.js.map +0 -1
  121. package/esm/azureStackManagementClientContext.d.ts +0 -23
  122. package/esm/azureStackManagementClientContext.d.ts.map +0 -1
  123. package/esm/azureStackManagementClientContext.js +0 -62
  124. package/esm/azureStackManagementClientContext.js.map +0 -1
  125. package/esm/models/customerSubscriptionsMappers.d.ts +0 -2
  126. package/esm/models/customerSubscriptionsMappers.d.ts.map +0 -1
  127. package/esm/models/customerSubscriptionsMappers.js +0 -9
  128. package/esm/models/customerSubscriptionsMappers.js.map +0 -1
  129. package/esm/models/index.d.ts +0 -1014
  130. package/esm/models/index.d.ts.map +0 -1
  131. package/esm/models/index.js +0 -8
  132. package/esm/models/index.js.map +0 -1
  133. package/esm/models/mappers.d.ts +0 -31
  134. package/esm/models/mappers.d.ts.map +0 -1
  135. package/esm/models/mappers.js.map +0 -1
  136. package/esm/models/operationsMappers.d.ts +0 -2
  137. package/esm/models/operationsMappers.d.ts.map +0 -1
  138. package/esm/models/operationsMappers.js +0 -9
  139. package/esm/models/operationsMappers.js.map +0 -1
  140. package/esm/models/parameters.d.ts +0 -10
  141. package/esm/models/parameters.d.ts.map +0 -1
  142. package/esm/models/parameters.js +0 -92
  143. package/esm/models/parameters.js.map +0 -1
  144. package/esm/models/productsMappers.d.ts +0 -2
  145. package/esm/models/productsMappers.d.ts.map +0 -1
  146. package/esm/models/productsMappers.js +0 -9
  147. package/esm/models/productsMappers.js.map +0 -1
  148. package/esm/models/registrationsMappers.d.ts +0 -2
  149. package/esm/models/registrationsMappers.d.ts.map +0 -1
  150. package/esm/models/registrationsMappers.js +0 -9
  151. package/esm/models/registrationsMappers.js.map +0 -1
  152. package/esm/operations/customerSubscriptions.d.ts +0 -127
  153. package/esm/operations/customerSubscriptions.d.ts.map +0 -1
  154. package/esm/operations/customerSubscriptions.js +0 -188
  155. package/esm/operations/customerSubscriptions.js.map +0 -1
  156. package/esm/operations/index.d.ts.map +0 -1
  157. package/esm/operations/index.js.map +0 -1
  158. package/esm/operations/operations.d.ts +0 -46
  159. package/esm/operations/operations.d.ts.map +0 -1
  160. package/esm/operations/operations.js +0 -77
  161. package/esm/operations/operations.js.map +0 -1
  162. package/esm/operations/products.d.ts +0 -169
  163. package/esm/operations/products.d.ts.map +0 -1
  164. package/esm/operations/products.js +0 -268
  165. package/esm/operations/products.js.map +0 -1
  166. package/esm/operations/registrations.d.ts +0 -160
  167. package/esm/operations/registrations.d.ts.map +0 -1
  168. package/esm/operations/registrations.js +0 -250
  169. package/esm/operations/registrations.js.map +0 -1
  170. package/src/azureStackManagementClientContext.ts +0 -69
  171. package/src/models/customerSubscriptionsMappers.ts +0 -24
  172. package/src/models/operationsMappers.ts +0 -14
  173. package/src/models/productsMappers.ts +0 -30
  174. package/src/models/registrationsMappers.ts +0 -26
@@ -1,2153 +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 license information.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- (function (global, factory) {
9
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@azure/ms-rest-azure-js'), require('@azure/ms-rest-js')) :
10
- typeof define === 'function' && define.amd ? define(['exports', '@azure/ms-rest-azure-js', '@azure/ms-rest-js'], factory) :
11
- (global = global || self, factory((global.Azure = global.Azure || {}, global.Azure.ArmAzurestack = {}), global.msRestAzure, global.msRest));
12
- }(this, (function (exports, msRestAzure, msRest) { 'use strict';
13
-
14
- /*! *****************************************************************************
15
- Copyright (c) Microsoft Corporation.
16
-
17
- Permission to use, copy, modify, and/or distribute this software for any
18
- purpose with or without fee is hereby granted.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
21
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
22
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
23
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
24
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
25
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
26
- PERFORMANCE OF THIS SOFTWARE.
27
- ***************************************************************************** */
28
- /* global Reflect, Promise */
29
-
30
- var extendStatics = function(d, b) {
31
- extendStatics = Object.setPrototypeOf ||
32
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
33
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
34
- return extendStatics(d, b);
35
- };
36
-
37
- function __extends(d, b) {
38
- extendStatics(d, b);
39
- function __() { this.constructor = d; }
40
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
41
- }
42
-
43
- var __assign = function() {
44
- __assign = Object.assign || function __assign(t) {
45
- for (var s, i = 1, n = arguments.length; i < n; i++) {
46
- s = arguments[i];
47
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
48
- }
49
- return t;
50
- };
51
- return __assign.apply(this, arguments);
52
- };
53
-
54
- /*
55
- * Copyright (c) Microsoft Corporation. All rights reserved.
56
- * Licensed under the MIT License. See License.txt in the project root for license information.
57
- *
58
- * Code generated by Microsoft (R) AutoRest Code Generator.
59
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
60
- */
61
-
62
- var index = /*#__PURE__*/Object.freeze({
63
- __proto__: null
64
- });
65
-
66
- /*
67
- * Copyright (c) Microsoft Corporation. All rights reserved.
68
- * Licensed under the MIT License. See License.txt in the project root for license information.
69
- *
70
- * Code generated by Microsoft (R) AutoRest Code Generator.
71
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
72
- */
73
- var CloudError = msRestAzure.CloudErrorMapper;
74
- var BaseResource = msRestAzure.BaseResourceMapper;
75
- var Resource = {
76
- serializedName: "Resource",
77
- type: {
78
- name: "Composite",
79
- className: "Resource",
80
- modelProperties: {
81
- id: {
82
- readOnly: true,
83
- serializedName: "id",
84
- type: {
85
- name: "String"
86
- }
87
- },
88
- name: {
89
- readOnly: true,
90
- serializedName: "name",
91
- type: {
92
- name: "String"
93
- }
94
- },
95
- type: {
96
- readOnly: true,
97
- serializedName: "type",
98
- type: {
99
- name: "String"
100
- }
101
- },
102
- etag: {
103
- serializedName: "etag",
104
- type: {
105
- name: "String"
106
- }
107
- }
108
- }
109
- }
110
- };
111
- var TrackedResource = {
112
- serializedName: "TrackedResource",
113
- type: {
114
- name: "Composite",
115
- className: "TrackedResource",
116
- modelProperties: {
117
- id: {
118
- readOnly: true,
119
- serializedName: "id",
120
- type: {
121
- name: "String"
122
- }
123
- },
124
- name: {
125
- readOnly: true,
126
- serializedName: "name",
127
- type: {
128
- name: "String"
129
- }
130
- },
131
- type: {
132
- readOnly: true,
133
- serializedName: "type",
134
- type: {
135
- name: "String"
136
- }
137
- },
138
- location: {
139
- required: true,
140
- isConstant: true,
141
- serializedName: "location",
142
- defaultValue: 'global',
143
- type: {
144
- name: "String"
145
- }
146
- },
147
- tags: {
148
- serializedName: "tags",
149
- type: {
150
- name: "Dictionary",
151
- value: {
152
- type: {
153
- name: "String"
154
- }
155
- }
156
- }
157
- },
158
- etag: {
159
- serializedName: "etag",
160
- type: {
161
- name: "String"
162
- }
163
- }
164
- }
165
- }
166
- };
167
- var Display = {
168
- serializedName: "Display",
169
- type: {
170
- name: "Composite",
171
- className: "Display",
172
- modelProperties: {
173
- provider: {
174
- serializedName: "provider",
175
- type: {
176
- name: "String"
177
- }
178
- },
179
- resource: {
180
- serializedName: "resource",
181
- type: {
182
- name: "String"
183
- }
184
- },
185
- operation: {
186
- serializedName: "operation",
187
- type: {
188
- name: "String"
189
- }
190
- },
191
- description: {
192
- serializedName: "description",
193
- type: {
194
- name: "String"
195
- }
196
- }
197
- }
198
- }
199
- };
200
- var Operation = {
201
- serializedName: "Operation",
202
- type: {
203
- name: "Composite",
204
- className: "Operation",
205
- modelProperties: {
206
- name: {
207
- serializedName: "name",
208
- type: {
209
- name: "String"
210
- }
211
- },
212
- display: {
213
- serializedName: "display",
214
- type: {
215
- name: "Composite",
216
- className: "Display"
217
- }
218
- },
219
- origin: {
220
- serializedName: "origin",
221
- type: {
222
- name: "String"
223
- }
224
- }
225
- }
226
- }
227
- };
228
- var ErrorDetails = {
229
- serializedName: "ErrorDetails",
230
- type: {
231
- name: "Composite",
232
- className: "ErrorDetails",
233
- modelProperties: {
234
- code: {
235
- readOnly: true,
236
- serializedName: "code",
237
- type: {
238
- name: "String"
239
- }
240
- },
241
- message: {
242
- readOnly: true,
243
- serializedName: "message",
244
- type: {
245
- name: "String"
246
- }
247
- },
248
- target: {
249
- readOnly: true,
250
- serializedName: "target",
251
- type: {
252
- name: "String"
253
- }
254
- }
255
- }
256
- }
257
- };
258
- var ErrorResponse = {
259
- serializedName: "ErrorResponse",
260
- type: {
261
- name: "Composite",
262
- className: "ErrorResponse",
263
- modelProperties: {
264
- error: {
265
- serializedName: "error",
266
- type: {
267
- name: "Composite",
268
- className: "ErrorDetails"
269
- }
270
- }
271
- }
272
- }
273
- };
274
- var OsDiskImage = {
275
- serializedName: "OsDiskImage",
276
- type: {
277
- name: "Composite",
278
- className: "OsDiskImage",
279
- modelProperties: {
280
- operatingSystem: {
281
- readOnly: true,
282
- serializedName: "operatingSystem",
283
- type: {
284
- name: "String"
285
- }
286
- },
287
- sourceBlobSasUri: {
288
- readOnly: true,
289
- serializedName: "sourceBlobSasUri",
290
- type: {
291
- name: "String"
292
- }
293
- }
294
- }
295
- }
296
- };
297
- var DataDiskImage = {
298
- serializedName: "DataDiskImage",
299
- type: {
300
- name: "Composite",
301
- className: "DataDiskImage",
302
- modelProperties: {
303
- lun: {
304
- readOnly: true,
305
- serializedName: "lun",
306
- type: {
307
- name: "Number"
308
- }
309
- },
310
- sourceBlobSasUri: {
311
- readOnly: true,
312
- serializedName: "sourceBlobSasUri",
313
- type: {
314
- name: "String"
315
- }
316
- }
317
- }
318
- }
319
- };
320
- var ExtendedProduct = {
321
- serializedName: "ExtendedProduct",
322
- type: {
323
- name: "Composite",
324
- className: "ExtendedProduct",
325
- modelProperties: {
326
- galleryPackageBlobSasUri: {
327
- readOnly: true,
328
- serializedName: "galleryPackageBlobSasUri",
329
- type: {
330
- name: "String"
331
- }
332
- },
333
- productKind: {
334
- readOnly: true,
335
- serializedName: "productKind",
336
- type: {
337
- name: "String"
338
- }
339
- },
340
- computeRole: {
341
- readOnly: true,
342
- serializedName: "properties.computeRole",
343
- type: {
344
- name: "String"
345
- }
346
- },
347
- isSystemExtension: {
348
- readOnly: true,
349
- serializedName: "properties.isSystemExtension",
350
- type: {
351
- name: "Boolean"
352
- }
353
- },
354
- uri: {
355
- readOnly: true,
356
- serializedName: "properties.sourceBlob.uri",
357
- type: {
358
- name: "String"
359
- }
360
- },
361
- supportMultipleExtensions: {
362
- readOnly: true,
363
- serializedName: "properties.supportMultipleExtensions",
364
- type: {
365
- name: "Boolean"
366
- }
367
- },
368
- version: {
369
- readOnly: true,
370
- serializedName: "properties.version",
371
- type: {
372
- name: "String"
373
- }
374
- },
375
- vmOsType: {
376
- readOnly: true,
377
- serializedName: "properties.vmOsType",
378
- type: {
379
- name: "String"
380
- }
381
- },
382
- vmScaleSetEnabled: {
383
- readOnly: true,
384
- serializedName: "properties.vmScaleSetEnabled",
385
- type: {
386
- name: "Boolean"
387
- }
388
- },
389
- osDiskImage: {
390
- readOnly: true,
391
- serializedName: "properties.osDiskImage",
392
- type: {
393
- name: "Composite",
394
- className: "OsDiskImage"
395
- }
396
- },
397
- dataDiskImages: {
398
- readOnly: true,
399
- serializedName: "properties.dataDiskImages",
400
- type: {
401
- name: "Sequence",
402
- element: {
403
- type: {
404
- name: "Composite",
405
- className: "DataDiskImage"
406
- }
407
- }
408
- }
409
- }
410
- }
411
- }
412
- };
413
- var VirtualMachineExtensionProductProperties = {
414
- serializedName: "VirtualMachineExtensionProductProperties",
415
- type: {
416
- name: "Composite",
417
- className: "VirtualMachineExtensionProductProperties",
418
- modelProperties: {
419
- computeRole: {
420
- readOnly: true,
421
- serializedName: "computeRole",
422
- type: {
423
- name: "String"
424
- }
425
- },
426
- isSystemExtension: {
427
- readOnly: true,
428
- serializedName: "isSystemExtension",
429
- type: {
430
- name: "Boolean"
431
- }
432
- },
433
- uri: {
434
- readOnly: true,
435
- serializedName: "sourceBlob.uri",
436
- type: {
437
- name: "String"
438
- }
439
- },
440
- supportMultipleExtensions: {
441
- readOnly: true,
442
- serializedName: "supportMultipleExtensions",
443
- type: {
444
- name: "Boolean"
445
- }
446
- },
447
- version: {
448
- readOnly: true,
449
- serializedName: "version",
450
- type: {
451
- name: "String"
452
- }
453
- },
454
- vmOsType: {
455
- readOnly: true,
456
- serializedName: "vmOsType",
457
- type: {
458
- name: "String"
459
- }
460
- },
461
- vmScaleSetEnabled: {
462
- readOnly: true,
463
- serializedName: "vmScaleSetEnabled",
464
- type: {
465
- name: "Boolean"
466
- }
467
- }
468
- }
469
- }
470
- };
471
- var VirtualMachineProductProperties = {
472
- serializedName: "VirtualMachineProductProperties",
473
- type: {
474
- name: "Composite",
475
- className: "VirtualMachineProductProperties",
476
- modelProperties: {
477
- version: {
478
- readOnly: true,
479
- serializedName: "version",
480
- type: {
481
- name: "String"
482
- }
483
- },
484
- osDiskImage: {
485
- readOnly: true,
486
- serializedName: "osDiskImage",
487
- type: {
488
- name: "Composite",
489
- className: "OsDiskImage"
490
- }
491
- },
492
- dataDiskImages: {
493
- readOnly: true,
494
- serializedName: "dataDiskImages",
495
- type: {
496
- name: "Sequence",
497
- element: {
498
- type: {
499
- name: "Composite",
500
- className: "DataDiskImage"
501
- }
502
- }
503
- }
504
- }
505
- }
506
- }
507
- };
508
- var IconUris = {
509
- serializedName: "IconUris",
510
- type: {
511
- name: "Composite",
512
- className: "IconUris",
513
- modelProperties: {
514
- large: {
515
- serializedName: "large",
516
- type: {
517
- name: "String"
518
- }
519
- },
520
- wide: {
521
- serializedName: "wide",
522
- type: {
523
- name: "String"
524
- }
525
- },
526
- medium: {
527
- serializedName: "medium",
528
- type: {
529
- name: "String"
530
- }
531
- },
532
- small: {
533
- serializedName: "small",
534
- type: {
535
- name: "String"
536
- }
537
- },
538
- hero: {
539
- serializedName: "hero",
540
- type: {
541
- name: "String"
542
- }
543
- }
544
- }
545
- }
546
- };
547
- var ProductLink = {
548
- serializedName: "ProductLink",
549
- type: {
550
- name: "Composite",
551
- className: "ProductLink",
552
- modelProperties: {
553
- displayName: {
554
- serializedName: "displayName",
555
- type: {
556
- name: "String"
557
- }
558
- },
559
- uri: {
560
- serializedName: "uri",
561
- type: {
562
- name: "String"
563
- }
564
- }
565
- }
566
- }
567
- };
568
- var ProductProperties = {
569
- serializedName: "ProductProperties",
570
- type: {
571
- name: "Composite",
572
- className: "ProductProperties",
573
- modelProperties: {
574
- version: {
575
- serializedName: "version",
576
- type: {
577
- name: "String"
578
- }
579
- }
580
- }
581
- }
582
- };
583
- var Compatibility = {
584
- serializedName: "Compatibility",
585
- type: {
586
- name: "Composite",
587
- className: "Compatibility",
588
- modelProperties: {
589
- isCompatible: {
590
- serializedName: "isCompatible",
591
- type: {
592
- name: "Boolean"
593
- }
594
- },
595
- message: {
596
- serializedName: "message",
597
- type: {
598
- name: "String"
599
- }
600
- },
601
- description: {
602
- serializedName: "description",
603
- type: {
604
- name: "String"
605
- }
606
- },
607
- issues: {
608
- serializedName: "issues",
609
- type: {
610
- name: "Sequence",
611
- element: {
612
- type: {
613
- name: "String"
614
- }
615
- }
616
- }
617
- }
618
- }
619
- }
620
- };
621
- var Product = {
622
- serializedName: "Product",
623
- type: {
624
- name: "Composite",
625
- className: "Product",
626
- modelProperties: __assign(__assign({}, Resource.type.modelProperties), { displayName: {
627
- serializedName: "properties.displayName",
628
- type: {
629
- name: "String"
630
- }
631
- }, description: {
632
- serializedName: "properties.description",
633
- type: {
634
- name: "String"
635
- }
636
- }, publisherDisplayName: {
637
- serializedName: "properties.publisherDisplayName",
638
- type: {
639
- name: "String"
640
- }
641
- }, publisherIdentifier: {
642
- serializedName: "properties.publisherIdentifier",
643
- type: {
644
- name: "String"
645
- }
646
- }, offer: {
647
- serializedName: "properties.offer",
648
- type: {
649
- name: "String"
650
- }
651
- }, offerVersion: {
652
- serializedName: "properties.offerVersion",
653
- type: {
654
- name: "String"
655
- }
656
- }, sku: {
657
- serializedName: "properties.sku",
658
- type: {
659
- name: "String"
660
- }
661
- }, billingPartNumber: {
662
- serializedName: "properties.billingPartNumber",
663
- type: {
664
- name: "String"
665
- }
666
- }, vmExtensionType: {
667
- serializedName: "properties.vmExtensionType",
668
- type: {
669
- name: "String"
670
- }
671
- }, galleryItemIdentity: {
672
- serializedName: "properties.galleryItemIdentity",
673
- type: {
674
- name: "String"
675
- }
676
- }, iconUris: {
677
- serializedName: "properties.iconUris",
678
- type: {
679
- name: "Composite",
680
- className: "IconUris"
681
- }
682
- }, links: {
683
- serializedName: "properties.links",
684
- type: {
685
- name: "Sequence",
686
- element: {
687
- type: {
688
- name: "Composite",
689
- className: "ProductLink"
690
- }
691
- }
692
- }
693
- }, legalTerms: {
694
- serializedName: "properties.legalTerms",
695
- type: {
696
- name: "String"
697
- }
698
- }, privacyPolicy: {
699
- serializedName: "properties.privacyPolicy",
700
- type: {
701
- name: "String"
702
- }
703
- }, payloadLength: {
704
- serializedName: "properties.payloadLength",
705
- type: {
706
- name: "Number"
707
- }
708
- }, productKind: {
709
- serializedName: "properties.productKind",
710
- type: {
711
- name: "String"
712
- }
713
- }, productProperties: {
714
- serializedName: "properties.productProperties",
715
- type: {
716
- name: "Composite",
717
- className: "ProductProperties"
718
- }
719
- }, compatibility: {
720
- serializedName: "properties.compatibility",
721
- type: {
722
- name: "Composite",
723
- className: "Compatibility"
724
- }
725
- } })
726
- }
727
- };
728
- var DeviceConfiguration = {
729
- serializedName: "DeviceConfiguration",
730
- type: {
731
- name: "Composite",
732
- className: "DeviceConfiguration",
733
- modelProperties: {
734
- deviceVersion: {
735
- readOnly: true,
736
- serializedName: "deviceVersion",
737
- type: {
738
- name: "String"
739
- }
740
- },
741
- identitySystem: {
742
- readOnly: true,
743
- serializedName: "identitySystem",
744
- type: {
745
- name: "String"
746
- }
747
- }
748
- }
749
- }
750
- };
751
- var MarketplaceProductLogUpdate = {
752
- serializedName: "MarketplaceProductLogUpdate",
753
- type: {
754
- name: "Composite",
755
- className: "MarketplaceProductLogUpdate",
756
- modelProperties: {
757
- operation: {
758
- readOnly: true,
759
- serializedName: "operation",
760
- type: {
761
- name: "String"
762
- }
763
- },
764
- status: {
765
- readOnly: true,
766
- serializedName: "status",
767
- type: {
768
- name: "String"
769
- }
770
- },
771
- error: {
772
- readOnly: true,
773
- serializedName: "error",
774
- type: {
775
- name: "String"
776
- }
777
- },
778
- details: {
779
- readOnly: true,
780
- serializedName: "details",
781
- type: {
782
- name: "String"
783
- }
784
- }
785
- }
786
- }
787
- };
788
- var ProductLog = {
789
- serializedName: "ProductLog",
790
- type: {
791
- name: "Composite",
792
- className: "ProductLog",
793
- modelProperties: {
794
- id: {
795
- readOnly: true,
796
- serializedName: "id",
797
- type: {
798
- name: "String"
799
- }
800
- },
801
- productId: {
802
- readOnly: true,
803
- serializedName: "productId",
804
- type: {
805
- name: "String"
806
- }
807
- },
808
- subscriptionId: {
809
- readOnly: true,
810
- serializedName: "subscriptionId",
811
- type: {
812
- name: "String"
813
- }
814
- },
815
- registrationName: {
816
- readOnly: true,
817
- serializedName: "registrationName",
818
- type: {
819
- name: "String"
820
- }
821
- },
822
- resourceGroupName: {
823
- readOnly: true,
824
- serializedName: "resourceGroupName",
825
- type: {
826
- name: "String"
827
- }
828
- },
829
- operation: {
830
- readOnly: true,
831
- serializedName: "operation",
832
- type: {
833
- name: "String"
834
- }
835
- },
836
- startDate: {
837
- readOnly: true,
838
- serializedName: "startDate",
839
- type: {
840
- name: "String"
841
- }
842
- },
843
- endDate: {
844
- readOnly: true,
845
- serializedName: "endDate",
846
- type: {
847
- name: "String"
848
- }
849
- },
850
- status: {
851
- readOnly: true,
852
- serializedName: "status",
853
- type: {
854
- name: "String"
855
- }
856
- },
857
- error: {
858
- readOnly: true,
859
- serializedName: "error",
860
- type: {
861
- name: "String"
862
- }
863
- },
864
- details: {
865
- readOnly: true,
866
- serializedName: "details",
867
- type: {
868
- name: "String"
869
- }
870
- }
871
- }
872
- }
873
- };
874
- var Registration = {
875
- serializedName: "Registration",
876
- type: {
877
- name: "Composite",
878
- className: "Registration",
879
- modelProperties: __assign(__assign({}, TrackedResource.type.modelProperties), { objectId: {
880
- serializedName: "properties.objectId",
881
- type: {
882
- name: "String"
883
- }
884
- }, cloudId: {
885
- serializedName: "properties.cloudId",
886
- type: {
887
- name: "String"
888
- }
889
- }, billingModel: {
890
- serializedName: "properties.billingModel",
891
- type: {
892
- name: "String"
893
- }
894
- } })
895
- }
896
- };
897
- var ActivationKeyResult = {
898
- serializedName: "ActivationKeyResult",
899
- type: {
900
- name: "Composite",
901
- className: "ActivationKeyResult",
902
- modelProperties: {
903
- activationKey: {
904
- serializedName: "activationKey",
905
- type: {
906
- name: "String"
907
- }
908
- }
909
- }
910
- }
911
- };
912
- var RegistrationParameter = {
913
- serializedName: "RegistrationParameter",
914
- type: {
915
- name: "Composite",
916
- className: "RegistrationParameter",
917
- modelProperties: {
918
- registrationToken: {
919
- required: true,
920
- serializedName: "properties.registrationToken",
921
- type: {
922
- name: "String"
923
- }
924
- },
925
- location: {
926
- serializedName: "location",
927
- type: {
928
- name: "String"
929
- }
930
- }
931
- }
932
- }
933
- };
934
- var CustomerSubscription = {
935
- serializedName: "CustomerSubscription",
936
- type: {
937
- name: "Composite",
938
- className: "CustomerSubscription",
939
- modelProperties: __assign(__assign({}, Resource.type.modelProperties), { tenantId: {
940
- serializedName: "properties.tenantId",
941
- type: {
942
- name: "String"
943
- }
944
- } })
945
- }
946
- };
947
- var OperationList = {
948
- serializedName: "OperationList",
949
- type: {
950
- name: "Composite",
951
- className: "OperationList",
952
- modelProperties: {
953
- value: {
954
- serializedName: "",
955
- type: {
956
- name: "Sequence",
957
- element: {
958
- type: {
959
- name: "Composite",
960
- className: "Operation"
961
- }
962
- }
963
- }
964
- },
965
- nextLink: {
966
- serializedName: "nextLink",
967
- type: {
968
- name: "String"
969
- }
970
- }
971
- }
972
- }
973
- };
974
- var ProductList = {
975
- serializedName: "ProductList",
976
- type: {
977
- name: "Composite",
978
- className: "ProductList",
979
- modelProperties: {
980
- nextLink: {
981
- serializedName: "nextLink",
982
- type: {
983
- name: "String"
984
- }
985
- },
986
- value: {
987
- serializedName: "",
988
- type: {
989
- name: "Sequence",
990
- element: {
991
- type: {
992
- name: "Composite",
993
- className: "Product"
994
- }
995
- }
996
- }
997
- }
998
- }
999
- }
1000
- };
1001
- var RegistrationList = {
1002
- serializedName: "RegistrationList",
1003
- type: {
1004
- name: "Composite",
1005
- className: "RegistrationList",
1006
- modelProperties: {
1007
- nextLink: {
1008
- serializedName: "nextLink",
1009
- type: {
1010
- name: "String"
1011
- }
1012
- },
1013
- value: {
1014
- serializedName: "",
1015
- type: {
1016
- name: "Sequence",
1017
- element: {
1018
- type: {
1019
- name: "Composite",
1020
- className: "Registration"
1021
- }
1022
- }
1023
- }
1024
- }
1025
- }
1026
- }
1027
- };
1028
- var CustomerSubscriptionList = {
1029
- serializedName: "CustomerSubscriptionList",
1030
- type: {
1031
- name: "Composite",
1032
- className: "CustomerSubscriptionList",
1033
- modelProperties: {
1034
- nextLink: {
1035
- serializedName: "nextLink",
1036
- type: {
1037
- name: "String"
1038
- }
1039
- },
1040
- value: {
1041
- serializedName: "",
1042
- type: {
1043
- name: "Sequence",
1044
- element: {
1045
- type: {
1046
- name: "Composite",
1047
- className: "CustomerSubscription"
1048
- }
1049
- }
1050
- }
1051
- }
1052
- }
1053
- }
1054
- };
1055
-
1056
- var mappers = /*#__PURE__*/Object.freeze({
1057
- __proto__: null,
1058
- CloudError: CloudError,
1059
- BaseResource: BaseResource,
1060
- Resource: Resource,
1061
- TrackedResource: TrackedResource,
1062
- Display: Display,
1063
- Operation: Operation,
1064
- ErrorDetails: ErrorDetails,
1065
- ErrorResponse: ErrorResponse,
1066
- OsDiskImage: OsDiskImage,
1067
- DataDiskImage: DataDiskImage,
1068
- ExtendedProduct: ExtendedProduct,
1069
- VirtualMachineExtensionProductProperties: VirtualMachineExtensionProductProperties,
1070
- VirtualMachineProductProperties: VirtualMachineProductProperties,
1071
- IconUris: IconUris,
1072
- ProductLink: ProductLink,
1073
- ProductProperties: ProductProperties,
1074
- Compatibility: Compatibility,
1075
- Product: Product,
1076
- DeviceConfiguration: DeviceConfiguration,
1077
- MarketplaceProductLogUpdate: MarketplaceProductLogUpdate,
1078
- ProductLog: ProductLog,
1079
- Registration: Registration,
1080
- ActivationKeyResult: ActivationKeyResult,
1081
- RegistrationParameter: RegistrationParameter,
1082
- CustomerSubscription: CustomerSubscription,
1083
- OperationList: OperationList,
1084
- ProductList: ProductList,
1085
- RegistrationList: RegistrationList,
1086
- CustomerSubscriptionList: CustomerSubscriptionList
1087
- });
1088
-
1089
- /*
1090
- * Copyright (c) Microsoft Corporation. All rights reserved.
1091
- * Licensed under the MIT License. See License.txt in the project root for license information.
1092
- *
1093
- * Code generated by Microsoft (R) AutoRest Code Generator.
1094
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1095
- */
1096
-
1097
- var Mappers = /*#__PURE__*/Object.freeze({
1098
- __proto__: null,
1099
- CloudError: CloudError,
1100
- Display: Display,
1101
- Operation: Operation,
1102
- OperationList: OperationList
1103
- });
1104
-
1105
- /*
1106
- * Copyright (c) Microsoft Corporation. All rights reserved.
1107
- * Licensed under the MIT License. See License.txt in the project root for
1108
- * license information.
1109
- *
1110
- * Code generated by Microsoft (R) AutoRest Code Generator.
1111
- * Changes may cause incorrect behavior and will be lost if the code is
1112
- * regenerated.
1113
- */
1114
- var acceptLanguage = {
1115
- parameterPath: "acceptLanguage",
1116
- mapper: {
1117
- serializedName: "accept-language",
1118
- defaultValue: 'en-US',
1119
- type: {
1120
- name: "String"
1121
- }
1122
- }
1123
- };
1124
- var apiVersion = {
1125
- parameterPath: "apiVersion",
1126
- mapper: {
1127
- required: true,
1128
- serializedName: "api-version",
1129
- defaultValue: '2017-06-01',
1130
- type: {
1131
- name: "String"
1132
- }
1133
- }
1134
- };
1135
- var customerSubscriptionName = {
1136
- parameterPath: "customerSubscriptionName",
1137
- mapper: {
1138
- required: true,
1139
- serializedName: "customerSubscriptionName",
1140
- type: {
1141
- name: "String"
1142
- }
1143
- }
1144
- };
1145
- var nextPageLink = {
1146
- parameterPath: "nextPageLink",
1147
- mapper: {
1148
- required: true,
1149
- serializedName: "nextLink",
1150
- type: {
1151
- name: "String"
1152
- }
1153
- },
1154
- skipEncoding: true
1155
- };
1156
- var productName = {
1157
- parameterPath: "productName",
1158
- mapper: {
1159
- required: true,
1160
- serializedName: "productName",
1161
- type: {
1162
- name: "String"
1163
- }
1164
- }
1165
- };
1166
- var registrationName = {
1167
- parameterPath: "registrationName",
1168
- mapper: {
1169
- required: true,
1170
- serializedName: "registrationName",
1171
- type: {
1172
- name: "String"
1173
- }
1174
- }
1175
- };
1176
- var resourceGroup = {
1177
- parameterPath: "resourceGroup",
1178
- mapper: {
1179
- required: true,
1180
- serializedName: "resourceGroup",
1181
- type: {
1182
- name: "String"
1183
- }
1184
- }
1185
- };
1186
- var subscriptionId = {
1187
- parameterPath: "subscriptionId",
1188
- mapper: {
1189
- required: true,
1190
- serializedName: "subscriptionId",
1191
- type: {
1192
- name: "String"
1193
- }
1194
- }
1195
- };
1196
-
1197
- /*
1198
- * Copyright (c) Microsoft Corporation. All rights reserved.
1199
- * Licensed under the MIT License. See License.txt in the project root for
1200
- * license information.
1201
- *
1202
- * Code generated by Microsoft (R) AutoRest Code Generator.
1203
- * Changes may cause incorrect behavior and will be lost if the code is
1204
- * regenerated.
1205
- */
1206
- /** Class representing a Operations. */
1207
- var Operations = /** @class */ (function () {
1208
- /**
1209
- * Create a Operations.
1210
- * @param {AzureStackManagementClientContext} client Reference to the service client.
1211
- */
1212
- function Operations(client) {
1213
- this.client = client;
1214
- }
1215
- Operations.prototype.list = function (options, callback) {
1216
- return this.client.sendOperationRequest({
1217
- options: options
1218
- }, listOperationSpec, callback);
1219
- };
1220
- Operations.prototype.listNext = function (nextPageLink, options, callback) {
1221
- return this.client.sendOperationRequest({
1222
- nextPageLink: nextPageLink,
1223
- options: options
1224
- }, listNextOperationSpec, callback);
1225
- };
1226
- return Operations;
1227
- }());
1228
- // Operation Specifications
1229
- var serializer = new msRest.Serializer(Mappers);
1230
- var listOperationSpec = {
1231
- httpMethod: "GET",
1232
- path: "providers/Microsoft.AzureStack/operations",
1233
- queryParameters: [
1234
- apiVersion
1235
- ],
1236
- headerParameters: [
1237
- acceptLanguage
1238
- ],
1239
- responses: {
1240
- 200: {
1241
- bodyMapper: OperationList
1242
- },
1243
- default: {
1244
- bodyMapper: CloudError
1245
- }
1246
- },
1247
- serializer: serializer
1248
- };
1249
- var listNextOperationSpec = {
1250
- httpMethod: "GET",
1251
- baseUrl: "https://management.azure.com",
1252
- path: "{nextLink}",
1253
- urlParameters: [
1254
- nextPageLink
1255
- ],
1256
- headerParameters: [
1257
- acceptLanguage
1258
- ],
1259
- responses: {
1260
- 200: {
1261
- bodyMapper: OperationList
1262
- },
1263
- default: {
1264
- bodyMapper: CloudError
1265
- }
1266
- },
1267
- serializer: serializer
1268
- };
1269
-
1270
- /*
1271
- * Copyright (c) Microsoft Corporation. All rights reserved.
1272
- * Licensed under the MIT License. See License.txt in the project root for license information.
1273
- *
1274
- * Code generated by Microsoft (R) AutoRest Code Generator.
1275
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1276
- */
1277
-
1278
- var Mappers$1 = /*#__PURE__*/Object.freeze({
1279
- __proto__: null,
1280
- BaseResource: BaseResource,
1281
- CloudError: CloudError,
1282
- Compatibility: Compatibility,
1283
- CustomerSubscription: CustomerSubscription,
1284
- DataDiskImage: DataDiskImage,
1285
- DeviceConfiguration: DeviceConfiguration,
1286
- ErrorDetails: ErrorDetails,
1287
- ErrorResponse: ErrorResponse,
1288
- ExtendedProduct: ExtendedProduct,
1289
- IconUris: IconUris,
1290
- MarketplaceProductLogUpdate: MarketplaceProductLogUpdate,
1291
- OsDiskImage: OsDiskImage,
1292
- Product: Product,
1293
- ProductLink: ProductLink,
1294
- ProductList: ProductList,
1295
- ProductLog: ProductLog,
1296
- ProductProperties: ProductProperties,
1297
- Registration: Registration,
1298
- Resource: Resource,
1299
- TrackedResource: TrackedResource
1300
- });
1301
-
1302
- /*
1303
- * Copyright (c) Microsoft Corporation. All rights reserved.
1304
- * Licensed under the MIT License. See License.txt in the project root for
1305
- * license information.
1306
- *
1307
- * Code generated by Microsoft (R) AutoRest Code Generator.
1308
- * Changes may cause incorrect behavior and will be lost if the code is
1309
- * regenerated.
1310
- */
1311
- /** Class representing a Products. */
1312
- var Products = /** @class */ (function () {
1313
- /**
1314
- * Create a Products.
1315
- * @param {AzureStackManagementClientContext} client Reference to the service client.
1316
- */
1317
- function Products(client) {
1318
- this.client = client;
1319
- }
1320
- Products.prototype.list = function (resourceGroup, registrationName, options, callback) {
1321
- return this.client.sendOperationRequest({
1322
- resourceGroup: resourceGroup,
1323
- registrationName: registrationName,
1324
- options: options
1325
- }, listOperationSpec$1, callback);
1326
- };
1327
- Products.prototype.get = function (resourceGroup, registrationName, productName, options, callback) {
1328
- return this.client.sendOperationRequest({
1329
- resourceGroup: resourceGroup,
1330
- registrationName: registrationName,
1331
- productName: productName,
1332
- options: options
1333
- }, getOperationSpec, callback);
1334
- };
1335
- Products.prototype.listDetails = function (resourceGroup, registrationName, productName, options, callback) {
1336
- return this.client.sendOperationRequest({
1337
- resourceGroup: resourceGroup,
1338
- registrationName: registrationName,
1339
- productName: productName,
1340
- options: options
1341
- }, listDetailsOperationSpec, callback);
1342
- };
1343
- Products.prototype.getProducts = function (resourceGroup, registrationName, options, callback) {
1344
- return this.client.sendOperationRequest({
1345
- resourceGroup: resourceGroup,
1346
- registrationName: registrationName,
1347
- options: options
1348
- }, getProductsOperationSpec, callback);
1349
- };
1350
- Products.prototype.getProduct = function (resourceGroup, registrationName, productName, options, callback) {
1351
- return this.client.sendOperationRequest({
1352
- resourceGroup: resourceGroup,
1353
- registrationName: registrationName,
1354
- productName: productName,
1355
- options: options
1356
- }, getProductOperationSpec, callback);
1357
- };
1358
- Products.prototype.uploadLog = function (resourceGroup, registrationName, productName, options, callback) {
1359
- return this.client.sendOperationRequest({
1360
- resourceGroup: resourceGroup,
1361
- registrationName: registrationName,
1362
- productName: productName,
1363
- options: options
1364
- }, uploadLogOperationSpec, callback);
1365
- };
1366
- Products.prototype.listNext = function (nextPageLink, options, callback) {
1367
- return this.client.sendOperationRequest({
1368
- nextPageLink: nextPageLink,
1369
- options: options
1370
- }, listNextOperationSpec$1, callback);
1371
- };
1372
- return Products;
1373
- }());
1374
- // Operation Specifications
1375
- var serializer$1 = new msRest.Serializer(Mappers$1);
1376
- var listOperationSpec$1 = {
1377
- httpMethod: "GET",
1378
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products",
1379
- urlParameters: [
1380
- subscriptionId,
1381
- resourceGroup,
1382
- registrationName
1383
- ],
1384
- queryParameters: [
1385
- apiVersion
1386
- ],
1387
- headerParameters: [
1388
- acceptLanguage
1389
- ],
1390
- responses: {
1391
- 200: {
1392
- bodyMapper: ProductList
1393
- },
1394
- default: {
1395
- bodyMapper: ErrorResponse
1396
- }
1397
- },
1398
- serializer: serializer$1
1399
- };
1400
- var getOperationSpec = {
1401
- httpMethod: "GET",
1402
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}",
1403
- urlParameters: [
1404
- subscriptionId,
1405
- resourceGroup,
1406
- registrationName,
1407
- productName
1408
- ],
1409
- queryParameters: [
1410
- apiVersion
1411
- ],
1412
- headerParameters: [
1413
- acceptLanguage
1414
- ],
1415
- responses: {
1416
- 200: {
1417
- bodyMapper: Product
1418
- },
1419
- default: {
1420
- bodyMapper: ErrorResponse
1421
- }
1422
- },
1423
- serializer: serializer$1
1424
- };
1425
- var listDetailsOperationSpec = {
1426
- httpMethod: "POST",
1427
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/listDetails",
1428
- urlParameters: [
1429
- subscriptionId,
1430
- resourceGroup,
1431
- registrationName,
1432
- productName
1433
- ],
1434
- queryParameters: [
1435
- apiVersion
1436
- ],
1437
- headerParameters: [
1438
- acceptLanguage
1439
- ],
1440
- responses: {
1441
- 200: {
1442
- bodyMapper: ExtendedProduct
1443
- },
1444
- default: {
1445
- bodyMapper: CloudError
1446
- }
1447
- },
1448
- serializer: serializer$1
1449
- };
1450
- var getProductsOperationSpec = {
1451
- httpMethod: "POST",
1452
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/_all/GetProducts",
1453
- urlParameters: [
1454
- subscriptionId,
1455
- resourceGroup,
1456
- registrationName
1457
- ],
1458
- queryParameters: [
1459
- apiVersion
1460
- ],
1461
- headerParameters: [
1462
- acceptLanguage
1463
- ],
1464
- requestBody: {
1465
- parameterPath: [
1466
- "options",
1467
- "deviceConfiguration"
1468
- ],
1469
- mapper: DeviceConfiguration
1470
- },
1471
- responses: {
1472
- 200: {
1473
- bodyMapper: ProductList
1474
- },
1475
- default: {
1476
- bodyMapper: ErrorResponse
1477
- }
1478
- },
1479
- serializer: serializer$1
1480
- };
1481
- var getProductOperationSpec = {
1482
- httpMethod: "POST",
1483
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/GetProduct",
1484
- urlParameters: [
1485
- subscriptionId,
1486
- resourceGroup,
1487
- registrationName,
1488
- productName
1489
- ],
1490
- queryParameters: [
1491
- apiVersion
1492
- ],
1493
- headerParameters: [
1494
- acceptLanguage
1495
- ],
1496
- requestBody: {
1497
- parameterPath: [
1498
- "options",
1499
- "deviceConfiguration"
1500
- ],
1501
- mapper: DeviceConfiguration
1502
- },
1503
- responses: {
1504
- 200: {
1505
- bodyMapper: Product
1506
- },
1507
- default: {
1508
- bodyMapper: ErrorResponse
1509
- }
1510
- },
1511
- serializer: serializer$1
1512
- };
1513
- var uploadLogOperationSpec = {
1514
- httpMethod: "POST",
1515
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/uploadProductLog",
1516
- urlParameters: [
1517
- subscriptionId,
1518
- resourceGroup,
1519
- registrationName,
1520
- productName
1521
- ],
1522
- queryParameters: [
1523
- apiVersion
1524
- ],
1525
- headerParameters: [
1526
- acceptLanguage
1527
- ],
1528
- requestBody: {
1529
- parameterPath: [
1530
- "options",
1531
- "marketplaceProductLogUpdate"
1532
- ],
1533
- mapper: MarketplaceProductLogUpdate
1534
- },
1535
- responses: {
1536
- 200: {
1537
- bodyMapper: ProductLog
1538
- },
1539
- default: {
1540
- bodyMapper: ErrorResponse
1541
- }
1542
- },
1543
- serializer: serializer$1
1544
- };
1545
- var listNextOperationSpec$1 = {
1546
- httpMethod: "GET",
1547
- baseUrl: "https://management.azure.com",
1548
- path: "{nextLink}",
1549
- urlParameters: [
1550
- nextPageLink
1551
- ],
1552
- headerParameters: [
1553
- acceptLanguage
1554
- ],
1555
- responses: {
1556
- 200: {
1557
- bodyMapper: ProductList
1558
- },
1559
- default: {
1560
- bodyMapper: ErrorResponse
1561
- }
1562
- },
1563
- serializer: serializer$1
1564
- };
1565
-
1566
- /*
1567
- * Copyright (c) Microsoft Corporation. All rights reserved.
1568
- * Licensed under the MIT License. See License.txt in the project root for license information.
1569
- *
1570
- * Code generated by Microsoft (R) AutoRest Code Generator.
1571
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1572
- */
1573
-
1574
- var Mappers$2 = /*#__PURE__*/Object.freeze({
1575
- __proto__: null,
1576
- ActivationKeyResult: ActivationKeyResult,
1577
- BaseResource: BaseResource,
1578
- CloudError: CloudError,
1579
- Compatibility: Compatibility,
1580
- CustomerSubscription: CustomerSubscription,
1581
- ErrorDetails: ErrorDetails,
1582
- ErrorResponse: ErrorResponse,
1583
- IconUris: IconUris,
1584
- Product: Product,
1585
- ProductLink: ProductLink,
1586
- ProductProperties: ProductProperties,
1587
- Registration: Registration,
1588
- RegistrationList: RegistrationList,
1589
- RegistrationParameter: RegistrationParameter,
1590
- Resource: Resource,
1591
- TrackedResource: TrackedResource
1592
- });
1593
-
1594
- /*
1595
- * Copyright (c) Microsoft Corporation. All rights reserved.
1596
- * Licensed under the MIT License. See License.txt in the project root for
1597
- * license information.
1598
- *
1599
- * Code generated by Microsoft (R) AutoRest Code Generator.
1600
- * Changes may cause incorrect behavior and will be lost if the code is
1601
- * regenerated.
1602
- */
1603
- /** Class representing a Registrations. */
1604
- var Registrations = /** @class */ (function () {
1605
- /**
1606
- * Create a Registrations.
1607
- * @param {AzureStackManagementClientContext} client Reference to the service client.
1608
- */
1609
- function Registrations(client) {
1610
- this.client = client;
1611
- }
1612
- Registrations.prototype.list = function (resourceGroup, options, callback) {
1613
- return this.client.sendOperationRequest({
1614
- resourceGroup: resourceGroup,
1615
- options: options
1616
- }, listOperationSpec$2, callback);
1617
- };
1618
- Registrations.prototype.get = function (resourceGroup, registrationName, options, callback) {
1619
- return this.client.sendOperationRequest({
1620
- resourceGroup: resourceGroup,
1621
- registrationName: registrationName,
1622
- options: options
1623
- }, getOperationSpec$1, callback);
1624
- };
1625
- Registrations.prototype.deleteMethod = function (resourceGroup, registrationName, options, callback) {
1626
- return this.client.sendOperationRequest({
1627
- resourceGroup: resourceGroup,
1628
- registrationName: registrationName,
1629
- options: options
1630
- }, deleteMethodOperationSpec, callback);
1631
- };
1632
- Registrations.prototype.createOrUpdate = function (resourceGroup, registrationName, token, options, callback) {
1633
- return this.client.sendOperationRequest({
1634
- resourceGroup: resourceGroup,
1635
- registrationName: registrationName,
1636
- token: token,
1637
- options: options
1638
- }, createOrUpdateOperationSpec, callback);
1639
- };
1640
- Registrations.prototype.update = function (resourceGroup, registrationName, token, options, callback) {
1641
- return this.client.sendOperationRequest({
1642
- resourceGroup: resourceGroup,
1643
- registrationName: registrationName,
1644
- token: token,
1645
- options: options
1646
- }, updateOperationSpec, callback);
1647
- };
1648
- Registrations.prototype.getActivationKey = function (resourceGroup, registrationName, options, callback) {
1649
- return this.client.sendOperationRequest({
1650
- resourceGroup: resourceGroup,
1651
- registrationName: registrationName,
1652
- options: options
1653
- }, getActivationKeyOperationSpec, callback);
1654
- };
1655
- Registrations.prototype.listNext = function (nextPageLink, options, callback) {
1656
- return this.client.sendOperationRequest({
1657
- nextPageLink: nextPageLink,
1658
- options: options
1659
- }, listNextOperationSpec$2, callback);
1660
- };
1661
- return Registrations;
1662
- }());
1663
- // Operation Specifications
1664
- var serializer$2 = new msRest.Serializer(Mappers$2);
1665
- var listOperationSpec$2 = {
1666
- httpMethod: "GET",
1667
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations",
1668
- urlParameters: [
1669
- subscriptionId,
1670
- resourceGroup
1671
- ],
1672
- queryParameters: [
1673
- apiVersion
1674
- ],
1675
- headerParameters: [
1676
- acceptLanguage
1677
- ],
1678
- responses: {
1679
- 200: {
1680
- bodyMapper: RegistrationList
1681
- },
1682
- default: {
1683
- bodyMapper: ErrorResponse
1684
- }
1685
- },
1686
- serializer: serializer$2
1687
- };
1688
- var getOperationSpec$1 = {
1689
- httpMethod: "GET",
1690
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}",
1691
- urlParameters: [
1692
- subscriptionId,
1693
- resourceGroup,
1694
- registrationName
1695
- ],
1696
- queryParameters: [
1697
- apiVersion
1698
- ],
1699
- headerParameters: [
1700
- acceptLanguage
1701
- ],
1702
- responses: {
1703
- 200: {
1704
- bodyMapper: Registration
1705
- },
1706
- default: {
1707
- bodyMapper: ErrorResponse
1708
- }
1709
- },
1710
- serializer: serializer$2
1711
- };
1712
- var deleteMethodOperationSpec = {
1713
- httpMethod: "DELETE",
1714
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}",
1715
- urlParameters: [
1716
- subscriptionId,
1717
- resourceGroup,
1718
- registrationName
1719
- ],
1720
- queryParameters: [
1721
- apiVersion
1722
- ],
1723
- headerParameters: [
1724
- acceptLanguage
1725
- ],
1726
- responses: {
1727
- 200: {},
1728
- 204: {},
1729
- default: {
1730
- bodyMapper: ErrorResponse
1731
- }
1732
- },
1733
- serializer: serializer$2
1734
- };
1735
- var createOrUpdateOperationSpec = {
1736
- httpMethod: "PUT",
1737
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}",
1738
- urlParameters: [
1739
- subscriptionId,
1740
- resourceGroup,
1741
- registrationName
1742
- ],
1743
- queryParameters: [
1744
- apiVersion
1745
- ],
1746
- headerParameters: [
1747
- acceptLanguage
1748
- ],
1749
- requestBody: {
1750
- parameterPath: "token",
1751
- mapper: __assign(__assign({}, RegistrationParameter), { required: true })
1752
- },
1753
- responses: {
1754
- 200: {
1755
- bodyMapper: Registration
1756
- },
1757
- 201: {
1758
- bodyMapper: Registration
1759
- },
1760
- default: {
1761
- bodyMapper: CloudError
1762
- }
1763
- },
1764
- serializer: serializer$2
1765
- };
1766
- var updateOperationSpec = {
1767
- httpMethod: "PATCH",
1768
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}",
1769
- urlParameters: [
1770
- subscriptionId,
1771
- resourceGroup,
1772
- registrationName
1773
- ],
1774
- queryParameters: [
1775
- apiVersion
1776
- ],
1777
- headerParameters: [
1778
- acceptLanguage
1779
- ],
1780
- requestBody: {
1781
- parameterPath: "token",
1782
- mapper: __assign(__assign({}, RegistrationParameter), { required: true })
1783
- },
1784
- responses: {
1785
- 200: {
1786
- bodyMapper: Registration
1787
- },
1788
- default: {
1789
- bodyMapper: ErrorResponse
1790
- }
1791
- },
1792
- serializer: serializer$2
1793
- };
1794
- var getActivationKeyOperationSpec = {
1795
- httpMethod: "POST",
1796
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/getactivationkey",
1797
- urlParameters: [
1798
- subscriptionId,
1799
- resourceGroup,
1800
- registrationName
1801
- ],
1802
- queryParameters: [
1803
- apiVersion
1804
- ],
1805
- headerParameters: [
1806
- acceptLanguage
1807
- ],
1808
- responses: {
1809
- 200: {
1810
- bodyMapper: ActivationKeyResult
1811
- },
1812
- default: {
1813
- bodyMapper: CloudError
1814
- }
1815
- },
1816
- serializer: serializer$2
1817
- };
1818
- var listNextOperationSpec$2 = {
1819
- httpMethod: "GET",
1820
- baseUrl: "https://management.azure.com",
1821
- path: "{nextLink}",
1822
- urlParameters: [
1823
- nextPageLink
1824
- ],
1825
- headerParameters: [
1826
- acceptLanguage
1827
- ],
1828
- responses: {
1829
- 200: {
1830
- bodyMapper: RegistrationList
1831
- },
1832
- default: {
1833
- bodyMapper: ErrorResponse
1834
- }
1835
- },
1836
- serializer: serializer$2
1837
- };
1838
-
1839
- /*
1840
- * Copyright (c) Microsoft Corporation. All rights reserved.
1841
- * Licensed under the MIT License. See License.txt in the project root for license information.
1842
- *
1843
- * Code generated by Microsoft (R) AutoRest Code Generator.
1844
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1845
- */
1846
-
1847
- var Mappers$3 = /*#__PURE__*/Object.freeze({
1848
- __proto__: null,
1849
- BaseResource: BaseResource,
1850
- CloudError: CloudError,
1851
- Compatibility: Compatibility,
1852
- CustomerSubscription: CustomerSubscription,
1853
- CustomerSubscriptionList: CustomerSubscriptionList,
1854
- ErrorDetails: ErrorDetails,
1855
- ErrorResponse: ErrorResponse,
1856
- IconUris: IconUris,
1857
- Product: Product,
1858
- ProductLink: ProductLink,
1859
- ProductProperties: ProductProperties,
1860
- Registration: Registration,
1861
- Resource: Resource,
1862
- TrackedResource: TrackedResource
1863
- });
1864
-
1865
- /*
1866
- * Copyright (c) Microsoft Corporation. All rights reserved.
1867
- * Licensed under the MIT License. See License.txt in the project root for
1868
- * license information.
1869
- *
1870
- * Code generated by Microsoft (R) AutoRest Code Generator.
1871
- * Changes may cause incorrect behavior and will be lost if the code is
1872
- * regenerated.
1873
- */
1874
- /** Class representing a CustomerSubscriptions. */
1875
- var CustomerSubscriptions = /** @class */ (function () {
1876
- /**
1877
- * Create a CustomerSubscriptions.
1878
- * @param {AzureStackManagementClientContext} client Reference to the service client.
1879
- */
1880
- function CustomerSubscriptions(client) {
1881
- this.client = client;
1882
- }
1883
- CustomerSubscriptions.prototype.list = function (resourceGroup, registrationName, options, callback) {
1884
- return this.client.sendOperationRequest({
1885
- resourceGroup: resourceGroup,
1886
- registrationName: registrationName,
1887
- options: options
1888
- }, listOperationSpec$3, callback);
1889
- };
1890
- CustomerSubscriptions.prototype.get = function (resourceGroup, registrationName, customerSubscriptionName, options, callback) {
1891
- return this.client.sendOperationRequest({
1892
- resourceGroup: resourceGroup,
1893
- registrationName: registrationName,
1894
- customerSubscriptionName: customerSubscriptionName,
1895
- options: options
1896
- }, getOperationSpec$2, callback);
1897
- };
1898
- CustomerSubscriptions.prototype.deleteMethod = function (resourceGroup, registrationName, customerSubscriptionName, options, callback) {
1899
- return this.client.sendOperationRequest({
1900
- resourceGroup: resourceGroup,
1901
- registrationName: registrationName,
1902
- customerSubscriptionName: customerSubscriptionName,
1903
- options: options
1904
- }, deleteMethodOperationSpec$1, callback);
1905
- };
1906
- CustomerSubscriptions.prototype.create = function (resourceGroup, registrationName, customerSubscriptionName, customerCreationParameters, options, callback) {
1907
- return this.client.sendOperationRequest({
1908
- resourceGroup: resourceGroup,
1909
- registrationName: registrationName,
1910
- customerSubscriptionName: customerSubscriptionName,
1911
- customerCreationParameters: customerCreationParameters,
1912
- options: options
1913
- }, createOperationSpec, callback);
1914
- };
1915
- CustomerSubscriptions.prototype.listNext = function (nextPageLink, options, callback) {
1916
- return this.client.sendOperationRequest({
1917
- nextPageLink: nextPageLink,
1918
- options: options
1919
- }, listNextOperationSpec$3, callback);
1920
- };
1921
- return CustomerSubscriptions;
1922
- }());
1923
- // Operation Specifications
1924
- var serializer$3 = new msRest.Serializer(Mappers$3);
1925
- var listOperationSpec$3 = {
1926
- httpMethod: "GET",
1927
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions",
1928
- urlParameters: [
1929
- subscriptionId,
1930
- resourceGroup,
1931
- registrationName
1932
- ],
1933
- queryParameters: [
1934
- apiVersion
1935
- ],
1936
- headerParameters: [
1937
- acceptLanguage
1938
- ],
1939
- responses: {
1940
- 200: {
1941
- bodyMapper: CustomerSubscriptionList
1942
- },
1943
- default: {
1944
- bodyMapper: ErrorResponse
1945
- }
1946
- },
1947
- serializer: serializer$3
1948
- };
1949
- var getOperationSpec$2 = {
1950
- httpMethod: "GET",
1951
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions/{customerSubscriptionName}",
1952
- urlParameters: [
1953
- subscriptionId,
1954
- resourceGroup,
1955
- registrationName,
1956
- customerSubscriptionName
1957
- ],
1958
- queryParameters: [
1959
- apiVersion
1960
- ],
1961
- headerParameters: [
1962
- acceptLanguage
1963
- ],
1964
- responses: {
1965
- 200: {
1966
- bodyMapper: CustomerSubscription
1967
- },
1968
- default: {
1969
- bodyMapper: ErrorResponse
1970
- }
1971
- },
1972
- serializer: serializer$3
1973
- };
1974
- var deleteMethodOperationSpec$1 = {
1975
- httpMethod: "DELETE",
1976
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions/{customerSubscriptionName}",
1977
- urlParameters: [
1978
- subscriptionId,
1979
- resourceGroup,
1980
- registrationName,
1981
- customerSubscriptionName
1982
- ],
1983
- queryParameters: [
1984
- apiVersion
1985
- ],
1986
- headerParameters: [
1987
- acceptLanguage
1988
- ],
1989
- responses: {
1990
- 200: {},
1991
- 204: {},
1992
- default: {
1993
- bodyMapper: CloudError
1994
- }
1995
- },
1996
- serializer: serializer$3
1997
- };
1998
- var createOperationSpec = {
1999
- httpMethod: "PUT",
2000
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions/{customerSubscriptionName}",
2001
- urlParameters: [
2002
- subscriptionId,
2003
- resourceGroup,
2004
- registrationName,
2005
- customerSubscriptionName
2006
- ],
2007
- queryParameters: [
2008
- apiVersion
2009
- ],
2010
- headerParameters: [
2011
- acceptLanguage
2012
- ],
2013
- requestBody: {
2014
- parameterPath: "customerCreationParameters",
2015
- mapper: __assign(__assign({}, CustomerSubscription), { required: true })
2016
- },
2017
- responses: {
2018
- 200: {
2019
- bodyMapper: CustomerSubscription
2020
- },
2021
- default: {
2022
- bodyMapper: CloudError
2023
- }
2024
- },
2025
- serializer: serializer$3
2026
- };
2027
- var listNextOperationSpec$3 = {
2028
- httpMethod: "GET",
2029
- baseUrl: "https://management.azure.com",
2030
- path: "{nextLink}",
2031
- urlParameters: [
2032
- nextPageLink
2033
- ],
2034
- headerParameters: [
2035
- acceptLanguage
2036
- ],
2037
- responses: {
2038
- 200: {
2039
- bodyMapper: CustomerSubscriptionList
2040
- },
2041
- default: {
2042
- bodyMapper: ErrorResponse
2043
- }
2044
- },
2045
- serializer: serializer$3
2046
- };
2047
-
2048
- /*
2049
- * Copyright (c) Microsoft Corporation. All rights reserved.
2050
- * Licensed under the MIT License. See License.txt in the project root for
2051
- * license information.
2052
- *
2053
- * Code generated by Microsoft (R) AutoRest Code Generator.
2054
- * Changes may cause incorrect behavior and will be lost if the code is
2055
- * regenerated.
2056
- */
2057
- var packageName = "@azure/arm-azurestack";
2058
- var packageVersion = "2.1.1";
2059
- var AzureStackManagementClientContext = /** @class */ (function (_super) {
2060
- __extends(AzureStackManagementClientContext, _super);
2061
- /**
2062
- * Initializes a new instance of the AzureStackManagementClient class.
2063
- * @param credentials Credentials needed for the client to connect to Azure. Credentials
2064
- * implementing the TokenCredential interface from the @azure/identity package are recommended. For
2065
- * more information about these credentials, see
2066
- * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
2067
- * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
2068
- * @azure/ms-rest-browserauth are also supported.
2069
- * @param subscriptionId Subscription credentials that uniquely identify Microsoft Azure
2070
- * subscription. The subscription ID forms part of the URI for every service call.
2071
- * @param [options] The parameter options
2072
- */
2073
- function AzureStackManagementClientContext(credentials, subscriptionId, options) {
2074
- var _this = this;
2075
- if (credentials == undefined) {
2076
- throw new Error('\'credentials\' cannot be null.');
2077
- }
2078
- if (subscriptionId == undefined) {
2079
- throw new Error('\'subscriptionId\' cannot be null.');
2080
- }
2081
- if (!options) {
2082
- options = {};
2083
- }
2084
- if (!options.userAgent) {
2085
- var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
2086
- options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
2087
- }
2088
- _this = _super.call(this, credentials, options) || this;
2089
- _this.apiVersion = '2017-06-01';
2090
- _this.acceptLanguage = 'en-US';
2091
- _this.longRunningOperationRetryTimeout = 30;
2092
- _this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
2093
- _this.requestContentType = "application/json; charset=utf-8";
2094
- _this.credentials = credentials;
2095
- _this.subscriptionId = subscriptionId;
2096
- if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
2097
- _this.acceptLanguage = options.acceptLanguage;
2098
- }
2099
- if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
2100
- _this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
2101
- }
2102
- return _this;
2103
- }
2104
- return AzureStackManagementClientContext;
2105
- }(msRestAzure.AzureServiceClient));
2106
-
2107
- /*
2108
- * Copyright (c) Microsoft Corporation. All rights reserved.
2109
- * Licensed under the MIT License. See License.txt in the project root for
2110
- * license information.
2111
- *
2112
- * Code generated by Microsoft (R) AutoRest Code Generator.
2113
- * Changes may cause incorrect behavior and will be lost if the code is
2114
- * regenerated.
2115
- */
2116
- var AzureStackManagementClient = /** @class */ (function (_super) {
2117
- __extends(AzureStackManagementClient, _super);
2118
- /**
2119
- * Initializes a new instance of the AzureStackManagementClient class.
2120
- * @param credentials Credentials needed for the client to connect to Azure. Credentials
2121
- * implementing the TokenCredential interface from the @azure/identity package are recommended. For
2122
- * more information about these credentials, see
2123
- * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
2124
- * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
2125
- * @azure/ms-rest-browserauth are also supported.
2126
- * @param subscriptionId Subscription credentials that uniquely identify Microsoft Azure
2127
- * subscription. The subscription ID forms part of the URI for every service call.
2128
- * @param [options] The parameter options
2129
- */
2130
- function AzureStackManagementClient(credentials, subscriptionId, options) {
2131
- var _this = _super.call(this, credentials, subscriptionId, options) || this;
2132
- _this.operations = new Operations(_this);
2133
- _this.products = new Products(_this);
2134
- _this.registrations = new Registrations(_this);
2135
- _this.customerSubscriptions = new CustomerSubscriptions(_this);
2136
- return _this;
2137
- }
2138
- return AzureStackManagementClient;
2139
- }(AzureStackManagementClientContext));
2140
-
2141
- exports.AzureStackManagementClient = AzureStackManagementClient;
2142
- exports.AzureStackManagementClientContext = AzureStackManagementClientContext;
2143
- exports.AzureStackManagementMappers = mappers;
2144
- exports.AzureStackManagementModels = index;
2145
- exports.CustomerSubscriptions = CustomerSubscriptions;
2146
- exports.Operations = Operations;
2147
- exports.Products = Products;
2148
- exports.Registrations = Registrations;
2149
-
2150
- Object.defineProperty(exports, '__esModule', { value: true });
2151
-
2152
- })));
2153
- //# sourceMappingURL=arm-azurestack.js.map