@azure/arm-privatedns 2.1.1 → 3.0.0-alpha.20220208.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 (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 +82 -23
  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,462 +1,651 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
5
4
  *
6
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9
7
  */
10
8
 
11
- import * as msRest from "@azure/ms-rest-js";
12
- import * as msRestAzure from "@azure/ms-rest-azure-js";
13
- import * as Models from "../models";
14
- import * as Mappers from "../models/privateZonesMappers";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PrivateZones } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
15
13
  import * as Parameters from "../models/parameters";
16
- import { PrivateDnsManagementClientContext } from "../privateDnsManagementClientContext";
14
+ import { PrivateDnsManagementClient } from "../privateDnsManagementClient";
15
+ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
+ import { LroImpl } from "../lroImpl";
17
+ import {
18
+ PrivateZone,
19
+ PrivateZonesListNextOptionalParams,
20
+ PrivateZonesListOptionalParams,
21
+ PrivateZonesListByResourceGroupNextOptionalParams,
22
+ PrivateZonesListByResourceGroupOptionalParams,
23
+ PrivateZonesCreateOrUpdateOptionalParams,
24
+ PrivateZonesCreateOrUpdateResponse,
25
+ PrivateZonesUpdateOptionalParams,
26
+ PrivateZonesUpdateResponse,
27
+ PrivateZonesDeleteOptionalParams,
28
+ PrivateZonesGetOptionalParams,
29
+ PrivateZonesGetResponse,
30
+ PrivateZonesListResponse,
31
+ PrivateZonesListByResourceGroupResponse,
32
+ PrivateZonesListNextResponse,
33
+ PrivateZonesListByResourceGroupNextResponse
34
+ } from "../models";
17
35
 
18
- /** Class representing a PrivateZones. */
19
- export class PrivateZones {
20
- private readonly client: PrivateDnsManagementClientContext;
36
+ /// <reference lib="esnext.asynciterable" />
37
+ /** Class containing PrivateZones operations. */
38
+ export class PrivateZonesImpl implements PrivateZones {
39
+ private readonly client: PrivateDnsManagementClient;
21
40
 
22
41
  /**
23
- * Create a PrivateZones.
24
- * @param {PrivateDnsManagementClientContext} client Reference to the service client.
42
+ * Initialize a new instance of the class PrivateZones class.
43
+ * @param client Reference to the service client
25
44
  */
26
- constructor(client: PrivateDnsManagementClientContext) {
45
+ constructor(client: PrivateDnsManagementClient) {
27
46
  this.client = client;
28
47
  }
29
48
 
30
49
  /**
31
- * Creates or updates a Private DNS zone. Does not modify Links to virtual networks or DNS records
32
- * within the zone.
33
- * @param resourceGroupName The name of the resource group.
34
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
35
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
36
- * @param [options] The optional parameters
37
- * @returns Promise<Models.PrivateZonesCreateOrUpdateResponse>
50
+ * Lists the Private DNS zones in all resource groups in a subscription.
51
+ * @param options The options parameters.
38
52
  */
39
- createOrUpdate(resourceGroupName: string, privateZoneName: string, parameters: Models.PrivateZone, options?: Models.PrivateZonesCreateOrUpdateOptionalParams): Promise<Models.PrivateZonesCreateOrUpdateResponse> {
40
- return this.beginCreateOrUpdate(resourceGroupName,privateZoneName,parameters,options)
41
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.PrivateZonesCreateOrUpdateResponse>;
53
+ public list(
54
+ options?: PrivateZonesListOptionalParams
55
+ ): PagedAsyncIterableIterator<PrivateZone> {
56
+ const iter = this.listPagingAll(options);
57
+ return {
58
+ next() {
59
+ return iter.next();
60
+ },
61
+ [Symbol.asyncIterator]() {
62
+ return this;
63
+ },
64
+ byPage: () => {
65
+ return this.listPagingPage(options);
66
+ }
67
+ };
42
68
  }
43
69
 
44
- /**
45
- * Updates a Private DNS zone. Does not modify virtual network links or DNS records within the
46
- * zone.
47
- * @param resourceGroupName The name of the resource group.
48
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
49
- * @param parameters Parameters supplied to the Update operation.
50
- * @param [options] The optional parameters
51
- * @returns Promise<Models.PrivateZonesUpdateResponse>
52
- */
53
- update(resourceGroupName: string, privateZoneName: string, parameters: Models.PrivateZone, options?: Models.PrivateZonesUpdateOptionalParams): Promise<Models.PrivateZonesUpdateResponse> {
54
- return this.beginUpdate(resourceGroupName,privateZoneName,parameters,options)
55
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.PrivateZonesUpdateResponse>;
70
+ private async *listPagingPage(
71
+ options?: PrivateZonesListOptionalParams
72
+ ): AsyncIterableIterator<PrivateZone[]> {
73
+ let result = await this._list(options);
74
+ yield result.value || [];
75
+ let continuationToken = result.nextLink;
76
+ while (continuationToken) {
77
+ result = await this._listNext(continuationToken, options);
78
+ continuationToken = result.nextLink;
79
+ yield result.value || [];
80
+ }
81
+ }
82
+
83
+ private async *listPagingAll(
84
+ options?: PrivateZonesListOptionalParams
85
+ ): AsyncIterableIterator<PrivateZone> {
86
+ for await (const page of this.listPagingPage(options)) {
87
+ yield* page;
88
+ }
56
89
  }
57
90
 
58
91
  /**
59
- * Deletes a Private DNS zone. WARNING: All DNS records in the zone will also be deleted. This
60
- * operation cannot be undone. Private DNS zone cannot be deleted unless all virtual network links
61
- * to it are removed.
92
+ * Lists the Private DNS zones within a resource group.
62
93
  * @param resourceGroupName The name of the resource group.
63
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
64
- * @param [options] The optional parameters
65
- * @returns Promise<msRest.RestResponse>
94
+ * @param options The options parameters.
66
95
  */
67
- deleteMethod(resourceGroupName: string, privateZoneName: string, options?: Models.PrivateZonesDeleteMethodOptionalParams): Promise<msRest.RestResponse> {
68
- return this.beginDeleteMethod(resourceGroupName,privateZoneName,options)
69
- .then(lroPoller => lroPoller.pollUntilFinished());
96
+ public listByResourceGroup(
97
+ resourceGroupName: string,
98
+ options?: PrivateZonesListByResourceGroupOptionalParams
99
+ ): PagedAsyncIterableIterator<PrivateZone> {
100
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
101
+ return {
102
+ next() {
103
+ return iter.next();
104
+ },
105
+ [Symbol.asyncIterator]() {
106
+ return this;
107
+ },
108
+ byPage: () => {
109
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
110
+ }
111
+ };
112
+ }
113
+
114
+ private async *listByResourceGroupPagingPage(
115
+ resourceGroupName: string,
116
+ options?: PrivateZonesListByResourceGroupOptionalParams
117
+ ): AsyncIterableIterator<PrivateZone[]> {
118
+ let result = await this._listByResourceGroup(resourceGroupName, options);
119
+ yield result.value || [];
120
+ let continuationToken = result.nextLink;
121
+ while (continuationToken) {
122
+ result = await this._listByResourceGroupNext(
123
+ resourceGroupName,
124
+ continuationToken,
125
+ options
126
+ );
127
+ continuationToken = result.nextLink;
128
+ yield result.value || [];
129
+ }
130
+ }
131
+
132
+ private async *listByResourceGroupPagingAll(
133
+ resourceGroupName: string,
134
+ options?: PrivateZonesListByResourceGroupOptionalParams
135
+ ): AsyncIterableIterator<PrivateZone> {
136
+ for await (const page of this.listByResourceGroupPagingPage(
137
+ resourceGroupName,
138
+ options
139
+ )) {
140
+ yield* page;
141
+ }
70
142
  }
71
143
 
72
144
  /**
73
- * Gets a Private DNS zone. Retrieves the zone properties, but not the virtual networks links or
74
- * the record sets within the zone.
145
+ * Creates or updates a Private DNS zone. Does not modify Links to virtual networks or DNS records
146
+ * within the zone.
75
147
  * @param resourceGroupName The name of the resource group.
76
148
  * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
77
- * @param [options] The optional parameters
78
- * @returns Promise<Models.PrivateZonesGetResponse>
149
+ * @param parameters Parameters supplied to the CreateOrUpdate operation.
150
+ * @param options The options parameters.
79
151
  */
80
- get(resourceGroupName: string, privateZoneName: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateZonesGetResponse>;
152
+ async beginCreateOrUpdate(
153
+ resourceGroupName: string,
154
+ privateZoneName: string,
155
+ parameters: PrivateZone,
156
+ options?: PrivateZonesCreateOrUpdateOptionalParams
157
+ ): Promise<
158
+ PollerLike<
159
+ PollOperationState<PrivateZonesCreateOrUpdateResponse>,
160
+ PrivateZonesCreateOrUpdateResponse
161
+ >
162
+ > {
163
+ const directSendOperation = async (
164
+ args: coreClient.OperationArguments,
165
+ spec: coreClient.OperationSpec
166
+ ): Promise<PrivateZonesCreateOrUpdateResponse> => {
167
+ return this.client.sendOperationRequest(args, spec);
168
+ };
169
+ const sendOperation = async (
170
+ args: coreClient.OperationArguments,
171
+ spec: coreClient.OperationSpec
172
+ ) => {
173
+ let currentRawResponse:
174
+ | coreClient.FullOperationResponse
175
+ | undefined = undefined;
176
+ const providedCallback = args.options?.onResponse;
177
+ const callback: coreClient.RawResponseCallback = (
178
+ rawResponse: coreClient.FullOperationResponse,
179
+ flatResponse: unknown
180
+ ) => {
181
+ currentRawResponse = rawResponse;
182
+ providedCallback?.(rawResponse, flatResponse);
183
+ };
184
+ const updatedArgs = {
185
+ ...args,
186
+ options: {
187
+ ...args.options,
188
+ onResponse: callback
189
+ }
190
+ };
191
+ const flatResponse = await directSendOperation(updatedArgs, spec);
192
+ return {
193
+ flatResponse,
194
+ rawResponse: {
195
+ statusCode: currentRawResponse!.status,
196
+ body: currentRawResponse!.parsedBody,
197
+ headers: currentRawResponse!.headers.toJSON()
198
+ }
199
+ };
200
+ };
201
+
202
+ const lro = new LroImpl(
203
+ sendOperation,
204
+ { resourceGroupName, privateZoneName, parameters, options },
205
+ createOrUpdateOperationSpec
206
+ );
207
+ return new LroEngine(lro, {
208
+ resumeFrom: options?.resumeFrom,
209
+ intervalInMs: options?.updateIntervalInMs
210
+ });
211
+ }
212
+
81
213
  /**
214
+ * Creates or updates a Private DNS zone. Does not modify Links to virtual networks or DNS records
215
+ * within the zone.
82
216
  * @param resourceGroupName The name of the resource group.
83
217
  * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
84
- * @param callback The callback
218
+ * @param parameters Parameters supplied to the CreateOrUpdate operation.
219
+ * @param options The options parameters.
85
220
  */
86
- get(resourceGroupName: string, privateZoneName: string, callback: msRest.ServiceCallback<Models.PrivateZone>): void;
221
+ async beginCreateOrUpdateAndWait(
222
+ resourceGroupName: string,
223
+ privateZoneName: string,
224
+ parameters: PrivateZone,
225
+ options?: PrivateZonesCreateOrUpdateOptionalParams
226
+ ): Promise<PrivateZonesCreateOrUpdateResponse> {
227
+ const poller = await this.beginCreateOrUpdate(
228
+ resourceGroupName,
229
+ privateZoneName,
230
+ parameters,
231
+ options
232
+ );
233
+ return poller.pollUntilDone();
234
+ }
235
+
87
236
  /**
237
+ * Updates a Private DNS zone. Does not modify virtual network links or DNS records within the zone.
88
238
  * @param resourceGroupName The name of the resource group.
89
239
  * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
90
- * @param options The optional parameters
91
- * @param callback The callback
240
+ * @param parameters Parameters supplied to the Update operation.
241
+ * @param options The options parameters.
92
242
  */
93
- get(resourceGroupName: string, privateZoneName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.PrivateZone>): void;
94
- get(resourceGroupName: string, privateZoneName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.PrivateZone>, callback?: msRest.ServiceCallback<Models.PrivateZone>): Promise<Models.PrivateZonesGetResponse> {
95
- return this.client.sendOperationRequest(
96
- {
97
- resourceGroupName,
98
- privateZoneName,
99
- options
100
- },
101
- getOperationSpec,
102
- callback) as Promise<Models.PrivateZonesGetResponse>;
103
- }
243
+ async beginUpdate(
244
+ resourceGroupName: string,
245
+ privateZoneName: string,
246
+ parameters: PrivateZone,
247
+ options?: PrivateZonesUpdateOptionalParams
248
+ ): Promise<
249
+ PollerLike<
250
+ PollOperationState<PrivateZonesUpdateResponse>,
251
+ PrivateZonesUpdateResponse
252
+ >
253
+ > {
254
+ const directSendOperation = async (
255
+ args: coreClient.OperationArguments,
256
+ spec: coreClient.OperationSpec
257
+ ): Promise<PrivateZonesUpdateResponse> => {
258
+ return this.client.sendOperationRequest(args, spec);
259
+ };
260
+ const sendOperation = async (
261
+ args: coreClient.OperationArguments,
262
+ spec: coreClient.OperationSpec
263
+ ) => {
264
+ let currentRawResponse:
265
+ | coreClient.FullOperationResponse
266
+ | undefined = undefined;
267
+ const providedCallback = args.options?.onResponse;
268
+ const callback: coreClient.RawResponseCallback = (
269
+ rawResponse: coreClient.FullOperationResponse,
270
+ flatResponse: unknown
271
+ ) => {
272
+ currentRawResponse = rawResponse;
273
+ providedCallback?.(rawResponse, flatResponse);
274
+ };
275
+ const updatedArgs = {
276
+ ...args,
277
+ options: {
278
+ ...args.options,
279
+ onResponse: callback
280
+ }
281
+ };
282
+ const flatResponse = await directSendOperation(updatedArgs, spec);
283
+ return {
284
+ flatResponse,
285
+ rawResponse: {
286
+ statusCode: currentRawResponse!.status,
287
+ body: currentRawResponse!.parsedBody,
288
+ headers: currentRawResponse!.headers.toJSON()
289
+ }
290
+ };
291
+ };
104
292
 
105
- /**
106
- * Lists the Private DNS zones in all resource groups in a subscription.
107
- * @param [options] The optional parameters
108
- * @returns Promise<Models.PrivateZonesListResponse>
109
- */
110
- list(options?: Models.PrivateZonesListOptionalParams): Promise<Models.PrivateZonesListResponse>;
111
- /**
112
- * @param callback The callback
113
- */
114
- list(callback: msRest.ServiceCallback<Models.PrivateZoneListResult>): void;
115
- /**
116
- * @param options The optional parameters
117
- * @param callback The callback
118
- */
119
- list(options: Models.PrivateZonesListOptionalParams, callback: msRest.ServiceCallback<Models.PrivateZoneListResult>): void;
120
- list(options?: Models.PrivateZonesListOptionalParams | msRest.ServiceCallback<Models.PrivateZoneListResult>, callback?: msRest.ServiceCallback<Models.PrivateZoneListResult>): Promise<Models.PrivateZonesListResponse> {
121
- return this.client.sendOperationRequest(
122
- {
123
- options
124
- },
125
- listOperationSpec,
126
- callback) as Promise<Models.PrivateZonesListResponse>;
293
+ const lro = new LroImpl(
294
+ sendOperation,
295
+ { resourceGroupName, privateZoneName, parameters, options },
296
+ updateOperationSpec
297
+ );
298
+ return new LroEngine(lro, {
299
+ resumeFrom: options?.resumeFrom,
300
+ intervalInMs: options?.updateIntervalInMs
301
+ });
127
302
  }
128
303
 
129
304
  /**
130
- * Lists the Private DNS zones within a resource group.
305
+ * Updates a Private DNS zone. Does not modify virtual network links or DNS records within the zone.
131
306
  * @param resourceGroupName The name of the resource group.
132
- * @param [options] The optional parameters
133
- * @returns Promise<Models.PrivateZonesListByResourceGroupResponse>
134
- */
135
- listByResourceGroup(resourceGroupName: string, options?: Models.PrivateZonesListByResourceGroupOptionalParams): Promise<Models.PrivateZonesListByResourceGroupResponse>;
136
- /**
137
- * @param resourceGroupName The name of the resource group.
138
- * @param callback The callback
139
- */
140
- listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.PrivateZoneListResult>): void;
141
- /**
142
- * @param resourceGroupName The name of the resource group.
143
- * @param options The optional parameters
144
- * @param callback The callback
307
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
308
+ * @param parameters Parameters supplied to the Update operation.
309
+ * @param options The options parameters.
145
310
  */
146
- listByResourceGroup(resourceGroupName: string, options: Models.PrivateZonesListByResourceGroupOptionalParams, callback: msRest.ServiceCallback<Models.PrivateZoneListResult>): void;
147
- listByResourceGroup(resourceGroupName: string, options?: Models.PrivateZonesListByResourceGroupOptionalParams | msRest.ServiceCallback<Models.PrivateZoneListResult>, callback?: msRest.ServiceCallback<Models.PrivateZoneListResult>): Promise<Models.PrivateZonesListByResourceGroupResponse> {
148
- return this.client.sendOperationRequest(
149
- {
150
- resourceGroupName,
151
- options
152
- },
153
- listByResourceGroupOperationSpec,
154
- callback) as Promise<Models.PrivateZonesListByResourceGroupResponse>;
311
+ async beginUpdateAndWait(
312
+ resourceGroupName: string,
313
+ privateZoneName: string,
314
+ parameters: PrivateZone,
315
+ options?: PrivateZonesUpdateOptionalParams
316
+ ): Promise<PrivateZonesUpdateResponse> {
317
+ const poller = await this.beginUpdate(
318
+ resourceGroupName,
319
+ privateZoneName,
320
+ parameters,
321
+ options
322
+ );
323
+ return poller.pollUntilDone();
155
324
  }
156
325
 
157
326
  /**
158
- * Creates or updates a Private DNS zone. Does not modify Links to virtual networks or DNS records
159
- * within the zone.
327
+ * Deletes a Private DNS zone. WARNING: All DNS records in the zone will also be deleted. This
328
+ * operation cannot be undone. Private DNS zone cannot be deleted unless all virtual network links to
329
+ * it are removed.
160
330
  * @param resourceGroupName The name of the resource group.
161
331
  * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
162
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
163
- * @param [options] The optional parameters
164
- * @returns Promise<msRestAzure.LROPoller>
332
+ * @param options The options parameters.
165
333
  */
166
- beginCreateOrUpdate(resourceGroupName: string, privateZoneName: string, parameters: Models.PrivateZone, options?: Models.PrivateZonesBeginCreateOrUpdateOptionalParams): Promise<msRestAzure.LROPoller> {
167
- return this.client.sendLRORequest(
168
- {
169
- resourceGroupName,
170
- privateZoneName,
171
- parameters,
172
- options
173
- },
174
- beginCreateOrUpdateOperationSpec,
175
- options);
334
+ async beginDelete(
335
+ resourceGroupName: string,
336
+ privateZoneName: string,
337
+ options?: PrivateZonesDeleteOptionalParams
338
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
339
+ const directSendOperation = async (
340
+ args: coreClient.OperationArguments,
341
+ spec: coreClient.OperationSpec
342
+ ): Promise<void> => {
343
+ return this.client.sendOperationRequest(args, spec);
344
+ };
345
+ const sendOperation = async (
346
+ args: coreClient.OperationArguments,
347
+ spec: coreClient.OperationSpec
348
+ ) => {
349
+ let currentRawResponse:
350
+ | coreClient.FullOperationResponse
351
+ | undefined = undefined;
352
+ const providedCallback = args.options?.onResponse;
353
+ const callback: coreClient.RawResponseCallback = (
354
+ rawResponse: coreClient.FullOperationResponse,
355
+ flatResponse: unknown
356
+ ) => {
357
+ currentRawResponse = rawResponse;
358
+ providedCallback?.(rawResponse, flatResponse);
359
+ };
360
+ const updatedArgs = {
361
+ ...args,
362
+ options: {
363
+ ...args.options,
364
+ onResponse: callback
365
+ }
366
+ };
367
+ const flatResponse = await directSendOperation(updatedArgs, spec);
368
+ return {
369
+ flatResponse,
370
+ rawResponse: {
371
+ statusCode: currentRawResponse!.status,
372
+ body: currentRawResponse!.parsedBody,
373
+ headers: currentRawResponse!.headers.toJSON()
374
+ }
375
+ };
376
+ };
377
+
378
+ const lro = new LroImpl(
379
+ sendOperation,
380
+ { resourceGroupName, privateZoneName, options },
381
+ deleteOperationSpec
382
+ );
383
+ return new LroEngine(lro, {
384
+ resumeFrom: options?.resumeFrom,
385
+ intervalInMs: options?.updateIntervalInMs
386
+ });
176
387
  }
177
388
 
178
389
  /**
179
- * Updates a Private DNS zone. Does not modify virtual network links or DNS records within the
180
- * zone.
390
+ * Deletes a Private DNS zone. WARNING: All DNS records in the zone will also be deleted. This
391
+ * operation cannot be undone. Private DNS zone cannot be deleted unless all virtual network links to
392
+ * it are removed.
181
393
  * @param resourceGroupName The name of the resource group.
182
394
  * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
183
- * @param parameters Parameters supplied to the Update operation.
184
- * @param [options] The optional parameters
185
- * @returns Promise<msRestAzure.LROPoller>
395
+ * @param options The options parameters.
186
396
  */
187
- beginUpdate(resourceGroupName: string, privateZoneName: string, parameters: Models.PrivateZone, options?: Models.PrivateZonesBeginUpdateOptionalParams): Promise<msRestAzure.LROPoller> {
188
- return this.client.sendLRORequest(
189
- {
190
- resourceGroupName,
191
- privateZoneName,
192
- parameters,
193
- options
194
- },
195
- beginUpdateOperationSpec,
196
- options);
397
+ async beginDeleteAndWait(
398
+ resourceGroupName: string,
399
+ privateZoneName: string,
400
+ options?: PrivateZonesDeleteOptionalParams
401
+ ): Promise<void> {
402
+ const poller = await this.beginDelete(
403
+ resourceGroupName,
404
+ privateZoneName,
405
+ options
406
+ );
407
+ return poller.pollUntilDone();
197
408
  }
198
409
 
199
410
  /**
200
- * Deletes a Private DNS zone. WARNING: All DNS records in the zone will also be deleted. This
201
- * operation cannot be undone. Private DNS zone cannot be deleted unless all virtual network links
202
- * to it are removed.
411
+ * Gets a Private DNS zone. Retrieves the zone properties, but not the virtual networks links or the
412
+ * record sets within the zone.
203
413
  * @param resourceGroupName The name of the resource group.
204
414
  * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
205
- * @param [options] The optional parameters
206
- * @returns Promise<msRestAzure.LROPoller>
415
+ * @param options The options parameters.
207
416
  */
208
- beginDeleteMethod(resourceGroupName: string, privateZoneName: string, options?: Models.PrivateZonesBeginDeleteMethodOptionalParams): Promise<msRestAzure.LROPoller> {
209
- return this.client.sendLRORequest(
210
- {
211
- resourceGroupName,
212
- privateZoneName,
213
- options
214
- },
215
- beginDeleteMethodOperationSpec,
216
- options);
417
+ get(
418
+ resourceGroupName: string,
419
+ privateZoneName: string,
420
+ options?: PrivateZonesGetOptionalParams
421
+ ): Promise<PrivateZonesGetResponse> {
422
+ return this.client.sendOperationRequest(
423
+ { resourceGroupName, privateZoneName, options },
424
+ getOperationSpec
425
+ );
217
426
  }
218
427
 
219
428
  /**
220
429
  * Lists the Private DNS zones in all resource groups in a subscription.
221
- * @param nextPageLink The NextLink from the previous successful call to List operation.
222
- * @param [options] The optional parameters
223
- * @returns Promise<Models.PrivateZonesListNextResponse>
430
+ * @param options The options parameters.
224
431
  */
225
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateZonesListNextResponse>;
226
- /**
227
- * @param nextPageLink The NextLink from the previous successful call to List operation.
228
- * @param callback The callback
229
- */
230
- listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.PrivateZoneListResult>): void;
231
- /**
232
- * @param nextPageLink The NextLink from the previous successful call to List operation.
233
- * @param options The optional parameters
234
- * @param callback The callback
235
- */
236
- listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.PrivateZoneListResult>): void;
237
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.PrivateZoneListResult>, callback?: msRest.ServiceCallback<Models.PrivateZoneListResult>): Promise<Models.PrivateZonesListNextResponse> {
238
- return this.client.sendOperationRequest(
239
- {
240
- nextPageLink,
241
- options
242
- },
243
- listNextOperationSpec,
244
- callback) as Promise<Models.PrivateZonesListNextResponse>;
432
+ private _list(
433
+ options?: PrivateZonesListOptionalParams
434
+ ): Promise<PrivateZonesListResponse> {
435
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
245
436
  }
246
437
 
247
438
  /**
248
439
  * Lists the Private DNS zones within a resource group.
249
- * @param nextPageLink The NextLink from the previous successful call to List operation.
250
- * @param [options] The optional parameters
251
- * @returns Promise<Models.PrivateZonesListByResourceGroupNextResponse>
440
+ * @param resourceGroupName The name of the resource group.
441
+ * @param options The options parameters.
252
442
  */
253
- listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateZonesListByResourceGroupNextResponse>;
443
+ private _listByResourceGroup(
444
+ resourceGroupName: string,
445
+ options?: PrivateZonesListByResourceGroupOptionalParams
446
+ ): Promise<PrivateZonesListByResourceGroupResponse> {
447
+ return this.client.sendOperationRequest(
448
+ { resourceGroupName, options },
449
+ listByResourceGroupOperationSpec
450
+ );
451
+ }
452
+
254
453
  /**
255
- * @param nextPageLink The NextLink from the previous successful call to List operation.
256
- * @param callback The callback
454
+ * ListNext
455
+ * @param nextLink The nextLink from the previous successful call to the List method.
456
+ * @param options The options parameters.
257
457
  */
258
- listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.PrivateZoneListResult>): void;
458
+ private _listNext(
459
+ nextLink: string,
460
+ options?: PrivateZonesListNextOptionalParams
461
+ ): Promise<PrivateZonesListNextResponse> {
462
+ return this.client.sendOperationRequest(
463
+ { nextLink, options },
464
+ listNextOperationSpec
465
+ );
466
+ }
467
+
259
468
  /**
260
- * @param nextPageLink The NextLink from the previous successful call to List operation.
261
- * @param options The optional parameters
262
- * @param callback The callback
469
+ * ListByResourceGroupNext
470
+ * @param resourceGroupName The name of the resource group.
471
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
472
+ * @param options The options parameters.
263
473
  */
264
- listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.PrivateZoneListResult>): void;
265
- listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.PrivateZoneListResult>, callback?: msRest.ServiceCallback<Models.PrivateZoneListResult>): Promise<Models.PrivateZonesListByResourceGroupNextResponse> {
474
+ private _listByResourceGroupNext(
475
+ resourceGroupName: string,
476
+ nextLink: string,
477
+ options?: PrivateZonesListByResourceGroupNextOptionalParams
478
+ ): Promise<PrivateZonesListByResourceGroupNextResponse> {
266
479
  return this.client.sendOperationRequest(
267
- {
268
- nextPageLink,
269
- options
270
- },
271
- listByResourceGroupNextOperationSpec,
272
- callback) as Promise<Models.PrivateZonesListByResourceGroupNextResponse>;
480
+ { resourceGroupName, nextLink, options },
481
+ listByResourceGroupNextOperationSpec
482
+ );
273
483
  }
274
484
  }
275
-
276
485
  // Operation Specifications
277
- const serializer = new msRest.Serializer(Mappers);
278
- const getOperationSpec: msRest.OperationSpec = {
279
- httpMethod: "GET",
280
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}",
281
- urlParameters: [
282
- Parameters.resourceGroupName,
283
- Parameters.privateZoneName,
284
- Parameters.subscriptionId
285
- ],
286
- queryParameters: [
287
- Parameters.apiVersion
288
- ],
289
- headerParameters: [
290
- Parameters.acceptLanguage
291
- ],
486
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
487
+
488
+ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
489
+ path:
490
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}",
491
+ httpMethod: "PUT",
292
492
  responses: {
293
493
  200: {
294
494
  bodyMapper: Mappers.PrivateZone
295
495
  },
496
+ 201: {
497
+ bodyMapper: Mappers.PrivateZone
498
+ },
499
+ 202: {
500
+ bodyMapper: Mappers.PrivateZone
501
+ },
502
+ 204: {
503
+ bodyMapper: Mappers.PrivateZone
504
+ },
296
505
  default: {
297
506
  bodyMapper: Mappers.CloudError
298
507
  }
299
508
  },
300
- serializer
301
- };
302
-
303
- const listOperationSpec: msRest.OperationSpec = {
304
- httpMethod: "GET",
305
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Network/privateDnsZones",
509
+ requestBody: Parameters.parameters,
510
+ queryParameters: [Parameters.apiVersion],
306
511
  urlParameters: [
512
+ Parameters.$host,
513
+ Parameters.resourceGroupName,
514
+ Parameters.privateZoneName,
307
515
  Parameters.subscriptionId
308
516
  ],
309
- queryParameters: [
310
- Parameters.top,
311
- Parameters.apiVersion
312
- ],
313
517
  headerParameters: [
314
- Parameters.acceptLanguage
518
+ Parameters.contentType,
519
+ Parameters.accept,
520
+ Parameters.ifMatch,
521
+ Parameters.ifNoneMatch
315
522
  ],
523
+ mediaType: "json",
524
+ serializer
525
+ };
526
+ const updateOperationSpec: coreClient.OperationSpec = {
527
+ path:
528
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}",
529
+ httpMethod: "PATCH",
316
530
  responses: {
317
531
  200: {
318
- bodyMapper: Mappers.PrivateZoneListResult
532
+ bodyMapper: Mappers.PrivateZone
533
+ },
534
+ 201: {
535
+ bodyMapper: Mappers.PrivateZone
536
+ },
537
+ 202: {
538
+ bodyMapper: Mappers.PrivateZone
539
+ },
540
+ 204: {
541
+ bodyMapper: Mappers.PrivateZone
319
542
  },
320
543
  default: {
321
544
  bodyMapper: Mappers.CloudError
322
545
  }
323
546
  },
324
- serializer
325
- };
326
-
327
- const listByResourceGroupOperationSpec: msRest.OperationSpec = {
328
- httpMethod: "GET",
329
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones",
547
+ requestBody: Parameters.parameters,
548
+ queryParameters: [Parameters.apiVersion],
330
549
  urlParameters: [
550
+ Parameters.$host,
331
551
  Parameters.resourceGroupName,
552
+ Parameters.privateZoneName,
332
553
  Parameters.subscriptionId
333
554
  ],
334
- queryParameters: [
335
- Parameters.top,
336
- Parameters.apiVersion
337
- ],
338
555
  headerParameters: [
339
- Parameters.acceptLanguage
556
+ Parameters.contentType,
557
+ Parameters.accept,
558
+ Parameters.ifMatch
340
559
  ],
560
+ mediaType: "json",
561
+ serializer
562
+ };
563
+ const deleteOperationSpec: coreClient.OperationSpec = {
564
+ path:
565
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}",
566
+ httpMethod: "DELETE",
341
567
  responses: {
342
- 200: {
343
- bodyMapper: Mappers.PrivateZoneListResult
344
- },
568
+ 200: {},
569
+ 201: {},
570
+ 202: {},
571
+ 204: {},
345
572
  default: {
346
573
  bodyMapper: Mappers.CloudError
347
574
  }
348
575
  },
349
- serializer
350
- };
351
-
352
- const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
353
- httpMethod: "PUT",
354
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}",
576
+ queryParameters: [Parameters.apiVersion],
355
577
  urlParameters: [
578
+ Parameters.$host,
356
579
  Parameters.resourceGroupName,
357
580
  Parameters.privateZoneName,
358
581
  Parameters.subscriptionId
359
582
  ],
360
- queryParameters: [
361
- Parameters.apiVersion
362
- ],
363
- headerParameters: [
364
- Parameters.ifMatch,
365
- Parameters.ifNoneMatch,
366
- Parameters.acceptLanguage
367
- ],
368
- requestBody: {
369
- parameterPath: "parameters",
370
- mapper: {
371
- ...Mappers.PrivateZone,
372
- required: true
373
- }
374
- },
583
+ headerParameters: [Parameters.accept, Parameters.ifMatch],
584
+ serializer
585
+ };
586
+ const getOperationSpec: coreClient.OperationSpec = {
587
+ path:
588
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}",
589
+ httpMethod: "GET",
375
590
  responses: {
376
591
  200: {
377
592
  bodyMapper: Mappers.PrivateZone
378
593
  },
379
- 201: {
380
- bodyMapper: Mappers.PrivateZone
381
- },
382
- 202: {},
383
594
  default: {
384
595
  bodyMapper: Mappers.CloudError
385
596
  }
386
597
  },
387
- serializer
388
- };
389
-
390
- const beginUpdateOperationSpec: msRest.OperationSpec = {
391
- httpMethod: "PATCH",
392
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}",
598
+ queryParameters: [Parameters.apiVersion],
393
599
  urlParameters: [
600
+ Parameters.$host,
394
601
  Parameters.resourceGroupName,
395
602
  Parameters.privateZoneName,
396
603
  Parameters.subscriptionId
397
604
  ],
398
- queryParameters: [
399
- Parameters.apiVersion
400
- ],
401
- headerParameters: [
402
- Parameters.ifMatch,
403
- Parameters.acceptLanguage
404
- ],
405
- requestBody: {
406
- parameterPath: "parameters",
407
- mapper: {
408
- ...Mappers.PrivateZone,
409
- required: true
410
- }
411
- },
605
+ headerParameters: [Parameters.accept],
606
+ serializer
607
+ };
608
+ const listOperationSpec: coreClient.OperationSpec = {
609
+ path:
610
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Network/privateDnsZones",
611
+ httpMethod: "GET",
412
612
  responses: {
413
613
  200: {
414
- bodyMapper: Mappers.PrivateZone
614
+ bodyMapper: Mappers.PrivateZoneListResult
415
615
  },
416
- 202: {},
417
616
  default: {
418
617
  bodyMapper: Mappers.CloudError
419
618
  }
420
619
  },
620
+ queryParameters: [Parameters.apiVersion, Parameters.top],
621
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
622
+ headerParameters: [Parameters.accept],
421
623
  serializer
422
624
  };
423
-
424
- const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
425
- httpMethod: "DELETE",
426
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}",
427
- urlParameters: [
428
- Parameters.resourceGroupName,
429
- Parameters.privateZoneName,
430
- Parameters.subscriptionId
431
- ],
432
- queryParameters: [
433
- Parameters.apiVersion
434
- ],
435
- headerParameters: [
436
- Parameters.ifMatch,
437
- Parameters.acceptLanguage
438
- ],
625
+ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
626
+ path:
627
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones",
628
+ httpMethod: "GET",
439
629
  responses: {
440
- 200: {},
441
- 202: {},
442
- 204: {},
630
+ 200: {
631
+ bodyMapper: Mappers.PrivateZoneListResult
632
+ },
443
633
  default: {
444
634
  bodyMapper: Mappers.CloudError
445
635
  }
446
636
  },
637
+ queryParameters: [Parameters.apiVersion, Parameters.top],
638
+ urlParameters: [
639
+ Parameters.$host,
640
+ Parameters.resourceGroupName,
641
+ Parameters.subscriptionId
642
+ ],
643
+ headerParameters: [Parameters.accept],
447
644
  serializer
448
645
  };
449
-
450
- const listNextOperationSpec: msRest.OperationSpec = {
451
- httpMethod: "GET",
452
- baseUrl: "https://management.azure.com",
646
+ const listNextOperationSpec: coreClient.OperationSpec = {
453
647
  path: "{nextLink}",
454
- urlParameters: [
455
- Parameters.nextPageLink
456
- ],
457
- headerParameters: [
458
- Parameters.acceptLanguage
459
- ],
648
+ httpMethod: "GET",
460
649
  responses: {
461
650
  200: {
462
651
  bodyMapper: Mappers.PrivateZoneListResult
@@ -465,19 +654,18 @@ const listNextOperationSpec: msRest.OperationSpec = {
465
654
  bodyMapper: Mappers.CloudError
466
655
  }
467
656
  },
657
+ queryParameters: [Parameters.apiVersion, Parameters.top],
658
+ urlParameters: [
659
+ Parameters.$host,
660
+ Parameters.subscriptionId,
661
+ Parameters.nextLink
662
+ ],
663
+ headerParameters: [Parameters.accept],
468
664
  serializer
469
665
  };
470
-
471
- const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
472
- httpMethod: "GET",
473
- baseUrl: "https://management.azure.com",
666
+ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
474
667
  path: "{nextLink}",
475
- urlParameters: [
476
- Parameters.nextPageLink
477
- ],
478
- headerParameters: [
479
- Parameters.acceptLanguage
480
- ],
668
+ httpMethod: "GET",
481
669
  responses: {
482
670
  200: {
483
671
  bodyMapper: Mappers.PrivateZoneListResult
@@ -486,5 +674,13 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
486
674
  bodyMapper: Mappers.CloudError
487
675
  }
488
676
  },
677
+ queryParameters: [Parameters.apiVersion, Parameters.top],
678
+ urlParameters: [
679
+ Parameters.$host,
680
+ Parameters.resourceGroupName,
681
+ Parameters.subscriptionId,
682
+ Parameters.nextLink
683
+ ],
684
+ headerParameters: [Parameters.accept],
489
685
  serializer
490
686
  };