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