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