@azure/arm-managementpartner 0.1.0 → 2.0.0

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 (152) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +75 -75
  4. package/dist/index.js +634 -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/samples-dev/deletePartnerDetails.d.ts +2 -0
  9. package/dist-esm/samples-dev/deletePartnerDetails.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/deletePartnerDetails.js +29 -0
  11. package/dist-esm/samples-dev/deletePartnerDetails.js.map +1 -0
  12. package/dist-esm/samples-dev/getOperations.d.ts +2 -0
  13. package/dist-esm/samples-dev/getOperations.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/getOperations.js +42 -0
  15. package/dist-esm/samples-dev/getOperations.js.map +1 -0
  16. package/dist-esm/samples-dev/getPartnerDetails.d.ts +2 -0
  17. package/dist-esm/samples-dev/getPartnerDetails.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/getPartnerDetails.js +28 -0
  19. package/dist-esm/samples-dev/getPartnerDetails.js.map +1 -0
  20. package/dist-esm/samples-dev/patchPartnerDetails.d.ts +2 -0
  21. package/dist-esm/samples-dev/patchPartnerDetails.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/patchPartnerDetails.js +29 -0
  23. package/dist-esm/samples-dev/patchPartnerDetails.js.map +1 -0
  24. package/dist-esm/samples-dev/putPartnerDetails.d.ts +2 -0
  25. package/dist-esm/samples-dev/putPartnerDetails.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/putPartnerDetails.js +29 -0
  27. package/dist-esm/samples-dev/putPartnerDetails.js.map +1 -0
  28. package/dist-esm/src/aCEProvisioningManagementPartnerAPI.d.ts +18 -0
  29. package/dist-esm/src/aCEProvisioningManagementPartnerAPI.d.ts.map +1 -0
  30. package/dist-esm/src/aCEProvisioningManagementPartnerAPI.js +47 -0
  31. package/dist-esm/src/aCEProvisioningManagementPartnerAPI.js.map +1 -0
  32. package/dist-esm/src/index.d.ts +5 -0
  33. package/dist-esm/src/index.d.ts.map +1 -0
  34. package/dist-esm/src/index.js +12 -0
  35. package/dist-esm/src/index.js.map +1 -0
  36. package/dist-esm/src/models/index.d.ts +137 -0
  37. package/dist-esm/src/models/index.d.ts.map +1 -0
  38. package/dist-esm/src/models/index.js +14 -0
  39. package/dist-esm/src/models/index.js.map +1 -0
  40. package/dist-esm/src/models/mappers.d.ts +8 -0
  41. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  42. package/{esm → dist-esm/src}/models/mappers.js +67 -66
  43. package/dist-esm/src/models/mappers.js.map +1 -0
  44. package/dist-esm/src/models/parameters.d.ts +7 -0
  45. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  46. package/{esm → dist-esm/src}/models/parameters.js +33 -22
  47. package/dist-esm/src/models/parameters.js.map +1 -0
  48. package/dist-esm/src/operations/index.d.ts +4 -0
  49. package/dist-esm/src/operations/index.d.ts.map +1 -0
  50. package/dist-esm/src/operations/index.js +11 -0
  51. package/dist-esm/src/operations/index.js.map +1 -0
  52. package/dist-esm/src/operations/operation.d.ts +32 -0
  53. package/dist-esm/src/operations/operation.d.ts.map +1 -0
  54. package/dist-esm/src/operations/operation.js +120 -0
  55. package/dist-esm/src/operations/operation.js.map +1 -0
  56. package/dist-esm/src/operations/partner.d.ts +37 -0
  57. package/dist-esm/src/operations/partner.d.ts.map +1 -0
  58. package/dist-esm/src/operations/partner.js +117 -0
  59. package/dist-esm/src/operations/partner.js.map +1 -0
  60. package/dist-esm/src/operations/partners.d.ts +18 -0
  61. package/dist-esm/src/operations/partners.d.ts.map +1 -0
  62. package/dist-esm/src/operations/partners.js +46 -0
  63. package/dist-esm/src/operations/partners.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
  65. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/index.js +11 -0
  67. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/operation.d.ts +11 -0
  69. package/dist-esm/src/operationsInterfaces/operation.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/operation.js +9 -0
  71. package/dist-esm/src/operationsInterfaces/operation.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/partner.d.ts +29 -0
  73. package/dist-esm/src/operationsInterfaces/partner.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/partner.js +9 -0
  75. package/dist-esm/src/operationsInterfaces/partner.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/partners.d.ts +10 -0
  77. package/dist-esm/src/operationsInterfaces/partners.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/partners.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/partners.js.map +1 -0
  80. package/dist-esm/test/sampleTest.d.ts +2 -0
  81. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  82. package/dist-esm/test/sampleTest.js +40 -0
  83. package/dist-esm/test/sampleTest.js.map +1 -0
  84. package/package.json +83 -34
  85. package/review/arm-managementpartner.api.md +160 -0
  86. package/rollup.config.js +184 -27
  87. package/src/aCEProvisioningManagementPartnerAPI.ts +71 -0
  88. package/src/index.ts +12 -0
  89. package/src/models/index.ts +166 -0
  90. package/{lib → src}/models/mappers.ts +68 -68
  91. package/src/models/parameters.ts +72 -0
  92. package/{lib → src}/operations/index.ts +4 -5
  93. package/src/operations/operation.ts +137 -0
  94. package/src/operations/partner.ts +160 -0
  95. package/src/operations/partners.ts +54 -0
  96. package/src/operationsInterfaces/index.ts +11 -0
  97. package/src/operationsInterfaces/operation.ts +22 -0
  98. package/src/operationsInterfaces/partner.ts +57 -0
  99. package/src/operationsInterfaces/partners.ts +18 -0
  100. package/tsconfig.json +6 -5
  101. package/types/arm-managementpartner.d.ts +222 -0
  102. package/types/tsdoc-metadata.json +11 -0
  103. package/dist/arm-managementpartner.js +0 -676
  104. package/dist/arm-managementpartner.js.map +0 -1
  105. package/dist/arm-managementpartner.min.js +0 -1
  106. package/dist/arm-managementpartner.min.js.map +0 -1
  107. package/esm/aCEProvisioningManagementPartnerAPI.d.ts +0 -18
  108. package/esm/aCEProvisioningManagementPartnerAPI.d.ts.map +0 -1
  109. package/esm/aCEProvisioningManagementPartnerAPI.js +0 -33
  110. package/esm/aCEProvisioningManagementPartnerAPI.js.map +0 -1
  111. package/esm/aCEProvisioningManagementPartnerAPIContext.d.ts +0 -14
  112. package/esm/aCEProvisioningManagementPartnerAPIContext.d.ts.map +0 -1
  113. package/esm/aCEProvisioningManagementPartnerAPIContext.js +0 -51
  114. package/esm/aCEProvisioningManagementPartnerAPIContext.js.map +0 -1
  115. package/esm/models/index.d.ts +0 -273
  116. package/esm/models/index.d.ts.map +0 -1
  117. package/esm/models/index.js +0 -10
  118. package/esm/models/index.js.map +0 -1
  119. package/esm/models/mappers.d.ts +0 -10
  120. package/esm/models/mappers.d.ts.map +0 -1
  121. package/esm/models/mappers.js.map +0 -1
  122. package/esm/models/operationMappers.d.ts +0 -2
  123. package/esm/models/operationMappers.d.ts.map +0 -1
  124. package/esm/models/operationMappers.js +0 -11
  125. package/esm/models/operationMappers.js.map +0 -1
  126. package/esm/models/parameters.d.ts +0 -6
  127. package/esm/models/parameters.d.ts.map +0 -1
  128. package/esm/models/parameters.js.map +0 -1
  129. package/esm/models/partnerMappers.d.ts +0 -2
  130. package/esm/models/partnerMappers.d.ts.map +0 -1
  131. package/esm/models/partnerMappers.js +0 -11
  132. package/esm/models/partnerMappers.js.map +0 -1
  133. package/esm/operations/index.d.ts +0 -3
  134. package/esm/operations/index.d.ts.map +0 -1
  135. package/esm/operations/index.js +0 -12
  136. package/esm/operations/index.js.map +0 -1
  137. package/esm/operations/operation.d.ts +0 -48
  138. package/esm/operations/operation.d.ts.map +0 -1
  139. package/esm/operations/operation.js +0 -77
  140. package/esm/operations/operation.js.map +0 -1
  141. package/esm/operations/partner.d.ts +0 -89
  142. package/esm/operations/partner.d.ts.map +0 -1
  143. package/esm/operations/partner.js +0 -137
  144. package/esm/operations/partner.js.map +0 -1
  145. package/lib/aCEProvisioningManagementPartnerAPI.ts +0 -43
  146. package/lib/aCEProvisioningManagementPartnerAPIContext.ts +0 -56
  147. package/lib/models/index.ts +0 -299
  148. package/lib/models/operationMappers.ts +0 -18
  149. package/lib/models/parameters.ts +0 -53
  150. package/lib/models/partnerMappers.ts +0 -17
  151. package/lib/operations/operation.ts +0 -125
  152. package/lib/operations/partner.ts +0 -236
package/dist/index.js ADDED
@@ -0,0 +1,634 @@
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 (KnownManagementPartnerState) {
16
+ KnownManagementPartnerState["Active"] = "Active";
17
+ KnownManagementPartnerState["Deleted"] = "Deleted";
18
+ })(exports.KnownManagementPartnerState || (exports.KnownManagementPartnerState = {}));
19
+
20
+ /*
21
+ * Copyright (c) Microsoft Corporation.
22
+ * Licensed under the MIT License.
23
+ *
24
+ * Code generated by Microsoft (R) AutoRest Code Generator.
25
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
26
+ */
27
+ const PartnerResponse = {
28
+ type: {
29
+ name: "Composite",
30
+ className: "PartnerResponse",
31
+ modelProperties: {
32
+ etag: {
33
+ serializedName: "etag",
34
+ type: {
35
+ name: "Number"
36
+ }
37
+ },
38
+ id: {
39
+ serializedName: "id",
40
+ readOnly: true,
41
+ type: {
42
+ name: "String"
43
+ }
44
+ },
45
+ name: {
46
+ serializedName: "name",
47
+ readOnly: true,
48
+ type: {
49
+ name: "String"
50
+ }
51
+ },
52
+ type: {
53
+ serializedName: "type",
54
+ readOnly: true,
55
+ type: {
56
+ name: "String"
57
+ }
58
+ },
59
+ partnerId: {
60
+ serializedName: "properties.partnerId",
61
+ type: {
62
+ name: "String"
63
+ }
64
+ },
65
+ partnerName: {
66
+ serializedName: "properties.partnerName",
67
+ type: {
68
+ name: "String"
69
+ }
70
+ },
71
+ tenantId: {
72
+ serializedName: "properties.tenantId",
73
+ type: {
74
+ name: "String"
75
+ }
76
+ },
77
+ objectId: {
78
+ serializedName: "properties.objectId",
79
+ type: {
80
+ name: "String"
81
+ }
82
+ },
83
+ version: {
84
+ serializedName: "properties.version",
85
+ type: {
86
+ name: "Number"
87
+ }
88
+ },
89
+ updatedTime: {
90
+ serializedName: "properties.updatedTime",
91
+ type: {
92
+ name: "DateTime"
93
+ }
94
+ },
95
+ createdTime: {
96
+ serializedName: "properties.createdTime",
97
+ type: {
98
+ name: "DateTime"
99
+ }
100
+ },
101
+ state: {
102
+ serializedName: "properties.state",
103
+ type: {
104
+ name: "String"
105
+ }
106
+ }
107
+ }
108
+ }
109
+ };
110
+ const ErrorModel = {
111
+ type: {
112
+ name: "Composite",
113
+ className: "ErrorModel",
114
+ modelProperties: {
115
+ error: {
116
+ serializedName: "error",
117
+ type: {
118
+ name: "Composite",
119
+ className: "ExtendedErrorInfo"
120
+ }
121
+ },
122
+ code: {
123
+ serializedName: "code",
124
+ type: {
125
+ name: "String"
126
+ }
127
+ },
128
+ message: {
129
+ serializedName: "message",
130
+ type: {
131
+ name: "String"
132
+ }
133
+ }
134
+ }
135
+ }
136
+ };
137
+ const ExtendedErrorInfo = {
138
+ type: {
139
+ name: "Composite",
140
+ className: "ExtendedErrorInfo",
141
+ modelProperties: {
142
+ code: {
143
+ serializedName: "code",
144
+ type: {
145
+ name: "String"
146
+ }
147
+ },
148
+ message: {
149
+ serializedName: "message",
150
+ type: {
151
+ name: "String"
152
+ }
153
+ }
154
+ }
155
+ }
156
+ };
157
+ const OperationList = {
158
+ type: {
159
+ name: "Composite",
160
+ className: "OperationList",
161
+ modelProperties: {
162
+ value: {
163
+ serializedName: "value",
164
+ type: {
165
+ name: "Sequence",
166
+ element: {
167
+ type: {
168
+ name: "Composite",
169
+ className: "OperationResponse"
170
+ }
171
+ }
172
+ }
173
+ },
174
+ nextLink: {
175
+ serializedName: "nextLink",
176
+ type: {
177
+ name: "String"
178
+ }
179
+ }
180
+ }
181
+ }
182
+ };
183
+ const OperationResponse = {
184
+ type: {
185
+ name: "Composite",
186
+ className: "OperationResponse",
187
+ modelProperties: {
188
+ name: {
189
+ serializedName: "name",
190
+ type: {
191
+ name: "String"
192
+ }
193
+ },
194
+ display: {
195
+ serializedName: "display",
196
+ type: {
197
+ name: "Composite",
198
+ className: "OperationDisplay"
199
+ }
200
+ },
201
+ origin: {
202
+ serializedName: "origin",
203
+ type: {
204
+ name: "String"
205
+ }
206
+ }
207
+ }
208
+ }
209
+ };
210
+ const OperationDisplay = {
211
+ type: {
212
+ name: "Composite",
213
+ className: "OperationDisplay",
214
+ modelProperties: {
215
+ provider: {
216
+ serializedName: "provider",
217
+ type: {
218
+ name: "String"
219
+ }
220
+ },
221
+ resource: {
222
+ serializedName: "resource",
223
+ type: {
224
+ name: "String"
225
+ }
226
+ },
227
+ operation: {
228
+ serializedName: "operation",
229
+ type: {
230
+ name: "String"
231
+ }
232
+ },
233
+ description: {
234
+ serializedName: "description",
235
+ type: {
236
+ name: "String"
237
+ }
238
+ }
239
+ }
240
+ }
241
+ };
242
+
243
+ var Mappers = /*#__PURE__*/Object.freeze({
244
+ __proto__: null,
245
+ PartnerResponse: PartnerResponse,
246
+ ErrorModel: ErrorModel,
247
+ ExtendedErrorInfo: ExtendedErrorInfo,
248
+ OperationList: OperationList,
249
+ OperationResponse: OperationResponse,
250
+ OperationDisplay: OperationDisplay
251
+ });
252
+
253
+ /*
254
+ * Copyright (c) Microsoft Corporation.
255
+ * Licensed under the MIT License.
256
+ *
257
+ * Code generated by Microsoft (R) AutoRest Code Generator.
258
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
259
+ */
260
+ const accept = {
261
+ parameterPath: "accept",
262
+ mapper: {
263
+ defaultValue: "application/json",
264
+ isConstant: true,
265
+ serializedName: "Accept",
266
+ type: {
267
+ name: "String"
268
+ }
269
+ }
270
+ };
271
+ const $host = {
272
+ parameterPath: "$host",
273
+ mapper: {
274
+ serializedName: "$host",
275
+ required: true,
276
+ type: {
277
+ name: "String"
278
+ }
279
+ },
280
+ skipEncoding: true
281
+ };
282
+ const partnerId = {
283
+ parameterPath: "partnerId",
284
+ mapper: {
285
+ serializedName: "partnerId",
286
+ required: true,
287
+ type: {
288
+ name: "String"
289
+ }
290
+ }
291
+ };
292
+ const apiVersion = {
293
+ parameterPath: "apiVersion",
294
+ mapper: {
295
+ defaultValue: "2018-02-01",
296
+ isConstant: true,
297
+ serializedName: "api-version",
298
+ type: {
299
+ name: "String"
300
+ }
301
+ }
302
+ };
303
+ const nextLink = {
304
+ parameterPath: "nextLink",
305
+ mapper: {
306
+ serializedName: "nextLink",
307
+ required: true,
308
+ type: {
309
+ name: "String"
310
+ }
311
+ },
312
+ skipEncoding: true
313
+ };
314
+
315
+ /*
316
+ * Copyright (c) Microsoft Corporation.
317
+ * Licensed under the MIT License.
318
+ *
319
+ * Code generated by Microsoft (R) AutoRest Code Generator.
320
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
321
+ */
322
+ /** Class containing Partner operations. */
323
+ class PartnerImpl {
324
+ /**
325
+ * Initialize a new instance of the class Partner class.
326
+ * @param client Reference to the service client
327
+ */
328
+ constructor(client) {
329
+ this.client = client;
330
+ }
331
+ /**
332
+ * Get the management partner using the partnerId, objectId and tenantId.
333
+ * @param partnerId Id of the Partner
334
+ * @param options The options parameters.
335
+ */
336
+ get(partnerId, options) {
337
+ return this.client.sendOperationRequest({ partnerId, options }, getOperationSpec);
338
+ }
339
+ /**
340
+ * Create a management partner for the objectId and tenantId.
341
+ * @param partnerId Id of the Partner
342
+ * @param options The options parameters.
343
+ */
344
+ create(partnerId, options) {
345
+ return this.client.sendOperationRequest({ partnerId, options }, createOperationSpec);
346
+ }
347
+ /**
348
+ * Update the management partner for the objectId and tenantId.
349
+ * @param partnerId Id of the Partner
350
+ * @param options The options parameters.
351
+ */
352
+ update(partnerId, options) {
353
+ return this.client.sendOperationRequest({ partnerId, options }, updateOperationSpec);
354
+ }
355
+ /**
356
+ * Delete the management partner for the objectId and tenantId.
357
+ * @param partnerId Id of the Partner
358
+ * @param options The options parameters.
359
+ */
360
+ delete(partnerId, options) {
361
+ return this.client.sendOperationRequest({ partnerId, options }, deleteOperationSpec);
362
+ }
363
+ }
364
+ // Operation Specifications
365
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
366
+ const getOperationSpec = {
367
+ path: "/providers/Microsoft.ManagementPartner/partners/{partnerId}",
368
+ httpMethod: "GET",
369
+ responses: {
370
+ 200: {
371
+ bodyMapper: PartnerResponse
372
+ },
373
+ default: {
374
+ bodyMapper: ErrorModel
375
+ }
376
+ },
377
+ queryParameters: [apiVersion],
378
+ urlParameters: [$host, partnerId],
379
+ headerParameters: [accept],
380
+ serializer
381
+ };
382
+ const createOperationSpec = {
383
+ path: "/providers/Microsoft.ManagementPartner/partners/{partnerId}",
384
+ httpMethod: "PUT",
385
+ responses: {
386
+ 200: {
387
+ bodyMapper: PartnerResponse
388
+ },
389
+ default: {
390
+ bodyMapper: ErrorModel
391
+ }
392
+ },
393
+ queryParameters: [apiVersion],
394
+ urlParameters: [$host, partnerId],
395
+ headerParameters: [accept],
396
+ serializer
397
+ };
398
+ const updateOperationSpec = {
399
+ path: "/providers/Microsoft.ManagementPartner/partners/{partnerId}",
400
+ httpMethod: "PATCH",
401
+ responses: {
402
+ 200: {
403
+ bodyMapper: PartnerResponse
404
+ },
405
+ default: {
406
+ bodyMapper: ErrorModel
407
+ }
408
+ },
409
+ queryParameters: [apiVersion],
410
+ urlParameters: [$host, partnerId],
411
+ headerParameters: [accept],
412
+ serializer
413
+ };
414
+ const deleteOperationSpec = {
415
+ path: "/providers/Microsoft.ManagementPartner/partners/{partnerId}",
416
+ httpMethod: "DELETE",
417
+ responses: {
418
+ 200: {},
419
+ default: {
420
+ bodyMapper: ErrorModel
421
+ }
422
+ },
423
+ queryParameters: [apiVersion],
424
+ urlParameters: [$host, partnerId],
425
+ headerParameters: [accept],
426
+ serializer
427
+ };
428
+
429
+ /*
430
+ * Copyright (c) Microsoft Corporation.
431
+ * Licensed under the MIT License.
432
+ *
433
+ * Code generated by Microsoft (R) AutoRest Code Generator.
434
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
435
+ */
436
+ /// <reference lib="esnext.asynciterable" />
437
+ /** Class containing Operation operations. */
438
+ class OperationImpl {
439
+ /**
440
+ * Initialize a new instance of the class Operation class.
441
+ * @param client Reference to the service client
442
+ */
443
+ constructor(client) {
444
+ this.client = client;
445
+ }
446
+ /**
447
+ * List all the operations.
448
+ * @param options The options parameters.
449
+ */
450
+ list(options) {
451
+ const iter = this.listPagingAll(options);
452
+ return {
453
+ next() {
454
+ return iter.next();
455
+ },
456
+ [Symbol.asyncIterator]() {
457
+ return this;
458
+ },
459
+ byPage: () => {
460
+ return this.listPagingPage(options);
461
+ }
462
+ };
463
+ }
464
+ listPagingPage(options) {
465
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
466
+ let result = yield tslib.__await(this._list(options));
467
+ yield yield tslib.__await(result.value || []);
468
+ let continuationToken = result.nextLink;
469
+ while (continuationToken) {
470
+ result = yield tslib.__await(this._listNext(continuationToken, options));
471
+ continuationToken = result.nextLink;
472
+ yield yield tslib.__await(result.value || []);
473
+ }
474
+ });
475
+ }
476
+ listPagingAll(options) {
477
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
478
+ var e_1, _a;
479
+ try {
480
+ for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
481
+ const page = _c.value;
482
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
483
+ }
484
+ }
485
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
486
+ finally {
487
+ try {
488
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
489
+ }
490
+ finally { if (e_1) throw e_1.error; }
491
+ }
492
+ });
493
+ }
494
+ /**
495
+ * List all the operations.
496
+ * @param options The options parameters.
497
+ */
498
+ _list(options) {
499
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
500
+ }
501
+ /**
502
+ * ListNext
503
+ * @param nextLink The nextLink from the previous successful call to the List method.
504
+ * @param options The options parameters.
505
+ */
506
+ _listNext(nextLink, options) {
507
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
508
+ }
509
+ }
510
+ // Operation Specifications
511
+ const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
512
+ const listOperationSpec = {
513
+ path: "/providers/Microsoft.ManagementPartner/operations",
514
+ httpMethod: "GET",
515
+ responses: {
516
+ 200: {
517
+ bodyMapper: OperationList
518
+ },
519
+ default: {
520
+ bodyMapper: ErrorModel
521
+ }
522
+ },
523
+ queryParameters: [apiVersion],
524
+ urlParameters: [$host],
525
+ headerParameters: [accept],
526
+ serializer: serializer$1
527
+ };
528
+ const listNextOperationSpec = {
529
+ path: "{nextLink}",
530
+ httpMethod: "GET",
531
+ responses: {
532
+ 200: {
533
+ bodyMapper: OperationList
534
+ },
535
+ default: {
536
+ bodyMapper: ErrorModel
537
+ }
538
+ },
539
+ queryParameters: [apiVersion],
540
+ urlParameters: [$host, nextLink],
541
+ headerParameters: [accept],
542
+ serializer: serializer$1
543
+ };
544
+
545
+ /*
546
+ * Copyright (c) Microsoft Corporation.
547
+ * Licensed under the MIT License.
548
+ *
549
+ * Code generated by Microsoft (R) AutoRest Code Generator.
550
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
551
+ */
552
+ /** Class containing Partners operations. */
553
+ class PartnersImpl {
554
+ /**
555
+ * Initialize a new instance of the class Partners class.
556
+ * @param client Reference to the service client
557
+ */
558
+ constructor(client) {
559
+ this.client = client;
560
+ }
561
+ /**
562
+ * Get the management partner using the objectId and tenantId.
563
+ * @param options The options parameters.
564
+ */
565
+ get(options) {
566
+ return this.client.sendOperationRequest({ options }, getOperationSpec$1);
567
+ }
568
+ }
569
+ // Operation Specifications
570
+ const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
571
+ const getOperationSpec$1 = {
572
+ path: "/providers/Microsoft.ManagementPartner/partners",
573
+ httpMethod: "GET",
574
+ responses: {
575
+ 200: {
576
+ bodyMapper: PartnerResponse
577
+ },
578
+ default: {
579
+ bodyMapper: ErrorModel
580
+ }
581
+ },
582
+ queryParameters: [apiVersion],
583
+ urlParameters: [$host],
584
+ headerParameters: [accept],
585
+ serializer: serializer$2
586
+ };
587
+
588
+ /*
589
+ * Copyright (c) Microsoft Corporation.
590
+ * Licensed under the MIT License.
591
+ *
592
+ * Code generated by Microsoft (R) AutoRest Code Generator.
593
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
594
+ */
595
+ class ACEProvisioningManagementPartnerAPI extends coreClient.ServiceClient {
596
+ /**
597
+ * Initializes a new instance of the ACEProvisioningManagementPartnerAPI class.
598
+ * @param credentials Subscription credentials which uniquely identify client subscription.
599
+ * @param options The parameter options
600
+ */
601
+ constructor(credentials, options) {
602
+ if (credentials === undefined) {
603
+ throw new Error("'credentials' cannot be null");
604
+ }
605
+ // Initializing default values for options
606
+ if (!options) {
607
+ options = {};
608
+ }
609
+ const defaults = {
610
+ requestContentType: "application/json; charset=utf-8",
611
+ credential: credentials
612
+ };
613
+ const packageDetails = `azsdk-js-arm-managementpartner/2.0.0`;
614
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
615
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
616
+ : `${packageDetails}`;
617
+ if (!options.credentialScopes) {
618
+ options.credentialScopes = ["https://management.azure.com/.default"];
619
+ }
620
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
621
+ userAgentPrefix
622
+ }, baseUri: options.endpoint || "https://management.azure.com" });
623
+ super(optionsWithDefaults);
624
+ // Assigning values to Constant parameters
625
+ this.$host = options.$host || "https://management.azure.com";
626
+ this.apiVersion = options.apiVersion || "2018-02-01";
627
+ this.partner = new PartnerImpl(this);
628
+ this.operation = new OperationImpl(this);
629
+ this.partners = new PartnersImpl(this);
630
+ }
631
+ }
632
+
633
+ exports.ACEProvisioningManagementPartnerAPI = ACEProvisioningManagementPartnerAPI;
634
+ //# sourceMappingURL=index.js.map