@azure/arm-privatedns 2.0.0 → 3.0.0-alpha.20220131.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 +72 -77
- 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 -22
- 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 -34
- 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 -1938
- 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 -21
- package/esm/privateDnsManagementClient.d.ts.map +0 -1
- package/esm/privateDnsManagementClient.js +0 -36
- package/esm/privateDnsManagementClient.js.map +0 -1
- package/esm/privateDnsManagementClientContext.d.ts +0 -17
- package/esm/privateDnsManagementClientContext.d.ts.map +0 -1
- package/esm/privateDnsManagementClientContext.js +0 -57
- 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 -63
|
@@ -1,68 +1,211 @@
|
|
|
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
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { RecordSets } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { PrivateDnsManagementClient } from "../privateDnsManagementClient";
|
|
15
|
+
import {
|
|
16
|
+
RecordSet,
|
|
17
|
+
RecordType,
|
|
18
|
+
RecordSetsListByTypeNextOptionalParams,
|
|
19
|
+
RecordSetsListByTypeOptionalParams,
|
|
20
|
+
RecordSetsListNextOptionalParams,
|
|
21
|
+
RecordSetsListOptionalParams,
|
|
22
|
+
RecordSetsCreateOrUpdateOptionalParams,
|
|
23
|
+
RecordSetsCreateOrUpdateResponse,
|
|
24
|
+
RecordSetsUpdateOptionalParams,
|
|
25
|
+
RecordSetsUpdateResponse,
|
|
26
|
+
RecordSetsDeleteOptionalParams,
|
|
27
|
+
RecordSetsGetOptionalParams,
|
|
28
|
+
RecordSetsGetResponse,
|
|
29
|
+
RecordSetsListByTypeResponse,
|
|
30
|
+
RecordSetsListResponse,
|
|
31
|
+
RecordSetsListByTypeNextResponse,
|
|
32
|
+
RecordSetsListNextResponse
|
|
33
|
+
} from "../models";
|
|
16
34
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
35
|
+
/// <reference lib="esnext.asynciterable" />
|
|
36
|
+
/** Class containing RecordSets operations. */
|
|
37
|
+
export class RecordSetsImpl implements RecordSets {
|
|
38
|
+
private readonly client: PrivateDnsManagementClient;
|
|
20
39
|
|
|
21
40
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
41
|
+
* Initialize a new instance of the class RecordSets class.
|
|
42
|
+
* @param client Reference to the service client
|
|
24
43
|
*/
|
|
25
|
-
constructor(client:
|
|
44
|
+
constructor(client: PrivateDnsManagementClient) {
|
|
26
45
|
this.client = client;
|
|
27
46
|
}
|
|
28
47
|
|
|
29
48
|
/**
|
|
30
|
-
*
|
|
49
|
+
* Lists the record sets of a specified type in a Private DNS zone.
|
|
31
50
|
* @param resourceGroupName The name of the resource group.
|
|
32
51
|
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
33
|
-
* @param recordType The type of
|
|
34
|
-
*
|
|
35
|
-
* include: 'A', 'AAAA', 'CNAME', 'MX', 'PTR', 'SOA', 'SRV', 'TXT'
|
|
36
|
-
* @param relativeRecordSetName The name of the record set, relative to the name of the zone.
|
|
37
|
-
* @param parameters Parameters supplied to the CreateOrUpdate operation.
|
|
38
|
-
* @param [options] The optional parameters
|
|
39
|
-
* @returns Promise<Models.RecordSetsCreateOrUpdateResponse>
|
|
52
|
+
* @param recordType The type of record sets to enumerate.
|
|
53
|
+
* @param options The options parameters.
|
|
40
54
|
*/
|
|
41
|
-
|
|
55
|
+
public listByType(
|
|
56
|
+
resourceGroupName: string,
|
|
57
|
+
privateZoneName: string,
|
|
58
|
+
recordType: RecordType,
|
|
59
|
+
options?: RecordSetsListByTypeOptionalParams
|
|
60
|
+
): PagedAsyncIterableIterator<RecordSet> {
|
|
61
|
+
const iter = this.listByTypePagingAll(
|
|
62
|
+
resourceGroupName,
|
|
63
|
+
privateZoneName,
|
|
64
|
+
recordType,
|
|
65
|
+
options
|
|
66
|
+
);
|
|
67
|
+
return {
|
|
68
|
+
next() {
|
|
69
|
+
return iter.next();
|
|
70
|
+
},
|
|
71
|
+
[Symbol.asyncIterator]() {
|
|
72
|
+
return this;
|
|
73
|
+
},
|
|
74
|
+
byPage: () => {
|
|
75
|
+
return this.listByTypePagingPage(
|
|
76
|
+
resourceGroupName,
|
|
77
|
+
privateZoneName,
|
|
78
|
+
recordType,
|
|
79
|
+
options
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
private async *listByTypePagingPage(
|
|
86
|
+
resourceGroupName: string,
|
|
87
|
+
privateZoneName: string,
|
|
88
|
+
recordType: RecordType,
|
|
89
|
+
options?: RecordSetsListByTypeOptionalParams
|
|
90
|
+
): AsyncIterableIterator<RecordSet[]> {
|
|
91
|
+
let result = await this._listByType(
|
|
92
|
+
resourceGroupName,
|
|
93
|
+
privateZoneName,
|
|
94
|
+
recordType,
|
|
95
|
+
options
|
|
96
|
+
);
|
|
97
|
+
yield result.value || [];
|
|
98
|
+
let continuationToken = result.nextLink;
|
|
99
|
+
while (continuationToken) {
|
|
100
|
+
result = await this._listByTypeNext(
|
|
101
|
+
resourceGroupName,
|
|
102
|
+
privateZoneName,
|
|
103
|
+
recordType,
|
|
104
|
+
continuationToken,
|
|
105
|
+
options
|
|
106
|
+
);
|
|
107
|
+
continuationToken = result.nextLink;
|
|
108
|
+
yield result.value || [];
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
private async *listByTypePagingAll(
|
|
113
|
+
resourceGroupName: string,
|
|
114
|
+
privateZoneName: string,
|
|
115
|
+
recordType: RecordType,
|
|
116
|
+
options?: RecordSetsListByTypeOptionalParams
|
|
117
|
+
): AsyncIterableIterator<RecordSet> {
|
|
118
|
+
for await (const page of this.listByTypePagingPage(
|
|
119
|
+
resourceGroupName,
|
|
120
|
+
privateZoneName,
|
|
121
|
+
recordType,
|
|
122
|
+
options
|
|
123
|
+
)) {
|
|
124
|
+
yield* page;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
42
128
|
/**
|
|
129
|
+
* Lists all record sets in a Private DNS zone.
|
|
43
130
|
* @param resourceGroupName The name of the resource group.
|
|
44
131
|
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
45
|
-
* @param
|
|
46
|
-
* updated but not created (they are created when the Private DNS zone is created). Possible values
|
|
47
|
-
* include: 'A', 'AAAA', 'CNAME', 'MX', 'PTR', 'SOA', 'SRV', 'TXT'
|
|
48
|
-
* @param relativeRecordSetName The name of the record set, relative to the name of the zone.
|
|
49
|
-
* @param parameters Parameters supplied to the CreateOrUpdate operation.
|
|
50
|
-
* @param callback The callback
|
|
132
|
+
* @param options The options parameters.
|
|
51
133
|
*/
|
|
52
|
-
|
|
134
|
+
public list(
|
|
135
|
+
resourceGroupName: string,
|
|
136
|
+
privateZoneName: string,
|
|
137
|
+
options?: RecordSetsListOptionalParams
|
|
138
|
+
): PagedAsyncIterableIterator<RecordSet> {
|
|
139
|
+
const iter = this.listPagingAll(
|
|
140
|
+
resourceGroupName,
|
|
141
|
+
privateZoneName,
|
|
142
|
+
options
|
|
143
|
+
);
|
|
144
|
+
return {
|
|
145
|
+
next() {
|
|
146
|
+
return iter.next();
|
|
147
|
+
},
|
|
148
|
+
[Symbol.asyncIterator]() {
|
|
149
|
+
return this;
|
|
150
|
+
},
|
|
151
|
+
byPage: () => {
|
|
152
|
+
return this.listPagingPage(resourceGroupName, privateZoneName, options);
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
private async *listPagingPage(
|
|
158
|
+
resourceGroupName: string,
|
|
159
|
+
privateZoneName: string,
|
|
160
|
+
options?: RecordSetsListOptionalParams
|
|
161
|
+
): AsyncIterableIterator<RecordSet[]> {
|
|
162
|
+
let result = await this._list(resourceGroupName, privateZoneName, options);
|
|
163
|
+
yield result.value || [];
|
|
164
|
+
let continuationToken = result.nextLink;
|
|
165
|
+
while (continuationToken) {
|
|
166
|
+
result = await this._listNext(
|
|
167
|
+
resourceGroupName,
|
|
168
|
+
privateZoneName,
|
|
169
|
+
continuationToken,
|
|
170
|
+
options
|
|
171
|
+
);
|
|
172
|
+
continuationToken = result.nextLink;
|
|
173
|
+
yield result.value || [];
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
private async *listPagingAll(
|
|
178
|
+
resourceGroupName: string,
|
|
179
|
+
privateZoneName: string,
|
|
180
|
+
options?: RecordSetsListOptionalParams
|
|
181
|
+
): AsyncIterableIterator<RecordSet> {
|
|
182
|
+
for await (const page of this.listPagingPage(
|
|
183
|
+
resourceGroupName,
|
|
184
|
+
privateZoneName,
|
|
185
|
+
options
|
|
186
|
+
)) {
|
|
187
|
+
yield* page;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
53
191
|
/**
|
|
192
|
+
* Creates or updates a record set within a Private DNS zone.
|
|
54
193
|
* @param resourceGroupName The name of the resource group.
|
|
55
194
|
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
56
|
-
* @param recordType The type of DNS record in this record set. Record sets of type SOA can be
|
|
57
|
-
*
|
|
58
|
-
* include: 'A', 'AAAA', 'CNAME', 'MX', 'PTR', 'SOA', 'SRV', 'TXT'
|
|
195
|
+
* @param recordType The type of DNS record in this record set. Record sets of type SOA can be updated
|
|
196
|
+
* but not created (they are created when the Private DNS zone is created).
|
|
59
197
|
* @param relativeRecordSetName The name of the record set, relative to the name of the zone.
|
|
60
198
|
* @param parameters Parameters supplied to the CreateOrUpdate operation.
|
|
61
|
-
* @param options The
|
|
62
|
-
* @param callback The callback
|
|
199
|
+
* @param options The options parameters.
|
|
63
200
|
*/
|
|
64
|
-
createOrUpdate(
|
|
65
|
-
|
|
201
|
+
createOrUpdate(
|
|
202
|
+
resourceGroupName: string,
|
|
203
|
+
privateZoneName: string,
|
|
204
|
+
recordType: RecordType,
|
|
205
|
+
relativeRecordSetName: string,
|
|
206
|
+
parameters: RecordSet,
|
|
207
|
+
options?: RecordSetsCreateOrUpdateOptionalParams
|
|
208
|
+
): Promise<RecordSetsCreateOrUpdateResponse> {
|
|
66
209
|
return this.client.sendOperationRequest(
|
|
67
210
|
{
|
|
68
211
|
resourceGroupName,
|
|
@@ -72,44 +215,27 @@ export class RecordSets {
|
|
|
72
215
|
parameters,
|
|
73
216
|
options
|
|
74
217
|
},
|
|
75
|
-
createOrUpdateOperationSpec
|
|
76
|
-
|
|
218
|
+
createOrUpdateOperationSpec
|
|
219
|
+
);
|
|
77
220
|
}
|
|
78
221
|
|
|
79
222
|
/**
|
|
80
223
|
* Updates a record set within a Private DNS zone.
|
|
81
224
|
* @param resourceGroupName The name of the resource group.
|
|
82
225
|
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
83
|
-
* @param recordType The type of DNS record in this record set.
|
|
84
|
-
* 'AAAA', 'CNAME', 'MX', 'PTR', 'SOA', 'SRV', 'TXT'
|
|
226
|
+
* @param recordType The type of DNS record in this record set.
|
|
85
227
|
* @param relativeRecordSetName The name of the record set, relative to the name of the zone.
|
|
86
228
|
* @param parameters Parameters supplied to the Update operation.
|
|
87
|
-
* @param
|
|
88
|
-
* @returns Promise<Models.RecordSetsUpdateResponse>
|
|
229
|
+
* @param options The options parameters.
|
|
89
230
|
*/
|
|
90
|
-
update(
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
* @param callback The callback
|
|
99
|
-
*/
|
|
100
|
-
update(resourceGroupName: string, privateZoneName: string, recordType: Models.RecordType, relativeRecordSetName: string, parameters: Models.RecordSet, callback: msRest.ServiceCallback<Models.RecordSet>): void;
|
|
101
|
-
/**
|
|
102
|
-
* @param resourceGroupName The name of the resource group.
|
|
103
|
-
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
104
|
-
* @param recordType The type of DNS record in this record set. Possible values include: 'A',
|
|
105
|
-
* 'AAAA', 'CNAME', 'MX', 'PTR', 'SOA', 'SRV', 'TXT'
|
|
106
|
-
* @param relativeRecordSetName The name of the record set, relative to the name of the zone.
|
|
107
|
-
* @param parameters Parameters supplied to the Update operation.
|
|
108
|
-
* @param options The optional parameters
|
|
109
|
-
* @param callback The callback
|
|
110
|
-
*/
|
|
111
|
-
update(resourceGroupName: string, privateZoneName: string, recordType: Models.RecordType, relativeRecordSetName: string, parameters: Models.RecordSet, options: Models.RecordSetsUpdateOptionalParams, callback: msRest.ServiceCallback<Models.RecordSet>): void;
|
|
112
|
-
update(resourceGroupName: string, privateZoneName: string, recordType: Models.RecordType, relativeRecordSetName: string, parameters: Models.RecordSet, options?: Models.RecordSetsUpdateOptionalParams | msRest.ServiceCallback<Models.RecordSet>, callback?: msRest.ServiceCallback<Models.RecordSet>): Promise<Models.RecordSetsUpdateResponse> {
|
|
231
|
+
update(
|
|
232
|
+
resourceGroupName: string,
|
|
233
|
+
privateZoneName: string,
|
|
234
|
+
recordType: RecordType,
|
|
235
|
+
relativeRecordSetName: string,
|
|
236
|
+
parameters: RecordSet,
|
|
237
|
+
options?: RecordSetsUpdateOptionalParams
|
|
238
|
+
): Promise<RecordSetsUpdateResponse> {
|
|
113
239
|
return this.client.sendOperationRequest(
|
|
114
240
|
{
|
|
115
241
|
resourceGroupName,
|
|
@@ -119,8 +245,8 @@ export class RecordSets {
|
|
|
119
245
|
parameters,
|
|
120
246
|
options
|
|
121
247
|
},
|
|
122
|
-
updateOperationSpec
|
|
123
|
-
|
|
248
|
+
updateOperationSpec
|
|
249
|
+
);
|
|
124
250
|
}
|
|
125
251
|
|
|
126
252
|
/**
|
|
@@ -128,35 +254,17 @@ export class RecordSets {
|
|
|
128
254
|
* @param resourceGroupName The name of the resource group.
|
|
129
255
|
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
130
256
|
* @param recordType The type of DNS record in this record set. Record sets of type SOA cannot be
|
|
131
|
-
*
|
|
132
|
-
* 'AAAA', 'CNAME', 'MX', 'PTR', 'SOA', 'SRV', 'TXT'
|
|
133
|
-
* @param relativeRecordSetName The name of the record set, relative to the name of the zone.
|
|
134
|
-
* @param [options] The optional parameters
|
|
135
|
-
* @returns Promise<msRest.RestResponse>
|
|
136
|
-
*/
|
|
137
|
-
deleteMethod(resourceGroupName: string, privateZoneName: string, recordType: Models.RecordType, relativeRecordSetName: string, options?: Models.RecordSetsDeleteMethodOptionalParams): Promise<msRest.RestResponse>;
|
|
138
|
-
/**
|
|
139
|
-
* @param resourceGroupName The name of the resource group.
|
|
140
|
-
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
141
|
-
* @param recordType The type of DNS record in this record set. Record sets of type SOA cannot be
|
|
142
|
-
* deleted (they are deleted when the Private DNS zone is deleted). Possible values include: 'A',
|
|
143
|
-
* 'AAAA', 'CNAME', 'MX', 'PTR', 'SOA', 'SRV', 'TXT'
|
|
144
|
-
* @param relativeRecordSetName The name of the record set, relative to the name of the zone.
|
|
145
|
-
* @param callback The callback
|
|
146
|
-
*/
|
|
147
|
-
deleteMethod(resourceGroupName: string, privateZoneName: string, recordType: Models.RecordType, relativeRecordSetName: string, callback: msRest.ServiceCallback<void>): void;
|
|
148
|
-
/**
|
|
149
|
-
* @param resourceGroupName The name of the resource group.
|
|
150
|
-
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
151
|
-
* @param recordType The type of DNS record in this record set. Record sets of type SOA cannot be
|
|
152
|
-
* deleted (they are deleted when the Private DNS zone is deleted). Possible values include: 'A',
|
|
153
|
-
* 'AAAA', 'CNAME', 'MX', 'PTR', 'SOA', 'SRV', 'TXT'
|
|
257
|
+
* deleted (they are deleted when the Private DNS zone is deleted).
|
|
154
258
|
* @param relativeRecordSetName The name of the record set, relative to the name of the zone.
|
|
155
|
-
* @param options The
|
|
156
|
-
* @param callback The callback
|
|
259
|
+
* @param options The options parameters.
|
|
157
260
|
*/
|
|
158
|
-
|
|
159
|
-
|
|
261
|
+
delete(
|
|
262
|
+
resourceGroupName: string,
|
|
263
|
+
privateZoneName: string,
|
|
264
|
+
recordType: RecordType,
|
|
265
|
+
relativeRecordSetName: string,
|
|
266
|
+
options?: RecordSetsDeleteOptionalParams
|
|
267
|
+
): Promise<void> {
|
|
160
268
|
return this.client.sendOperationRequest(
|
|
161
269
|
{
|
|
162
270
|
resourceGroupName,
|
|
@@ -165,41 +273,25 @@ export class RecordSets {
|
|
|
165
273
|
relativeRecordSetName,
|
|
166
274
|
options
|
|
167
275
|
},
|
|
168
|
-
|
|
169
|
-
|
|
276
|
+
deleteOperationSpec
|
|
277
|
+
);
|
|
170
278
|
}
|
|
171
279
|
|
|
172
280
|
/**
|
|
173
281
|
* Gets a record set.
|
|
174
282
|
* @param resourceGroupName The name of the resource group.
|
|
175
283
|
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
176
|
-
* @param recordType The type of DNS record in this record set.
|
|
177
|
-
* 'AAAA', 'CNAME', 'MX', 'PTR', 'SOA', 'SRV', 'TXT'
|
|
178
|
-
* @param relativeRecordSetName The name of the record set, relative to the name of the zone.
|
|
179
|
-
* @param [options] The optional parameters
|
|
180
|
-
* @returns Promise<Models.RecordSetsGetResponse>
|
|
181
|
-
*/
|
|
182
|
-
get(resourceGroupName: string, privateZoneName: string, recordType: Models.RecordType, relativeRecordSetName: string, options?: msRest.RequestOptionsBase): Promise<Models.RecordSetsGetResponse>;
|
|
183
|
-
/**
|
|
184
|
-
* @param resourceGroupName The name of the resource group.
|
|
185
|
-
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
186
|
-
* @param recordType The type of DNS record in this record set. Possible values include: 'A',
|
|
187
|
-
* 'AAAA', 'CNAME', 'MX', 'PTR', 'SOA', 'SRV', 'TXT'
|
|
284
|
+
* @param recordType The type of DNS record in this record set.
|
|
188
285
|
* @param relativeRecordSetName The name of the record set, relative to the name of the zone.
|
|
189
|
-
* @param
|
|
286
|
+
* @param options The options parameters.
|
|
190
287
|
*/
|
|
191
|
-
get(
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
* @param options The optional parameters
|
|
199
|
-
* @param callback The callback
|
|
200
|
-
*/
|
|
201
|
-
get(resourceGroupName: string, privateZoneName: string, recordType: Models.RecordType, relativeRecordSetName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.RecordSet>): void;
|
|
202
|
-
get(resourceGroupName: string, privateZoneName: string, recordType: Models.RecordType, relativeRecordSetName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.RecordSet>, callback?: msRest.ServiceCallback<Models.RecordSet>): Promise<Models.RecordSetsGetResponse> {
|
|
288
|
+
get(
|
|
289
|
+
resourceGroupName: string,
|
|
290
|
+
privateZoneName: string,
|
|
291
|
+
recordType: RecordType,
|
|
292
|
+
relativeRecordSetName: string,
|
|
293
|
+
options?: RecordSetsGetOptionalParams
|
|
294
|
+
): Promise<RecordSetsGetResponse> {
|
|
203
295
|
return this.client.sendOperationRequest(
|
|
204
296
|
{
|
|
205
297
|
resourceGroupName,
|
|
@@ -208,165 +300,93 @@ export class RecordSets {
|
|
|
208
300
|
relativeRecordSetName,
|
|
209
301
|
options
|
|
210
302
|
},
|
|
211
|
-
getOperationSpec
|
|
212
|
-
|
|
303
|
+
getOperationSpec
|
|
304
|
+
);
|
|
213
305
|
}
|
|
214
306
|
|
|
215
307
|
/**
|
|
216
308
|
* Lists the record sets of a specified type in a Private DNS zone.
|
|
217
309
|
* @param resourceGroupName The name of the resource group.
|
|
218
310
|
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
219
|
-
* @param recordType The type of record sets to enumerate.
|
|
220
|
-
*
|
|
221
|
-
* @param [options] The optional parameters
|
|
222
|
-
* @returns Promise<Models.RecordSetsListByTypeResponse>
|
|
223
|
-
*/
|
|
224
|
-
listByType(resourceGroupName: string, privateZoneName: string, recordType: Models.RecordType, options?: Models.RecordSetsListByTypeOptionalParams): Promise<Models.RecordSetsListByTypeResponse>;
|
|
225
|
-
/**
|
|
226
|
-
* @param resourceGroupName The name of the resource group.
|
|
227
|
-
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
228
|
-
* @param recordType The type of record sets to enumerate. Possible values include: 'A', 'AAAA',
|
|
229
|
-
* 'CNAME', 'MX', 'PTR', 'SOA', 'SRV', 'TXT'
|
|
230
|
-
* @param callback The callback
|
|
311
|
+
* @param recordType The type of record sets to enumerate.
|
|
312
|
+
* @param options The options parameters.
|
|
231
313
|
*/
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
* @param options The optional parameters
|
|
239
|
-
* @param callback The callback
|
|
240
|
-
*/
|
|
241
|
-
listByType(resourceGroupName: string, privateZoneName: string, recordType: Models.RecordType, options: Models.RecordSetsListByTypeOptionalParams, callback: msRest.ServiceCallback<Models.RecordSetListResult>): void;
|
|
242
|
-
listByType(resourceGroupName: string, privateZoneName: string, recordType: Models.RecordType, options?: Models.RecordSetsListByTypeOptionalParams | msRest.ServiceCallback<Models.RecordSetListResult>, callback?: msRest.ServiceCallback<Models.RecordSetListResult>): Promise<Models.RecordSetsListByTypeResponse> {
|
|
314
|
+
private _listByType(
|
|
315
|
+
resourceGroupName: string,
|
|
316
|
+
privateZoneName: string,
|
|
317
|
+
recordType: RecordType,
|
|
318
|
+
options?: RecordSetsListByTypeOptionalParams
|
|
319
|
+
): Promise<RecordSetsListByTypeResponse> {
|
|
243
320
|
return this.client.sendOperationRequest(
|
|
244
|
-
{
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
recordType,
|
|
248
|
-
options
|
|
249
|
-
},
|
|
250
|
-
listByTypeOperationSpec,
|
|
251
|
-
callback) as Promise<Models.RecordSetsListByTypeResponse>;
|
|
321
|
+
{ resourceGroupName, privateZoneName, recordType, options },
|
|
322
|
+
listByTypeOperationSpec
|
|
323
|
+
);
|
|
252
324
|
}
|
|
253
325
|
|
|
254
326
|
/**
|
|
255
327
|
* Lists all record sets in a Private DNS zone.
|
|
256
328
|
* @param resourceGroupName The name of the resource group.
|
|
257
329
|
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
258
|
-
* @param
|
|
259
|
-
* @returns Promise<Models.RecordSetsListResponse>
|
|
260
|
-
*/
|
|
261
|
-
list(resourceGroupName: string, privateZoneName: string, options?: Models.RecordSetsListOptionalParams): Promise<Models.RecordSetsListResponse>;
|
|
262
|
-
/**
|
|
263
|
-
* @param resourceGroupName The name of the resource group.
|
|
264
|
-
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
265
|
-
* @param callback The callback
|
|
330
|
+
* @param options The options parameters.
|
|
266
331
|
*/
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
* @param callback The callback
|
|
273
|
-
*/
|
|
274
|
-
list(resourceGroupName: string, privateZoneName: string, options: Models.RecordSetsListOptionalParams, callback: msRest.ServiceCallback<Models.RecordSetListResult>): void;
|
|
275
|
-
list(resourceGroupName: string, privateZoneName: string, options?: Models.RecordSetsListOptionalParams | msRest.ServiceCallback<Models.RecordSetListResult>, callback?: msRest.ServiceCallback<Models.RecordSetListResult>): Promise<Models.RecordSetsListResponse> {
|
|
332
|
+
private _list(
|
|
333
|
+
resourceGroupName: string,
|
|
334
|
+
privateZoneName: string,
|
|
335
|
+
options?: RecordSetsListOptionalParams
|
|
336
|
+
): Promise<RecordSetsListResponse> {
|
|
276
337
|
return this.client.sendOperationRequest(
|
|
277
|
-
{
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
options
|
|
281
|
-
},
|
|
282
|
-
listOperationSpec,
|
|
283
|
-
callback) as Promise<Models.RecordSetsListResponse>;
|
|
338
|
+
{ resourceGroupName, privateZoneName, options },
|
|
339
|
+
listOperationSpec
|
|
340
|
+
);
|
|
284
341
|
}
|
|
285
342
|
|
|
286
343
|
/**
|
|
287
|
-
*
|
|
288
|
-
* @param
|
|
289
|
-
* @param
|
|
290
|
-
* @
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
295
|
-
* @param callback The callback
|
|
296
|
-
*/
|
|
297
|
-
listByTypeNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.RecordSetListResult>): void;
|
|
298
|
-
/**
|
|
299
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
300
|
-
* @param options The optional parameters
|
|
301
|
-
* @param callback The callback
|
|
344
|
+
* ListByTypeNext
|
|
345
|
+
* @param resourceGroupName The name of the resource group.
|
|
346
|
+
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
347
|
+
* @param recordType The type of record sets to enumerate.
|
|
348
|
+
* @param nextLink The nextLink from the previous successful call to the ListByType method.
|
|
349
|
+
* @param options The options parameters.
|
|
302
350
|
*/
|
|
303
|
-
|
|
304
|
-
|
|
351
|
+
private _listByTypeNext(
|
|
352
|
+
resourceGroupName: string,
|
|
353
|
+
privateZoneName: string,
|
|
354
|
+
recordType: RecordType,
|
|
355
|
+
nextLink: string,
|
|
356
|
+
options?: RecordSetsListByTypeNextOptionalParams
|
|
357
|
+
): Promise<RecordSetsListByTypeNextResponse> {
|
|
305
358
|
return this.client.sendOperationRequest(
|
|
306
|
-
{
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
},
|
|
310
|
-
listByTypeNextOperationSpec,
|
|
311
|
-
callback) as Promise<Models.RecordSetsListByTypeNextResponse>;
|
|
359
|
+
{ resourceGroupName, privateZoneName, recordType, nextLink, options },
|
|
360
|
+
listByTypeNextOperationSpec
|
|
361
|
+
);
|
|
312
362
|
}
|
|
313
363
|
|
|
314
364
|
/**
|
|
315
|
-
*
|
|
316
|
-
* @param
|
|
317
|
-
* @param
|
|
318
|
-
* @
|
|
319
|
-
|
|
320
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.RecordSetsListNextResponse>;
|
|
321
|
-
/**
|
|
322
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
323
|
-
* @param callback The callback
|
|
324
|
-
*/
|
|
325
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.RecordSetListResult>): void;
|
|
326
|
-
/**
|
|
327
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
328
|
-
* @param options The optional parameters
|
|
329
|
-
* @param callback The callback
|
|
365
|
+
* ListNext
|
|
366
|
+
* @param resourceGroupName The name of the resource group.
|
|
367
|
+
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
368
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
369
|
+
* @param options The options parameters.
|
|
330
370
|
*/
|
|
331
|
-
|
|
332
|
-
|
|
371
|
+
private _listNext(
|
|
372
|
+
resourceGroupName: string,
|
|
373
|
+
privateZoneName: string,
|
|
374
|
+
nextLink: string,
|
|
375
|
+
options?: RecordSetsListNextOptionalParams
|
|
376
|
+
): Promise<RecordSetsListNextResponse> {
|
|
333
377
|
return this.client.sendOperationRequest(
|
|
334
|
-
{
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
},
|
|
338
|
-
listNextOperationSpec,
|
|
339
|
-
callback) as Promise<Models.RecordSetsListNextResponse>;
|
|
378
|
+
{ resourceGroupName, privateZoneName, nextLink, options },
|
|
379
|
+
listNextOperationSpec
|
|
380
|
+
);
|
|
340
381
|
}
|
|
341
382
|
}
|
|
342
|
-
|
|
343
383
|
// Operation Specifications
|
|
344
|
-
const serializer =
|
|
345
|
-
|
|
384
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
385
|
+
|
|
386
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
387
|
+
path:
|
|
388
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/{recordType}/{relativeRecordSetName}",
|
|
346
389
|
httpMethod: "PUT",
|
|
347
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/{recordType}/{relativeRecordSetName}",
|
|
348
|
-
urlParameters: [
|
|
349
|
-
Parameters.resourceGroupName,
|
|
350
|
-
Parameters.privateZoneName,
|
|
351
|
-
Parameters.recordType,
|
|
352
|
-
Parameters.relativeRecordSetName,
|
|
353
|
-
Parameters.subscriptionId
|
|
354
|
-
],
|
|
355
|
-
queryParameters: [
|
|
356
|
-
Parameters.apiVersion
|
|
357
|
-
],
|
|
358
|
-
headerParameters: [
|
|
359
|
-
Parameters.ifMatch,
|
|
360
|
-
Parameters.ifNoneMatch,
|
|
361
|
-
Parameters.acceptLanguage
|
|
362
|
-
],
|
|
363
|
-
requestBody: {
|
|
364
|
-
parameterPath: "parameters",
|
|
365
|
-
mapper: {
|
|
366
|
-
...Mappers.RecordSet,
|
|
367
|
-
required: true
|
|
368
|
-
}
|
|
369
|
-
},
|
|
370
390
|
responses: {
|
|
371
391
|
200: {
|
|
372
392
|
bodyMapper: Mappers.RecordSet
|
|
@@ -378,33 +398,29 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
|
378
398
|
bodyMapper: Mappers.CloudError
|
|
379
399
|
}
|
|
380
400
|
},
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
const updateOperationSpec: msRest.OperationSpec = {
|
|
385
|
-
httpMethod: "PATCH",
|
|
386
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/{recordType}/{relativeRecordSetName}",
|
|
401
|
+
requestBody: Parameters.parameters2,
|
|
402
|
+
queryParameters: [Parameters.apiVersion],
|
|
387
403
|
urlParameters: [
|
|
404
|
+
Parameters.$host,
|
|
388
405
|
Parameters.resourceGroupName,
|
|
389
406
|
Parameters.privateZoneName,
|
|
407
|
+
Parameters.subscriptionId,
|
|
390
408
|
Parameters.recordType,
|
|
391
|
-
Parameters.relativeRecordSetName
|
|
392
|
-
Parameters.subscriptionId
|
|
393
|
-
],
|
|
394
|
-
queryParameters: [
|
|
395
|
-
Parameters.apiVersion
|
|
409
|
+
Parameters.relativeRecordSetName
|
|
396
410
|
],
|
|
397
411
|
headerParameters: [
|
|
412
|
+
Parameters.contentType,
|
|
413
|
+
Parameters.accept,
|
|
398
414
|
Parameters.ifMatch,
|
|
399
|
-
Parameters.
|
|
415
|
+
Parameters.ifNoneMatch
|
|
400
416
|
],
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
}
|
|
407
|
-
|
|
417
|
+
mediaType: "json",
|
|
418
|
+
serializer
|
|
419
|
+
};
|
|
420
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
421
|
+
path:
|
|
422
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/{recordType}/{relativeRecordSetName}",
|
|
423
|
+
httpMethod: "PATCH",
|
|
408
424
|
responses: {
|
|
409
425
|
200: {
|
|
410
426
|
bodyMapper: Mappers.RecordSet
|
|
@@ -413,26 +429,28 @@ const updateOperationSpec: msRest.OperationSpec = {
|
|
|
413
429
|
bodyMapper: Mappers.CloudError
|
|
414
430
|
}
|
|
415
431
|
},
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
const deleteMethodOperationSpec: msRest.OperationSpec = {
|
|
420
|
-
httpMethod: "DELETE",
|
|
421
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/{recordType}/{relativeRecordSetName}",
|
|
432
|
+
requestBody: Parameters.parameters2,
|
|
433
|
+
queryParameters: [Parameters.apiVersion],
|
|
422
434
|
urlParameters: [
|
|
435
|
+
Parameters.$host,
|
|
423
436
|
Parameters.resourceGroupName,
|
|
424
437
|
Parameters.privateZoneName,
|
|
438
|
+
Parameters.subscriptionId,
|
|
425
439
|
Parameters.recordType,
|
|
426
|
-
Parameters.relativeRecordSetName
|
|
427
|
-
Parameters.subscriptionId
|
|
428
|
-
],
|
|
429
|
-
queryParameters: [
|
|
430
|
-
Parameters.apiVersion
|
|
440
|
+
Parameters.relativeRecordSetName
|
|
431
441
|
],
|
|
432
442
|
headerParameters: [
|
|
433
|
-
Parameters.
|
|
434
|
-
Parameters.
|
|
443
|
+
Parameters.contentType,
|
|
444
|
+
Parameters.accept,
|
|
445
|
+
Parameters.ifMatch
|
|
435
446
|
],
|
|
447
|
+
mediaType: "json",
|
|
448
|
+
serializer
|
|
449
|
+
};
|
|
450
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
451
|
+
path:
|
|
452
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/{recordType}/{relativeRecordSetName}",
|
|
453
|
+
httpMethod: "DELETE",
|
|
436
454
|
responses: {
|
|
437
455
|
200: {},
|
|
438
456
|
204: {},
|
|
@@ -440,25 +458,22 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
|
|
|
440
458
|
bodyMapper: Mappers.CloudError
|
|
441
459
|
}
|
|
442
460
|
},
|
|
443
|
-
|
|
444
|
-
};
|
|
445
|
-
|
|
446
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
447
|
-
httpMethod: "GET",
|
|
448
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/{recordType}/{relativeRecordSetName}",
|
|
461
|
+
queryParameters: [Parameters.apiVersion],
|
|
449
462
|
urlParameters: [
|
|
463
|
+
Parameters.$host,
|
|
450
464
|
Parameters.resourceGroupName,
|
|
451
465
|
Parameters.privateZoneName,
|
|
466
|
+
Parameters.subscriptionId,
|
|
452
467
|
Parameters.recordType,
|
|
453
|
-
Parameters.relativeRecordSetName
|
|
454
|
-
Parameters.subscriptionId
|
|
455
|
-
],
|
|
456
|
-
queryParameters: [
|
|
457
|
-
Parameters.apiVersion
|
|
458
|
-
],
|
|
459
|
-
headerParameters: [
|
|
460
|
-
Parameters.acceptLanguage
|
|
468
|
+
Parameters.relativeRecordSetName
|
|
461
469
|
],
|
|
470
|
+
headerParameters: [Parameters.accept, Parameters.ifMatch],
|
|
471
|
+
serializer
|
|
472
|
+
};
|
|
473
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
474
|
+
path:
|
|
475
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/{recordType}/{relativeRecordSetName}",
|
|
476
|
+
httpMethod: "GET",
|
|
462
477
|
responses: {
|
|
463
478
|
200: {
|
|
464
479
|
bodyMapper: Mappers.RecordSet
|
|
@@ -467,26 +482,22 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
467
482
|
bodyMapper: Mappers.CloudError
|
|
468
483
|
}
|
|
469
484
|
},
|
|
470
|
-
|
|
471
|
-
};
|
|
472
|
-
|
|
473
|
-
const listByTypeOperationSpec: msRest.OperationSpec = {
|
|
474
|
-
httpMethod: "GET",
|
|
475
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/{recordType}",
|
|
485
|
+
queryParameters: [Parameters.apiVersion],
|
|
476
486
|
urlParameters: [
|
|
487
|
+
Parameters.$host,
|
|
477
488
|
Parameters.resourceGroupName,
|
|
478
489
|
Parameters.privateZoneName,
|
|
490
|
+
Parameters.subscriptionId,
|
|
479
491
|
Parameters.recordType,
|
|
480
|
-
Parameters.
|
|
481
|
-
],
|
|
482
|
-
queryParameters: [
|
|
483
|
-
Parameters.top,
|
|
484
|
-
Parameters.recordsetnamesuffix,
|
|
485
|
-
Parameters.apiVersion
|
|
486
|
-
],
|
|
487
|
-
headerParameters: [
|
|
488
|
-
Parameters.acceptLanguage
|
|
492
|
+
Parameters.relativeRecordSetName
|
|
489
493
|
],
|
|
494
|
+
headerParameters: [Parameters.accept],
|
|
495
|
+
serializer
|
|
496
|
+
};
|
|
497
|
+
const listByTypeOperationSpec: coreClient.OperationSpec = {
|
|
498
|
+
path:
|
|
499
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/{recordType}",
|
|
500
|
+
httpMethod: "GET",
|
|
490
501
|
responses: {
|
|
491
502
|
200: {
|
|
492
503
|
bodyMapper: Mappers.RecordSetListResult
|
|
@@ -495,25 +506,25 @@ const listByTypeOperationSpec: msRest.OperationSpec = {
|
|
|
495
506
|
bodyMapper: Mappers.CloudError
|
|
496
507
|
}
|
|
497
508
|
},
|
|
498
|
-
serializer
|
|
499
|
-
};
|
|
500
|
-
|
|
501
|
-
const listOperationSpec: msRest.OperationSpec = {
|
|
502
|
-
httpMethod: "GET",
|
|
503
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/ALL",
|
|
504
|
-
urlParameters: [
|
|
505
|
-
Parameters.resourceGroupName,
|
|
506
|
-
Parameters.privateZoneName,
|
|
507
|
-
Parameters.subscriptionId
|
|
508
|
-
],
|
|
509
509
|
queryParameters: [
|
|
510
|
+
Parameters.apiVersion,
|
|
510
511
|
Parameters.top,
|
|
511
|
-
Parameters.recordsetnamesuffix
|
|
512
|
-
Parameters.apiVersion
|
|
512
|
+
Parameters.recordsetnamesuffix
|
|
513
513
|
],
|
|
514
|
-
|
|
515
|
-
Parameters
|
|
514
|
+
urlParameters: [
|
|
515
|
+
Parameters.$host,
|
|
516
|
+
Parameters.resourceGroupName,
|
|
517
|
+
Parameters.privateZoneName,
|
|
518
|
+
Parameters.subscriptionId,
|
|
519
|
+
Parameters.recordType
|
|
516
520
|
],
|
|
521
|
+
headerParameters: [Parameters.accept],
|
|
522
|
+
serializer
|
|
523
|
+
};
|
|
524
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
525
|
+
path:
|
|
526
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/ALL",
|
|
527
|
+
httpMethod: "GET",
|
|
517
528
|
responses: {
|
|
518
529
|
200: {
|
|
519
530
|
bodyMapper: Mappers.RecordSetListResult
|
|
@@ -522,19 +533,23 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
|
522
533
|
bodyMapper: Mappers.CloudError
|
|
523
534
|
}
|
|
524
535
|
},
|
|
536
|
+
queryParameters: [
|
|
537
|
+
Parameters.apiVersion,
|
|
538
|
+
Parameters.top,
|
|
539
|
+
Parameters.recordsetnamesuffix
|
|
540
|
+
],
|
|
541
|
+
urlParameters: [
|
|
542
|
+
Parameters.$host,
|
|
543
|
+
Parameters.resourceGroupName,
|
|
544
|
+
Parameters.privateZoneName,
|
|
545
|
+
Parameters.subscriptionId
|
|
546
|
+
],
|
|
547
|
+
headerParameters: [Parameters.accept],
|
|
525
548
|
serializer
|
|
526
549
|
};
|
|
527
|
-
|
|
528
|
-
const listByTypeNextOperationSpec: msRest.OperationSpec = {
|
|
529
|
-
httpMethod: "GET",
|
|
530
|
-
baseUrl: "https://management.azure.com",
|
|
550
|
+
const listByTypeNextOperationSpec: coreClient.OperationSpec = {
|
|
531
551
|
path: "{nextLink}",
|
|
532
|
-
|
|
533
|
-
Parameters.nextPageLink
|
|
534
|
-
],
|
|
535
|
-
headerParameters: [
|
|
536
|
-
Parameters.acceptLanguage
|
|
537
|
-
],
|
|
552
|
+
httpMethod: "GET",
|
|
538
553
|
responses: {
|
|
539
554
|
200: {
|
|
540
555
|
bodyMapper: Mappers.RecordSetListResult
|
|
@@ -543,19 +558,25 @@ const listByTypeNextOperationSpec: msRest.OperationSpec = {
|
|
|
543
558
|
bodyMapper: Mappers.CloudError
|
|
544
559
|
}
|
|
545
560
|
},
|
|
561
|
+
queryParameters: [
|
|
562
|
+
Parameters.apiVersion,
|
|
563
|
+
Parameters.top,
|
|
564
|
+
Parameters.recordsetnamesuffix
|
|
565
|
+
],
|
|
566
|
+
urlParameters: [
|
|
567
|
+
Parameters.$host,
|
|
568
|
+
Parameters.resourceGroupName,
|
|
569
|
+
Parameters.privateZoneName,
|
|
570
|
+
Parameters.subscriptionId,
|
|
571
|
+
Parameters.nextLink,
|
|
572
|
+
Parameters.recordType
|
|
573
|
+
],
|
|
574
|
+
headerParameters: [Parameters.accept],
|
|
546
575
|
serializer
|
|
547
576
|
};
|
|
548
|
-
|
|
549
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
550
|
-
httpMethod: "GET",
|
|
551
|
-
baseUrl: "https://management.azure.com",
|
|
577
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
552
578
|
path: "{nextLink}",
|
|
553
|
-
|
|
554
|
-
Parameters.nextPageLink
|
|
555
|
-
],
|
|
556
|
-
headerParameters: [
|
|
557
|
-
Parameters.acceptLanguage
|
|
558
|
-
],
|
|
579
|
+
httpMethod: "GET",
|
|
559
580
|
responses: {
|
|
560
581
|
200: {
|
|
561
582
|
bodyMapper: Mappers.RecordSetListResult
|
|
@@ -564,5 +585,18 @@ const listNextOperationSpec: msRest.OperationSpec = {
|
|
|
564
585
|
bodyMapper: Mappers.CloudError
|
|
565
586
|
}
|
|
566
587
|
},
|
|
588
|
+
queryParameters: [
|
|
589
|
+
Parameters.apiVersion,
|
|
590
|
+
Parameters.top,
|
|
591
|
+
Parameters.recordsetnamesuffix
|
|
592
|
+
],
|
|
593
|
+
urlParameters: [
|
|
594
|
+
Parameters.$host,
|
|
595
|
+
Parameters.resourceGroupName,
|
|
596
|
+
Parameters.privateZoneName,
|
|
597
|
+
Parameters.subscriptionId,
|
|
598
|
+
Parameters.nextLink
|
|
599
|
+
],
|
|
600
|
+
headerParameters: [Parameters.accept],
|
|
567
601
|
serializer
|
|
568
602
|
};
|