@azure/arm-azurestack 1.1.0 → 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 (181) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +75 -73
  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 +779 -377
  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 +68 -34
  89. package/review/arm-azurestack.api.md +695 -0
  90. package/rollup.config.js +184 -27
  91. package/src/azureStackManagementClient.ts +100 -0
  92. package/src/index.ts +12 -0
  93. package/src/models/index.ts +981 -0
  94. package/{lib → src}/models/mappers.ts +809 -377
  95. package/src/models/parameters.ts +192 -0
  96. package/src/operations/cloudManifestFile.ts +93 -0
  97. package/src/operations/customerSubscriptions.ts +317 -0
  98. package/{lib → src}/operations/index.ts +6 -6
  99. package/src/operations/linkedSubscriptions.ts +450 -0
  100. package/src/operations/operations.ts +137 -0
  101. package/src/operations/products.ts +403 -0
  102. package/src/operations/registrations.ts +521 -0
  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 +4 -4
  111. package/types/arm-azurestack.d.ts +1206 -0
  112. package/types/tsdoc-metadata.json +11 -0
  113. package/dist/arm-azurestack.js +0 -1844
  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 -22
  118. package/esm/azureStackManagementClient.d.ts.map +0 -1
  119. package/esm/azureStackManagementClient.js +0 -37
  120. package/esm/azureStackManagementClient.js.map +0 -1
  121. package/esm/azureStackManagementClientContext.d.ts +0 -17
  122. package/esm/azureStackManagementClientContext.d.ts.map +0 -1
  123. package/esm/azureStackManagementClientContext.js +0 -57
  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 -11
  128. package/esm/models/customerSubscriptionsMappers.js.map +0 -1
  129. package/esm/models/index.d.ts +0 -957
  130. package/esm/models/index.d.ts.map +0 -1
  131. package/esm/models/index.js +0 -10
  132. package/esm/models/index.js.map +0 -1
  133. package/esm/models/mappers.d.ts +0 -27
  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 -11
  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 -11
  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 -11
  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 -100
  163. package/esm/operations/products.d.ts.map +0 -1
  164. package/esm/operations/products.js +0 -150
  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/lib/azureStackManagementClient.ts +0 -49
  171. package/lib/azureStackManagementClientContext.ts +0 -63
  172. package/lib/models/customerSubscriptionsMappers.ts +0 -26
  173. package/lib/models/index.ts +0 -1011
  174. package/lib/models/operationsMappers.ts +0 -17
  175. package/lib/models/parameters.ts +0 -94
  176. package/lib/models/productsMappers.ts +0 -29
  177. package/lib/models/registrationsMappers.ts +0 -28
  178. package/lib/operations/customerSubscriptions.ts +0 -332
  179. package/lib/operations/operations.ts +0 -123
  180. package/lib/operations/products.ts +0 -260
  181. package/lib/operations/registrations.ts +0 -440
package/dist/index.js ADDED
@@ -0,0 +1,3000 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var coreClient = require('@azure/core-client');
6
+ var tslib = require('tslib');
7
+
8
+ /*
9
+ * Copyright (c) Microsoft Corporation.
10
+ * Licensed under the MIT License.
11
+ *
12
+ * Code generated by Microsoft (R) AutoRest Code Generator.
13
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
14
+ */
15
+ (function (KnownCreatedByType) {
16
+ KnownCreatedByType["User"] = "User";
17
+ KnownCreatedByType["Application"] = "Application";
18
+ KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
19
+ KnownCreatedByType["Key"] = "Key";
20
+ })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
21
+ (function (KnownCompatibilityIssue) {
22
+ KnownCompatibilityIssue["HigherDeviceVersionRequired"] = "HigherDeviceVersionRequired";
23
+ KnownCompatibilityIssue["LowerDeviceVersionRequired"] = "LowerDeviceVersionRequired";
24
+ KnownCompatibilityIssue["CapacityBillingModelRequired"] = "CapacityBillingModelRequired";
25
+ KnownCompatibilityIssue["PayAsYouGoBillingModelRequired"] = "PayAsYouGoBillingModelRequired";
26
+ KnownCompatibilityIssue["DevelopmentBillingModelRequired"] = "DevelopmentBillingModelRequired";
27
+ KnownCompatibilityIssue["AzureADIdentitySystemRequired"] = "AzureADIdentitySystemRequired";
28
+ KnownCompatibilityIssue["AdfsIdentitySystemRequired"] = "ADFSIdentitySystemRequired";
29
+ KnownCompatibilityIssue["ConnectionToInternetRequired"] = "ConnectionToInternetRequired";
30
+ KnownCompatibilityIssue["ConnectionToAzureRequired"] = "ConnectionToAzureRequired";
31
+ KnownCompatibilityIssue["DisconnectedEnvironmentRequired"] = "DisconnectedEnvironmentRequired";
32
+ })(exports.KnownCompatibilityIssue || (exports.KnownCompatibilityIssue = {}));
33
+ (function (KnownComputeRole) {
34
+ KnownComputeRole["None"] = "None";
35
+ KnownComputeRole["IaaS"] = "IaaS";
36
+ KnownComputeRole["PaaS"] = "PaaS";
37
+ })(exports.KnownComputeRole || (exports.KnownComputeRole = {}));
38
+ (function (KnownOperatingSystem) {
39
+ KnownOperatingSystem["None"] = "None";
40
+ KnownOperatingSystem["Windows"] = "Windows";
41
+ KnownOperatingSystem["Linux"] = "Linux";
42
+ })(exports.KnownOperatingSystem || (exports.KnownOperatingSystem = {}));
43
+ (function (KnownCategory) {
44
+ KnownCategory["AzureAD"] = "AzureAD";
45
+ KnownCategory["Adfs"] = "ADFS";
46
+ })(exports.KnownCategory || (exports.KnownCategory = {}));
47
+ (function (KnownLocation) {
48
+ KnownLocation["Global"] = "global";
49
+ })(exports.KnownLocation || (exports.KnownLocation = {}));
50
+
51
+ /*
52
+ * Copyright (c) Microsoft Corporation.
53
+ * Licensed under the MIT License.
54
+ *
55
+ * Code generated by Microsoft (R) AutoRest Code Generator.
56
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
57
+ */
58
+ const OperationList = {
59
+ type: {
60
+ name: "Composite",
61
+ className: "OperationList",
62
+ modelProperties: {
63
+ value: {
64
+ serializedName: "value",
65
+ type: {
66
+ name: "Sequence",
67
+ element: {
68
+ type: {
69
+ name: "Composite",
70
+ className: "Operation"
71
+ }
72
+ }
73
+ }
74
+ },
75
+ nextLink: {
76
+ serializedName: "nextLink",
77
+ type: {
78
+ name: "String"
79
+ }
80
+ }
81
+ }
82
+ }
83
+ };
84
+ const Operation = {
85
+ type: {
86
+ name: "Composite",
87
+ className: "Operation",
88
+ modelProperties: {
89
+ name: {
90
+ serializedName: "name",
91
+ type: {
92
+ name: "String"
93
+ }
94
+ },
95
+ display: {
96
+ serializedName: "display",
97
+ type: {
98
+ name: "Composite",
99
+ className: "Display"
100
+ }
101
+ },
102
+ origin: {
103
+ serializedName: "origin",
104
+ type: {
105
+ name: "String"
106
+ }
107
+ }
108
+ }
109
+ }
110
+ };
111
+ const Display = {
112
+ type: {
113
+ name: "Composite",
114
+ className: "Display",
115
+ modelProperties: {
116
+ provider: {
117
+ serializedName: "provider",
118
+ type: {
119
+ name: "String"
120
+ }
121
+ },
122
+ resource: {
123
+ serializedName: "resource",
124
+ type: {
125
+ name: "String"
126
+ }
127
+ },
128
+ operation: {
129
+ serializedName: "operation",
130
+ type: {
131
+ name: "String"
132
+ }
133
+ },
134
+ description: {
135
+ serializedName: "description",
136
+ type: {
137
+ name: "String"
138
+ }
139
+ }
140
+ }
141
+ }
142
+ };
143
+ const ErrorResponse = {
144
+ type: {
145
+ name: "Composite",
146
+ className: "ErrorResponse",
147
+ modelProperties: {
148
+ error: {
149
+ serializedName: "error",
150
+ type: {
151
+ name: "Composite",
152
+ className: "ErrorDetails"
153
+ }
154
+ }
155
+ }
156
+ }
157
+ };
158
+ const ErrorDetails = {
159
+ type: {
160
+ name: "Composite",
161
+ className: "ErrorDetails",
162
+ modelProperties: {
163
+ code: {
164
+ serializedName: "code",
165
+ readOnly: true,
166
+ type: {
167
+ name: "String"
168
+ }
169
+ },
170
+ message: {
171
+ serializedName: "message",
172
+ readOnly: true,
173
+ type: {
174
+ name: "String"
175
+ }
176
+ },
177
+ target: {
178
+ serializedName: "target",
179
+ readOnly: true,
180
+ type: {
181
+ name: "String"
182
+ }
183
+ }
184
+ }
185
+ }
186
+ };
187
+ const CloudManifestFileProperties = {
188
+ type: {
189
+ name: "Composite",
190
+ className: "CloudManifestFileProperties",
191
+ modelProperties: {
192
+ deploymentData: {
193
+ serializedName: "deploymentData",
194
+ type: {
195
+ name: "Composite",
196
+ className: "CloudManifestFileDeploymentData"
197
+ }
198
+ },
199
+ signature: {
200
+ serializedName: "signature",
201
+ type: {
202
+ name: "String"
203
+ }
204
+ }
205
+ }
206
+ }
207
+ };
208
+ const CloudManifestFileDeploymentData = {
209
+ type: {
210
+ name: "Composite",
211
+ className: "CloudManifestFileDeploymentData",
212
+ modelProperties: {
213
+ externalDsmsCertificates: {
214
+ serializedName: "externalDsmsCertificates",
215
+ type: {
216
+ name: "String"
217
+ }
218
+ },
219
+ customCloudVerificationKey: {
220
+ serializedName: "customCloudVerificationKey",
221
+ type: {
222
+ name: "String"
223
+ }
224
+ },
225
+ customCloudArmEndpoint: {
226
+ serializedName: "customEnvironmentEndpoints.customCloudArmEndpoint",
227
+ type: {
228
+ name: "String"
229
+ }
230
+ },
231
+ externalDsmsEndpoint: {
232
+ serializedName: "customEnvironmentEndpoints.externalDsmsEndpoint",
233
+ type: {
234
+ name: "String"
235
+ }
236
+ }
237
+ }
238
+ }
239
+ };
240
+ const Resource = {
241
+ type: {
242
+ name: "Composite",
243
+ className: "Resource",
244
+ modelProperties: {
245
+ id: {
246
+ serializedName: "id",
247
+ readOnly: true,
248
+ type: {
249
+ name: "String"
250
+ }
251
+ },
252
+ name: {
253
+ serializedName: "name",
254
+ readOnly: true,
255
+ type: {
256
+ name: "String"
257
+ }
258
+ },
259
+ type: {
260
+ serializedName: "type",
261
+ readOnly: true,
262
+ type: {
263
+ name: "String"
264
+ }
265
+ },
266
+ etag: {
267
+ serializedName: "etag",
268
+ type: {
269
+ name: "String"
270
+ }
271
+ }
272
+ }
273
+ }
274
+ };
275
+ const CustomerSubscriptionList = {
276
+ type: {
277
+ name: "Composite",
278
+ className: "CustomerSubscriptionList",
279
+ modelProperties: {
280
+ nextLink: {
281
+ serializedName: "nextLink",
282
+ type: {
283
+ name: "String"
284
+ }
285
+ },
286
+ value: {
287
+ serializedName: "value",
288
+ type: {
289
+ name: "Sequence",
290
+ element: {
291
+ type: {
292
+ name: "Composite",
293
+ className: "CustomerSubscription"
294
+ }
295
+ }
296
+ }
297
+ }
298
+ }
299
+ }
300
+ };
301
+ const SystemData = {
302
+ type: {
303
+ name: "Composite",
304
+ className: "SystemData",
305
+ modelProperties: {
306
+ createdBy: {
307
+ serializedName: "createdBy",
308
+ type: {
309
+ name: "String"
310
+ }
311
+ },
312
+ createdByType: {
313
+ serializedName: "createdByType",
314
+ type: {
315
+ name: "String"
316
+ }
317
+ },
318
+ createdAt: {
319
+ serializedName: "createdAt",
320
+ type: {
321
+ name: "DateTime"
322
+ }
323
+ },
324
+ lastModifiedBy: {
325
+ serializedName: "lastModifiedBy",
326
+ type: {
327
+ name: "String"
328
+ }
329
+ },
330
+ lastModifiedByType: {
331
+ serializedName: "lastModifiedByType",
332
+ type: {
333
+ name: "String"
334
+ }
335
+ },
336
+ lastModifiedAt: {
337
+ serializedName: "lastModifiedAt",
338
+ type: {
339
+ name: "DateTime"
340
+ }
341
+ }
342
+ }
343
+ }
344
+ };
345
+ const ProductList = {
346
+ type: {
347
+ name: "Composite",
348
+ className: "ProductList",
349
+ modelProperties: {
350
+ nextLink: {
351
+ serializedName: "nextLink",
352
+ type: {
353
+ name: "String"
354
+ }
355
+ },
356
+ value: {
357
+ serializedName: "value",
358
+ type: {
359
+ name: "Sequence",
360
+ element: {
361
+ type: {
362
+ name: "Composite",
363
+ className: "Product"
364
+ }
365
+ }
366
+ }
367
+ }
368
+ }
369
+ }
370
+ };
371
+ const IconUris = {
372
+ type: {
373
+ name: "Composite",
374
+ className: "IconUris",
375
+ modelProperties: {
376
+ large: {
377
+ serializedName: "large",
378
+ type: {
379
+ name: "String"
380
+ }
381
+ },
382
+ wide: {
383
+ serializedName: "wide",
384
+ type: {
385
+ name: "String"
386
+ }
387
+ },
388
+ medium: {
389
+ serializedName: "medium",
390
+ type: {
391
+ name: "String"
392
+ }
393
+ },
394
+ small: {
395
+ serializedName: "small",
396
+ type: {
397
+ name: "String"
398
+ }
399
+ },
400
+ hero: {
401
+ serializedName: "hero",
402
+ type: {
403
+ name: "String"
404
+ }
405
+ }
406
+ }
407
+ }
408
+ };
409
+ const ProductLink = {
410
+ type: {
411
+ name: "Composite",
412
+ className: "ProductLink",
413
+ modelProperties: {
414
+ displayName: {
415
+ serializedName: "displayName",
416
+ type: {
417
+ name: "String"
418
+ }
419
+ },
420
+ uri: {
421
+ serializedName: "uri",
422
+ type: {
423
+ name: "String"
424
+ }
425
+ }
426
+ }
427
+ }
428
+ };
429
+ const ProductProperties = {
430
+ type: {
431
+ name: "Composite",
432
+ className: "ProductProperties",
433
+ modelProperties: {
434
+ version: {
435
+ serializedName: "version",
436
+ type: {
437
+ name: "String"
438
+ }
439
+ }
440
+ }
441
+ }
442
+ };
443
+ const Compatibility = {
444
+ type: {
445
+ name: "Composite",
446
+ className: "Compatibility",
447
+ modelProperties: {
448
+ isCompatible: {
449
+ serializedName: "isCompatible",
450
+ type: {
451
+ name: "Boolean"
452
+ }
453
+ },
454
+ message: {
455
+ serializedName: "message",
456
+ type: {
457
+ name: "String"
458
+ }
459
+ },
460
+ description: {
461
+ serializedName: "description",
462
+ type: {
463
+ name: "String"
464
+ }
465
+ },
466
+ issues: {
467
+ serializedName: "issues",
468
+ type: {
469
+ name: "Sequence",
470
+ element: {
471
+ type: {
472
+ name: "String"
473
+ }
474
+ }
475
+ }
476
+ }
477
+ }
478
+ }
479
+ };
480
+ const ExtendedProduct = {
481
+ type: {
482
+ name: "Composite",
483
+ className: "ExtendedProduct",
484
+ modelProperties: {
485
+ galleryPackageBlobSasUri: {
486
+ serializedName: "galleryPackageBlobSasUri",
487
+ readOnly: true,
488
+ type: {
489
+ name: "String"
490
+ }
491
+ },
492
+ productKind: {
493
+ serializedName: "productKind",
494
+ readOnly: true,
495
+ type: {
496
+ name: "String"
497
+ }
498
+ },
499
+ computeRole: {
500
+ serializedName: "properties.computeRole",
501
+ readOnly: true,
502
+ type: {
503
+ name: "String"
504
+ }
505
+ },
506
+ isSystemExtension: {
507
+ serializedName: "properties.isSystemExtension",
508
+ readOnly: true,
509
+ type: {
510
+ name: "Boolean"
511
+ }
512
+ },
513
+ supportMultipleExtensions: {
514
+ serializedName: "properties.supportMultipleExtensions",
515
+ readOnly: true,
516
+ type: {
517
+ name: "Boolean"
518
+ }
519
+ },
520
+ versionPropertiesVersion: {
521
+ serializedName: "properties.version",
522
+ readOnly: true,
523
+ type: {
524
+ name: "String"
525
+ }
526
+ },
527
+ vmOsType: {
528
+ serializedName: "properties.vmOsType",
529
+ readOnly: true,
530
+ type: {
531
+ name: "String"
532
+ }
533
+ },
534
+ vmScaleSetEnabled: {
535
+ serializedName: "properties.vmScaleSetEnabled",
536
+ readOnly: true,
537
+ type: {
538
+ name: "Boolean"
539
+ }
540
+ },
541
+ uri: {
542
+ serializedName: "properties.sourceBlob.uri",
543
+ readOnly: true,
544
+ type: {
545
+ name: "String"
546
+ }
547
+ },
548
+ version: {
549
+ serializedName: "properties.version",
550
+ readOnly: true,
551
+ type: {
552
+ name: "String"
553
+ }
554
+ },
555
+ osDiskImage: {
556
+ serializedName: "properties.osDiskImage",
557
+ type: {
558
+ name: "Composite",
559
+ className: "OsDiskImage"
560
+ }
561
+ },
562
+ dataDiskImages: {
563
+ serializedName: "properties.dataDiskImages",
564
+ readOnly: true,
565
+ type: {
566
+ name: "Sequence",
567
+ element: {
568
+ type: {
569
+ name: "Composite",
570
+ className: "DataDiskImage"
571
+ }
572
+ }
573
+ }
574
+ }
575
+ }
576
+ }
577
+ };
578
+ const VirtualMachineExtensionProductProperties = {
579
+ type: {
580
+ name: "Composite",
581
+ className: "VirtualMachineExtensionProductProperties",
582
+ modelProperties: {
583
+ computeRole: {
584
+ serializedName: "computeRole",
585
+ readOnly: true,
586
+ type: {
587
+ name: "String"
588
+ }
589
+ },
590
+ isSystemExtension: {
591
+ serializedName: "isSystemExtension",
592
+ readOnly: true,
593
+ type: {
594
+ name: "Boolean"
595
+ }
596
+ },
597
+ supportMultipleExtensions: {
598
+ serializedName: "supportMultipleExtensions",
599
+ readOnly: true,
600
+ type: {
601
+ name: "Boolean"
602
+ }
603
+ },
604
+ version: {
605
+ serializedName: "version",
606
+ readOnly: true,
607
+ type: {
608
+ name: "String"
609
+ }
610
+ },
611
+ vmOsType: {
612
+ serializedName: "vmOsType",
613
+ readOnly: true,
614
+ type: {
615
+ name: "String"
616
+ }
617
+ },
618
+ vmScaleSetEnabled: {
619
+ serializedName: "vmScaleSetEnabled",
620
+ readOnly: true,
621
+ type: {
622
+ name: "Boolean"
623
+ }
624
+ },
625
+ uri: {
626
+ serializedName: "sourceBlob.uri",
627
+ readOnly: true,
628
+ type: {
629
+ name: "String"
630
+ }
631
+ }
632
+ }
633
+ }
634
+ };
635
+ const VirtualMachineProductProperties = {
636
+ type: {
637
+ name: "Composite",
638
+ className: "VirtualMachineProductProperties",
639
+ modelProperties: {
640
+ version: {
641
+ serializedName: "version",
642
+ readOnly: true,
643
+ type: {
644
+ name: "String"
645
+ }
646
+ },
647
+ osDiskImage: {
648
+ serializedName: "osDiskImage",
649
+ type: {
650
+ name: "Composite",
651
+ className: "OsDiskImage"
652
+ }
653
+ },
654
+ dataDiskImages: {
655
+ serializedName: "dataDiskImages",
656
+ readOnly: true,
657
+ type: {
658
+ name: "Sequence",
659
+ element: {
660
+ type: {
661
+ name: "Composite",
662
+ className: "DataDiskImage"
663
+ }
664
+ }
665
+ }
666
+ }
667
+ }
668
+ }
669
+ };
670
+ const OsDiskImage = {
671
+ type: {
672
+ name: "Composite",
673
+ className: "OsDiskImage",
674
+ modelProperties: {
675
+ operatingSystem: {
676
+ serializedName: "operatingSystem",
677
+ readOnly: true,
678
+ type: {
679
+ name: "String"
680
+ }
681
+ },
682
+ sourceBlobSasUri: {
683
+ serializedName: "sourceBlobSasUri",
684
+ readOnly: true,
685
+ type: {
686
+ name: "String"
687
+ }
688
+ }
689
+ }
690
+ }
691
+ };
692
+ const DataDiskImage = {
693
+ type: {
694
+ name: "Composite",
695
+ className: "DataDiskImage",
696
+ modelProperties: {
697
+ lun: {
698
+ serializedName: "lun",
699
+ readOnly: true,
700
+ type: {
701
+ name: "Number"
702
+ }
703
+ },
704
+ sourceBlobSasUri: {
705
+ serializedName: "sourceBlobSasUri",
706
+ readOnly: true,
707
+ type: {
708
+ name: "String"
709
+ }
710
+ }
711
+ }
712
+ }
713
+ };
714
+ const DeviceConfiguration = {
715
+ type: {
716
+ name: "Composite",
717
+ className: "DeviceConfiguration",
718
+ modelProperties: {
719
+ deviceVersion: {
720
+ serializedName: "deviceVersion",
721
+ readOnly: true,
722
+ type: {
723
+ name: "String"
724
+ }
725
+ },
726
+ identitySystem: {
727
+ serializedName: "identitySystem",
728
+ readOnly: true,
729
+ type: {
730
+ name: "String"
731
+ }
732
+ }
733
+ }
734
+ }
735
+ };
736
+ const MarketplaceProductLogUpdate = {
737
+ type: {
738
+ name: "Composite",
739
+ className: "MarketplaceProductLogUpdate",
740
+ modelProperties: {
741
+ operation: {
742
+ serializedName: "operation",
743
+ readOnly: true,
744
+ type: {
745
+ name: "String"
746
+ }
747
+ },
748
+ status: {
749
+ serializedName: "status",
750
+ readOnly: true,
751
+ type: {
752
+ name: "String"
753
+ }
754
+ },
755
+ error: {
756
+ serializedName: "error",
757
+ readOnly: true,
758
+ type: {
759
+ name: "String"
760
+ }
761
+ },
762
+ details: {
763
+ serializedName: "details",
764
+ readOnly: true,
765
+ type: {
766
+ name: "String"
767
+ }
768
+ }
769
+ }
770
+ }
771
+ };
772
+ const ProductLog = {
773
+ type: {
774
+ name: "Composite",
775
+ className: "ProductLog",
776
+ modelProperties: {
777
+ id: {
778
+ serializedName: "id",
779
+ readOnly: true,
780
+ type: {
781
+ name: "String"
782
+ }
783
+ },
784
+ productId: {
785
+ serializedName: "productId",
786
+ readOnly: true,
787
+ type: {
788
+ name: "String"
789
+ }
790
+ },
791
+ subscriptionId: {
792
+ serializedName: "subscriptionId",
793
+ readOnly: true,
794
+ type: {
795
+ name: "String"
796
+ }
797
+ },
798
+ registrationName: {
799
+ serializedName: "registrationName",
800
+ readOnly: true,
801
+ type: {
802
+ name: "String"
803
+ }
804
+ },
805
+ resourceGroupName: {
806
+ serializedName: "resourceGroupName",
807
+ readOnly: true,
808
+ type: {
809
+ name: "String"
810
+ }
811
+ },
812
+ operation: {
813
+ serializedName: "operation",
814
+ readOnly: true,
815
+ type: {
816
+ name: "String"
817
+ }
818
+ },
819
+ startDate: {
820
+ serializedName: "startDate",
821
+ readOnly: true,
822
+ type: {
823
+ name: "String"
824
+ }
825
+ },
826
+ endDate: {
827
+ serializedName: "endDate",
828
+ readOnly: true,
829
+ type: {
830
+ name: "String"
831
+ }
832
+ },
833
+ status: {
834
+ serializedName: "status",
835
+ readOnly: true,
836
+ type: {
837
+ name: "String"
838
+ }
839
+ },
840
+ error: {
841
+ serializedName: "error",
842
+ readOnly: true,
843
+ type: {
844
+ name: "String"
845
+ }
846
+ },
847
+ details: {
848
+ serializedName: "details",
849
+ readOnly: true,
850
+ type: {
851
+ name: "String"
852
+ }
853
+ }
854
+ }
855
+ }
856
+ };
857
+ const RegistrationList = {
858
+ type: {
859
+ name: "Composite",
860
+ className: "RegistrationList",
861
+ modelProperties: {
862
+ nextLink: {
863
+ serializedName: "nextLink",
864
+ type: {
865
+ name: "String"
866
+ }
867
+ },
868
+ value: {
869
+ serializedName: "value",
870
+ type: {
871
+ name: "Sequence",
872
+ element: {
873
+ type: {
874
+ name: "Composite",
875
+ className: "Registration"
876
+ }
877
+ }
878
+ }
879
+ }
880
+ }
881
+ }
882
+ };
883
+ const TrackedResource = {
884
+ type: {
885
+ name: "Composite",
886
+ className: "TrackedResource",
887
+ modelProperties: {
888
+ id: {
889
+ serializedName: "id",
890
+ readOnly: true,
891
+ type: {
892
+ name: "String"
893
+ }
894
+ },
895
+ name: {
896
+ serializedName: "name",
897
+ readOnly: true,
898
+ type: {
899
+ name: "String"
900
+ }
901
+ },
902
+ type: {
903
+ serializedName: "type",
904
+ readOnly: true,
905
+ type: {
906
+ name: "String"
907
+ }
908
+ },
909
+ kind: {
910
+ serializedName: "kind",
911
+ readOnly: true,
912
+ type: {
913
+ name: "String"
914
+ }
915
+ },
916
+ systemData: {
917
+ serializedName: "systemData",
918
+ type: {
919
+ name: "Composite",
920
+ className: "SystemData"
921
+ }
922
+ },
923
+ location: {
924
+ serializedName: "location",
925
+ required: true,
926
+ type: {
927
+ name: "String"
928
+ }
929
+ },
930
+ tags: {
931
+ serializedName: "tags",
932
+ type: {
933
+ name: "Dictionary",
934
+ value: { type: { name: "String" } }
935
+ }
936
+ },
937
+ etag: {
938
+ serializedName: "etag",
939
+ type: {
940
+ name: "String"
941
+ }
942
+ }
943
+ }
944
+ }
945
+ };
946
+ const RegistrationParameter = {
947
+ type: {
948
+ name: "Composite",
949
+ className: "RegistrationParameter",
950
+ modelProperties: {
951
+ location: {
952
+ serializedName: "location",
953
+ required: true,
954
+ type: {
955
+ name: "String"
956
+ }
957
+ },
958
+ registrationToken: {
959
+ serializedName: "properties.registrationToken",
960
+ required: true,
961
+ type: {
962
+ name: "String"
963
+ }
964
+ }
965
+ }
966
+ }
967
+ };
968
+ const ActivationKeyResult = {
969
+ type: {
970
+ name: "Composite",
971
+ className: "ActivationKeyResult",
972
+ modelProperties: {
973
+ activationKey: {
974
+ serializedName: "activationKey",
975
+ type: {
976
+ name: "String"
977
+ }
978
+ }
979
+ }
980
+ }
981
+ };
982
+ const LinkedSubscriptionsList = {
983
+ type: {
984
+ name: "Composite",
985
+ className: "LinkedSubscriptionsList",
986
+ modelProperties: {
987
+ nextLink: {
988
+ serializedName: "nextLink",
989
+ type: {
990
+ name: "String"
991
+ }
992
+ },
993
+ value: {
994
+ serializedName: "value",
995
+ type: {
996
+ name: "Sequence",
997
+ element: {
998
+ type: {
999
+ name: "Composite",
1000
+ className: "LinkedSubscription"
1001
+ }
1002
+ }
1003
+ }
1004
+ }
1005
+ }
1006
+ }
1007
+ };
1008
+ const LinkedSubscriptionParameter = {
1009
+ type: {
1010
+ name: "Composite",
1011
+ className: "LinkedSubscriptionParameter",
1012
+ modelProperties: {
1013
+ location: {
1014
+ serializedName: "location",
1015
+ required: true,
1016
+ type: {
1017
+ name: "String"
1018
+ }
1019
+ },
1020
+ linkedSubscriptionId: {
1021
+ serializedName: "properties.linkedSubscriptionId",
1022
+ required: true,
1023
+ type: {
1024
+ name: "String"
1025
+ }
1026
+ },
1027
+ registrationResourceId: {
1028
+ serializedName: "properties.registrationResourceId",
1029
+ required: true,
1030
+ type: {
1031
+ name: "String"
1032
+ }
1033
+ }
1034
+ }
1035
+ }
1036
+ };
1037
+ const CloudManifestFileResponse = {
1038
+ type: {
1039
+ name: "Composite",
1040
+ className: "CloudManifestFileResponse",
1041
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { properties: {
1042
+ serializedName: "properties",
1043
+ type: {
1044
+ name: "Composite",
1045
+ className: "CloudManifestFileProperties"
1046
+ }
1047
+ } })
1048
+ }
1049
+ };
1050
+ const CustomerSubscription = {
1051
+ type: {
1052
+ name: "Composite",
1053
+ className: "CustomerSubscription",
1054
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { systemData: {
1055
+ serializedName: "systemData",
1056
+ type: {
1057
+ name: "Composite",
1058
+ className: "SystemData"
1059
+ }
1060
+ }, tenantId: {
1061
+ serializedName: "properties.tenantId",
1062
+ type: {
1063
+ name: "String"
1064
+ }
1065
+ } })
1066
+ }
1067
+ };
1068
+ const Product = {
1069
+ type: {
1070
+ name: "Composite",
1071
+ className: "Product",
1072
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { systemData: {
1073
+ serializedName: "systemData",
1074
+ type: {
1075
+ name: "Composite",
1076
+ className: "SystemData"
1077
+ }
1078
+ }, displayName: {
1079
+ serializedName: "properties.displayName",
1080
+ type: {
1081
+ name: "String"
1082
+ }
1083
+ }, description: {
1084
+ serializedName: "properties.description",
1085
+ type: {
1086
+ name: "String"
1087
+ }
1088
+ }, publisherDisplayName: {
1089
+ serializedName: "properties.publisherDisplayName",
1090
+ type: {
1091
+ name: "String"
1092
+ }
1093
+ }, publisherIdentifier: {
1094
+ serializedName: "properties.publisherIdentifier",
1095
+ type: {
1096
+ name: "String"
1097
+ }
1098
+ }, offer: {
1099
+ serializedName: "properties.offer",
1100
+ type: {
1101
+ name: "String"
1102
+ }
1103
+ }, offerVersion: {
1104
+ serializedName: "properties.offerVersion",
1105
+ type: {
1106
+ name: "String"
1107
+ }
1108
+ }, sku: {
1109
+ serializedName: "properties.sku",
1110
+ type: {
1111
+ name: "String"
1112
+ }
1113
+ }, billingPartNumber: {
1114
+ serializedName: "properties.billingPartNumber",
1115
+ type: {
1116
+ name: "String"
1117
+ }
1118
+ }, vmExtensionType: {
1119
+ serializedName: "properties.vmExtensionType",
1120
+ type: {
1121
+ name: "String"
1122
+ }
1123
+ }, galleryItemIdentity: {
1124
+ serializedName: "properties.galleryItemIdentity",
1125
+ type: {
1126
+ name: "String"
1127
+ }
1128
+ }, iconUris: {
1129
+ serializedName: "properties.iconUris",
1130
+ type: {
1131
+ name: "Composite",
1132
+ className: "IconUris"
1133
+ }
1134
+ }, links: {
1135
+ serializedName: "properties.links",
1136
+ type: {
1137
+ name: "Sequence",
1138
+ element: {
1139
+ type: {
1140
+ name: "Composite",
1141
+ className: "ProductLink"
1142
+ }
1143
+ }
1144
+ }
1145
+ }, legalTerms: {
1146
+ serializedName: "properties.legalTerms",
1147
+ type: {
1148
+ name: "String"
1149
+ }
1150
+ }, privacyPolicy: {
1151
+ serializedName: "properties.privacyPolicy",
1152
+ type: {
1153
+ name: "String"
1154
+ }
1155
+ }, payloadLength: {
1156
+ serializedName: "properties.payloadLength",
1157
+ type: {
1158
+ name: "Number"
1159
+ }
1160
+ }, productKind: {
1161
+ serializedName: "properties.productKind",
1162
+ type: {
1163
+ name: "String"
1164
+ }
1165
+ }, productProperties: {
1166
+ serializedName: "properties.productProperties",
1167
+ type: {
1168
+ name: "Composite",
1169
+ className: "ProductProperties"
1170
+ }
1171
+ }, compatibility: {
1172
+ serializedName: "properties.compatibility",
1173
+ type: {
1174
+ name: "Composite",
1175
+ className: "Compatibility"
1176
+ }
1177
+ } })
1178
+ }
1179
+ };
1180
+ const ExtendedProductProperties = {
1181
+ type: {
1182
+ name: "Composite",
1183
+ className: "ExtendedProductProperties",
1184
+ modelProperties: Object.assign(Object.assign({}, VirtualMachineExtensionProductProperties.type.modelProperties), VirtualMachineProductProperties.type.modelProperties)
1185
+ }
1186
+ };
1187
+ const Registration = {
1188
+ type: {
1189
+ name: "Composite",
1190
+ className: "Registration",
1191
+ modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { objectId: {
1192
+ serializedName: "properties.objectId",
1193
+ type: {
1194
+ name: "String"
1195
+ }
1196
+ }, cloudId: {
1197
+ serializedName: "properties.cloudId",
1198
+ type: {
1199
+ name: "String"
1200
+ }
1201
+ }, billingModel: {
1202
+ serializedName: "properties.billingModel",
1203
+ type: {
1204
+ name: "String"
1205
+ }
1206
+ } })
1207
+ }
1208
+ };
1209
+ const LinkedSubscription = {
1210
+ type: {
1211
+ name: "Composite",
1212
+ className: "LinkedSubscription",
1213
+ modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { linkedSubscriptionId: {
1214
+ serializedName: "properties.linkedSubscriptionId",
1215
+ type: {
1216
+ name: "String"
1217
+ }
1218
+ }, registrationResourceId: {
1219
+ serializedName: "properties.registrationResourceId",
1220
+ type: {
1221
+ name: "String"
1222
+ }
1223
+ }, deviceId: {
1224
+ serializedName: "properties.deviceId",
1225
+ readOnly: true,
1226
+ type: {
1227
+ name: "String"
1228
+ }
1229
+ }, deviceObjectId: {
1230
+ serializedName: "properties.deviceObjectId",
1231
+ readOnly: true,
1232
+ type: {
1233
+ name: "String"
1234
+ }
1235
+ }, deviceLinkState: {
1236
+ serializedName: "properties.deviceLinkState",
1237
+ readOnly: true,
1238
+ type: {
1239
+ name: "String"
1240
+ }
1241
+ }, lastConnectedTime: {
1242
+ serializedName: "properties.lastConnectedTime",
1243
+ readOnly: true,
1244
+ type: {
1245
+ name: "String"
1246
+ }
1247
+ }, deviceConnectionStatus: {
1248
+ serializedName: "properties.deviceConnectionStatus",
1249
+ readOnly: true,
1250
+ type: {
1251
+ name: "String"
1252
+ }
1253
+ } })
1254
+ }
1255
+ };
1256
+
1257
+ var Mappers = /*#__PURE__*/Object.freeze({
1258
+ __proto__: null,
1259
+ OperationList: OperationList,
1260
+ Operation: Operation,
1261
+ Display: Display,
1262
+ ErrorResponse: ErrorResponse,
1263
+ ErrorDetails: ErrorDetails,
1264
+ CloudManifestFileProperties: CloudManifestFileProperties,
1265
+ CloudManifestFileDeploymentData: CloudManifestFileDeploymentData,
1266
+ Resource: Resource,
1267
+ CustomerSubscriptionList: CustomerSubscriptionList,
1268
+ SystemData: SystemData,
1269
+ ProductList: ProductList,
1270
+ IconUris: IconUris,
1271
+ ProductLink: ProductLink,
1272
+ ProductProperties: ProductProperties,
1273
+ Compatibility: Compatibility,
1274
+ ExtendedProduct: ExtendedProduct,
1275
+ VirtualMachineExtensionProductProperties: VirtualMachineExtensionProductProperties,
1276
+ VirtualMachineProductProperties: VirtualMachineProductProperties,
1277
+ OsDiskImage: OsDiskImage,
1278
+ DataDiskImage: DataDiskImage,
1279
+ DeviceConfiguration: DeviceConfiguration,
1280
+ MarketplaceProductLogUpdate: MarketplaceProductLogUpdate,
1281
+ ProductLog: ProductLog,
1282
+ RegistrationList: RegistrationList,
1283
+ TrackedResource: TrackedResource,
1284
+ RegistrationParameter: RegistrationParameter,
1285
+ ActivationKeyResult: ActivationKeyResult,
1286
+ LinkedSubscriptionsList: LinkedSubscriptionsList,
1287
+ LinkedSubscriptionParameter: LinkedSubscriptionParameter,
1288
+ CloudManifestFileResponse: CloudManifestFileResponse,
1289
+ CustomerSubscription: CustomerSubscription,
1290
+ Product: Product,
1291
+ ExtendedProductProperties: ExtendedProductProperties,
1292
+ Registration: Registration,
1293
+ LinkedSubscription: LinkedSubscription
1294
+ });
1295
+
1296
+ /*
1297
+ * Copyright (c) Microsoft Corporation.
1298
+ * Licensed under the MIT License.
1299
+ *
1300
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1301
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1302
+ */
1303
+ const accept = {
1304
+ parameterPath: "accept",
1305
+ mapper: {
1306
+ defaultValue: "application/json",
1307
+ isConstant: true,
1308
+ serializedName: "Accept",
1309
+ type: {
1310
+ name: "String"
1311
+ }
1312
+ }
1313
+ };
1314
+ const $host = {
1315
+ parameterPath: "$host",
1316
+ mapper: {
1317
+ serializedName: "$host",
1318
+ required: true,
1319
+ type: {
1320
+ name: "String"
1321
+ }
1322
+ },
1323
+ skipEncoding: true
1324
+ };
1325
+ const apiVersion = {
1326
+ parameterPath: "apiVersion",
1327
+ mapper: {
1328
+ defaultValue: "2020-06-01-preview",
1329
+ isConstant: true,
1330
+ serializedName: "api-version",
1331
+ type: {
1332
+ name: "String"
1333
+ }
1334
+ }
1335
+ };
1336
+ const nextLink = {
1337
+ parameterPath: "nextLink",
1338
+ mapper: {
1339
+ serializedName: "nextLink",
1340
+ required: true,
1341
+ type: {
1342
+ name: "String"
1343
+ }
1344
+ },
1345
+ skipEncoding: true
1346
+ };
1347
+ const verificationVersion = {
1348
+ parameterPath: "verificationVersion",
1349
+ mapper: {
1350
+ serializedName: "verificationVersion",
1351
+ required: true,
1352
+ type: {
1353
+ name: "String"
1354
+ }
1355
+ }
1356
+ };
1357
+ const versionCreationDate = {
1358
+ parameterPath: ["options", "versionCreationDate"],
1359
+ mapper: {
1360
+ serializedName: "versionCreationDate",
1361
+ type: {
1362
+ name: "String"
1363
+ }
1364
+ }
1365
+ };
1366
+ const subscriptionId = {
1367
+ parameterPath: "subscriptionId",
1368
+ mapper: {
1369
+ serializedName: "subscriptionId",
1370
+ required: true,
1371
+ type: {
1372
+ name: "String"
1373
+ }
1374
+ }
1375
+ };
1376
+ const resourceGroup = {
1377
+ parameterPath: "resourceGroup",
1378
+ mapper: {
1379
+ serializedName: "resourceGroup",
1380
+ required: true,
1381
+ type: {
1382
+ name: "String"
1383
+ }
1384
+ }
1385
+ };
1386
+ const registrationName = {
1387
+ parameterPath: "registrationName",
1388
+ mapper: {
1389
+ serializedName: "registrationName",
1390
+ required: true,
1391
+ type: {
1392
+ name: "String"
1393
+ }
1394
+ }
1395
+ };
1396
+ const customerSubscriptionName = {
1397
+ parameterPath: "customerSubscriptionName",
1398
+ mapper: {
1399
+ serializedName: "customerSubscriptionName",
1400
+ required: true,
1401
+ type: {
1402
+ name: "String"
1403
+ }
1404
+ }
1405
+ };
1406
+ const contentType = {
1407
+ parameterPath: ["options", "contentType"],
1408
+ mapper: {
1409
+ defaultValue: "application/json",
1410
+ isConstant: true,
1411
+ serializedName: "Content-Type",
1412
+ type: {
1413
+ name: "String"
1414
+ }
1415
+ }
1416
+ };
1417
+ const customerCreationParameters = {
1418
+ parameterPath: "customerCreationParameters",
1419
+ mapper: CustomerSubscription
1420
+ };
1421
+ const productName = {
1422
+ parameterPath: "productName",
1423
+ mapper: {
1424
+ serializedName: "productName",
1425
+ required: true,
1426
+ type: {
1427
+ name: "String"
1428
+ }
1429
+ }
1430
+ };
1431
+ const deviceConfiguration = {
1432
+ parameterPath: ["options", "deviceConfiguration"],
1433
+ mapper: DeviceConfiguration
1434
+ };
1435
+ const marketplaceProductLogUpdate = {
1436
+ parameterPath: ["options", "marketplaceProductLogUpdate"],
1437
+ mapper: MarketplaceProductLogUpdate
1438
+ };
1439
+ const token = {
1440
+ parameterPath: "token",
1441
+ mapper: RegistrationParameter
1442
+ };
1443
+ const linkedSubscriptionName = {
1444
+ parameterPath: "linkedSubscriptionName",
1445
+ mapper: {
1446
+ serializedName: "linkedSubscriptionName",
1447
+ required: true,
1448
+ type: {
1449
+ name: "String"
1450
+ }
1451
+ }
1452
+ };
1453
+ const resource = {
1454
+ parameterPath: "resource",
1455
+ mapper: LinkedSubscriptionParameter
1456
+ };
1457
+
1458
+ /*
1459
+ * Copyright (c) Microsoft Corporation.
1460
+ * Licensed under the MIT License.
1461
+ *
1462
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1463
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1464
+ */
1465
+ /// <reference lib="esnext.asynciterable" />
1466
+ /** Class containing Operations operations. */
1467
+ class OperationsImpl {
1468
+ /**
1469
+ * Initialize a new instance of the class Operations class.
1470
+ * @param client Reference to the service client
1471
+ */
1472
+ constructor(client) {
1473
+ this.client = client;
1474
+ }
1475
+ /**
1476
+ * Returns the list of supported REST operations.
1477
+ * @param options The options parameters.
1478
+ */
1479
+ list(options) {
1480
+ const iter = this.listPagingAll(options);
1481
+ return {
1482
+ next() {
1483
+ return iter.next();
1484
+ },
1485
+ [Symbol.asyncIterator]() {
1486
+ return this;
1487
+ },
1488
+ byPage: () => {
1489
+ return this.listPagingPage(options);
1490
+ }
1491
+ };
1492
+ }
1493
+ listPagingPage(options) {
1494
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1495
+ let result = yield tslib.__await(this._list(options));
1496
+ yield yield tslib.__await(result.value || []);
1497
+ let continuationToken = result.nextLink;
1498
+ while (continuationToken) {
1499
+ result = yield tslib.__await(this._listNext(continuationToken, options));
1500
+ continuationToken = result.nextLink;
1501
+ yield yield tslib.__await(result.value || []);
1502
+ }
1503
+ });
1504
+ }
1505
+ listPagingAll(options) {
1506
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1507
+ var e_1, _a;
1508
+ try {
1509
+ for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1510
+ const page = _c.value;
1511
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1512
+ }
1513
+ }
1514
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1515
+ finally {
1516
+ try {
1517
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1518
+ }
1519
+ finally { if (e_1) throw e_1.error; }
1520
+ }
1521
+ });
1522
+ }
1523
+ /**
1524
+ * Returns the list of supported REST operations.
1525
+ * @param options The options parameters.
1526
+ */
1527
+ _list(options) {
1528
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
1529
+ }
1530
+ /**
1531
+ * ListNext
1532
+ * @param nextLink The nextLink from the previous successful call to the List method.
1533
+ * @param options The options parameters.
1534
+ */
1535
+ _listNext(nextLink, options) {
1536
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
1537
+ }
1538
+ }
1539
+ // Operation Specifications
1540
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
1541
+ const listOperationSpec = {
1542
+ path: "/providers/Microsoft.AzureStack/operations",
1543
+ httpMethod: "GET",
1544
+ responses: {
1545
+ 200: {
1546
+ bodyMapper: OperationList
1547
+ },
1548
+ default: {
1549
+ bodyMapper: ErrorResponse
1550
+ }
1551
+ },
1552
+ queryParameters: [apiVersion],
1553
+ urlParameters: [$host],
1554
+ headerParameters: [accept],
1555
+ serializer
1556
+ };
1557
+ const listNextOperationSpec = {
1558
+ path: "{nextLink}",
1559
+ httpMethod: "GET",
1560
+ responses: {
1561
+ 200: {
1562
+ bodyMapper: OperationList
1563
+ },
1564
+ default: {
1565
+ bodyMapper: ErrorResponse
1566
+ }
1567
+ },
1568
+ queryParameters: [apiVersion],
1569
+ urlParameters: [$host, nextLink],
1570
+ headerParameters: [accept],
1571
+ serializer
1572
+ };
1573
+
1574
+ /*
1575
+ * Copyright (c) Microsoft Corporation.
1576
+ * Licensed under the MIT License.
1577
+ *
1578
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1579
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1580
+ */
1581
+ /** Class containing CloudManifestFile operations. */
1582
+ class CloudManifestFileImpl {
1583
+ /**
1584
+ * Initialize a new instance of the class CloudManifestFile class.
1585
+ * @param client Reference to the service client
1586
+ */
1587
+ constructor(client) {
1588
+ this.client = client;
1589
+ }
1590
+ /**
1591
+ * Returns a cloud specific manifest JSON file with latest version.
1592
+ * @param options The options parameters.
1593
+ */
1594
+ list(options) {
1595
+ return this.client.sendOperationRequest({ options }, listOperationSpec$1);
1596
+ }
1597
+ /**
1598
+ * Returns a cloud specific manifest JSON file.
1599
+ * @param verificationVersion Signing verification key version.
1600
+ * @param options The options parameters.
1601
+ */
1602
+ get(verificationVersion, options) {
1603
+ return this.client.sendOperationRequest({ verificationVersion, options }, getOperationSpec);
1604
+ }
1605
+ }
1606
+ // Operation Specifications
1607
+ const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
1608
+ const listOperationSpec$1 = {
1609
+ path: "/providers/Microsoft.AzureStack/cloudManifestFiles",
1610
+ httpMethod: "GET",
1611
+ responses: {
1612
+ 200: {
1613
+ bodyMapper: CloudManifestFileResponse
1614
+ },
1615
+ default: {
1616
+ bodyMapper: ErrorResponse
1617
+ }
1618
+ },
1619
+ queryParameters: [apiVersion],
1620
+ urlParameters: [$host],
1621
+ headerParameters: [accept],
1622
+ serializer: serializer$1
1623
+ };
1624
+ const getOperationSpec = {
1625
+ path: "/providers/Microsoft.AzureStack/cloudManifestFiles/{verificationVersion}",
1626
+ httpMethod: "GET",
1627
+ responses: {
1628
+ 200: {
1629
+ bodyMapper: CloudManifestFileResponse
1630
+ },
1631
+ default: {
1632
+ bodyMapper: ErrorResponse
1633
+ }
1634
+ },
1635
+ queryParameters: [apiVersion, versionCreationDate],
1636
+ urlParameters: [$host, verificationVersion],
1637
+ headerParameters: [accept],
1638
+ serializer: serializer$1
1639
+ };
1640
+
1641
+ /*
1642
+ * Copyright (c) Microsoft Corporation.
1643
+ * Licensed under the MIT License.
1644
+ *
1645
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1646
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1647
+ */
1648
+ /// <reference lib="esnext.asynciterable" />
1649
+ /** Class containing CustomerSubscriptions operations. */
1650
+ class CustomerSubscriptionsImpl {
1651
+ /**
1652
+ * Initialize a new instance of the class CustomerSubscriptions class.
1653
+ * @param client Reference to the service client
1654
+ */
1655
+ constructor(client) {
1656
+ this.client = client;
1657
+ }
1658
+ /**
1659
+ * Returns a list of products.
1660
+ * @param resourceGroup Name of the resource group.
1661
+ * @param registrationName Name of the Azure Stack registration.
1662
+ * @param options The options parameters.
1663
+ */
1664
+ list(resourceGroup, registrationName, options) {
1665
+ const iter = this.listPagingAll(resourceGroup, registrationName, options);
1666
+ return {
1667
+ next() {
1668
+ return iter.next();
1669
+ },
1670
+ [Symbol.asyncIterator]() {
1671
+ return this;
1672
+ },
1673
+ byPage: () => {
1674
+ return this.listPagingPage(resourceGroup, registrationName, options);
1675
+ }
1676
+ };
1677
+ }
1678
+ listPagingPage(resourceGroup, registrationName, options) {
1679
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1680
+ let result = yield tslib.__await(this._list(resourceGroup, registrationName, options));
1681
+ yield yield tslib.__await(result.value || []);
1682
+ let continuationToken = result.nextLink;
1683
+ while (continuationToken) {
1684
+ result = yield tslib.__await(this._listNext(resourceGroup, registrationName, continuationToken, options));
1685
+ continuationToken = result.nextLink;
1686
+ yield yield tslib.__await(result.value || []);
1687
+ }
1688
+ });
1689
+ }
1690
+ listPagingAll(resourceGroup, registrationName, options) {
1691
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1692
+ var e_1, _a;
1693
+ try {
1694
+ for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroup, registrationName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1695
+ const page = _c.value;
1696
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1697
+ }
1698
+ }
1699
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1700
+ finally {
1701
+ try {
1702
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1703
+ }
1704
+ finally { if (e_1) throw e_1.error; }
1705
+ }
1706
+ });
1707
+ }
1708
+ /**
1709
+ * Returns a list of products.
1710
+ * @param resourceGroup Name of the resource group.
1711
+ * @param registrationName Name of the Azure Stack registration.
1712
+ * @param options The options parameters.
1713
+ */
1714
+ _list(resourceGroup, registrationName, options) {
1715
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, options }, listOperationSpec$2);
1716
+ }
1717
+ /**
1718
+ * Returns the specified product.
1719
+ * @param resourceGroup Name of the resource group.
1720
+ * @param registrationName Name of the Azure Stack registration.
1721
+ * @param customerSubscriptionName Name of the product.
1722
+ * @param options The options parameters.
1723
+ */
1724
+ get(resourceGroup, registrationName, customerSubscriptionName, options) {
1725
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, customerSubscriptionName, options }, getOperationSpec$1);
1726
+ }
1727
+ /**
1728
+ * Deletes a customer subscription under a registration.
1729
+ * @param resourceGroup Name of the resource group.
1730
+ * @param registrationName Name of the Azure Stack registration.
1731
+ * @param customerSubscriptionName Name of the product.
1732
+ * @param options The options parameters.
1733
+ */
1734
+ delete(resourceGroup, registrationName, customerSubscriptionName, options) {
1735
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, customerSubscriptionName, options }, deleteOperationSpec);
1736
+ }
1737
+ /**
1738
+ * Creates a new customer subscription under a registration.
1739
+ * @param resourceGroup Name of the resource group.
1740
+ * @param registrationName Name of the Azure Stack registration.
1741
+ * @param customerSubscriptionName Name of the product.
1742
+ * @param customerCreationParameters Parameters use to create a customer subscription.
1743
+ * @param options The options parameters.
1744
+ */
1745
+ create(resourceGroup, registrationName, customerSubscriptionName, customerCreationParameters, options) {
1746
+ return this.client.sendOperationRequest({
1747
+ resourceGroup,
1748
+ registrationName,
1749
+ customerSubscriptionName,
1750
+ customerCreationParameters,
1751
+ options
1752
+ }, createOperationSpec);
1753
+ }
1754
+ /**
1755
+ * ListNext
1756
+ * @param resourceGroup Name of the resource group.
1757
+ * @param registrationName Name of the Azure Stack registration.
1758
+ * @param nextLink The nextLink from the previous successful call to the List method.
1759
+ * @param options The options parameters.
1760
+ */
1761
+ _listNext(resourceGroup, registrationName, nextLink, options) {
1762
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, nextLink, options }, listNextOperationSpec$1);
1763
+ }
1764
+ }
1765
+ // Operation Specifications
1766
+ const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
1767
+ const listOperationSpec$2 = {
1768
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions",
1769
+ httpMethod: "GET",
1770
+ responses: {
1771
+ 200: {
1772
+ bodyMapper: CustomerSubscriptionList
1773
+ },
1774
+ default: {
1775
+ bodyMapper: ErrorResponse
1776
+ }
1777
+ },
1778
+ queryParameters: [apiVersion],
1779
+ urlParameters: [
1780
+ $host,
1781
+ subscriptionId,
1782
+ resourceGroup,
1783
+ registrationName
1784
+ ],
1785
+ headerParameters: [accept],
1786
+ serializer: serializer$2
1787
+ };
1788
+ const getOperationSpec$1 = {
1789
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions/{customerSubscriptionName}",
1790
+ httpMethod: "GET",
1791
+ responses: {
1792
+ 200: {
1793
+ bodyMapper: CustomerSubscription
1794
+ },
1795
+ default: {
1796
+ bodyMapper: ErrorResponse
1797
+ }
1798
+ },
1799
+ queryParameters: [apiVersion],
1800
+ urlParameters: [
1801
+ $host,
1802
+ subscriptionId,
1803
+ resourceGroup,
1804
+ registrationName,
1805
+ customerSubscriptionName
1806
+ ],
1807
+ headerParameters: [accept],
1808
+ serializer: serializer$2
1809
+ };
1810
+ const deleteOperationSpec = {
1811
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions/{customerSubscriptionName}",
1812
+ httpMethod: "DELETE",
1813
+ responses: {
1814
+ 200: {},
1815
+ 204: {},
1816
+ default: {
1817
+ bodyMapper: ErrorResponse
1818
+ }
1819
+ },
1820
+ queryParameters: [apiVersion],
1821
+ urlParameters: [
1822
+ $host,
1823
+ subscriptionId,
1824
+ resourceGroup,
1825
+ registrationName,
1826
+ customerSubscriptionName
1827
+ ],
1828
+ headerParameters: [accept],
1829
+ serializer: serializer$2
1830
+ };
1831
+ const createOperationSpec = {
1832
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions/{customerSubscriptionName}",
1833
+ httpMethod: "PUT",
1834
+ responses: {
1835
+ 200: {
1836
+ bodyMapper: CustomerSubscription
1837
+ },
1838
+ default: {
1839
+ bodyMapper: ErrorResponse
1840
+ }
1841
+ },
1842
+ requestBody: customerCreationParameters,
1843
+ queryParameters: [apiVersion],
1844
+ urlParameters: [
1845
+ $host,
1846
+ subscriptionId,
1847
+ resourceGroup,
1848
+ registrationName,
1849
+ customerSubscriptionName
1850
+ ],
1851
+ headerParameters: [accept, contentType],
1852
+ mediaType: "json",
1853
+ serializer: serializer$2
1854
+ };
1855
+ const listNextOperationSpec$1 = {
1856
+ path: "{nextLink}",
1857
+ httpMethod: "GET",
1858
+ responses: {
1859
+ 200: {
1860
+ bodyMapper: CustomerSubscriptionList
1861
+ },
1862
+ default: {
1863
+ bodyMapper: ErrorResponse
1864
+ }
1865
+ },
1866
+ queryParameters: [apiVersion],
1867
+ urlParameters: [
1868
+ $host,
1869
+ nextLink,
1870
+ subscriptionId,
1871
+ resourceGroup,
1872
+ registrationName
1873
+ ],
1874
+ headerParameters: [accept],
1875
+ serializer: serializer$2
1876
+ };
1877
+
1878
+ /*
1879
+ * Copyright (c) Microsoft Corporation.
1880
+ * Licensed under the MIT License.
1881
+ *
1882
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1883
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1884
+ */
1885
+ /// <reference lib="esnext.asynciterable" />
1886
+ /** Class containing Products operations. */
1887
+ class ProductsImpl {
1888
+ /**
1889
+ * Initialize a new instance of the class Products class.
1890
+ * @param client Reference to the service client
1891
+ */
1892
+ constructor(client) {
1893
+ this.client = client;
1894
+ }
1895
+ /**
1896
+ * Returns a list of products.
1897
+ * @param resourceGroup Name of the resource group.
1898
+ * @param registrationName Name of the Azure Stack registration.
1899
+ * @param options The options parameters.
1900
+ */
1901
+ list(resourceGroup, registrationName, options) {
1902
+ const iter = this.listPagingAll(resourceGroup, registrationName, options);
1903
+ return {
1904
+ next() {
1905
+ return iter.next();
1906
+ },
1907
+ [Symbol.asyncIterator]() {
1908
+ return this;
1909
+ },
1910
+ byPage: () => {
1911
+ return this.listPagingPage(resourceGroup, registrationName, options);
1912
+ }
1913
+ };
1914
+ }
1915
+ listPagingPage(resourceGroup, registrationName, options) {
1916
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1917
+ let result = yield tslib.__await(this._list(resourceGroup, registrationName, options));
1918
+ yield yield tslib.__await(result.value || []);
1919
+ let continuationToken = result.nextLink;
1920
+ while (continuationToken) {
1921
+ result = yield tslib.__await(this._listNext(resourceGroup, registrationName, continuationToken, options));
1922
+ continuationToken = result.nextLink;
1923
+ yield yield tslib.__await(result.value || []);
1924
+ }
1925
+ });
1926
+ }
1927
+ listPagingAll(resourceGroup, registrationName, options) {
1928
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1929
+ var e_1, _a;
1930
+ try {
1931
+ for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroup, registrationName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1932
+ const page = _c.value;
1933
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1934
+ }
1935
+ }
1936
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1937
+ finally {
1938
+ try {
1939
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1940
+ }
1941
+ finally { if (e_1) throw e_1.error; }
1942
+ }
1943
+ });
1944
+ }
1945
+ /**
1946
+ * Returns a list of products.
1947
+ * @param resourceGroup Name of the resource group.
1948
+ * @param registrationName Name of the Azure Stack registration.
1949
+ * @param options The options parameters.
1950
+ */
1951
+ _list(resourceGroup, registrationName, options) {
1952
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, options }, listOperationSpec$3);
1953
+ }
1954
+ /**
1955
+ * Returns the specified product.
1956
+ * @param resourceGroup Name of the resource group.
1957
+ * @param registrationName Name of the Azure Stack registration.
1958
+ * @param productName Name of the product.
1959
+ * @param options The options parameters.
1960
+ */
1961
+ get(resourceGroup, registrationName, productName, options) {
1962
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, productName, options }, getOperationSpec$2);
1963
+ }
1964
+ /**
1965
+ * Returns the extended properties of a product.
1966
+ * @param resourceGroup Name of the resource group.
1967
+ * @param registrationName Name of the Azure Stack registration.
1968
+ * @param productName Name of the product.
1969
+ * @param options The options parameters.
1970
+ */
1971
+ listDetails(resourceGroup, registrationName, productName, options) {
1972
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, productName, options }, listDetailsOperationSpec);
1973
+ }
1974
+ /**
1975
+ * Returns a list of products.
1976
+ * @param resourceGroup Name of the resource group.
1977
+ * @param registrationName Name of the Azure Stack registration.
1978
+ * @param productName Name of the product.
1979
+ * @param options The options parameters.
1980
+ */
1981
+ getProducts(resourceGroup, registrationName, productName, options) {
1982
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, productName, options }, getProductsOperationSpec);
1983
+ }
1984
+ /**
1985
+ * Returns the specified product.
1986
+ * @param resourceGroup Name of the resource group.
1987
+ * @param registrationName Name of the Azure Stack registration.
1988
+ * @param productName Name of the product.
1989
+ * @param options The options parameters.
1990
+ */
1991
+ getProduct(resourceGroup, registrationName, productName, options) {
1992
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, productName, options }, getProductOperationSpec);
1993
+ }
1994
+ /**
1995
+ * Returns the specified product.
1996
+ * @param resourceGroup Name of the resource group.
1997
+ * @param registrationName Name of the Azure Stack registration.
1998
+ * @param productName Name of the product.
1999
+ * @param options The options parameters.
2000
+ */
2001
+ uploadLog(resourceGroup, registrationName, productName, options) {
2002
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, productName, options }, uploadLogOperationSpec);
2003
+ }
2004
+ /**
2005
+ * ListNext
2006
+ * @param resourceGroup Name of the resource group.
2007
+ * @param registrationName Name of the Azure Stack registration.
2008
+ * @param nextLink The nextLink from the previous successful call to the List method.
2009
+ * @param options The options parameters.
2010
+ */
2011
+ _listNext(resourceGroup, registrationName, nextLink, options) {
2012
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, nextLink, options }, listNextOperationSpec$2);
2013
+ }
2014
+ }
2015
+ // Operation Specifications
2016
+ const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
2017
+ const listOperationSpec$3 = {
2018
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products",
2019
+ httpMethod: "GET",
2020
+ responses: {
2021
+ 200: {
2022
+ bodyMapper: ProductList
2023
+ },
2024
+ default: {
2025
+ bodyMapper: ErrorResponse
2026
+ }
2027
+ },
2028
+ queryParameters: [apiVersion],
2029
+ urlParameters: [
2030
+ $host,
2031
+ subscriptionId,
2032
+ resourceGroup,
2033
+ registrationName
2034
+ ],
2035
+ headerParameters: [accept],
2036
+ serializer: serializer$3
2037
+ };
2038
+ const getOperationSpec$2 = {
2039
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}",
2040
+ httpMethod: "GET",
2041
+ responses: {
2042
+ 200: {
2043
+ bodyMapper: Product
2044
+ },
2045
+ default: {
2046
+ bodyMapper: ErrorResponse
2047
+ }
2048
+ },
2049
+ queryParameters: [apiVersion],
2050
+ urlParameters: [
2051
+ $host,
2052
+ subscriptionId,
2053
+ resourceGroup,
2054
+ registrationName,
2055
+ productName
2056
+ ],
2057
+ headerParameters: [accept],
2058
+ serializer: serializer$3
2059
+ };
2060
+ const listDetailsOperationSpec = {
2061
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/listDetails",
2062
+ httpMethod: "POST",
2063
+ responses: {
2064
+ 200: {
2065
+ bodyMapper: ExtendedProduct
2066
+ },
2067
+ default: {
2068
+ bodyMapper: ErrorResponse
2069
+ }
2070
+ },
2071
+ queryParameters: [apiVersion],
2072
+ urlParameters: [
2073
+ $host,
2074
+ subscriptionId,
2075
+ resourceGroup,
2076
+ registrationName,
2077
+ productName
2078
+ ],
2079
+ headerParameters: [accept],
2080
+ serializer: serializer$3
2081
+ };
2082
+ const getProductsOperationSpec = {
2083
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/getProducts",
2084
+ httpMethod: "POST",
2085
+ responses: {
2086
+ 200: {
2087
+ bodyMapper: ProductList
2088
+ },
2089
+ default: {
2090
+ bodyMapper: ErrorResponse
2091
+ }
2092
+ },
2093
+ requestBody: deviceConfiguration,
2094
+ queryParameters: [apiVersion],
2095
+ urlParameters: [
2096
+ $host,
2097
+ subscriptionId,
2098
+ resourceGroup,
2099
+ registrationName,
2100
+ productName
2101
+ ],
2102
+ headerParameters: [accept, contentType],
2103
+ mediaType: "json",
2104
+ serializer: serializer$3
2105
+ };
2106
+ const getProductOperationSpec = {
2107
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/getProduct",
2108
+ httpMethod: "POST",
2109
+ responses: {
2110
+ 200: {
2111
+ bodyMapper: Product
2112
+ },
2113
+ default: {
2114
+ bodyMapper: ErrorResponse
2115
+ }
2116
+ },
2117
+ requestBody: deviceConfiguration,
2118
+ queryParameters: [apiVersion],
2119
+ urlParameters: [
2120
+ $host,
2121
+ subscriptionId,
2122
+ resourceGroup,
2123
+ registrationName,
2124
+ productName
2125
+ ],
2126
+ headerParameters: [accept, contentType],
2127
+ mediaType: "json",
2128
+ serializer: serializer$3
2129
+ };
2130
+ const uploadLogOperationSpec = {
2131
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/uploadProductLog",
2132
+ httpMethod: "POST",
2133
+ responses: {
2134
+ 200: {
2135
+ bodyMapper: ProductLog
2136
+ },
2137
+ default: {
2138
+ bodyMapper: ErrorResponse
2139
+ }
2140
+ },
2141
+ requestBody: marketplaceProductLogUpdate,
2142
+ queryParameters: [apiVersion],
2143
+ urlParameters: [
2144
+ $host,
2145
+ subscriptionId,
2146
+ resourceGroup,
2147
+ registrationName,
2148
+ productName
2149
+ ],
2150
+ headerParameters: [accept, contentType],
2151
+ mediaType: "json",
2152
+ serializer: serializer$3
2153
+ };
2154
+ const listNextOperationSpec$2 = {
2155
+ path: "{nextLink}",
2156
+ httpMethod: "GET",
2157
+ responses: {
2158
+ 200: {
2159
+ bodyMapper: ProductList
2160
+ },
2161
+ default: {
2162
+ bodyMapper: ErrorResponse
2163
+ }
2164
+ },
2165
+ queryParameters: [apiVersion],
2166
+ urlParameters: [
2167
+ $host,
2168
+ nextLink,
2169
+ subscriptionId,
2170
+ resourceGroup,
2171
+ registrationName
2172
+ ],
2173
+ headerParameters: [accept],
2174
+ serializer: serializer$3
2175
+ };
2176
+
2177
+ /*
2178
+ * Copyright (c) Microsoft Corporation.
2179
+ * Licensed under the MIT License.
2180
+ *
2181
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2182
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2183
+ */
2184
+ /// <reference lib="esnext.asynciterable" />
2185
+ /** Class containing Registrations operations. */
2186
+ class RegistrationsImpl {
2187
+ /**
2188
+ * Initialize a new instance of the class Registrations class.
2189
+ * @param client Reference to the service client
2190
+ */
2191
+ constructor(client) {
2192
+ this.client = client;
2193
+ }
2194
+ /**
2195
+ * Returns a list of all registrations.
2196
+ * @param resourceGroup Name of the resource group.
2197
+ * @param options The options parameters.
2198
+ */
2199
+ list(resourceGroup, options) {
2200
+ const iter = this.listPagingAll(resourceGroup, options);
2201
+ return {
2202
+ next() {
2203
+ return iter.next();
2204
+ },
2205
+ [Symbol.asyncIterator]() {
2206
+ return this;
2207
+ },
2208
+ byPage: () => {
2209
+ return this.listPagingPage(resourceGroup, options);
2210
+ }
2211
+ };
2212
+ }
2213
+ listPagingPage(resourceGroup, options) {
2214
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2215
+ let result = yield tslib.__await(this._list(resourceGroup, options));
2216
+ yield yield tslib.__await(result.value || []);
2217
+ let continuationToken = result.nextLink;
2218
+ while (continuationToken) {
2219
+ result = yield tslib.__await(this._listNext(resourceGroup, continuationToken, options));
2220
+ continuationToken = result.nextLink;
2221
+ yield yield tslib.__await(result.value || []);
2222
+ }
2223
+ });
2224
+ }
2225
+ listPagingAll(resourceGroup, options) {
2226
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2227
+ var e_1, _a;
2228
+ try {
2229
+ for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroup, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2230
+ const page = _c.value;
2231
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2232
+ }
2233
+ }
2234
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
2235
+ finally {
2236
+ try {
2237
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2238
+ }
2239
+ finally { if (e_1) throw e_1.error; }
2240
+ }
2241
+ });
2242
+ }
2243
+ /**
2244
+ * Returns a list of all registrations under current subscription.
2245
+ * @param options The options parameters.
2246
+ */
2247
+ listBySubscription(options) {
2248
+ const iter = this.listBySubscriptionPagingAll(options);
2249
+ return {
2250
+ next() {
2251
+ return iter.next();
2252
+ },
2253
+ [Symbol.asyncIterator]() {
2254
+ return this;
2255
+ },
2256
+ byPage: () => {
2257
+ return this.listBySubscriptionPagingPage(options);
2258
+ }
2259
+ };
2260
+ }
2261
+ listBySubscriptionPagingPage(options) {
2262
+ return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
2263
+ let result = yield tslib.__await(this._listBySubscription(options));
2264
+ yield yield tslib.__await(result.value || []);
2265
+ let continuationToken = result.nextLink;
2266
+ while (continuationToken) {
2267
+ result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
2268
+ continuationToken = result.nextLink;
2269
+ yield yield tslib.__await(result.value || []);
2270
+ }
2271
+ });
2272
+ }
2273
+ listBySubscriptionPagingAll(options) {
2274
+ return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
2275
+ var e_2, _a;
2276
+ try {
2277
+ for (var _b = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2278
+ const page = _c.value;
2279
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2280
+ }
2281
+ }
2282
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
2283
+ finally {
2284
+ try {
2285
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2286
+ }
2287
+ finally { if (e_2) throw e_2.error; }
2288
+ }
2289
+ });
2290
+ }
2291
+ /**
2292
+ * Returns a list of all registrations.
2293
+ * @param resourceGroup Name of the resource group.
2294
+ * @param options The options parameters.
2295
+ */
2296
+ _list(resourceGroup, options) {
2297
+ return this.client.sendOperationRequest({ resourceGroup, options }, listOperationSpec$4);
2298
+ }
2299
+ /**
2300
+ * Returns a list of all registrations under current subscription.
2301
+ * @param options The options parameters.
2302
+ */
2303
+ _listBySubscription(options) {
2304
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
2305
+ }
2306
+ /**
2307
+ * Returns the properties of an Azure Stack registration.
2308
+ * @param resourceGroup Name of the resource group.
2309
+ * @param registrationName Name of the Azure Stack registration.
2310
+ * @param options The options parameters.
2311
+ */
2312
+ get(resourceGroup, registrationName, options) {
2313
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, options }, getOperationSpec$3);
2314
+ }
2315
+ /**
2316
+ * Delete the requested Azure Stack registration.
2317
+ * @param resourceGroup Name of the resource group.
2318
+ * @param registrationName Name of the Azure Stack registration.
2319
+ * @param options The options parameters.
2320
+ */
2321
+ delete(resourceGroup, registrationName, options) {
2322
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, options }, deleteOperationSpec$1);
2323
+ }
2324
+ /**
2325
+ * Create or update an Azure Stack registration.
2326
+ * @param resourceGroup Name of the resource group.
2327
+ * @param registrationName Name of the Azure Stack registration.
2328
+ * @param token Registration token
2329
+ * @param options The options parameters.
2330
+ */
2331
+ createOrUpdate(resourceGroup, registrationName, token, options) {
2332
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, token, options }, createOrUpdateOperationSpec);
2333
+ }
2334
+ /**
2335
+ * Patch an Azure Stack registration.
2336
+ * @param resourceGroup Name of the resource group.
2337
+ * @param registrationName Name of the Azure Stack registration.
2338
+ * @param token Registration token
2339
+ * @param options The options parameters.
2340
+ */
2341
+ update(resourceGroup, registrationName, token, options) {
2342
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, token, options }, updateOperationSpec);
2343
+ }
2344
+ /**
2345
+ * Returns Azure Stack Activation Key.
2346
+ * @param resourceGroup Name of the resource group.
2347
+ * @param registrationName Name of the Azure Stack registration.
2348
+ * @param options The options parameters.
2349
+ */
2350
+ getActivationKey(resourceGroup, registrationName, options) {
2351
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, options }, getActivationKeyOperationSpec);
2352
+ }
2353
+ /**
2354
+ * Enables remote management for device under the Azure Stack registration.
2355
+ * @param resourceGroup Name of the resource group.
2356
+ * @param registrationName Name of the Azure Stack registration.
2357
+ * @param options The options parameters.
2358
+ */
2359
+ enableRemoteManagement(resourceGroup, registrationName, options) {
2360
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, options }, enableRemoteManagementOperationSpec);
2361
+ }
2362
+ /**
2363
+ * ListNext
2364
+ * @param resourceGroup Name of the resource group.
2365
+ * @param nextLink The nextLink from the previous successful call to the List method.
2366
+ * @param options The options parameters.
2367
+ */
2368
+ _listNext(resourceGroup, nextLink, options) {
2369
+ return this.client.sendOperationRequest({ resourceGroup, nextLink, options }, listNextOperationSpec$3);
2370
+ }
2371
+ /**
2372
+ * ListBySubscriptionNext
2373
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
2374
+ * @param options The options parameters.
2375
+ */
2376
+ _listBySubscriptionNext(nextLink, options) {
2377
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
2378
+ }
2379
+ }
2380
+ // Operation Specifications
2381
+ const serializer$4 = coreClient.createSerializer(Mappers, /* isXml */ false);
2382
+ const listOperationSpec$4 = {
2383
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations",
2384
+ httpMethod: "GET",
2385
+ responses: {
2386
+ 200: {
2387
+ bodyMapper: RegistrationList
2388
+ },
2389
+ default: {
2390
+ bodyMapper: ErrorResponse
2391
+ }
2392
+ },
2393
+ queryParameters: [apiVersion],
2394
+ urlParameters: [
2395
+ $host,
2396
+ subscriptionId,
2397
+ resourceGroup
2398
+ ],
2399
+ headerParameters: [accept],
2400
+ serializer: serializer$4
2401
+ };
2402
+ const listBySubscriptionOperationSpec = {
2403
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStack/registrations",
2404
+ httpMethod: "GET",
2405
+ responses: {
2406
+ 200: {
2407
+ bodyMapper: RegistrationList
2408
+ },
2409
+ default: {
2410
+ bodyMapper: ErrorResponse
2411
+ }
2412
+ },
2413
+ queryParameters: [apiVersion],
2414
+ urlParameters: [$host, subscriptionId],
2415
+ headerParameters: [accept],
2416
+ serializer: serializer$4
2417
+ };
2418
+ const getOperationSpec$3 = {
2419
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}",
2420
+ httpMethod: "GET",
2421
+ responses: {
2422
+ 200: {
2423
+ bodyMapper: Registration
2424
+ },
2425
+ default: {
2426
+ bodyMapper: ErrorResponse
2427
+ }
2428
+ },
2429
+ queryParameters: [apiVersion],
2430
+ urlParameters: [
2431
+ $host,
2432
+ subscriptionId,
2433
+ resourceGroup,
2434
+ registrationName
2435
+ ],
2436
+ headerParameters: [accept],
2437
+ serializer: serializer$4
2438
+ };
2439
+ const deleteOperationSpec$1 = {
2440
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}",
2441
+ httpMethod: "DELETE",
2442
+ responses: {
2443
+ 200: {},
2444
+ 204: {},
2445
+ default: {
2446
+ bodyMapper: ErrorResponse
2447
+ }
2448
+ },
2449
+ queryParameters: [apiVersion],
2450
+ urlParameters: [
2451
+ $host,
2452
+ subscriptionId,
2453
+ resourceGroup,
2454
+ registrationName
2455
+ ],
2456
+ headerParameters: [accept],
2457
+ serializer: serializer$4
2458
+ };
2459
+ const createOrUpdateOperationSpec = {
2460
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}",
2461
+ httpMethod: "PUT",
2462
+ responses: {
2463
+ 200: {
2464
+ bodyMapper: Registration
2465
+ },
2466
+ 201: {
2467
+ bodyMapper: Registration
2468
+ },
2469
+ default: {
2470
+ bodyMapper: ErrorResponse
2471
+ }
2472
+ },
2473
+ requestBody: token,
2474
+ queryParameters: [apiVersion],
2475
+ urlParameters: [
2476
+ $host,
2477
+ subscriptionId,
2478
+ resourceGroup,
2479
+ registrationName
2480
+ ],
2481
+ headerParameters: [accept, contentType],
2482
+ mediaType: "json",
2483
+ serializer: serializer$4
2484
+ };
2485
+ const updateOperationSpec = {
2486
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}",
2487
+ httpMethod: "PATCH",
2488
+ responses: {
2489
+ 200: {
2490
+ bodyMapper: Registration
2491
+ },
2492
+ default: {
2493
+ bodyMapper: ErrorResponse
2494
+ }
2495
+ },
2496
+ requestBody: token,
2497
+ queryParameters: [apiVersion],
2498
+ urlParameters: [
2499
+ $host,
2500
+ subscriptionId,
2501
+ resourceGroup,
2502
+ registrationName
2503
+ ],
2504
+ headerParameters: [accept, contentType],
2505
+ mediaType: "json",
2506
+ serializer: serializer$4
2507
+ };
2508
+ const getActivationKeyOperationSpec = {
2509
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/getactivationkey",
2510
+ httpMethod: "POST",
2511
+ responses: {
2512
+ 200: {
2513
+ bodyMapper: ActivationKeyResult
2514
+ },
2515
+ default: {
2516
+ bodyMapper: ErrorResponse
2517
+ }
2518
+ },
2519
+ queryParameters: [apiVersion],
2520
+ urlParameters: [
2521
+ $host,
2522
+ subscriptionId,
2523
+ resourceGroup,
2524
+ registrationName
2525
+ ],
2526
+ headerParameters: [accept],
2527
+ serializer: serializer$4
2528
+ };
2529
+ const enableRemoteManagementOperationSpec = {
2530
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/enableRemoteManagement",
2531
+ httpMethod: "POST",
2532
+ responses: {
2533
+ 200: {},
2534
+ default: {
2535
+ bodyMapper: ErrorResponse
2536
+ }
2537
+ },
2538
+ urlParameters: [
2539
+ $host,
2540
+ subscriptionId,
2541
+ resourceGroup,
2542
+ registrationName
2543
+ ],
2544
+ headerParameters: [accept],
2545
+ serializer: serializer$4
2546
+ };
2547
+ const listNextOperationSpec$3 = {
2548
+ path: "{nextLink}",
2549
+ httpMethod: "GET",
2550
+ responses: {
2551
+ 200: {
2552
+ bodyMapper: RegistrationList
2553
+ },
2554
+ default: {
2555
+ bodyMapper: ErrorResponse
2556
+ }
2557
+ },
2558
+ queryParameters: [apiVersion],
2559
+ urlParameters: [
2560
+ $host,
2561
+ nextLink,
2562
+ subscriptionId,
2563
+ resourceGroup
2564
+ ],
2565
+ headerParameters: [accept],
2566
+ serializer: serializer$4
2567
+ };
2568
+ const listBySubscriptionNextOperationSpec = {
2569
+ path: "{nextLink}",
2570
+ httpMethod: "GET",
2571
+ responses: {
2572
+ 200: {
2573
+ bodyMapper: RegistrationList
2574
+ },
2575
+ default: {
2576
+ bodyMapper: ErrorResponse
2577
+ }
2578
+ },
2579
+ queryParameters: [apiVersion],
2580
+ urlParameters: [
2581
+ $host,
2582
+ nextLink,
2583
+ subscriptionId
2584
+ ],
2585
+ headerParameters: [accept],
2586
+ serializer: serializer$4
2587
+ };
2588
+
2589
+ /*
2590
+ * Copyright (c) Microsoft Corporation.
2591
+ * Licensed under the MIT License.
2592
+ *
2593
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2594
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2595
+ */
2596
+ /// <reference lib="esnext.asynciterable" />
2597
+ /** Class containing LinkedSubscriptions operations. */
2598
+ class LinkedSubscriptionsImpl {
2599
+ /**
2600
+ * Initialize a new instance of the class LinkedSubscriptions class.
2601
+ * @param client Reference to the service client
2602
+ */
2603
+ constructor(client) {
2604
+ this.client = client;
2605
+ }
2606
+ /**
2607
+ * Returns a list of all linked subscriptions under current resource group.
2608
+ * @param resourceGroup Name of the resource group.
2609
+ * @param options The options parameters.
2610
+ */
2611
+ listByResourceGroup(resourceGroup, options) {
2612
+ const iter = this.listByResourceGroupPagingAll(resourceGroup, options);
2613
+ return {
2614
+ next() {
2615
+ return iter.next();
2616
+ },
2617
+ [Symbol.asyncIterator]() {
2618
+ return this;
2619
+ },
2620
+ byPage: () => {
2621
+ return this.listByResourceGroupPagingPage(resourceGroup, options);
2622
+ }
2623
+ };
2624
+ }
2625
+ listByResourceGroupPagingPage(resourceGroup, options) {
2626
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
2627
+ let result = yield tslib.__await(this._listByResourceGroup(resourceGroup, options));
2628
+ yield yield tslib.__await(result.value || []);
2629
+ let continuationToken = result.nextLink;
2630
+ while (continuationToken) {
2631
+ result = yield tslib.__await(this._listByResourceGroupNext(resourceGroup, continuationToken, options));
2632
+ continuationToken = result.nextLink;
2633
+ yield yield tslib.__await(result.value || []);
2634
+ }
2635
+ });
2636
+ }
2637
+ listByResourceGroupPagingAll(resourceGroup, options) {
2638
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
2639
+ var e_1, _a;
2640
+ try {
2641
+ for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroup, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2642
+ const page = _c.value;
2643
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2644
+ }
2645
+ }
2646
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
2647
+ finally {
2648
+ try {
2649
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2650
+ }
2651
+ finally { if (e_1) throw e_1.error; }
2652
+ }
2653
+ });
2654
+ }
2655
+ /**
2656
+ * Returns a list of all linked subscriptions under current subscription.
2657
+ * @param options The options parameters.
2658
+ */
2659
+ listBySubscription(options) {
2660
+ const iter = this.listBySubscriptionPagingAll(options);
2661
+ return {
2662
+ next() {
2663
+ return iter.next();
2664
+ },
2665
+ [Symbol.asyncIterator]() {
2666
+ return this;
2667
+ },
2668
+ byPage: () => {
2669
+ return this.listBySubscriptionPagingPage(options);
2670
+ }
2671
+ };
2672
+ }
2673
+ listBySubscriptionPagingPage(options) {
2674
+ return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
2675
+ let result = yield tslib.__await(this._listBySubscription(options));
2676
+ yield yield tslib.__await(result.value || []);
2677
+ let continuationToken = result.nextLink;
2678
+ while (continuationToken) {
2679
+ result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
2680
+ continuationToken = result.nextLink;
2681
+ yield yield tslib.__await(result.value || []);
2682
+ }
2683
+ });
2684
+ }
2685
+ listBySubscriptionPagingAll(options) {
2686
+ return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
2687
+ var e_2, _a;
2688
+ try {
2689
+ for (var _b = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2690
+ const page = _c.value;
2691
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2692
+ }
2693
+ }
2694
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
2695
+ finally {
2696
+ try {
2697
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2698
+ }
2699
+ finally { if (e_2) throw e_2.error; }
2700
+ }
2701
+ });
2702
+ }
2703
+ /**
2704
+ * Returns a list of all linked subscriptions under current resource group.
2705
+ * @param resourceGroup Name of the resource group.
2706
+ * @param options The options parameters.
2707
+ */
2708
+ _listByResourceGroup(resourceGroup, options) {
2709
+ return this.client.sendOperationRequest({ resourceGroup, options }, listByResourceGroupOperationSpec);
2710
+ }
2711
+ /**
2712
+ * Returns a list of all linked subscriptions under current subscription.
2713
+ * @param options The options parameters.
2714
+ */
2715
+ _listBySubscription(options) {
2716
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$1);
2717
+ }
2718
+ /**
2719
+ * Returns the properties of a Linked Subscription resource.
2720
+ * @param resourceGroup Name of the resource group.
2721
+ * @param linkedSubscriptionName Name of the Linked Subscription resource.
2722
+ * @param options The options parameters.
2723
+ */
2724
+ get(resourceGroup, linkedSubscriptionName, options) {
2725
+ return this.client.sendOperationRequest({ resourceGroup, linkedSubscriptionName, options }, getOperationSpec$4);
2726
+ }
2727
+ /**
2728
+ * Delete the requested Linked Subscription resource.
2729
+ * @param resourceGroup Name of the resource group.
2730
+ * @param linkedSubscriptionName Name of the Linked Subscription resource.
2731
+ * @param options The options parameters.
2732
+ */
2733
+ delete(resourceGroup, linkedSubscriptionName, options) {
2734
+ return this.client.sendOperationRequest({ resourceGroup, linkedSubscriptionName, options }, deleteOperationSpec$2);
2735
+ }
2736
+ /**
2737
+ * Create or update a linked subscription resource.
2738
+ * @param resourceGroup Name of the resource group.
2739
+ * @param linkedSubscriptionName Name of the Linked Subscription resource.
2740
+ * @param resource Linked subscription resource parameter.
2741
+ * @param options The options parameters.
2742
+ */
2743
+ createOrUpdate(resourceGroup, linkedSubscriptionName, resource, options) {
2744
+ return this.client.sendOperationRequest({ resourceGroup, linkedSubscriptionName, resource, options }, createOrUpdateOperationSpec$1);
2745
+ }
2746
+ /**
2747
+ * Patch a Linked Subscription resource.
2748
+ * @param resourceGroup Name of the resource group.
2749
+ * @param linkedSubscriptionName Name of the Linked Subscription resource.
2750
+ * @param resource Linked subscription resource parameter.
2751
+ * @param options The options parameters.
2752
+ */
2753
+ update(resourceGroup, linkedSubscriptionName, resource, options) {
2754
+ return this.client.sendOperationRequest({ resourceGroup, linkedSubscriptionName, resource, options }, updateOperationSpec$1);
2755
+ }
2756
+ /**
2757
+ * ListByResourceGroupNext
2758
+ * @param resourceGroup Name of the resource group.
2759
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
2760
+ * @param options The options parameters.
2761
+ */
2762
+ _listByResourceGroupNext(resourceGroup, nextLink, options) {
2763
+ return this.client.sendOperationRequest({ resourceGroup, nextLink, options }, listByResourceGroupNextOperationSpec);
2764
+ }
2765
+ /**
2766
+ * ListBySubscriptionNext
2767
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
2768
+ * @param options The options parameters.
2769
+ */
2770
+ _listBySubscriptionNext(nextLink, options) {
2771
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec$1);
2772
+ }
2773
+ }
2774
+ // Operation Specifications
2775
+ const serializer$5 = coreClient.createSerializer(Mappers, /* isXml */ false);
2776
+ const listByResourceGroupOperationSpec = {
2777
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions",
2778
+ httpMethod: "GET",
2779
+ responses: {
2780
+ 200: {
2781
+ bodyMapper: LinkedSubscriptionsList
2782
+ },
2783
+ default: {
2784
+ bodyMapper: ErrorResponse
2785
+ }
2786
+ },
2787
+ queryParameters: [apiVersion],
2788
+ urlParameters: [
2789
+ $host,
2790
+ subscriptionId,
2791
+ resourceGroup
2792
+ ],
2793
+ headerParameters: [accept],
2794
+ serializer: serializer$5
2795
+ };
2796
+ const listBySubscriptionOperationSpec$1 = {
2797
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStack/linkedSubscriptions",
2798
+ httpMethod: "GET",
2799
+ responses: {
2800
+ 200: {
2801
+ bodyMapper: LinkedSubscriptionsList
2802
+ },
2803
+ default: {
2804
+ bodyMapper: ErrorResponse
2805
+ }
2806
+ },
2807
+ queryParameters: [apiVersion],
2808
+ urlParameters: [$host, subscriptionId],
2809
+ headerParameters: [accept],
2810
+ serializer: serializer$5
2811
+ };
2812
+ const getOperationSpec$4 = {
2813
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}",
2814
+ httpMethod: "GET",
2815
+ responses: {
2816
+ 200: {
2817
+ bodyMapper: LinkedSubscription
2818
+ },
2819
+ default: {
2820
+ bodyMapper: ErrorResponse
2821
+ }
2822
+ },
2823
+ queryParameters: [apiVersion],
2824
+ urlParameters: [
2825
+ $host,
2826
+ subscriptionId,
2827
+ resourceGroup,
2828
+ linkedSubscriptionName
2829
+ ],
2830
+ headerParameters: [accept],
2831
+ serializer: serializer$5
2832
+ };
2833
+ const deleteOperationSpec$2 = {
2834
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}",
2835
+ httpMethod: "DELETE",
2836
+ responses: {
2837
+ 200: {},
2838
+ 204: {},
2839
+ default: {
2840
+ bodyMapper: ErrorResponse
2841
+ }
2842
+ },
2843
+ queryParameters: [apiVersion],
2844
+ urlParameters: [
2845
+ $host,
2846
+ subscriptionId,
2847
+ resourceGroup,
2848
+ linkedSubscriptionName
2849
+ ],
2850
+ headerParameters: [accept],
2851
+ serializer: serializer$5
2852
+ };
2853
+ const createOrUpdateOperationSpec$1 = {
2854
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}",
2855
+ httpMethod: "PUT",
2856
+ responses: {
2857
+ 200: {
2858
+ bodyMapper: LinkedSubscription
2859
+ },
2860
+ 201: {
2861
+ bodyMapper: LinkedSubscription
2862
+ },
2863
+ default: {
2864
+ bodyMapper: ErrorResponse
2865
+ }
2866
+ },
2867
+ requestBody: resource,
2868
+ queryParameters: [apiVersion],
2869
+ urlParameters: [
2870
+ $host,
2871
+ subscriptionId,
2872
+ resourceGroup,
2873
+ linkedSubscriptionName
2874
+ ],
2875
+ headerParameters: [accept, contentType],
2876
+ mediaType: "json",
2877
+ serializer: serializer$5
2878
+ };
2879
+ const updateOperationSpec$1 = {
2880
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}",
2881
+ httpMethod: "PATCH",
2882
+ responses: {
2883
+ 200: {
2884
+ bodyMapper: LinkedSubscription
2885
+ },
2886
+ default: {
2887
+ bodyMapper: ErrorResponse
2888
+ }
2889
+ },
2890
+ requestBody: resource,
2891
+ queryParameters: [apiVersion],
2892
+ urlParameters: [
2893
+ $host,
2894
+ subscriptionId,
2895
+ resourceGroup,
2896
+ linkedSubscriptionName
2897
+ ],
2898
+ headerParameters: [accept, contentType],
2899
+ mediaType: "json",
2900
+ serializer: serializer$5
2901
+ };
2902
+ const listByResourceGroupNextOperationSpec = {
2903
+ path: "{nextLink}",
2904
+ httpMethod: "GET",
2905
+ responses: {
2906
+ 200: {
2907
+ bodyMapper: LinkedSubscriptionsList
2908
+ },
2909
+ default: {
2910
+ bodyMapper: ErrorResponse
2911
+ }
2912
+ },
2913
+ queryParameters: [apiVersion],
2914
+ urlParameters: [
2915
+ $host,
2916
+ nextLink,
2917
+ subscriptionId,
2918
+ resourceGroup
2919
+ ],
2920
+ headerParameters: [accept],
2921
+ serializer: serializer$5
2922
+ };
2923
+ const listBySubscriptionNextOperationSpec$1 = {
2924
+ path: "{nextLink}",
2925
+ httpMethod: "GET",
2926
+ responses: {
2927
+ 200: {
2928
+ bodyMapper: LinkedSubscriptionsList
2929
+ },
2930
+ default: {
2931
+ bodyMapper: ErrorResponse
2932
+ }
2933
+ },
2934
+ queryParameters: [apiVersion],
2935
+ urlParameters: [
2936
+ $host,
2937
+ nextLink,
2938
+ subscriptionId
2939
+ ],
2940
+ headerParameters: [accept],
2941
+ serializer: serializer$5
2942
+ };
2943
+
2944
+ /*
2945
+ * Copyright (c) Microsoft Corporation.
2946
+ * Licensed under the MIT License.
2947
+ *
2948
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2949
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2950
+ */
2951
+ class AzureStackManagementClient extends coreClient.ServiceClient {
2952
+ /**
2953
+ * Initializes a new instance of the AzureStackManagementClient class.
2954
+ * @param credentials Subscription credentials which uniquely identify client subscription.
2955
+ * @param subscriptionId Subscription credentials that uniquely identify Microsoft Azure subscription.
2956
+ * The subscription ID forms part of the URI for every service call.
2957
+ * @param options The parameter options
2958
+ */
2959
+ constructor(credentials, subscriptionId, options) {
2960
+ if (credentials === undefined) {
2961
+ throw new Error("'credentials' cannot be null");
2962
+ }
2963
+ if (subscriptionId === undefined) {
2964
+ throw new Error("'subscriptionId' cannot be null");
2965
+ }
2966
+ // Initializing default values for options
2967
+ if (!options) {
2968
+ options = {};
2969
+ }
2970
+ const defaults = {
2971
+ requestContentType: "application/json; charset=utf-8",
2972
+ credential: credentials
2973
+ };
2974
+ const packageDetails = `azsdk-js-arm-azurestack/3.0.0-beta.1`;
2975
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
2976
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
2977
+ : `${packageDetails}`;
2978
+ if (!options.credentialScopes) {
2979
+ options.credentialScopes = ["https://management.azure.com/.default"];
2980
+ }
2981
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
2982
+ userAgentPrefix
2983
+ }, baseUri: options.endpoint || "https://management.azure.com" });
2984
+ super(optionsWithDefaults);
2985
+ // Parameter assignments
2986
+ this.subscriptionId = subscriptionId;
2987
+ // Assigning values to Constant parameters
2988
+ this.$host = options.$host || "https://management.azure.com";
2989
+ this.apiVersion = options.apiVersion || "2020-06-01-preview";
2990
+ this.operations = new OperationsImpl(this);
2991
+ this.cloudManifestFile = new CloudManifestFileImpl(this);
2992
+ this.customerSubscriptions = new CustomerSubscriptionsImpl(this);
2993
+ this.products = new ProductsImpl(this);
2994
+ this.registrations = new RegistrationsImpl(this);
2995
+ this.linkedSubscriptions = new LinkedSubscriptionsImpl(this);
2996
+ }
2997
+ }
2998
+
2999
+ exports.AzureStackManagementClient = AzureStackManagementClient;
3000
+ //# sourceMappingURL=index.js.map