@azure/arm-dnsresolver 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/LICENSE +21 -0
- package/README.md +98 -0
- package/dist/index.js +4086 -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/dnsResolverManagementClient.d.ts +23 -0
- package/dist-esm/src/dnsResolverManagementClient.d.ts.map +1 -0
- package/dist-esm/src/dnsResolverManagementClient.js +56 -0
- package/dist-esm/src/dnsResolverManagementClient.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 +820 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +44 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +32 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +821 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +31 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +236 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/dnsForwardingRulesets.d.ts +133 -0
- package/dist-esm/src/operations/dnsForwardingRulesets.d.ts.map +1 -0
- package/dist-esm/src/operations/dnsForwardingRulesets.js +623 -0
- package/dist-esm/src/operations/dnsForwardingRulesets.js.map +1 -0
- package/dist-esm/src/operations/dnsResolvers.d.ts +131 -0
- package/dist-esm/src/operations/dnsResolvers.d.ts.map +1 -0
- package/dist-esm/src/operations/dnsResolvers.js +621 -0
- package/dist-esm/src/operations/dnsResolvers.js.map +1 -0
- package/dist-esm/src/operations/forwardingRules.d.ts +72 -0
- package/dist-esm/src/operations/forwardingRules.d.ts.map +1 -0
- package/dist-esm/src/operations/forwardingRules.js +304 -0
- package/dist-esm/src/operations/forwardingRules.js.map +1 -0
- package/dist-esm/src/operations/inboundEndpoints.d.ts +99 -0
- package/dist-esm/src/operations/inboundEndpoints.d.ts.map +1 -0
- package/dist-esm/src/operations/inboundEndpoints.js +438 -0
- package/dist-esm/src/operations/inboundEndpoints.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +7 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +14 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/outboundEndpoints.d.ts +99 -0
- package/dist-esm/src/operations/outboundEndpoints.d.ts.map +1 -0
- package/dist-esm/src/operations/outboundEndpoints.js +438 -0
- package/dist-esm/src/operations/outboundEndpoints.js.map +1 -0
- package/dist-esm/src/operations/virtualNetworkLinks.d.ts +101 -0
- package/dist-esm/src/operations/virtualNetworkLinks.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualNetworkLinks.js +450 -0
- package/dist-esm/src/operations/virtualNetworkLinks.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dnsForwardingRulesets.d.ts +80 -0
- package/dist-esm/src/operationsInterfaces/dnsForwardingRulesets.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/dnsForwardingRulesets.js +9 -0
- package/dist-esm/src/operationsInterfaces/dnsForwardingRulesets.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dnsResolvers.d.ts +78 -0
- package/dist-esm/src/operationsInterfaces/dnsResolvers.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/dnsResolvers.js +9 -0
- package/dist-esm/src/operationsInterfaces/dnsResolvers.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/forwardingRules.d.ts +47 -0
- package/dist-esm/src/operationsInterfaces/forwardingRules.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/forwardingRules.js +9 -0
- package/dist-esm/src/operationsInterfaces/forwardingRules.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/inboundEndpoints.d.ts +74 -0
- package/dist-esm/src/operationsInterfaces/inboundEndpoints.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/inboundEndpoints.js +9 -0
- package/dist-esm/src/operationsInterfaces/inboundEndpoints.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +7 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +14 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/outboundEndpoints.d.ts +74 -0
- package/dist-esm/src/operationsInterfaces/outboundEndpoints.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/outboundEndpoints.js +9 -0
- package/dist-esm/src/operationsInterfaces/outboundEndpoints.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualNetworkLinks.d.ts +76 -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/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 +118 -0
- package/review/arm-dnsresolver.api.md +767 -0
- package/rollup.config.js +122 -0
- package/src/dnsResolverManagementClient.ts +99 -0
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +971 -0
- package/src/models/mappers.ts +903 -0
- package/src/models/parameters.ts +283 -0
- package/src/operations/dnsForwardingRulesets.ts +838 -0
- package/src/operations/dnsResolvers.ts +836 -0
- package/src/operations/forwardingRules.ts +406 -0
- package/src/operations/inboundEndpoints.ts +621 -0
- package/src/operations/index.ts +14 -0
- package/src/operations/outboundEndpoints.ts +621 -0
- package/src/operations/virtualNetworkLinks.ts +641 -0
- package/src/operationsInterfaces/dnsForwardingRulesets.ts +154 -0
- package/src/operationsInterfaces/dnsResolvers.ts +152 -0
- package/src/operationsInterfaces/forwardingRules.ts +93 -0
- package/src/operationsInterfaces/inboundEndpoints.ts +147 -0
- package/src/operationsInterfaces/index.ts +14 -0
- package/src/operationsInterfaces/outboundEndpoints.ts +147 -0
- package/src/operationsInterfaces/virtualNetworkLinks.ts +149 -0
- package/tsconfig.json +32 -0
- package/types/arm-dnsresolver.d.ts +1379 -0
- package/types/tsdoc-metadata.json +11 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,4086 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var coreClient = require('@azure/core-client');
|
|
6
|
+
var tslib = require('tslib');
|
|
7
|
+
var coreLro = require('@azure/core-lro');
|
|
8
|
+
|
|
9
|
+
function _interopNamespace(e) {
|
|
10
|
+
if (e && e.__esModule) return e;
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return e[k]; }
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n["default"] = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
28
|
+
|
|
29
|
+
/*
|
|
30
|
+
* Copyright (c) Microsoft Corporation.
|
|
31
|
+
* Licensed under the MIT License.
|
|
32
|
+
*
|
|
33
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
34
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
35
|
+
*/
|
|
36
|
+
/** Known values of {@link DnsResolverState} that the service accepts. */
|
|
37
|
+
exports.KnownDnsResolverState = void 0;
|
|
38
|
+
(function (KnownDnsResolverState) {
|
|
39
|
+
KnownDnsResolverState["Connected"] = "Connected";
|
|
40
|
+
KnownDnsResolverState["Disconnected"] = "Disconnected";
|
|
41
|
+
})(exports.KnownDnsResolverState || (exports.KnownDnsResolverState = {}));
|
|
42
|
+
/** Known values of {@link ProvisioningState} that the service accepts. */
|
|
43
|
+
exports.KnownProvisioningState = void 0;
|
|
44
|
+
(function (KnownProvisioningState) {
|
|
45
|
+
KnownProvisioningState["Creating"] = "Creating";
|
|
46
|
+
KnownProvisioningState["Updating"] = "Updating";
|
|
47
|
+
KnownProvisioningState["Deleting"] = "Deleting";
|
|
48
|
+
KnownProvisioningState["Succeeded"] = "Succeeded";
|
|
49
|
+
KnownProvisioningState["Failed"] = "Failed";
|
|
50
|
+
KnownProvisioningState["Canceled"] = "Canceled";
|
|
51
|
+
})(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
|
|
52
|
+
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
53
|
+
exports.KnownCreatedByType = void 0;
|
|
54
|
+
(function (KnownCreatedByType) {
|
|
55
|
+
KnownCreatedByType["User"] = "User";
|
|
56
|
+
KnownCreatedByType["Application"] = "Application";
|
|
57
|
+
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
58
|
+
KnownCreatedByType["Key"] = "Key";
|
|
59
|
+
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
60
|
+
/** Known values of {@link IpAllocationMethod} that the service accepts. */
|
|
61
|
+
exports.KnownIpAllocationMethod = void 0;
|
|
62
|
+
(function (KnownIpAllocationMethod) {
|
|
63
|
+
KnownIpAllocationMethod["Static"] = "Static";
|
|
64
|
+
KnownIpAllocationMethod["Dynamic"] = "Dynamic";
|
|
65
|
+
})(exports.KnownIpAllocationMethod || (exports.KnownIpAllocationMethod = {}));
|
|
66
|
+
/** Known values of {@link ForwardingRuleState} that the service accepts. */
|
|
67
|
+
exports.KnownForwardingRuleState = void 0;
|
|
68
|
+
(function (KnownForwardingRuleState) {
|
|
69
|
+
KnownForwardingRuleState["Enabled"] = "Enabled";
|
|
70
|
+
KnownForwardingRuleState["Disabled"] = "Disabled";
|
|
71
|
+
})(exports.KnownForwardingRuleState || (exports.KnownForwardingRuleState = {}));
|
|
72
|
+
|
|
73
|
+
/*
|
|
74
|
+
* Copyright (c) Microsoft Corporation.
|
|
75
|
+
* Licensed under the MIT License.
|
|
76
|
+
*
|
|
77
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
78
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
79
|
+
*/
|
|
80
|
+
const SubResource = {
|
|
81
|
+
type: {
|
|
82
|
+
name: "Composite",
|
|
83
|
+
className: "SubResource",
|
|
84
|
+
modelProperties: {
|
|
85
|
+
id: {
|
|
86
|
+
serializedName: "id",
|
|
87
|
+
type: {
|
|
88
|
+
name: "String"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
const SystemData = {
|
|
95
|
+
type: {
|
|
96
|
+
name: "Composite",
|
|
97
|
+
className: "SystemData",
|
|
98
|
+
modelProperties: {
|
|
99
|
+
createdBy: {
|
|
100
|
+
serializedName: "createdBy",
|
|
101
|
+
type: {
|
|
102
|
+
name: "String"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
createdByType: {
|
|
106
|
+
serializedName: "createdByType",
|
|
107
|
+
type: {
|
|
108
|
+
name: "String"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
createdAt: {
|
|
112
|
+
serializedName: "createdAt",
|
|
113
|
+
type: {
|
|
114
|
+
name: "DateTime"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
lastModifiedBy: {
|
|
118
|
+
serializedName: "lastModifiedBy",
|
|
119
|
+
type: {
|
|
120
|
+
name: "String"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
lastModifiedByType: {
|
|
124
|
+
serializedName: "lastModifiedByType",
|
|
125
|
+
type: {
|
|
126
|
+
name: "String"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
lastModifiedAt: {
|
|
130
|
+
serializedName: "lastModifiedAt",
|
|
131
|
+
type: {
|
|
132
|
+
name: "DateTime"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
const Resource = {
|
|
139
|
+
type: {
|
|
140
|
+
name: "Composite",
|
|
141
|
+
className: "Resource",
|
|
142
|
+
modelProperties: {
|
|
143
|
+
id: {
|
|
144
|
+
serializedName: "id",
|
|
145
|
+
readOnly: true,
|
|
146
|
+
type: {
|
|
147
|
+
name: "String"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
name: {
|
|
151
|
+
serializedName: "name",
|
|
152
|
+
readOnly: true,
|
|
153
|
+
type: {
|
|
154
|
+
name: "String"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
type: {
|
|
158
|
+
serializedName: "type",
|
|
159
|
+
readOnly: true,
|
|
160
|
+
type: {
|
|
161
|
+
name: "String"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
const CloudError = {
|
|
168
|
+
type: {
|
|
169
|
+
name: "Composite",
|
|
170
|
+
className: "CloudError",
|
|
171
|
+
modelProperties: {
|
|
172
|
+
error: {
|
|
173
|
+
serializedName: "error",
|
|
174
|
+
type: {
|
|
175
|
+
name: "Composite",
|
|
176
|
+
className: "CloudErrorBody"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
const CloudErrorBody = {
|
|
183
|
+
type: {
|
|
184
|
+
name: "Composite",
|
|
185
|
+
className: "CloudErrorBody",
|
|
186
|
+
modelProperties: {
|
|
187
|
+
code: {
|
|
188
|
+
serializedName: "code",
|
|
189
|
+
type: {
|
|
190
|
+
name: "String"
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
message: {
|
|
194
|
+
serializedName: "message",
|
|
195
|
+
type: {
|
|
196
|
+
name: "String"
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
target: {
|
|
200
|
+
serializedName: "target",
|
|
201
|
+
type: {
|
|
202
|
+
name: "String"
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
details: {
|
|
206
|
+
serializedName: "details",
|
|
207
|
+
type: {
|
|
208
|
+
name: "Sequence",
|
|
209
|
+
element: {
|
|
210
|
+
type: {
|
|
211
|
+
name: "Composite",
|
|
212
|
+
className: "CloudErrorBody"
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
const DnsResolverPatch = {
|
|
221
|
+
type: {
|
|
222
|
+
name: "Composite",
|
|
223
|
+
className: "DnsResolverPatch",
|
|
224
|
+
modelProperties: {
|
|
225
|
+
tags: {
|
|
226
|
+
serializedName: "tags",
|
|
227
|
+
type: {
|
|
228
|
+
name: "Dictionary",
|
|
229
|
+
value: { type: { name: "String" } }
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
const DnsResolverListResult = {
|
|
236
|
+
type: {
|
|
237
|
+
name: "Composite",
|
|
238
|
+
className: "DnsResolverListResult",
|
|
239
|
+
modelProperties: {
|
|
240
|
+
value: {
|
|
241
|
+
serializedName: "value",
|
|
242
|
+
type: {
|
|
243
|
+
name: "Sequence",
|
|
244
|
+
element: {
|
|
245
|
+
type: {
|
|
246
|
+
name: "Composite",
|
|
247
|
+
className: "DnsResolver"
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
nextLink: {
|
|
253
|
+
serializedName: "nextLink",
|
|
254
|
+
readOnly: true,
|
|
255
|
+
type: {
|
|
256
|
+
name: "String"
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
const IpConfiguration = {
|
|
263
|
+
type: {
|
|
264
|
+
name: "Composite",
|
|
265
|
+
className: "IpConfiguration",
|
|
266
|
+
modelProperties: {
|
|
267
|
+
subnet: {
|
|
268
|
+
serializedName: "subnet",
|
|
269
|
+
type: {
|
|
270
|
+
name: "Composite",
|
|
271
|
+
className: "SubResource"
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
privateIpAddress: {
|
|
275
|
+
serializedName: "privateIpAddress",
|
|
276
|
+
type: {
|
|
277
|
+
name: "String"
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
privateIpAllocationMethod: {
|
|
281
|
+
defaultValue: "Dynamic",
|
|
282
|
+
serializedName: "privateIpAllocationMethod",
|
|
283
|
+
type: {
|
|
284
|
+
name: "String"
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
const InboundEndpointPatch = {
|
|
291
|
+
type: {
|
|
292
|
+
name: "Composite",
|
|
293
|
+
className: "InboundEndpointPatch",
|
|
294
|
+
modelProperties: {
|
|
295
|
+
tags: {
|
|
296
|
+
serializedName: "tags",
|
|
297
|
+
type: {
|
|
298
|
+
name: "Dictionary",
|
|
299
|
+
value: { type: { name: "String" } }
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
const InboundEndpointListResult = {
|
|
306
|
+
type: {
|
|
307
|
+
name: "Composite",
|
|
308
|
+
className: "InboundEndpointListResult",
|
|
309
|
+
modelProperties: {
|
|
310
|
+
value: {
|
|
311
|
+
serializedName: "value",
|
|
312
|
+
type: {
|
|
313
|
+
name: "Sequence",
|
|
314
|
+
element: {
|
|
315
|
+
type: {
|
|
316
|
+
name: "Composite",
|
|
317
|
+
className: "InboundEndpoint"
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
nextLink: {
|
|
323
|
+
serializedName: "nextLink",
|
|
324
|
+
readOnly: true,
|
|
325
|
+
type: {
|
|
326
|
+
name: "String"
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
const OutboundEndpointPatch = {
|
|
333
|
+
type: {
|
|
334
|
+
name: "Composite",
|
|
335
|
+
className: "OutboundEndpointPatch",
|
|
336
|
+
modelProperties: {
|
|
337
|
+
tags: {
|
|
338
|
+
serializedName: "tags",
|
|
339
|
+
type: {
|
|
340
|
+
name: "Dictionary",
|
|
341
|
+
value: { type: { name: "String" } }
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
};
|
|
347
|
+
const OutboundEndpointListResult = {
|
|
348
|
+
type: {
|
|
349
|
+
name: "Composite",
|
|
350
|
+
className: "OutboundEndpointListResult",
|
|
351
|
+
modelProperties: {
|
|
352
|
+
value: {
|
|
353
|
+
serializedName: "value",
|
|
354
|
+
type: {
|
|
355
|
+
name: "Sequence",
|
|
356
|
+
element: {
|
|
357
|
+
type: {
|
|
358
|
+
name: "Composite",
|
|
359
|
+
className: "OutboundEndpoint"
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
nextLink: {
|
|
365
|
+
serializedName: "nextLink",
|
|
366
|
+
readOnly: true,
|
|
367
|
+
type: {
|
|
368
|
+
name: "String"
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
};
|
|
374
|
+
const DnsForwardingRulesetPatch = {
|
|
375
|
+
type: {
|
|
376
|
+
name: "Composite",
|
|
377
|
+
className: "DnsForwardingRulesetPatch",
|
|
378
|
+
modelProperties: {
|
|
379
|
+
tags: {
|
|
380
|
+
serializedName: "tags",
|
|
381
|
+
type: {
|
|
382
|
+
name: "Dictionary",
|
|
383
|
+
value: { type: { name: "String" } }
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
};
|
|
389
|
+
const DnsForwardingRulesetListResult = {
|
|
390
|
+
type: {
|
|
391
|
+
name: "Composite",
|
|
392
|
+
className: "DnsForwardingRulesetListResult",
|
|
393
|
+
modelProperties: {
|
|
394
|
+
value: {
|
|
395
|
+
serializedName: "value",
|
|
396
|
+
type: {
|
|
397
|
+
name: "Sequence",
|
|
398
|
+
element: {
|
|
399
|
+
type: {
|
|
400
|
+
name: "Composite",
|
|
401
|
+
className: "DnsForwardingRuleset"
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
nextLink: {
|
|
407
|
+
serializedName: "nextLink",
|
|
408
|
+
readOnly: true,
|
|
409
|
+
type: {
|
|
410
|
+
name: "String"
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
};
|
|
416
|
+
const TargetDnsServer = {
|
|
417
|
+
type: {
|
|
418
|
+
name: "Composite",
|
|
419
|
+
className: "TargetDnsServer",
|
|
420
|
+
modelProperties: {
|
|
421
|
+
ipAddress: {
|
|
422
|
+
serializedName: "ipAddress",
|
|
423
|
+
type: {
|
|
424
|
+
name: "String"
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
port: {
|
|
428
|
+
defaultValue: 53,
|
|
429
|
+
serializedName: "port",
|
|
430
|
+
type: {
|
|
431
|
+
name: "Number"
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
};
|
|
437
|
+
const ForwardingRulePatch = {
|
|
438
|
+
type: {
|
|
439
|
+
name: "Composite",
|
|
440
|
+
className: "ForwardingRulePatch",
|
|
441
|
+
modelProperties: {
|
|
442
|
+
targetDnsServers: {
|
|
443
|
+
serializedName: "properties.targetDnsServers",
|
|
444
|
+
type: {
|
|
445
|
+
name: "Sequence",
|
|
446
|
+
element: {
|
|
447
|
+
type: {
|
|
448
|
+
name: "Composite",
|
|
449
|
+
className: "TargetDnsServer"
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
metadata: {
|
|
455
|
+
serializedName: "properties.metadata",
|
|
456
|
+
type: {
|
|
457
|
+
name: "Dictionary",
|
|
458
|
+
value: { type: { name: "String" } }
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
forwardingRuleState: {
|
|
462
|
+
serializedName: "properties.forwardingRuleState",
|
|
463
|
+
type: {
|
|
464
|
+
name: "String"
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
};
|
|
470
|
+
const ForwardingRuleListResult = {
|
|
471
|
+
type: {
|
|
472
|
+
name: "Composite",
|
|
473
|
+
className: "ForwardingRuleListResult",
|
|
474
|
+
modelProperties: {
|
|
475
|
+
value: {
|
|
476
|
+
serializedName: "value",
|
|
477
|
+
type: {
|
|
478
|
+
name: "Sequence",
|
|
479
|
+
element: {
|
|
480
|
+
type: {
|
|
481
|
+
name: "Composite",
|
|
482
|
+
className: "ForwardingRule"
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
nextLink: {
|
|
488
|
+
serializedName: "nextLink",
|
|
489
|
+
readOnly: true,
|
|
490
|
+
type: {
|
|
491
|
+
name: "String"
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
};
|
|
497
|
+
const VirtualNetworkLinkPatch = {
|
|
498
|
+
type: {
|
|
499
|
+
name: "Composite",
|
|
500
|
+
className: "VirtualNetworkLinkPatch",
|
|
501
|
+
modelProperties: {
|
|
502
|
+
metadata: {
|
|
503
|
+
serializedName: "properties.metadata",
|
|
504
|
+
type: {
|
|
505
|
+
name: "Dictionary",
|
|
506
|
+
value: { type: { name: "String" } }
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
};
|
|
512
|
+
const VirtualNetworkLinkListResult = {
|
|
513
|
+
type: {
|
|
514
|
+
name: "Composite",
|
|
515
|
+
className: "VirtualNetworkLinkListResult",
|
|
516
|
+
modelProperties: {
|
|
517
|
+
value: {
|
|
518
|
+
serializedName: "value",
|
|
519
|
+
type: {
|
|
520
|
+
name: "Sequence",
|
|
521
|
+
element: {
|
|
522
|
+
type: {
|
|
523
|
+
name: "Composite",
|
|
524
|
+
className: "VirtualNetworkLink"
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
nextLink: {
|
|
530
|
+
serializedName: "nextLink",
|
|
531
|
+
readOnly: true,
|
|
532
|
+
type: {
|
|
533
|
+
name: "String"
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
};
|
|
539
|
+
const SubResourceListResult = {
|
|
540
|
+
type: {
|
|
541
|
+
name: "Composite",
|
|
542
|
+
className: "SubResourceListResult",
|
|
543
|
+
modelProperties: {
|
|
544
|
+
value: {
|
|
545
|
+
serializedName: "value",
|
|
546
|
+
type: {
|
|
547
|
+
name: "Sequence",
|
|
548
|
+
element: {
|
|
549
|
+
type: {
|
|
550
|
+
name: "Composite",
|
|
551
|
+
className: "SubResource"
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
},
|
|
556
|
+
nextLink: {
|
|
557
|
+
serializedName: "nextLink",
|
|
558
|
+
readOnly: true,
|
|
559
|
+
type: {
|
|
560
|
+
name: "String"
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
};
|
|
566
|
+
const VirtualNetworkDnsForwardingRulesetListResult = {
|
|
567
|
+
type: {
|
|
568
|
+
name: "Composite",
|
|
569
|
+
className: "VirtualNetworkDnsForwardingRulesetListResult",
|
|
570
|
+
modelProperties: {
|
|
571
|
+
value: {
|
|
572
|
+
serializedName: "value",
|
|
573
|
+
type: {
|
|
574
|
+
name: "Sequence",
|
|
575
|
+
element: {
|
|
576
|
+
type: {
|
|
577
|
+
name: "Composite",
|
|
578
|
+
className: "VirtualNetworkDnsForwardingRuleset"
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
nextLink: {
|
|
584
|
+
serializedName: "nextLink",
|
|
585
|
+
readOnly: true,
|
|
586
|
+
type: {
|
|
587
|
+
name: "String"
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
};
|
|
593
|
+
const VirtualNetworkDnsForwardingRuleset = {
|
|
594
|
+
type: {
|
|
595
|
+
name: "Composite",
|
|
596
|
+
className: "VirtualNetworkDnsForwardingRuleset",
|
|
597
|
+
modelProperties: {
|
|
598
|
+
id: {
|
|
599
|
+
serializedName: "id",
|
|
600
|
+
type: {
|
|
601
|
+
name: "String"
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
virtualNetworkLink: {
|
|
605
|
+
serializedName: "properties.virtualNetworkLink",
|
|
606
|
+
type: {
|
|
607
|
+
name: "Composite",
|
|
608
|
+
className: "SubResource"
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
};
|
|
614
|
+
const TrackedResource = {
|
|
615
|
+
type: {
|
|
616
|
+
name: "Composite",
|
|
617
|
+
className: "TrackedResource",
|
|
618
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
|
619
|
+
serializedName: "tags",
|
|
620
|
+
type: {
|
|
621
|
+
name: "Dictionary",
|
|
622
|
+
value: { type: { name: "String" } }
|
|
623
|
+
}
|
|
624
|
+
}, location: {
|
|
625
|
+
serializedName: "location",
|
|
626
|
+
required: true,
|
|
627
|
+
type: {
|
|
628
|
+
name: "String"
|
|
629
|
+
}
|
|
630
|
+
} })
|
|
631
|
+
}
|
|
632
|
+
};
|
|
633
|
+
const ProxyResource = {
|
|
634
|
+
type: {
|
|
635
|
+
name: "Composite",
|
|
636
|
+
className: "ProxyResource",
|
|
637
|
+
modelProperties: Object.assign({}, Resource.type.modelProperties)
|
|
638
|
+
}
|
|
639
|
+
};
|
|
640
|
+
const DnsResolver = {
|
|
641
|
+
type: {
|
|
642
|
+
name: "Composite",
|
|
643
|
+
className: "DnsResolver",
|
|
644
|
+
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { etag: {
|
|
645
|
+
serializedName: "etag",
|
|
646
|
+
readOnly: true,
|
|
647
|
+
type: {
|
|
648
|
+
name: "String"
|
|
649
|
+
}
|
|
650
|
+
}, systemData: {
|
|
651
|
+
serializedName: "systemData",
|
|
652
|
+
type: {
|
|
653
|
+
name: "Composite",
|
|
654
|
+
className: "SystemData"
|
|
655
|
+
}
|
|
656
|
+
}, virtualNetwork: {
|
|
657
|
+
serializedName: "properties.virtualNetwork",
|
|
658
|
+
type: {
|
|
659
|
+
name: "Composite",
|
|
660
|
+
className: "SubResource"
|
|
661
|
+
}
|
|
662
|
+
}, dnsResolverState: {
|
|
663
|
+
serializedName: "properties.dnsResolverState",
|
|
664
|
+
readOnly: true,
|
|
665
|
+
type: {
|
|
666
|
+
name: "String"
|
|
667
|
+
}
|
|
668
|
+
}, provisioningState: {
|
|
669
|
+
serializedName: "properties.provisioningState",
|
|
670
|
+
readOnly: true,
|
|
671
|
+
type: {
|
|
672
|
+
name: "String"
|
|
673
|
+
}
|
|
674
|
+
}, resourceGuid: {
|
|
675
|
+
serializedName: "properties.resourceGuid",
|
|
676
|
+
readOnly: true,
|
|
677
|
+
type: {
|
|
678
|
+
name: "String"
|
|
679
|
+
}
|
|
680
|
+
} })
|
|
681
|
+
}
|
|
682
|
+
};
|
|
683
|
+
const InboundEndpoint = {
|
|
684
|
+
type: {
|
|
685
|
+
name: "Composite",
|
|
686
|
+
className: "InboundEndpoint",
|
|
687
|
+
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { etag: {
|
|
688
|
+
serializedName: "etag",
|
|
689
|
+
readOnly: true,
|
|
690
|
+
type: {
|
|
691
|
+
name: "String"
|
|
692
|
+
}
|
|
693
|
+
}, systemData: {
|
|
694
|
+
serializedName: "systemData",
|
|
695
|
+
type: {
|
|
696
|
+
name: "Composite",
|
|
697
|
+
className: "SystemData"
|
|
698
|
+
}
|
|
699
|
+
}, ipConfigurations: {
|
|
700
|
+
serializedName: "properties.ipConfigurations",
|
|
701
|
+
type: {
|
|
702
|
+
name: "Sequence",
|
|
703
|
+
element: {
|
|
704
|
+
type: {
|
|
705
|
+
name: "Composite",
|
|
706
|
+
className: "IpConfiguration"
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
}, provisioningState: {
|
|
711
|
+
serializedName: "properties.provisioningState",
|
|
712
|
+
readOnly: true,
|
|
713
|
+
type: {
|
|
714
|
+
name: "String"
|
|
715
|
+
}
|
|
716
|
+
}, resourceGuid: {
|
|
717
|
+
serializedName: "properties.resourceGuid",
|
|
718
|
+
readOnly: true,
|
|
719
|
+
type: {
|
|
720
|
+
name: "String"
|
|
721
|
+
}
|
|
722
|
+
} })
|
|
723
|
+
}
|
|
724
|
+
};
|
|
725
|
+
const OutboundEndpoint = {
|
|
726
|
+
type: {
|
|
727
|
+
name: "Composite",
|
|
728
|
+
className: "OutboundEndpoint",
|
|
729
|
+
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { etag: {
|
|
730
|
+
serializedName: "etag",
|
|
731
|
+
readOnly: true,
|
|
732
|
+
type: {
|
|
733
|
+
name: "String"
|
|
734
|
+
}
|
|
735
|
+
}, systemData: {
|
|
736
|
+
serializedName: "systemData",
|
|
737
|
+
type: {
|
|
738
|
+
name: "Composite",
|
|
739
|
+
className: "SystemData"
|
|
740
|
+
}
|
|
741
|
+
}, subnet: {
|
|
742
|
+
serializedName: "properties.subnet",
|
|
743
|
+
type: {
|
|
744
|
+
name: "Composite",
|
|
745
|
+
className: "SubResource"
|
|
746
|
+
}
|
|
747
|
+
}, provisioningState: {
|
|
748
|
+
serializedName: "properties.provisioningState",
|
|
749
|
+
readOnly: true,
|
|
750
|
+
type: {
|
|
751
|
+
name: "String"
|
|
752
|
+
}
|
|
753
|
+
}, resourceGuid: {
|
|
754
|
+
serializedName: "properties.resourceGuid",
|
|
755
|
+
readOnly: true,
|
|
756
|
+
type: {
|
|
757
|
+
name: "String"
|
|
758
|
+
}
|
|
759
|
+
} })
|
|
760
|
+
}
|
|
761
|
+
};
|
|
762
|
+
const DnsForwardingRuleset = {
|
|
763
|
+
type: {
|
|
764
|
+
name: "Composite",
|
|
765
|
+
className: "DnsForwardingRuleset",
|
|
766
|
+
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { etag: {
|
|
767
|
+
serializedName: "etag",
|
|
768
|
+
readOnly: true,
|
|
769
|
+
type: {
|
|
770
|
+
name: "String"
|
|
771
|
+
}
|
|
772
|
+
}, systemData: {
|
|
773
|
+
serializedName: "systemData",
|
|
774
|
+
type: {
|
|
775
|
+
name: "Composite",
|
|
776
|
+
className: "SystemData"
|
|
777
|
+
}
|
|
778
|
+
}, dnsResolverOutboundEndpoints: {
|
|
779
|
+
serializedName: "properties.dnsResolverOutboundEndpoints",
|
|
780
|
+
type: {
|
|
781
|
+
name: "Sequence",
|
|
782
|
+
element: {
|
|
783
|
+
type: {
|
|
784
|
+
name: "Composite",
|
|
785
|
+
className: "SubResource"
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
}, provisioningState: {
|
|
790
|
+
serializedName: "properties.provisioningState",
|
|
791
|
+
readOnly: true,
|
|
792
|
+
type: {
|
|
793
|
+
name: "String"
|
|
794
|
+
}
|
|
795
|
+
}, resourceGuid: {
|
|
796
|
+
serializedName: "properties.resourceGuid",
|
|
797
|
+
readOnly: true,
|
|
798
|
+
type: {
|
|
799
|
+
name: "String"
|
|
800
|
+
}
|
|
801
|
+
} })
|
|
802
|
+
}
|
|
803
|
+
};
|
|
804
|
+
const ForwardingRule = {
|
|
805
|
+
type: {
|
|
806
|
+
name: "Composite",
|
|
807
|
+
className: "ForwardingRule",
|
|
808
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { etag: {
|
|
809
|
+
serializedName: "etag",
|
|
810
|
+
readOnly: true,
|
|
811
|
+
type: {
|
|
812
|
+
name: "String"
|
|
813
|
+
}
|
|
814
|
+
}, systemData: {
|
|
815
|
+
serializedName: "systemData",
|
|
816
|
+
type: {
|
|
817
|
+
name: "Composite",
|
|
818
|
+
className: "SystemData"
|
|
819
|
+
}
|
|
820
|
+
}, domainName: {
|
|
821
|
+
serializedName: "properties.domainName",
|
|
822
|
+
type: {
|
|
823
|
+
name: "String"
|
|
824
|
+
}
|
|
825
|
+
}, targetDnsServers: {
|
|
826
|
+
serializedName: "properties.targetDnsServers",
|
|
827
|
+
type: {
|
|
828
|
+
name: "Sequence",
|
|
829
|
+
element: {
|
|
830
|
+
type: {
|
|
831
|
+
name: "Composite",
|
|
832
|
+
className: "TargetDnsServer"
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
}, metadata: {
|
|
837
|
+
serializedName: "properties.metadata",
|
|
838
|
+
type: {
|
|
839
|
+
name: "Dictionary",
|
|
840
|
+
value: { type: { name: "String" } }
|
|
841
|
+
}
|
|
842
|
+
}, forwardingRuleState: {
|
|
843
|
+
serializedName: "properties.forwardingRuleState",
|
|
844
|
+
type: {
|
|
845
|
+
name: "String"
|
|
846
|
+
}
|
|
847
|
+
}, provisioningState: {
|
|
848
|
+
serializedName: "properties.provisioningState",
|
|
849
|
+
readOnly: true,
|
|
850
|
+
type: {
|
|
851
|
+
name: "String"
|
|
852
|
+
}
|
|
853
|
+
} })
|
|
854
|
+
}
|
|
855
|
+
};
|
|
856
|
+
const VirtualNetworkLink = {
|
|
857
|
+
type: {
|
|
858
|
+
name: "Composite",
|
|
859
|
+
className: "VirtualNetworkLink",
|
|
860
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { etag: {
|
|
861
|
+
serializedName: "etag",
|
|
862
|
+
readOnly: true,
|
|
863
|
+
type: {
|
|
864
|
+
name: "String"
|
|
865
|
+
}
|
|
866
|
+
}, systemData: {
|
|
867
|
+
serializedName: "systemData",
|
|
868
|
+
type: {
|
|
869
|
+
name: "Composite",
|
|
870
|
+
className: "SystemData"
|
|
871
|
+
}
|
|
872
|
+
}, virtualNetwork: {
|
|
873
|
+
serializedName: "properties.virtualNetwork",
|
|
874
|
+
type: {
|
|
875
|
+
name: "Composite",
|
|
876
|
+
className: "SubResource"
|
|
877
|
+
}
|
|
878
|
+
}, metadata: {
|
|
879
|
+
serializedName: "properties.metadata",
|
|
880
|
+
type: {
|
|
881
|
+
name: "Dictionary",
|
|
882
|
+
value: { type: { name: "String" } }
|
|
883
|
+
}
|
|
884
|
+
}, provisioningState: {
|
|
885
|
+
serializedName: "properties.provisioningState",
|
|
886
|
+
readOnly: true,
|
|
887
|
+
type: {
|
|
888
|
+
name: "String"
|
|
889
|
+
}
|
|
890
|
+
} })
|
|
891
|
+
}
|
|
892
|
+
};
|
|
893
|
+
|
|
894
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
895
|
+
__proto__: null,
|
|
896
|
+
SubResource: SubResource,
|
|
897
|
+
SystemData: SystemData,
|
|
898
|
+
Resource: Resource,
|
|
899
|
+
CloudError: CloudError,
|
|
900
|
+
CloudErrorBody: CloudErrorBody,
|
|
901
|
+
DnsResolverPatch: DnsResolverPatch,
|
|
902
|
+
DnsResolverListResult: DnsResolverListResult,
|
|
903
|
+
IpConfiguration: IpConfiguration,
|
|
904
|
+
InboundEndpointPatch: InboundEndpointPatch,
|
|
905
|
+
InboundEndpointListResult: InboundEndpointListResult,
|
|
906
|
+
OutboundEndpointPatch: OutboundEndpointPatch,
|
|
907
|
+
OutboundEndpointListResult: OutboundEndpointListResult,
|
|
908
|
+
DnsForwardingRulesetPatch: DnsForwardingRulesetPatch,
|
|
909
|
+
DnsForwardingRulesetListResult: DnsForwardingRulesetListResult,
|
|
910
|
+
TargetDnsServer: TargetDnsServer,
|
|
911
|
+
ForwardingRulePatch: ForwardingRulePatch,
|
|
912
|
+
ForwardingRuleListResult: ForwardingRuleListResult,
|
|
913
|
+
VirtualNetworkLinkPatch: VirtualNetworkLinkPatch,
|
|
914
|
+
VirtualNetworkLinkListResult: VirtualNetworkLinkListResult,
|
|
915
|
+
SubResourceListResult: SubResourceListResult,
|
|
916
|
+
VirtualNetworkDnsForwardingRulesetListResult: VirtualNetworkDnsForwardingRulesetListResult,
|
|
917
|
+
VirtualNetworkDnsForwardingRuleset: VirtualNetworkDnsForwardingRuleset,
|
|
918
|
+
TrackedResource: TrackedResource,
|
|
919
|
+
ProxyResource: ProxyResource,
|
|
920
|
+
DnsResolver: DnsResolver,
|
|
921
|
+
InboundEndpoint: InboundEndpoint,
|
|
922
|
+
OutboundEndpoint: OutboundEndpoint,
|
|
923
|
+
DnsForwardingRuleset: DnsForwardingRuleset,
|
|
924
|
+
ForwardingRule: ForwardingRule,
|
|
925
|
+
VirtualNetworkLink: VirtualNetworkLink
|
|
926
|
+
});
|
|
927
|
+
|
|
928
|
+
/*
|
|
929
|
+
* Copyright (c) Microsoft Corporation.
|
|
930
|
+
* Licensed under the MIT License.
|
|
931
|
+
*
|
|
932
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
933
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
934
|
+
*/
|
|
935
|
+
const contentType = {
|
|
936
|
+
parameterPath: ["options", "contentType"],
|
|
937
|
+
mapper: {
|
|
938
|
+
defaultValue: "application/json",
|
|
939
|
+
isConstant: true,
|
|
940
|
+
serializedName: "Content-Type",
|
|
941
|
+
type: {
|
|
942
|
+
name: "String"
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
};
|
|
946
|
+
const parameters = {
|
|
947
|
+
parameterPath: "parameters",
|
|
948
|
+
mapper: DnsResolver
|
|
949
|
+
};
|
|
950
|
+
const accept = {
|
|
951
|
+
parameterPath: "accept",
|
|
952
|
+
mapper: {
|
|
953
|
+
defaultValue: "application/json",
|
|
954
|
+
isConstant: true,
|
|
955
|
+
serializedName: "Accept",
|
|
956
|
+
type: {
|
|
957
|
+
name: "String"
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
};
|
|
961
|
+
const $host = {
|
|
962
|
+
parameterPath: "$host",
|
|
963
|
+
mapper: {
|
|
964
|
+
serializedName: "$host",
|
|
965
|
+
required: true,
|
|
966
|
+
type: {
|
|
967
|
+
name: "String"
|
|
968
|
+
}
|
|
969
|
+
},
|
|
970
|
+
skipEncoding: true
|
|
971
|
+
};
|
|
972
|
+
const subscriptionId = {
|
|
973
|
+
parameterPath: "subscriptionId",
|
|
974
|
+
mapper: {
|
|
975
|
+
constraints: {
|
|
976
|
+
MinLength: 1
|
|
977
|
+
},
|
|
978
|
+
serializedName: "subscriptionId",
|
|
979
|
+
required: true,
|
|
980
|
+
type: {
|
|
981
|
+
name: "String"
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
};
|
|
985
|
+
const resourceGroupName = {
|
|
986
|
+
parameterPath: "resourceGroupName",
|
|
987
|
+
mapper: {
|
|
988
|
+
constraints: {
|
|
989
|
+
MaxLength: 90,
|
|
990
|
+
MinLength: 1
|
|
991
|
+
},
|
|
992
|
+
serializedName: "resourceGroupName",
|
|
993
|
+
required: true,
|
|
994
|
+
type: {
|
|
995
|
+
name: "String"
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
};
|
|
999
|
+
const dnsResolverName = {
|
|
1000
|
+
parameterPath: "dnsResolverName",
|
|
1001
|
+
mapper: {
|
|
1002
|
+
serializedName: "dnsResolverName",
|
|
1003
|
+
required: true,
|
|
1004
|
+
type: {
|
|
1005
|
+
name: "String"
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
};
|
|
1009
|
+
const apiVersion = {
|
|
1010
|
+
parameterPath: "apiVersion",
|
|
1011
|
+
mapper: {
|
|
1012
|
+
defaultValue: "2020-04-01-preview",
|
|
1013
|
+
isConstant: true,
|
|
1014
|
+
serializedName: "api-version",
|
|
1015
|
+
type: {
|
|
1016
|
+
name: "String"
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
};
|
|
1020
|
+
const ifMatch = {
|
|
1021
|
+
parameterPath: ["options", "ifMatch"],
|
|
1022
|
+
mapper: {
|
|
1023
|
+
serializedName: "If-Match",
|
|
1024
|
+
type: {
|
|
1025
|
+
name: "String"
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
};
|
|
1029
|
+
const ifNoneMatch = {
|
|
1030
|
+
parameterPath: ["options", "ifNoneMatch"],
|
|
1031
|
+
mapper: {
|
|
1032
|
+
serializedName: "If-None-Match",
|
|
1033
|
+
type: {
|
|
1034
|
+
name: "String"
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
};
|
|
1038
|
+
const parameters1 = {
|
|
1039
|
+
parameterPath: "parameters",
|
|
1040
|
+
mapper: DnsResolverPatch
|
|
1041
|
+
};
|
|
1042
|
+
const top = {
|
|
1043
|
+
parameterPath: ["options", "top"],
|
|
1044
|
+
mapper: {
|
|
1045
|
+
serializedName: "$top",
|
|
1046
|
+
type: {
|
|
1047
|
+
name: "Number"
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
};
|
|
1051
|
+
const virtualNetworkName = {
|
|
1052
|
+
parameterPath: "virtualNetworkName",
|
|
1053
|
+
mapper: {
|
|
1054
|
+
serializedName: "virtualNetworkName",
|
|
1055
|
+
required: true,
|
|
1056
|
+
type: {
|
|
1057
|
+
name: "String"
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
};
|
|
1061
|
+
const nextLink = {
|
|
1062
|
+
parameterPath: "nextLink",
|
|
1063
|
+
mapper: {
|
|
1064
|
+
serializedName: "nextLink",
|
|
1065
|
+
required: true,
|
|
1066
|
+
type: {
|
|
1067
|
+
name: "String"
|
|
1068
|
+
}
|
|
1069
|
+
},
|
|
1070
|
+
skipEncoding: true
|
|
1071
|
+
};
|
|
1072
|
+
const parameters2 = {
|
|
1073
|
+
parameterPath: "parameters",
|
|
1074
|
+
mapper: InboundEndpoint
|
|
1075
|
+
};
|
|
1076
|
+
const inboundEndpointName = {
|
|
1077
|
+
parameterPath: "inboundEndpointName",
|
|
1078
|
+
mapper: {
|
|
1079
|
+
serializedName: "inboundEndpointName",
|
|
1080
|
+
required: true,
|
|
1081
|
+
type: {
|
|
1082
|
+
name: "String"
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
};
|
|
1086
|
+
const parameters3 = {
|
|
1087
|
+
parameterPath: "parameters",
|
|
1088
|
+
mapper: InboundEndpointPatch
|
|
1089
|
+
};
|
|
1090
|
+
const parameters4 = {
|
|
1091
|
+
parameterPath: "parameters",
|
|
1092
|
+
mapper: OutboundEndpoint
|
|
1093
|
+
};
|
|
1094
|
+
const outboundEndpointName = {
|
|
1095
|
+
parameterPath: "outboundEndpointName",
|
|
1096
|
+
mapper: {
|
|
1097
|
+
serializedName: "outboundEndpointName",
|
|
1098
|
+
required: true,
|
|
1099
|
+
type: {
|
|
1100
|
+
name: "String"
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
};
|
|
1104
|
+
const parameters5 = {
|
|
1105
|
+
parameterPath: "parameters",
|
|
1106
|
+
mapper: OutboundEndpointPatch
|
|
1107
|
+
};
|
|
1108
|
+
const parameters6 = {
|
|
1109
|
+
parameterPath: "parameters",
|
|
1110
|
+
mapper: DnsForwardingRuleset
|
|
1111
|
+
};
|
|
1112
|
+
const dnsForwardingRulesetName = {
|
|
1113
|
+
parameterPath: "dnsForwardingRulesetName",
|
|
1114
|
+
mapper: {
|
|
1115
|
+
serializedName: "dnsForwardingRulesetName",
|
|
1116
|
+
required: true,
|
|
1117
|
+
type: {
|
|
1118
|
+
name: "String"
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
};
|
|
1122
|
+
const parameters7 = {
|
|
1123
|
+
parameterPath: "parameters",
|
|
1124
|
+
mapper: DnsForwardingRulesetPatch
|
|
1125
|
+
};
|
|
1126
|
+
const parameters8 = {
|
|
1127
|
+
parameterPath: "parameters",
|
|
1128
|
+
mapper: ForwardingRule
|
|
1129
|
+
};
|
|
1130
|
+
const forwardingRuleName = {
|
|
1131
|
+
parameterPath: "forwardingRuleName",
|
|
1132
|
+
mapper: {
|
|
1133
|
+
serializedName: "forwardingRuleName",
|
|
1134
|
+
required: true,
|
|
1135
|
+
type: {
|
|
1136
|
+
name: "String"
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
};
|
|
1140
|
+
const parameters9 = {
|
|
1141
|
+
parameterPath: "parameters",
|
|
1142
|
+
mapper: ForwardingRulePatch
|
|
1143
|
+
};
|
|
1144
|
+
const parameters10 = {
|
|
1145
|
+
parameterPath: "parameters",
|
|
1146
|
+
mapper: VirtualNetworkLink
|
|
1147
|
+
};
|
|
1148
|
+
const virtualNetworkLinkName = {
|
|
1149
|
+
parameterPath: "virtualNetworkLinkName",
|
|
1150
|
+
mapper: {
|
|
1151
|
+
serializedName: "virtualNetworkLinkName",
|
|
1152
|
+
required: true,
|
|
1153
|
+
type: {
|
|
1154
|
+
name: "String"
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
};
|
|
1158
|
+
const parameters11 = {
|
|
1159
|
+
parameterPath: "parameters",
|
|
1160
|
+
mapper: VirtualNetworkLinkPatch
|
|
1161
|
+
};
|
|
1162
|
+
|
|
1163
|
+
/*
|
|
1164
|
+
* Copyright (c) Microsoft Corporation.
|
|
1165
|
+
* Licensed under the MIT License.
|
|
1166
|
+
*
|
|
1167
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1168
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1169
|
+
*/
|
|
1170
|
+
class LroImpl {
|
|
1171
|
+
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
1172
|
+
this.sendOperationFn = sendOperationFn;
|
|
1173
|
+
this.args = args;
|
|
1174
|
+
this.spec = spec;
|
|
1175
|
+
this.requestPath = requestPath;
|
|
1176
|
+
this.requestMethod = requestMethod;
|
|
1177
|
+
}
|
|
1178
|
+
sendInitialRequest() {
|
|
1179
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1180
|
+
return this.sendOperationFn(this.args, this.spec);
|
|
1181
|
+
});
|
|
1182
|
+
}
|
|
1183
|
+
sendPollRequest(path) {
|
|
1184
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1185
|
+
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
1186
|
+
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
1187
|
+
});
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
/*
|
|
1192
|
+
* Copyright (c) Microsoft Corporation.
|
|
1193
|
+
* Licensed under the MIT License.
|
|
1194
|
+
*
|
|
1195
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1196
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1197
|
+
*/
|
|
1198
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1199
|
+
/** Class containing DnsResolvers operations. */
|
|
1200
|
+
class DnsResolversImpl {
|
|
1201
|
+
/**
|
|
1202
|
+
* Initialize a new instance of the class DnsResolvers class.
|
|
1203
|
+
* @param client Reference to the service client
|
|
1204
|
+
*/
|
|
1205
|
+
constructor(client) {
|
|
1206
|
+
this.client = client;
|
|
1207
|
+
}
|
|
1208
|
+
/**
|
|
1209
|
+
* Lists DNS resolvers within a resource group.
|
|
1210
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1211
|
+
* @param options The options parameters.
|
|
1212
|
+
*/
|
|
1213
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
1214
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
1215
|
+
return {
|
|
1216
|
+
next() {
|
|
1217
|
+
return iter.next();
|
|
1218
|
+
},
|
|
1219
|
+
[Symbol.asyncIterator]() {
|
|
1220
|
+
return this;
|
|
1221
|
+
},
|
|
1222
|
+
byPage: () => {
|
|
1223
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
1224
|
+
}
|
|
1225
|
+
};
|
|
1226
|
+
}
|
|
1227
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
1228
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1229
|
+
let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
1230
|
+
yield yield tslib.__await(result.value || []);
|
|
1231
|
+
let continuationToken = result.nextLink;
|
|
1232
|
+
while (continuationToken) {
|
|
1233
|
+
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1234
|
+
continuationToken = result.nextLink;
|
|
1235
|
+
yield yield tslib.__await(result.value || []);
|
|
1236
|
+
}
|
|
1237
|
+
});
|
|
1238
|
+
}
|
|
1239
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
1240
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
1241
|
+
var e_1, _a;
|
|
1242
|
+
try {
|
|
1243
|
+
for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1244
|
+
const page = _c.value;
|
|
1245
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1249
|
+
finally {
|
|
1250
|
+
try {
|
|
1251
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1252
|
+
}
|
|
1253
|
+
finally { if (e_1) throw e_1.error; }
|
|
1254
|
+
}
|
|
1255
|
+
});
|
|
1256
|
+
}
|
|
1257
|
+
/**
|
|
1258
|
+
* Lists DNS resolvers in all resource groups of a subscription.
|
|
1259
|
+
* @param options The options parameters.
|
|
1260
|
+
*/
|
|
1261
|
+
list(options) {
|
|
1262
|
+
const iter = this.listPagingAll(options);
|
|
1263
|
+
return {
|
|
1264
|
+
next() {
|
|
1265
|
+
return iter.next();
|
|
1266
|
+
},
|
|
1267
|
+
[Symbol.asyncIterator]() {
|
|
1268
|
+
return this;
|
|
1269
|
+
},
|
|
1270
|
+
byPage: () => {
|
|
1271
|
+
return this.listPagingPage(options);
|
|
1272
|
+
}
|
|
1273
|
+
};
|
|
1274
|
+
}
|
|
1275
|
+
listPagingPage(options) {
|
|
1276
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1277
|
+
let result = yield tslib.__await(this._list(options));
|
|
1278
|
+
yield yield tslib.__await(result.value || []);
|
|
1279
|
+
let continuationToken = result.nextLink;
|
|
1280
|
+
while (continuationToken) {
|
|
1281
|
+
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
1282
|
+
continuationToken = result.nextLink;
|
|
1283
|
+
yield yield tslib.__await(result.value || []);
|
|
1284
|
+
}
|
|
1285
|
+
});
|
|
1286
|
+
}
|
|
1287
|
+
listPagingAll(options) {
|
|
1288
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1289
|
+
var e_2, _a;
|
|
1290
|
+
try {
|
|
1291
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1292
|
+
const page = _c.value;
|
|
1293
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1297
|
+
finally {
|
|
1298
|
+
try {
|
|
1299
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1300
|
+
}
|
|
1301
|
+
finally { if (e_2) throw e_2.error; }
|
|
1302
|
+
}
|
|
1303
|
+
});
|
|
1304
|
+
}
|
|
1305
|
+
/**
|
|
1306
|
+
* Lists DNS resolver resource IDs linked to a virtual network.
|
|
1307
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1308
|
+
* @param virtualNetworkName The name of the virtual network.
|
|
1309
|
+
* @param options The options parameters.
|
|
1310
|
+
*/
|
|
1311
|
+
listByVirtualNetwork(resourceGroupName, virtualNetworkName, options) {
|
|
1312
|
+
const iter = this.listByVirtualNetworkPagingAll(resourceGroupName, virtualNetworkName, options);
|
|
1313
|
+
return {
|
|
1314
|
+
next() {
|
|
1315
|
+
return iter.next();
|
|
1316
|
+
},
|
|
1317
|
+
[Symbol.asyncIterator]() {
|
|
1318
|
+
return this;
|
|
1319
|
+
},
|
|
1320
|
+
byPage: () => {
|
|
1321
|
+
return this.listByVirtualNetworkPagingPage(resourceGroupName, virtualNetworkName, options);
|
|
1322
|
+
}
|
|
1323
|
+
};
|
|
1324
|
+
}
|
|
1325
|
+
listByVirtualNetworkPagingPage(resourceGroupName, virtualNetworkName, options) {
|
|
1326
|
+
return tslib.__asyncGenerator(this, arguments, function* listByVirtualNetworkPagingPage_1() {
|
|
1327
|
+
let result = yield tslib.__await(this._listByVirtualNetwork(resourceGroupName, virtualNetworkName, options));
|
|
1328
|
+
yield yield tslib.__await(result.value || []);
|
|
1329
|
+
let continuationToken = result.nextLink;
|
|
1330
|
+
while (continuationToken) {
|
|
1331
|
+
result = yield tslib.__await(this._listByVirtualNetworkNext(resourceGroupName, virtualNetworkName, continuationToken, options));
|
|
1332
|
+
continuationToken = result.nextLink;
|
|
1333
|
+
yield yield tslib.__await(result.value || []);
|
|
1334
|
+
}
|
|
1335
|
+
});
|
|
1336
|
+
}
|
|
1337
|
+
listByVirtualNetworkPagingAll(resourceGroupName, virtualNetworkName, options) {
|
|
1338
|
+
return tslib.__asyncGenerator(this, arguments, function* listByVirtualNetworkPagingAll_1() {
|
|
1339
|
+
var e_3, _a;
|
|
1340
|
+
try {
|
|
1341
|
+
for (var _b = tslib.__asyncValues(this.listByVirtualNetworkPagingPage(resourceGroupName, virtualNetworkName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1342
|
+
const page = _c.value;
|
|
1343
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
1347
|
+
finally {
|
|
1348
|
+
try {
|
|
1349
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1350
|
+
}
|
|
1351
|
+
finally { if (e_3) throw e_3.error; }
|
|
1352
|
+
}
|
|
1353
|
+
});
|
|
1354
|
+
}
|
|
1355
|
+
/**
|
|
1356
|
+
* Creates or updates a DNS resolver.
|
|
1357
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1358
|
+
* @param dnsResolverName The name of the DNS resolver.
|
|
1359
|
+
* @param parameters Parameters supplied to the CreateOrUpdate operation.
|
|
1360
|
+
* @param options The options parameters.
|
|
1361
|
+
*/
|
|
1362
|
+
beginCreateOrUpdate(resourceGroupName, dnsResolverName, parameters, options) {
|
|
1363
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1364
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1365
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1366
|
+
});
|
|
1367
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1368
|
+
var _a;
|
|
1369
|
+
let currentRawResponse = undefined;
|
|
1370
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1371
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1372
|
+
currentRawResponse = rawResponse;
|
|
1373
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1374
|
+
};
|
|
1375
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1376
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1377
|
+
return {
|
|
1378
|
+
flatResponse,
|
|
1379
|
+
rawResponse: {
|
|
1380
|
+
statusCode: currentRawResponse.status,
|
|
1381
|
+
body: currentRawResponse.parsedBody,
|
|
1382
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1383
|
+
}
|
|
1384
|
+
};
|
|
1385
|
+
});
|
|
1386
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, dnsResolverName, parameters, options }, createOrUpdateOperationSpec$5);
|
|
1387
|
+
return new coreLro.LroEngine(lro, {
|
|
1388
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1389
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1390
|
+
});
|
|
1391
|
+
});
|
|
1392
|
+
}
|
|
1393
|
+
/**
|
|
1394
|
+
* Creates or updates a DNS resolver.
|
|
1395
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1396
|
+
* @param dnsResolverName The name of the DNS resolver.
|
|
1397
|
+
* @param parameters Parameters supplied to the CreateOrUpdate operation.
|
|
1398
|
+
* @param options The options parameters.
|
|
1399
|
+
*/
|
|
1400
|
+
beginCreateOrUpdateAndWait(resourceGroupName, dnsResolverName, parameters, options) {
|
|
1401
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1402
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, dnsResolverName, parameters, options);
|
|
1403
|
+
return poller.pollUntilDone();
|
|
1404
|
+
});
|
|
1405
|
+
}
|
|
1406
|
+
/**
|
|
1407
|
+
* Updates a DNS resolver.
|
|
1408
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1409
|
+
* @param dnsResolverName The name of the DNS resolver.
|
|
1410
|
+
* @param parameters Parameters supplied to the Update operation.
|
|
1411
|
+
* @param options The options parameters.
|
|
1412
|
+
*/
|
|
1413
|
+
beginUpdate(resourceGroupName, dnsResolverName, parameters, options) {
|
|
1414
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1415
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1416
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1417
|
+
});
|
|
1418
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1419
|
+
var _a;
|
|
1420
|
+
let currentRawResponse = undefined;
|
|
1421
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1422
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1423
|
+
currentRawResponse = rawResponse;
|
|
1424
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1425
|
+
};
|
|
1426
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1427
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1428
|
+
return {
|
|
1429
|
+
flatResponse,
|
|
1430
|
+
rawResponse: {
|
|
1431
|
+
statusCode: currentRawResponse.status,
|
|
1432
|
+
body: currentRawResponse.parsedBody,
|
|
1433
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1434
|
+
}
|
|
1435
|
+
};
|
|
1436
|
+
});
|
|
1437
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, dnsResolverName, parameters, options }, updateOperationSpec$5);
|
|
1438
|
+
return new coreLro.LroEngine(lro, {
|
|
1439
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1440
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1441
|
+
});
|
|
1442
|
+
});
|
|
1443
|
+
}
|
|
1444
|
+
/**
|
|
1445
|
+
* Updates a DNS resolver.
|
|
1446
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1447
|
+
* @param dnsResolverName The name of the DNS resolver.
|
|
1448
|
+
* @param parameters Parameters supplied to the Update operation.
|
|
1449
|
+
* @param options The options parameters.
|
|
1450
|
+
*/
|
|
1451
|
+
beginUpdateAndWait(resourceGroupName, dnsResolverName, parameters, options) {
|
|
1452
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1453
|
+
const poller = yield this.beginUpdate(resourceGroupName, dnsResolverName, parameters, options);
|
|
1454
|
+
return poller.pollUntilDone();
|
|
1455
|
+
});
|
|
1456
|
+
}
|
|
1457
|
+
/**
|
|
1458
|
+
* Deletes a DNS resolver. WARNING: This operation cannot be undone.
|
|
1459
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1460
|
+
* @param dnsResolverName The name of the DNS resolver.
|
|
1461
|
+
* @param options The options parameters.
|
|
1462
|
+
*/
|
|
1463
|
+
beginDelete(resourceGroupName, dnsResolverName, options) {
|
|
1464
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1465
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1466
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1467
|
+
});
|
|
1468
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1469
|
+
var _a;
|
|
1470
|
+
let currentRawResponse = undefined;
|
|
1471
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1472
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1473
|
+
currentRawResponse = rawResponse;
|
|
1474
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1475
|
+
};
|
|
1476
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1477
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1478
|
+
return {
|
|
1479
|
+
flatResponse,
|
|
1480
|
+
rawResponse: {
|
|
1481
|
+
statusCode: currentRawResponse.status,
|
|
1482
|
+
body: currentRawResponse.parsedBody,
|
|
1483
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1484
|
+
}
|
|
1485
|
+
};
|
|
1486
|
+
});
|
|
1487
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, dnsResolverName, options }, deleteOperationSpec$5);
|
|
1488
|
+
return new coreLro.LroEngine(lro, {
|
|
1489
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1490
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1491
|
+
});
|
|
1492
|
+
});
|
|
1493
|
+
}
|
|
1494
|
+
/**
|
|
1495
|
+
* Deletes a DNS resolver. WARNING: This operation cannot be undone.
|
|
1496
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1497
|
+
* @param dnsResolverName The name of the DNS resolver.
|
|
1498
|
+
* @param options The options parameters.
|
|
1499
|
+
*/
|
|
1500
|
+
beginDeleteAndWait(resourceGroupName, dnsResolverName, options) {
|
|
1501
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1502
|
+
const poller = yield this.beginDelete(resourceGroupName, dnsResolverName, options);
|
|
1503
|
+
return poller.pollUntilDone();
|
|
1504
|
+
});
|
|
1505
|
+
}
|
|
1506
|
+
/**
|
|
1507
|
+
* Gets properties of a DNS resolver.
|
|
1508
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1509
|
+
* @param dnsResolverName The name of the DNS resolver.
|
|
1510
|
+
* @param options The options parameters.
|
|
1511
|
+
*/
|
|
1512
|
+
get(resourceGroupName, dnsResolverName, options) {
|
|
1513
|
+
return this.client.sendOperationRequest({ resourceGroupName, dnsResolverName, options }, getOperationSpec$5);
|
|
1514
|
+
}
|
|
1515
|
+
/**
|
|
1516
|
+
* Lists DNS resolvers within a resource group.
|
|
1517
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1518
|
+
* @param options The options parameters.
|
|
1519
|
+
*/
|
|
1520
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
1521
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
|
|
1522
|
+
}
|
|
1523
|
+
/**
|
|
1524
|
+
* Lists DNS resolvers in all resource groups of a subscription.
|
|
1525
|
+
* @param options The options parameters.
|
|
1526
|
+
*/
|
|
1527
|
+
_list(options) {
|
|
1528
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$5);
|
|
1529
|
+
}
|
|
1530
|
+
/**
|
|
1531
|
+
* Lists DNS resolver resource IDs linked to a virtual network.
|
|
1532
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1533
|
+
* @param virtualNetworkName The name of the virtual network.
|
|
1534
|
+
* @param options The options parameters.
|
|
1535
|
+
*/
|
|
1536
|
+
_listByVirtualNetwork(resourceGroupName, virtualNetworkName, options) {
|
|
1537
|
+
return this.client.sendOperationRequest({ resourceGroupName, virtualNetworkName, options }, listByVirtualNetworkOperationSpec$1);
|
|
1538
|
+
}
|
|
1539
|
+
/**
|
|
1540
|
+
* ListByResourceGroupNext
|
|
1541
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1542
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
1543
|
+
* @param options The options parameters.
|
|
1544
|
+
*/
|
|
1545
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
1546
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$1);
|
|
1547
|
+
}
|
|
1548
|
+
/**
|
|
1549
|
+
* ListNext
|
|
1550
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
1551
|
+
* @param options The options parameters.
|
|
1552
|
+
*/
|
|
1553
|
+
_listNext(nextLink, options) {
|
|
1554
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$5);
|
|
1555
|
+
}
|
|
1556
|
+
/**
|
|
1557
|
+
* ListByVirtualNetworkNext
|
|
1558
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1559
|
+
* @param virtualNetworkName The name of the virtual network.
|
|
1560
|
+
* @param nextLink The nextLink from the previous successful call to the ListByVirtualNetwork method.
|
|
1561
|
+
* @param options The options parameters.
|
|
1562
|
+
*/
|
|
1563
|
+
_listByVirtualNetworkNext(resourceGroupName, virtualNetworkName, nextLink, options) {
|
|
1564
|
+
return this.client.sendOperationRequest({ resourceGroupName, virtualNetworkName, nextLink, options }, listByVirtualNetworkNextOperationSpec$1);
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
// Operation Specifications
|
|
1568
|
+
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1569
|
+
const createOrUpdateOperationSpec$5 = {
|
|
1570
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}",
|
|
1571
|
+
httpMethod: "PUT",
|
|
1572
|
+
responses: {
|
|
1573
|
+
200: {
|
|
1574
|
+
bodyMapper: DnsResolver
|
|
1575
|
+
},
|
|
1576
|
+
201: {
|
|
1577
|
+
bodyMapper: DnsResolver
|
|
1578
|
+
},
|
|
1579
|
+
202: {
|
|
1580
|
+
bodyMapper: DnsResolver
|
|
1581
|
+
},
|
|
1582
|
+
204: {
|
|
1583
|
+
bodyMapper: DnsResolver
|
|
1584
|
+
},
|
|
1585
|
+
default: {
|
|
1586
|
+
bodyMapper: CloudError
|
|
1587
|
+
}
|
|
1588
|
+
},
|
|
1589
|
+
requestBody: parameters,
|
|
1590
|
+
queryParameters: [apiVersion],
|
|
1591
|
+
urlParameters: [
|
|
1592
|
+
$host,
|
|
1593
|
+
subscriptionId,
|
|
1594
|
+
resourceGroupName,
|
|
1595
|
+
dnsResolverName
|
|
1596
|
+
],
|
|
1597
|
+
headerParameters: [
|
|
1598
|
+
contentType,
|
|
1599
|
+
accept,
|
|
1600
|
+
ifMatch,
|
|
1601
|
+
ifNoneMatch
|
|
1602
|
+
],
|
|
1603
|
+
mediaType: "json",
|
|
1604
|
+
serializer: serializer$5
|
|
1605
|
+
};
|
|
1606
|
+
const updateOperationSpec$5 = {
|
|
1607
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}",
|
|
1608
|
+
httpMethod: "PATCH",
|
|
1609
|
+
responses: {
|
|
1610
|
+
200: {
|
|
1611
|
+
bodyMapper: DnsResolver
|
|
1612
|
+
},
|
|
1613
|
+
201: {
|
|
1614
|
+
bodyMapper: DnsResolver
|
|
1615
|
+
},
|
|
1616
|
+
202: {
|
|
1617
|
+
bodyMapper: DnsResolver
|
|
1618
|
+
},
|
|
1619
|
+
204: {
|
|
1620
|
+
bodyMapper: DnsResolver
|
|
1621
|
+
},
|
|
1622
|
+
default: {
|
|
1623
|
+
bodyMapper: CloudError
|
|
1624
|
+
}
|
|
1625
|
+
},
|
|
1626
|
+
requestBody: parameters1,
|
|
1627
|
+
queryParameters: [apiVersion],
|
|
1628
|
+
urlParameters: [
|
|
1629
|
+
$host,
|
|
1630
|
+
subscriptionId,
|
|
1631
|
+
resourceGroupName,
|
|
1632
|
+
dnsResolverName
|
|
1633
|
+
],
|
|
1634
|
+
headerParameters: [
|
|
1635
|
+
contentType,
|
|
1636
|
+
accept,
|
|
1637
|
+
ifMatch
|
|
1638
|
+
],
|
|
1639
|
+
mediaType: "json",
|
|
1640
|
+
serializer: serializer$5
|
|
1641
|
+
};
|
|
1642
|
+
const deleteOperationSpec$5 = {
|
|
1643
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}",
|
|
1644
|
+
httpMethod: "DELETE",
|
|
1645
|
+
responses: {
|
|
1646
|
+
200: {},
|
|
1647
|
+
201: {},
|
|
1648
|
+
202: {},
|
|
1649
|
+
204: {},
|
|
1650
|
+
default: {
|
|
1651
|
+
bodyMapper: CloudError
|
|
1652
|
+
}
|
|
1653
|
+
},
|
|
1654
|
+
queryParameters: [apiVersion],
|
|
1655
|
+
urlParameters: [
|
|
1656
|
+
$host,
|
|
1657
|
+
subscriptionId,
|
|
1658
|
+
resourceGroupName,
|
|
1659
|
+
dnsResolverName
|
|
1660
|
+
],
|
|
1661
|
+
headerParameters: [accept, ifMatch],
|
|
1662
|
+
serializer: serializer$5
|
|
1663
|
+
};
|
|
1664
|
+
const getOperationSpec$5 = {
|
|
1665
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}",
|
|
1666
|
+
httpMethod: "GET",
|
|
1667
|
+
responses: {
|
|
1668
|
+
200: {
|
|
1669
|
+
bodyMapper: DnsResolver
|
|
1670
|
+
},
|
|
1671
|
+
default: {
|
|
1672
|
+
bodyMapper: CloudError
|
|
1673
|
+
}
|
|
1674
|
+
},
|
|
1675
|
+
queryParameters: [apiVersion],
|
|
1676
|
+
urlParameters: [
|
|
1677
|
+
$host,
|
|
1678
|
+
subscriptionId,
|
|
1679
|
+
resourceGroupName,
|
|
1680
|
+
dnsResolverName
|
|
1681
|
+
],
|
|
1682
|
+
headerParameters: [accept],
|
|
1683
|
+
serializer: serializer$5
|
|
1684
|
+
};
|
|
1685
|
+
const listByResourceGroupOperationSpec$1 = {
|
|
1686
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers",
|
|
1687
|
+
httpMethod: "GET",
|
|
1688
|
+
responses: {
|
|
1689
|
+
200: {
|
|
1690
|
+
bodyMapper: DnsResolverListResult
|
|
1691
|
+
},
|
|
1692
|
+
default: {
|
|
1693
|
+
bodyMapper: CloudError
|
|
1694
|
+
}
|
|
1695
|
+
},
|
|
1696
|
+
queryParameters: [apiVersion, top],
|
|
1697
|
+
urlParameters: [
|
|
1698
|
+
$host,
|
|
1699
|
+
subscriptionId,
|
|
1700
|
+
resourceGroupName
|
|
1701
|
+
],
|
|
1702
|
+
headerParameters: [accept],
|
|
1703
|
+
serializer: serializer$5
|
|
1704
|
+
};
|
|
1705
|
+
const listOperationSpec$5 = {
|
|
1706
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolvers",
|
|
1707
|
+
httpMethod: "GET",
|
|
1708
|
+
responses: {
|
|
1709
|
+
200: {
|
|
1710
|
+
bodyMapper: DnsResolverListResult
|
|
1711
|
+
},
|
|
1712
|
+
default: {
|
|
1713
|
+
bodyMapper: CloudError
|
|
1714
|
+
}
|
|
1715
|
+
},
|
|
1716
|
+
queryParameters: [apiVersion, top],
|
|
1717
|
+
urlParameters: [$host, subscriptionId],
|
|
1718
|
+
headerParameters: [accept],
|
|
1719
|
+
serializer: serializer$5
|
|
1720
|
+
};
|
|
1721
|
+
const listByVirtualNetworkOperationSpec$1 = {
|
|
1722
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsResolvers",
|
|
1723
|
+
httpMethod: "POST",
|
|
1724
|
+
responses: {
|
|
1725
|
+
200: {
|
|
1726
|
+
bodyMapper: SubResourceListResult
|
|
1727
|
+
},
|
|
1728
|
+
default: {
|
|
1729
|
+
bodyMapper: CloudError
|
|
1730
|
+
}
|
|
1731
|
+
},
|
|
1732
|
+
queryParameters: [apiVersion, top],
|
|
1733
|
+
urlParameters: [
|
|
1734
|
+
$host,
|
|
1735
|
+
subscriptionId,
|
|
1736
|
+
resourceGroupName,
|
|
1737
|
+
virtualNetworkName
|
|
1738
|
+
],
|
|
1739
|
+
headerParameters: [accept],
|
|
1740
|
+
serializer: serializer$5
|
|
1741
|
+
};
|
|
1742
|
+
const listByResourceGroupNextOperationSpec$1 = {
|
|
1743
|
+
path: "{nextLink}",
|
|
1744
|
+
httpMethod: "GET",
|
|
1745
|
+
responses: {
|
|
1746
|
+
200: {
|
|
1747
|
+
bodyMapper: DnsResolverListResult
|
|
1748
|
+
},
|
|
1749
|
+
default: {
|
|
1750
|
+
bodyMapper: CloudError
|
|
1751
|
+
}
|
|
1752
|
+
},
|
|
1753
|
+
queryParameters: [apiVersion, top],
|
|
1754
|
+
urlParameters: [
|
|
1755
|
+
$host,
|
|
1756
|
+
subscriptionId,
|
|
1757
|
+
resourceGroupName,
|
|
1758
|
+
nextLink
|
|
1759
|
+
],
|
|
1760
|
+
headerParameters: [accept],
|
|
1761
|
+
serializer: serializer$5
|
|
1762
|
+
};
|
|
1763
|
+
const listNextOperationSpec$5 = {
|
|
1764
|
+
path: "{nextLink}",
|
|
1765
|
+
httpMethod: "GET",
|
|
1766
|
+
responses: {
|
|
1767
|
+
200: {
|
|
1768
|
+
bodyMapper: DnsResolverListResult
|
|
1769
|
+
},
|
|
1770
|
+
default: {
|
|
1771
|
+
bodyMapper: CloudError
|
|
1772
|
+
}
|
|
1773
|
+
},
|
|
1774
|
+
queryParameters: [apiVersion, top],
|
|
1775
|
+
urlParameters: [
|
|
1776
|
+
$host,
|
|
1777
|
+
subscriptionId,
|
|
1778
|
+
nextLink
|
|
1779
|
+
],
|
|
1780
|
+
headerParameters: [accept],
|
|
1781
|
+
serializer: serializer$5
|
|
1782
|
+
};
|
|
1783
|
+
const listByVirtualNetworkNextOperationSpec$1 = {
|
|
1784
|
+
path: "{nextLink}",
|
|
1785
|
+
httpMethod: "GET",
|
|
1786
|
+
responses: {
|
|
1787
|
+
200: {
|
|
1788
|
+
bodyMapper: SubResourceListResult
|
|
1789
|
+
},
|
|
1790
|
+
default: {
|
|
1791
|
+
bodyMapper: CloudError
|
|
1792
|
+
}
|
|
1793
|
+
},
|
|
1794
|
+
queryParameters: [apiVersion, top],
|
|
1795
|
+
urlParameters: [
|
|
1796
|
+
$host,
|
|
1797
|
+
subscriptionId,
|
|
1798
|
+
resourceGroupName,
|
|
1799
|
+
virtualNetworkName,
|
|
1800
|
+
nextLink
|
|
1801
|
+
],
|
|
1802
|
+
headerParameters: [accept],
|
|
1803
|
+
serializer: serializer$5
|
|
1804
|
+
};
|
|
1805
|
+
|
|
1806
|
+
/*
|
|
1807
|
+
* Copyright (c) Microsoft Corporation.
|
|
1808
|
+
* Licensed under the MIT License.
|
|
1809
|
+
*
|
|
1810
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1811
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1812
|
+
*/
|
|
1813
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1814
|
+
/** Class containing InboundEndpoints operations. */
|
|
1815
|
+
class InboundEndpointsImpl {
|
|
1816
|
+
/**
|
|
1817
|
+
* Initialize a new instance of the class InboundEndpoints class.
|
|
1818
|
+
* @param client Reference to the service client
|
|
1819
|
+
*/
|
|
1820
|
+
constructor(client) {
|
|
1821
|
+
this.client = client;
|
|
1822
|
+
}
|
|
1823
|
+
/**
|
|
1824
|
+
* Lists inbound endpoints for a DNS resolver.
|
|
1825
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1826
|
+
* @param dnsResolverName The name of the DNS resolver.
|
|
1827
|
+
* @param options The options parameters.
|
|
1828
|
+
*/
|
|
1829
|
+
list(resourceGroupName, dnsResolverName, options) {
|
|
1830
|
+
const iter = this.listPagingAll(resourceGroupName, dnsResolverName, options);
|
|
1831
|
+
return {
|
|
1832
|
+
next() {
|
|
1833
|
+
return iter.next();
|
|
1834
|
+
},
|
|
1835
|
+
[Symbol.asyncIterator]() {
|
|
1836
|
+
return this;
|
|
1837
|
+
},
|
|
1838
|
+
byPage: () => {
|
|
1839
|
+
return this.listPagingPage(resourceGroupName, dnsResolverName, options);
|
|
1840
|
+
}
|
|
1841
|
+
};
|
|
1842
|
+
}
|
|
1843
|
+
listPagingPage(resourceGroupName, dnsResolverName, options) {
|
|
1844
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1845
|
+
let result = yield tslib.__await(this._list(resourceGroupName, dnsResolverName, options));
|
|
1846
|
+
yield yield tslib.__await(result.value || []);
|
|
1847
|
+
let continuationToken = result.nextLink;
|
|
1848
|
+
while (continuationToken) {
|
|
1849
|
+
result = yield tslib.__await(this._listNext(resourceGroupName, dnsResolverName, continuationToken, options));
|
|
1850
|
+
continuationToken = result.nextLink;
|
|
1851
|
+
yield yield tslib.__await(result.value || []);
|
|
1852
|
+
}
|
|
1853
|
+
});
|
|
1854
|
+
}
|
|
1855
|
+
listPagingAll(resourceGroupName, dnsResolverName, options) {
|
|
1856
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1857
|
+
var e_1, _a;
|
|
1858
|
+
try {
|
|
1859
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, dnsResolverName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1860
|
+
const page = _c.value;
|
|
1861
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1862
|
+
}
|
|
1863
|
+
}
|
|
1864
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1865
|
+
finally {
|
|
1866
|
+
try {
|
|
1867
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1868
|
+
}
|
|
1869
|
+
finally { if (e_1) throw e_1.error; }
|
|
1870
|
+
}
|
|
1871
|
+
});
|
|
1872
|
+
}
|
|
1873
|
+
/**
|
|
1874
|
+
* Creates or updates an inbound endpoint for a DNS resolver.
|
|
1875
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1876
|
+
* @param dnsResolverName The name of the DNS resolver.
|
|
1877
|
+
* @param inboundEndpointName The name of the inbound endpoint for the DNS resolver.
|
|
1878
|
+
* @param parameters Parameters supplied to the CreateOrUpdate operation.
|
|
1879
|
+
* @param options The options parameters.
|
|
1880
|
+
*/
|
|
1881
|
+
beginCreateOrUpdate(resourceGroupName, dnsResolverName, inboundEndpointName, parameters, options) {
|
|
1882
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1883
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1884
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1885
|
+
});
|
|
1886
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1887
|
+
var _a;
|
|
1888
|
+
let currentRawResponse = undefined;
|
|
1889
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1890
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1891
|
+
currentRawResponse = rawResponse;
|
|
1892
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1893
|
+
};
|
|
1894
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1895
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1896
|
+
return {
|
|
1897
|
+
flatResponse,
|
|
1898
|
+
rawResponse: {
|
|
1899
|
+
statusCode: currentRawResponse.status,
|
|
1900
|
+
body: currentRawResponse.parsedBody,
|
|
1901
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1902
|
+
}
|
|
1903
|
+
};
|
|
1904
|
+
});
|
|
1905
|
+
const lro = new LroImpl(sendOperation, {
|
|
1906
|
+
resourceGroupName,
|
|
1907
|
+
dnsResolverName,
|
|
1908
|
+
inboundEndpointName,
|
|
1909
|
+
parameters,
|
|
1910
|
+
options
|
|
1911
|
+
}, createOrUpdateOperationSpec$4);
|
|
1912
|
+
return new coreLro.LroEngine(lro, {
|
|
1913
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1914
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1915
|
+
});
|
|
1916
|
+
});
|
|
1917
|
+
}
|
|
1918
|
+
/**
|
|
1919
|
+
* Creates or updates an inbound endpoint for a DNS resolver.
|
|
1920
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1921
|
+
* @param dnsResolverName The name of the DNS resolver.
|
|
1922
|
+
* @param inboundEndpointName The name of the inbound endpoint for the DNS resolver.
|
|
1923
|
+
* @param parameters Parameters supplied to the CreateOrUpdate operation.
|
|
1924
|
+
* @param options The options parameters.
|
|
1925
|
+
*/
|
|
1926
|
+
beginCreateOrUpdateAndWait(resourceGroupName, dnsResolverName, inboundEndpointName, parameters, options) {
|
|
1927
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1928
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, dnsResolverName, inboundEndpointName, parameters, options);
|
|
1929
|
+
return poller.pollUntilDone();
|
|
1930
|
+
});
|
|
1931
|
+
}
|
|
1932
|
+
/**
|
|
1933
|
+
* Updates an inbound endpoint for a DNS resolver.
|
|
1934
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1935
|
+
* @param dnsResolverName The name of the DNS resolver.
|
|
1936
|
+
* @param inboundEndpointName The name of the inbound endpoint for the DNS resolver.
|
|
1937
|
+
* @param parameters Parameters supplied to the Update operation.
|
|
1938
|
+
* @param options The options parameters.
|
|
1939
|
+
*/
|
|
1940
|
+
beginUpdate(resourceGroupName, dnsResolverName, inboundEndpointName, parameters, options) {
|
|
1941
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1942
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1943
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1944
|
+
});
|
|
1945
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1946
|
+
var _a;
|
|
1947
|
+
let currentRawResponse = undefined;
|
|
1948
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1949
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1950
|
+
currentRawResponse = rawResponse;
|
|
1951
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1952
|
+
};
|
|
1953
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1954
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1955
|
+
return {
|
|
1956
|
+
flatResponse,
|
|
1957
|
+
rawResponse: {
|
|
1958
|
+
statusCode: currentRawResponse.status,
|
|
1959
|
+
body: currentRawResponse.parsedBody,
|
|
1960
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1961
|
+
}
|
|
1962
|
+
};
|
|
1963
|
+
});
|
|
1964
|
+
const lro = new LroImpl(sendOperation, {
|
|
1965
|
+
resourceGroupName,
|
|
1966
|
+
dnsResolverName,
|
|
1967
|
+
inboundEndpointName,
|
|
1968
|
+
parameters,
|
|
1969
|
+
options
|
|
1970
|
+
}, updateOperationSpec$4);
|
|
1971
|
+
return new coreLro.LroEngine(lro, {
|
|
1972
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1973
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1974
|
+
});
|
|
1975
|
+
});
|
|
1976
|
+
}
|
|
1977
|
+
/**
|
|
1978
|
+
* Updates an inbound endpoint for a DNS resolver.
|
|
1979
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1980
|
+
* @param dnsResolverName The name of the DNS resolver.
|
|
1981
|
+
* @param inboundEndpointName The name of the inbound endpoint for the DNS resolver.
|
|
1982
|
+
* @param parameters Parameters supplied to the Update operation.
|
|
1983
|
+
* @param options The options parameters.
|
|
1984
|
+
*/
|
|
1985
|
+
beginUpdateAndWait(resourceGroupName, dnsResolverName, inboundEndpointName, parameters, options) {
|
|
1986
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1987
|
+
const poller = yield this.beginUpdate(resourceGroupName, dnsResolverName, inboundEndpointName, parameters, options);
|
|
1988
|
+
return poller.pollUntilDone();
|
|
1989
|
+
});
|
|
1990
|
+
}
|
|
1991
|
+
/**
|
|
1992
|
+
* Deletes an inbound endpoint for a DNS resolver. WARNING: This operation cannot be undone.
|
|
1993
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1994
|
+
* @param dnsResolverName The name of the DNS resolver.
|
|
1995
|
+
* @param inboundEndpointName The name of the inbound endpoint for the DNS resolver.
|
|
1996
|
+
* @param options The options parameters.
|
|
1997
|
+
*/
|
|
1998
|
+
beginDelete(resourceGroupName, dnsResolverName, inboundEndpointName, options) {
|
|
1999
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2000
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2001
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2002
|
+
});
|
|
2003
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2004
|
+
var _a;
|
|
2005
|
+
let currentRawResponse = undefined;
|
|
2006
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2007
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2008
|
+
currentRawResponse = rawResponse;
|
|
2009
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2010
|
+
};
|
|
2011
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2012
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2013
|
+
return {
|
|
2014
|
+
flatResponse,
|
|
2015
|
+
rawResponse: {
|
|
2016
|
+
statusCode: currentRawResponse.status,
|
|
2017
|
+
body: currentRawResponse.parsedBody,
|
|
2018
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2019
|
+
}
|
|
2020
|
+
};
|
|
2021
|
+
});
|
|
2022
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, dnsResolverName, inboundEndpointName, options }, deleteOperationSpec$4);
|
|
2023
|
+
return new coreLro.LroEngine(lro, {
|
|
2024
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2025
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2026
|
+
});
|
|
2027
|
+
});
|
|
2028
|
+
}
|
|
2029
|
+
/**
|
|
2030
|
+
* Deletes an inbound endpoint for a DNS resolver. WARNING: This operation cannot be undone.
|
|
2031
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2032
|
+
* @param dnsResolverName The name of the DNS resolver.
|
|
2033
|
+
* @param inboundEndpointName The name of the inbound endpoint for the DNS resolver.
|
|
2034
|
+
* @param options The options parameters.
|
|
2035
|
+
*/
|
|
2036
|
+
beginDeleteAndWait(resourceGroupName, dnsResolverName, inboundEndpointName, options) {
|
|
2037
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2038
|
+
const poller = yield this.beginDelete(resourceGroupName, dnsResolverName, inboundEndpointName, options);
|
|
2039
|
+
return poller.pollUntilDone();
|
|
2040
|
+
});
|
|
2041
|
+
}
|
|
2042
|
+
/**
|
|
2043
|
+
* Gets properties of an inbound endpoint for a DNS resolver.
|
|
2044
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2045
|
+
* @param dnsResolverName The name of the DNS resolver.
|
|
2046
|
+
* @param inboundEndpointName The name of the inbound endpoint for the DNS resolver.
|
|
2047
|
+
* @param options The options parameters.
|
|
2048
|
+
*/
|
|
2049
|
+
get(resourceGroupName, dnsResolverName, inboundEndpointName, options) {
|
|
2050
|
+
return this.client.sendOperationRequest({ resourceGroupName, dnsResolverName, inboundEndpointName, options }, getOperationSpec$4);
|
|
2051
|
+
}
|
|
2052
|
+
/**
|
|
2053
|
+
* Lists inbound endpoints for a DNS resolver.
|
|
2054
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2055
|
+
* @param dnsResolverName The name of the DNS resolver.
|
|
2056
|
+
* @param options The options parameters.
|
|
2057
|
+
*/
|
|
2058
|
+
_list(resourceGroupName, dnsResolverName, options) {
|
|
2059
|
+
return this.client.sendOperationRequest({ resourceGroupName, dnsResolverName, options }, listOperationSpec$4);
|
|
2060
|
+
}
|
|
2061
|
+
/**
|
|
2062
|
+
* ListNext
|
|
2063
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2064
|
+
* @param dnsResolverName The name of the DNS resolver.
|
|
2065
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
2066
|
+
* @param options The options parameters.
|
|
2067
|
+
*/
|
|
2068
|
+
_listNext(resourceGroupName, dnsResolverName, nextLink, options) {
|
|
2069
|
+
return this.client.sendOperationRequest({ resourceGroupName, dnsResolverName, nextLink, options }, listNextOperationSpec$4);
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
// Operation Specifications
|
|
2073
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2074
|
+
const createOrUpdateOperationSpec$4 = {
|
|
2075
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}",
|
|
2076
|
+
httpMethod: "PUT",
|
|
2077
|
+
responses: {
|
|
2078
|
+
200: {
|
|
2079
|
+
bodyMapper: InboundEndpoint
|
|
2080
|
+
},
|
|
2081
|
+
201: {
|
|
2082
|
+
bodyMapper: InboundEndpoint
|
|
2083
|
+
},
|
|
2084
|
+
202: {
|
|
2085
|
+
bodyMapper: InboundEndpoint
|
|
2086
|
+
},
|
|
2087
|
+
204: {
|
|
2088
|
+
bodyMapper: InboundEndpoint
|
|
2089
|
+
},
|
|
2090
|
+
default: {
|
|
2091
|
+
bodyMapper: CloudError
|
|
2092
|
+
}
|
|
2093
|
+
},
|
|
2094
|
+
requestBody: parameters2,
|
|
2095
|
+
queryParameters: [apiVersion],
|
|
2096
|
+
urlParameters: [
|
|
2097
|
+
$host,
|
|
2098
|
+
subscriptionId,
|
|
2099
|
+
resourceGroupName,
|
|
2100
|
+
dnsResolverName,
|
|
2101
|
+
inboundEndpointName
|
|
2102
|
+
],
|
|
2103
|
+
headerParameters: [
|
|
2104
|
+
contentType,
|
|
2105
|
+
accept,
|
|
2106
|
+
ifMatch,
|
|
2107
|
+
ifNoneMatch
|
|
2108
|
+
],
|
|
2109
|
+
mediaType: "json",
|
|
2110
|
+
serializer: serializer$4
|
|
2111
|
+
};
|
|
2112
|
+
const updateOperationSpec$4 = {
|
|
2113
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}",
|
|
2114
|
+
httpMethod: "PATCH",
|
|
2115
|
+
responses: {
|
|
2116
|
+
200: {
|
|
2117
|
+
bodyMapper: InboundEndpoint
|
|
2118
|
+
},
|
|
2119
|
+
201: {
|
|
2120
|
+
bodyMapper: InboundEndpoint
|
|
2121
|
+
},
|
|
2122
|
+
202: {
|
|
2123
|
+
bodyMapper: InboundEndpoint
|
|
2124
|
+
},
|
|
2125
|
+
204: {
|
|
2126
|
+
bodyMapper: InboundEndpoint
|
|
2127
|
+
},
|
|
2128
|
+
default: {
|
|
2129
|
+
bodyMapper: CloudError
|
|
2130
|
+
}
|
|
2131
|
+
},
|
|
2132
|
+
requestBody: parameters3,
|
|
2133
|
+
queryParameters: [apiVersion],
|
|
2134
|
+
urlParameters: [
|
|
2135
|
+
$host,
|
|
2136
|
+
subscriptionId,
|
|
2137
|
+
resourceGroupName,
|
|
2138
|
+
dnsResolverName,
|
|
2139
|
+
inboundEndpointName
|
|
2140
|
+
],
|
|
2141
|
+
headerParameters: [
|
|
2142
|
+
contentType,
|
|
2143
|
+
accept,
|
|
2144
|
+
ifMatch
|
|
2145
|
+
],
|
|
2146
|
+
mediaType: "json",
|
|
2147
|
+
serializer: serializer$4
|
|
2148
|
+
};
|
|
2149
|
+
const deleteOperationSpec$4 = {
|
|
2150
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}",
|
|
2151
|
+
httpMethod: "DELETE",
|
|
2152
|
+
responses: {
|
|
2153
|
+
200: {},
|
|
2154
|
+
201: {},
|
|
2155
|
+
202: {},
|
|
2156
|
+
204: {},
|
|
2157
|
+
default: {
|
|
2158
|
+
bodyMapper: CloudError
|
|
2159
|
+
}
|
|
2160
|
+
},
|
|
2161
|
+
queryParameters: [apiVersion],
|
|
2162
|
+
urlParameters: [
|
|
2163
|
+
$host,
|
|
2164
|
+
subscriptionId,
|
|
2165
|
+
resourceGroupName,
|
|
2166
|
+
dnsResolverName,
|
|
2167
|
+
inboundEndpointName
|
|
2168
|
+
],
|
|
2169
|
+
headerParameters: [accept, ifMatch],
|
|
2170
|
+
serializer: serializer$4
|
|
2171
|
+
};
|
|
2172
|
+
const getOperationSpec$4 = {
|
|
2173
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}",
|
|
2174
|
+
httpMethod: "GET",
|
|
2175
|
+
responses: {
|
|
2176
|
+
200: {
|
|
2177
|
+
bodyMapper: InboundEndpoint
|
|
2178
|
+
},
|
|
2179
|
+
default: {
|
|
2180
|
+
bodyMapper: CloudError
|
|
2181
|
+
}
|
|
2182
|
+
},
|
|
2183
|
+
queryParameters: [apiVersion],
|
|
2184
|
+
urlParameters: [
|
|
2185
|
+
$host,
|
|
2186
|
+
subscriptionId,
|
|
2187
|
+
resourceGroupName,
|
|
2188
|
+
dnsResolverName,
|
|
2189
|
+
inboundEndpointName
|
|
2190
|
+
],
|
|
2191
|
+
headerParameters: [accept],
|
|
2192
|
+
serializer: serializer$4
|
|
2193
|
+
};
|
|
2194
|
+
const listOperationSpec$4 = {
|
|
2195
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints",
|
|
2196
|
+
httpMethod: "GET",
|
|
2197
|
+
responses: {
|
|
2198
|
+
200: {
|
|
2199
|
+
bodyMapper: InboundEndpointListResult
|
|
2200
|
+
},
|
|
2201
|
+
default: {
|
|
2202
|
+
bodyMapper: CloudError
|
|
2203
|
+
}
|
|
2204
|
+
},
|
|
2205
|
+
queryParameters: [apiVersion, top],
|
|
2206
|
+
urlParameters: [
|
|
2207
|
+
$host,
|
|
2208
|
+
subscriptionId,
|
|
2209
|
+
resourceGroupName,
|
|
2210
|
+
dnsResolverName
|
|
2211
|
+
],
|
|
2212
|
+
headerParameters: [accept],
|
|
2213
|
+
serializer: serializer$4
|
|
2214
|
+
};
|
|
2215
|
+
const listNextOperationSpec$4 = {
|
|
2216
|
+
path: "{nextLink}",
|
|
2217
|
+
httpMethod: "GET",
|
|
2218
|
+
responses: {
|
|
2219
|
+
200: {
|
|
2220
|
+
bodyMapper: InboundEndpointListResult
|
|
2221
|
+
},
|
|
2222
|
+
default: {
|
|
2223
|
+
bodyMapper: CloudError
|
|
2224
|
+
}
|
|
2225
|
+
},
|
|
2226
|
+
queryParameters: [apiVersion, top],
|
|
2227
|
+
urlParameters: [
|
|
2228
|
+
$host,
|
|
2229
|
+
subscriptionId,
|
|
2230
|
+
resourceGroupName,
|
|
2231
|
+
dnsResolverName,
|
|
2232
|
+
nextLink
|
|
2233
|
+
],
|
|
2234
|
+
headerParameters: [accept],
|
|
2235
|
+
serializer: serializer$4
|
|
2236
|
+
};
|
|
2237
|
+
|
|
2238
|
+
/*
|
|
2239
|
+
* Copyright (c) Microsoft Corporation.
|
|
2240
|
+
* Licensed under the MIT License.
|
|
2241
|
+
*
|
|
2242
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2243
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2244
|
+
*/
|
|
2245
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2246
|
+
/** Class containing OutboundEndpoints operations. */
|
|
2247
|
+
class OutboundEndpointsImpl {
|
|
2248
|
+
/**
|
|
2249
|
+
* Initialize a new instance of the class OutboundEndpoints class.
|
|
2250
|
+
* @param client Reference to the service client
|
|
2251
|
+
*/
|
|
2252
|
+
constructor(client) {
|
|
2253
|
+
this.client = client;
|
|
2254
|
+
}
|
|
2255
|
+
/**
|
|
2256
|
+
* Lists outbound endpoints for a DNS resolver.
|
|
2257
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2258
|
+
* @param dnsResolverName The name of the DNS resolver.
|
|
2259
|
+
* @param options The options parameters.
|
|
2260
|
+
*/
|
|
2261
|
+
list(resourceGroupName, dnsResolverName, options) {
|
|
2262
|
+
const iter = this.listPagingAll(resourceGroupName, dnsResolverName, options);
|
|
2263
|
+
return {
|
|
2264
|
+
next() {
|
|
2265
|
+
return iter.next();
|
|
2266
|
+
},
|
|
2267
|
+
[Symbol.asyncIterator]() {
|
|
2268
|
+
return this;
|
|
2269
|
+
},
|
|
2270
|
+
byPage: () => {
|
|
2271
|
+
return this.listPagingPage(resourceGroupName, dnsResolverName, options);
|
|
2272
|
+
}
|
|
2273
|
+
};
|
|
2274
|
+
}
|
|
2275
|
+
listPagingPage(resourceGroupName, dnsResolverName, options) {
|
|
2276
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2277
|
+
let result = yield tslib.__await(this._list(resourceGroupName, dnsResolverName, options));
|
|
2278
|
+
yield yield tslib.__await(result.value || []);
|
|
2279
|
+
let continuationToken = result.nextLink;
|
|
2280
|
+
while (continuationToken) {
|
|
2281
|
+
result = yield tslib.__await(this._listNext(resourceGroupName, dnsResolverName, continuationToken, options));
|
|
2282
|
+
continuationToken = result.nextLink;
|
|
2283
|
+
yield yield tslib.__await(result.value || []);
|
|
2284
|
+
}
|
|
2285
|
+
});
|
|
2286
|
+
}
|
|
2287
|
+
listPagingAll(resourceGroupName, dnsResolverName, options) {
|
|
2288
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
2289
|
+
var e_1, _a;
|
|
2290
|
+
try {
|
|
2291
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, dnsResolverName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2292
|
+
const page = _c.value;
|
|
2293
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2294
|
+
}
|
|
2295
|
+
}
|
|
2296
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2297
|
+
finally {
|
|
2298
|
+
try {
|
|
2299
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2300
|
+
}
|
|
2301
|
+
finally { if (e_1) throw e_1.error; }
|
|
2302
|
+
}
|
|
2303
|
+
});
|
|
2304
|
+
}
|
|
2305
|
+
/**
|
|
2306
|
+
* Creates or updates an outbound endpoint for a DNS resolver.
|
|
2307
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2308
|
+
* @param dnsResolverName The name of the DNS resolver.
|
|
2309
|
+
* @param outboundEndpointName The name of the outbound endpoint for the DNS resolver.
|
|
2310
|
+
* @param parameters Parameters supplied to the CreateOrUpdate operation.
|
|
2311
|
+
* @param options The options parameters.
|
|
2312
|
+
*/
|
|
2313
|
+
beginCreateOrUpdate(resourceGroupName, dnsResolverName, outboundEndpointName, parameters, options) {
|
|
2314
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2315
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2316
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2317
|
+
});
|
|
2318
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2319
|
+
var _a;
|
|
2320
|
+
let currentRawResponse = undefined;
|
|
2321
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2322
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2323
|
+
currentRawResponse = rawResponse;
|
|
2324
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2325
|
+
};
|
|
2326
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2327
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2328
|
+
return {
|
|
2329
|
+
flatResponse,
|
|
2330
|
+
rawResponse: {
|
|
2331
|
+
statusCode: currentRawResponse.status,
|
|
2332
|
+
body: currentRawResponse.parsedBody,
|
|
2333
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2334
|
+
}
|
|
2335
|
+
};
|
|
2336
|
+
});
|
|
2337
|
+
const lro = new LroImpl(sendOperation, {
|
|
2338
|
+
resourceGroupName,
|
|
2339
|
+
dnsResolverName,
|
|
2340
|
+
outboundEndpointName,
|
|
2341
|
+
parameters,
|
|
2342
|
+
options
|
|
2343
|
+
}, createOrUpdateOperationSpec$3);
|
|
2344
|
+
return new coreLro.LroEngine(lro, {
|
|
2345
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2346
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2347
|
+
});
|
|
2348
|
+
});
|
|
2349
|
+
}
|
|
2350
|
+
/**
|
|
2351
|
+
* Creates or updates an outbound endpoint for a DNS resolver.
|
|
2352
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2353
|
+
* @param dnsResolverName The name of the DNS resolver.
|
|
2354
|
+
* @param outboundEndpointName The name of the outbound endpoint for the DNS resolver.
|
|
2355
|
+
* @param parameters Parameters supplied to the CreateOrUpdate operation.
|
|
2356
|
+
* @param options The options parameters.
|
|
2357
|
+
*/
|
|
2358
|
+
beginCreateOrUpdateAndWait(resourceGroupName, dnsResolverName, outboundEndpointName, parameters, options) {
|
|
2359
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2360
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, dnsResolverName, outboundEndpointName, parameters, options);
|
|
2361
|
+
return poller.pollUntilDone();
|
|
2362
|
+
});
|
|
2363
|
+
}
|
|
2364
|
+
/**
|
|
2365
|
+
* Updates an outbound endpoint for a DNS resolver.
|
|
2366
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2367
|
+
* @param dnsResolverName The name of the DNS resolver.
|
|
2368
|
+
* @param outboundEndpointName The name of the outbound endpoint for the DNS resolver.
|
|
2369
|
+
* @param parameters Parameters supplied to the Update operation.
|
|
2370
|
+
* @param options The options parameters.
|
|
2371
|
+
*/
|
|
2372
|
+
beginUpdate(resourceGroupName, dnsResolverName, outboundEndpointName, parameters, options) {
|
|
2373
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2374
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2375
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2376
|
+
});
|
|
2377
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2378
|
+
var _a;
|
|
2379
|
+
let currentRawResponse = undefined;
|
|
2380
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2381
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2382
|
+
currentRawResponse = rawResponse;
|
|
2383
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2384
|
+
};
|
|
2385
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2386
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2387
|
+
return {
|
|
2388
|
+
flatResponse,
|
|
2389
|
+
rawResponse: {
|
|
2390
|
+
statusCode: currentRawResponse.status,
|
|
2391
|
+
body: currentRawResponse.parsedBody,
|
|
2392
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2393
|
+
}
|
|
2394
|
+
};
|
|
2395
|
+
});
|
|
2396
|
+
const lro = new LroImpl(sendOperation, {
|
|
2397
|
+
resourceGroupName,
|
|
2398
|
+
dnsResolverName,
|
|
2399
|
+
outboundEndpointName,
|
|
2400
|
+
parameters,
|
|
2401
|
+
options
|
|
2402
|
+
}, updateOperationSpec$3);
|
|
2403
|
+
return new coreLro.LroEngine(lro, {
|
|
2404
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2405
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2406
|
+
});
|
|
2407
|
+
});
|
|
2408
|
+
}
|
|
2409
|
+
/**
|
|
2410
|
+
* Updates an outbound endpoint for a DNS resolver.
|
|
2411
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2412
|
+
* @param dnsResolverName The name of the DNS resolver.
|
|
2413
|
+
* @param outboundEndpointName The name of the outbound endpoint for the DNS resolver.
|
|
2414
|
+
* @param parameters Parameters supplied to the Update operation.
|
|
2415
|
+
* @param options The options parameters.
|
|
2416
|
+
*/
|
|
2417
|
+
beginUpdateAndWait(resourceGroupName, dnsResolverName, outboundEndpointName, parameters, options) {
|
|
2418
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2419
|
+
const poller = yield this.beginUpdate(resourceGroupName, dnsResolverName, outboundEndpointName, parameters, options);
|
|
2420
|
+
return poller.pollUntilDone();
|
|
2421
|
+
});
|
|
2422
|
+
}
|
|
2423
|
+
/**
|
|
2424
|
+
* Deletes an outbound endpoint for a DNS resolver. WARNING: This operation cannot be undone.
|
|
2425
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2426
|
+
* @param dnsResolverName The name of the DNS resolver.
|
|
2427
|
+
* @param outboundEndpointName The name of the outbound endpoint for the DNS resolver.
|
|
2428
|
+
* @param options The options parameters.
|
|
2429
|
+
*/
|
|
2430
|
+
beginDelete(resourceGroupName, dnsResolverName, outboundEndpointName, options) {
|
|
2431
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2432
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2433
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2434
|
+
});
|
|
2435
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2436
|
+
var _a;
|
|
2437
|
+
let currentRawResponse = undefined;
|
|
2438
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2439
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2440
|
+
currentRawResponse = rawResponse;
|
|
2441
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2442
|
+
};
|
|
2443
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2444
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2445
|
+
return {
|
|
2446
|
+
flatResponse,
|
|
2447
|
+
rawResponse: {
|
|
2448
|
+
statusCode: currentRawResponse.status,
|
|
2449
|
+
body: currentRawResponse.parsedBody,
|
|
2450
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2451
|
+
}
|
|
2452
|
+
};
|
|
2453
|
+
});
|
|
2454
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, dnsResolverName, outboundEndpointName, options }, deleteOperationSpec$3);
|
|
2455
|
+
return new coreLro.LroEngine(lro, {
|
|
2456
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2457
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2458
|
+
});
|
|
2459
|
+
});
|
|
2460
|
+
}
|
|
2461
|
+
/**
|
|
2462
|
+
* Deletes an outbound endpoint for a DNS resolver. WARNING: This operation cannot be undone.
|
|
2463
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2464
|
+
* @param dnsResolverName The name of the DNS resolver.
|
|
2465
|
+
* @param outboundEndpointName The name of the outbound endpoint for the DNS resolver.
|
|
2466
|
+
* @param options The options parameters.
|
|
2467
|
+
*/
|
|
2468
|
+
beginDeleteAndWait(resourceGroupName, dnsResolverName, outboundEndpointName, options) {
|
|
2469
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2470
|
+
const poller = yield this.beginDelete(resourceGroupName, dnsResolverName, outboundEndpointName, options);
|
|
2471
|
+
return poller.pollUntilDone();
|
|
2472
|
+
});
|
|
2473
|
+
}
|
|
2474
|
+
/**
|
|
2475
|
+
* Gets properties of an outbound endpoint for a DNS resolver.
|
|
2476
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2477
|
+
* @param dnsResolverName The name of the DNS resolver.
|
|
2478
|
+
* @param outboundEndpointName The name of the outbound endpoint for the DNS resolver.
|
|
2479
|
+
* @param options The options parameters.
|
|
2480
|
+
*/
|
|
2481
|
+
get(resourceGroupName, dnsResolverName, outboundEndpointName, options) {
|
|
2482
|
+
return this.client.sendOperationRequest({ resourceGroupName, dnsResolverName, outboundEndpointName, options }, getOperationSpec$3);
|
|
2483
|
+
}
|
|
2484
|
+
/**
|
|
2485
|
+
* Lists outbound endpoints for a DNS resolver.
|
|
2486
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2487
|
+
* @param dnsResolverName The name of the DNS resolver.
|
|
2488
|
+
* @param options The options parameters.
|
|
2489
|
+
*/
|
|
2490
|
+
_list(resourceGroupName, dnsResolverName, options) {
|
|
2491
|
+
return this.client.sendOperationRequest({ resourceGroupName, dnsResolverName, options }, listOperationSpec$3);
|
|
2492
|
+
}
|
|
2493
|
+
/**
|
|
2494
|
+
* ListNext
|
|
2495
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2496
|
+
* @param dnsResolverName The name of the DNS resolver.
|
|
2497
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
2498
|
+
* @param options The options parameters.
|
|
2499
|
+
*/
|
|
2500
|
+
_listNext(resourceGroupName, dnsResolverName, nextLink, options) {
|
|
2501
|
+
return this.client.sendOperationRequest({ resourceGroupName, dnsResolverName, nextLink, options }, listNextOperationSpec$3);
|
|
2502
|
+
}
|
|
2503
|
+
}
|
|
2504
|
+
// Operation Specifications
|
|
2505
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2506
|
+
const createOrUpdateOperationSpec$3 = {
|
|
2507
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}",
|
|
2508
|
+
httpMethod: "PUT",
|
|
2509
|
+
responses: {
|
|
2510
|
+
200: {
|
|
2511
|
+
bodyMapper: OutboundEndpoint
|
|
2512
|
+
},
|
|
2513
|
+
201: {
|
|
2514
|
+
bodyMapper: OutboundEndpoint
|
|
2515
|
+
},
|
|
2516
|
+
202: {
|
|
2517
|
+
bodyMapper: OutboundEndpoint
|
|
2518
|
+
},
|
|
2519
|
+
204: {
|
|
2520
|
+
bodyMapper: OutboundEndpoint
|
|
2521
|
+
},
|
|
2522
|
+
default: {
|
|
2523
|
+
bodyMapper: CloudError
|
|
2524
|
+
}
|
|
2525
|
+
},
|
|
2526
|
+
requestBody: parameters4,
|
|
2527
|
+
queryParameters: [apiVersion],
|
|
2528
|
+
urlParameters: [
|
|
2529
|
+
$host,
|
|
2530
|
+
subscriptionId,
|
|
2531
|
+
resourceGroupName,
|
|
2532
|
+
dnsResolverName,
|
|
2533
|
+
outboundEndpointName
|
|
2534
|
+
],
|
|
2535
|
+
headerParameters: [
|
|
2536
|
+
contentType,
|
|
2537
|
+
accept,
|
|
2538
|
+
ifMatch,
|
|
2539
|
+
ifNoneMatch
|
|
2540
|
+
],
|
|
2541
|
+
mediaType: "json",
|
|
2542
|
+
serializer: serializer$3
|
|
2543
|
+
};
|
|
2544
|
+
const updateOperationSpec$3 = {
|
|
2545
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}",
|
|
2546
|
+
httpMethod: "PATCH",
|
|
2547
|
+
responses: {
|
|
2548
|
+
200: {
|
|
2549
|
+
bodyMapper: OutboundEndpoint
|
|
2550
|
+
},
|
|
2551
|
+
201: {
|
|
2552
|
+
bodyMapper: OutboundEndpoint
|
|
2553
|
+
},
|
|
2554
|
+
202: {
|
|
2555
|
+
bodyMapper: OutboundEndpoint
|
|
2556
|
+
},
|
|
2557
|
+
204: {
|
|
2558
|
+
bodyMapper: OutboundEndpoint
|
|
2559
|
+
},
|
|
2560
|
+
default: {
|
|
2561
|
+
bodyMapper: CloudError
|
|
2562
|
+
}
|
|
2563
|
+
},
|
|
2564
|
+
requestBody: parameters5,
|
|
2565
|
+
queryParameters: [apiVersion],
|
|
2566
|
+
urlParameters: [
|
|
2567
|
+
$host,
|
|
2568
|
+
subscriptionId,
|
|
2569
|
+
resourceGroupName,
|
|
2570
|
+
dnsResolverName,
|
|
2571
|
+
outboundEndpointName
|
|
2572
|
+
],
|
|
2573
|
+
headerParameters: [
|
|
2574
|
+
contentType,
|
|
2575
|
+
accept,
|
|
2576
|
+
ifMatch
|
|
2577
|
+
],
|
|
2578
|
+
mediaType: "json",
|
|
2579
|
+
serializer: serializer$3
|
|
2580
|
+
};
|
|
2581
|
+
const deleteOperationSpec$3 = {
|
|
2582
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}",
|
|
2583
|
+
httpMethod: "DELETE",
|
|
2584
|
+
responses: {
|
|
2585
|
+
200: {},
|
|
2586
|
+
201: {},
|
|
2587
|
+
202: {},
|
|
2588
|
+
204: {},
|
|
2589
|
+
default: {
|
|
2590
|
+
bodyMapper: CloudError
|
|
2591
|
+
}
|
|
2592
|
+
},
|
|
2593
|
+
queryParameters: [apiVersion],
|
|
2594
|
+
urlParameters: [
|
|
2595
|
+
$host,
|
|
2596
|
+
subscriptionId,
|
|
2597
|
+
resourceGroupName,
|
|
2598
|
+
dnsResolverName,
|
|
2599
|
+
outboundEndpointName
|
|
2600
|
+
],
|
|
2601
|
+
headerParameters: [accept, ifMatch],
|
|
2602
|
+
serializer: serializer$3
|
|
2603
|
+
};
|
|
2604
|
+
const getOperationSpec$3 = {
|
|
2605
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}",
|
|
2606
|
+
httpMethod: "GET",
|
|
2607
|
+
responses: {
|
|
2608
|
+
200: {
|
|
2609
|
+
bodyMapper: OutboundEndpoint
|
|
2610
|
+
},
|
|
2611
|
+
default: {
|
|
2612
|
+
bodyMapper: CloudError
|
|
2613
|
+
}
|
|
2614
|
+
},
|
|
2615
|
+
queryParameters: [apiVersion],
|
|
2616
|
+
urlParameters: [
|
|
2617
|
+
$host,
|
|
2618
|
+
subscriptionId,
|
|
2619
|
+
resourceGroupName,
|
|
2620
|
+
dnsResolverName,
|
|
2621
|
+
outboundEndpointName
|
|
2622
|
+
],
|
|
2623
|
+
headerParameters: [accept],
|
|
2624
|
+
serializer: serializer$3
|
|
2625
|
+
};
|
|
2626
|
+
const listOperationSpec$3 = {
|
|
2627
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints",
|
|
2628
|
+
httpMethod: "GET",
|
|
2629
|
+
responses: {
|
|
2630
|
+
200: {
|
|
2631
|
+
bodyMapper: OutboundEndpointListResult
|
|
2632
|
+
},
|
|
2633
|
+
default: {
|
|
2634
|
+
bodyMapper: CloudError
|
|
2635
|
+
}
|
|
2636
|
+
},
|
|
2637
|
+
queryParameters: [apiVersion, top],
|
|
2638
|
+
urlParameters: [
|
|
2639
|
+
$host,
|
|
2640
|
+
subscriptionId,
|
|
2641
|
+
resourceGroupName,
|
|
2642
|
+
dnsResolverName
|
|
2643
|
+
],
|
|
2644
|
+
headerParameters: [accept],
|
|
2645
|
+
serializer: serializer$3
|
|
2646
|
+
};
|
|
2647
|
+
const listNextOperationSpec$3 = {
|
|
2648
|
+
path: "{nextLink}",
|
|
2649
|
+
httpMethod: "GET",
|
|
2650
|
+
responses: {
|
|
2651
|
+
200: {
|
|
2652
|
+
bodyMapper: OutboundEndpointListResult
|
|
2653
|
+
},
|
|
2654
|
+
default: {
|
|
2655
|
+
bodyMapper: CloudError
|
|
2656
|
+
}
|
|
2657
|
+
},
|
|
2658
|
+
queryParameters: [apiVersion, top],
|
|
2659
|
+
urlParameters: [
|
|
2660
|
+
$host,
|
|
2661
|
+
subscriptionId,
|
|
2662
|
+
resourceGroupName,
|
|
2663
|
+
dnsResolverName,
|
|
2664
|
+
nextLink
|
|
2665
|
+
],
|
|
2666
|
+
headerParameters: [accept],
|
|
2667
|
+
serializer: serializer$3
|
|
2668
|
+
};
|
|
2669
|
+
|
|
2670
|
+
/*
|
|
2671
|
+
* Copyright (c) Microsoft Corporation.
|
|
2672
|
+
* Licensed under the MIT License.
|
|
2673
|
+
*
|
|
2674
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2675
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2676
|
+
*/
|
|
2677
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2678
|
+
/** Class containing DnsForwardingRulesets operations. */
|
|
2679
|
+
class DnsForwardingRulesetsImpl {
|
|
2680
|
+
/**
|
|
2681
|
+
* Initialize a new instance of the class DnsForwardingRulesets class.
|
|
2682
|
+
* @param client Reference to the service client
|
|
2683
|
+
*/
|
|
2684
|
+
constructor(client) {
|
|
2685
|
+
this.client = client;
|
|
2686
|
+
}
|
|
2687
|
+
/**
|
|
2688
|
+
* Lists DNS forwarding rulesets within a resource group.
|
|
2689
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2690
|
+
* @param options The options parameters.
|
|
2691
|
+
*/
|
|
2692
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
2693
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
2694
|
+
return {
|
|
2695
|
+
next() {
|
|
2696
|
+
return iter.next();
|
|
2697
|
+
},
|
|
2698
|
+
[Symbol.asyncIterator]() {
|
|
2699
|
+
return this;
|
|
2700
|
+
},
|
|
2701
|
+
byPage: () => {
|
|
2702
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
2703
|
+
}
|
|
2704
|
+
};
|
|
2705
|
+
}
|
|
2706
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
2707
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
2708
|
+
let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
2709
|
+
yield yield tslib.__await(result.value || []);
|
|
2710
|
+
let continuationToken = result.nextLink;
|
|
2711
|
+
while (continuationToken) {
|
|
2712
|
+
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
2713
|
+
continuationToken = result.nextLink;
|
|
2714
|
+
yield yield tslib.__await(result.value || []);
|
|
2715
|
+
}
|
|
2716
|
+
});
|
|
2717
|
+
}
|
|
2718
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
2719
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
2720
|
+
var e_1, _a;
|
|
2721
|
+
try {
|
|
2722
|
+
for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2723
|
+
const page = _c.value;
|
|
2724
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2725
|
+
}
|
|
2726
|
+
}
|
|
2727
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2728
|
+
finally {
|
|
2729
|
+
try {
|
|
2730
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2731
|
+
}
|
|
2732
|
+
finally { if (e_1) throw e_1.error; }
|
|
2733
|
+
}
|
|
2734
|
+
});
|
|
2735
|
+
}
|
|
2736
|
+
/**
|
|
2737
|
+
* Lists DNS forwarding rulesets in all resource groups of a subscription.
|
|
2738
|
+
* @param options The options parameters.
|
|
2739
|
+
*/
|
|
2740
|
+
list(options) {
|
|
2741
|
+
const iter = this.listPagingAll(options);
|
|
2742
|
+
return {
|
|
2743
|
+
next() {
|
|
2744
|
+
return iter.next();
|
|
2745
|
+
},
|
|
2746
|
+
[Symbol.asyncIterator]() {
|
|
2747
|
+
return this;
|
|
2748
|
+
},
|
|
2749
|
+
byPage: () => {
|
|
2750
|
+
return this.listPagingPage(options);
|
|
2751
|
+
}
|
|
2752
|
+
};
|
|
2753
|
+
}
|
|
2754
|
+
listPagingPage(options) {
|
|
2755
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2756
|
+
let result = yield tslib.__await(this._list(options));
|
|
2757
|
+
yield yield tslib.__await(result.value || []);
|
|
2758
|
+
let continuationToken = result.nextLink;
|
|
2759
|
+
while (continuationToken) {
|
|
2760
|
+
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
2761
|
+
continuationToken = result.nextLink;
|
|
2762
|
+
yield yield tslib.__await(result.value || []);
|
|
2763
|
+
}
|
|
2764
|
+
});
|
|
2765
|
+
}
|
|
2766
|
+
listPagingAll(options) {
|
|
2767
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
2768
|
+
var e_2, _a;
|
|
2769
|
+
try {
|
|
2770
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2771
|
+
const page = _c.value;
|
|
2772
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2773
|
+
}
|
|
2774
|
+
}
|
|
2775
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
2776
|
+
finally {
|
|
2777
|
+
try {
|
|
2778
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2779
|
+
}
|
|
2780
|
+
finally { if (e_2) throw e_2.error; }
|
|
2781
|
+
}
|
|
2782
|
+
});
|
|
2783
|
+
}
|
|
2784
|
+
/**
|
|
2785
|
+
* Lists DNS forwarding ruleset resource IDs attached to a virtual network.
|
|
2786
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2787
|
+
* @param virtualNetworkName The name of the virtual network.
|
|
2788
|
+
* @param options The options parameters.
|
|
2789
|
+
*/
|
|
2790
|
+
listByVirtualNetwork(resourceGroupName, virtualNetworkName, options) {
|
|
2791
|
+
const iter = this.listByVirtualNetworkPagingAll(resourceGroupName, virtualNetworkName, options);
|
|
2792
|
+
return {
|
|
2793
|
+
next() {
|
|
2794
|
+
return iter.next();
|
|
2795
|
+
},
|
|
2796
|
+
[Symbol.asyncIterator]() {
|
|
2797
|
+
return this;
|
|
2798
|
+
},
|
|
2799
|
+
byPage: () => {
|
|
2800
|
+
return this.listByVirtualNetworkPagingPage(resourceGroupName, virtualNetworkName, options);
|
|
2801
|
+
}
|
|
2802
|
+
};
|
|
2803
|
+
}
|
|
2804
|
+
listByVirtualNetworkPagingPage(resourceGroupName, virtualNetworkName, options) {
|
|
2805
|
+
return tslib.__asyncGenerator(this, arguments, function* listByVirtualNetworkPagingPage_1() {
|
|
2806
|
+
let result = yield tslib.__await(this._listByVirtualNetwork(resourceGroupName, virtualNetworkName, options));
|
|
2807
|
+
yield yield tslib.__await(result.value || []);
|
|
2808
|
+
let continuationToken = result.nextLink;
|
|
2809
|
+
while (continuationToken) {
|
|
2810
|
+
result = yield tslib.__await(this._listByVirtualNetworkNext(resourceGroupName, virtualNetworkName, continuationToken, options));
|
|
2811
|
+
continuationToken = result.nextLink;
|
|
2812
|
+
yield yield tslib.__await(result.value || []);
|
|
2813
|
+
}
|
|
2814
|
+
});
|
|
2815
|
+
}
|
|
2816
|
+
listByVirtualNetworkPagingAll(resourceGroupName, virtualNetworkName, options) {
|
|
2817
|
+
return tslib.__asyncGenerator(this, arguments, function* listByVirtualNetworkPagingAll_1() {
|
|
2818
|
+
var e_3, _a;
|
|
2819
|
+
try {
|
|
2820
|
+
for (var _b = tslib.__asyncValues(this.listByVirtualNetworkPagingPage(resourceGroupName, virtualNetworkName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2821
|
+
const page = _c.value;
|
|
2822
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2823
|
+
}
|
|
2824
|
+
}
|
|
2825
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
2826
|
+
finally {
|
|
2827
|
+
try {
|
|
2828
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2829
|
+
}
|
|
2830
|
+
finally { if (e_3) throw e_3.error; }
|
|
2831
|
+
}
|
|
2832
|
+
});
|
|
2833
|
+
}
|
|
2834
|
+
/**
|
|
2835
|
+
* Creates or updates a DNS forwarding ruleset.
|
|
2836
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2837
|
+
* @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
|
|
2838
|
+
* @param parameters Parameters supplied to the CreateOrUpdate operation.
|
|
2839
|
+
* @param options The options parameters.
|
|
2840
|
+
*/
|
|
2841
|
+
beginCreateOrUpdate(resourceGroupName, dnsForwardingRulesetName, parameters, options) {
|
|
2842
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2843
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2844
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2845
|
+
});
|
|
2846
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2847
|
+
var _a;
|
|
2848
|
+
let currentRawResponse = undefined;
|
|
2849
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2850
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2851
|
+
currentRawResponse = rawResponse;
|
|
2852
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2853
|
+
};
|
|
2854
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2855
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2856
|
+
return {
|
|
2857
|
+
flatResponse,
|
|
2858
|
+
rawResponse: {
|
|
2859
|
+
statusCode: currentRawResponse.status,
|
|
2860
|
+
body: currentRawResponse.parsedBody,
|
|
2861
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2862
|
+
}
|
|
2863
|
+
};
|
|
2864
|
+
});
|
|
2865
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, dnsForwardingRulesetName, parameters, options }, createOrUpdateOperationSpec$2);
|
|
2866
|
+
return new coreLro.LroEngine(lro, {
|
|
2867
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2868
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2869
|
+
});
|
|
2870
|
+
});
|
|
2871
|
+
}
|
|
2872
|
+
/**
|
|
2873
|
+
* Creates or updates a DNS forwarding ruleset.
|
|
2874
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2875
|
+
* @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
|
|
2876
|
+
* @param parameters Parameters supplied to the CreateOrUpdate operation.
|
|
2877
|
+
* @param options The options parameters.
|
|
2878
|
+
*/
|
|
2879
|
+
beginCreateOrUpdateAndWait(resourceGroupName, dnsForwardingRulesetName, parameters, options) {
|
|
2880
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2881
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, dnsForwardingRulesetName, parameters, options);
|
|
2882
|
+
return poller.pollUntilDone();
|
|
2883
|
+
});
|
|
2884
|
+
}
|
|
2885
|
+
/**
|
|
2886
|
+
* Updates a DNS forwarding ruleset.
|
|
2887
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2888
|
+
* @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
|
|
2889
|
+
* @param parameters Parameters supplied to the Update operation.
|
|
2890
|
+
* @param options The options parameters.
|
|
2891
|
+
*/
|
|
2892
|
+
beginUpdate(resourceGroupName, dnsForwardingRulesetName, parameters, options) {
|
|
2893
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2894
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2895
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2896
|
+
});
|
|
2897
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2898
|
+
var _a;
|
|
2899
|
+
let currentRawResponse = undefined;
|
|
2900
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2901
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2902
|
+
currentRawResponse = rawResponse;
|
|
2903
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2904
|
+
};
|
|
2905
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2906
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2907
|
+
return {
|
|
2908
|
+
flatResponse,
|
|
2909
|
+
rawResponse: {
|
|
2910
|
+
statusCode: currentRawResponse.status,
|
|
2911
|
+
body: currentRawResponse.parsedBody,
|
|
2912
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2913
|
+
}
|
|
2914
|
+
};
|
|
2915
|
+
});
|
|
2916
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, dnsForwardingRulesetName, parameters, options }, updateOperationSpec$2);
|
|
2917
|
+
return new coreLro.LroEngine(lro, {
|
|
2918
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2919
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2920
|
+
});
|
|
2921
|
+
});
|
|
2922
|
+
}
|
|
2923
|
+
/**
|
|
2924
|
+
* Updates a DNS forwarding ruleset.
|
|
2925
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2926
|
+
* @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
|
|
2927
|
+
* @param parameters Parameters supplied to the Update operation.
|
|
2928
|
+
* @param options The options parameters.
|
|
2929
|
+
*/
|
|
2930
|
+
beginUpdateAndWait(resourceGroupName, dnsForwardingRulesetName, parameters, options) {
|
|
2931
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2932
|
+
const poller = yield this.beginUpdate(resourceGroupName, dnsForwardingRulesetName, parameters, options);
|
|
2933
|
+
return poller.pollUntilDone();
|
|
2934
|
+
});
|
|
2935
|
+
}
|
|
2936
|
+
/**
|
|
2937
|
+
* Deletes a DNS forwarding ruleset. WARNING: This operation cannot be undone. All forwarding rules
|
|
2938
|
+
* within the ruleset will be deleted.
|
|
2939
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2940
|
+
* @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
|
|
2941
|
+
* @param options The options parameters.
|
|
2942
|
+
*/
|
|
2943
|
+
beginDelete(resourceGroupName, dnsForwardingRulesetName, options) {
|
|
2944
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2945
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2946
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2947
|
+
});
|
|
2948
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2949
|
+
var _a;
|
|
2950
|
+
let currentRawResponse = undefined;
|
|
2951
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2952
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2953
|
+
currentRawResponse = rawResponse;
|
|
2954
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2955
|
+
};
|
|
2956
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2957
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2958
|
+
return {
|
|
2959
|
+
flatResponse,
|
|
2960
|
+
rawResponse: {
|
|
2961
|
+
statusCode: currentRawResponse.status,
|
|
2962
|
+
body: currentRawResponse.parsedBody,
|
|
2963
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2964
|
+
}
|
|
2965
|
+
};
|
|
2966
|
+
});
|
|
2967
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, dnsForwardingRulesetName, options }, deleteOperationSpec$2);
|
|
2968
|
+
return new coreLro.LroEngine(lro, {
|
|
2969
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2970
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2971
|
+
});
|
|
2972
|
+
});
|
|
2973
|
+
}
|
|
2974
|
+
/**
|
|
2975
|
+
* Deletes a DNS forwarding ruleset. WARNING: This operation cannot be undone. All forwarding rules
|
|
2976
|
+
* within the ruleset will be deleted.
|
|
2977
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2978
|
+
* @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
|
|
2979
|
+
* @param options The options parameters.
|
|
2980
|
+
*/
|
|
2981
|
+
beginDeleteAndWait(resourceGroupName, dnsForwardingRulesetName, options) {
|
|
2982
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2983
|
+
const poller = yield this.beginDelete(resourceGroupName, dnsForwardingRulesetName, options);
|
|
2984
|
+
return poller.pollUntilDone();
|
|
2985
|
+
});
|
|
2986
|
+
}
|
|
2987
|
+
/**
|
|
2988
|
+
* Gets a DNS forwarding ruleset properties.
|
|
2989
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2990
|
+
* @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
|
|
2991
|
+
* @param options The options parameters.
|
|
2992
|
+
*/
|
|
2993
|
+
get(resourceGroupName, dnsForwardingRulesetName, options) {
|
|
2994
|
+
return this.client.sendOperationRequest({ resourceGroupName, dnsForwardingRulesetName, options }, getOperationSpec$2);
|
|
2995
|
+
}
|
|
2996
|
+
/**
|
|
2997
|
+
* Lists DNS forwarding rulesets within a resource group.
|
|
2998
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2999
|
+
* @param options The options parameters.
|
|
3000
|
+
*/
|
|
3001
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
3002
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
3003
|
+
}
|
|
3004
|
+
/**
|
|
3005
|
+
* Lists DNS forwarding rulesets in all resource groups of a subscription.
|
|
3006
|
+
* @param options The options parameters.
|
|
3007
|
+
*/
|
|
3008
|
+
_list(options) {
|
|
3009
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$2);
|
|
3010
|
+
}
|
|
3011
|
+
/**
|
|
3012
|
+
* Lists DNS forwarding ruleset resource IDs attached to a virtual network.
|
|
3013
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3014
|
+
* @param virtualNetworkName The name of the virtual network.
|
|
3015
|
+
* @param options The options parameters.
|
|
3016
|
+
*/
|
|
3017
|
+
_listByVirtualNetwork(resourceGroupName, virtualNetworkName, options) {
|
|
3018
|
+
return this.client.sendOperationRequest({ resourceGroupName, virtualNetworkName, options }, listByVirtualNetworkOperationSpec);
|
|
3019
|
+
}
|
|
3020
|
+
/**
|
|
3021
|
+
* ListByResourceGroupNext
|
|
3022
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3023
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
3024
|
+
* @param options The options parameters.
|
|
3025
|
+
*/
|
|
3026
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
3027
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
3028
|
+
}
|
|
3029
|
+
/**
|
|
3030
|
+
* ListNext
|
|
3031
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
3032
|
+
* @param options The options parameters.
|
|
3033
|
+
*/
|
|
3034
|
+
_listNext(nextLink, options) {
|
|
3035
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$2);
|
|
3036
|
+
}
|
|
3037
|
+
/**
|
|
3038
|
+
* ListByVirtualNetworkNext
|
|
3039
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3040
|
+
* @param virtualNetworkName The name of the virtual network.
|
|
3041
|
+
* @param nextLink The nextLink from the previous successful call to the ListByVirtualNetwork method.
|
|
3042
|
+
* @param options The options parameters.
|
|
3043
|
+
*/
|
|
3044
|
+
_listByVirtualNetworkNext(resourceGroupName, virtualNetworkName, nextLink, options) {
|
|
3045
|
+
return this.client.sendOperationRequest({ resourceGroupName, virtualNetworkName, nextLink, options }, listByVirtualNetworkNextOperationSpec);
|
|
3046
|
+
}
|
|
3047
|
+
}
|
|
3048
|
+
// Operation Specifications
|
|
3049
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3050
|
+
const createOrUpdateOperationSpec$2 = {
|
|
3051
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}",
|
|
3052
|
+
httpMethod: "PUT",
|
|
3053
|
+
responses: {
|
|
3054
|
+
200: {
|
|
3055
|
+
bodyMapper: DnsForwardingRuleset
|
|
3056
|
+
},
|
|
3057
|
+
201: {
|
|
3058
|
+
bodyMapper: DnsForwardingRuleset
|
|
3059
|
+
},
|
|
3060
|
+
202: {
|
|
3061
|
+
bodyMapper: DnsForwardingRuleset
|
|
3062
|
+
},
|
|
3063
|
+
204: {
|
|
3064
|
+
bodyMapper: DnsForwardingRuleset
|
|
3065
|
+
},
|
|
3066
|
+
default: {
|
|
3067
|
+
bodyMapper: CloudError
|
|
3068
|
+
}
|
|
3069
|
+
},
|
|
3070
|
+
requestBody: parameters6,
|
|
3071
|
+
queryParameters: [apiVersion],
|
|
3072
|
+
urlParameters: [
|
|
3073
|
+
$host,
|
|
3074
|
+
subscriptionId,
|
|
3075
|
+
resourceGroupName,
|
|
3076
|
+
dnsForwardingRulesetName
|
|
3077
|
+
],
|
|
3078
|
+
headerParameters: [
|
|
3079
|
+
contentType,
|
|
3080
|
+
accept,
|
|
3081
|
+
ifMatch,
|
|
3082
|
+
ifNoneMatch
|
|
3083
|
+
],
|
|
3084
|
+
mediaType: "json",
|
|
3085
|
+
serializer: serializer$2
|
|
3086
|
+
};
|
|
3087
|
+
const updateOperationSpec$2 = {
|
|
3088
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}",
|
|
3089
|
+
httpMethod: "PATCH",
|
|
3090
|
+
responses: {
|
|
3091
|
+
200: {
|
|
3092
|
+
bodyMapper: DnsForwardingRuleset
|
|
3093
|
+
},
|
|
3094
|
+
201: {
|
|
3095
|
+
bodyMapper: DnsForwardingRuleset
|
|
3096
|
+
},
|
|
3097
|
+
202: {
|
|
3098
|
+
bodyMapper: DnsForwardingRuleset
|
|
3099
|
+
},
|
|
3100
|
+
204: {
|
|
3101
|
+
bodyMapper: DnsForwardingRuleset
|
|
3102
|
+
},
|
|
3103
|
+
default: {
|
|
3104
|
+
bodyMapper: CloudError
|
|
3105
|
+
}
|
|
3106
|
+
},
|
|
3107
|
+
requestBody: parameters7,
|
|
3108
|
+
queryParameters: [apiVersion],
|
|
3109
|
+
urlParameters: [
|
|
3110
|
+
$host,
|
|
3111
|
+
subscriptionId,
|
|
3112
|
+
resourceGroupName,
|
|
3113
|
+
dnsForwardingRulesetName
|
|
3114
|
+
],
|
|
3115
|
+
headerParameters: [
|
|
3116
|
+
contentType,
|
|
3117
|
+
accept,
|
|
3118
|
+
ifMatch
|
|
3119
|
+
],
|
|
3120
|
+
mediaType: "json",
|
|
3121
|
+
serializer: serializer$2
|
|
3122
|
+
};
|
|
3123
|
+
const deleteOperationSpec$2 = {
|
|
3124
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}",
|
|
3125
|
+
httpMethod: "DELETE",
|
|
3126
|
+
responses: {
|
|
3127
|
+
200: {},
|
|
3128
|
+
201: {},
|
|
3129
|
+
202: {},
|
|
3130
|
+
204: {},
|
|
3131
|
+
default: {
|
|
3132
|
+
bodyMapper: CloudError
|
|
3133
|
+
}
|
|
3134
|
+
},
|
|
3135
|
+
queryParameters: [apiVersion],
|
|
3136
|
+
urlParameters: [
|
|
3137
|
+
$host,
|
|
3138
|
+
subscriptionId,
|
|
3139
|
+
resourceGroupName,
|
|
3140
|
+
dnsForwardingRulesetName
|
|
3141
|
+
],
|
|
3142
|
+
headerParameters: [accept, ifMatch],
|
|
3143
|
+
serializer: serializer$2
|
|
3144
|
+
};
|
|
3145
|
+
const getOperationSpec$2 = {
|
|
3146
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}",
|
|
3147
|
+
httpMethod: "GET",
|
|
3148
|
+
responses: {
|
|
3149
|
+
200: {
|
|
3150
|
+
bodyMapper: DnsForwardingRuleset
|
|
3151
|
+
},
|
|
3152
|
+
default: {
|
|
3153
|
+
bodyMapper: CloudError
|
|
3154
|
+
}
|
|
3155
|
+
},
|
|
3156
|
+
queryParameters: [apiVersion],
|
|
3157
|
+
urlParameters: [
|
|
3158
|
+
$host,
|
|
3159
|
+
subscriptionId,
|
|
3160
|
+
resourceGroupName,
|
|
3161
|
+
dnsForwardingRulesetName
|
|
3162
|
+
],
|
|
3163
|
+
headerParameters: [accept],
|
|
3164
|
+
serializer: serializer$2
|
|
3165
|
+
};
|
|
3166
|
+
const listByResourceGroupOperationSpec = {
|
|
3167
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets",
|
|
3168
|
+
httpMethod: "GET",
|
|
3169
|
+
responses: {
|
|
3170
|
+
200: {
|
|
3171
|
+
bodyMapper: DnsForwardingRulesetListResult
|
|
3172
|
+
},
|
|
3173
|
+
default: {
|
|
3174
|
+
bodyMapper: CloudError
|
|
3175
|
+
}
|
|
3176
|
+
},
|
|
3177
|
+
queryParameters: [apiVersion, top],
|
|
3178
|
+
urlParameters: [
|
|
3179
|
+
$host,
|
|
3180
|
+
subscriptionId,
|
|
3181
|
+
resourceGroupName
|
|
3182
|
+
],
|
|
3183
|
+
headerParameters: [accept],
|
|
3184
|
+
serializer: serializer$2
|
|
3185
|
+
};
|
|
3186
|
+
const listOperationSpec$2 = {
|
|
3187
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsForwardingRulesets",
|
|
3188
|
+
httpMethod: "GET",
|
|
3189
|
+
responses: {
|
|
3190
|
+
200: {
|
|
3191
|
+
bodyMapper: DnsForwardingRulesetListResult
|
|
3192
|
+
},
|
|
3193
|
+
default: {
|
|
3194
|
+
bodyMapper: CloudError
|
|
3195
|
+
}
|
|
3196
|
+
},
|
|
3197
|
+
queryParameters: [apiVersion, top],
|
|
3198
|
+
urlParameters: [$host, subscriptionId],
|
|
3199
|
+
headerParameters: [accept],
|
|
3200
|
+
serializer: serializer$2
|
|
3201
|
+
};
|
|
3202
|
+
const listByVirtualNetworkOperationSpec = {
|
|
3203
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsForwardingRulesets",
|
|
3204
|
+
httpMethod: "POST",
|
|
3205
|
+
responses: {
|
|
3206
|
+
200: {
|
|
3207
|
+
bodyMapper: VirtualNetworkDnsForwardingRulesetListResult
|
|
3208
|
+
},
|
|
3209
|
+
default: {
|
|
3210
|
+
bodyMapper: CloudError
|
|
3211
|
+
}
|
|
3212
|
+
},
|
|
3213
|
+
queryParameters: [apiVersion, top],
|
|
3214
|
+
urlParameters: [
|
|
3215
|
+
$host,
|
|
3216
|
+
subscriptionId,
|
|
3217
|
+
resourceGroupName,
|
|
3218
|
+
virtualNetworkName
|
|
3219
|
+
],
|
|
3220
|
+
headerParameters: [accept],
|
|
3221
|
+
serializer: serializer$2
|
|
3222
|
+
};
|
|
3223
|
+
const listByResourceGroupNextOperationSpec = {
|
|
3224
|
+
path: "{nextLink}",
|
|
3225
|
+
httpMethod: "GET",
|
|
3226
|
+
responses: {
|
|
3227
|
+
200: {
|
|
3228
|
+
bodyMapper: DnsForwardingRulesetListResult
|
|
3229
|
+
},
|
|
3230
|
+
default: {
|
|
3231
|
+
bodyMapper: CloudError
|
|
3232
|
+
}
|
|
3233
|
+
},
|
|
3234
|
+
queryParameters: [apiVersion, top],
|
|
3235
|
+
urlParameters: [
|
|
3236
|
+
$host,
|
|
3237
|
+
subscriptionId,
|
|
3238
|
+
resourceGroupName,
|
|
3239
|
+
nextLink
|
|
3240
|
+
],
|
|
3241
|
+
headerParameters: [accept],
|
|
3242
|
+
serializer: serializer$2
|
|
3243
|
+
};
|
|
3244
|
+
const listNextOperationSpec$2 = {
|
|
3245
|
+
path: "{nextLink}",
|
|
3246
|
+
httpMethod: "GET",
|
|
3247
|
+
responses: {
|
|
3248
|
+
200: {
|
|
3249
|
+
bodyMapper: DnsForwardingRulesetListResult
|
|
3250
|
+
},
|
|
3251
|
+
default: {
|
|
3252
|
+
bodyMapper: CloudError
|
|
3253
|
+
}
|
|
3254
|
+
},
|
|
3255
|
+
queryParameters: [apiVersion, top],
|
|
3256
|
+
urlParameters: [
|
|
3257
|
+
$host,
|
|
3258
|
+
subscriptionId,
|
|
3259
|
+
nextLink
|
|
3260
|
+
],
|
|
3261
|
+
headerParameters: [accept],
|
|
3262
|
+
serializer: serializer$2
|
|
3263
|
+
};
|
|
3264
|
+
const listByVirtualNetworkNextOperationSpec = {
|
|
3265
|
+
path: "{nextLink}",
|
|
3266
|
+
httpMethod: "GET",
|
|
3267
|
+
responses: {
|
|
3268
|
+
200: {
|
|
3269
|
+
bodyMapper: VirtualNetworkDnsForwardingRulesetListResult
|
|
3270
|
+
},
|
|
3271
|
+
default: {
|
|
3272
|
+
bodyMapper: CloudError
|
|
3273
|
+
}
|
|
3274
|
+
},
|
|
3275
|
+
queryParameters: [apiVersion, top],
|
|
3276
|
+
urlParameters: [
|
|
3277
|
+
$host,
|
|
3278
|
+
subscriptionId,
|
|
3279
|
+
resourceGroupName,
|
|
3280
|
+
virtualNetworkName,
|
|
3281
|
+
nextLink
|
|
3282
|
+
],
|
|
3283
|
+
headerParameters: [accept],
|
|
3284
|
+
serializer: serializer$2
|
|
3285
|
+
};
|
|
3286
|
+
|
|
3287
|
+
/*
|
|
3288
|
+
* Copyright (c) Microsoft Corporation.
|
|
3289
|
+
* Licensed under the MIT License.
|
|
3290
|
+
*
|
|
3291
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3292
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3293
|
+
*/
|
|
3294
|
+
/// <reference lib="esnext.asynciterable" />
|
|
3295
|
+
/** Class containing ForwardingRules operations. */
|
|
3296
|
+
class ForwardingRulesImpl {
|
|
3297
|
+
/**
|
|
3298
|
+
* Initialize a new instance of the class ForwardingRules class.
|
|
3299
|
+
* @param client Reference to the service client
|
|
3300
|
+
*/
|
|
3301
|
+
constructor(client) {
|
|
3302
|
+
this.client = client;
|
|
3303
|
+
}
|
|
3304
|
+
/**
|
|
3305
|
+
* Lists forwarding rules in a DNS forwarding ruleset.
|
|
3306
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3307
|
+
* @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
|
|
3308
|
+
* @param options The options parameters.
|
|
3309
|
+
*/
|
|
3310
|
+
list(resourceGroupName, dnsForwardingRulesetName, options) {
|
|
3311
|
+
const iter = this.listPagingAll(resourceGroupName, dnsForwardingRulesetName, options);
|
|
3312
|
+
return {
|
|
3313
|
+
next() {
|
|
3314
|
+
return iter.next();
|
|
3315
|
+
},
|
|
3316
|
+
[Symbol.asyncIterator]() {
|
|
3317
|
+
return this;
|
|
3318
|
+
},
|
|
3319
|
+
byPage: () => {
|
|
3320
|
+
return this.listPagingPage(resourceGroupName, dnsForwardingRulesetName, options);
|
|
3321
|
+
}
|
|
3322
|
+
};
|
|
3323
|
+
}
|
|
3324
|
+
listPagingPage(resourceGroupName, dnsForwardingRulesetName, options) {
|
|
3325
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3326
|
+
let result = yield tslib.__await(this._list(resourceGroupName, dnsForwardingRulesetName, options));
|
|
3327
|
+
yield yield tslib.__await(result.value || []);
|
|
3328
|
+
let continuationToken = result.nextLink;
|
|
3329
|
+
while (continuationToken) {
|
|
3330
|
+
result = yield tslib.__await(this._listNext(resourceGroupName, dnsForwardingRulesetName, continuationToken, options));
|
|
3331
|
+
continuationToken = result.nextLink;
|
|
3332
|
+
yield yield tslib.__await(result.value || []);
|
|
3333
|
+
}
|
|
3334
|
+
});
|
|
3335
|
+
}
|
|
3336
|
+
listPagingAll(resourceGroupName, dnsForwardingRulesetName, options) {
|
|
3337
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
3338
|
+
var e_1, _a;
|
|
3339
|
+
try {
|
|
3340
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, dnsForwardingRulesetName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
3341
|
+
const page = _c.value;
|
|
3342
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
3343
|
+
}
|
|
3344
|
+
}
|
|
3345
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
3346
|
+
finally {
|
|
3347
|
+
try {
|
|
3348
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
3349
|
+
}
|
|
3350
|
+
finally { if (e_1) throw e_1.error; }
|
|
3351
|
+
}
|
|
3352
|
+
});
|
|
3353
|
+
}
|
|
3354
|
+
/**
|
|
3355
|
+
* Creates or updates a forwarding rule in a DNS forwarding ruleset.
|
|
3356
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3357
|
+
* @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
|
|
3358
|
+
* @param forwardingRuleName The name of the forwarding rule.
|
|
3359
|
+
* @param parameters Parameters supplied to the CreateOrUpdate operation.
|
|
3360
|
+
* @param options The options parameters.
|
|
3361
|
+
*/
|
|
3362
|
+
createOrUpdate(resourceGroupName, dnsForwardingRulesetName, forwardingRuleName, parameters, options) {
|
|
3363
|
+
return this.client.sendOperationRequest({
|
|
3364
|
+
resourceGroupName,
|
|
3365
|
+
dnsForwardingRulesetName,
|
|
3366
|
+
forwardingRuleName,
|
|
3367
|
+
parameters,
|
|
3368
|
+
options
|
|
3369
|
+
}, createOrUpdateOperationSpec$1);
|
|
3370
|
+
}
|
|
3371
|
+
/**
|
|
3372
|
+
* Updates a forwarding rule in a DNS forwarding ruleset.
|
|
3373
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3374
|
+
* @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
|
|
3375
|
+
* @param forwardingRuleName The name of the forwarding rule.
|
|
3376
|
+
* @param parameters Parameters supplied to the Update operation.
|
|
3377
|
+
* @param options The options parameters.
|
|
3378
|
+
*/
|
|
3379
|
+
update(resourceGroupName, dnsForwardingRulesetName, forwardingRuleName, parameters, options) {
|
|
3380
|
+
return this.client.sendOperationRequest({
|
|
3381
|
+
resourceGroupName,
|
|
3382
|
+
dnsForwardingRulesetName,
|
|
3383
|
+
forwardingRuleName,
|
|
3384
|
+
parameters,
|
|
3385
|
+
options
|
|
3386
|
+
}, updateOperationSpec$1);
|
|
3387
|
+
}
|
|
3388
|
+
/**
|
|
3389
|
+
* Deletes a forwarding rule in a DNS forwarding ruleset. WARNING: This operation cannot be undone.
|
|
3390
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3391
|
+
* @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
|
|
3392
|
+
* @param forwardingRuleName The name of the forwarding rule.
|
|
3393
|
+
* @param options The options parameters.
|
|
3394
|
+
*/
|
|
3395
|
+
delete(resourceGroupName, dnsForwardingRulesetName, forwardingRuleName, options) {
|
|
3396
|
+
return this.client.sendOperationRequest({
|
|
3397
|
+
resourceGroupName,
|
|
3398
|
+
dnsForwardingRulesetName,
|
|
3399
|
+
forwardingRuleName,
|
|
3400
|
+
options
|
|
3401
|
+
}, deleteOperationSpec$1);
|
|
3402
|
+
}
|
|
3403
|
+
/**
|
|
3404
|
+
* Gets properties of a forwarding rule in a DNS forwarding ruleset.
|
|
3405
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3406
|
+
* @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
|
|
3407
|
+
* @param forwardingRuleName The name of the forwarding rule.
|
|
3408
|
+
* @param options The options parameters.
|
|
3409
|
+
*/
|
|
3410
|
+
get(resourceGroupName, dnsForwardingRulesetName, forwardingRuleName, options) {
|
|
3411
|
+
return this.client.sendOperationRequest({
|
|
3412
|
+
resourceGroupName,
|
|
3413
|
+
dnsForwardingRulesetName,
|
|
3414
|
+
forwardingRuleName,
|
|
3415
|
+
options
|
|
3416
|
+
}, getOperationSpec$1);
|
|
3417
|
+
}
|
|
3418
|
+
/**
|
|
3419
|
+
* Lists forwarding rules in a DNS forwarding ruleset.
|
|
3420
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3421
|
+
* @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
|
|
3422
|
+
* @param options The options parameters.
|
|
3423
|
+
*/
|
|
3424
|
+
_list(resourceGroupName, dnsForwardingRulesetName, options) {
|
|
3425
|
+
return this.client.sendOperationRequest({ resourceGroupName, dnsForwardingRulesetName, options }, listOperationSpec$1);
|
|
3426
|
+
}
|
|
3427
|
+
/**
|
|
3428
|
+
* ListNext
|
|
3429
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3430
|
+
* @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
|
|
3431
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
3432
|
+
* @param options The options parameters.
|
|
3433
|
+
*/
|
|
3434
|
+
_listNext(resourceGroupName, dnsForwardingRulesetName, nextLink, options) {
|
|
3435
|
+
return this.client.sendOperationRequest({ resourceGroupName, dnsForwardingRulesetName, nextLink, options }, listNextOperationSpec$1);
|
|
3436
|
+
}
|
|
3437
|
+
}
|
|
3438
|
+
// Operation Specifications
|
|
3439
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3440
|
+
const createOrUpdateOperationSpec$1 = {
|
|
3441
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}",
|
|
3442
|
+
httpMethod: "PUT",
|
|
3443
|
+
responses: {
|
|
3444
|
+
200: {
|
|
3445
|
+
bodyMapper: ForwardingRule
|
|
3446
|
+
},
|
|
3447
|
+
201: {
|
|
3448
|
+
bodyMapper: ForwardingRule
|
|
3449
|
+
},
|
|
3450
|
+
default: {
|
|
3451
|
+
bodyMapper: CloudError
|
|
3452
|
+
}
|
|
3453
|
+
},
|
|
3454
|
+
requestBody: parameters8,
|
|
3455
|
+
queryParameters: [apiVersion],
|
|
3456
|
+
urlParameters: [
|
|
3457
|
+
$host,
|
|
3458
|
+
subscriptionId,
|
|
3459
|
+
resourceGroupName,
|
|
3460
|
+
dnsForwardingRulesetName,
|
|
3461
|
+
forwardingRuleName
|
|
3462
|
+
],
|
|
3463
|
+
headerParameters: [
|
|
3464
|
+
contentType,
|
|
3465
|
+
accept,
|
|
3466
|
+
ifMatch,
|
|
3467
|
+
ifNoneMatch
|
|
3468
|
+
],
|
|
3469
|
+
mediaType: "json",
|
|
3470
|
+
serializer: serializer$1
|
|
3471
|
+
};
|
|
3472
|
+
const updateOperationSpec$1 = {
|
|
3473
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}",
|
|
3474
|
+
httpMethod: "PATCH",
|
|
3475
|
+
responses: {
|
|
3476
|
+
200: {
|
|
3477
|
+
bodyMapper: ForwardingRule
|
|
3478
|
+
},
|
|
3479
|
+
default: {
|
|
3480
|
+
bodyMapper: CloudError
|
|
3481
|
+
}
|
|
3482
|
+
},
|
|
3483
|
+
requestBody: parameters9,
|
|
3484
|
+
queryParameters: [apiVersion],
|
|
3485
|
+
urlParameters: [
|
|
3486
|
+
$host,
|
|
3487
|
+
subscriptionId,
|
|
3488
|
+
resourceGroupName,
|
|
3489
|
+
dnsForwardingRulesetName,
|
|
3490
|
+
forwardingRuleName
|
|
3491
|
+
],
|
|
3492
|
+
headerParameters: [
|
|
3493
|
+
contentType,
|
|
3494
|
+
accept,
|
|
3495
|
+
ifMatch
|
|
3496
|
+
],
|
|
3497
|
+
mediaType: "json",
|
|
3498
|
+
serializer: serializer$1
|
|
3499
|
+
};
|
|
3500
|
+
const deleteOperationSpec$1 = {
|
|
3501
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}",
|
|
3502
|
+
httpMethod: "DELETE",
|
|
3503
|
+
responses: {
|
|
3504
|
+
200: {},
|
|
3505
|
+
204: {},
|
|
3506
|
+
default: {
|
|
3507
|
+
bodyMapper: CloudError
|
|
3508
|
+
}
|
|
3509
|
+
},
|
|
3510
|
+
queryParameters: [apiVersion],
|
|
3511
|
+
urlParameters: [
|
|
3512
|
+
$host,
|
|
3513
|
+
subscriptionId,
|
|
3514
|
+
resourceGroupName,
|
|
3515
|
+
dnsForwardingRulesetName,
|
|
3516
|
+
forwardingRuleName
|
|
3517
|
+
],
|
|
3518
|
+
headerParameters: [accept, ifMatch],
|
|
3519
|
+
serializer: serializer$1
|
|
3520
|
+
};
|
|
3521
|
+
const getOperationSpec$1 = {
|
|
3522
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}",
|
|
3523
|
+
httpMethod: "GET",
|
|
3524
|
+
responses: {
|
|
3525
|
+
200: {
|
|
3526
|
+
bodyMapper: ForwardingRule
|
|
3527
|
+
},
|
|
3528
|
+
default: {
|
|
3529
|
+
bodyMapper: CloudError
|
|
3530
|
+
}
|
|
3531
|
+
},
|
|
3532
|
+
queryParameters: [apiVersion],
|
|
3533
|
+
urlParameters: [
|
|
3534
|
+
$host,
|
|
3535
|
+
subscriptionId,
|
|
3536
|
+
resourceGroupName,
|
|
3537
|
+
dnsForwardingRulesetName,
|
|
3538
|
+
forwardingRuleName
|
|
3539
|
+
],
|
|
3540
|
+
headerParameters: [accept],
|
|
3541
|
+
serializer: serializer$1
|
|
3542
|
+
};
|
|
3543
|
+
const listOperationSpec$1 = {
|
|
3544
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules",
|
|
3545
|
+
httpMethod: "GET",
|
|
3546
|
+
responses: {
|
|
3547
|
+
200: {
|
|
3548
|
+
bodyMapper: ForwardingRuleListResult
|
|
3549
|
+
},
|
|
3550
|
+
default: {
|
|
3551
|
+
bodyMapper: CloudError
|
|
3552
|
+
}
|
|
3553
|
+
},
|
|
3554
|
+
queryParameters: [apiVersion, top],
|
|
3555
|
+
urlParameters: [
|
|
3556
|
+
$host,
|
|
3557
|
+
subscriptionId,
|
|
3558
|
+
resourceGroupName,
|
|
3559
|
+
dnsForwardingRulesetName
|
|
3560
|
+
],
|
|
3561
|
+
headerParameters: [accept],
|
|
3562
|
+
serializer: serializer$1
|
|
3563
|
+
};
|
|
3564
|
+
const listNextOperationSpec$1 = {
|
|
3565
|
+
path: "{nextLink}",
|
|
3566
|
+
httpMethod: "GET",
|
|
3567
|
+
responses: {
|
|
3568
|
+
200: {
|
|
3569
|
+
bodyMapper: ForwardingRuleListResult
|
|
3570
|
+
},
|
|
3571
|
+
default: {
|
|
3572
|
+
bodyMapper: CloudError
|
|
3573
|
+
}
|
|
3574
|
+
},
|
|
3575
|
+
queryParameters: [apiVersion, top],
|
|
3576
|
+
urlParameters: [
|
|
3577
|
+
$host,
|
|
3578
|
+
subscriptionId,
|
|
3579
|
+
resourceGroupName,
|
|
3580
|
+
nextLink,
|
|
3581
|
+
dnsForwardingRulesetName
|
|
3582
|
+
],
|
|
3583
|
+
headerParameters: [accept],
|
|
3584
|
+
serializer: serializer$1
|
|
3585
|
+
};
|
|
3586
|
+
|
|
3587
|
+
/*
|
|
3588
|
+
* Copyright (c) Microsoft Corporation.
|
|
3589
|
+
* Licensed under the MIT License.
|
|
3590
|
+
*
|
|
3591
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3592
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3593
|
+
*/
|
|
3594
|
+
/// <reference lib="esnext.asynciterable" />
|
|
3595
|
+
/** Class containing VirtualNetworkLinks operations. */
|
|
3596
|
+
class VirtualNetworkLinksImpl {
|
|
3597
|
+
/**
|
|
3598
|
+
* Initialize a new instance of the class VirtualNetworkLinks class.
|
|
3599
|
+
* @param client Reference to the service client
|
|
3600
|
+
*/
|
|
3601
|
+
constructor(client) {
|
|
3602
|
+
this.client = client;
|
|
3603
|
+
}
|
|
3604
|
+
/**
|
|
3605
|
+
* Lists virtual network links to a DNS forwarding ruleset.
|
|
3606
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3607
|
+
* @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
|
|
3608
|
+
* @param options The options parameters.
|
|
3609
|
+
*/
|
|
3610
|
+
list(resourceGroupName, dnsForwardingRulesetName, options) {
|
|
3611
|
+
const iter = this.listPagingAll(resourceGroupName, dnsForwardingRulesetName, options);
|
|
3612
|
+
return {
|
|
3613
|
+
next() {
|
|
3614
|
+
return iter.next();
|
|
3615
|
+
},
|
|
3616
|
+
[Symbol.asyncIterator]() {
|
|
3617
|
+
return this;
|
|
3618
|
+
},
|
|
3619
|
+
byPage: () => {
|
|
3620
|
+
return this.listPagingPage(resourceGroupName, dnsForwardingRulesetName, options);
|
|
3621
|
+
}
|
|
3622
|
+
};
|
|
3623
|
+
}
|
|
3624
|
+
listPagingPage(resourceGroupName, dnsForwardingRulesetName, options) {
|
|
3625
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3626
|
+
let result = yield tslib.__await(this._list(resourceGroupName, dnsForwardingRulesetName, options));
|
|
3627
|
+
yield yield tslib.__await(result.value || []);
|
|
3628
|
+
let continuationToken = result.nextLink;
|
|
3629
|
+
while (continuationToken) {
|
|
3630
|
+
result = yield tslib.__await(this._listNext(resourceGroupName, dnsForwardingRulesetName, continuationToken, options));
|
|
3631
|
+
continuationToken = result.nextLink;
|
|
3632
|
+
yield yield tslib.__await(result.value || []);
|
|
3633
|
+
}
|
|
3634
|
+
});
|
|
3635
|
+
}
|
|
3636
|
+
listPagingAll(resourceGroupName, dnsForwardingRulesetName, options) {
|
|
3637
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
3638
|
+
var e_1, _a;
|
|
3639
|
+
try {
|
|
3640
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, dnsForwardingRulesetName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
3641
|
+
const page = _c.value;
|
|
3642
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
3643
|
+
}
|
|
3644
|
+
}
|
|
3645
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
3646
|
+
finally {
|
|
3647
|
+
try {
|
|
3648
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
3649
|
+
}
|
|
3650
|
+
finally { if (e_1) throw e_1.error; }
|
|
3651
|
+
}
|
|
3652
|
+
});
|
|
3653
|
+
}
|
|
3654
|
+
/**
|
|
3655
|
+
* Creates or updates a virtual network link to a DNS forwarding ruleset.
|
|
3656
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3657
|
+
* @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
|
|
3658
|
+
* @param virtualNetworkLinkName The name of the virtual network link.
|
|
3659
|
+
* @param parameters Parameters supplied to the CreateOrUpdate operation.
|
|
3660
|
+
* @param options The options parameters.
|
|
3661
|
+
*/
|
|
3662
|
+
beginCreateOrUpdate(resourceGroupName, dnsForwardingRulesetName, virtualNetworkLinkName, parameters, options) {
|
|
3663
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3664
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3665
|
+
return this.client.sendOperationRequest(args, spec);
|
|
3666
|
+
});
|
|
3667
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3668
|
+
var _a;
|
|
3669
|
+
let currentRawResponse = undefined;
|
|
3670
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3671
|
+
const callback = (rawResponse, flatResponse) => {
|
|
3672
|
+
currentRawResponse = rawResponse;
|
|
3673
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3674
|
+
};
|
|
3675
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3676
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3677
|
+
return {
|
|
3678
|
+
flatResponse,
|
|
3679
|
+
rawResponse: {
|
|
3680
|
+
statusCode: currentRawResponse.status,
|
|
3681
|
+
body: currentRawResponse.parsedBody,
|
|
3682
|
+
headers: currentRawResponse.headers.toJSON()
|
|
3683
|
+
}
|
|
3684
|
+
};
|
|
3685
|
+
});
|
|
3686
|
+
const lro = new LroImpl(sendOperation, {
|
|
3687
|
+
resourceGroupName,
|
|
3688
|
+
dnsForwardingRulesetName,
|
|
3689
|
+
virtualNetworkLinkName,
|
|
3690
|
+
parameters,
|
|
3691
|
+
options
|
|
3692
|
+
}, createOrUpdateOperationSpec);
|
|
3693
|
+
return new coreLro.LroEngine(lro, {
|
|
3694
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3695
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3696
|
+
});
|
|
3697
|
+
});
|
|
3698
|
+
}
|
|
3699
|
+
/**
|
|
3700
|
+
* Creates or updates a virtual network link to a DNS forwarding ruleset.
|
|
3701
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3702
|
+
* @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
|
|
3703
|
+
* @param virtualNetworkLinkName The name of the virtual network link.
|
|
3704
|
+
* @param parameters Parameters supplied to the CreateOrUpdate operation.
|
|
3705
|
+
* @param options The options parameters.
|
|
3706
|
+
*/
|
|
3707
|
+
beginCreateOrUpdateAndWait(resourceGroupName, dnsForwardingRulesetName, virtualNetworkLinkName, parameters, options) {
|
|
3708
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3709
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, dnsForwardingRulesetName, virtualNetworkLinkName, parameters, options);
|
|
3710
|
+
return poller.pollUntilDone();
|
|
3711
|
+
});
|
|
3712
|
+
}
|
|
3713
|
+
/**
|
|
3714
|
+
* Updates a virtual network link to a DNS forwarding ruleset.
|
|
3715
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3716
|
+
* @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
|
|
3717
|
+
* @param virtualNetworkLinkName The name of the virtual network link.
|
|
3718
|
+
* @param parameters Parameters supplied to the Update operation.
|
|
3719
|
+
* @param options The options parameters.
|
|
3720
|
+
*/
|
|
3721
|
+
beginUpdate(resourceGroupName, dnsForwardingRulesetName, virtualNetworkLinkName, parameters, options) {
|
|
3722
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3723
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3724
|
+
return this.client.sendOperationRequest(args, spec);
|
|
3725
|
+
});
|
|
3726
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3727
|
+
var _a;
|
|
3728
|
+
let currentRawResponse = undefined;
|
|
3729
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3730
|
+
const callback = (rawResponse, flatResponse) => {
|
|
3731
|
+
currentRawResponse = rawResponse;
|
|
3732
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3733
|
+
};
|
|
3734
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3735
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3736
|
+
return {
|
|
3737
|
+
flatResponse,
|
|
3738
|
+
rawResponse: {
|
|
3739
|
+
statusCode: currentRawResponse.status,
|
|
3740
|
+
body: currentRawResponse.parsedBody,
|
|
3741
|
+
headers: currentRawResponse.headers.toJSON()
|
|
3742
|
+
}
|
|
3743
|
+
};
|
|
3744
|
+
});
|
|
3745
|
+
const lro = new LroImpl(sendOperation, {
|
|
3746
|
+
resourceGroupName,
|
|
3747
|
+
dnsForwardingRulesetName,
|
|
3748
|
+
virtualNetworkLinkName,
|
|
3749
|
+
parameters,
|
|
3750
|
+
options
|
|
3751
|
+
}, updateOperationSpec);
|
|
3752
|
+
return new coreLro.LroEngine(lro, {
|
|
3753
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3754
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3755
|
+
});
|
|
3756
|
+
});
|
|
3757
|
+
}
|
|
3758
|
+
/**
|
|
3759
|
+
* Updates a virtual network link to a DNS forwarding ruleset.
|
|
3760
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3761
|
+
* @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
|
|
3762
|
+
* @param virtualNetworkLinkName The name of the virtual network link.
|
|
3763
|
+
* @param parameters Parameters supplied to the Update operation.
|
|
3764
|
+
* @param options The options parameters.
|
|
3765
|
+
*/
|
|
3766
|
+
beginUpdateAndWait(resourceGroupName, dnsForwardingRulesetName, virtualNetworkLinkName, parameters, options) {
|
|
3767
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3768
|
+
const poller = yield this.beginUpdate(resourceGroupName, dnsForwardingRulesetName, virtualNetworkLinkName, parameters, options);
|
|
3769
|
+
return poller.pollUntilDone();
|
|
3770
|
+
});
|
|
3771
|
+
}
|
|
3772
|
+
/**
|
|
3773
|
+
* Deletes a virtual network link to a DNS forwarding ruleset. WARNING: This operation cannot be
|
|
3774
|
+
* undone.
|
|
3775
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3776
|
+
* @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
|
|
3777
|
+
* @param virtualNetworkLinkName The name of the virtual network link.
|
|
3778
|
+
* @param options The options parameters.
|
|
3779
|
+
*/
|
|
3780
|
+
beginDelete(resourceGroupName, dnsForwardingRulesetName, virtualNetworkLinkName, options) {
|
|
3781
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3782
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3783
|
+
return this.client.sendOperationRequest(args, spec);
|
|
3784
|
+
});
|
|
3785
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3786
|
+
var _a;
|
|
3787
|
+
let currentRawResponse = undefined;
|
|
3788
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3789
|
+
const callback = (rawResponse, flatResponse) => {
|
|
3790
|
+
currentRawResponse = rawResponse;
|
|
3791
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3792
|
+
};
|
|
3793
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3794
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3795
|
+
return {
|
|
3796
|
+
flatResponse,
|
|
3797
|
+
rawResponse: {
|
|
3798
|
+
statusCode: currentRawResponse.status,
|
|
3799
|
+
body: currentRawResponse.parsedBody,
|
|
3800
|
+
headers: currentRawResponse.headers.toJSON()
|
|
3801
|
+
}
|
|
3802
|
+
};
|
|
3803
|
+
});
|
|
3804
|
+
const lro = new LroImpl(sendOperation, {
|
|
3805
|
+
resourceGroupName,
|
|
3806
|
+
dnsForwardingRulesetName,
|
|
3807
|
+
virtualNetworkLinkName,
|
|
3808
|
+
options
|
|
3809
|
+
}, deleteOperationSpec);
|
|
3810
|
+
return new coreLro.LroEngine(lro, {
|
|
3811
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3812
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3813
|
+
});
|
|
3814
|
+
});
|
|
3815
|
+
}
|
|
3816
|
+
/**
|
|
3817
|
+
* Deletes a virtual network link to a DNS forwarding ruleset. WARNING: This operation cannot be
|
|
3818
|
+
* undone.
|
|
3819
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3820
|
+
* @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
|
|
3821
|
+
* @param virtualNetworkLinkName The name of the virtual network link.
|
|
3822
|
+
* @param options The options parameters.
|
|
3823
|
+
*/
|
|
3824
|
+
beginDeleteAndWait(resourceGroupName, dnsForwardingRulesetName, virtualNetworkLinkName, options) {
|
|
3825
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3826
|
+
const poller = yield this.beginDelete(resourceGroupName, dnsForwardingRulesetName, virtualNetworkLinkName, options);
|
|
3827
|
+
return poller.pollUntilDone();
|
|
3828
|
+
});
|
|
3829
|
+
}
|
|
3830
|
+
/**
|
|
3831
|
+
* Gets properties of a virtual network link to a DNS forwarding ruleset.
|
|
3832
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3833
|
+
* @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
|
|
3834
|
+
* @param virtualNetworkLinkName The name of the virtual network link.
|
|
3835
|
+
* @param options The options parameters.
|
|
3836
|
+
*/
|
|
3837
|
+
get(resourceGroupName, dnsForwardingRulesetName, virtualNetworkLinkName, options) {
|
|
3838
|
+
return this.client.sendOperationRequest({
|
|
3839
|
+
resourceGroupName,
|
|
3840
|
+
dnsForwardingRulesetName,
|
|
3841
|
+
virtualNetworkLinkName,
|
|
3842
|
+
options
|
|
3843
|
+
}, getOperationSpec);
|
|
3844
|
+
}
|
|
3845
|
+
/**
|
|
3846
|
+
* Lists virtual network links to a DNS forwarding ruleset.
|
|
3847
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3848
|
+
* @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
|
|
3849
|
+
* @param options The options parameters.
|
|
3850
|
+
*/
|
|
3851
|
+
_list(resourceGroupName, dnsForwardingRulesetName, options) {
|
|
3852
|
+
return this.client.sendOperationRequest({ resourceGroupName, dnsForwardingRulesetName, options }, listOperationSpec);
|
|
3853
|
+
}
|
|
3854
|
+
/**
|
|
3855
|
+
* ListNext
|
|
3856
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3857
|
+
* @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
|
|
3858
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
3859
|
+
* @param options The options parameters.
|
|
3860
|
+
*/
|
|
3861
|
+
_listNext(resourceGroupName, dnsForwardingRulesetName, nextLink, options) {
|
|
3862
|
+
return this.client.sendOperationRequest({ resourceGroupName, dnsForwardingRulesetName, nextLink, options }, listNextOperationSpec);
|
|
3863
|
+
}
|
|
3864
|
+
}
|
|
3865
|
+
// Operation Specifications
|
|
3866
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3867
|
+
const createOrUpdateOperationSpec = {
|
|
3868
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}",
|
|
3869
|
+
httpMethod: "PUT",
|
|
3870
|
+
responses: {
|
|
3871
|
+
200: {
|
|
3872
|
+
bodyMapper: VirtualNetworkLink
|
|
3873
|
+
},
|
|
3874
|
+
201: {
|
|
3875
|
+
bodyMapper: VirtualNetworkLink
|
|
3876
|
+
},
|
|
3877
|
+
202: {
|
|
3878
|
+
bodyMapper: VirtualNetworkLink
|
|
3879
|
+
},
|
|
3880
|
+
204: {
|
|
3881
|
+
bodyMapper: VirtualNetworkLink
|
|
3882
|
+
},
|
|
3883
|
+
default: {
|
|
3884
|
+
bodyMapper: CloudError
|
|
3885
|
+
}
|
|
3886
|
+
},
|
|
3887
|
+
requestBody: parameters10,
|
|
3888
|
+
queryParameters: [apiVersion],
|
|
3889
|
+
urlParameters: [
|
|
3890
|
+
$host,
|
|
3891
|
+
subscriptionId,
|
|
3892
|
+
resourceGroupName,
|
|
3893
|
+
dnsForwardingRulesetName,
|
|
3894
|
+
virtualNetworkLinkName
|
|
3895
|
+
],
|
|
3896
|
+
headerParameters: [
|
|
3897
|
+
contentType,
|
|
3898
|
+
accept,
|
|
3899
|
+
ifMatch,
|
|
3900
|
+
ifNoneMatch
|
|
3901
|
+
],
|
|
3902
|
+
mediaType: "json",
|
|
3903
|
+
serializer
|
|
3904
|
+
};
|
|
3905
|
+
const updateOperationSpec = {
|
|
3906
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}",
|
|
3907
|
+
httpMethod: "PATCH",
|
|
3908
|
+
responses: {
|
|
3909
|
+
200: {
|
|
3910
|
+
bodyMapper: VirtualNetworkLink
|
|
3911
|
+
},
|
|
3912
|
+
201: {
|
|
3913
|
+
bodyMapper: VirtualNetworkLink
|
|
3914
|
+
},
|
|
3915
|
+
202: {
|
|
3916
|
+
bodyMapper: VirtualNetworkLink
|
|
3917
|
+
},
|
|
3918
|
+
204: {
|
|
3919
|
+
bodyMapper: VirtualNetworkLink
|
|
3920
|
+
},
|
|
3921
|
+
default: {
|
|
3922
|
+
bodyMapper: CloudError
|
|
3923
|
+
}
|
|
3924
|
+
},
|
|
3925
|
+
requestBody: parameters11,
|
|
3926
|
+
queryParameters: [apiVersion],
|
|
3927
|
+
urlParameters: [
|
|
3928
|
+
$host,
|
|
3929
|
+
subscriptionId,
|
|
3930
|
+
resourceGroupName,
|
|
3931
|
+
dnsForwardingRulesetName,
|
|
3932
|
+
virtualNetworkLinkName
|
|
3933
|
+
],
|
|
3934
|
+
headerParameters: [
|
|
3935
|
+
contentType,
|
|
3936
|
+
accept,
|
|
3937
|
+
ifMatch
|
|
3938
|
+
],
|
|
3939
|
+
mediaType: "json",
|
|
3940
|
+
serializer
|
|
3941
|
+
};
|
|
3942
|
+
const deleteOperationSpec = {
|
|
3943
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}",
|
|
3944
|
+
httpMethod: "DELETE",
|
|
3945
|
+
responses: {
|
|
3946
|
+
200: {},
|
|
3947
|
+
201: {},
|
|
3948
|
+
202: {},
|
|
3949
|
+
204: {},
|
|
3950
|
+
default: {
|
|
3951
|
+
bodyMapper: CloudError
|
|
3952
|
+
}
|
|
3953
|
+
},
|
|
3954
|
+
queryParameters: [apiVersion],
|
|
3955
|
+
urlParameters: [
|
|
3956
|
+
$host,
|
|
3957
|
+
subscriptionId,
|
|
3958
|
+
resourceGroupName,
|
|
3959
|
+
dnsForwardingRulesetName,
|
|
3960
|
+
virtualNetworkLinkName
|
|
3961
|
+
],
|
|
3962
|
+
headerParameters: [accept, ifMatch],
|
|
3963
|
+
serializer
|
|
3964
|
+
};
|
|
3965
|
+
const getOperationSpec = {
|
|
3966
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}",
|
|
3967
|
+
httpMethod: "GET",
|
|
3968
|
+
responses: {
|
|
3969
|
+
200: {
|
|
3970
|
+
bodyMapper: VirtualNetworkLink
|
|
3971
|
+
},
|
|
3972
|
+
default: {
|
|
3973
|
+
bodyMapper: CloudError
|
|
3974
|
+
}
|
|
3975
|
+
},
|
|
3976
|
+
queryParameters: [apiVersion],
|
|
3977
|
+
urlParameters: [
|
|
3978
|
+
$host,
|
|
3979
|
+
subscriptionId,
|
|
3980
|
+
resourceGroupName,
|
|
3981
|
+
dnsForwardingRulesetName,
|
|
3982
|
+
virtualNetworkLinkName
|
|
3983
|
+
],
|
|
3984
|
+
headerParameters: [accept],
|
|
3985
|
+
serializer
|
|
3986
|
+
};
|
|
3987
|
+
const listOperationSpec = {
|
|
3988
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks",
|
|
3989
|
+
httpMethod: "GET",
|
|
3990
|
+
responses: {
|
|
3991
|
+
200: {
|
|
3992
|
+
bodyMapper: VirtualNetworkLinkListResult
|
|
3993
|
+
},
|
|
3994
|
+
default: {
|
|
3995
|
+
bodyMapper: CloudError
|
|
3996
|
+
}
|
|
3997
|
+
},
|
|
3998
|
+
queryParameters: [apiVersion, top],
|
|
3999
|
+
urlParameters: [
|
|
4000
|
+
$host,
|
|
4001
|
+
subscriptionId,
|
|
4002
|
+
resourceGroupName,
|
|
4003
|
+
dnsForwardingRulesetName
|
|
4004
|
+
],
|
|
4005
|
+
headerParameters: [accept],
|
|
4006
|
+
serializer
|
|
4007
|
+
};
|
|
4008
|
+
const listNextOperationSpec = {
|
|
4009
|
+
path: "{nextLink}",
|
|
4010
|
+
httpMethod: "GET",
|
|
4011
|
+
responses: {
|
|
4012
|
+
200: {
|
|
4013
|
+
bodyMapper: VirtualNetworkLinkListResult
|
|
4014
|
+
},
|
|
4015
|
+
default: {
|
|
4016
|
+
bodyMapper: CloudError
|
|
4017
|
+
}
|
|
4018
|
+
},
|
|
4019
|
+
queryParameters: [apiVersion, top],
|
|
4020
|
+
urlParameters: [
|
|
4021
|
+
$host,
|
|
4022
|
+
subscriptionId,
|
|
4023
|
+
resourceGroupName,
|
|
4024
|
+
nextLink,
|
|
4025
|
+
dnsForwardingRulesetName
|
|
4026
|
+
],
|
|
4027
|
+
headerParameters: [accept],
|
|
4028
|
+
serializer
|
|
4029
|
+
};
|
|
4030
|
+
|
|
4031
|
+
/*
|
|
4032
|
+
* Copyright (c) Microsoft Corporation.
|
|
4033
|
+
* Licensed under the MIT License.
|
|
4034
|
+
*
|
|
4035
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
4036
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4037
|
+
*/
|
|
4038
|
+
class DnsResolverManagementClient extends coreClient__namespace.ServiceClient {
|
|
4039
|
+
/**
|
|
4040
|
+
* Initializes a new instance of the DnsResolverManagementClient class.
|
|
4041
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
4042
|
+
* @param subscriptionId The ID of the target subscription.
|
|
4043
|
+
* @param options The parameter options
|
|
4044
|
+
*/
|
|
4045
|
+
constructor(credentials, subscriptionId, options) {
|
|
4046
|
+
if (credentials === undefined) {
|
|
4047
|
+
throw new Error("'credentials' cannot be null");
|
|
4048
|
+
}
|
|
4049
|
+
if (subscriptionId === undefined) {
|
|
4050
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
4051
|
+
}
|
|
4052
|
+
// Initializing default values for options
|
|
4053
|
+
if (!options) {
|
|
4054
|
+
options = {};
|
|
4055
|
+
}
|
|
4056
|
+
const defaults = {
|
|
4057
|
+
requestContentType: "application/json; charset=utf-8",
|
|
4058
|
+
credential: credentials
|
|
4059
|
+
};
|
|
4060
|
+
const packageDetails = `azsdk-js-arm-dnsresolver/1.0.0-beta.1`;
|
|
4061
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
4062
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
4063
|
+
: `${packageDetails}`;
|
|
4064
|
+
if (!options.credentialScopes) {
|
|
4065
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
4066
|
+
}
|
|
4067
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
4068
|
+
userAgentPrefix
|
|
4069
|
+
}, baseUri: options.endpoint || "https://management.azure.com" });
|
|
4070
|
+
super(optionsWithDefaults);
|
|
4071
|
+
// Parameter assignments
|
|
4072
|
+
this.subscriptionId = subscriptionId;
|
|
4073
|
+
// Assigning values to Constant parameters
|
|
4074
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
4075
|
+
this.apiVersion = options.apiVersion || "2020-04-01-preview";
|
|
4076
|
+
this.dnsResolvers = new DnsResolversImpl(this);
|
|
4077
|
+
this.inboundEndpoints = new InboundEndpointsImpl(this);
|
|
4078
|
+
this.outboundEndpoints = new OutboundEndpointsImpl(this);
|
|
4079
|
+
this.dnsForwardingRulesets = new DnsForwardingRulesetsImpl(this);
|
|
4080
|
+
this.forwardingRules = new ForwardingRulesImpl(this);
|
|
4081
|
+
this.virtualNetworkLinks = new VirtualNetworkLinksImpl(this);
|
|
4082
|
+
}
|
|
4083
|
+
}
|
|
4084
|
+
|
|
4085
|
+
exports.DnsResolverManagementClient = DnsResolverManagementClient;
|
|
4086
|
+
//# sourceMappingURL=index.js.map
|