@azure/arm-privatedns 1.0.0 → 3.0.0-alpha.20220124.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/LICENSE.txt +21 -21
  4. package/README.md +98 -100
  5. package/dist/index.js +2295 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/index.min.js +1 -0
  8. package/dist/index.min.js.map +1 -0
  9. package/dist-esm/src/index.d.ts +5 -0
  10. package/dist-esm/src/index.d.ts.map +1 -0
  11. package/dist-esm/src/index.js +12 -0
  12. package/dist-esm/src/index.js.map +1 -0
  13. package/dist-esm/src/lroImpl.d.ts +16 -0
  14. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  15. package/dist-esm/src/lroImpl.js +29 -0
  16. package/dist-esm/src/lroImpl.js.map +1 -0
  17. package/dist-esm/src/models/index.d.ts +470 -0
  18. package/dist-esm/src/models/index.d.ts.map +1 -0
  19. package/dist-esm/src/models/index.js +24 -0
  20. package/dist-esm/src/models/index.js.map +1 -0
  21. package/dist-esm/src/models/mappers.d.ts +22 -0
  22. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  23. package/{esm → dist-esm/src}/models/mappers.js +234 -205
  24. package/dist-esm/src/models/mappers.js.map +1 -0
  25. package/dist-esm/src/models/parameters.d.ts +20 -0
  26. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  27. package/{esm → dist-esm/src}/models/parameters.js +91 -77
  28. package/dist-esm/src/models/parameters.js.map +1 -0
  29. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  30. package/dist-esm/src/operations/index.d.ts.map +1 -0
  31. package/{esm → dist-esm/src}/operations/index.js +3 -5
  32. package/dist-esm/src/operations/index.js.map +1 -0
  33. package/dist-esm/src/operations/privateZones.d.ts +114 -0
  34. package/dist-esm/src/operations/privateZones.d.ts.map +1 -0
  35. package/dist-esm/src/operations/privateZones.js +516 -0
  36. package/dist-esm/src/operations/privateZones.js.map +1 -0
  37. package/dist-esm/src/operations/recordSets.d.ts +105 -0
  38. package/dist-esm/src/operations/recordSets.d.ts.map +1 -0
  39. package/dist-esm/src/operations/recordSets.js +451 -0
  40. package/dist-esm/src/operations/recordSets.js.map +1 -0
  41. package/dist-esm/src/operations/virtualNetworkLinks.d.ts +103 -0
  42. package/dist-esm/src/operations/virtualNetworkLinks.d.ts.map +1 -0
  43. package/dist-esm/src/operations/virtualNetworkLinks.js +442 -0
  44. package/dist-esm/src/operations/virtualNetworkLinks.js.map +1 -0
  45. package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
  46. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  47. package/dist-esm/src/operationsInterfaces/index.js +11 -0
  48. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  49. package/dist-esm/src/operationsInterfaces/privateZones.d.ts +78 -0
  50. package/dist-esm/src/operationsInterfaces/privateZones.d.ts.map +1 -0
  51. package/dist-esm/src/operationsInterfaces/privateZones.js +9 -0
  52. package/dist-esm/src/operationsInterfaces/privateZones.js.map +1 -0
  53. package/dist-esm/src/operationsInterfaces/recordSets.d.ts +61 -0
  54. package/dist-esm/src/operationsInterfaces/recordSets.d.ts.map +1 -0
  55. package/dist-esm/src/operationsInterfaces/recordSets.js +9 -0
  56. package/dist-esm/src/operationsInterfaces/recordSets.js.map +1 -0
  57. package/dist-esm/src/operationsInterfaces/virtualNetworkLinks.d.ts +78 -0
  58. package/dist-esm/src/operationsInterfaces/virtualNetworkLinks.d.ts.map +1 -0
  59. package/dist-esm/src/operationsInterfaces/virtualNetworkLinks.js +9 -0
  60. package/dist-esm/src/operationsInterfaces/virtualNetworkLinks.js.map +1 -0
  61. package/dist-esm/src/privateDnsManagementClient.d.ts +21 -0
  62. package/dist-esm/src/privateDnsManagementClient.d.ts.map +1 -0
  63. package/dist-esm/src/privateDnsManagementClient.js +54 -0
  64. package/dist-esm/src/privateDnsManagementClient.js.map +1 -0
  65. package/dist-esm/test/sampleTest.d.ts +2 -0
  66. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  67. package/dist-esm/test/sampleTest.js +40 -0
  68. package/dist-esm/test/sampleTest.js.map +1 -0
  69. package/package.json +85 -25
  70. package/review/arm-privatedns.api.md +435 -0
  71. package/rollup.config.js +181 -30
  72. package/src/index.ts +12 -0
  73. package/src/lroImpl.ts +34 -0
  74. package/src/models/index.ts +567 -0
  75. package/{lib → src}/models/mappers.ts +248 -214
  76. package/src/models/parameters.ts +201 -0
  77. package/{lib → src}/operations/index.ts +3 -5
  78. package/src/operations/privateZones.ts +686 -0
  79. package/src/operations/recordSets.ts +602 -0
  80. package/src/operations/virtualNetworkLinks.ts +624 -0
  81. package/src/operationsInterfaces/index.ts +11 -0
  82. package/src/operationsInterfaces/privateZones.ts +145 -0
  83. package/src/operationsInterfaces/recordSets.ts +117 -0
  84. package/src/operationsInterfaces/virtualNetworkLinks.ts +150 -0
  85. package/src/privateDnsManagementClient.ts +88 -0
  86. package/tsconfig.json +20 -7
  87. package/types/arm-privatedns.d.ts +768 -0
  88. package/types/tsdoc-metadata.json +11 -0
  89. package/dist/arm-privatedns.js +0 -1944
  90. package/dist/arm-privatedns.js.map +0 -1
  91. package/dist/arm-privatedns.min.js +0 -1
  92. package/dist/arm-privatedns.min.js.map +0 -1
  93. package/esm/models/index.d.ts +0 -1031
  94. package/esm/models/index.d.ts.map +0 -1
  95. package/esm/models/index.js +0 -8
  96. package/esm/models/index.js.map +0 -1
  97. package/esm/models/mappers.d.ts +0 -22
  98. package/esm/models/mappers.d.ts.map +0 -1
  99. package/esm/models/mappers.js.map +0 -1
  100. package/esm/models/parameters.d.ts +0 -15
  101. package/esm/models/parameters.d.ts.map +0 -1
  102. package/esm/models/parameters.js.map +0 -1
  103. package/esm/models/privateZonesMappers.d.ts +0 -2
  104. package/esm/models/privateZonesMappers.d.ts.map +0 -1
  105. package/esm/models/privateZonesMappers.js +0 -9
  106. package/esm/models/privateZonesMappers.js.map +0 -1
  107. package/esm/models/recordSetsMappers.d.ts +0 -2
  108. package/esm/models/recordSetsMappers.d.ts.map +0 -1
  109. package/esm/models/recordSetsMappers.js +0 -9
  110. package/esm/models/recordSetsMappers.js.map +0 -1
  111. package/esm/models/virtualNetworkLinksMappers.d.ts +0 -2
  112. package/esm/models/virtualNetworkLinksMappers.d.ts.map +0 -1
  113. package/esm/models/virtualNetworkLinksMappers.js +0 -9
  114. package/esm/models/virtualNetworkLinksMappers.js.map +0 -1
  115. package/esm/operations/index.d.ts.map +0 -1
  116. package/esm/operations/index.js.map +0 -1
  117. package/esm/operations/privateZones.d.ts +0 -165
  118. package/esm/operations/privateZones.d.ts.map +0 -1
  119. package/esm/operations/privateZones.js +0 -347
  120. package/esm/operations/privateZones.js.map +0 -1
  121. package/esm/operations/recordSets.d.ts +0 -229
  122. package/esm/operations/recordSets.d.ts.map +0 -1
  123. package/esm/operations/recordSets.js +0 -304
  124. package/esm/operations/recordSets.js.map +0 -1
  125. package/esm/operations/virtualNetworkLinks.d.ts +0 -139
  126. package/esm/operations/virtualNetworkLinks.d.ts.map +0 -1
  127. package/esm/operations/virtualNetworkLinks.js +0 -305
  128. package/esm/operations/virtualNetworkLinks.js.map +0 -1
  129. package/esm/privateDnsManagementClient.d.ts +0 -21
  130. package/esm/privateDnsManagementClient.d.ts.map +0 -1
  131. package/esm/privateDnsManagementClient.js +0 -36
  132. package/esm/privateDnsManagementClient.js.map +0 -1
  133. package/esm/privateDnsManagementClientContext.d.ts +0 -17
  134. package/esm/privateDnsManagementClientContext.d.ts.map +0 -1
  135. package/esm/privateDnsManagementClientContext.js +0 -57
  136. package/esm/privateDnsManagementClientContext.js.map +0 -1
  137. package/lib/models/index.ts +0 -1123
  138. package/lib/models/parameters.ts +0 -162
  139. package/lib/models/privateZonesMappers.ts +0 -28
  140. package/lib/models/recordSetsMappers.ts +0 -28
  141. package/lib/models/virtualNetworkLinksMappers.ts +0 -28
  142. package/lib/operations/privateZones.ts +0 -490
  143. package/lib/operations/recordSets.ts +0 -568
  144. package/lib/operations/virtualNetworkLinks.ts +0 -410
  145. package/lib/privateDnsManagementClient.ts +0 -47
  146. package/lib/privateDnsManagementClientContext.ts +0 -63
@@ -1,1944 +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
- (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. All rights reserved.
16
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
17
- this file except in compliance with the License. You may obtain a copy of the
18
- License at http://www.apache.org/licenses/LICENSE-2.0
19
-
20
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
22
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
23
- MERCHANTABLITY OR NON-INFRINGEMENT.
24
-
25
- See the Apache Version 2.0 License for specific language governing permissions
26
- and limitations under the License.
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
-
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({}, 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({}, 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({}, 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({}, 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
- CloudError: CloudError,
632
- BaseResource: BaseResource,
633
- Resource: Resource,
634
- TrackedResource: TrackedResource,
635
- PrivateZone: PrivateZone,
636
- SubResource: SubResource,
637
- VirtualNetworkLink: VirtualNetworkLink,
638
- ARecord: ARecord,
639
- AaaaRecord: AaaaRecord,
640
- CnameRecord: CnameRecord,
641
- MxRecord: MxRecord,
642
- PtrRecord: PtrRecord,
643
- SoaRecord: SoaRecord,
644
- SrvRecord: SrvRecord,
645
- TxtRecord: TxtRecord,
646
- ProxyResource: ProxyResource,
647
- RecordSet: RecordSet,
648
- PrivateZoneListResult: PrivateZoneListResult,
649
- VirtualNetworkLinkListResult: VirtualNetworkLinkListResult,
650
- RecordSetListResult: RecordSetListResult
651
- });
652
-
653
- /*
654
- * Copyright (c) Microsoft Corporation. All rights reserved.
655
- * Licensed under the MIT License. See License.txt in the project root for license information.
656
- *
657
- * Code generated by Microsoft (R) AutoRest Code Generator.
658
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
659
- */
660
-
661
- var Mappers = /*#__PURE__*/Object.freeze({
662
- AaaaRecord: AaaaRecord,
663
- ARecord: ARecord,
664
- BaseResource: BaseResource,
665
- CloudError: CloudError,
666
- CnameRecord: CnameRecord,
667
- MxRecord: MxRecord,
668
- PrivateZone: PrivateZone,
669
- PrivateZoneListResult: PrivateZoneListResult,
670
- ProxyResource: ProxyResource,
671
- PtrRecord: PtrRecord,
672
- RecordSet: RecordSet,
673
- Resource: Resource,
674
- SoaRecord: SoaRecord,
675
- SrvRecord: SrvRecord,
676
- SubResource: SubResource,
677
- TrackedResource: TrackedResource,
678
- TxtRecord: TxtRecord,
679
- VirtualNetworkLink: VirtualNetworkLink
680
- });
681
-
682
- /*
683
- * Copyright (c) Microsoft Corporation. All rights reserved.
684
- * Licensed under the MIT License. See License.txt in the project root for
685
- * license information.
686
- *
687
- * Code generated by Microsoft (R) AutoRest Code Generator.
688
- * Changes may cause incorrect behavior and will be lost if the code is
689
- * regenerated.
690
- */
691
- var acceptLanguage = {
692
- parameterPath: "acceptLanguage",
693
- mapper: {
694
- serializedName: "accept-language",
695
- defaultValue: 'en-US',
696
- type: {
697
- name: "String"
698
- }
699
- }
700
- };
701
- var apiVersion = {
702
- parameterPath: "apiVersion",
703
- mapper: {
704
- required: true,
705
- serializedName: "api-version",
706
- type: {
707
- name: "String"
708
- }
709
- }
710
- };
711
- var ifMatch = {
712
- parameterPath: [
713
- "options",
714
- "ifMatch"
715
- ],
716
- mapper: {
717
- serializedName: "If-Match",
718
- type: {
719
- name: "String"
720
- }
721
- }
722
- };
723
- var ifNoneMatch = {
724
- parameterPath: [
725
- "options",
726
- "ifNoneMatch"
727
- ],
728
- mapper: {
729
- serializedName: "If-None-Match",
730
- type: {
731
- name: "String"
732
- }
733
- }
734
- };
735
- var nextPageLink = {
736
- parameterPath: "nextPageLink",
737
- mapper: {
738
- required: true,
739
- serializedName: "nextLink",
740
- type: {
741
- name: "String"
742
- }
743
- },
744
- skipEncoding: true
745
- };
746
- var privateZoneName = {
747
- parameterPath: "privateZoneName",
748
- mapper: {
749
- required: true,
750
- serializedName: "privateZoneName",
751
- type: {
752
- name: "String"
753
- }
754
- }
755
- };
756
- var recordsetnamesuffix = {
757
- parameterPath: [
758
- "options",
759
- "recordsetnamesuffix"
760
- ],
761
- mapper: {
762
- serializedName: "$recordsetnamesuffix",
763
- type: {
764
- name: "String"
765
- }
766
- }
767
- };
768
- var recordType = {
769
- parameterPath: "recordType",
770
- mapper: {
771
- required: true,
772
- serializedName: "recordType",
773
- type: {
774
- name: "Enum",
775
- allowedValues: [
776
- "A",
777
- "AAAA",
778
- "CNAME",
779
- "MX",
780
- "PTR",
781
- "SOA",
782
- "SRV",
783
- "TXT"
784
- ]
785
- }
786
- }
787
- };
788
- var relativeRecordSetName = {
789
- parameterPath: "relativeRecordSetName",
790
- mapper: {
791
- required: true,
792
- serializedName: "relativeRecordSetName",
793
- type: {
794
- name: "String"
795
- }
796
- },
797
- skipEncoding: true
798
- };
799
- var resourceGroupName = {
800
- parameterPath: "resourceGroupName",
801
- mapper: {
802
- required: true,
803
- serializedName: "resourceGroupName",
804
- type: {
805
- name: "String"
806
- }
807
- }
808
- };
809
- var subscriptionId = {
810
- parameterPath: "subscriptionId",
811
- mapper: {
812
- required: true,
813
- serializedName: "subscriptionId",
814
- type: {
815
- name: "String"
816
- }
817
- }
818
- };
819
- var top = {
820
- parameterPath: [
821
- "options",
822
- "top"
823
- ],
824
- mapper: {
825
- serializedName: "$top",
826
- type: {
827
- name: "Number"
828
- }
829
- }
830
- };
831
- var virtualNetworkLinkName = {
832
- parameterPath: "virtualNetworkLinkName",
833
- mapper: {
834
- required: true,
835
- serializedName: "virtualNetworkLinkName",
836
- type: {
837
- name: "String"
838
- }
839
- }
840
- };
841
-
842
- /*
843
- * Copyright (c) Microsoft Corporation. All rights reserved.
844
- * Licensed under the MIT License. See License.txt in the project root for
845
- * license information.
846
- *
847
- * Code generated by Microsoft (R) AutoRest Code Generator.
848
- * Changes may cause incorrect behavior and will be lost if the code is
849
- * regenerated.
850
- */
851
- /** Class representing a PrivateZones. */
852
- var PrivateZones = /** @class */ (function () {
853
- /**
854
- * Create a PrivateZones.
855
- * @param {PrivateDnsManagementClientContext} client Reference to the service client.
856
- */
857
- function PrivateZones(client) {
858
- this.client = client;
859
- }
860
- /**
861
- * Creates or updates a Private DNS zone. Does not modify Links to virtual networks or DNS records
862
- * within the zone.
863
- * @param resourceGroupName The name of the resource group.
864
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
865
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
866
- * @param [options] The optional parameters
867
- * @returns Promise<Models.PrivateZonesCreateOrUpdateResponse>
868
- */
869
- PrivateZones.prototype.createOrUpdate = function (resourceGroupName$$1, privateZoneName$$1, parameters, options) {
870
- return this.beginCreateOrUpdate(resourceGroupName$$1, privateZoneName$$1, parameters, options)
871
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
872
- };
873
- /**
874
- * Updates a Private DNS zone. Does not modify virtual network links or DNS records within the
875
- * zone.
876
- * @param resourceGroupName The name of the resource group.
877
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
878
- * @param parameters Parameters supplied to the Update operation.
879
- * @param [options] The optional parameters
880
- * @returns Promise<Models.PrivateZonesUpdateResponse>
881
- */
882
- PrivateZones.prototype.update = function (resourceGroupName$$1, privateZoneName$$1, parameters, options) {
883
- return this.beginUpdate(resourceGroupName$$1, privateZoneName$$1, parameters, options)
884
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
885
- };
886
- /**
887
- * Deletes a Private DNS zone. WARNING: All DNS records in the zone will also be deleted. This
888
- * operation cannot be undone. Private DNS zone cannot be deleted unless all virtual network links
889
- * to it are removed.
890
- * @param resourceGroupName The name of the resource group.
891
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
892
- * @param [options] The optional parameters
893
- * @returns Promise<msRest.RestResponse>
894
- */
895
- PrivateZones.prototype.deleteMethod = function (resourceGroupName$$1, privateZoneName$$1, options) {
896
- return this.beginDeleteMethod(resourceGroupName$$1, privateZoneName$$1, options)
897
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
898
- };
899
- PrivateZones.prototype.get = function (resourceGroupName$$1, privateZoneName$$1, options, callback) {
900
- return this.client.sendOperationRequest({
901
- resourceGroupName: resourceGroupName$$1,
902
- privateZoneName: privateZoneName$$1,
903
- options: options
904
- }, getOperationSpec, callback);
905
- };
906
- PrivateZones.prototype.list = function (options, callback) {
907
- return this.client.sendOperationRequest({
908
- options: options
909
- }, listOperationSpec, callback);
910
- };
911
- PrivateZones.prototype.listByResourceGroup = function (resourceGroupName$$1, options, callback) {
912
- return this.client.sendOperationRequest({
913
- resourceGroupName: resourceGroupName$$1,
914
- options: options
915
- }, listByResourceGroupOperationSpec, callback);
916
- };
917
- /**
918
- * Creates or updates a Private DNS zone. Does not modify Links to virtual networks or DNS records
919
- * within the zone.
920
- * @param resourceGroupName The name of the resource group.
921
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
922
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
923
- * @param [options] The optional parameters
924
- * @returns Promise<msRestAzure.LROPoller>
925
- */
926
- PrivateZones.prototype.beginCreateOrUpdate = function (resourceGroupName$$1, privateZoneName$$1, parameters, options) {
927
- return this.client.sendLRORequest({
928
- resourceGroupName: resourceGroupName$$1,
929
- privateZoneName: privateZoneName$$1,
930
- parameters: parameters,
931
- options: options
932
- }, beginCreateOrUpdateOperationSpec, options);
933
- };
934
- /**
935
- * Updates a Private DNS zone. Does not modify virtual network links or DNS records within the
936
- * zone.
937
- * @param resourceGroupName The name of the resource group.
938
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
939
- * @param parameters Parameters supplied to the Update operation.
940
- * @param [options] The optional parameters
941
- * @returns Promise<msRestAzure.LROPoller>
942
- */
943
- PrivateZones.prototype.beginUpdate = function (resourceGroupName$$1, privateZoneName$$1, parameters, options) {
944
- return this.client.sendLRORequest({
945
- resourceGroupName: resourceGroupName$$1,
946
- privateZoneName: privateZoneName$$1,
947
- parameters: parameters,
948
- options: options
949
- }, beginUpdateOperationSpec, options);
950
- };
951
- /**
952
- * Deletes a Private DNS zone. WARNING: All DNS records in the zone will also be deleted. This
953
- * operation cannot be undone. Private DNS zone cannot be deleted unless all virtual network links
954
- * to it are removed.
955
- * @param resourceGroupName The name of the resource group.
956
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
957
- * @param [options] The optional parameters
958
- * @returns Promise<msRestAzure.LROPoller>
959
- */
960
- PrivateZones.prototype.beginDeleteMethod = function (resourceGroupName$$1, privateZoneName$$1, options) {
961
- return this.client.sendLRORequest({
962
- resourceGroupName: resourceGroupName$$1,
963
- privateZoneName: privateZoneName$$1,
964
- options: options
965
- }, beginDeleteMethodOperationSpec, options);
966
- };
967
- PrivateZones.prototype.listNext = function (nextPageLink$$1, options, callback) {
968
- return this.client.sendOperationRequest({
969
- nextPageLink: nextPageLink$$1,
970
- options: options
971
- }, listNextOperationSpec, callback);
972
- };
973
- PrivateZones.prototype.listByResourceGroupNext = function (nextPageLink$$1, options, callback) {
974
- return this.client.sendOperationRequest({
975
- nextPageLink: nextPageLink$$1,
976
- options: options
977
- }, listByResourceGroupNextOperationSpec, callback);
978
- };
979
- return PrivateZones;
980
- }());
981
- // Operation Specifications
982
- var serializer = new msRest.Serializer(Mappers);
983
- var getOperationSpec = {
984
- httpMethod: "GET",
985
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}",
986
- urlParameters: [
987
- resourceGroupName,
988
- privateZoneName,
989
- subscriptionId
990
- ],
991
- queryParameters: [
992
- apiVersion
993
- ],
994
- headerParameters: [
995
- acceptLanguage
996
- ],
997
- responses: {
998
- 200: {
999
- bodyMapper: PrivateZone
1000
- },
1001
- default: {
1002
- bodyMapper: CloudError
1003
- }
1004
- },
1005
- serializer: serializer
1006
- };
1007
- var listOperationSpec = {
1008
- httpMethod: "GET",
1009
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Network/privateDnsZones",
1010
- urlParameters: [
1011
- subscriptionId
1012
- ],
1013
- queryParameters: [
1014
- top,
1015
- apiVersion
1016
- ],
1017
- headerParameters: [
1018
- acceptLanguage
1019
- ],
1020
- responses: {
1021
- 200: {
1022
- bodyMapper: PrivateZoneListResult
1023
- },
1024
- default: {
1025
- bodyMapper: CloudError
1026
- }
1027
- },
1028
- serializer: serializer
1029
- };
1030
- var listByResourceGroupOperationSpec = {
1031
- httpMethod: "GET",
1032
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones",
1033
- urlParameters: [
1034
- resourceGroupName,
1035
- subscriptionId
1036
- ],
1037
- queryParameters: [
1038
- top,
1039
- apiVersion
1040
- ],
1041
- headerParameters: [
1042
- acceptLanguage
1043
- ],
1044
- responses: {
1045
- 200: {
1046
- bodyMapper: PrivateZoneListResult
1047
- },
1048
- default: {
1049
- bodyMapper: CloudError
1050
- }
1051
- },
1052
- serializer: serializer
1053
- };
1054
- var beginCreateOrUpdateOperationSpec = {
1055
- httpMethod: "PUT",
1056
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}",
1057
- urlParameters: [
1058
- resourceGroupName,
1059
- privateZoneName,
1060
- subscriptionId
1061
- ],
1062
- queryParameters: [
1063
- apiVersion
1064
- ],
1065
- headerParameters: [
1066
- ifMatch,
1067
- ifNoneMatch,
1068
- acceptLanguage
1069
- ],
1070
- requestBody: {
1071
- parameterPath: "parameters",
1072
- mapper: __assign({}, PrivateZone, { required: true })
1073
- },
1074
- responses: {
1075
- 200: {
1076
- bodyMapper: PrivateZone
1077
- },
1078
- 201: {
1079
- bodyMapper: PrivateZone
1080
- },
1081
- 202: {},
1082
- default: {
1083
- bodyMapper: CloudError
1084
- }
1085
- },
1086
- serializer: serializer
1087
- };
1088
- var beginUpdateOperationSpec = {
1089
- httpMethod: "PATCH",
1090
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}",
1091
- urlParameters: [
1092
- resourceGroupName,
1093
- privateZoneName,
1094
- subscriptionId
1095
- ],
1096
- queryParameters: [
1097
- apiVersion
1098
- ],
1099
- headerParameters: [
1100
- ifMatch,
1101
- acceptLanguage
1102
- ],
1103
- requestBody: {
1104
- parameterPath: "parameters",
1105
- mapper: __assign({}, PrivateZone, { required: true })
1106
- },
1107
- responses: {
1108
- 200: {
1109
- bodyMapper: PrivateZone
1110
- },
1111
- 202: {},
1112
- default: {
1113
- bodyMapper: CloudError
1114
- }
1115
- },
1116
- serializer: serializer
1117
- };
1118
- var beginDeleteMethodOperationSpec = {
1119
- httpMethod: "DELETE",
1120
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}",
1121
- urlParameters: [
1122
- resourceGroupName,
1123
- privateZoneName,
1124
- subscriptionId
1125
- ],
1126
- queryParameters: [
1127
- apiVersion
1128
- ],
1129
- headerParameters: [
1130
- ifMatch,
1131
- acceptLanguage
1132
- ],
1133
- responses: {
1134
- 200: {},
1135
- 202: {},
1136
- 204: {},
1137
- default: {
1138
- bodyMapper: CloudError
1139
- }
1140
- },
1141
- serializer: serializer
1142
- };
1143
- var listNextOperationSpec = {
1144
- httpMethod: "GET",
1145
- baseUrl: "https://management.azure.com",
1146
- path: "{nextLink}",
1147
- urlParameters: [
1148
- nextPageLink
1149
- ],
1150
- headerParameters: [
1151
- acceptLanguage
1152
- ],
1153
- responses: {
1154
- 200: {
1155
- bodyMapper: PrivateZoneListResult
1156
- },
1157
- default: {
1158
- bodyMapper: CloudError
1159
- }
1160
- },
1161
- serializer: serializer
1162
- };
1163
- var listByResourceGroupNextOperationSpec = {
1164
- httpMethod: "GET",
1165
- baseUrl: "https://management.azure.com",
1166
- path: "{nextLink}",
1167
- urlParameters: [
1168
- nextPageLink
1169
- ],
1170
- headerParameters: [
1171
- acceptLanguage
1172
- ],
1173
- responses: {
1174
- 200: {
1175
- bodyMapper: PrivateZoneListResult
1176
- },
1177
- default: {
1178
- bodyMapper: CloudError
1179
- }
1180
- },
1181
- serializer: serializer
1182
- };
1183
-
1184
- /*
1185
- * Copyright (c) Microsoft Corporation. All rights reserved.
1186
- * Licensed under the MIT License. See License.txt in the project root for license information.
1187
- *
1188
- * Code generated by Microsoft (R) AutoRest Code Generator.
1189
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1190
- */
1191
-
1192
- var Mappers$1 = /*#__PURE__*/Object.freeze({
1193
- AaaaRecord: AaaaRecord,
1194
- ARecord: ARecord,
1195
- BaseResource: BaseResource,
1196
- CloudError: CloudError,
1197
- CnameRecord: CnameRecord,
1198
- MxRecord: MxRecord,
1199
- PrivateZone: PrivateZone,
1200
- ProxyResource: ProxyResource,
1201
- PtrRecord: PtrRecord,
1202
- RecordSet: RecordSet,
1203
- Resource: Resource,
1204
- SoaRecord: SoaRecord,
1205
- SrvRecord: SrvRecord,
1206
- SubResource: SubResource,
1207
- TrackedResource: TrackedResource,
1208
- TxtRecord: TxtRecord,
1209
- VirtualNetworkLink: VirtualNetworkLink,
1210
- VirtualNetworkLinkListResult: VirtualNetworkLinkListResult
1211
- });
1212
-
1213
- /*
1214
- * Copyright (c) Microsoft Corporation. All rights reserved.
1215
- * Licensed under the MIT License. See License.txt in the project root for
1216
- * license information.
1217
- *
1218
- * Code generated by Microsoft (R) AutoRest Code Generator.
1219
- * Changes may cause incorrect behavior and will be lost if the code is
1220
- * regenerated.
1221
- */
1222
- /** Class representing a VirtualNetworkLinks. */
1223
- var VirtualNetworkLinks = /** @class */ (function () {
1224
- /**
1225
- * Create a VirtualNetworkLinks.
1226
- * @param {PrivateDnsManagementClientContext} client Reference to the service client.
1227
- */
1228
- function VirtualNetworkLinks(client) {
1229
- this.client = client;
1230
- }
1231
- /**
1232
- * Creates or updates a virtual network link to the specified Private DNS zone.
1233
- * @param resourceGroupName The name of the resource group.
1234
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
1235
- * @param virtualNetworkLinkName The name of the virtual network link.
1236
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
1237
- * @param [options] The optional parameters
1238
- * @returns Promise<Models.VirtualNetworkLinksCreateOrUpdateResponse>
1239
- */
1240
- VirtualNetworkLinks.prototype.createOrUpdate = function (resourceGroupName$$1, privateZoneName$$1, virtualNetworkLinkName$$1, parameters, options) {
1241
- return this.beginCreateOrUpdate(resourceGroupName$$1, privateZoneName$$1, virtualNetworkLinkName$$1, parameters, options)
1242
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1243
- };
1244
- /**
1245
- * Updates a virtual network link to the specified Private DNS zone.
1246
- * @param resourceGroupName The name of the resource group.
1247
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
1248
- * @param virtualNetworkLinkName The name of the virtual network link.
1249
- * @param parameters Parameters supplied to the Update operation.
1250
- * @param [options] The optional parameters
1251
- * @returns Promise<Models.VirtualNetworkLinksUpdateResponse>
1252
- */
1253
- VirtualNetworkLinks.prototype.update = function (resourceGroupName$$1, privateZoneName$$1, virtualNetworkLinkName$$1, parameters, options) {
1254
- return this.beginUpdate(resourceGroupName$$1, privateZoneName$$1, virtualNetworkLinkName$$1, parameters, options)
1255
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1256
- };
1257
- /**
1258
- * Deletes a virtual network link to the specified Private DNS zone. WARNING: In case of a
1259
- * registration virtual network, all auto-registered DNS records in the zone for the virtual
1260
- * network will also be deleted. This operation cannot be undone.
1261
- * @param resourceGroupName The name of the resource group.
1262
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
1263
- * @param virtualNetworkLinkName The name of the virtual network link.
1264
- * @param [options] The optional parameters
1265
- * @returns Promise<msRest.RestResponse>
1266
- */
1267
- VirtualNetworkLinks.prototype.deleteMethod = function (resourceGroupName$$1, privateZoneName$$1, virtualNetworkLinkName$$1, options) {
1268
- return this.beginDeleteMethod(resourceGroupName$$1, privateZoneName$$1, virtualNetworkLinkName$$1, options)
1269
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1270
- };
1271
- VirtualNetworkLinks.prototype.get = function (resourceGroupName$$1, privateZoneName$$1, virtualNetworkLinkName$$1, options, callback) {
1272
- return this.client.sendOperationRequest({
1273
- resourceGroupName: resourceGroupName$$1,
1274
- privateZoneName: privateZoneName$$1,
1275
- virtualNetworkLinkName: virtualNetworkLinkName$$1,
1276
- options: options
1277
- }, getOperationSpec$1, callback);
1278
- };
1279
- VirtualNetworkLinks.prototype.list = function (resourceGroupName$$1, privateZoneName$$1, options, callback) {
1280
- return this.client.sendOperationRequest({
1281
- resourceGroupName: resourceGroupName$$1,
1282
- privateZoneName: privateZoneName$$1,
1283
- options: options
1284
- }, listOperationSpec$1, callback);
1285
- };
1286
- /**
1287
- * Creates or updates a virtual network link to the specified Private DNS zone.
1288
- * @param resourceGroupName The name of the resource group.
1289
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
1290
- * @param virtualNetworkLinkName The name of the virtual network link.
1291
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
1292
- * @param [options] The optional parameters
1293
- * @returns Promise<msRestAzure.LROPoller>
1294
- */
1295
- VirtualNetworkLinks.prototype.beginCreateOrUpdate = function (resourceGroupName$$1, privateZoneName$$1, virtualNetworkLinkName$$1, parameters, options) {
1296
- return this.client.sendLRORequest({
1297
- resourceGroupName: resourceGroupName$$1,
1298
- privateZoneName: privateZoneName$$1,
1299
- virtualNetworkLinkName: virtualNetworkLinkName$$1,
1300
- parameters: parameters,
1301
- options: options
1302
- }, beginCreateOrUpdateOperationSpec$1, options);
1303
- };
1304
- /**
1305
- * Updates a virtual network link to the specified Private DNS zone.
1306
- * @param resourceGroupName The name of the resource group.
1307
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
1308
- * @param virtualNetworkLinkName The name of the virtual network link.
1309
- * @param parameters Parameters supplied to the Update operation.
1310
- * @param [options] The optional parameters
1311
- * @returns Promise<msRestAzure.LROPoller>
1312
- */
1313
- VirtualNetworkLinks.prototype.beginUpdate = function (resourceGroupName$$1, privateZoneName$$1, virtualNetworkLinkName$$1, parameters, options) {
1314
- return this.client.sendLRORequest({
1315
- resourceGroupName: resourceGroupName$$1,
1316
- privateZoneName: privateZoneName$$1,
1317
- virtualNetworkLinkName: virtualNetworkLinkName$$1,
1318
- parameters: parameters,
1319
- options: options
1320
- }, beginUpdateOperationSpec$1, options);
1321
- };
1322
- /**
1323
- * Deletes a virtual network link to the specified Private DNS zone. WARNING: In case of a
1324
- * registration virtual network, all auto-registered DNS records in the zone for the virtual
1325
- * network will also be deleted. This operation cannot be undone.
1326
- * @param resourceGroupName The name of the resource group.
1327
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
1328
- * @param virtualNetworkLinkName The name of the virtual network link.
1329
- * @param [options] The optional parameters
1330
- * @returns Promise<msRestAzure.LROPoller>
1331
- */
1332
- VirtualNetworkLinks.prototype.beginDeleteMethod = function (resourceGroupName$$1, privateZoneName$$1, virtualNetworkLinkName$$1, options) {
1333
- return this.client.sendLRORequest({
1334
- resourceGroupName: resourceGroupName$$1,
1335
- privateZoneName: privateZoneName$$1,
1336
- virtualNetworkLinkName: virtualNetworkLinkName$$1,
1337
- options: options
1338
- }, beginDeleteMethodOperationSpec$1, options);
1339
- };
1340
- VirtualNetworkLinks.prototype.listNext = function (nextPageLink$$1, options, callback) {
1341
- return this.client.sendOperationRequest({
1342
- nextPageLink: nextPageLink$$1,
1343
- options: options
1344
- }, listNextOperationSpec$1, callback);
1345
- };
1346
- return VirtualNetworkLinks;
1347
- }());
1348
- // Operation Specifications
1349
- var serializer$1 = new msRest.Serializer(Mappers$1);
1350
- var getOperationSpec$1 = {
1351
- httpMethod: "GET",
1352
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/virtualNetworkLinks/{virtualNetworkLinkName}",
1353
- urlParameters: [
1354
- resourceGroupName,
1355
- privateZoneName,
1356
- virtualNetworkLinkName,
1357
- subscriptionId
1358
- ],
1359
- queryParameters: [
1360
- apiVersion
1361
- ],
1362
- headerParameters: [
1363
- acceptLanguage
1364
- ],
1365
- responses: {
1366
- 200: {
1367
- bodyMapper: VirtualNetworkLink
1368
- },
1369
- default: {
1370
- bodyMapper: CloudError
1371
- }
1372
- },
1373
- serializer: serializer$1
1374
- };
1375
- var listOperationSpec$1 = {
1376
- httpMethod: "GET",
1377
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/virtualNetworkLinks",
1378
- urlParameters: [
1379
- resourceGroupName,
1380
- privateZoneName,
1381
- subscriptionId
1382
- ],
1383
- queryParameters: [
1384
- top,
1385
- apiVersion
1386
- ],
1387
- headerParameters: [
1388
- acceptLanguage
1389
- ],
1390
- responses: {
1391
- 200: {
1392
- bodyMapper: VirtualNetworkLinkListResult
1393
- },
1394
- default: {
1395
- bodyMapper: CloudError
1396
- }
1397
- },
1398
- serializer: serializer$1
1399
- };
1400
- var beginCreateOrUpdateOperationSpec$1 = {
1401
- httpMethod: "PUT",
1402
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/virtualNetworkLinks/{virtualNetworkLinkName}",
1403
- urlParameters: [
1404
- resourceGroupName,
1405
- privateZoneName,
1406
- virtualNetworkLinkName,
1407
- subscriptionId
1408
- ],
1409
- queryParameters: [
1410
- apiVersion
1411
- ],
1412
- headerParameters: [
1413
- ifMatch,
1414
- ifNoneMatch,
1415
- acceptLanguage
1416
- ],
1417
- requestBody: {
1418
- parameterPath: "parameters",
1419
- mapper: __assign({}, VirtualNetworkLink, { required: true })
1420
- },
1421
- responses: {
1422
- 200: {
1423
- bodyMapper: VirtualNetworkLink
1424
- },
1425
- 201: {
1426
- bodyMapper: VirtualNetworkLink
1427
- },
1428
- 202: {},
1429
- default: {
1430
- bodyMapper: CloudError
1431
- }
1432
- },
1433
- serializer: serializer$1
1434
- };
1435
- var beginUpdateOperationSpec$1 = {
1436
- httpMethod: "PATCH",
1437
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/virtualNetworkLinks/{virtualNetworkLinkName}",
1438
- urlParameters: [
1439
- resourceGroupName,
1440
- privateZoneName,
1441
- virtualNetworkLinkName,
1442
- subscriptionId
1443
- ],
1444
- queryParameters: [
1445
- apiVersion
1446
- ],
1447
- headerParameters: [
1448
- ifMatch,
1449
- acceptLanguage
1450
- ],
1451
- requestBody: {
1452
- parameterPath: "parameters",
1453
- mapper: __assign({}, VirtualNetworkLink, { required: true })
1454
- },
1455
- responses: {
1456
- 200: {
1457
- bodyMapper: VirtualNetworkLink
1458
- },
1459
- 202: {},
1460
- default: {
1461
- bodyMapper: CloudError
1462
- }
1463
- },
1464
- serializer: serializer$1
1465
- };
1466
- var beginDeleteMethodOperationSpec$1 = {
1467
- httpMethod: "DELETE",
1468
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/virtualNetworkLinks/{virtualNetworkLinkName}",
1469
- urlParameters: [
1470
- resourceGroupName,
1471
- privateZoneName,
1472
- virtualNetworkLinkName,
1473
- subscriptionId
1474
- ],
1475
- queryParameters: [
1476
- apiVersion
1477
- ],
1478
- headerParameters: [
1479
- ifMatch,
1480
- acceptLanguage
1481
- ],
1482
- responses: {
1483
- 200: {},
1484
- 202: {},
1485
- 204: {},
1486
- default: {
1487
- bodyMapper: CloudError
1488
- }
1489
- },
1490
- serializer: serializer$1
1491
- };
1492
- var listNextOperationSpec$1 = {
1493
- httpMethod: "GET",
1494
- baseUrl: "https://management.azure.com",
1495
- path: "{nextLink}",
1496
- urlParameters: [
1497
- nextPageLink
1498
- ],
1499
- headerParameters: [
1500
- acceptLanguage
1501
- ],
1502
- responses: {
1503
- 200: {
1504
- bodyMapper: VirtualNetworkLinkListResult
1505
- },
1506
- default: {
1507
- bodyMapper: CloudError
1508
- }
1509
- },
1510
- serializer: serializer$1
1511
- };
1512
-
1513
- /*
1514
- * Copyright (c) Microsoft Corporation. All rights reserved.
1515
- * Licensed under the MIT License. See License.txt in the project root for license information.
1516
- *
1517
- * Code generated by Microsoft (R) AutoRest Code Generator.
1518
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1519
- */
1520
-
1521
- var Mappers$2 = /*#__PURE__*/Object.freeze({
1522
- AaaaRecord: AaaaRecord,
1523
- ARecord: ARecord,
1524
- BaseResource: BaseResource,
1525
- CloudError: CloudError,
1526
- CnameRecord: CnameRecord,
1527
- MxRecord: MxRecord,
1528
- PrivateZone: PrivateZone,
1529
- ProxyResource: ProxyResource,
1530
- PtrRecord: PtrRecord,
1531
- RecordSet: RecordSet,
1532
- RecordSetListResult: RecordSetListResult,
1533
- Resource: Resource,
1534
- SoaRecord: SoaRecord,
1535
- SrvRecord: SrvRecord,
1536
- SubResource: SubResource,
1537
- TrackedResource: TrackedResource,
1538
- TxtRecord: TxtRecord,
1539
- VirtualNetworkLink: VirtualNetworkLink
1540
- });
1541
-
1542
- /*
1543
- * Copyright (c) Microsoft Corporation. All rights reserved.
1544
- * Licensed under the MIT License. See License.txt in the project root for
1545
- * license information.
1546
- *
1547
- * Code generated by Microsoft (R) AutoRest Code Generator.
1548
- * Changes may cause incorrect behavior and will be lost if the code is
1549
- * regenerated.
1550
- */
1551
- /** Class representing a RecordSets. */
1552
- var RecordSets = /** @class */ (function () {
1553
- /**
1554
- * Create a RecordSets.
1555
- * @param {PrivateDnsManagementClientContext} client Reference to the service client.
1556
- */
1557
- function RecordSets(client) {
1558
- this.client = client;
1559
- }
1560
- RecordSets.prototype.createOrUpdate = function (resourceGroupName$$1, privateZoneName$$1, recordType$$1, relativeRecordSetName$$1, parameters, options, callback) {
1561
- return this.client.sendOperationRequest({
1562
- resourceGroupName: resourceGroupName$$1,
1563
- privateZoneName: privateZoneName$$1,
1564
- recordType: recordType$$1,
1565
- relativeRecordSetName: relativeRecordSetName$$1,
1566
- parameters: parameters,
1567
- options: options
1568
- }, createOrUpdateOperationSpec, callback);
1569
- };
1570
- RecordSets.prototype.update = function (resourceGroupName$$1, privateZoneName$$1, recordType$$1, relativeRecordSetName$$1, parameters, options, callback) {
1571
- return this.client.sendOperationRequest({
1572
- resourceGroupName: resourceGroupName$$1,
1573
- privateZoneName: privateZoneName$$1,
1574
- recordType: recordType$$1,
1575
- relativeRecordSetName: relativeRecordSetName$$1,
1576
- parameters: parameters,
1577
- options: options
1578
- }, updateOperationSpec, callback);
1579
- };
1580
- RecordSets.prototype.deleteMethod = function (resourceGroupName$$1, privateZoneName$$1, recordType$$1, relativeRecordSetName$$1, options, callback) {
1581
- return this.client.sendOperationRequest({
1582
- resourceGroupName: resourceGroupName$$1,
1583
- privateZoneName: privateZoneName$$1,
1584
- recordType: recordType$$1,
1585
- relativeRecordSetName: relativeRecordSetName$$1,
1586
- options: options
1587
- }, deleteMethodOperationSpec, callback);
1588
- };
1589
- RecordSets.prototype.get = function (resourceGroupName$$1, privateZoneName$$1, recordType$$1, relativeRecordSetName$$1, options, callback) {
1590
- return this.client.sendOperationRequest({
1591
- resourceGroupName: resourceGroupName$$1,
1592
- privateZoneName: privateZoneName$$1,
1593
- recordType: recordType$$1,
1594
- relativeRecordSetName: relativeRecordSetName$$1,
1595
- options: options
1596
- }, getOperationSpec$2, callback);
1597
- };
1598
- RecordSets.prototype.listByType = function (resourceGroupName$$1, privateZoneName$$1, recordType$$1, options, callback) {
1599
- return this.client.sendOperationRequest({
1600
- resourceGroupName: resourceGroupName$$1,
1601
- privateZoneName: privateZoneName$$1,
1602
- recordType: recordType$$1,
1603
- options: options
1604
- }, listByTypeOperationSpec, callback);
1605
- };
1606
- RecordSets.prototype.list = function (resourceGroupName$$1, privateZoneName$$1, options, callback) {
1607
- return this.client.sendOperationRequest({
1608
- resourceGroupName: resourceGroupName$$1,
1609
- privateZoneName: privateZoneName$$1,
1610
- options: options
1611
- }, listOperationSpec$2, callback);
1612
- };
1613
- RecordSets.prototype.listByTypeNext = function (nextPageLink$$1, options, callback) {
1614
- return this.client.sendOperationRequest({
1615
- nextPageLink: nextPageLink$$1,
1616
- options: options
1617
- }, listByTypeNextOperationSpec, callback);
1618
- };
1619
- RecordSets.prototype.listNext = function (nextPageLink$$1, options, callback) {
1620
- return this.client.sendOperationRequest({
1621
- nextPageLink: nextPageLink$$1,
1622
- options: options
1623
- }, listNextOperationSpec$2, callback);
1624
- };
1625
- return RecordSets;
1626
- }());
1627
- // Operation Specifications
1628
- var serializer$2 = new msRest.Serializer(Mappers$2);
1629
- var createOrUpdateOperationSpec = {
1630
- httpMethod: "PUT",
1631
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/{recordType}/{relativeRecordSetName}",
1632
- urlParameters: [
1633
- resourceGroupName,
1634
- privateZoneName,
1635
- recordType,
1636
- relativeRecordSetName,
1637
- subscriptionId
1638
- ],
1639
- queryParameters: [
1640
- apiVersion
1641
- ],
1642
- headerParameters: [
1643
- ifMatch,
1644
- ifNoneMatch,
1645
- acceptLanguage
1646
- ],
1647
- requestBody: {
1648
- parameterPath: "parameters",
1649
- mapper: __assign({}, RecordSet, { required: true })
1650
- },
1651
- responses: {
1652
- 200: {
1653
- bodyMapper: RecordSet
1654
- },
1655
- 201: {
1656
- bodyMapper: RecordSet
1657
- },
1658
- default: {
1659
- bodyMapper: CloudError
1660
- }
1661
- },
1662
- serializer: serializer$2
1663
- };
1664
- var updateOperationSpec = {
1665
- httpMethod: "PATCH",
1666
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/{recordType}/{relativeRecordSetName}",
1667
- urlParameters: [
1668
- resourceGroupName,
1669
- privateZoneName,
1670
- recordType,
1671
- relativeRecordSetName,
1672
- subscriptionId
1673
- ],
1674
- queryParameters: [
1675
- apiVersion
1676
- ],
1677
- headerParameters: [
1678
- ifMatch,
1679
- acceptLanguage
1680
- ],
1681
- requestBody: {
1682
- parameterPath: "parameters",
1683
- mapper: __assign({}, RecordSet, { required: true })
1684
- },
1685
- responses: {
1686
- 200: {
1687
- bodyMapper: RecordSet
1688
- },
1689
- default: {
1690
- bodyMapper: CloudError
1691
- }
1692
- },
1693
- serializer: serializer$2
1694
- };
1695
- var deleteMethodOperationSpec = {
1696
- httpMethod: "DELETE",
1697
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/{recordType}/{relativeRecordSetName}",
1698
- urlParameters: [
1699
- resourceGroupName,
1700
- privateZoneName,
1701
- recordType,
1702
- relativeRecordSetName,
1703
- subscriptionId
1704
- ],
1705
- queryParameters: [
1706
- apiVersion
1707
- ],
1708
- headerParameters: [
1709
- ifMatch,
1710
- acceptLanguage
1711
- ],
1712
- responses: {
1713
- 200: {},
1714
- 204: {},
1715
- default: {
1716
- bodyMapper: CloudError
1717
- }
1718
- },
1719
- serializer: serializer$2
1720
- };
1721
- var getOperationSpec$2 = {
1722
- httpMethod: "GET",
1723
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/{recordType}/{relativeRecordSetName}",
1724
- urlParameters: [
1725
- resourceGroupName,
1726
- privateZoneName,
1727
- recordType,
1728
- relativeRecordSetName,
1729
- subscriptionId
1730
- ],
1731
- queryParameters: [
1732
- apiVersion
1733
- ],
1734
- headerParameters: [
1735
- acceptLanguage
1736
- ],
1737
- responses: {
1738
- 200: {
1739
- bodyMapper: RecordSet
1740
- },
1741
- default: {
1742
- bodyMapper: CloudError
1743
- }
1744
- },
1745
- serializer: serializer$2
1746
- };
1747
- var listByTypeOperationSpec = {
1748
- httpMethod: "GET",
1749
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/{recordType}",
1750
- urlParameters: [
1751
- resourceGroupName,
1752
- privateZoneName,
1753
- recordType,
1754
- subscriptionId
1755
- ],
1756
- queryParameters: [
1757
- top,
1758
- recordsetnamesuffix,
1759
- apiVersion
1760
- ],
1761
- headerParameters: [
1762
- acceptLanguage
1763
- ],
1764
- responses: {
1765
- 200: {
1766
- bodyMapper: RecordSetListResult
1767
- },
1768
- default: {
1769
- bodyMapper: CloudError
1770
- }
1771
- },
1772
- serializer: serializer$2
1773
- };
1774
- var listOperationSpec$2 = {
1775
- httpMethod: "GET",
1776
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/ALL",
1777
- urlParameters: [
1778
- resourceGroupName,
1779
- privateZoneName,
1780
- subscriptionId
1781
- ],
1782
- queryParameters: [
1783
- top,
1784
- recordsetnamesuffix,
1785
- apiVersion
1786
- ],
1787
- headerParameters: [
1788
- acceptLanguage
1789
- ],
1790
- responses: {
1791
- 200: {
1792
- bodyMapper: RecordSetListResult
1793
- },
1794
- default: {
1795
- bodyMapper: CloudError
1796
- }
1797
- },
1798
- serializer: serializer$2
1799
- };
1800
- var listByTypeNextOperationSpec = {
1801
- httpMethod: "GET",
1802
- baseUrl: "https://management.azure.com",
1803
- path: "{nextLink}",
1804
- urlParameters: [
1805
- nextPageLink
1806
- ],
1807
- headerParameters: [
1808
- acceptLanguage
1809
- ],
1810
- responses: {
1811
- 200: {
1812
- bodyMapper: RecordSetListResult
1813
- },
1814
- default: {
1815
- bodyMapper: CloudError
1816
- }
1817
- },
1818
- serializer: serializer$2
1819
- };
1820
- var listNextOperationSpec$2 = {
1821
- httpMethod: "GET",
1822
- baseUrl: "https://management.azure.com",
1823
- path: "{nextLink}",
1824
- urlParameters: [
1825
- nextPageLink
1826
- ],
1827
- headerParameters: [
1828
- acceptLanguage
1829
- ],
1830
- responses: {
1831
- 200: {
1832
- bodyMapper: RecordSetListResult
1833
- },
1834
- default: {
1835
- bodyMapper: CloudError
1836
- }
1837
- },
1838
- serializer: serializer$2
1839
- };
1840
-
1841
- /*
1842
- * Copyright (c) Microsoft Corporation. All rights reserved.
1843
- * Licensed under the MIT License. See License.txt in the project root for
1844
- * license information.
1845
- *
1846
- * Code generated by Microsoft (R) AutoRest Code Generator.
1847
- * Changes may cause incorrect behavior and will be lost if the code is
1848
- * regenerated.
1849
- */
1850
-
1851
- /*
1852
- * Copyright (c) Microsoft Corporation. All rights reserved.
1853
- * Licensed under the MIT License. See License.txt in the project root for
1854
- * license information.
1855
- *
1856
- * Code generated by Microsoft (R) AutoRest Code Generator.
1857
- * Changes may cause incorrect behavior and will be lost if the code is
1858
- * regenerated.
1859
- */
1860
- var packageName = "@azure/arm-privatedns";
1861
- var packageVersion = "1.0.0";
1862
- var PrivateDnsManagementClientContext = /** @class */ (function (_super) {
1863
- __extends(PrivateDnsManagementClientContext, _super);
1864
- /**
1865
- * Initializes a new instance of the PrivateDnsManagementClient class.
1866
- * @param credentials Credentials needed for the client to connect to Azure.
1867
- * @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure
1868
- * subscription. The subscription ID forms part of the URI for every service call.
1869
- * @param [options] The parameter options
1870
- */
1871
- function PrivateDnsManagementClientContext(credentials, subscriptionId, options) {
1872
- var _this = this;
1873
- if (credentials == undefined) {
1874
- throw new Error('\'credentials\' cannot be null.');
1875
- }
1876
- if (subscriptionId == undefined) {
1877
- throw new Error('\'subscriptionId\' cannot be null.');
1878
- }
1879
- if (!options) {
1880
- options = {};
1881
- }
1882
- if (!options.userAgent) {
1883
- var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
1884
- options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
1885
- }
1886
- _this = _super.call(this, credentials, options) || this;
1887
- _this.apiVersion = '2018-09-01';
1888
- _this.acceptLanguage = 'en-US';
1889
- _this.longRunningOperationRetryTimeout = 30;
1890
- _this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
1891
- _this.requestContentType = "application/json; charset=utf-8";
1892
- _this.credentials = credentials;
1893
- _this.subscriptionId = subscriptionId;
1894
- if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
1895
- _this.acceptLanguage = options.acceptLanguage;
1896
- }
1897
- if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
1898
- _this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
1899
- }
1900
- return _this;
1901
- }
1902
- return PrivateDnsManagementClientContext;
1903
- }(msRestAzure.AzureServiceClient));
1904
-
1905
- /*
1906
- * Copyright (c) Microsoft Corporation. All rights reserved.
1907
- * Licensed under the MIT License. See License.txt in the project root for
1908
- * license information.
1909
- *
1910
- * Code generated by Microsoft (R) AutoRest Code Generator.
1911
- * Changes may cause incorrect behavior and will be lost if the code is
1912
- * regenerated.
1913
- */
1914
- var PrivateDnsManagementClient = /** @class */ (function (_super) {
1915
- __extends(PrivateDnsManagementClient, _super);
1916
- /**
1917
- * Initializes a new instance of the PrivateDnsManagementClient class.
1918
- * @param credentials Credentials needed for the client to connect to Azure.
1919
- * @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure
1920
- * subscription. The subscription ID forms part of the URI for every service call.
1921
- * @param [options] The parameter options
1922
- */
1923
- function PrivateDnsManagementClient(credentials, subscriptionId, options) {
1924
- var _this = _super.call(this, credentials, subscriptionId, options) || this;
1925
- _this.privateZones = new PrivateZones(_this);
1926
- _this.virtualNetworkLinks = new VirtualNetworkLinks(_this);
1927
- _this.recordSets = new RecordSets(_this);
1928
- return _this;
1929
- }
1930
- return PrivateDnsManagementClient;
1931
- }(PrivateDnsManagementClientContext));
1932
-
1933
- exports.PrivateDnsManagementClient = PrivateDnsManagementClient;
1934
- exports.PrivateDnsManagementClientContext = PrivateDnsManagementClientContext;
1935
- exports.PrivateDnsManagementModels = index;
1936
- exports.PrivateDnsManagementMappers = mappers;
1937
- exports.PrivateZones = PrivateZones;
1938
- exports.VirtualNetworkLinks = VirtualNetworkLinks;
1939
- exports.RecordSets = RecordSets;
1940
-
1941
- Object.defineProperty(exports, '__esModule', { value: true });
1942
-
1943
- })));
1944
- //# sourceMappingURL=arm-privatedns.js.map