@azure/arm-privatedns 2.1.1 → 3.0.0

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