@azure/arm-domainservices 3.2.1 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -80
  4. package/dist/index.js +2502 -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/domainServicesResourceProvider.d.ts +22 -0
  9. package/dist-esm/src/domainServicesResourceProvider.d.ts.map +1 -0
  10. package/dist-esm/src/domainServicesResourceProvider.js +55 -0
  11. package/dist-esm/src/domainServicesResourceProvider.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/lroImpl.d.ts +16 -0
  17. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  18. package/dist-esm/src/lroImpl.js +29 -0
  19. package/dist-esm/src/lroImpl.js.map +1 -0
  20. package/dist-esm/src/models/index.d.ts +768 -0
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/src/models/index.js +98 -0
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/src/models/mappers.d.ts +27 -0
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/dist-esm/src/models/mappers.js +1015 -0
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/src/models/parameters.d.ts +13 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/dist-esm/src/models/parameters.js +117 -0
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/dist-esm/src/operations/domainServiceOperations.d.ts +32 -0
  33. package/dist-esm/src/operations/domainServiceOperations.d.ts.map +1 -0
  34. package/dist-esm/src/operations/domainServiceOperations.js +120 -0
  35. package/dist-esm/src/operations/domainServiceOperations.js.map +1 -0
  36. package/dist-esm/src/operations/domainServices.d.ts +127 -0
  37. package/dist-esm/src/operations/domainServices.d.ts.map +1 -0
  38. package/dist-esm/src/operations/domainServices.js +520 -0
  39. package/dist-esm/src/operations/domainServices.js.map +1 -0
  40. package/dist-esm/src/operations/index.d.ts +5 -0
  41. package/dist-esm/src/operations/index.d.ts.map +1 -0
  42. package/dist-esm/src/operations/index.js +12 -0
  43. package/dist-esm/src/operations/index.js.map +1 -0
  44. package/dist-esm/src/operations/ouContainerOperationGrp.d.ts +111 -0
  45. package/dist-esm/src/operations/ouContainerOperationGrp.d.ts.map +1 -0
  46. package/dist-esm/src/operations/ouContainerOperationGrp.js +441 -0
  47. package/dist-esm/src/operations/ouContainerOperationGrp.js.map +1 -0
  48. package/dist-esm/src/operations/ouContainerOperations.d.ts +32 -0
  49. package/dist-esm/src/operations/ouContainerOperations.d.ts.map +1 -0
  50. package/dist-esm/src/operations/ouContainerOperations.js +120 -0
  51. package/dist-esm/src/operations/ouContainerOperations.js.map +1 -0
  52. package/dist-esm/src/operationsInterfaces/domainServiceOperations.d.ts +11 -0
  53. package/dist-esm/src/operationsInterfaces/domainServiceOperations.d.ts.map +1 -0
  54. package/dist-esm/src/operationsInterfaces/domainServiceOperations.js +9 -0
  55. package/dist-esm/src/operationsInterfaces/domainServiceOperations.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/domainServices.d.ts +87 -0
  57. package/dist-esm/src/operationsInterfaces/domainServices.d.ts.map +1 -0
  58. package/dist-esm/src/operationsInterfaces/domainServices.js +9 -0
  59. package/dist-esm/src/operationsInterfaces/domainServices.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
  61. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/index.js +12 -0
  63. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/ouContainerOperationGrp.d.ts +84 -0
  65. package/dist-esm/src/operationsInterfaces/ouContainerOperationGrp.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/ouContainerOperationGrp.js +9 -0
  67. package/dist-esm/src/operationsInterfaces/ouContainerOperationGrp.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/ouContainerOperations.d.ts +11 -0
  69. package/dist-esm/src/operationsInterfaces/ouContainerOperations.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/ouContainerOperations.js +9 -0
  71. package/dist-esm/src/operationsInterfaces/ouContainerOperations.js.map +1 -0
  72. package/dist-esm/test/sampleTest.d.ts +2 -0
  73. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  74. package/dist-esm/test/sampleTest.js +40 -0
  75. package/dist-esm/test/sampleTest.js.map +1 -0
  76. package/package.json +68 -33
  77. package/review/arm-domainservices.api.md +591 -0
  78. package/rollup.config.js +184 -27
  79. package/src/domainServicesResourceProvider.ts +92 -0
  80. package/src/index.ts +12 -0
  81. package/src/lroImpl.ts +34 -0
  82. package/src/models/index.ts +689 -557
  83. package/src/models/mappers.ts +760 -217
  84. package/src/models/parameters.ts +87 -29
  85. package/src/operations/domainServiceOperations.ts +87 -73
  86. package/src/operations/domainServices.ts +519 -342
  87. package/src/operations/index.ts +5 -5
  88. package/src/operations/ouContainerOperationGrp.ts +632 -0
  89. package/src/operations/ouContainerOperations.ts +137 -0
  90. package/src/operationsInterfaces/domainServiceOperations.ts +25 -0
  91. package/src/operationsInterfaces/domainServices.ts +154 -0
  92. package/src/operationsInterfaces/index.ts +12 -0
  93. package/src/operationsInterfaces/ouContainerOperationGrp.ts +157 -0
  94. package/src/operationsInterfaces/ouContainerOperations.ts +25 -0
  95. package/tsconfig.json +4 -4
  96. package/types/arm-domainservices.d.ts +1062 -0
  97. package/types/tsdoc-metadata.json +11 -0
  98. package/dist/arm-domainservices.js +0 -1233
  99. package/dist/arm-domainservices.js.map +0 -1
  100. package/dist/arm-domainservices.min.js +0 -1
  101. package/dist/arm-domainservices.min.js.map +0 -1
  102. package/esm/domainservicesManagementClient.d.ts +0 -26
  103. package/esm/domainservicesManagementClient.d.ts.map +0 -1
  104. package/esm/domainservicesManagementClient.js +0 -40
  105. package/esm/domainservicesManagementClient.js.map +0 -1
  106. package/esm/domainservicesManagementClientContext.d.ts +0 -23
  107. package/esm/domainservicesManagementClientContext.d.ts.map +0 -1
  108. package/esm/domainservicesManagementClientContext.js +0 -62
  109. package/esm/domainservicesManagementClientContext.js.map +0 -1
  110. package/esm/models/domainServiceOperationsMappers.d.ts +0 -2
  111. package/esm/models/domainServiceOperationsMappers.d.ts.map +0 -1
  112. package/esm/models/domainServiceOperationsMappers.js +0 -11
  113. package/esm/models/domainServiceOperationsMappers.js.map +0 -1
  114. package/esm/models/domainServicesMappers.d.ts +0 -2
  115. package/esm/models/domainServicesMappers.d.ts.map +0 -1
  116. package/esm/models/domainServicesMappers.js +0 -11
  117. package/esm/models/domainServicesMappers.js.map +0 -1
  118. package/esm/models/index.d.ts +0 -693
  119. package/esm/models/index.d.ts.map +0 -1
  120. package/esm/models/index.js +0 -10
  121. package/esm/models/index.js.map +0 -1
  122. package/esm/models/mappers.d.ts +0 -15
  123. package/esm/models/mappers.d.ts.map +0 -1
  124. package/esm/models/mappers.js +0 -498
  125. package/esm/models/mappers.js.map +0 -1
  126. package/esm/models/parameters.d.ts +0 -8
  127. package/esm/models/parameters.d.ts.map +0 -1
  128. package/esm/models/parameters.js +0 -76
  129. package/esm/models/parameters.js.map +0 -1
  130. package/esm/operations/domainServiceOperations.d.ts +0 -46
  131. package/esm/operations/domainServiceOperations.d.ts.map +0 -1
  132. package/esm/operations/domainServiceOperations.js +0 -77
  133. package/esm/operations/domainServiceOperations.js.map +0 -1
  134. package/esm/operations/domainServices.d.ts +0 -189
  135. package/esm/operations/domainServices.d.ts.map +0 -1
  136. package/esm/operations/domainServices.js +0 -356
  137. package/esm/operations/domainServices.js.map +0 -1
  138. package/esm/operations/index.d.ts +0 -3
  139. package/esm/operations/index.d.ts.map +0 -1
  140. package/esm/operations/index.js +0 -12
  141. package/esm/operations/index.js.map +0 -1
  142. package/src/domainservicesManagementClient.ts +0 -51
  143. package/src/domainservicesManagementClientContext.ts +0 -69
  144. package/src/models/domainServiceOperationsMappers.ts +0 -17
  145. package/src/models/domainServicesMappers.ts +0 -23
package/dist/index.js ADDED
@@ -0,0 +1,2502 @@
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
+ var coreLro = require('@azure/core-lro');
8
+
9
+ /*
10
+ * Copyright (c) Microsoft Corporation.
11
+ * Licensed under the MIT License.
12
+ *
13
+ * Code generated by Microsoft (R) AutoRest Code Generator.
14
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
15
+ */
16
+ (function (KnownLdaps) {
17
+ KnownLdaps["Enabled"] = "Enabled";
18
+ KnownLdaps["Disabled"] = "Disabled";
19
+ })(exports.KnownLdaps || (exports.KnownLdaps = {}));
20
+ (function (KnownExternalAccess) {
21
+ KnownExternalAccess["Enabled"] = "Enabled";
22
+ KnownExternalAccess["Disabled"] = "Disabled";
23
+ })(exports.KnownExternalAccess || (exports.KnownExternalAccess = {}));
24
+ (function (KnownNtlmV1) {
25
+ KnownNtlmV1["Enabled"] = "Enabled";
26
+ KnownNtlmV1["Disabled"] = "Disabled";
27
+ })(exports.KnownNtlmV1 || (exports.KnownNtlmV1 = {}));
28
+ (function (KnownTlsV1) {
29
+ KnownTlsV1["Enabled"] = "Enabled";
30
+ KnownTlsV1["Disabled"] = "Disabled";
31
+ })(exports.KnownTlsV1 || (exports.KnownTlsV1 = {}));
32
+ (function (KnownSyncNtlmPasswords) {
33
+ KnownSyncNtlmPasswords["Enabled"] = "Enabled";
34
+ KnownSyncNtlmPasswords["Disabled"] = "Disabled";
35
+ })(exports.KnownSyncNtlmPasswords || (exports.KnownSyncNtlmPasswords = {}));
36
+ (function (KnownSyncKerberosPasswords) {
37
+ KnownSyncKerberosPasswords["Enabled"] = "Enabled";
38
+ KnownSyncKerberosPasswords["Disabled"] = "Disabled";
39
+ })(exports.KnownSyncKerberosPasswords || (exports.KnownSyncKerberosPasswords = {}));
40
+ (function (KnownSyncOnPremPasswords) {
41
+ KnownSyncOnPremPasswords["Enabled"] = "Enabled";
42
+ KnownSyncOnPremPasswords["Disabled"] = "Disabled";
43
+ })(exports.KnownSyncOnPremPasswords || (exports.KnownSyncOnPremPasswords = {}));
44
+ (function (KnownKerberosRc4Encryption) {
45
+ KnownKerberosRc4Encryption["Enabled"] = "Enabled";
46
+ KnownKerberosRc4Encryption["Disabled"] = "Disabled";
47
+ })(exports.KnownKerberosRc4Encryption || (exports.KnownKerberosRc4Encryption = {}));
48
+ (function (KnownKerberosArmoring) {
49
+ KnownKerberosArmoring["Enabled"] = "Enabled";
50
+ KnownKerberosArmoring["Disabled"] = "Disabled";
51
+ })(exports.KnownKerberosArmoring || (exports.KnownKerberosArmoring = {}));
52
+ (function (KnownFilteredSync) {
53
+ KnownFilteredSync["Enabled"] = "Enabled";
54
+ KnownFilteredSync["Disabled"] = "Disabled";
55
+ })(exports.KnownFilteredSync || (exports.KnownFilteredSync = {}));
56
+ (function (KnownNotifyGlobalAdmins) {
57
+ KnownNotifyGlobalAdmins["Enabled"] = "Enabled";
58
+ KnownNotifyGlobalAdmins["Disabled"] = "Disabled";
59
+ })(exports.KnownNotifyGlobalAdmins || (exports.KnownNotifyGlobalAdmins = {}));
60
+ (function (KnownNotifyDcAdmins) {
61
+ KnownNotifyDcAdmins["Enabled"] = "Enabled";
62
+ KnownNotifyDcAdmins["Disabled"] = "Disabled";
63
+ })(exports.KnownNotifyDcAdmins || (exports.KnownNotifyDcAdmins = {}));
64
+ (function (KnownStatus) {
65
+ KnownStatus["None"] = "None";
66
+ KnownStatus["Running"] = "Running";
67
+ KnownStatus["OK"] = "OK";
68
+ KnownStatus["Failure"] = "Failure";
69
+ KnownStatus["Warning"] = "Warning";
70
+ KnownStatus["Skipped"] = "Skipped";
71
+ })(exports.KnownStatus || (exports.KnownStatus = {}));
72
+ (function (KnownCreatedByType) {
73
+ KnownCreatedByType["User"] = "User";
74
+ KnownCreatedByType["Application"] = "Application";
75
+ KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
76
+ KnownCreatedByType["Key"] = "Key";
77
+ })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
78
+
79
+ /*
80
+ * Copyright (c) Microsoft Corporation.
81
+ * Licensed under the MIT License.
82
+ *
83
+ * Code generated by Microsoft (R) AutoRest Code Generator.
84
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
85
+ */
86
+ const OperationEntityListResult = {
87
+ type: {
88
+ name: "Composite",
89
+ className: "OperationEntityListResult",
90
+ modelProperties: {
91
+ value: {
92
+ serializedName: "value",
93
+ type: {
94
+ name: "Sequence",
95
+ element: {
96
+ type: {
97
+ name: "Composite",
98
+ className: "OperationEntity"
99
+ }
100
+ }
101
+ }
102
+ },
103
+ nextLink: {
104
+ serializedName: "nextLink",
105
+ readOnly: true,
106
+ type: {
107
+ name: "String"
108
+ }
109
+ }
110
+ }
111
+ }
112
+ };
113
+ const OperationEntity = {
114
+ type: {
115
+ name: "Composite",
116
+ className: "OperationEntity",
117
+ modelProperties: {
118
+ name: {
119
+ serializedName: "name",
120
+ type: {
121
+ name: "String"
122
+ }
123
+ },
124
+ display: {
125
+ serializedName: "display",
126
+ type: {
127
+ name: "Composite",
128
+ className: "OperationDisplayInfo"
129
+ }
130
+ },
131
+ origin: {
132
+ serializedName: "origin",
133
+ type: {
134
+ name: "String"
135
+ }
136
+ }
137
+ }
138
+ }
139
+ };
140
+ const OperationDisplayInfo = {
141
+ type: {
142
+ name: "Composite",
143
+ className: "OperationDisplayInfo",
144
+ modelProperties: {
145
+ description: {
146
+ serializedName: "description",
147
+ type: {
148
+ name: "String"
149
+ }
150
+ },
151
+ operation: {
152
+ serializedName: "operation",
153
+ type: {
154
+ name: "String"
155
+ }
156
+ },
157
+ provider: {
158
+ serializedName: "provider",
159
+ type: {
160
+ name: "String"
161
+ }
162
+ },
163
+ resource: {
164
+ serializedName: "resource",
165
+ type: {
166
+ name: "String"
167
+ }
168
+ }
169
+ }
170
+ }
171
+ };
172
+ const CloudError = {
173
+ type: {
174
+ name: "Composite",
175
+ className: "CloudError",
176
+ modelProperties: {
177
+ error: {
178
+ serializedName: "error",
179
+ type: {
180
+ name: "Composite",
181
+ className: "CloudErrorBody"
182
+ }
183
+ }
184
+ }
185
+ }
186
+ };
187
+ const CloudErrorBody = {
188
+ type: {
189
+ name: "Composite",
190
+ className: "CloudErrorBody",
191
+ modelProperties: {
192
+ code: {
193
+ serializedName: "code",
194
+ type: {
195
+ name: "String"
196
+ }
197
+ },
198
+ message: {
199
+ serializedName: "message",
200
+ type: {
201
+ name: "String"
202
+ }
203
+ },
204
+ target: {
205
+ serializedName: "target",
206
+ type: {
207
+ name: "String"
208
+ }
209
+ },
210
+ details: {
211
+ serializedName: "details",
212
+ type: {
213
+ name: "Sequence",
214
+ element: {
215
+ type: {
216
+ name: "Composite",
217
+ className: "CloudErrorBody"
218
+ }
219
+ }
220
+ }
221
+ }
222
+ }
223
+ }
224
+ };
225
+ const DomainServiceListResult = {
226
+ type: {
227
+ name: "Composite",
228
+ className: "DomainServiceListResult",
229
+ modelProperties: {
230
+ value: {
231
+ serializedName: "value",
232
+ type: {
233
+ name: "Sequence",
234
+ element: {
235
+ type: {
236
+ name: "Composite",
237
+ className: "DomainService"
238
+ }
239
+ }
240
+ }
241
+ },
242
+ nextLink: {
243
+ serializedName: "nextLink",
244
+ readOnly: true,
245
+ type: {
246
+ name: "String"
247
+ }
248
+ }
249
+ }
250
+ }
251
+ };
252
+ const ReplicaSet = {
253
+ type: {
254
+ name: "Composite",
255
+ className: "ReplicaSet",
256
+ modelProperties: {
257
+ replicaSetId: {
258
+ serializedName: "replicaSetId",
259
+ readOnly: true,
260
+ type: {
261
+ name: "String"
262
+ }
263
+ },
264
+ location: {
265
+ serializedName: "location",
266
+ type: {
267
+ name: "String"
268
+ }
269
+ },
270
+ vnetSiteId: {
271
+ serializedName: "vnetSiteId",
272
+ readOnly: true,
273
+ type: {
274
+ name: "String"
275
+ }
276
+ },
277
+ subnetId: {
278
+ serializedName: "subnetId",
279
+ type: {
280
+ name: "String"
281
+ }
282
+ },
283
+ domainControllerIpAddress: {
284
+ serializedName: "domainControllerIpAddress",
285
+ readOnly: true,
286
+ type: {
287
+ name: "Sequence",
288
+ element: {
289
+ type: {
290
+ name: "String"
291
+ }
292
+ }
293
+ }
294
+ },
295
+ externalAccessIpAddress: {
296
+ serializedName: "externalAccessIpAddress",
297
+ readOnly: true,
298
+ type: {
299
+ name: "String"
300
+ }
301
+ },
302
+ serviceStatus: {
303
+ serializedName: "serviceStatus",
304
+ readOnly: true,
305
+ type: {
306
+ name: "String"
307
+ }
308
+ },
309
+ healthLastEvaluated: {
310
+ serializedName: "healthLastEvaluated",
311
+ readOnly: true,
312
+ type: {
313
+ name: "DateTimeRfc1123"
314
+ }
315
+ },
316
+ healthMonitors: {
317
+ serializedName: "healthMonitors",
318
+ readOnly: true,
319
+ type: {
320
+ name: "Sequence",
321
+ element: {
322
+ type: {
323
+ name: "Composite",
324
+ className: "HealthMonitor"
325
+ }
326
+ }
327
+ }
328
+ },
329
+ healthAlerts: {
330
+ serializedName: "healthAlerts",
331
+ readOnly: true,
332
+ type: {
333
+ name: "Sequence",
334
+ element: {
335
+ type: {
336
+ name: "Composite",
337
+ className: "HealthAlert"
338
+ }
339
+ }
340
+ }
341
+ }
342
+ }
343
+ }
344
+ };
345
+ const HealthMonitor = {
346
+ type: {
347
+ name: "Composite",
348
+ className: "HealthMonitor",
349
+ modelProperties: {
350
+ id: {
351
+ serializedName: "id",
352
+ readOnly: true,
353
+ type: {
354
+ name: "String"
355
+ }
356
+ },
357
+ name: {
358
+ serializedName: "name",
359
+ readOnly: true,
360
+ type: {
361
+ name: "String"
362
+ }
363
+ },
364
+ details: {
365
+ serializedName: "details",
366
+ readOnly: true,
367
+ type: {
368
+ name: "String"
369
+ }
370
+ }
371
+ }
372
+ }
373
+ };
374
+ const HealthAlert = {
375
+ type: {
376
+ name: "Composite",
377
+ className: "HealthAlert",
378
+ modelProperties: {
379
+ id: {
380
+ serializedName: "id",
381
+ readOnly: true,
382
+ type: {
383
+ name: "String"
384
+ }
385
+ },
386
+ name: {
387
+ serializedName: "name",
388
+ readOnly: true,
389
+ type: {
390
+ name: "String"
391
+ }
392
+ },
393
+ issue: {
394
+ serializedName: "issue",
395
+ readOnly: true,
396
+ type: {
397
+ name: "String"
398
+ }
399
+ },
400
+ severity: {
401
+ serializedName: "severity",
402
+ readOnly: true,
403
+ type: {
404
+ name: "String"
405
+ }
406
+ },
407
+ raised: {
408
+ serializedName: "raised",
409
+ readOnly: true,
410
+ type: {
411
+ name: "DateTime"
412
+ }
413
+ },
414
+ lastDetected: {
415
+ serializedName: "lastDetected",
416
+ readOnly: true,
417
+ type: {
418
+ name: "DateTime"
419
+ }
420
+ },
421
+ resolutionUri: {
422
+ serializedName: "resolutionUri",
423
+ readOnly: true,
424
+ type: {
425
+ name: "String"
426
+ }
427
+ }
428
+ }
429
+ }
430
+ };
431
+ const LdapsSettings = {
432
+ type: {
433
+ name: "Composite",
434
+ className: "LdapsSettings",
435
+ modelProperties: {
436
+ ldaps: {
437
+ defaultValue: "Disabled",
438
+ serializedName: "ldaps",
439
+ type: {
440
+ name: "String"
441
+ }
442
+ },
443
+ pfxCertificate: {
444
+ serializedName: "pfxCertificate",
445
+ type: {
446
+ name: "String"
447
+ }
448
+ },
449
+ pfxCertificatePassword: {
450
+ serializedName: "pfxCertificatePassword",
451
+ type: {
452
+ name: "String"
453
+ }
454
+ },
455
+ publicCertificate: {
456
+ serializedName: "publicCertificate",
457
+ readOnly: true,
458
+ type: {
459
+ name: "String"
460
+ }
461
+ },
462
+ certificateThumbprint: {
463
+ serializedName: "certificateThumbprint",
464
+ readOnly: true,
465
+ type: {
466
+ name: "String"
467
+ }
468
+ },
469
+ certificateNotAfter: {
470
+ serializedName: "certificateNotAfter",
471
+ readOnly: true,
472
+ type: {
473
+ name: "DateTime"
474
+ }
475
+ },
476
+ externalAccess: {
477
+ defaultValue: "Disabled",
478
+ serializedName: "externalAccess",
479
+ type: {
480
+ name: "String"
481
+ }
482
+ }
483
+ }
484
+ }
485
+ };
486
+ const ResourceForestSettings = {
487
+ type: {
488
+ name: "Composite",
489
+ className: "ResourceForestSettings",
490
+ modelProperties: {
491
+ settings: {
492
+ serializedName: "settings",
493
+ type: {
494
+ name: "Sequence",
495
+ element: {
496
+ type: {
497
+ name: "Composite",
498
+ className: "ForestTrust"
499
+ }
500
+ }
501
+ }
502
+ },
503
+ resourceForest: {
504
+ serializedName: "resourceForest",
505
+ type: {
506
+ name: "String"
507
+ }
508
+ }
509
+ }
510
+ }
511
+ };
512
+ const ForestTrust = {
513
+ type: {
514
+ name: "Composite",
515
+ className: "ForestTrust",
516
+ modelProperties: {
517
+ trustedDomainFqdn: {
518
+ serializedName: "trustedDomainFqdn",
519
+ type: {
520
+ name: "String"
521
+ }
522
+ },
523
+ trustDirection: {
524
+ serializedName: "trustDirection",
525
+ type: {
526
+ name: "String"
527
+ }
528
+ },
529
+ friendlyName: {
530
+ serializedName: "friendlyName",
531
+ type: {
532
+ name: "String"
533
+ }
534
+ },
535
+ remoteDnsIps: {
536
+ serializedName: "remoteDnsIps",
537
+ type: {
538
+ name: "String"
539
+ }
540
+ },
541
+ trustPassword: {
542
+ serializedName: "trustPassword",
543
+ type: {
544
+ name: "String"
545
+ }
546
+ }
547
+ }
548
+ }
549
+ };
550
+ const DomainSecuritySettings = {
551
+ type: {
552
+ name: "Composite",
553
+ className: "DomainSecuritySettings",
554
+ modelProperties: {
555
+ ntlmV1: {
556
+ defaultValue: "Enabled",
557
+ serializedName: "ntlmV1",
558
+ type: {
559
+ name: "String"
560
+ }
561
+ },
562
+ tlsV1: {
563
+ defaultValue: "Enabled",
564
+ serializedName: "tlsV1",
565
+ type: {
566
+ name: "String"
567
+ }
568
+ },
569
+ syncNtlmPasswords: {
570
+ defaultValue: "Enabled",
571
+ serializedName: "syncNtlmPasswords",
572
+ type: {
573
+ name: "String"
574
+ }
575
+ },
576
+ syncKerberosPasswords: {
577
+ defaultValue: "Enabled",
578
+ serializedName: "syncKerberosPasswords",
579
+ type: {
580
+ name: "String"
581
+ }
582
+ },
583
+ syncOnPremPasswords: {
584
+ defaultValue: "Enabled",
585
+ serializedName: "syncOnPremPasswords",
586
+ type: {
587
+ name: "String"
588
+ }
589
+ },
590
+ kerberosRc4Encryption: {
591
+ defaultValue: "Enabled",
592
+ serializedName: "kerberosRc4Encryption",
593
+ type: {
594
+ name: "String"
595
+ }
596
+ },
597
+ kerberosArmoring: {
598
+ defaultValue: "Disabled",
599
+ serializedName: "kerberosArmoring",
600
+ type: {
601
+ name: "String"
602
+ }
603
+ }
604
+ }
605
+ }
606
+ };
607
+ const NotificationSettings = {
608
+ type: {
609
+ name: "Composite",
610
+ className: "NotificationSettings",
611
+ modelProperties: {
612
+ notifyGlobalAdmins: {
613
+ serializedName: "notifyGlobalAdmins",
614
+ type: {
615
+ name: "String"
616
+ }
617
+ },
618
+ notifyDcAdmins: {
619
+ serializedName: "notifyDcAdmins",
620
+ type: {
621
+ name: "String"
622
+ }
623
+ },
624
+ additionalRecipients: {
625
+ serializedName: "additionalRecipients",
626
+ type: {
627
+ name: "Sequence",
628
+ element: {
629
+ type: {
630
+ name: "String"
631
+ }
632
+ }
633
+ }
634
+ }
635
+ }
636
+ }
637
+ };
638
+ const MigrationProperties = {
639
+ type: {
640
+ name: "Composite",
641
+ className: "MigrationProperties",
642
+ modelProperties: {
643
+ oldSubnetId: {
644
+ serializedName: "oldSubnetId",
645
+ readOnly: true,
646
+ type: {
647
+ name: "String"
648
+ }
649
+ },
650
+ oldVnetSiteId: {
651
+ serializedName: "oldVnetSiteId",
652
+ readOnly: true,
653
+ type: {
654
+ name: "String"
655
+ }
656
+ },
657
+ migrationProgress: {
658
+ serializedName: "migrationProgress",
659
+ type: {
660
+ name: "Composite",
661
+ className: "MigrationProgress"
662
+ }
663
+ }
664
+ }
665
+ }
666
+ };
667
+ const MigrationProgress = {
668
+ type: {
669
+ name: "Composite",
670
+ className: "MigrationProgress",
671
+ modelProperties: {
672
+ completionPercentage: {
673
+ serializedName: "completionPercentage",
674
+ type: {
675
+ name: "Number"
676
+ }
677
+ },
678
+ progressMessage: {
679
+ serializedName: "progressMessage",
680
+ type: {
681
+ name: "String"
682
+ }
683
+ }
684
+ }
685
+ }
686
+ };
687
+ const ConfigDiagnostics = {
688
+ type: {
689
+ name: "Composite",
690
+ className: "ConfigDiagnostics",
691
+ modelProperties: {
692
+ lastExecuted: {
693
+ serializedName: "lastExecuted",
694
+ type: {
695
+ name: "DateTimeRfc1123"
696
+ }
697
+ },
698
+ validatorResults: {
699
+ serializedName: "validatorResults",
700
+ type: {
701
+ name: "Sequence",
702
+ element: {
703
+ type: {
704
+ name: "Composite",
705
+ className: "ConfigDiagnosticsValidatorResult"
706
+ }
707
+ }
708
+ }
709
+ }
710
+ }
711
+ }
712
+ };
713
+ const ConfigDiagnosticsValidatorResult = {
714
+ type: {
715
+ name: "Composite",
716
+ className: "ConfigDiagnosticsValidatorResult",
717
+ modelProperties: {
718
+ validatorId: {
719
+ serializedName: "validatorId",
720
+ type: {
721
+ name: "String"
722
+ }
723
+ },
724
+ replicaSetSubnetDisplayName: {
725
+ serializedName: "replicaSetSubnetDisplayName",
726
+ type: {
727
+ name: "String"
728
+ }
729
+ },
730
+ status: {
731
+ defaultValue: "None",
732
+ serializedName: "status",
733
+ type: {
734
+ name: "String"
735
+ }
736
+ },
737
+ issues: {
738
+ serializedName: "issues",
739
+ type: {
740
+ name: "Sequence",
741
+ element: {
742
+ type: {
743
+ name: "Composite",
744
+ className: "ConfigDiagnosticsValidatorResultIssue"
745
+ }
746
+ }
747
+ }
748
+ }
749
+ }
750
+ }
751
+ };
752
+ const ConfigDiagnosticsValidatorResultIssue = {
753
+ type: {
754
+ name: "Composite",
755
+ className: "ConfigDiagnosticsValidatorResultIssue",
756
+ modelProperties: {
757
+ id: {
758
+ serializedName: "id",
759
+ type: {
760
+ name: "String"
761
+ }
762
+ },
763
+ descriptionParams: {
764
+ serializedName: "descriptionParams",
765
+ type: {
766
+ name: "Sequence",
767
+ element: {
768
+ type: {
769
+ name: "String"
770
+ }
771
+ }
772
+ }
773
+ }
774
+ }
775
+ }
776
+ };
777
+ const Resource = {
778
+ type: {
779
+ name: "Composite",
780
+ className: "Resource",
781
+ modelProperties: {
782
+ id: {
783
+ serializedName: "id",
784
+ readOnly: true,
785
+ type: {
786
+ name: "String"
787
+ }
788
+ },
789
+ name: {
790
+ serializedName: "name",
791
+ readOnly: true,
792
+ type: {
793
+ name: "String"
794
+ }
795
+ },
796
+ type: {
797
+ serializedName: "type",
798
+ readOnly: true,
799
+ type: {
800
+ name: "String"
801
+ }
802
+ },
803
+ location: {
804
+ serializedName: "location",
805
+ type: {
806
+ name: "String"
807
+ }
808
+ },
809
+ tags: {
810
+ serializedName: "tags",
811
+ type: {
812
+ name: "Dictionary",
813
+ value: { type: { name: "String" } }
814
+ }
815
+ },
816
+ etag: {
817
+ serializedName: "etag",
818
+ type: {
819
+ name: "String"
820
+ }
821
+ },
822
+ systemData: {
823
+ serializedName: "systemData",
824
+ type: {
825
+ name: "Composite",
826
+ className: "SystemData"
827
+ }
828
+ }
829
+ }
830
+ }
831
+ };
832
+ const SystemData = {
833
+ type: {
834
+ name: "Composite",
835
+ className: "SystemData",
836
+ modelProperties: {
837
+ createdBy: {
838
+ serializedName: "createdBy",
839
+ type: {
840
+ name: "String"
841
+ }
842
+ },
843
+ createdByType: {
844
+ serializedName: "createdByType",
845
+ type: {
846
+ name: "String"
847
+ }
848
+ },
849
+ createdAt: {
850
+ serializedName: "createdAt",
851
+ type: {
852
+ name: "DateTime"
853
+ }
854
+ },
855
+ lastModifiedBy: {
856
+ serializedName: "lastModifiedBy",
857
+ type: {
858
+ name: "String"
859
+ }
860
+ },
861
+ lastModifiedByType: {
862
+ serializedName: "lastModifiedByType",
863
+ type: {
864
+ name: "String"
865
+ }
866
+ },
867
+ lastModifiedAt: {
868
+ serializedName: "lastModifiedAt",
869
+ type: {
870
+ name: "DateTime"
871
+ }
872
+ }
873
+ }
874
+ }
875
+ };
876
+ const OuContainerListResult = {
877
+ type: {
878
+ name: "Composite",
879
+ className: "OuContainerListResult",
880
+ modelProperties: {
881
+ value: {
882
+ serializedName: "value",
883
+ type: {
884
+ name: "Sequence",
885
+ element: {
886
+ type: {
887
+ name: "Composite",
888
+ className: "OuContainer"
889
+ }
890
+ }
891
+ }
892
+ },
893
+ nextLink: {
894
+ serializedName: "nextLink",
895
+ readOnly: true,
896
+ type: {
897
+ name: "String"
898
+ }
899
+ }
900
+ }
901
+ }
902
+ };
903
+ const ContainerAccount = {
904
+ type: {
905
+ name: "Composite",
906
+ className: "ContainerAccount",
907
+ modelProperties: {
908
+ accountName: {
909
+ serializedName: "accountName",
910
+ type: {
911
+ name: "String"
912
+ }
913
+ },
914
+ spn: {
915
+ serializedName: "spn",
916
+ type: {
917
+ name: "String"
918
+ }
919
+ },
920
+ password: {
921
+ serializedName: "password",
922
+ type: {
923
+ name: "String"
924
+ }
925
+ }
926
+ }
927
+ }
928
+ };
929
+ const DomainService = {
930
+ type: {
931
+ name: "Composite",
932
+ className: "DomainService",
933
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { version: {
934
+ serializedName: "properties.version",
935
+ readOnly: true,
936
+ type: {
937
+ name: "Number"
938
+ }
939
+ }, tenantId: {
940
+ serializedName: "properties.tenantId",
941
+ readOnly: true,
942
+ type: {
943
+ name: "String"
944
+ }
945
+ }, domainName: {
946
+ serializedName: "properties.domainName",
947
+ type: {
948
+ name: "String"
949
+ }
950
+ }, deploymentId: {
951
+ serializedName: "properties.deploymentId",
952
+ readOnly: true,
953
+ type: {
954
+ name: "String"
955
+ }
956
+ }, syncOwner: {
957
+ serializedName: "properties.syncOwner",
958
+ readOnly: true,
959
+ type: {
960
+ name: "String"
961
+ }
962
+ }, replicaSets: {
963
+ serializedName: "properties.replicaSets",
964
+ type: {
965
+ name: "Sequence",
966
+ element: {
967
+ type: {
968
+ name: "Composite",
969
+ className: "ReplicaSet"
970
+ }
971
+ }
972
+ }
973
+ }, ldapsSettings: {
974
+ serializedName: "properties.ldapsSettings",
975
+ type: {
976
+ name: "Composite",
977
+ className: "LdapsSettings"
978
+ }
979
+ }, resourceForestSettings: {
980
+ serializedName: "properties.resourceForestSettings",
981
+ type: {
982
+ name: "Composite",
983
+ className: "ResourceForestSettings"
984
+ }
985
+ }, domainSecuritySettings: {
986
+ serializedName: "properties.domainSecuritySettings",
987
+ type: {
988
+ name: "Composite",
989
+ className: "DomainSecuritySettings"
990
+ }
991
+ }, domainConfigurationType: {
992
+ serializedName: "properties.domainConfigurationType",
993
+ type: {
994
+ name: "String"
995
+ }
996
+ }, sku: {
997
+ serializedName: "properties.sku",
998
+ type: {
999
+ name: "String"
1000
+ }
1001
+ }, filteredSync: {
1002
+ serializedName: "properties.filteredSync",
1003
+ type: {
1004
+ name: "String"
1005
+ }
1006
+ }, notificationSettings: {
1007
+ serializedName: "properties.notificationSettings",
1008
+ type: {
1009
+ name: "Composite",
1010
+ className: "NotificationSettings"
1011
+ }
1012
+ }, migrationProperties: {
1013
+ serializedName: "properties.migrationProperties",
1014
+ type: {
1015
+ name: "Composite",
1016
+ className: "MigrationProperties"
1017
+ }
1018
+ }, provisioningState: {
1019
+ serializedName: "properties.provisioningState",
1020
+ readOnly: true,
1021
+ type: {
1022
+ name: "String"
1023
+ }
1024
+ }, configDiagnostics: {
1025
+ serializedName: "properties.configDiagnostics",
1026
+ type: {
1027
+ name: "Composite",
1028
+ className: "ConfigDiagnostics"
1029
+ }
1030
+ } })
1031
+ }
1032
+ };
1033
+ const OuContainer = {
1034
+ type: {
1035
+ name: "Composite",
1036
+ className: "OuContainer",
1037
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tenantId: {
1038
+ serializedName: "properties.tenantId",
1039
+ readOnly: true,
1040
+ type: {
1041
+ name: "String"
1042
+ }
1043
+ }, domainName: {
1044
+ serializedName: "properties.domainName",
1045
+ readOnly: true,
1046
+ type: {
1047
+ name: "String"
1048
+ }
1049
+ }, deploymentId: {
1050
+ serializedName: "properties.deploymentId",
1051
+ readOnly: true,
1052
+ type: {
1053
+ name: "String"
1054
+ }
1055
+ }, containerId: {
1056
+ serializedName: "properties.containerId",
1057
+ readOnly: true,
1058
+ type: {
1059
+ name: "String"
1060
+ }
1061
+ }, accounts: {
1062
+ serializedName: "properties.accounts",
1063
+ type: {
1064
+ name: "Sequence",
1065
+ element: {
1066
+ type: {
1067
+ name: "Composite",
1068
+ className: "ContainerAccount"
1069
+ }
1070
+ }
1071
+ }
1072
+ }, serviceStatus: {
1073
+ serializedName: "properties.serviceStatus",
1074
+ readOnly: true,
1075
+ type: {
1076
+ name: "String"
1077
+ }
1078
+ }, distinguishedName: {
1079
+ serializedName: "properties.distinguishedName",
1080
+ readOnly: true,
1081
+ type: {
1082
+ name: "String"
1083
+ }
1084
+ }, provisioningState: {
1085
+ serializedName: "properties.provisioningState",
1086
+ readOnly: true,
1087
+ type: {
1088
+ name: "String"
1089
+ }
1090
+ } })
1091
+ }
1092
+ };
1093
+
1094
+ var Mappers = /*#__PURE__*/Object.freeze({
1095
+ __proto__: null,
1096
+ OperationEntityListResult: OperationEntityListResult,
1097
+ OperationEntity: OperationEntity,
1098
+ OperationDisplayInfo: OperationDisplayInfo,
1099
+ CloudError: CloudError,
1100
+ CloudErrorBody: CloudErrorBody,
1101
+ DomainServiceListResult: DomainServiceListResult,
1102
+ ReplicaSet: ReplicaSet,
1103
+ HealthMonitor: HealthMonitor,
1104
+ HealthAlert: HealthAlert,
1105
+ LdapsSettings: LdapsSettings,
1106
+ ResourceForestSettings: ResourceForestSettings,
1107
+ ForestTrust: ForestTrust,
1108
+ DomainSecuritySettings: DomainSecuritySettings,
1109
+ NotificationSettings: NotificationSettings,
1110
+ MigrationProperties: MigrationProperties,
1111
+ MigrationProgress: MigrationProgress,
1112
+ ConfigDiagnostics: ConfigDiagnostics,
1113
+ ConfigDiagnosticsValidatorResult: ConfigDiagnosticsValidatorResult,
1114
+ ConfigDiagnosticsValidatorResultIssue: ConfigDiagnosticsValidatorResultIssue,
1115
+ Resource: Resource,
1116
+ SystemData: SystemData,
1117
+ OuContainerListResult: OuContainerListResult,
1118
+ ContainerAccount: ContainerAccount,
1119
+ DomainService: DomainService,
1120
+ OuContainer: OuContainer
1121
+ });
1122
+
1123
+ /*
1124
+ * Copyright (c) Microsoft Corporation.
1125
+ * Licensed under the MIT License.
1126
+ *
1127
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1128
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1129
+ */
1130
+ const accept = {
1131
+ parameterPath: "accept",
1132
+ mapper: {
1133
+ defaultValue: "application/json",
1134
+ isConstant: true,
1135
+ serializedName: "Accept",
1136
+ type: {
1137
+ name: "String"
1138
+ }
1139
+ }
1140
+ };
1141
+ const $host = {
1142
+ parameterPath: "$host",
1143
+ mapper: {
1144
+ serializedName: "$host",
1145
+ required: true,
1146
+ type: {
1147
+ name: "String"
1148
+ }
1149
+ },
1150
+ skipEncoding: true
1151
+ };
1152
+ const apiVersion = {
1153
+ parameterPath: "apiVersion",
1154
+ mapper: {
1155
+ defaultValue: "2021-05-01",
1156
+ isConstant: true,
1157
+ serializedName: "api-version",
1158
+ type: {
1159
+ name: "String"
1160
+ }
1161
+ }
1162
+ };
1163
+ const nextLink = {
1164
+ parameterPath: "nextLink",
1165
+ mapper: {
1166
+ serializedName: "nextLink",
1167
+ required: true,
1168
+ type: {
1169
+ name: "String"
1170
+ }
1171
+ },
1172
+ skipEncoding: true
1173
+ };
1174
+ const subscriptionId = {
1175
+ parameterPath: "subscriptionId",
1176
+ mapper: {
1177
+ serializedName: "subscriptionId",
1178
+ required: true,
1179
+ type: {
1180
+ name: "String"
1181
+ }
1182
+ }
1183
+ };
1184
+ const resourceGroupName = {
1185
+ parameterPath: "resourceGroupName",
1186
+ mapper: {
1187
+ constraints: {
1188
+ Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
1189
+ MaxLength: 90,
1190
+ MinLength: 1
1191
+ },
1192
+ serializedName: "resourceGroupName",
1193
+ required: true,
1194
+ type: {
1195
+ name: "String"
1196
+ }
1197
+ }
1198
+ };
1199
+ const contentType = {
1200
+ parameterPath: ["options", "contentType"],
1201
+ mapper: {
1202
+ defaultValue: "application/json",
1203
+ isConstant: true,
1204
+ serializedName: "Content-Type",
1205
+ type: {
1206
+ name: "String"
1207
+ }
1208
+ }
1209
+ };
1210
+ const domainService = {
1211
+ parameterPath: "domainService",
1212
+ mapper: DomainService
1213
+ };
1214
+ const domainServiceName = {
1215
+ parameterPath: "domainServiceName",
1216
+ mapper: {
1217
+ serializedName: "domainServiceName",
1218
+ required: true,
1219
+ type: {
1220
+ name: "String"
1221
+ }
1222
+ }
1223
+ };
1224
+ const ouContainerName = {
1225
+ parameterPath: "ouContainerName",
1226
+ mapper: {
1227
+ serializedName: "ouContainerName",
1228
+ required: true,
1229
+ type: {
1230
+ name: "String"
1231
+ }
1232
+ }
1233
+ };
1234
+ const containerAccount = {
1235
+ parameterPath: "containerAccount",
1236
+ mapper: ContainerAccount
1237
+ };
1238
+
1239
+ /*
1240
+ * Copyright (c) Microsoft Corporation.
1241
+ * Licensed under the MIT License.
1242
+ *
1243
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1244
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1245
+ */
1246
+ /// <reference lib="esnext.asynciterable" />
1247
+ /** Class containing DomainServiceOperations operations. */
1248
+ class DomainServiceOperationsImpl {
1249
+ /**
1250
+ * Initialize a new instance of the class DomainServiceOperations class.
1251
+ * @param client Reference to the service client
1252
+ */
1253
+ constructor(client) {
1254
+ this.client = client;
1255
+ }
1256
+ /**
1257
+ * Lists all the available Domain Services operations.
1258
+ * @param options The options parameters.
1259
+ */
1260
+ list(options) {
1261
+ const iter = this.listPagingAll(options);
1262
+ return {
1263
+ next() {
1264
+ return iter.next();
1265
+ },
1266
+ [Symbol.asyncIterator]() {
1267
+ return this;
1268
+ },
1269
+ byPage: () => {
1270
+ return this.listPagingPage(options);
1271
+ }
1272
+ };
1273
+ }
1274
+ listPagingPage(options) {
1275
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1276
+ let result = yield tslib.__await(this._list(options));
1277
+ yield yield tslib.__await(result.value || []);
1278
+ let continuationToken = result.nextLink;
1279
+ while (continuationToken) {
1280
+ result = yield tslib.__await(this._listNext(continuationToken, options));
1281
+ continuationToken = result.nextLink;
1282
+ yield yield tslib.__await(result.value || []);
1283
+ }
1284
+ });
1285
+ }
1286
+ listPagingAll(options) {
1287
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1288
+ var e_1, _a;
1289
+ try {
1290
+ for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1291
+ const page = _c.value;
1292
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1293
+ }
1294
+ }
1295
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1296
+ finally {
1297
+ try {
1298
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1299
+ }
1300
+ finally { if (e_1) throw e_1.error; }
1301
+ }
1302
+ });
1303
+ }
1304
+ /**
1305
+ * Lists all the available Domain Services operations.
1306
+ * @param options The options parameters.
1307
+ */
1308
+ _list(options) {
1309
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
1310
+ }
1311
+ /**
1312
+ * ListNext
1313
+ * @param nextLink The nextLink from the previous successful call to the List method.
1314
+ * @param options The options parameters.
1315
+ */
1316
+ _listNext(nextLink, options) {
1317
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
1318
+ }
1319
+ }
1320
+ // Operation Specifications
1321
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
1322
+ const listOperationSpec = {
1323
+ path: "/providers/Microsoft.AAD/operations",
1324
+ httpMethod: "GET",
1325
+ responses: {
1326
+ 200: {
1327
+ bodyMapper: OperationEntityListResult
1328
+ },
1329
+ default: {
1330
+ bodyMapper: CloudError
1331
+ }
1332
+ },
1333
+ queryParameters: [apiVersion],
1334
+ urlParameters: [$host],
1335
+ headerParameters: [accept],
1336
+ serializer
1337
+ };
1338
+ const listNextOperationSpec = {
1339
+ path: "{nextLink}",
1340
+ httpMethod: "GET",
1341
+ responses: {
1342
+ 200: {
1343
+ bodyMapper: OperationEntityListResult
1344
+ },
1345
+ default: {
1346
+ bodyMapper: CloudError
1347
+ }
1348
+ },
1349
+ queryParameters: [apiVersion],
1350
+ urlParameters: [$host, nextLink],
1351
+ headerParameters: [accept],
1352
+ serializer
1353
+ };
1354
+
1355
+ /*
1356
+ * Copyright (c) Microsoft Corporation.
1357
+ * Licensed under the MIT License.
1358
+ *
1359
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1360
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1361
+ */
1362
+ class LroImpl {
1363
+ constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
1364
+ this.sendOperationFn = sendOperationFn;
1365
+ this.args = args;
1366
+ this.spec = spec;
1367
+ this.requestPath = requestPath;
1368
+ this.requestMethod = requestMethod;
1369
+ }
1370
+ sendInitialRequest() {
1371
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1372
+ return this.sendOperationFn(this.args, this.spec);
1373
+ });
1374
+ }
1375
+ sendPollRequest(path) {
1376
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1377
+ const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
1378
+ return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
1379
+ });
1380
+ }
1381
+ }
1382
+
1383
+ /*
1384
+ * Copyright (c) Microsoft Corporation.
1385
+ * Licensed under the MIT License.
1386
+ *
1387
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1388
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1389
+ */
1390
+ /// <reference lib="esnext.asynciterable" />
1391
+ /** Class containing DomainServices operations. */
1392
+ class DomainServicesImpl {
1393
+ /**
1394
+ * Initialize a new instance of the class DomainServices class.
1395
+ * @param client Reference to the service client
1396
+ */
1397
+ constructor(client) {
1398
+ this.client = client;
1399
+ }
1400
+ /**
1401
+ * The List Domain Services in Subscription operation lists all the domain services available under the
1402
+ * given subscription (and across all resource groups within that subscription).
1403
+ * @param options The options parameters.
1404
+ */
1405
+ list(options) {
1406
+ const iter = this.listPagingAll(options);
1407
+ return {
1408
+ next() {
1409
+ return iter.next();
1410
+ },
1411
+ [Symbol.asyncIterator]() {
1412
+ return this;
1413
+ },
1414
+ byPage: () => {
1415
+ return this.listPagingPage(options);
1416
+ }
1417
+ };
1418
+ }
1419
+ listPagingPage(options) {
1420
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1421
+ let result = yield tslib.__await(this._list(options));
1422
+ yield yield tslib.__await(result.value || []);
1423
+ let continuationToken = result.nextLink;
1424
+ while (continuationToken) {
1425
+ result = yield tslib.__await(this._listNext(continuationToken, options));
1426
+ continuationToken = result.nextLink;
1427
+ yield yield tslib.__await(result.value || []);
1428
+ }
1429
+ });
1430
+ }
1431
+ listPagingAll(options) {
1432
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1433
+ var e_1, _a;
1434
+ try {
1435
+ for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1436
+ const page = _c.value;
1437
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1438
+ }
1439
+ }
1440
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1441
+ finally {
1442
+ try {
1443
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1444
+ }
1445
+ finally { if (e_1) throw e_1.error; }
1446
+ }
1447
+ });
1448
+ }
1449
+ /**
1450
+ * The List Domain Services in Resource Group operation lists all the domain services available under
1451
+ * the given resource group.
1452
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
1453
+ * case insensitive.
1454
+ * @param options The options parameters.
1455
+ */
1456
+ listByResourceGroup(resourceGroupName, options) {
1457
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
1458
+ return {
1459
+ next() {
1460
+ return iter.next();
1461
+ },
1462
+ [Symbol.asyncIterator]() {
1463
+ return this;
1464
+ },
1465
+ byPage: () => {
1466
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
1467
+ }
1468
+ };
1469
+ }
1470
+ listByResourceGroupPagingPage(resourceGroupName, options) {
1471
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
1472
+ let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1473
+ yield yield tslib.__await(result.value || []);
1474
+ let continuationToken = result.nextLink;
1475
+ while (continuationToken) {
1476
+ result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
1477
+ continuationToken = result.nextLink;
1478
+ yield yield tslib.__await(result.value || []);
1479
+ }
1480
+ });
1481
+ }
1482
+ listByResourceGroupPagingAll(resourceGroupName, options) {
1483
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1484
+ var e_2, _a;
1485
+ try {
1486
+ for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1487
+ const page = _c.value;
1488
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1489
+ }
1490
+ }
1491
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
1492
+ finally {
1493
+ try {
1494
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1495
+ }
1496
+ finally { if (e_2) throw e_2.error; }
1497
+ }
1498
+ });
1499
+ }
1500
+ /**
1501
+ * The List Domain Services in Subscription operation lists all the domain services available under the
1502
+ * given subscription (and across all resource groups within that subscription).
1503
+ * @param options The options parameters.
1504
+ */
1505
+ _list(options) {
1506
+ return this.client.sendOperationRequest({ options }, listOperationSpec$1);
1507
+ }
1508
+ /**
1509
+ * The List Domain Services in Resource Group operation lists all the domain services available under
1510
+ * the given resource group.
1511
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
1512
+ * case insensitive.
1513
+ * @param options The options parameters.
1514
+ */
1515
+ _listByResourceGroup(resourceGroupName, options) {
1516
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
1517
+ }
1518
+ /**
1519
+ * The Create Domain Service operation creates a new domain service with the specified parameters. If
1520
+ * the specific service already exists, then any patchable properties will be updated and any immutable
1521
+ * properties will remain unchanged.
1522
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
1523
+ * case insensitive.
1524
+ * @param domainServiceName The name of the domain service.
1525
+ * @param domainService Properties supplied to the Create or Update a Domain Service operation.
1526
+ * @param options The options parameters.
1527
+ */
1528
+ beginCreateOrUpdate(resourceGroupName, domainServiceName, domainService, options) {
1529
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1530
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1531
+ return this.client.sendOperationRequest(args, spec);
1532
+ });
1533
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1534
+ var _a;
1535
+ let currentRawResponse = undefined;
1536
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1537
+ const callback = (rawResponse, flatResponse) => {
1538
+ currentRawResponse = rawResponse;
1539
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1540
+ };
1541
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1542
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1543
+ return {
1544
+ flatResponse,
1545
+ rawResponse: {
1546
+ statusCode: currentRawResponse.status,
1547
+ body: currentRawResponse.parsedBody,
1548
+ headers: currentRawResponse.headers.toJSON()
1549
+ }
1550
+ };
1551
+ });
1552
+ const lro = new LroImpl(sendOperation, { resourceGroupName, domainServiceName, domainService, options }, createOrUpdateOperationSpec);
1553
+ return new coreLro.LroEngine(lro, {
1554
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1555
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1556
+ });
1557
+ });
1558
+ }
1559
+ /**
1560
+ * The Create Domain Service operation creates a new domain service with the specified parameters. If
1561
+ * the specific service already exists, then any patchable properties will be updated and any immutable
1562
+ * properties will remain unchanged.
1563
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
1564
+ * case insensitive.
1565
+ * @param domainServiceName The name of the domain service.
1566
+ * @param domainService Properties supplied to the Create or Update a Domain Service operation.
1567
+ * @param options The options parameters.
1568
+ */
1569
+ beginCreateOrUpdateAndWait(resourceGroupName, domainServiceName, domainService, options) {
1570
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1571
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, domainServiceName, domainService, options);
1572
+ return poller.pollUntilDone();
1573
+ });
1574
+ }
1575
+ /**
1576
+ * The Get Domain Service operation retrieves a json representation of the Domain Service.
1577
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
1578
+ * case insensitive.
1579
+ * @param domainServiceName The name of the domain service.
1580
+ * @param options The options parameters.
1581
+ */
1582
+ get(resourceGroupName, domainServiceName, options) {
1583
+ return this.client.sendOperationRequest({ resourceGroupName, domainServiceName, options }, getOperationSpec);
1584
+ }
1585
+ /**
1586
+ * The Delete Domain Service operation deletes an existing Domain Service.
1587
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
1588
+ * case insensitive.
1589
+ * @param domainServiceName The name of the domain service.
1590
+ * @param options The options parameters.
1591
+ */
1592
+ beginDelete(resourceGroupName, domainServiceName, options) {
1593
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1594
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1595
+ return this.client.sendOperationRequest(args, spec);
1596
+ });
1597
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1598
+ var _a;
1599
+ let currentRawResponse = undefined;
1600
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1601
+ const callback = (rawResponse, flatResponse) => {
1602
+ currentRawResponse = rawResponse;
1603
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1604
+ };
1605
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1606
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1607
+ return {
1608
+ flatResponse,
1609
+ rawResponse: {
1610
+ statusCode: currentRawResponse.status,
1611
+ body: currentRawResponse.parsedBody,
1612
+ headers: currentRawResponse.headers.toJSON()
1613
+ }
1614
+ };
1615
+ });
1616
+ const lro = new LroImpl(sendOperation, { resourceGroupName, domainServiceName, options }, deleteOperationSpec);
1617
+ return new coreLro.LroEngine(lro, {
1618
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1619
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1620
+ });
1621
+ });
1622
+ }
1623
+ /**
1624
+ * The Delete Domain Service operation deletes an existing Domain Service.
1625
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
1626
+ * case insensitive.
1627
+ * @param domainServiceName The name of the domain service.
1628
+ * @param options The options parameters.
1629
+ */
1630
+ beginDeleteAndWait(resourceGroupName, domainServiceName, options) {
1631
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1632
+ const poller = yield this.beginDelete(resourceGroupName, domainServiceName, options);
1633
+ return poller.pollUntilDone();
1634
+ });
1635
+ }
1636
+ /**
1637
+ * The Update Domain Service operation can be used to update the existing deployment. The update call
1638
+ * only supports the properties listed in the PATCH body.
1639
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
1640
+ * case insensitive.
1641
+ * @param domainServiceName The name of the domain service.
1642
+ * @param domainService Properties supplied to the Update a Domain Service operation.
1643
+ * @param options The options parameters.
1644
+ */
1645
+ beginUpdate(resourceGroupName, domainServiceName, domainService, options) {
1646
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1647
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1648
+ return this.client.sendOperationRequest(args, spec);
1649
+ });
1650
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1651
+ var _a;
1652
+ let currentRawResponse = undefined;
1653
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1654
+ const callback = (rawResponse, flatResponse) => {
1655
+ currentRawResponse = rawResponse;
1656
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1657
+ };
1658
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1659
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1660
+ return {
1661
+ flatResponse,
1662
+ rawResponse: {
1663
+ statusCode: currentRawResponse.status,
1664
+ body: currentRawResponse.parsedBody,
1665
+ headers: currentRawResponse.headers.toJSON()
1666
+ }
1667
+ };
1668
+ });
1669
+ const lro = new LroImpl(sendOperation, { resourceGroupName, domainServiceName, domainService, options }, updateOperationSpec);
1670
+ return new coreLro.LroEngine(lro, {
1671
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1672
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1673
+ });
1674
+ });
1675
+ }
1676
+ /**
1677
+ * The Update Domain Service operation can be used to update the existing deployment. The update call
1678
+ * only supports the properties listed in the PATCH body.
1679
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
1680
+ * case insensitive.
1681
+ * @param domainServiceName The name of the domain service.
1682
+ * @param domainService Properties supplied to the Update a Domain Service operation.
1683
+ * @param options The options parameters.
1684
+ */
1685
+ beginUpdateAndWait(resourceGroupName, domainServiceName, domainService, options) {
1686
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1687
+ const poller = yield this.beginUpdate(resourceGroupName, domainServiceName, domainService, options);
1688
+ return poller.pollUntilDone();
1689
+ });
1690
+ }
1691
+ /**
1692
+ * ListNext
1693
+ * @param nextLink The nextLink from the previous successful call to the List method.
1694
+ * @param options The options parameters.
1695
+ */
1696
+ _listNext(nextLink, options) {
1697
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
1698
+ }
1699
+ /**
1700
+ * ListByResourceGroupNext
1701
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
1702
+ * case insensitive.
1703
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1704
+ * @param options The options parameters.
1705
+ */
1706
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1707
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
1708
+ }
1709
+ }
1710
+ // Operation Specifications
1711
+ const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
1712
+ const listOperationSpec$1 = {
1713
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.AAD/domainServices",
1714
+ httpMethod: "GET",
1715
+ responses: {
1716
+ 200: {
1717
+ bodyMapper: DomainServiceListResult
1718
+ },
1719
+ default: {
1720
+ bodyMapper: CloudError
1721
+ }
1722
+ },
1723
+ queryParameters: [apiVersion],
1724
+ urlParameters: [$host, subscriptionId],
1725
+ headerParameters: [accept],
1726
+ serializer: serializer$1
1727
+ };
1728
+ const listByResourceGroupOperationSpec = {
1729
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AAD/domainServices",
1730
+ httpMethod: "GET",
1731
+ responses: {
1732
+ 200: {
1733
+ bodyMapper: DomainServiceListResult
1734
+ },
1735
+ default: {
1736
+ bodyMapper: CloudError
1737
+ }
1738
+ },
1739
+ queryParameters: [apiVersion],
1740
+ urlParameters: [
1741
+ $host,
1742
+ subscriptionId,
1743
+ resourceGroupName
1744
+ ],
1745
+ headerParameters: [accept],
1746
+ serializer: serializer$1
1747
+ };
1748
+ const createOrUpdateOperationSpec = {
1749
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AAD/domainServices/{domainServiceName}",
1750
+ httpMethod: "PUT",
1751
+ responses: {
1752
+ 200: {
1753
+ bodyMapper: DomainService
1754
+ },
1755
+ 201: {
1756
+ bodyMapper: DomainService
1757
+ },
1758
+ 202: {
1759
+ bodyMapper: DomainService
1760
+ },
1761
+ 204: {
1762
+ bodyMapper: DomainService
1763
+ },
1764
+ default: {
1765
+ bodyMapper: CloudError
1766
+ }
1767
+ },
1768
+ requestBody: domainService,
1769
+ queryParameters: [apiVersion],
1770
+ urlParameters: [
1771
+ $host,
1772
+ subscriptionId,
1773
+ resourceGroupName,
1774
+ domainServiceName
1775
+ ],
1776
+ headerParameters: [accept, contentType],
1777
+ mediaType: "json",
1778
+ serializer: serializer$1
1779
+ };
1780
+ const getOperationSpec = {
1781
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AAD/domainServices/{domainServiceName}",
1782
+ httpMethod: "GET",
1783
+ responses: {
1784
+ 200: {
1785
+ bodyMapper: DomainService
1786
+ },
1787
+ default: {
1788
+ bodyMapper: CloudError
1789
+ }
1790
+ },
1791
+ queryParameters: [apiVersion],
1792
+ urlParameters: [
1793
+ $host,
1794
+ subscriptionId,
1795
+ resourceGroupName,
1796
+ domainServiceName
1797
+ ],
1798
+ headerParameters: [accept],
1799
+ serializer: serializer$1
1800
+ };
1801
+ const deleteOperationSpec = {
1802
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AAD/domainServices/{domainServiceName}",
1803
+ httpMethod: "DELETE",
1804
+ responses: {
1805
+ 200: {},
1806
+ 201: {},
1807
+ 202: {},
1808
+ 204: {},
1809
+ default: {
1810
+ bodyMapper: CloudError
1811
+ }
1812
+ },
1813
+ queryParameters: [apiVersion],
1814
+ urlParameters: [
1815
+ $host,
1816
+ subscriptionId,
1817
+ resourceGroupName,
1818
+ domainServiceName
1819
+ ],
1820
+ headerParameters: [accept],
1821
+ serializer: serializer$1
1822
+ };
1823
+ const updateOperationSpec = {
1824
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AAD/domainServices/{domainServiceName}",
1825
+ httpMethod: "PATCH",
1826
+ responses: {
1827
+ 200: {
1828
+ bodyMapper: DomainService
1829
+ },
1830
+ 201: {
1831
+ bodyMapper: DomainService
1832
+ },
1833
+ 202: {
1834
+ bodyMapper: DomainService
1835
+ },
1836
+ 204: {
1837
+ bodyMapper: DomainService
1838
+ },
1839
+ default: {
1840
+ bodyMapper: CloudError
1841
+ }
1842
+ },
1843
+ requestBody: domainService,
1844
+ queryParameters: [apiVersion],
1845
+ urlParameters: [
1846
+ $host,
1847
+ subscriptionId,
1848
+ resourceGroupName,
1849
+ domainServiceName
1850
+ ],
1851
+ headerParameters: [accept, contentType],
1852
+ mediaType: "json",
1853
+ serializer: serializer$1
1854
+ };
1855
+ const listNextOperationSpec$1 = {
1856
+ path: "{nextLink}",
1857
+ httpMethod: "GET",
1858
+ responses: {
1859
+ 200: {
1860
+ bodyMapper: DomainServiceListResult
1861
+ },
1862
+ default: {
1863
+ bodyMapper: CloudError
1864
+ }
1865
+ },
1866
+ queryParameters: [apiVersion],
1867
+ urlParameters: [
1868
+ $host,
1869
+ nextLink,
1870
+ subscriptionId
1871
+ ],
1872
+ headerParameters: [accept],
1873
+ serializer: serializer$1
1874
+ };
1875
+ const listByResourceGroupNextOperationSpec = {
1876
+ path: "{nextLink}",
1877
+ httpMethod: "GET",
1878
+ responses: {
1879
+ 200: {
1880
+ bodyMapper: DomainServiceListResult
1881
+ },
1882
+ default: {
1883
+ bodyMapper: CloudError
1884
+ }
1885
+ },
1886
+ queryParameters: [apiVersion],
1887
+ urlParameters: [
1888
+ $host,
1889
+ nextLink,
1890
+ subscriptionId,
1891
+ resourceGroupName
1892
+ ],
1893
+ headerParameters: [accept],
1894
+ serializer: serializer$1
1895
+ };
1896
+
1897
+ /*
1898
+ * Copyright (c) Microsoft Corporation.
1899
+ * Licensed under the MIT License.
1900
+ *
1901
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1902
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1903
+ */
1904
+ /// <reference lib="esnext.asynciterable" />
1905
+ /** Class containing OuContainerOperations operations. */
1906
+ class OuContainerOperationsImpl {
1907
+ /**
1908
+ * Initialize a new instance of the class OuContainerOperations class.
1909
+ * @param client Reference to the service client
1910
+ */
1911
+ constructor(client) {
1912
+ this.client = client;
1913
+ }
1914
+ /**
1915
+ * Lists all the available OuContainer operations.
1916
+ * @param options The options parameters.
1917
+ */
1918
+ list(options) {
1919
+ const iter = this.listPagingAll(options);
1920
+ return {
1921
+ next() {
1922
+ return iter.next();
1923
+ },
1924
+ [Symbol.asyncIterator]() {
1925
+ return this;
1926
+ },
1927
+ byPage: () => {
1928
+ return this.listPagingPage(options);
1929
+ }
1930
+ };
1931
+ }
1932
+ listPagingPage(options) {
1933
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1934
+ let result = yield tslib.__await(this._list(options));
1935
+ yield yield tslib.__await(result.value || []);
1936
+ let continuationToken = result.nextLink;
1937
+ while (continuationToken) {
1938
+ result = yield tslib.__await(this._listNext(continuationToken, options));
1939
+ continuationToken = result.nextLink;
1940
+ yield yield tslib.__await(result.value || []);
1941
+ }
1942
+ });
1943
+ }
1944
+ listPagingAll(options) {
1945
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1946
+ var e_1, _a;
1947
+ try {
1948
+ for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1949
+ const page = _c.value;
1950
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1951
+ }
1952
+ }
1953
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1954
+ finally {
1955
+ try {
1956
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1957
+ }
1958
+ finally { if (e_1) throw e_1.error; }
1959
+ }
1960
+ });
1961
+ }
1962
+ /**
1963
+ * Lists all the available OuContainer operations.
1964
+ * @param options The options parameters.
1965
+ */
1966
+ _list(options) {
1967
+ return this.client.sendOperationRequest({ options }, listOperationSpec$2);
1968
+ }
1969
+ /**
1970
+ * ListNext
1971
+ * @param nextLink The nextLink from the previous successful call to the List method.
1972
+ * @param options The options parameters.
1973
+ */
1974
+ _listNext(nextLink, options) {
1975
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$2);
1976
+ }
1977
+ }
1978
+ // Operation Specifications
1979
+ const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
1980
+ const listOperationSpec$2 = {
1981
+ path: "/providers/Microsoft.Aad/operations",
1982
+ httpMethod: "GET",
1983
+ responses: {
1984
+ 200: {
1985
+ bodyMapper: OperationEntityListResult
1986
+ },
1987
+ default: {
1988
+ bodyMapper: CloudError
1989
+ }
1990
+ },
1991
+ queryParameters: [apiVersion],
1992
+ urlParameters: [$host],
1993
+ headerParameters: [accept],
1994
+ serializer: serializer$2
1995
+ };
1996
+ const listNextOperationSpec$2 = {
1997
+ path: "{nextLink}",
1998
+ httpMethod: "GET",
1999
+ responses: {
2000
+ 200: {
2001
+ bodyMapper: OperationEntityListResult
2002
+ },
2003
+ default: {
2004
+ bodyMapper: CloudError
2005
+ }
2006
+ },
2007
+ queryParameters: [apiVersion],
2008
+ urlParameters: [$host, nextLink],
2009
+ headerParameters: [accept],
2010
+ serializer: serializer$2
2011
+ };
2012
+
2013
+ /*
2014
+ * Copyright (c) Microsoft Corporation.
2015
+ * Licensed under the MIT License.
2016
+ *
2017
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2018
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2019
+ */
2020
+ /// <reference lib="esnext.asynciterable" />
2021
+ /** Class containing OuContainerOperationGrp operations. */
2022
+ class OuContainerOperationGrpImpl {
2023
+ /**
2024
+ * Initialize a new instance of the class OuContainerOperationGrp class.
2025
+ * @param client Reference to the service client
2026
+ */
2027
+ constructor(client) {
2028
+ this.client = client;
2029
+ }
2030
+ /**
2031
+ * The List of OuContainers in DomainService instance.
2032
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
2033
+ * case insensitive.
2034
+ * @param domainServiceName The name of the domain service.
2035
+ * @param options The options parameters.
2036
+ */
2037
+ list(resourceGroupName, domainServiceName, options) {
2038
+ const iter = this.listPagingAll(resourceGroupName, domainServiceName, options);
2039
+ return {
2040
+ next() {
2041
+ return iter.next();
2042
+ },
2043
+ [Symbol.asyncIterator]() {
2044
+ return this;
2045
+ },
2046
+ byPage: () => {
2047
+ return this.listPagingPage(resourceGroupName, domainServiceName, options);
2048
+ }
2049
+ };
2050
+ }
2051
+ listPagingPage(resourceGroupName, domainServiceName, options) {
2052
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2053
+ let result = yield tslib.__await(this._list(resourceGroupName, domainServiceName, options));
2054
+ yield yield tslib.__await(result.value || []);
2055
+ let continuationToken = result.nextLink;
2056
+ while (continuationToken) {
2057
+ result = yield tslib.__await(this._listNext(resourceGroupName, domainServiceName, continuationToken, options));
2058
+ continuationToken = result.nextLink;
2059
+ yield yield tslib.__await(result.value || []);
2060
+ }
2061
+ });
2062
+ }
2063
+ listPagingAll(resourceGroupName, domainServiceName, options) {
2064
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2065
+ var e_1, _a;
2066
+ try {
2067
+ for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, domainServiceName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2068
+ const page = _c.value;
2069
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2070
+ }
2071
+ }
2072
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
2073
+ finally {
2074
+ try {
2075
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2076
+ }
2077
+ finally { if (e_1) throw e_1.error; }
2078
+ }
2079
+ });
2080
+ }
2081
+ /**
2082
+ * The List of OuContainers in DomainService instance.
2083
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
2084
+ * case insensitive.
2085
+ * @param domainServiceName The name of the domain service.
2086
+ * @param options The options parameters.
2087
+ */
2088
+ _list(resourceGroupName, domainServiceName, options) {
2089
+ return this.client.sendOperationRequest({ resourceGroupName, domainServiceName, options }, listOperationSpec$3);
2090
+ }
2091
+ /**
2092
+ * Get OuContainer in DomainService instance.
2093
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
2094
+ * case insensitive.
2095
+ * @param domainServiceName The name of the domain service.
2096
+ * @param ouContainerName The name of the OuContainer.
2097
+ * @param options The options parameters.
2098
+ */
2099
+ get(resourceGroupName, domainServiceName, ouContainerName, options) {
2100
+ return this.client.sendOperationRequest({ resourceGroupName, domainServiceName, ouContainerName, options }, getOperationSpec$1);
2101
+ }
2102
+ /**
2103
+ * The Create OuContainer operation creates a new OuContainer under the specified Domain Service
2104
+ * instance.
2105
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
2106
+ * case insensitive.
2107
+ * @param domainServiceName The name of the domain service.
2108
+ * @param ouContainerName The name of the OuContainer.
2109
+ * @param containerAccount Container Account Description.
2110
+ * @param options The options parameters.
2111
+ */
2112
+ beginCreate(resourceGroupName, domainServiceName, ouContainerName, containerAccount, options) {
2113
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2114
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2115
+ return this.client.sendOperationRequest(args, spec);
2116
+ });
2117
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2118
+ var _a;
2119
+ let currentRawResponse = undefined;
2120
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2121
+ const callback = (rawResponse, flatResponse) => {
2122
+ currentRawResponse = rawResponse;
2123
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2124
+ };
2125
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2126
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2127
+ return {
2128
+ flatResponse,
2129
+ rawResponse: {
2130
+ statusCode: currentRawResponse.status,
2131
+ body: currentRawResponse.parsedBody,
2132
+ headers: currentRawResponse.headers.toJSON()
2133
+ }
2134
+ };
2135
+ });
2136
+ const lro = new LroImpl(sendOperation, {
2137
+ resourceGroupName,
2138
+ domainServiceName,
2139
+ ouContainerName,
2140
+ containerAccount,
2141
+ options
2142
+ }, createOperationSpec);
2143
+ return new coreLro.LroEngine(lro, {
2144
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2145
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2146
+ });
2147
+ });
2148
+ }
2149
+ /**
2150
+ * The Create OuContainer operation creates a new OuContainer under the specified Domain Service
2151
+ * instance.
2152
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
2153
+ * case insensitive.
2154
+ * @param domainServiceName The name of the domain service.
2155
+ * @param ouContainerName The name of the OuContainer.
2156
+ * @param containerAccount Container Account Description.
2157
+ * @param options The options parameters.
2158
+ */
2159
+ beginCreateAndWait(resourceGroupName, domainServiceName, ouContainerName, containerAccount, options) {
2160
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2161
+ const poller = yield this.beginCreate(resourceGroupName, domainServiceName, ouContainerName, containerAccount, options);
2162
+ return poller.pollUntilDone();
2163
+ });
2164
+ }
2165
+ /**
2166
+ * The Delete OuContainer operation deletes specified OuContainer.
2167
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
2168
+ * case insensitive.
2169
+ * @param domainServiceName The name of the domain service.
2170
+ * @param ouContainerName The name of the OuContainer.
2171
+ * @param options The options parameters.
2172
+ */
2173
+ beginDelete(resourceGroupName, domainServiceName, ouContainerName, options) {
2174
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2175
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2176
+ return this.client.sendOperationRequest(args, spec);
2177
+ });
2178
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2179
+ var _a;
2180
+ let currentRawResponse = undefined;
2181
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2182
+ const callback = (rawResponse, flatResponse) => {
2183
+ currentRawResponse = rawResponse;
2184
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2185
+ };
2186
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2187
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2188
+ return {
2189
+ flatResponse,
2190
+ rawResponse: {
2191
+ statusCode: currentRawResponse.status,
2192
+ body: currentRawResponse.parsedBody,
2193
+ headers: currentRawResponse.headers.toJSON()
2194
+ }
2195
+ };
2196
+ });
2197
+ const lro = new LroImpl(sendOperation, { resourceGroupName, domainServiceName, ouContainerName, options }, deleteOperationSpec$1);
2198
+ return new coreLro.LroEngine(lro, {
2199
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2200
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2201
+ });
2202
+ });
2203
+ }
2204
+ /**
2205
+ * The Delete OuContainer operation deletes specified OuContainer.
2206
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
2207
+ * case insensitive.
2208
+ * @param domainServiceName The name of the domain service.
2209
+ * @param ouContainerName The name of the OuContainer.
2210
+ * @param options The options parameters.
2211
+ */
2212
+ beginDeleteAndWait(resourceGroupName, domainServiceName, ouContainerName, options) {
2213
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2214
+ const poller = yield this.beginDelete(resourceGroupName, domainServiceName, ouContainerName, options);
2215
+ return poller.pollUntilDone();
2216
+ });
2217
+ }
2218
+ /**
2219
+ * The Update OuContainer operation can be used to update the existing OuContainers.
2220
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
2221
+ * case insensitive.
2222
+ * @param domainServiceName The name of the domain service.
2223
+ * @param ouContainerName The name of the OuContainer.
2224
+ * @param containerAccount Container Account Description.
2225
+ * @param options The options parameters.
2226
+ */
2227
+ beginUpdate(resourceGroupName, domainServiceName, ouContainerName, containerAccount, options) {
2228
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2229
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2230
+ return this.client.sendOperationRequest(args, spec);
2231
+ });
2232
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2233
+ var _a;
2234
+ let currentRawResponse = undefined;
2235
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2236
+ const callback = (rawResponse, flatResponse) => {
2237
+ currentRawResponse = rawResponse;
2238
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2239
+ };
2240
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2241
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2242
+ return {
2243
+ flatResponse,
2244
+ rawResponse: {
2245
+ statusCode: currentRawResponse.status,
2246
+ body: currentRawResponse.parsedBody,
2247
+ headers: currentRawResponse.headers.toJSON()
2248
+ }
2249
+ };
2250
+ });
2251
+ const lro = new LroImpl(sendOperation, {
2252
+ resourceGroupName,
2253
+ domainServiceName,
2254
+ ouContainerName,
2255
+ containerAccount,
2256
+ options
2257
+ }, updateOperationSpec$1);
2258
+ return new coreLro.LroEngine(lro, {
2259
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2260
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2261
+ });
2262
+ });
2263
+ }
2264
+ /**
2265
+ * The Update OuContainer operation can be used to update the existing OuContainers.
2266
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
2267
+ * case insensitive.
2268
+ * @param domainServiceName The name of the domain service.
2269
+ * @param ouContainerName The name of the OuContainer.
2270
+ * @param containerAccount Container Account Description.
2271
+ * @param options The options parameters.
2272
+ */
2273
+ beginUpdateAndWait(resourceGroupName, domainServiceName, ouContainerName, containerAccount, options) {
2274
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2275
+ const poller = yield this.beginUpdate(resourceGroupName, domainServiceName, ouContainerName, containerAccount, options);
2276
+ return poller.pollUntilDone();
2277
+ });
2278
+ }
2279
+ /**
2280
+ * ListNext
2281
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
2282
+ * case insensitive.
2283
+ * @param domainServiceName The name of the domain service.
2284
+ * @param nextLink The nextLink from the previous successful call to the List method.
2285
+ * @param options The options parameters.
2286
+ */
2287
+ _listNext(resourceGroupName, domainServiceName, nextLink, options) {
2288
+ return this.client.sendOperationRequest({ resourceGroupName, domainServiceName, nextLink, options }, listNextOperationSpec$3);
2289
+ }
2290
+ }
2291
+ // Operation Specifications
2292
+ const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
2293
+ const listOperationSpec$3 = {
2294
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Aad/domainServices/{domainServiceName}/ouContainer",
2295
+ httpMethod: "GET",
2296
+ responses: {
2297
+ 200: {
2298
+ bodyMapper: OuContainerListResult
2299
+ },
2300
+ default: {
2301
+ bodyMapper: CloudError
2302
+ }
2303
+ },
2304
+ queryParameters: [apiVersion],
2305
+ urlParameters: [
2306
+ $host,
2307
+ subscriptionId,
2308
+ resourceGroupName,
2309
+ domainServiceName
2310
+ ],
2311
+ headerParameters: [accept],
2312
+ serializer: serializer$3
2313
+ };
2314
+ const getOperationSpec$1 = {
2315
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Aad/domainServices/{domainServiceName}/ouContainer/{ouContainerName}",
2316
+ httpMethod: "GET",
2317
+ responses: {
2318
+ 200: {
2319
+ bodyMapper: OuContainer
2320
+ },
2321
+ default: {
2322
+ bodyMapper: CloudError
2323
+ }
2324
+ },
2325
+ queryParameters: [apiVersion],
2326
+ urlParameters: [
2327
+ $host,
2328
+ subscriptionId,
2329
+ resourceGroupName,
2330
+ domainServiceName,
2331
+ ouContainerName
2332
+ ],
2333
+ headerParameters: [accept],
2334
+ serializer: serializer$3
2335
+ };
2336
+ const createOperationSpec = {
2337
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Aad/domainServices/{domainServiceName}/ouContainer/{ouContainerName}",
2338
+ httpMethod: "PUT",
2339
+ responses: {
2340
+ 200: {
2341
+ bodyMapper: OuContainer
2342
+ },
2343
+ 201: {
2344
+ bodyMapper: OuContainer
2345
+ },
2346
+ 202: {
2347
+ bodyMapper: OuContainer
2348
+ },
2349
+ 204: {
2350
+ bodyMapper: OuContainer
2351
+ },
2352
+ default: {
2353
+ bodyMapper: CloudError
2354
+ }
2355
+ },
2356
+ requestBody: containerAccount,
2357
+ queryParameters: [apiVersion],
2358
+ urlParameters: [
2359
+ $host,
2360
+ subscriptionId,
2361
+ resourceGroupName,
2362
+ domainServiceName,
2363
+ ouContainerName
2364
+ ],
2365
+ headerParameters: [accept, contentType],
2366
+ mediaType: "json",
2367
+ serializer: serializer$3
2368
+ };
2369
+ const deleteOperationSpec$1 = {
2370
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Aad/domainServices/{domainServiceName}/ouContainer/{ouContainerName}",
2371
+ httpMethod: "DELETE",
2372
+ responses: {
2373
+ 200: {},
2374
+ 201: {},
2375
+ 202: {},
2376
+ 204: {},
2377
+ default: {
2378
+ bodyMapper: CloudError
2379
+ }
2380
+ },
2381
+ queryParameters: [apiVersion],
2382
+ urlParameters: [
2383
+ $host,
2384
+ subscriptionId,
2385
+ resourceGroupName,
2386
+ domainServiceName,
2387
+ ouContainerName
2388
+ ],
2389
+ headerParameters: [accept],
2390
+ serializer: serializer$3
2391
+ };
2392
+ const updateOperationSpec$1 = {
2393
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Aad/domainServices/{domainServiceName}/ouContainer/{ouContainerName}",
2394
+ httpMethod: "PATCH",
2395
+ responses: {
2396
+ 200: {
2397
+ bodyMapper: OuContainer
2398
+ },
2399
+ 201: {
2400
+ bodyMapper: OuContainer
2401
+ },
2402
+ 202: {
2403
+ bodyMapper: OuContainer
2404
+ },
2405
+ 204: {
2406
+ bodyMapper: OuContainer
2407
+ },
2408
+ default: {
2409
+ bodyMapper: CloudError
2410
+ }
2411
+ },
2412
+ requestBody: containerAccount,
2413
+ queryParameters: [apiVersion],
2414
+ urlParameters: [
2415
+ $host,
2416
+ subscriptionId,
2417
+ resourceGroupName,
2418
+ domainServiceName,
2419
+ ouContainerName
2420
+ ],
2421
+ headerParameters: [accept, contentType],
2422
+ mediaType: "json",
2423
+ serializer: serializer$3
2424
+ };
2425
+ const listNextOperationSpec$3 = {
2426
+ path: "{nextLink}",
2427
+ httpMethod: "GET",
2428
+ responses: {
2429
+ 200: {
2430
+ bodyMapper: OuContainerListResult
2431
+ },
2432
+ default: {
2433
+ bodyMapper: CloudError
2434
+ }
2435
+ },
2436
+ queryParameters: [apiVersion],
2437
+ urlParameters: [
2438
+ $host,
2439
+ nextLink,
2440
+ subscriptionId,
2441
+ resourceGroupName,
2442
+ domainServiceName
2443
+ ],
2444
+ headerParameters: [accept],
2445
+ serializer: serializer$3
2446
+ };
2447
+
2448
+ /*
2449
+ * Copyright (c) Microsoft Corporation.
2450
+ * Licensed under the MIT License.
2451
+ *
2452
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2453
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2454
+ */
2455
+ class DomainServicesResourceProvider extends coreClient.ServiceClient {
2456
+ /**
2457
+ * Initializes a new instance of the DomainServicesResourceProvider class.
2458
+ * @param credentials Subscription credentials which uniquely identify client subscription.
2459
+ * @param subscriptionId Gets subscription credentials which uniquely identify the Microsoft Azure
2460
+ * subscription. The subscription ID forms part of the URI for every service call.
2461
+ * @param options The parameter options
2462
+ */
2463
+ constructor(credentials, subscriptionId, options) {
2464
+ if (credentials === undefined) {
2465
+ throw new Error("'credentials' cannot be null");
2466
+ }
2467
+ if (subscriptionId === undefined) {
2468
+ throw new Error("'subscriptionId' cannot be null");
2469
+ }
2470
+ // Initializing default values for options
2471
+ if (!options) {
2472
+ options = {};
2473
+ }
2474
+ const defaults = {
2475
+ requestContentType: "application/json; charset=utf-8",
2476
+ credential: credentials
2477
+ };
2478
+ const packageDetails = `azsdk-js-arm-domainservices/4.0.0`;
2479
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
2480
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
2481
+ : `${packageDetails}`;
2482
+ if (!options.credentialScopes) {
2483
+ options.credentialScopes = ["https://management.azure.com/.default"];
2484
+ }
2485
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
2486
+ userAgentPrefix
2487
+ }, baseUri: options.endpoint || "https://management.azure.com" });
2488
+ super(optionsWithDefaults);
2489
+ // Parameter assignments
2490
+ this.subscriptionId = subscriptionId;
2491
+ // Assigning values to Constant parameters
2492
+ this.$host = options.$host || "https://management.azure.com";
2493
+ this.apiVersion = options.apiVersion || "2021-05-01";
2494
+ this.domainServiceOperations = new DomainServiceOperationsImpl(this);
2495
+ this.domainServices = new DomainServicesImpl(this);
2496
+ this.ouContainerOperations = new OuContainerOperationsImpl(this);
2497
+ this.ouContainerOperationGrp = new OuContainerOperationGrpImpl(this);
2498
+ }
2499
+ }
2500
+
2501
+ exports.DomainServicesResourceProvider = DomainServicesResourceProvider;
2502
+ //# sourceMappingURL=index.js.map