@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.
Files changed (117) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +98 -0
  4. package/dist/index.js +4086 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/dnsResolverManagementClient.d.ts +23 -0
  9. package/dist-esm/src/dnsResolverManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/dnsResolverManagementClient.js +56 -0
  11. package/dist-esm/src/dnsResolverManagementClient.js.map +1 -0
  12. package/dist-esm/src/index.d.ts +5 -0
  13. package/dist-esm/src/index.d.ts.map +1 -0
  14. package/dist-esm/src/index.js +12 -0
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/lroImpl.d.ts +16 -0
  17. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  18. package/dist-esm/src/lroImpl.js +29 -0
  19. package/dist-esm/src/lroImpl.js.map +1 -0
  20. package/dist-esm/src/models/index.d.ts +820 -0
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/src/models/index.js +44 -0
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/src/models/mappers.d.ts +32 -0
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/dist-esm/src/models/mappers.js +821 -0
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/src/models/parameters.d.ts +31 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/dist-esm/src/models/parameters.js +236 -0
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/dist-esm/src/operations/dnsForwardingRulesets.d.ts +133 -0
  33. package/dist-esm/src/operations/dnsForwardingRulesets.d.ts.map +1 -0
  34. package/dist-esm/src/operations/dnsForwardingRulesets.js +623 -0
  35. package/dist-esm/src/operations/dnsForwardingRulesets.js.map +1 -0
  36. package/dist-esm/src/operations/dnsResolvers.d.ts +131 -0
  37. package/dist-esm/src/operations/dnsResolvers.d.ts.map +1 -0
  38. package/dist-esm/src/operations/dnsResolvers.js +621 -0
  39. package/dist-esm/src/operations/dnsResolvers.js.map +1 -0
  40. package/dist-esm/src/operations/forwardingRules.d.ts +72 -0
  41. package/dist-esm/src/operations/forwardingRules.d.ts.map +1 -0
  42. package/dist-esm/src/operations/forwardingRules.js +304 -0
  43. package/dist-esm/src/operations/forwardingRules.js.map +1 -0
  44. package/dist-esm/src/operations/inboundEndpoints.d.ts +99 -0
  45. package/dist-esm/src/operations/inboundEndpoints.d.ts.map +1 -0
  46. package/dist-esm/src/operations/inboundEndpoints.js +438 -0
  47. package/dist-esm/src/operations/inboundEndpoints.js.map +1 -0
  48. package/dist-esm/src/operations/index.d.ts +7 -0
  49. package/dist-esm/src/operations/index.d.ts.map +1 -0
  50. package/dist-esm/src/operations/index.js +14 -0
  51. package/dist-esm/src/operations/index.js.map +1 -0
  52. package/dist-esm/src/operations/outboundEndpoints.d.ts +99 -0
  53. package/dist-esm/src/operations/outboundEndpoints.d.ts.map +1 -0
  54. package/dist-esm/src/operations/outboundEndpoints.js +438 -0
  55. package/dist-esm/src/operations/outboundEndpoints.js.map +1 -0
  56. package/dist-esm/src/operations/virtualNetworkLinks.d.ts +101 -0
  57. package/dist-esm/src/operations/virtualNetworkLinks.d.ts.map +1 -0
  58. package/dist-esm/src/operations/virtualNetworkLinks.js +450 -0
  59. package/dist-esm/src/operations/virtualNetworkLinks.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/dnsForwardingRulesets.d.ts +80 -0
  61. package/dist-esm/src/operationsInterfaces/dnsForwardingRulesets.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/dnsForwardingRulesets.js +9 -0
  63. package/dist-esm/src/operationsInterfaces/dnsForwardingRulesets.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/dnsResolvers.d.ts +78 -0
  65. package/dist-esm/src/operationsInterfaces/dnsResolvers.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/dnsResolvers.js +9 -0
  67. package/dist-esm/src/operationsInterfaces/dnsResolvers.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/forwardingRules.d.ts +47 -0
  69. package/dist-esm/src/operationsInterfaces/forwardingRules.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/forwardingRules.js +9 -0
  71. package/dist-esm/src/operationsInterfaces/forwardingRules.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/inboundEndpoints.d.ts +74 -0
  73. package/dist-esm/src/operationsInterfaces/inboundEndpoints.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/inboundEndpoints.js +9 -0
  75. package/dist-esm/src/operationsInterfaces/inboundEndpoints.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/index.d.ts +7 -0
  77. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/index.js +14 -0
  79. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/outboundEndpoints.d.ts +74 -0
  81. package/dist-esm/src/operationsInterfaces/outboundEndpoints.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/outboundEndpoints.js +9 -0
  83. package/dist-esm/src/operationsInterfaces/outboundEndpoints.js.map +1 -0
  84. package/dist-esm/src/operationsInterfaces/virtualNetworkLinks.d.ts +76 -0
  85. package/dist-esm/src/operationsInterfaces/virtualNetworkLinks.d.ts.map +1 -0
  86. package/dist-esm/src/operationsInterfaces/virtualNetworkLinks.js +9 -0
  87. package/dist-esm/src/operationsInterfaces/virtualNetworkLinks.js.map +1 -0
  88. package/dist-esm/test/sampleTest.d.ts +2 -0
  89. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  90. package/dist-esm/test/sampleTest.js +40 -0
  91. package/dist-esm/test/sampleTest.js.map +1 -0
  92. package/package.json +118 -0
  93. package/review/arm-dnsresolver.api.md +767 -0
  94. package/rollup.config.js +122 -0
  95. package/src/dnsResolverManagementClient.ts +99 -0
  96. package/src/index.ts +12 -0
  97. package/src/lroImpl.ts +34 -0
  98. package/src/models/index.ts +971 -0
  99. package/src/models/mappers.ts +903 -0
  100. package/src/models/parameters.ts +283 -0
  101. package/src/operations/dnsForwardingRulesets.ts +838 -0
  102. package/src/operations/dnsResolvers.ts +836 -0
  103. package/src/operations/forwardingRules.ts +406 -0
  104. package/src/operations/inboundEndpoints.ts +621 -0
  105. package/src/operations/index.ts +14 -0
  106. package/src/operations/outboundEndpoints.ts +621 -0
  107. package/src/operations/virtualNetworkLinks.ts +641 -0
  108. package/src/operationsInterfaces/dnsForwardingRulesets.ts +154 -0
  109. package/src/operationsInterfaces/dnsResolvers.ts +152 -0
  110. package/src/operationsInterfaces/forwardingRules.ts +93 -0
  111. package/src/operationsInterfaces/inboundEndpoints.ts +147 -0
  112. package/src/operationsInterfaces/index.ts +14 -0
  113. package/src/operationsInterfaces/outboundEndpoints.ts +147 -0
  114. package/src/operationsInterfaces/virtualNetworkLinks.ts +149 -0
  115. package/tsconfig.json +32 -0
  116. package/types/arm-dnsresolver.d.ts +1379 -0
  117. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,621 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { InboundEndpoints } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
+ import * as Parameters from "../models/parameters";
14
+ import { DnsResolverManagementClient } from "../dnsResolverManagementClient";
15
+ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
+ import { LroImpl } from "../lroImpl";
17
+ import {
18
+ InboundEndpoint,
19
+ InboundEndpointsListNextOptionalParams,
20
+ InboundEndpointsListOptionalParams,
21
+ InboundEndpointsCreateOrUpdateOptionalParams,
22
+ InboundEndpointsCreateOrUpdateResponse,
23
+ InboundEndpointPatch,
24
+ InboundEndpointsUpdateOptionalParams,
25
+ InboundEndpointsUpdateResponse,
26
+ InboundEndpointsDeleteOptionalParams,
27
+ InboundEndpointsGetOptionalParams,
28
+ InboundEndpointsGetResponse,
29
+ InboundEndpointsListResponse,
30
+ InboundEndpointsListNextResponse
31
+ } from "../models";
32
+
33
+ /// <reference lib="esnext.asynciterable" />
34
+ /** Class containing InboundEndpoints operations. */
35
+ export class InboundEndpointsImpl implements InboundEndpoints {
36
+ private readonly client: DnsResolverManagementClient;
37
+
38
+ /**
39
+ * Initialize a new instance of the class InboundEndpoints class.
40
+ * @param client Reference to the service client
41
+ */
42
+ constructor(client: DnsResolverManagementClient) {
43
+ this.client = client;
44
+ }
45
+
46
+ /**
47
+ * Lists inbound endpoints for a DNS resolver.
48
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
49
+ * @param dnsResolverName The name of the DNS resolver.
50
+ * @param options The options parameters.
51
+ */
52
+ public list(
53
+ resourceGroupName: string,
54
+ dnsResolverName: string,
55
+ options?: InboundEndpointsListOptionalParams
56
+ ): PagedAsyncIterableIterator<InboundEndpoint> {
57
+ const iter = this.listPagingAll(
58
+ resourceGroupName,
59
+ dnsResolverName,
60
+ options
61
+ );
62
+ return {
63
+ next() {
64
+ return iter.next();
65
+ },
66
+ [Symbol.asyncIterator]() {
67
+ return this;
68
+ },
69
+ byPage: () => {
70
+ return this.listPagingPage(resourceGroupName, dnsResolverName, options);
71
+ }
72
+ };
73
+ }
74
+
75
+ private async *listPagingPage(
76
+ resourceGroupName: string,
77
+ dnsResolverName: string,
78
+ options?: InboundEndpointsListOptionalParams
79
+ ): AsyncIterableIterator<InboundEndpoint[]> {
80
+ let result = await this._list(resourceGroupName, dnsResolverName, options);
81
+ yield result.value || [];
82
+ let continuationToken = result.nextLink;
83
+ while (continuationToken) {
84
+ result = await this._listNext(
85
+ resourceGroupName,
86
+ dnsResolverName,
87
+ continuationToken,
88
+ options
89
+ );
90
+ continuationToken = result.nextLink;
91
+ yield result.value || [];
92
+ }
93
+ }
94
+
95
+ private async *listPagingAll(
96
+ resourceGroupName: string,
97
+ dnsResolverName: string,
98
+ options?: InboundEndpointsListOptionalParams
99
+ ): AsyncIterableIterator<InboundEndpoint> {
100
+ for await (const page of this.listPagingPage(
101
+ resourceGroupName,
102
+ dnsResolverName,
103
+ options
104
+ )) {
105
+ yield* page;
106
+ }
107
+ }
108
+
109
+ /**
110
+ * Creates or updates an inbound endpoint for a DNS resolver.
111
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
112
+ * @param dnsResolverName The name of the DNS resolver.
113
+ * @param inboundEndpointName The name of the inbound endpoint for the DNS resolver.
114
+ * @param parameters Parameters supplied to the CreateOrUpdate operation.
115
+ * @param options The options parameters.
116
+ */
117
+ async beginCreateOrUpdate(
118
+ resourceGroupName: string,
119
+ dnsResolverName: string,
120
+ inboundEndpointName: string,
121
+ parameters: InboundEndpoint,
122
+ options?: InboundEndpointsCreateOrUpdateOptionalParams
123
+ ): Promise<
124
+ PollerLike<
125
+ PollOperationState<InboundEndpointsCreateOrUpdateResponse>,
126
+ InboundEndpointsCreateOrUpdateResponse
127
+ >
128
+ > {
129
+ const directSendOperation = async (
130
+ args: coreClient.OperationArguments,
131
+ spec: coreClient.OperationSpec
132
+ ): Promise<InboundEndpointsCreateOrUpdateResponse> => {
133
+ return this.client.sendOperationRequest(args, spec);
134
+ };
135
+ const sendOperation = async (
136
+ args: coreClient.OperationArguments,
137
+ spec: coreClient.OperationSpec
138
+ ) => {
139
+ let currentRawResponse:
140
+ | coreClient.FullOperationResponse
141
+ | undefined = undefined;
142
+ const providedCallback = args.options?.onResponse;
143
+ const callback: coreClient.RawResponseCallback = (
144
+ rawResponse: coreClient.FullOperationResponse,
145
+ flatResponse: unknown
146
+ ) => {
147
+ currentRawResponse = rawResponse;
148
+ providedCallback?.(rawResponse, flatResponse);
149
+ };
150
+ const updatedArgs = {
151
+ ...args,
152
+ options: {
153
+ ...args.options,
154
+ onResponse: callback
155
+ }
156
+ };
157
+ const flatResponse = await directSendOperation(updatedArgs, spec);
158
+ return {
159
+ flatResponse,
160
+ rawResponse: {
161
+ statusCode: currentRawResponse!.status,
162
+ body: currentRawResponse!.parsedBody,
163
+ headers: currentRawResponse!.headers.toJSON()
164
+ }
165
+ };
166
+ };
167
+
168
+ const lro = new LroImpl(
169
+ sendOperation,
170
+ {
171
+ resourceGroupName,
172
+ dnsResolverName,
173
+ inboundEndpointName,
174
+ parameters,
175
+ options
176
+ },
177
+ createOrUpdateOperationSpec
178
+ );
179
+ return new LroEngine(lro, {
180
+ resumeFrom: options?.resumeFrom,
181
+ intervalInMs: options?.updateIntervalInMs
182
+ });
183
+ }
184
+
185
+ /**
186
+ * Creates or updates an inbound endpoint for a DNS resolver.
187
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
188
+ * @param dnsResolverName The name of the DNS resolver.
189
+ * @param inboundEndpointName The name of the inbound endpoint for the DNS resolver.
190
+ * @param parameters Parameters supplied to the CreateOrUpdate operation.
191
+ * @param options The options parameters.
192
+ */
193
+ async beginCreateOrUpdateAndWait(
194
+ resourceGroupName: string,
195
+ dnsResolverName: string,
196
+ inboundEndpointName: string,
197
+ parameters: InboundEndpoint,
198
+ options?: InboundEndpointsCreateOrUpdateOptionalParams
199
+ ): Promise<InboundEndpointsCreateOrUpdateResponse> {
200
+ const poller = await this.beginCreateOrUpdate(
201
+ resourceGroupName,
202
+ dnsResolverName,
203
+ inboundEndpointName,
204
+ parameters,
205
+ options
206
+ );
207
+ return poller.pollUntilDone();
208
+ }
209
+
210
+ /**
211
+ * Updates an inbound endpoint for a DNS resolver.
212
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
213
+ * @param dnsResolverName The name of the DNS resolver.
214
+ * @param inboundEndpointName The name of the inbound endpoint for the DNS resolver.
215
+ * @param parameters Parameters supplied to the Update operation.
216
+ * @param options The options parameters.
217
+ */
218
+ async beginUpdate(
219
+ resourceGroupName: string,
220
+ dnsResolverName: string,
221
+ inboundEndpointName: string,
222
+ parameters: InboundEndpointPatch,
223
+ options?: InboundEndpointsUpdateOptionalParams
224
+ ): Promise<
225
+ PollerLike<
226
+ PollOperationState<InboundEndpointsUpdateResponse>,
227
+ InboundEndpointsUpdateResponse
228
+ >
229
+ > {
230
+ const directSendOperation = async (
231
+ args: coreClient.OperationArguments,
232
+ spec: coreClient.OperationSpec
233
+ ): Promise<InboundEndpointsUpdateResponse> => {
234
+ return this.client.sendOperationRequest(args, spec);
235
+ };
236
+ const sendOperation = async (
237
+ args: coreClient.OperationArguments,
238
+ spec: coreClient.OperationSpec
239
+ ) => {
240
+ let currentRawResponse:
241
+ | coreClient.FullOperationResponse
242
+ | undefined = undefined;
243
+ const providedCallback = args.options?.onResponse;
244
+ const callback: coreClient.RawResponseCallback = (
245
+ rawResponse: coreClient.FullOperationResponse,
246
+ flatResponse: unknown
247
+ ) => {
248
+ currentRawResponse = rawResponse;
249
+ providedCallback?.(rawResponse, flatResponse);
250
+ };
251
+ const updatedArgs = {
252
+ ...args,
253
+ options: {
254
+ ...args.options,
255
+ onResponse: callback
256
+ }
257
+ };
258
+ const flatResponse = await directSendOperation(updatedArgs, spec);
259
+ return {
260
+ flatResponse,
261
+ rawResponse: {
262
+ statusCode: currentRawResponse!.status,
263
+ body: currentRawResponse!.parsedBody,
264
+ headers: currentRawResponse!.headers.toJSON()
265
+ }
266
+ };
267
+ };
268
+
269
+ const lro = new LroImpl(
270
+ sendOperation,
271
+ {
272
+ resourceGroupName,
273
+ dnsResolverName,
274
+ inboundEndpointName,
275
+ parameters,
276
+ options
277
+ },
278
+ updateOperationSpec
279
+ );
280
+ return new LroEngine(lro, {
281
+ resumeFrom: options?.resumeFrom,
282
+ intervalInMs: options?.updateIntervalInMs
283
+ });
284
+ }
285
+
286
+ /**
287
+ * Updates an inbound endpoint for a DNS resolver.
288
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
289
+ * @param dnsResolverName The name of the DNS resolver.
290
+ * @param inboundEndpointName The name of the inbound endpoint for the DNS resolver.
291
+ * @param parameters Parameters supplied to the Update operation.
292
+ * @param options The options parameters.
293
+ */
294
+ async beginUpdateAndWait(
295
+ resourceGroupName: string,
296
+ dnsResolverName: string,
297
+ inboundEndpointName: string,
298
+ parameters: InboundEndpointPatch,
299
+ options?: InboundEndpointsUpdateOptionalParams
300
+ ): Promise<InboundEndpointsUpdateResponse> {
301
+ const poller = await this.beginUpdate(
302
+ resourceGroupName,
303
+ dnsResolverName,
304
+ inboundEndpointName,
305
+ parameters,
306
+ options
307
+ );
308
+ return poller.pollUntilDone();
309
+ }
310
+
311
+ /**
312
+ * Deletes an inbound endpoint for a DNS resolver. WARNING: This operation cannot be undone.
313
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
314
+ * @param dnsResolverName The name of the DNS resolver.
315
+ * @param inboundEndpointName The name of the inbound endpoint for the DNS resolver.
316
+ * @param options The options parameters.
317
+ */
318
+ async beginDelete(
319
+ resourceGroupName: string,
320
+ dnsResolverName: string,
321
+ inboundEndpointName: string,
322
+ options?: InboundEndpointsDeleteOptionalParams
323
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
324
+ const directSendOperation = async (
325
+ args: coreClient.OperationArguments,
326
+ spec: coreClient.OperationSpec
327
+ ): Promise<void> => {
328
+ return this.client.sendOperationRequest(args, spec);
329
+ };
330
+ const sendOperation = async (
331
+ args: coreClient.OperationArguments,
332
+ spec: coreClient.OperationSpec
333
+ ) => {
334
+ let currentRawResponse:
335
+ | coreClient.FullOperationResponse
336
+ | undefined = undefined;
337
+ const providedCallback = args.options?.onResponse;
338
+ const callback: coreClient.RawResponseCallback = (
339
+ rawResponse: coreClient.FullOperationResponse,
340
+ flatResponse: unknown
341
+ ) => {
342
+ currentRawResponse = rawResponse;
343
+ providedCallback?.(rawResponse, flatResponse);
344
+ };
345
+ const updatedArgs = {
346
+ ...args,
347
+ options: {
348
+ ...args.options,
349
+ onResponse: callback
350
+ }
351
+ };
352
+ const flatResponse = await directSendOperation(updatedArgs, spec);
353
+ return {
354
+ flatResponse,
355
+ rawResponse: {
356
+ statusCode: currentRawResponse!.status,
357
+ body: currentRawResponse!.parsedBody,
358
+ headers: currentRawResponse!.headers.toJSON()
359
+ }
360
+ };
361
+ };
362
+
363
+ const lro = new LroImpl(
364
+ sendOperation,
365
+ { resourceGroupName, dnsResolverName, inboundEndpointName, options },
366
+ deleteOperationSpec
367
+ );
368
+ return new LroEngine(lro, {
369
+ resumeFrom: options?.resumeFrom,
370
+ intervalInMs: options?.updateIntervalInMs
371
+ });
372
+ }
373
+
374
+ /**
375
+ * Deletes an inbound endpoint for a DNS resolver. WARNING: This operation cannot be undone.
376
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
377
+ * @param dnsResolverName The name of the DNS resolver.
378
+ * @param inboundEndpointName The name of the inbound endpoint for the DNS resolver.
379
+ * @param options The options parameters.
380
+ */
381
+ async beginDeleteAndWait(
382
+ resourceGroupName: string,
383
+ dnsResolverName: string,
384
+ inboundEndpointName: string,
385
+ options?: InboundEndpointsDeleteOptionalParams
386
+ ): Promise<void> {
387
+ const poller = await this.beginDelete(
388
+ resourceGroupName,
389
+ dnsResolverName,
390
+ inboundEndpointName,
391
+ options
392
+ );
393
+ return poller.pollUntilDone();
394
+ }
395
+
396
+ /**
397
+ * Gets properties of an inbound endpoint for a DNS resolver.
398
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
399
+ * @param dnsResolverName The name of the DNS resolver.
400
+ * @param inboundEndpointName The name of the inbound endpoint for the DNS resolver.
401
+ * @param options The options parameters.
402
+ */
403
+ get(
404
+ resourceGroupName: string,
405
+ dnsResolverName: string,
406
+ inboundEndpointName: string,
407
+ options?: InboundEndpointsGetOptionalParams
408
+ ): Promise<InboundEndpointsGetResponse> {
409
+ return this.client.sendOperationRequest(
410
+ { resourceGroupName, dnsResolverName, inboundEndpointName, options },
411
+ getOperationSpec
412
+ );
413
+ }
414
+
415
+ /**
416
+ * Lists inbound endpoints for a DNS resolver.
417
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
418
+ * @param dnsResolverName The name of the DNS resolver.
419
+ * @param options The options parameters.
420
+ */
421
+ private _list(
422
+ resourceGroupName: string,
423
+ dnsResolverName: string,
424
+ options?: InboundEndpointsListOptionalParams
425
+ ): Promise<InboundEndpointsListResponse> {
426
+ return this.client.sendOperationRequest(
427
+ { resourceGroupName, dnsResolverName, options },
428
+ listOperationSpec
429
+ );
430
+ }
431
+
432
+ /**
433
+ * ListNext
434
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
435
+ * @param dnsResolverName The name of the DNS resolver.
436
+ * @param nextLink The nextLink from the previous successful call to the List method.
437
+ * @param options The options parameters.
438
+ */
439
+ private _listNext(
440
+ resourceGroupName: string,
441
+ dnsResolverName: string,
442
+ nextLink: string,
443
+ options?: InboundEndpointsListNextOptionalParams
444
+ ): Promise<InboundEndpointsListNextResponse> {
445
+ return this.client.sendOperationRequest(
446
+ { resourceGroupName, dnsResolverName, nextLink, options },
447
+ listNextOperationSpec
448
+ );
449
+ }
450
+ }
451
+ // Operation Specifications
452
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
453
+
454
+ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
455
+ path:
456
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}",
457
+ httpMethod: "PUT",
458
+ responses: {
459
+ 200: {
460
+ bodyMapper: Mappers.InboundEndpoint
461
+ },
462
+ 201: {
463
+ bodyMapper: Mappers.InboundEndpoint
464
+ },
465
+ 202: {
466
+ bodyMapper: Mappers.InboundEndpoint
467
+ },
468
+ 204: {
469
+ bodyMapper: Mappers.InboundEndpoint
470
+ },
471
+ default: {
472
+ bodyMapper: Mappers.CloudError
473
+ }
474
+ },
475
+ requestBody: Parameters.parameters2,
476
+ queryParameters: [Parameters.apiVersion],
477
+ urlParameters: [
478
+ Parameters.$host,
479
+ Parameters.subscriptionId,
480
+ Parameters.resourceGroupName,
481
+ Parameters.dnsResolverName,
482
+ Parameters.inboundEndpointName
483
+ ],
484
+ headerParameters: [
485
+ Parameters.contentType,
486
+ Parameters.accept,
487
+ Parameters.ifMatch,
488
+ Parameters.ifNoneMatch
489
+ ],
490
+ mediaType: "json",
491
+ serializer
492
+ };
493
+ const updateOperationSpec: coreClient.OperationSpec = {
494
+ path:
495
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}",
496
+ httpMethod: "PATCH",
497
+ responses: {
498
+ 200: {
499
+ bodyMapper: Mappers.InboundEndpoint
500
+ },
501
+ 201: {
502
+ bodyMapper: Mappers.InboundEndpoint
503
+ },
504
+ 202: {
505
+ bodyMapper: Mappers.InboundEndpoint
506
+ },
507
+ 204: {
508
+ bodyMapper: Mappers.InboundEndpoint
509
+ },
510
+ default: {
511
+ bodyMapper: Mappers.CloudError
512
+ }
513
+ },
514
+ requestBody: Parameters.parameters3,
515
+ queryParameters: [Parameters.apiVersion],
516
+ urlParameters: [
517
+ Parameters.$host,
518
+ Parameters.subscriptionId,
519
+ Parameters.resourceGroupName,
520
+ Parameters.dnsResolverName,
521
+ Parameters.inboundEndpointName
522
+ ],
523
+ headerParameters: [
524
+ Parameters.contentType,
525
+ Parameters.accept,
526
+ Parameters.ifMatch
527
+ ],
528
+ mediaType: "json",
529
+ serializer
530
+ };
531
+ const deleteOperationSpec: coreClient.OperationSpec = {
532
+ path:
533
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}",
534
+ httpMethod: "DELETE",
535
+ responses: {
536
+ 200: {},
537
+ 201: {},
538
+ 202: {},
539
+ 204: {},
540
+ default: {
541
+ bodyMapper: Mappers.CloudError
542
+ }
543
+ },
544
+ queryParameters: [Parameters.apiVersion],
545
+ urlParameters: [
546
+ Parameters.$host,
547
+ Parameters.subscriptionId,
548
+ Parameters.resourceGroupName,
549
+ Parameters.dnsResolverName,
550
+ Parameters.inboundEndpointName
551
+ ],
552
+ headerParameters: [Parameters.accept, Parameters.ifMatch],
553
+ serializer
554
+ };
555
+ const getOperationSpec: coreClient.OperationSpec = {
556
+ path:
557
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}",
558
+ httpMethod: "GET",
559
+ responses: {
560
+ 200: {
561
+ bodyMapper: Mappers.InboundEndpoint
562
+ },
563
+ default: {
564
+ bodyMapper: Mappers.CloudError
565
+ }
566
+ },
567
+ queryParameters: [Parameters.apiVersion],
568
+ urlParameters: [
569
+ Parameters.$host,
570
+ Parameters.subscriptionId,
571
+ Parameters.resourceGroupName,
572
+ Parameters.dnsResolverName,
573
+ Parameters.inboundEndpointName
574
+ ],
575
+ headerParameters: [Parameters.accept],
576
+ serializer
577
+ };
578
+ const listOperationSpec: coreClient.OperationSpec = {
579
+ path:
580
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints",
581
+ httpMethod: "GET",
582
+ responses: {
583
+ 200: {
584
+ bodyMapper: Mappers.InboundEndpointListResult
585
+ },
586
+ default: {
587
+ bodyMapper: Mappers.CloudError
588
+ }
589
+ },
590
+ queryParameters: [Parameters.apiVersion, Parameters.top],
591
+ urlParameters: [
592
+ Parameters.$host,
593
+ Parameters.subscriptionId,
594
+ Parameters.resourceGroupName,
595
+ Parameters.dnsResolverName
596
+ ],
597
+ headerParameters: [Parameters.accept],
598
+ serializer
599
+ };
600
+ const listNextOperationSpec: coreClient.OperationSpec = {
601
+ path: "{nextLink}",
602
+ httpMethod: "GET",
603
+ responses: {
604
+ 200: {
605
+ bodyMapper: Mappers.InboundEndpointListResult
606
+ },
607
+ default: {
608
+ bodyMapper: Mappers.CloudError
609
+ }
610
+ },
611
+ queryParameters: [Parameters.apiVersion, Parameters.top],
612
+ urlParameters: [
613
+ Parameters.$host,
614
+ Parameters.subscriptionId,
615
+ Parameters.resourceGroupName,
616
+ Parameters.dnsResolverName,
617
+ Parameters.nextLink
618
+ ],
619
+ headerParameters: [Parameters.accept],
620
+ serializer
621
+ };
@@ -0,0 +1,14 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ export * from "./dnsResolvers";
10
+ export * from "./inboundEndpoints";
11
+ export * from "./outboundEndpoints";
12
+ export * from "./dnsForwardingRulesets";
13
+ export * from "./forwardingRules";
14
+ export * from "./virtualNetworkLinks";