@azure/arm-privatedns 3.2.1-alpha.20240925.1 → 3.3.0-alpha.20240927.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.
- package/CHANGELOG.md +9 -10
- package/LICENSE +1 -1
- package/dist/index.js +435 -422
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/privateZonesCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/privateZonesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateZonesGetSample.js +1 -1
- package/dist-esm/samples-dev/privateZonesListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/privateZonesListSample.js +1 -1
- package/dist-esm/samples-dev/privateZonesUpdateSample.js +1 -1
- package/dist-esm/samples-dev/recordSetsCreateOrUpdateSample.js +18 -17
- package/dist-esm/samples-dev/recordSetsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/recordSetsDeleteSample.js +7 -7
- package/dist-esm/samples-dev/recordSetsGetSample.js +8 -8
- package/dist-esm/samples-dev/recordSetsListByTypeSample.js +8 -8
- package/dist-esm/samples-dev/recordSetsListSample.js +1 -1
- package/dist-esm/samples-dev/recordSetsUpdateSample.js +8 -8
- package/dist-esm/samples-dev/virtualNetworkLinksCreateOrUpdateSample.js +4 -4
- package/dist-esm/samples-dev/virtualNetworkLinksCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworkLinksDeleteSample.js +1 -1
- package/dist-esm/samples-dev/virtualNetworkLinksGetSample.js +1 -1
- package/dist-esm/samples-dev/virtualNetworkLinksListSample.js +2 -2
- package/dist-esm/samples-dev/virtualNetworkLinksListSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworkLinksUpdateSample.js +5 -4
- package/dist-esm/samples-dev/virtualNetworkLinksUpdateSample.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +18 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +8 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +206 -201
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +50 -50
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/privateZones.d.ts.map +1 -1
- package/dist-esm/src/operations/privateZones.js +61 -61
- package/dist-esm/src/operations/privateZones.js.map +1 -1
- package/dist-esm/src/operations/recordSets.js +50 -50
- package/dist-esm/src/operations/recordSets.js.map +1 -1
- package/dist-esm/src/operations/virtualNetworkLinks.d.ts.map +1 -1
- package/dist-esm/src/operations/virtualNetworkLinks.js +54 -54
- package/dist-esm/src/operations/virtualNetworkLinks.js.map +1 -1
- package/dist-esm/src/privateDnsManagementClient.d.ts.map +1 -1
- package/dist-esm/src/privateDnsManagementClient.js +9 -9
- package/dist-esm/src/privateDnsManagementClient.js.map +1 -1
- package/dist-esm/test/privatedns_operations_test.spec.d.ts.map +1 -1
- package/dist-esm/test/privatedns_operations_test.spec.js +0 -3
- package/dist-esm/test/privatedns_operations_test.spec.js.map +1 -1
- package/package.json +33 -32
- package/review/arm-privatedns.api.md +10 -0
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +22 -2
- package/src/models/mappers.ts +212 -206
- package/src/models/parameters.ts +51 -51
- package/src/operations/privateZones.ts +116 -125
- package/src/operations/recordSets.ts +88 -94
- package/src/operations/virtualNetworkLinks.ts +103 -111
- package/src/operationsInterfaces/privateZones.ts +10 -10
- package/src/operationsInterfaces/recordSets.ts +7 -7
- package/src/operationsInterfaces/virtualNetworkLinks.ts +9 -9
- package/src/pagingHelper.ts +1 -1
- package/src/privateDnsManagementClient.ts +18 -17
- package/types/arm-privatedns.d.ts +20 -0
|
@@ -16,7 +16,7 @@ import { PrivateDnsManagementClient } from "../privateDnsManagementClient";
|
|
|
16
16
|
import {
|
|
17
17
|
SimplePollerLike,
|
|
18
18
|
OperationState,
|
|
19
|
-
createHttpPoller
|
|
19
|
+
createHttpPoller,
|
|
20
20
|
} from "@azure/core-lro";
|
|
21
21
|
import { createLroSpec } from "../lroImpl";
|
|
22
22
|
import {
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
PrivateZonesGetOptionalParams,
|
|
36
36
|
PrivateZonesGetResponse,
|
|
37
37
|
PrivateZonesListNextResponse,
|
|
38
|
-
PrivateZonesListByResourceGroupNextResponse
|
|
38
|
+
PrivateZonesListByResourceGroupNextResponse,
|
|
39
39
|
} from "../models";
|
|
40
40
|
|
|
41
41
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -56,7 +56,7 @@ export class PrivateZonesImpl implements PrivateZones {
|
|
|
56
56
|
* @param options The options parameters.
|
|
57
57
|
*/
|
|
58
58
|
public list(
|
|
59
|
-
options?: PrivateZonesListOptionalParams
|
|
59
|
+
options?: PrivateZonesListOptionalParams,
|
|
60
60
|
): PagedAsyncIterableIterator<PrivateZone> {
|
|
61
61
|
const iter = this.listPagingAll(options);
|
|
62
62
|
return {
|
|
@@ -71,13 +71,13 @@ export class PrivateZonesImpl implements PrivateZones {
|
|
|
71
71
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
72
72
|
}
|
|
73
73
|
return this.listPagingPage(options, settings);
|
|
74
|
-
}
|
|
74
|
+
},
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
private async *listPagingPage(
|
|
79
79
|
options?: PrivateZonesListOptionalParams,
|
|
80
|
-
settings?: PageSettings
|
|
80
|
+
settings?: PageSettings,
|
|
81
81
|
): AsyncIterableIterator<PrivateZone[]> {
|
|
82
82
|
let result: PrivateZonesListResponse;
|
|
83
83
|
let continuationToken = settings?.continuationToken;
|
|
@@ -98,7 +98,7 @@ export class PrivateZonesImpl implements PrivateZones {
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
private async *listPagingAll(
|
|
101
|
-
options?: PrivateZonesListOptionalParams
|
|
101
|
+
options?: PrivateZonesListOptionalParams,
|
|
102
102
|
): AsyncIterableIterator<PrivateZone> {
|
|
103
103
|
for await (const page of this.listPagingPage(options)) {
|
|
104
104
|
yield* page;
|
|
@@ -112,7 +112,7 @@ export class PrivateZonesImpl implements PrivateZones {
|
|
|
112
112
|
*/
|
|
113
113
|
public listByResourceGroup(
|
|
114
114
|
resourceGroupName: string,
|
|
115
|
-
options?: PrivateZonesListByResourceGroupOptionalParams
|
|
115
|
+
options?: PrivateZonesListByResourceGroupOptionalParams,
|
|
116
116
|
): PagedAsyncIterableIterator<PrivateZone> {
|
|
117
117
|
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
118
118
|
return {
|
|
@@ -129,16 +129,16 @@ export class PrivateZonesImpl implements PrivateZones {
|
|
|
129
129
|
return this.listByResourceGroupPagingPage(
|
|
130
130
|
resourceGroupName,
|
|
131
131
|
options,
|
|
132
|
-
settings
|
|
132
|
+
settings,
|
|
133
133
|
);
|
|
134
|
-
}
|
|
134
|
+
},
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
private async *listByResourceGroupPagingPage(
|
|
139
139
|
resourceGroupName: string,
|
|
140
140
|
options?: PrivateZonesListByResourceGroupOptionalParams,
|
|
141
|
-
settings?: PageSettings
|
|
141
|
+
settings?: PageSettings,
|
|
142
142
|
): AsyncIterableIterator<PrivateZone[]> {
|
|
143
143
|
let result: PrivateZonesListByResourceGroupResponse;
|
|
144
144
|
let continuationToken = settings?.continuationToken;
|
|
@@ -153,7 +153,7 @@ export class PrivateZonesImpl implements PrivateZones {
|
|
|
153
153
|
result = await this._listByResourceGroupNext(
|
|
154
154
|
resourceGroupName,
|
|
155
155
|
continuationToken,
|
|
156
|
-
options
|
|
156
|
+
options,
|
|
157
157
|
);
|
|
158
158
|
continuationToken = result.nextLink;
|
|
159
159
|
let page = result.value || [];
|
|
@@ -164,11 +164,11 @@ export class PrivateZonesImpl implements PrivateZones {
|
|
|
164
164
|
|
|
165
165
|
private async *listByResourceGroupPagingAll(
|
|
166
166
|
resourceGroupName: string,
|
|
167
|
-
options?: PrivateZonesListByResourceGroupOptionalParams
|
|
167
|
+
options?: PrivateZonesListByResourceGroupOptionalParams,
|
|
168
168
|
): AsyncIterableIterator<PrivateZone> {
|
|
169
169
|
for await (const page of this.listByResourceGroupPagingPage(
|
|
170
170
|
resourceGroupName,
|
|
171
|
-
options
|
|
171
|
+
options,
|
|
172
172
|
)) {
|
|
173
173
|
yield* page;
|
|
174
174
|
}
|
|
@@ -186,7 +186,7 @@ export class PrivateZonesImpl implements PrivateZones {
|
|
|
186
186
|
resourceGroupName: string,
|
|
187
187
|
privateZoneName: string,
|
|
188
188
|
parameters: PrivateZone,
|
|
189
|
-
options?: PrivateZonesCreateOrUpdateOptionalParams
|
|
189
|
+
options?: PrivateZonesCreateOrUpdateOptionalParams,
|
|
190
190
|
): Promise<
|
|
191
191
|
SimplePollerLike<
|
|
192
192
|
OperationState<PrivateZonesCreateOrUpdateResponse>,
|
|
@@ -195,21 +195,20 @@ export class PrivateZonesImpl implements PrivateZones {
|
|
|
195
195
|
> {
|
|
196
196
|
const directSendOperation = async (
|
|
197
197
|
args: coreClient.OperationArguments,
|
|
198
|
-
spec: coreClient.OperationSpec
|
|
198
|
+
spec: coreClient.OperationSpec,
|
|
199
199
|
): Promise<PrivateZonesCreateOrUpdateResponse> => {
|
|
200
200
|
return this.client.sendOperationRequest(args, spec);
|
|
201
201
|
};
|
|
202
202
|
const sendOperationFn = async (
|
|
203
203
|
args: coreClient.OperationArguments,
|
|
204
|
-
spec: coreClient.OperationSpec
|
|
204
|
+
spec: coreClient.OperationSpec,
|
|
205
205
|
) => {
|
|
206
|
-
let currentRawResponse:
|
|
207
|
-
|
|
208
|
-
| undefined = undefined;
|
|
206
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
207
|
+
undefined;
|
|
209
208
|
const providedCallback = args.options?.onResponse;
|
|
210
209
|
const callback: coreClient.RawResponseCallback = (
|
|
211
210
|
rawResponse: coreClient.FullOperationResponse,
|
|
212
|
-
flatResponse: unknown
|
|
211
|
+
flatResponse: unknown,
|
|
213
212
|
) => {
|
|
214
213
|
currentRawResponse = rawResponse;
|
|
215
214
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -218,8 +217,8 @@ export class PrivateZonesImpl implements PrivateZones {
|
|
|
218
217
|
...args,
|
|
219
218
|
options: {
|
|
220
219
|
...args.options,
|
|
221
|
-
onResponse: callback
|
|
222
|
-
}
|
|
220
|
+
onResponse: callback,
|
|
221
|
+
},
|
|
223
222
|
};
|
|
224
223
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
225
224
|
return {
|
|
@@ -227,22 +226,22 @@ export class PrivateZonesImpl implements PrivateZones {
|
|
|
227
226
|
rawResponse: {
|
|
228
227
|
statusCode: currentRawResponse!.status,
|
|
229
228
|
body: currentRawResponse!.parsedBody,
|
|
230
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
231
|
-
}
|
|
229
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
230
|
+
},
|
|
232
231
|
};
|
|
233
232
|
};
|
|
234
233
|
|
|
235
234
|
const lro = createLroSpec({
|
|
236
235
|
sendOperationFn,
|
|
237
236
|
args: { resourceGroupName, privateZoneName, parameters, options },
|
|
238
|
-
spec: createOrUpdateOperationSpec
|
|
237
|
+
spec: createOrUpdateOperationSpec,
|
|
239
238
|
});
|
|
240
239
|
const poller = await createHttpPoller<
|
|
241
240
|
PrivateZonesCreateOrUpdateResponse,
|
|
242
241
|
OperationState<PrivateZonesCreateOrUpdateResponse>
|
|
243
242
|
>(lro, {
|
|
244
243
|
restoreFrom: options?.resumeFrom,
|
|
245
|
-
intervalInMs: options?.updateIntervalInMs
|
|
244
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
246
245
|
});
|
|
247
246
|
await poller.poll();
|
|
248
247
|
return poller;
|
|
@@ -260,13 +259,13 @@ export class PrivateZonesImpl implements PrivateZones {
|
|
|
260
259
|
resourceGroupName: string,
|
|
261
260
|
privateZoneName: string,
|
|
262
261
|
parameters: PrivateZone,
|
|
263
|
-
options?: PrivateZonesCreateOrUpdateOptionalParams
|
|
262
|
+
options?: PrivateZonesCreateOrUpdateOptionalParams,
|
|
264
263
|
): Promise<PrivateZonesCreateOrUpdateResponse> {
|
|
265
264
|
const poller = await this.beginCreateOrUpdate(
|
|
266
265
|
resourceGroupName,
|
|
267
266
|
privateZoneName,
|
|
268
267
|
parameters,
|
|
269
|
-
options
|
|
268
|
+
options,
|
|
270
269
|
);
|
|
271
270
|
return poller.pollUntilDone();
|
|
272
271
|
}
|
|
@@ -282,7 +281,7 @@ export class PrivateZonesImpl implements PrivateZones {
|
|
|
282
281
|
resourceGroupName: string,
|
|
283
282
|
privateZoneName: string,
|
|
284
283
|
parameters: PrivateZone,
|
|
285
|
-
options?: PrivateZonesUpdateOptionalParams
|
|
284
|
+
options?: PrivateZonesUpdateOptionalParams,
|
|
286
285
|
): Promise<
|
|
287
286
|
SimplePollerLike<
|
|
288
287
|
OperationState<PrivateZonesUpdateResponse>,
|
|
@@ -291,21 +290,20 @@ export class PrivateZonesImpl implements PrivateZones {
|
|
|
291
290
|
> {
|
|
292
291
|
const directSendOperation = async (
|
|
293
292
|
args: coreClient.OperationArguments,
|
|
294
|
-
spec: coreClient.OperationSpec
|
|
293
|
+
spec: coreClient.OperationSpec,
|
|
295
294
|
): Promise<PrivateZonesUpdateResponse> => {
|
|
296
295
|
return this.client.sendOperationRequest(args, spec);
|
|
297
296
|
};
|
|
298
297
|
const sendOperationFn = async (
|
|
299
298
|
args: coreClient.OperationArguments,
|
|
300
|
-
spec: coreClient.OperationSpec
|
|
299
|
+
spec: coreClient.OperationSpec,
|
|
301
300
|
) => {
|
|
302
|
-
let currentRawResponse:
|
|
303
|
-
|
|
304
|
-
| undefined = undefined;
|
|
301
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
302
|
+
undefined;
|
|
305
303
|
const providedCallback = args.options?.onResponse;
|
|
306
304
|
const callback: coreClient.RawResponseCallback = (
|
|
307
305
|
rawResponse: coreClient.FullOperationResponse,
|
|
308
|
-
flatResponse: unknown
|
|
306
|
+
flatResponse: unknown,
|
|
309
307
|
) => {
|
|
310
308
|
currentRawResponse = rawResponse;
|
|
311
309
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -314,8 +312,8 @@ export class PrivateZonesImpl implements PrivateZones {
|
|
|
314
312
|
...args,
|
|
315
313
|
options: {
|
|
316
314
|
...args.options,
|
|
317
|
-
onResponse: callback
|
|
318
|
-
}
|
|
315
|
+
onResponse: callback,
|
|
316
|
+
},
|
|
319
317
|
};
|
|
320
318
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
321
319
|
return {
|
|
@@ -323,22 +321,22 @@ export class PrivateZonesImpl implements PrivateZones {
|
|
|
323
321
|
rawResponse: {
|
|
324
322
|
statusCode: currentRawResponse!.status,
|
|
325
323
|
body: currentRawResponse!.parsedBody,
|
|
326
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
327
|
-
}
|
|
324
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
325
|
+
},
|
|
328
326
|
};
|
|
329
327
|
};
|
|
330
328
|
|
|
331
329
|
const lro = createLroSpec({
|
|
332
330
|
sendOperationFn,
|
|
333
331
|
args: { resourceGroupName, privateZoneName, parameters, options },
|
|
334
|
-
spec: updateOperationSpec
|
|
332
|
+
spec: updateOperationSpec,
|
|
335
333
|
});
|
|
336
334
|
const poller = await createHttpPoller<
|
|
337
335
|
PrivateZonesUpdateResponse,
|
|
338
336
|
OperationState<PrivateZonesUpdateResponse>
|
|
339
337
|
>(lro, {
|
|
340
338
|
restoreFrom: options?.resumeFrom,
|
|
341
|
-
intervalInMs: options?.updateIntervalInMs
|
|
339
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
342
340
|
});
|
|
343
341
|
await poller.poll();
|
|
344
342
|
return poller;
|
|
@@ -355,13 +353,13 @@ export class PrivateZonesImpl implements PrivateZones {
|
|
|
355
353
|
resourceGroupName: string,
|
|
356
354
|
privateZoneName: string,
|
|
357
355
|
parameters: PrivateZone,
|
|
358
|
-
options?: PrivateZonesUpdateOptionalParams
|
|
356
|
+
options?: PrivateZonesUpdateOptionalParams,
|
|
359
357
|
): Promise<PrivateZonesUpdateResponse> {
|
|
360
358
|
const poller = await this.beginUpdate(
|
|
361
359
|
resourceGroupName,
|
|
362
360
|
privateZoneName,
|
|
363
361
|
parameters,
|
|
364
|
-
options
|
|
362
|
+
options,
|
|
365
363
|
);
|
|
366
364
|
return poller.pollUntilDone();
|
|
367
365
|
}
|
|
@@ -377,25 +375,24 @@ export class PrivateZonesImpl implements PrivateZones {
|
|
|
377
375
|
async beginDelete(
|
|
378
376
|
resourceGroupName: string,
|
|
379
377
|
privateZoneName: string,
|
|
380
|
-
options?: PrivateZonesDeleteOptionalParams
|
|
378
|
+
options?: PrivateZonesDeleteOptionalParams,
|
|
381
379
|
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
382
380
|
const directSendOperation = async (
|
|
383
381
|
args: coreClient.OperationArguments,
|
|
384
|
-
spec: coreClient.OperationSpec
|
|
382
|
+
spec: coreClient.OperationSpec,
|
|
385
383
|
): Promise<void> => {
|
|
386
384
|
return this.client.sendOperationRequest(args, spec);
|
|
387
385
|
};
|
|
388
386
|
const sendOperationFn = async (
|
|
389
387
|
args: coreClient.OperationArguments,
|
|
390
|
-
spec: coreClient.OperationSpec
|
|
388
|
+
spec: coreClient.OperationSpec,
|
|
391
389
|
) => {
|
|
392
|
-
let currentRawResponse:
|
|
393
|
-
|
|
394
|
-
| undefined = undefined;
|
|
390
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
391
|
+
undefined;
|
|
395
392
|
const providedCallback = args.options?.onResponse;
|
|
396
393
|
const callback: coreClient.RawResponseCallback = (
|
|
397
394
|
rawResponse: coreClient.FullOperationResponse,
|
|
398
|
-
flatResponse: unknown
|
|
395
|
+
flatResponse: unknown,
|
|
399
396
|
) => {
|
|
400
397
|
currentRawResponse = rawResponse;
|
|
401
398
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -404,8 +401,8 @@ export class PrivateZonesImpl implements PrivateZones {
|
|
|
404
401
|
...args,
|
|
405
402
|
options: {
|
|
406
403
|
...args.options,
|
|
407
|
-
onResponse: callback
|
|
408
|
-
}
|
|
404
|
+
onResponse: callback,
|
|
405
|
+
},
|
|
409
406
|
};
|
|
410
407
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
411
408
|
return {
|
|
@@ -413,19 +410,19 @@ export class PrivateZonesImpl implements PrivateZones {
|
|
|
413
410
|
rawResponse: {
|
|
414
411
|
statusCode: currentRawResponse!.status,
|
|
415
412
|
body: currentRawResponse!.parsedBody,
|
|
416
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
417
|
-
}
|
|
413
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
414
|
+
},
|
|
418
415
|
};
|
|
419
416
|
};
|
|
420
417
|
|
|
421
418
|
const lro = createLroSpec({
|
|
422
419
|
sendOperationFn,
|
|
423
420
|
args: { resourceGroupName, privateZoneName, options },
|
|
424
|
-
spec: deleteOperationSpec
|
|
421
|
+
spec: deleteOperationSpec,
|
|
425
422
|
});
|
|
426
423
|
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
427
424
|
restoreFrom: options?.resumeFrom,
|
|
428
|
-
intervalInMs: options?.updateIntervalInMs
|
|
425
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
429
426
|
});
|
|
430
427
|
await poller.poll();
|
|
431
428
|
return poller;
|
|
@@ -442,12 +439,12 @@ export class PrivateZonesImpl implements PrivateZones {
|
|
|
442
439
|
async beginDeleteAndWait(
|
|
443
440
|
resourceGroupName: string,
|
|
444
441
|
privateZoneName: string,
|
|
445
|
-
options?: PrivateZonesDeleteOptionalParams
|
|
442
|
+
options?: PrivateZonesDeleteOptionalParams,
|
|
446
443
|
): Promise<void> {
|
|
447
444
|
const poller = await this.beginDelete(
|
|
448
445
|
resourceGroupName,
|
|
449
446
|
privateZoneName,
|
|
450
|
-
options
|
|
447
|
+
options,
|
|
451
448
|
);
|
|
452
449
|
return poller.pollUntilDone();
|
|
453
450
|
}
|
|
@@ -462,11 +459,11 @@ export class PrivateZonesImpl implements PrivateZones {
|
|
|
462
459
|
get(
|
|
463
460
|
resourceGroupName: string,
|
|
464
461
|
privateZoneName: string,
|
|
465
|
-
options?: PrivateZonesGetOptionalParams
|
|
462
|
+
options?: PrivateZonesGetOptionalParams,
|
|
466
463
|
): Promise<PrivateZonesGetResponse> {
|
|
467
464
|
return this.client.sendOperationRequest(
|
|
468
465
|
{ resourceGroupName, privateZoneName, options },
|
|
469
|
-
getOperationSpec
|
|
466
|
+
getOperationSpec,
|
|
470
467
|
);
|
|
471
468
|
}
|
|
472
469
|
|
|
@@ -475,7 +472,7 @@ export class PrivateZonesImpl implements PrivateZones {
|
|
|
475
472
|
* @param options The options parameters.
|
|
476
473
|
*/
|
|
477
474
|
private _list(
|
|
478
|
-
options?: PrivateZonesListOptionalParams
|
|
475
|
+
options?: PrivateZonesListOptionalParams,
|
|
479
476
|
): Promise<PrivateZonesListResponse> {
|
|
480
477
|
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
481
478
|
}
|
|
@@ -487,11 +484,11 @@ export class PrivateZonesImpl implements PrivateZones {
|
|
|
487
484
|
*/
|
|
488
485
|
private _listByResourceGroup(
|
|
489
486
|
resourceGroupName: string,
|
|
490
|
-
options?: PrivateZonesListByResourceGroupOptionalParams
|
|
487
|
+
options?: PrivateZonesListByResourceGroupOptionalParams,
|
|
491
488
|
): Promise<PrivateZonesListByResourceGroupResponse> {
|
|
492
489
|
return this.client.sendOperationRequest(
|
|
493
490
|
{ resourceGroupName, options },
|
|
494
|
-
listByResourceGroupOperationSpec
|
|
491
|
+
listByResourceGroupOperationSpec,
|
|
495
492
|
);
|
|
496
493
|
}
|
|
497
494
|
|
|
@@ -502,11 +499,11 @@ export class PrivateZonesImpl implements PrivateZones {
|
|
|
502
499
|
*/
|
|
503
500
|
private _listNext(
|
|
504
501
|
nextLink: string,
|
|
505
|
-
options?: PrivateZonesListNextOptionalParams
|
|
502
|
+
options?: PrivateZonesListNextOptionalParams,
|
|
506
503
|
): Promise<PrivateZonesListNextResponse> {
|
|
507
504
|
return this.client.sendOperationRequest(
|
|
508
505
|
{ nextLink, options },
|
|
509
|
-
listNextOperationSpec
|
|
506
|
+
listNextOperationSpec,
|
|
510
507
|
);
|
|
511
508
|
}
|
|
512
509
|
|
|
@@ -519,11 +516,11 @@ export class PrivateZonesImpl implements PrivateZones {
|
|
|
519
516
|
private _listByResourceGroupNext(
|
|
520
517
|
resourceGroupName: string,
|
|
521
518
|
nextLink: string,
|
|
522
|
-
options?: PrivateZonesListByResourceGroupNextOptionalParams
|
|
519
|
+
options?: PrivateZonesListByResourceGroupNextOptionalParams,
|
|
523
520
|
): Promise<PrivateZonesListByResourceGroupNextResponse> {
|
|
524
521
|
return this.client.sendOperationRequest(
|
|
525
522
|
{ resourceGroupName, nextLink, options },
|
|
526
|
-
listByResourceGroupNextOperationSpec
|
|
523
|
+
listByResourceGroupNextOperationSpec,
|
|
527
524
|
);
|
|
528
525
|
}
|
|
529
526
|
}
|
|
@@ -531,25 +528,24 @@ export class PrivateZonesImpl implements PrivateZones {
|
|
|
531
528
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
532
529
|
|
|
533
530
|
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
534
|
-
path:
|
|
535
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}",
|
|
531
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}",
|
|
536
532
|
httpMethod: "PUT",
|
|
537
533
|
responses: {
|
|
538
534
|
200: {
|
|
539
|
-
bodyMapper: Mappers.PrivateZone
|
|
535
|
+
bodyMapper: Mappers.PrivateZone,
|
|
540
536
|
},
|
|
541
537
|
201: {
|
|
542
|
-
bodyMapper: Mappers.PrivateZone
|
|
538
|
+
bodyMapper: Mappers.PrivateZone,
|
|
543
539
|
},
|
|
544
540
|
202: {
|
|
545
|
-
bodyMapper: Mappers.PrivateZone
|
|
541
|
+
bodyMapper: Mappers.PrivateZone,
|
|
546
542
|
},
|
|
547
543
|
204: {
|
|
548
|
-
bodyMapper: Mappers.PrivateZone
|
|
544
|
+
bodyMapper: Mappers.PrivateZone,
|
|
549
545
|
},
|
|
550
546
|
default: {
|
|
551
|
-
bodyMapper: Mappers.CloudError
|
|
552
|
-
}
|
|
547
|
+
bodyMapper: Mappers.CloudError,
|
|
548
|
+
},
|
|
553
549
|
},
|
|
554
550
|
requestBody: Parameters.parameters,
|
|
555
551
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -557,37 +553,36 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
|
557
553
|
Parameters.$host,
|
|
558
554
|
Parameters.resourceGroupName,
|
|
559
555
|
Parameters.privateZoneName,
|
|
560
|
-
Parameters.subscriptionId
|
|
556
|
+
Parameters.subscriptionId,
|
|
561
557
|
],
|
|
562
558
|
headerParameters: [
|
|
563
559
|
Parameters.contentType,
|
|
564
560
|
Parameters.accept,
|
|
565
561
|
Parameters.ifMatch,
|
|
566
|
-
Parameters.ifNoneMatch
|
|
562
|
+
Parameters.ifNoneMatch,
|
|
567
563
|
],
|
|
568
564
|
mediaType: "json",
|
|
569
|
-
serializer
|
|
565
|
+
serializer,
|
|
570
566
|
};
|
|
571
567
|
const updateOperationSpec: coreClient.OperationSpec = {
|
|
572
|
-
path:
|
|
573
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}",
|
|
568
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}",
|
|
574
569
|
httpMethod: "PATCH",
|
|
575
570
|
responses: {
|
|
576
571
|
200: {
|
|
577
|
-
bodyMapper: Mappers.PrivateZone
|
|
572
|
+
bodyMapper: Mappers.PrivateZone,
|
|
578
573
|
},
|
|
579
574
|
201: {
|
|
580
|
-
bodyMapper: Mappers.PrivateZone
|
|
575
|
+
bodyMapper: Mappers.PrivateZone,
|
|
581
576
|
},
|
|
582
577
|
202: {
|
|
583
|
-
bodyMapper: Mappers.PrivateZone
|
|
578
|
+
bodyMapper: Mappers.PrivateZone,
|
|
584
579
|
},
|
|
585
580
|
204: {
|
|
586
|
-
bodyMapper: Mappers.PrivateZone
|
|
581
|
+
bodyMapper: Mappers.PrivateZone,
|
|
587
582
|
},
|
|
588
583
|
default: {
|
|
589
|
-
bodyMapper: Mappers.CloudError
|
|
590
|
-
}
|
|
584
|
+
bodyMapper: Mappers.CloudError,
|
|
585
|
+
},
|
|
591
586
|
},
|
|
592
587
|
requestBody: Parameters.parameters,
|
|
593
588
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -595,19 +590,18 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
|
595
590
|
Parameters.$host,
|
|
596
591
|
Parameters.resourceGroupName,
|
|
597
592
|
Parameters.privateZoneName,
|
|
598
|
-
Parameters.subscriptionId
|
|
593
|
+
Parameters.subscriptionId,
|
|
599
594
|
],
|
|
600
595
|
headerParameters: [
|
|
601
596
|
Parameters.contentType,
|
|
602
597
|
Parameters.accept,
|
|
603
|
-
Parameters.ifMatch
|
|
598
|
+
Parameters.ifMatch,
|
|
604
599
|
],
|
|
605
600
|
mediaType: "json",
|
|
606
|
-
serializer
|
|
601
|
+
serializer,
|
|
607
602
|
};
|
|
608
603
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
609
|
-
path:
|
|
610
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}",
|
|
604
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}",
|
|
611
605
|
httpMethod: "DELETE",
|
|
612
606
|
responses: {
|
|
613
607
|
200: {},
|
|
@@ -615,115 +609,112 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
615
609
|
202: {},
|
|
616
610
|
204: {},
|
|
617
611
|
default: {
|
|
618
|
-
bodyMapper: Mappers.CloudError
|
|
619
|
-
}
|
|
612
|
+
bodyMapper: Mappers.CloudError,
|
|
613
|
+
},
|
|
620
614
|
},
|
|
621
615
|
queryParameters: [Parameters.apiVersion],
|
|
622
616
|
urlParameters: [
|
|
623
617
|
Parameters.$host,
|
|
624
618
|
Parameters.resourceGroupName,
|
|
625
619
|
Parameters.privateZoneName,
|
|
626
|
-
Parameters.subscriptionId
|
|
620
|
+
Parameters.subscriptionId,
|
|
627
621
|
],
|
|
628
622
|
headerParameters: [Parameters.accept, Parameters.ifMatch],
|
|
629
|
-
serializer
|
|
623
|
+
serializer,
|
|
630
624
|
};
|
|
631
625
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
632
|
-
path:
|
|
633
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}",
|
|
626
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}",
|
|
634
627
|
httpMethod: "GET",
|
|
635
628
|
responses: {
|
|
636
629
|
200: {
|
|
637
|
-
bodyMapper: Mappers.PrivateZone
|
|
630
|
+
bodyMapper: Mappers.PrivateZone,
|
|
638
631
|
},
|
|
639
632
|
default: {
|
|
640
|
-
bodyMapper: Mappers.CloudError
|
|
641
|
-
}
|
|
633
|
+
bodyMapper: Mappers.CloudError,
|
|
634
|
+
},
|
|
642
635
|
},
|
|
643
636
|
queryParameters: [Parameters.apiVersion],
|
|
644
637
|
urlParameters: [
|
|
645
638
|
Parameters.$host,
|
|
646
639
|
Parameters.resourceGroupName,
|
|
647
640
|
Parameters.privateZoneName,
|
|
648
|
-
Parameters.subscriptionId
|
|
641
|
+
Parameters.subscriptionId,
|
|
649
642
|
],
|
|
650
643
|
headerParameters: [Parameters.accept],
|
|
651
|
-
serializer
|
|
644
|
+
serializer,
|
|
652
645
|
};
|
|
653
646
|
const listOperationSpec: coreClient.OperationSpec = {
|
|
654
|
-
path:
|
|
655
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.Network/privateDnsZones",
|
|
647
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/privateDnsZones",
|
|
656
648
|
httpMethod: "GET",
|
|
657
649
|
responses: {
|
|
658
650
|
200: {
|
|
659
|
-
bodyMapper: Mappers.PrivateZoneListResult
|
|
651
|
+
bodyMapper: Mappers.PrivateZoneListResult,
|
|
660
652
|
},
|
|
661
653
|
default: {
|
|
662
|
-
bodyMapper: Mappers.CloudError
|
|
663
|
-
}
|
|
654
|
+
bodyMapper: Mappers.CloudError,
|
|
655
|
+
},
|
|
664
656
|
},
|
|
665
657
|
queryParameters: [Parameters.apiVersion, Parameters.top],
|
|
666
658
|
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
667
659
|
headerParameters: [Parameters.accept],
|
|
668
|
-
serializer
|
|
660
|
+
serializer,
|
|
669
661
|
};
|
|
670
662
|
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
671
|
-
path:
|
|
672
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones",
|
|
663
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones",
|
|
673
664
|
httpMethod: "GET",
|
|
674
665
|
responses: {
|
|
675
666
|
200: {
|
|
676
|
-
bodyMapper: Mappers.PrivateZoneListResult
|
|
667
|
+
bodyMapper: Mappers.PrivateZoneListResult,
|
|
677
668
|
},
|
|
678
669
|
default: {
|
|
679
|
-
bodyMapper: Mappers.CloudError
|
|
680
|
-
}
|
|
670
|
+
bodyMapper: Mappers.CloudError,
|
|
671
|
+
},
|
|
681
672
|
},
|
|
682
673
|
queryParameters: [Parameters.apiVersion, Parameters.top],
|
|
683
674
|
urlParameters: [
|
|
684
675
|
Parameters.$host,
|
|
685
676
|
Parameters.resourceGroupName,
|
|
686
|
-
Parameters.subscriptionId
|
|
677
|
+
Parameters.subscriptionId,
|
|
687
678
|
],
|
|
688
679
|
headerParameters: [Parameters.accept],
|
|
689
|
-
serializer
|
|
680
|
+
serializer,
|
|
690
681
|
};
|
|
691
682
|
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
692
683
|
path: "{nextLink}",
|
|
693
684
|
httpMethod: "GET",
|
|
694
685
|
responses: {
|
|
695
686
|
200: {
|
|
696
|
-
bodyMapper: Mappers.PrivateZoneListResult
|
|
687
|
+
bodyMapper: Mappers.PrivateZoneListResult,
|
|
697
688
|
},
|
|
698
689
|
default: {
|
|
699
|
-
bodyMapper: Mappers.CloudError
|
|
700
|
-
}
|
|
690
|
+
bodyMapper: Mappers.CloudError,
|
|
691
|
+
},
|
|
701
692
|
},
|
|
702
693
|
urlParameters: [
|
|
703
694
|
Parameters.$host,
|
|
704
695
|
Parameters.subscriptionId,
|
|
705
|
-
Parameters.nextLink
|
|
696
|
+
Parameters.nextLink,
|
|
706
697
|
],
|
|
707
698
|
headerParameters: [Parameters.accept],
|
|
708
|
-
serializer
|
|
699
|
+
serializer,
|
|
709
700
|
};
|
|
710
701
|
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
711
702
|
path: "{nextLink}",
|
|
712
703
|
httpMethod: "GET",
|
|
713
704
|
responses: {
|
|
714
705
|
200: {
|
|
715
|
-
bodyMapper: Mappers.PrivateZoneListResult
|
|
706
|
+
bodyMapper: Mappers.PrivateZoneListResult,
|
|
716
707
|
},
|
|
717
708
|
default: {
|
|
718
|
-
bodyMapper: Mappers.CloudError
|
|
719
|
-
}
|
|
709
|
+
bodyMapper: Mappers.CloudError,
|
|
710
|
+
},
|
|
720
711
|
},
|
|
721
712
|
urlParameters: [
|
|
722
713
|
Parameters.$host,
|
|
723
714
|
Parameters.resourceGroupName,
|
|
724
715
|
Parameters.subscriptionId,
|
|
725
|
-
Parameters.nextLink
|
|
716
|
+
Parameters.nextLink,
|
|
726
717
|
],
|
|
727
718
|
headerParameters: [Parameters.accept],
|
|
728
|
-
serializer
|
|
719
|
+
serializer,
|
|
729
720
|
};
|