@azure/arm-dns 5.2.0-alpha.20250718.1 → 5.2.0-alpha.20250730.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/dist/browser/dnsManagementClient.js +17 -5
- package/dist/browser/dnsManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +23 -11
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/dnsResourceReferenceOperations.js +1 -0
- package/dist/browser/operations/dnsResourceReferenceOperations.js.map +1 -1
- package/dist/browser/operations/dnssecConfigs.js +45 -52
- package/dist/browser/operations/dnssecConfigs.js.map +1 -1
- package/dist/browser/operations/recordSets.js +67 -118
- package/dist/browser/operations/recordSets.js.map +1 -1
- package/dist/browser/operations/zones.js +56 -85
- package/dist/browser/operations/zones.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/dnsManagementClient.js +17 -5
- package/dist/commonjs/dnsManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +23 -11
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/dnsResourceReferenceOperations.js +1 -0
- package/dist/commonjs/operations/dnsResourceReferenceOperations.js.map +1 -1
- package/dist/commonjs/operations/dnssecConfigs.js +45 -51
- package/dist/commonjs/operations/dnssecConfigs.js.map +1 -1
- package/dist/commonjs/operations/recordSets.js +67 -117
- package/dist/commonjs/operations/recordSets.js.map +1 -1
- package/dist/commonjs/operations/zones.js +56 -84
- package/dist/commonjs/operations/zones.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/dnsManagementClient.js +17 -5
- package/dist/esm/dnsManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +23 -11
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/dnsResourceReferenceOperations.js +1 -0
- package/dist/esm/operations/dnsResourceReferenceOperations.js.map +1 -1
- package/dist/esm/operations/dnssecConfigs.js +45 -52
- package/dist/esm/operations/dnssecConfigs.js.map +1 -1
- package/dist/esm/operations/recordSets.js +67 -118
- package/dist/esm/operations/recordSets.js.map +1 -1
- package/dist/esm/operations/zones.js +56 -85
- package/dist/esm/operations/zones.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/dnsManagementClient.js +17 -5
- package/dist/react-native/dnsManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +23 -11
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/dnsResourceReferenceOperations.js +1 -0
- package/dist/react-native/operations/dnsResourceReferenceOperations.js.map +1 -1
- package/dist/react-native/operations/dnssecConfigs.js +45 -52
- package/dist/react-native/operations/dnssecConfigs.js.map +1 -1
- package/dist/react-native/operations/recordSets.js +67 -118
- package/dist/react-native/operations/recordSets.js.map +1 -1
- package/dist/react-native/operations/zones.js +56 -85
- package/dist/react-native/operations/zones.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-dns-node.api.md +541 -541
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing DnssecConfigs operations. */
|
|
17
16
|
export class DnssecConfigsImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class DnssecConfigs class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -38,52 +38,35 @@ export class DnssecConfigsImpl {
|
|
|
38
38
|
return this;
|
|
39
39
|
},
|
|
40
40
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
42
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
43
|
}
|
|
44
44
|
return this.listByDnsZonePagingPage(resourceGroupName, zoneName, options, settings);
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
listByDnsZonePagingPage(resourceGroupName, zoneName, options, settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
});
|
|
48
|
+
async *listByDnsZonePagingPage(resourceGroupName, zoneName, options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._listByDnsZone(resourceGroupName, zoneName, options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
setContinuationToken(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._listByDnsZoneNext(resourceGroupName, zoneName, continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
setContinuationToken(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
67
65
|
}
|
|
68
|
-
listByDnsZonePagingAll(resourceGroupName, zoneName, options) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
for (var _d = true, _e = __asyncValues(this.listByDnsZonePagingPage(resourceGroupName, zoneName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
73
|
-
_c = _f.value;
|
|
74
|
-
_d = false;
|
|
75
|
-
const page = _c;
|
|
76
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
80
|
-
finally {
|
|
81
|
-
try {
|
|
82
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
83
|
-
}
|
|
84
|
-
finally { if (e_1) throw e_1.error; }
|
|
85
|
-
}
|
|
86
|
-
});
|
|
66
|
+
async *listByDnsZonePagingAll(resourceGroupName, zoneName, options) {
|
|
67
|
+
for await (const page of this.listByDnsZonePagingPage(resourceGroupName, zoneName, options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
87
70
|
}
|
|
88
71
|
/**
|
|
89
72
|
* Creates or updates the DNSSEC configuration on a DNS zone.
|
|
@@ -96,14 +79,19 @@ export class DnssecConfigsImpl {
|
|
|
96
79
|
return this.client.sendOperationRequest(args, spec);
|
|
97
80
|
};
|
|
98
81
|
const sendOperationFn = async (args, spec) => {
|
|
99
|
-
var _a;
|
|
100
82
|
let currentRawResponse = undefined;
|
|
101
|
-
const providedCallback =
|
|
83
|
+
const providedCallback = args.options?.onResponse;
|
|
102
84
|
const callback = (rawResponse, flatResponse) => {
|
|
103
85
|
currentRawResponse = rawResponse;
|
|
104
|
-
providedCallback
|
|
86
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
87
|
+
};
|
|
88
|
+
const updatedArgs = {
|
|
89
|
+
...args,
|
|
90
|
+
options: {
|
|
91
|
+
...args.options,
|
|
92
|
+
onResponse: callback,
|
|
93
|
+
},
|
|
105
94
|
};
|
|
106
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
107
95
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
108
96
|
return {
|
|
109
97
|
flatResponse,
|
|
@@ -120,8 +108,8 @@ export class DnssecConfigsImpl {
|
|
|
120
108
|
spec: createOrUpdateOperationSpec,
|
|
121
109
|
});
|
|
122
110
|
const poller = await createHttpPoller(lro, {
|
|
123
|
-
restoreFrom: options
|
|
124
|
-
intervalInMs: options
|
|
111
|
+
restoreFrom: options?.resumeFrom,
|
|
112
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
125
113
|
});
|
|
126
114
|
await poller.poll();
|
|
127
115
|
return poller;
|
|
@@ -147,14 +135,19 @@ export class DnssecConfigsImpl {
|
|
|
147
135
|
return this.client.sendOperationRequest(args, spec);
|
|
148
136
|
};
|
|
149
137
|
const sendOperationFn = async (args, spec) => {
|
|
150
|
-
var _a;
|
|
151
138
|
let currentRawResponse = undefined;
|
|
152
|
-
const providedCallback =
|
|
139
|
+
const providedCallback = args.options?.onResponse;
|
|
153
140
|
const callback = (rawResponse, flatResponse) => {
|
|
154
141
|
currentRawResponse = rawResponse;
|
|
155
|
-
providedCallback
|
|
142
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
143
|
+
};
|
|
144
|
+
const updatedArgs = {
|
|
145
|
+
...args,
|
|
146
|
+
options: {
|
|
147
|
+
...args.options,
|
|
148
|
+
onResponse: callback,
|
|
149
|
+
},
|
|
156
150
|
};
|
|
157
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
158
151
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
159
152
|
return {
|
|
160
153
|
flatResponse,
|
|
@@ -171,8 +164,8 @@ export class DnssecConfigsImpl {
|
|
|
171
164
|
spec: deleteOperationSpec,
|
|
172
165
|
});
|
|
173
166
|
const poller = await createHttpPoller(lro, {
|
|
174
|
-
restoreFrom: options
|
|
175
|
-
intervalInMs: options
|
|
167
|
+
restoreFrom: options?.resumeFrom,
|
|
168
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
176
169
|
});
|
|
177
170
|
await poller.poll();
|
|
178
171
|
return poller;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dnssecConfigs.js","sourceRoot":"","sources":["../../../src/operations/dnssecConfigs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAc9C,4CAA4C;AAC5C,iDAAiD;AACjD,MAAM,OAAO,iBAAiB;IAG5B;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,aAAa,CAClB,iBAAyB,EACzB,QAAgB,EAChB,OAAkD;QAElD,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CACtC,iBAAiB,EACjB,QAAQ,EACR,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CA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;IACrC,UAAU;CACX,CAAC;AACF,MAAM,0BAA0B,GAA6B;IAC3D,IAAI,EAAE,kIAAkI;IACxI,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { DnssecConfigs } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DnsManagementClient } from \"../dnsManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n DnssecConfig,\n DnssecConfigsListByDnsZoneNextOptionalParams,\n DnssecConfigsListByDnsZoneOptionalParams,\n DnssecConfigsListByDnsZoneResponse,\n DnssecConfigsCreateOrUpdateOptionalParams,\n DnssecConfigsCreateOrUpdateResponse,\n DnssecConfigsDeleteOptionalParams,\n DnssecConfigsGetOptionalParams,\n DnssecConfigsGetResponse,\n DnssecConfigsListByDnsZoneNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DnssecConfigs operations. */\nexport class DnssecConfigsImpl implements DnssecConfigs {\n private readonly client: DnsManagementClient;\n\n /**\n * Initialize a new instance of the class DnssecConfigs class.\n * @param client Reference to the service client\n */\n constructor(client: DnsManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the DNSSEC configurations in a DNS zone.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param options The options parameters.\n */\n public listByDnsZone(\n resourceGroupName: string,\n zoneName: string,\n options?: DnssecConfigsListByDnsZoneOptionalParams,\n ): PagedAsyncIterableIterator<DnssecConfig> {\n const iter = this.listByDnsZonePagingAll(\n resourceGroupName,\n zoneName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByDnsZonePagingPage(\n resourceGroupName,\n zoneName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByDnsZonePagingPage(\n resourceGroupName: string,\n zoneName: string,\n options?: DnssecConfigsListByDnsZoneOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DnssecConfig[]> {\n let result: DnssecConfigsListByDnsZoneResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByDnsZone(resourceGroupName, zoneName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByDnsZoneNext(\n resourceGroupName,\n zoneName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByDnsZonePagingAll(\n resourceGroupName: string,\n zoneName: string,\n options?: DnssecConfigsListByDnsZoneOptionalParams,\n ): AsyncIterableIterator<DnssecConfig> {\n for await (const page of this.listByDnsZonePagingPage(\n resourceGroupName,\n zoneName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates or updates the DNSSEC configuration on a DNS zone.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n zoneName: string,\n options?: DnssecConfigsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DnssecConfigsCreateOrUpdateResponse>,\n DnssecConfigsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DnssecConfigsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, zoneName, options },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n DnssecConfigsCreateOrUpdateResponse,\n OperationState<DnssecConfigsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates or updates the DNSSEC configuration on a DNS zone.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n zoneName: string,\n options?: DnssecConfigsCreateOrUpdateOptionalParams,\n ): Promise<DnssecConfigsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n zoneName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes the DNSSEC configuration on a DNS zone. This operation cannot be undone.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n zoneName: string,\n options?: DnssecConfigsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, zoneName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the DNSSEC configuration on a DNS zone. This operation cannot be undone.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n zoneName: string,\n options?: DnssecConfigsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(resourceGroupName, zoneName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Gets the DNSSEC configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n zoneName: string,\n options?: DnssecConfigsGetOptionalParams,\n ): Promise<DnssecConfigsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, zoneName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Lists the DNSSEC configurations in a DNS zone.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param options The options parameters.\n */\n private _listByDnsZone(\n resourceGroupName: string,\n zoneName: string,\n options?: DnssecConfigsListByDnsZoneOptionalParams,\n ): Promise<DnssecConfigsListByDnsZoneResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, zoneName, options },\n listByDnsZoneOperationSpec,\n );\n }\n\n /**\n * ListByDnsZoneNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param nextLink The nextLink from the previous successful call to the ListByDnsZone method.\n * @param options The options parameters.\n */\n private _listByDnsZoneNext(\n resourceGroupName: string,\n zoneName: string,\n nextLink: string,\n options?: DnssecConfigsListByDnsZoneNextOptionalParams,\n ): Promise<DnssecConfigsListByDnsZoneNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, zoneName, nextLink, options },\n listByDnsZoneNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs/default\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DnssecConfig,\n },\n 201: {\n bodyMapper: Mappers.DnssecConfig,\n },\n 202: {\n bodyMapper: Mappers.DnssecConfig,\n },\n 204: {\n bodyMapper: Mappers.DnssecConfig,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.zoneName,\n Parameters.subscriptionId,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs/default\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.zoneName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept, Parameters.ifMatch],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DnssecConfig,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.zoneName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByDnsZoneOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DnssecConfigListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.zoneName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByDnsZoneNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DnssecConfigListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.zoneName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"dnssecConfigs.js","sourceRoot":"","sources":["../../../src/operations/dnssecConfigs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAA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Q;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { DnssecConfigs } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DnsManagementClient } from \"../dnsManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n DnssecConfig,\n DnssecConfigsListByDnsZoneNextOptionalParams,\n DnssecConfigsListByDnsZoneOptionalParams,\n DnssecConfigsListByDnsZoneResponse,\n DnssecConfigsCreateOrUpdateOptionalParams,\n DnssecConfigsCreateOrUpdateResponse,\n DnssecConfigsDeleteOptionalParams,\n DnssecConfigsGetOptionalParams,\n DnssecConfigsGetResponse,\n DnssecConfigsListByDnsZoneNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DnssecConfigs operations. */\nexport class DnssecConfigsImpl implements DnssecConfigs {\n private readonly client: DnsManagementClient;\n\n /**\n * Initialize a new instance of the class DnssecConfigs class.\n * @param client Reference to the service client\n */\n constructor(client: DnsManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the DNSSEC configurations in a DNS zone.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param options The options parameters.\n */\n public listByDnsZone(\n resourceGroupName: string,\n zoneName: string,\n options?: DnssecConfigsListByDnsZoneOptionalParams,\n ): PagedAsyncIterableIterator<DnssecConfig> {\n const iter = this.listByDnsZonePagingAll(\n resourceGroupName,\n zoneName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByDnsZonePagingPage(\n resourceGroupName,\n zoneName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByDnsZonePagingPage(\n resourceGroupName: string,\n zoneName: string,\n options?: DnssecConfigsListByDnsZoneOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DnssecConfig[]> {\n let result: DnssecConfigsListByDnsZoneResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByDnsZone(resourceGroupName, zoneName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByDnsZoneNext(\n resourceGroupName,\n zoneName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByDnsZonePagingAll(\n resourceGroupName: string,\n zoneName: string,\n options?: DnssecConfigsListByDnsZoneOptionalParams,\n ): AsyncIterableIterator<DnssecConfig> {\n for await (const page of this.listByDnsZonePagingPage(\n resourceGroupName,\n zoneName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates or updates the DNSSEC configuration on a DNS zone.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n zoneName: string,\n options?: DnssecConfigsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DnssecConfigsCreateOrUpdateResponse>,\n DnssecConfigsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DnssecConfigsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, zoneName, options },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n DnssecConfigsCreateOrUpdateResponse,\n OperationState<DnssecConfigsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates or updates the DNSSEC configuration on a DNS zone.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n zoneName: string,\n options?: DnssecConfigsCreateOrUpdateOptionalParams,\n ): Promise<DnssecConfigsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n zoneName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes the DNSSEC configuration on a DNS zone. This operation cannot be undone.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n zoneName: string,\n options?: DnssecConfigsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, zoneName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the DNSSEC configuration on a DNS zone. This operation cannot be undone.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n zoneName: string,\n options?: DnssecConfigsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(resourceGroupName, zoneName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Gets the DNSSEC configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n zoneName: string,\n options?: DnssecConfigsGetOptionalParams,\n ): Promise<DnssecConfigsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, zoneName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Lists the DNSSEC configurations in a DNS zone.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param options The options parameters.\n */\n private _listByDnsZone(\n resourceGroupName: string,\n zoneName: string,\n options?: DnssecConfigsListByDnsZoneOptionalParams,\n ): Promise<DnssecConfigsListByDnsZoneResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, zoneName, options },\n listByDnsZoneOperationSpec,\n );\n }\n\n /**\n * ListByDnsZoneNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param nextLink The nextLink from the previous successful call to the ListByDnsZone method.\n * @param options The options parameters.\n */\n private _listByDnsZoneNext(\n resourceGroupName: string,\n zoneName: string,\n nextLink: string,\n options?: DnssecConfigsListByDnsZoneNextOptionalParams,\n ): Promise<DnssecConfigsListByDnsZoneNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, zoneName, nextLink, options },\n listByDnsZoneNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs/default\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DnssecConfig,\n },\n 201: {\n bodyMapper: Mappers.DnssecConfig,\n },\n 202: {\n bodyMapper: Mappers.DnssecConfig,\n },\n 204: {\n bodyMapper: Mappers.DnssecConfig,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.zoneName,\n Parameters.subscriptionId,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs/default\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.zoneName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept, Parameters.ifMatch],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DnssecConfig,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.zoneName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByDnsZoneOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DnssecConfigListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.zoneName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByDnsZoneNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DnssecConfigListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.zoneName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing RecordSets operations. */
|
|
15
14
|
export class RecordSetsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class RecordSets class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -37,52 +37,35 @@ export class RecordSetsImpl {
|
|
|
37
37
|
return this;
|
|
38
38
|
},
|
|
39
39
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
40
|
+
if (settings?.maxPageSize) {
|
|
41
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
42
|
}
|
|
43
43
|
return this.listByTypePagingPage(resourceGroupName, zoneName, recordType, options, settings);
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
listByTypePagingPage(resourceGroupName, zoneName, recordType, options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
47
|
+
async *listByTypePagingPage(resourceGroupName, zoneName, recordType, options, settings) {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings?.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = await this._listByType(resourceGroupName, zoneName, recordType, options);
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield page;
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = await this._listByTypeNext(resourceGroupName, zoneName, recordType, continuationToken, options);
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield page;
|
|
63
|
+
}
|
|
66
64
|
}
|
|
67
|
-
listByTypePagingAll(resourceGroupName, zoneName, recordType, options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = __asyncValues(this.listByTypePagingPage(resourceGroupName, zoneName, recordType, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
65
|
+
async *listByTypePagingAll(resourceGroupName, zoneName, recordType, options) {
|
|
66
|
+
for await (const page of this.listByTypePagingPage(resourceGroupName, zoneName, recordType, options)) {
|
|
67
|
+
yield* page;
|
|
68
|
+
}
|
|
86
69
|
}
|
|
87
70
|
/**
|
|
88
71
|
* Lists all record sets in a DNS zone.
|
|
@@ -100,52 +83,35 @@ export class RecordSetsImpl {
|
|
|
100
83
|
return this;
|
|
101
84
|
},
|
|
102
85
|
byPage: (settings) => {
|
|
103
|
-
if (settings
|
|
86
|
+
if (settings?.maxPageSize) {
|
|
104
87
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
105
88
|
}
|
|
106
89
|
return this.listByDnsZonePagingPage(resourceGroupName, zoneName, options, settings);
|
|
107
90
|
},
|
|
108
91
|
};
|
|
109
92
|
}
|
|
110
|
-
listByDnsZonePagingPage(resourceGroupName, zoneName, options, settings) {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
128
|
-
});
|
|
93
|
+
async *listByDnsZonePagingPage(resourceGroupName, zoneName, options, settings) {
|
|
94
|
+
let result;
|
|
95
|
+
let continuationToken = settings?.continuationToken;
|
|
96
|
+
if (!continuationToken) {
|
|
97
|
+
result = await this._listByDnsZone(resourceGroupName, zoneName, options);
|
|
98
|
+
let page = result.value || [];
|
|
99
|
+
continuationToken = result.nextLink;
|
|
100
|
+
setContinuationToken(page, continuationToken);
|
|
101
|
+
yield page;
|
|
102
|
+
}
|
|
103
|
+
while (continuationToken) {
|
|
104
|
+
result = await this._listByDnsZoneNext(resourceGroupName, zoneName, continuationToken, options);
|
|
105
|
+
continuationToken = result.nextLink;
|
|
106
|
+
let page = result.value || [];
|
|
107
|
+
setContinuationToken(page, continuationToken);
|
|
108
|
+
yield page;
|
|
109
|
+
}
|
|
129
110
|
}
|
|
130
|
-
listByDnsZonePagingAll(resourceGroupName, zoneName, options) {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
for (var _d = true, _e = __asyncValues(this.listByDnsZonePagingPage(resourceGroupName, zoneName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
135
|
-
_c = _f.value;
|
|
136
|
-
_d = false;
|
|
137
|
-
const page = _c;
|
|
138
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
142
|
-
finally {
|
|
143
|
-
try {
|
|
144
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
145
|
-
}
|
|
146
|
-
finally { if (e_2) throw e_2.error; }
|
|
147
|
-
}
|
|
148
|
-
});
|
|
111
|
+
async *listByDnsZonePagingAll(resourceGroupName, zoneName, options) {
|
|
112
|
+
for await (const page of this.listByDnsZonePagingPage(resourceGroupName, zoneName, options)) {
|
|
113
|
+
yield* page;
|
|
114
|
+
}
|
|
149
115
|
}
|
|
150
116
|
/**
|
|
151
117
|
* Lists all record sets in a DNS zone.
|
|
@@ -163,52 +129,35 @@ export class RecordSetsImpl {
|
|
|
163
129
|
return this;
|
|
164
130
|
},
|
|
165
131
|
byPage: (settings) => {
|
|
166
|
-
if (settings
|
|
132
|
+
if (settings?.maxPageSize) {
|
|
167
133
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
168
134
|
}
|
|
169
135
|
return this.listAllByDnsZonePagingPage(resourceGroupName, zoneName, options, settings);
|
|
170
136
|
},
|
|
171
137
|
};
|
|
172
138
|
}
|
|
173
|
-
listAllByDnsZonePagingPage(resourceGroupName, zoneName, options, settings) {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
}
|
|
191
|
-
});
|
|
139
|
+
async *listAllByDnsZonePagingPage(resourceGroupName, zoneName, options, settings) {
|
|
140
|
+
let result;
|
|
141
|
+
let continuationToken = settings?.continuationToken;
|
|
142
|
+
if (!continuationToken) {
|
|
143
|
+
result = await this._listAllByDnsZone(resourceGroupName, zoneName, options);
|
|
144
|
+
let page = result.value || [];
|
|
145
|
+
continuationToken = result.nextLink;
|
|
146
|
+
setContinuationToken(page, continuationToken);
|
|
147
|
+
yield page;
|
|
148
|
+
}
|
|
149
|
+
while (continuationToken) {
|
|
150
|
+
result = await this._listAllByDnsZoneNext(resourceGroupName, zoneName, continuationToken, options);
|
|
151
|
+
continuationToken = result.nextLink;
|
|
152
|
+
let page = result.value || [];
|
|
153
|
+
setContinuationToken(page, continuationToken);
|
|
154
|
+
yield page;
|
|
155
|
+
}
|
|
192
156
|
}
|
|
193
|
-
listAllByDnsZonePagingAll(resourceGroupName, zoneName, options) {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
for (var _d = true, _e = __asyncValues(this.listAllByDnsZonePagingPage(resourceGroupName, zoneName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
198
|
-
_c = _f.value;
|
|
199
|
-
_d = false;
|
|
200
|
-
const page = _c;
|
|
201
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
205
|
-
finally {
|
|
206
|
-
try {
|
|
207
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
208
|
-
}
|
|
209
|
-
finally { if (e_3) throw e_3.error; }
|
|
210
|
-
}
|
|
211
|
-
});
|
|
157
|
+
async *listAllByDnsZonePagingAll(resourceGroupName, zoneName, options) {
|
|
158
|
+
for await (const page of this.listAllByDnsZonePagingPage(resourceGroupName, zoneName, options)) {
|
|
159
|
+
yield* page;
|
|
160
|
+
}
|
|
212
161
|
}
|
|
213
162
|
/**
|
|
214
163
|
* Updates a record set within a DNS zone.
|