@azure/arm-dns 5.1.1-alpha.20241024.1 → 5.2.0-beta.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 +44 -10
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/index.js +1371 -579
- 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/dnsResourceReferenceGetByTargetResourcesSample.js +15 -8
- package/dist-esm/samples-dev/dnsResourceReferenceGetByTargetResourcesSample.js.map +1 -1
- package/dist-esm/samples-dev/dnssecConfigsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/dnssecConfigsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dnssecConfigsCreateOrUpdateSample.js +38 -0
- package/dist-esm/samples-dev/dnssecConfigsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/dnssecConfigsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/dnssecConfigsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dnssecConfigsDeleteSample.js +38 -0
- package/dist-esm/samples-dev/dnssecConfigsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/dnssecConfigsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/dnssecConfigsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dnssecConfigsGetSample.js +38 -0
- package/dist-esm/samples-dev/dnssecConfigsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/dnssecConfigsListByDnsZoneSample.d.ts +2 -0
- package/dist-esm/samples-dev/dnssecConfigsListByDnsZoneSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dnssecConfigsListByDnsZoneSample.js +54 -0
- package/dist-esm/samples-dev/dnssecConfigsListByDnsZoneSample.js.map +1 -0
- package/dist-esm/samples-dev/recordSetsCreateOrUpdateSample.js +213 -79
- package/dist-esm/samples-dev/recordSetsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/recordSetsDeleteSample.js +124 -57
- package/dist-esm/samples-dev/recordSetsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/recordSetsGetSample.js +107 -40
- package/dist-esm/samples-dev/recordSetsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/recordSetsListAllByDnsZoneSample.js +12 -5
- package/dist-esm/samples-dev/recordSetsListAllByDnsZoneSample.js.map +1 -1
- package/dist-esm/samples-dev/recordSetsListByDnsZoneSample.js +11 -4
- package/dist-esm/samples-dev/recordSetsListByDnsZoneSample.js.map +1 -1
- package/dist-esm/samples-dev/recordSetsListByTypeSample.js +166 -54
- package/dist-esm/samples-dev/recordSetsListByTypeSample.js.map +1 -1
- package/dist-esm/samples-dev/recordSetsUpdateSample.js +110 -40
- package/dist-esm/samples-dev/recordSetsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/zonesCreateOrUpdateSample.js +11 -4
- package/dist-esm/samples-dev/zonesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/zonesDeleteSample.js +11 -4
- package/dist-esm/samples-dev/zonesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/zonesGetSample.js +11 -4
- package/dist-esm/samples-dev/zonesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/zonesListByResourceGroupSample.js +11 -4
- package/dist-esm/samples-dev/zonesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/zonesListSample.js +10 -3
- package/dist-esm/samples-dev/zonesListSample.js.map +1 -1
- package/dist-esm/samples-dev/zonesUpdateSample.js +11 -4
- package/dist-esm/samples-dev/zonesUpdateSample.js.map +1 -1
- package/dist-esm/src/dnsManagementClient.d.ts +3 -3
- package/dist-esm/src/dnsManagementClient.d.ts.map +1 -1
- package/dist-esm/src/dnsManagementClient.js +13 -12
- package/dist-esm/src/dnsManagementClient.js.map +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +256 -32
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +12 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +13 -2
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +692 -262
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +6 -6
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +106 -96
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/dnsResourceReferenceOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/dnsResourceReferenceOperations.js +5 -5
- package/dist-esm/src/operations/dnsResourceReferenceOperations.js.map +1 -1
- package/dist-esm/src/operations/dnssecConfigs.d.ts +74 -0
- package/dist-esm/src/operations/dnssecConfigs.d.ts.map +1 -0
- package/dist-esm/src/operations/dnssecConfigs.js +348 -0
- package/dist-esm/src/operations/dnssecConfigs.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/recordSets.d.ts +22 -22
- package/dist-esm/src/operations/recordSets.js +87 -102
- package/dist-esm/src/operations/recordSets.js.map +1 -1
- package/dist-esm/src/operations/zones.d.ts +10 -10
- package/dist-esm/src/operations/zones.d.ts.map +1 -1
- package/dist-esm/src/operations/zones.js +66 -64
- package/dist-esm/src/operations/zones.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/dnssecConfigs.d.ts +49 -0
- package/dist-esm/src/operationsInterfaces/dnssecConfigs.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/dnssecConfigs.js +9 -0
- package/dist-esm/src/operationsInterfaces/dnssecConfigs.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/recordSets.d.ts +14 -14
- package/dist-esm/src/operationsInterfaces/zones.d.ts +8 -8
- package/dist-esm/src/operationsInterfaces/zones.d.ts.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +4 -4
- package/dist-esm/src/pagingHelper.js +4 -4
- package/dist-esm/test/dns_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/dns_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/dns_operations_test.spec.js +114 -0
- package/dist-esm/test/dns_operations_test.spec.js.map +1 -0
- package/package.json +31 -31
- package/review/arm-dns.api.md +157 -12
- package/src/dnsManagementClient.ts +25 -22
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +290 -44
- package/src/models/mappers.ts +706 -263
- package/src/models/parameters.ts +113 -103
- package/src/operations/dnsResourceReferenceOperations.ts +11 -11
- package/src/operations/dnssecConfigs.ts +468 -0
- package/src/operations/index.ts +1 -0
- package/src/operations/recordSets.ts +138 -160
- package/src/operations/zones.ts +107 -111
- package/src/operationsInterfaces/dnsResourceReferenceOperations.ts +2 -2
- package/src/operationsInterfaces/dnssecConfigs.ts +95 -0
- package/src/operationsInterfaces/index.ts +1 -0
- package/src/operationsInterfaces/recordSets.ts +22 -22
- package/src/operationsInterfaces/zones.ts +15 -15
- package/src/pagingHelper.ts +5 -5
- package/types/arm-dns.d.ts +338 -46
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -42
- package/dist-esm/test/sampleTest.js.map +0 -1
|
@@ -0,0 +1,468 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
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
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
+
import { DnssecConfigs } from "../operationsInterfaces";
|
|
12
|
+
import * as coreClient from "@azure/core-client";
|
|
13
|
+
import * as Mappers from "../models/mappers";
|
|
14
|
+
import * as Parameters from "../models/parameters";
|
|
15
|
+
import { DnsManagementClient } from "../dnsManagementClient";
|
|
16
|
+
import {
|
|
17
|
+
SimplePollerLike,
|
|
18
|
+
OperationState,
|
|
19
|
+
createHttpPoller,
|
|
20
|
+
} from "@azure/core-lro";
|
|
21
|
+
import { createLroSpec } from "../lroImpl";
|
|
22
|
+
import {
|
|
23
|
+
DnssecConfig,
|
|
24
|
+
DnssecConfigsListByDnsZoneNextOptionalParams,
|
|
25
|
+
DnssecConfigsListByDnsZoneOptionalParams,
|
|
26
|
+
DnssecConfigsListByDnsZoneResponse,
|
|
27
|
+
DnssecConfigsCreateOrUpdateOptionalParams,
|
|
28
|
+
DnssecConfigsCreateOrUpdateResponse,
|
|
29
|
+
DnssecConfigsDeleteOptionalParams,
|
|
30
|
+
DnssecConfigsGetOptionalParams,
|
|
31
|
+
DnssecConfigsGetResponse,
|
|
32
|
+
DnssecConfigsListByDnsZoneNextResponse,
|
|
33
|
+
} from "../models";
|
|
34
|
+
|
|
35
|
+
/// <reference lib="esnext.asynciterable" />
|
|
36
|
+
/** Class containing DnssecConfigs operations. */
|
|
37
|
+
export class DnssecConfigsImpl implements DnssecConfigs {
|
|
38
|
+
private readonly client: DnsManagementClient;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Initialize a new instance of the class DnssecConfigs class.
|
|
42
|
+
* @param client Reference to the service client
|
|
43
|
+
*/
|
|
44
|
+
constructor(client: DnsManagementClient) {
|
|
45
|
+
this.client = client;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Lists the DNSSEC configurations in a DNS zone.
|
|
50
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
51
|
+
* @param zoneName The name of the DNS zone (without a terminating dot).
|
|
52
|
+
* @param options The options parameters.
|
|
53
|
+
*/
|
|
54
|
+
public listByDnsZone(
|
|
55
|
+
resourceGroupName: string,
|
|
56
|
+
zoneName: string,
|
|
57
|
+
options?: DnssecConfigsListByDnsZoneOptionalParams,
|
|
58
|
+
): PagedAsyncIterableIterator<DnssecConfig> {
|
|
59
|
+
const iter = this.listByDnsZonePagingAll(
|
|
60
|
+
resourceGroupName,
|
|
61
|
+
zoneName,
|
|
62
|
+
options,
|
|
63
|
+
);
|
|
64
|
+
return {
|
|
65
|
+
next() {
|
|
66
|
+
return iter.next();
|
|
67
|
+
},
|
|
68
|
+
[Symbol.asyncIterator]() {
|
|
69
|
+
return this;
|
|
70
|
+
},
|
|
71
|
+
byPage: (settings?: PageSettings) => {
|
|
72
|
+
if (settings?.maxPageSize) {
|
|
73
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
74
|
+
}
|
|
75
|
+
return this.listByDnsZonePagingPage(
|
|
76
|
+
resourceGroupName,
|
|
77
|
+
zoneName,
|
|
78
|
+
options,
|
|
79
|
+
settings,
|
|
80
|
+
);
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
private async *listByDnsZonePagingPage(
|
|
86
|
+
resourceGroupName: string,
|
|
87
|
+
zoneName: string,
|
|
88
|
+
options?: DnssecConfigsListByDnsZoneOptionalParams,
|
|
89
|
+
settings?: PageSettings,
|
|
90
|
+
): AsyncIterableIterator<DnssecConfig[]> {
|
|
91
|
+
let result: DnssecConfigsListByDnsZoneResponse;
|
|
92
|
+
let continuationToken = settings?.continuationToken;
|
|
93
|
+
if (!continuationToken) {
|
|
94
|
+
result = await this._listByDnsZone(resourceGroupName, zoneName, options);
|
|
95
|
+
let page = result.value || [];
|
|
96
|
+
continuationToken = result.nextLink;
|
|
97
|
+
setContinuationToken(page, continuationToken);
|
|
98
|
+
yield page;
|
|
99
|
+
}
|
|
100
|
+
while (continuationToken) {
|
|
101
|
+
result = await this._listByDnsZoneNext(
|
|
102
|
+
resourceGroupName,
|
|
103
|
+
zoneName,
|
|
104
|
+
continuationToken,
|
|
105
|
+
options,
|
|
106
|
+
);
|
|
107
|
+
continuationToken = result.nextLink;
|
|
108
|
+
let page = result.value || [];
|
|
109
|
+
setContinuationToken(page, continuationToken);
|
|
110
|
+
yield page;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
private async *listByDnsZonePagingAll(
|
|
115
|
+
resourceGroupName: string,
|
|
116
|
+
zoneName: string,
|
|
117
|
+
options?: DnssecConfigsListByDnsZoneOptionalParams,
|
|
118
|
+
): AsyncIterableIterator<DnssecConfig> {
|
|
119
|
+
for await (const page of this.listByDnsZonePagingPage(
|
|
120
|
+
resourceGroupName,
|
|
121
|
+
zoneName,
|
|
122
|
+
options,
|
|
123
|
+
)) {
|
|
124
|
+
yield* page;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Creates or updates the DNSSEC configuration on a DNS zone.
|
|
130
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
131
|
+
* @param zoneName The name of the DNS zone (without a terminating dot).
|
|
132
|
+
* @param options The options parameters.
|
|
133
|
+
*/
|
|
134
|
+
async beginCreateOrUpdate(
|
|
135
|
+
resourceGroupName: string,
|
|
136
|
+
zoneName: string,
|
|
137
|
+
options?: DnssecConfigsCreateOrUpdateOptionalParams,
|
|
138
|
+
): Promise<
|
|
139
|
+
SimplePollerLike<
|
|
140
|
+
OperationState<DnssecConfigsCreateOrUpdateResponse>,
|
|
141
|
+
DnssecConfigsCreateOrUpdateResponse
|
|
142
|
+
>
|
|
143
|
+
> {
|
|
144
|
+
const directSendOperation = async (
|
|
145
|
+
args: coreClient.OperationArguments,
|
|
146
|
+
spec: coreClient.OperationSpec,
|
|
147
|
+
): Promise<DnssecConfigsCreateOrUpdateResponse> => {
|
|
148
|
+
return this.client.sendOperationRequest(args, spec);
|
|
149
|
+
};
|
|
150
|
+
const sendOperationFn = async (
|
|
151
|
+
args: coreClient.OperationArguments,
|
|
152
|
+
spec: coreClient.OperationSpec,
|
|
153
|
+
) => {
|
|
154
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
155
|
+
undefined;
|
|
156
|
+
const providedCallback = args.options?.onResponse;
|
|
157
|
+
const callback: coreClient.RawResponseCallback = (
|
|
158
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
159
|
+
flatResponse: unknown,
|
|
160
|
+
) => {
|
|
161
|
+
currentRawResponse = rawResponse;
|
|
162
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
163
|
+
};
|
|
164
|
+
const updatedArgs = {
|
|
165
|
+
...args,
|
|
166
|
+
options: {
|
|
167
|
+
...args.options,
|
|
168
|
+
onResponse: callback,
|
|
169
|
+
},
|
|
170
|
+
};
|
|
171
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
172
|
+
return {
|
|
173
|
+
flatResponse,
|
|
174
|
+
rawResponse: {
|
|
175
|
+
statusCode: currentRawResponse!.status,
|
|
176
|
+
body: currentRawResponse!.parsedBody,
|
|
177
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
178
|
+
},
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
const lro = createLroSpec({
|
|
183
|
+
sendOperationFn,
|
|
184
|
+
args: { resourceGroupName, zoneName, options },
|
|
185
|
+
spec: createOrUpdateOperationSpec,
|
|
186
|
+
});
|
|
187
|
+
const poller = await createHttpPoller<
|
|
188
|
+
DnssecConfigsCreateOrUpdateResponse,
|
|
189
|
+
OperationState<DnssecConfigsCreateOrUpdateResponse>
|
|
190
|
+
>(lro, {
|
|
191
|
+
restoreFrom: options?.resumeFrom,
|
|
192
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
193
|
+
});
|
|
194
|
+
await poller.poll();
|
|
195
|
+
return poller;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Creates or updates the DNSSEC configuration on a DNS zone.
|
|
200
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
201
|
+
* @param zoneName The name of the DNS zone (without a terminating dot).
|
|
202
|
+
* @param options The options parameters.
|
|
203
|
+
*/
|
|
204
|
+
async beginCreateOrUpdateAndWait(
|
|
205
|
+
resourceGroupName: string,
|
|
206
|
+
zoneName: string,
|
|
207
|
+
options?: DnssecConfigsCreateOrUpdateOptionalParams,
|
|
208
|
+
): Promise<DnssecConfigsCreateOrUpdateResponse> {
|
|
209
|
+
const poller = await this.beginCreateOrUpdate(
|
|
210
|
+
resourceGroupName,
|
|
211
|
+
zoneName,
|
|
212
|
+
options,
|
|
213
|
+
);
|
|
214
|
+
return poller.pollUntilDone();
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Deletes the DNSSEC configuration on a DNS zone. This operation cannot be undone.
|
|
219
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
220
|
+
* @param zoneName The name of the DNS zone (without a terminating dot).
|
|
221
|
+
* @param options The options parameters.
|
|
222
|
+
*/
|
|
223
|
+
async beginDelete(
|
|
224
|
+
resourceGroupName: string,
|
|
225
|
+
zoneName: string,
|
|
226
|
+
options?: DnssecConfigsDeleteOptionalParams,
|
|
227
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
228
|
+
const directSendOperation = async (
|
|
229
|
+
args: coreClient.OperationArguments,
|
|
230
|
+
spec: coreClient.OperationSpec,
|
|
231
|
+
): Promise<void> => {
|
|
232
|
+
return this.client.sendOperationRequest(args, spec);
|
|
233
|
+
};
|
|
234
|
+
const sendOperationFn = async (
|
|
235
|
+
args: coreClient.OperationArguments,
|
|
236
|
+
spec: coreClient.OperationSpec,
|
|
237
|
+
) => {
|
|
238
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
239
|
+
undefined;
|
|
240
|
+
const providedCallback = args.options?.onResponse;
|
|
241
|
+
const callback: coreClient.RawResponseCallback = (
|
|
242
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
243
|
+
flatResponse: unknown,
|
|
244
|
+
) => {
|
|
245
|
+
currentRawResponse = rawResponse;
|
|
246
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
247
|
+
};
|
|
248
|
+
const updatedArgs = {
|
|
249
|
+
...args,
|
|
250
|
+
options: {
|
|
251
|
+
...args.options,
|
|
252
|
+
onResponse: callback,
|
|
253
|
+
},
|
|
254
|
+
};
|
|
255
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
256
|
+
return {
|
|
257
|
+
flatResponse,
|
|
258
|
+
rawResponse: {
|
|
259
|
+
statusCode: currentRawResponse!.status,
|
|
260
|
+
body: currentRawResponse!.parsedBody,
|
|
261
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
262
|
+
},
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
const lro = createLroSpec({
|
|
267
|
+
sendOperationFn,
|
|
268
|
+
args: { resourceGroupName, zoneName, options },
|
|
269
|
+
spec: deleteOperationSpec,
|
|
270
|
+
});
|
|
271
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
272
|
+
restoreFrom: options?.resumeFrom,
|
|
273
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
274
|
+
});
|
|
275
|
+
await poller.poll();
|
|
276
|
+
return poller;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Deletes the DNSSEC configuration on a DNS zone. This operation cannot be undone.
|
|
281
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
282
|
+
* @param zoneName The name of the DNS zone (without a terminating dot).
|
|
283
|
+
* @param options The options parameters.
|
|
284
|
+
*/
|
|
285
|
+
async beginDeleteAndWait(
|
|
286
|
+
resourceGroupName: string,
|
|
287
|
+
zoneName: string,
|
|
288
|
+
options?: DnssecConfigsDeleteOptionalParams,
|
|
289
|
+
): Promise<void> {
|
|
290
|
+
const poller = await this.beginDelete(resourceGroupName, zoneName, options);
|
|
291
|
+
return poller.pollUntilDone();
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Gets the DNSSEC configuration.
|
|
296
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
297
|
+
* @param zoneName The name of the DNS zone (without a terminating dot).
|
|
298
|
+
* @param options The options parameters.
|
|
299
|
+
*/
|
|
300
|
+
get(
|
|
301
|
+
resourceGroupName: string,
|
|
302
|
+
zoneName: string,
|
|
303
|
+
options?: DnssecConfigsGetOptionalParams,
|
|
304
|
+
): Promise<DnssecConfigsGetResponse> {
|
|
305
|
+
return this.client.sendOperationRequest(
|
|
306
|
+
{ resourceGroupName, zoneName, options },
|
|
307
|
+
getOperationSpec,
|
|
308
|
+
);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Lists the DNSSEC configurations in a DNS zone.
|
|
313
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
314
|
+
* @param zoneName The name of the DNS zone (without a terminating dot).
|
|
315
|
+
* @param options The options parameters.
|
|
316
|
+
*/
|
|
317
|
+
private _listByDnsZone(
|
|
318
|
+
resourceGroupName: string,
|
|
319
|
+
zoneName: string,
|
|
320
|
+
options?: DnssecConfigsListByDnsZoneOptionalParams,
|
|
321
|
+
): Promise<DnssecConfigsListByDnsZoneResponse> {
|
|
322
|
+
return this.client.sendOperationRequest(
|
|
323
|
+
{ resourceGroupName, zoneName, options },
|
|
324
|
+
listByDnsZoneOperationSpec,
|
|
325
|
+
);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* ListByDnsZoneNext
|
|
330
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
331
|
+
* @param zoneName The name of the DNS zone (without a terminating dot).
|
|
332
|
+
* @param nextLink The nextLink from the previous successful call to the ListByDnsZone method.
|
|
333
|
+
* @param options The options parameters.
|
|
334
|
+
*/
|
|
335
|
+
private _listByDnsZoneNext(
|
|
336
|
+
resourceGroupName: string,
|
|
337
|
+
zoneName: string,
|
|
338
|
+
nextLink: string,
|
|
339
|
+
options?: DnssecConfigsListByDnsZoneNextOptionalParams,
|
|
340
|
+
): Promise<DnssecConfigsListByDnsZoneNextResponse> {
|
|
341
|
+
return this.client.sendOperationRequest(
|
|
342
|
+
{ resourceGroupName, zoneName, nextLink, options },
|
|
343
|
+
listByDnsZoneNextOperationSpec,
|
|
344
|
+
);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
// Operation Specifications
|
|
348
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
349
|
+
|
|
350
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
351
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs/default",
|
|
352
|
+
httpMethod: "PUT",
|
|
353
|
+
responses: {
|
|
354
|
+
200: {
|
|
355
|
+
bodyMapper: Mappers.DnssecConfig,
|
|
356
|
+
},
|
|
357
|
+
201: {
|
|
358
|
+
bodyMapper: Mappers.DnssecConfig,
|
|
359
|
+
},
|
|
360
|
+
202: {
|
|
361
|
+
bodyMapper: Mappers.DnssecConfig,
|
|
362
|
+
},
|
|
363
|
+
204: {
|
|
364
|
+
bodyMapper: Mappers.DnssecConfig,
|
|
365
|
+
},
|
|
366
|
+
default: {
|
|
367
|
+
bodyMapper: Mappers.CloudError,
|
|
368
|
+
},
|
|
369
|
+
},
|
|
370
|
+
queryParameters: [Parameters.apiVersion],
|
|
371
|
+
urlParameters: [
|
|
372
|
+
Parameters.$host,
|
|
373
|
+
Parameters.resourceGroupName,
|
|
374
|
+
Parameters.zoneName,
|
|
375
|
+
Parameters.subscriptionId,
|
|
376
|
+
],
|
|
377
|
+
headerParameters: [
|
|
378
|
+
Parameters.accept,
|
|
379
|
+
Parameters.ifMatch,
|
|
380
|
+
Parameters.ifNoneMatch,
|
|
381
|
+
],
|
|
382
|
+
serializer,
|
|
383
|
+
};
|
|
384
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
385
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs/default",
|
|
386
|
+
httpMethod: "DELETE",
|
|
387
|
+
responses: {
|
|
388
|
+
200: {},
|
|
389
|
+
201: {},
|
|
390
|
+
202: {},
|
|
391
|
+
204: {},
|
|
392
|
+
default: {
|
|
393
|
+
bodyMapper: Mappers.CloudError,
|
|
394
|
+
},
|
|
395
|
+
},
|
|
396
|
+
queryParameters: [Parameters.apiVersion],
|
|
397
|
+
urlParameters: [
|
|
398
|
+
Parameters.$host,
|
|
399
|
+
Parameters.resourceGroupName,
|
|
400
|
+
Parameters.zoneName,
|
|
401
|
+
Parameters.subscriptionId,
|
|
402
|
+
],
|
|
403
|
+
headerParameters: [Parameters.accept, Parameters.ifMatch],
|
|
404
|
+
serializer,
|
|
405
|
+
};
|
|
406
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
407
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs/default",
|
|
408
|
+
httpMethod: "GET",
|
|
409
|
+
responses: {
|
|
410
|
+
200: {
|
|
411
|
+
bodyMapper: Mappers.DnssecConfig,
|
|
412
|
+
},
|
|
413
|
+
default: {
|
|
414
|
+
bodyMapper: Mappers.CloudError,
|
|
415
|
+
},
|
|
416
|
+
},
|
|
417
|
+
queryParameters: [Parameters.apiVersion],
|
|
418
|
+
urlParameters: [
|
|
419
|
+
Parameters.$host,
|
|
420
|
+
Parameters.resourceGroupName,
|
|
421
|
+
Parameters.zoneName,
|
|
422
|
+
Parameters.subscriptionId,
|
|
423
|
+
],
|
|
424
|
+
headerParameters: [Parameters.accept],
|
|
425
|
+
serializer,
|
|
426
|
+
};
|
|
427
|
+
const listByDnsZoneOperationSpec: coreClient.OperationSpec = {
|
|
428
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs",
|
|
429
|
+
httpMethod: "GET",
|
|
430
|
+
responses: {
|
|
431
|
+
200: {
|
|
432
|
+
bodyMapper: Mappers.DnssecConfigListResult,
|
|
433
|
+
},
|
|
434
|
+
default: {
|
|
435
|
+
bodyMapper: Mappers.CloudError,
|
|
436
|
+
},
|
|
437
|
+
},
|
|
438
|
+
queryParameters: [Parameters.apiVersion],
|
|
439
|
+
urlParameters: [
|
|
440
|
+
Parameters.$host,
|
|
441
|
+
Parameters.resourceGroupName,
|
|
442
|
+
Parameters.zoneName,
|
|
443
|
+
Parameters.subscriptionId,
|
|
444
|
+
],
|
|
445
|
+
headerParameters: [Parameters.accept],
|
|
446
|
+
serializer,
|
|
447
|
+
};
|
|
448
|
+
const listByDnsZoneNextOperationSpec: coreClient.OperationSpec = {
|
|
449
|
+
path: "{nextLink}",
|
|
450
|
+
httpMethod: "GET",
|
|
451
|
+
responses: {
|
|
452
|
+
200: {
|
|
453
|
+
bodyMapper: Mappers.DnssecConfigListResult,
|
|
454
|
+
},
|
|
455
|
+
default: {
|
|
456
|
+
bodyMapper: Mappers.CloudError,
|
|
457
|
+
},
|
|
458
|
+
},
|
|
459
|
+
urlParameters: [
|
|
460
|
+
Parameters.$host,
|
|
461
|
+
Parameters.resourceGroupName,
|
|
462
|
+
Parameters.zoneName,
|
|
463
|
+
Parameters.subscriptionId,
|
|
464
|
+
Parameters.nextLink,
|
|
465
|
+
],
|
|
466
|
+
headerParameters: [Parameters.accept],
|
|
467
|
+
serializer,
|
|
468
|
+
};
|
package/src/operations/index.ts
CHANGED