@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.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +69 -83
- package/dist/index.js +2295 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +470 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +24 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +22 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +234 -205
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +20 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +91 -77
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +3 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/privateZones.d.ts +114 -0
- package/dist-esm/src/operations/privateZones.d.ts.map +1 -0
- package/dist-esm/src/operations/privateZones.js +516 -0
- package/dist-esm/src/operations/privateZones.js.map +1 -0
- package/dist-esm/src/operations/recordSets.d.ts +105 -0
- package/dist-esm/src/operations/recordSets.d.ts.map +1 -0
- package/dist-esm/src/operations/recordSets.js +451 -0
- package/dist-esm/src/operations/recordSets.js.map +1 -0
- package/dist-esm/src/operations/virtualNetworkLinks.d.ts +103 -0
- package/dist-esm/src/operations/virtualNetworkLinks.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualNetworkLinks.js +442 -0
- package/dist-esm/src/operations/virtualNetworkLinks.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +11 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateZones.d.ts +78 -0
- package/dist-esm/src/operationsInterfaces/privateZones.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateZones.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateZones.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/recordSets.d.ts +61 -0
- package/dist-esm/src/operationsInterfaces/recordSets.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/recordSets.js +9 -0
- package/dist-esm/src/operationsInterfaces/recordSets.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualNetworkLinks.d.ts +78 -0
- package/dist-esm/src/operationsInterfaces/virtualNetworkLinks.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualNetworkLinks.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualNetworkLinks.js.map +1 -0
- package/dist-esm/src/privateDnsManagementClient.d.ts +21 -0
- package/dist-esm/src/privateDnsManagementClient.d.ts.map +1 -0
- package/dist-esm/src/privateDnsManagementClient.js +54 -0
- package/dist-esm/src/privateDnsManagementClient.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +83 -24
- package/review/arm-privatedns.api.md +435 -0
- package/rollup.config.js +181 -30
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +400 -956
- package/src/models/mappers.ts +248 -214
- package/src/models/parameters.ts +117 -78
- package/src/operations/index.ts +3 -5
- package/src/operations/privateZones.ts +521 -325
- package/src/operations/recordSets.ts +382 -348
- package/src/operations/virtualNetworkLinks.ts +475 -261
- package/src/operationsInterfaces/index.ts +11 -0
- package/src/operationsInterfaces/privateZones.ts +145 -0
- package/src/operationsInterfaces/recordSets.ts +117 -0
- package/src/operationsInterfaces/virtualNetworkLinks.ts +150 -0
- package/src/privateDnsManagementClient.ts +75 -40
- package/tsconfig.json +20 -7
- package/types/arm-privatedns.d.ts +768 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-privatedns.js +0 -1948
- package/dist/arm-privatedns.js.map +0 -1
- package/dist/arm-privatedns.min.js +0 -1
- package/dist/arm-privatedns.min.js.map +0 -1
- package/esm/models/index.d.ts +0 -1031
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -22
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -15
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/privateZonesMappers.d.ts +0 -2
- package/esm/models/privateZonesMappers.d.ts.map +0 -1
- package/esm/models/privateZonesMappers.js +0 -9
- package/esm/models/privateZonesMappers.js.map +0 -1
- package/esm/models/recordSetsMappers.d.ts +0 -2
- package/esm/models/recordSetsMappers.d.ts.map +0 -1
- package/esm/models/recordSetsMappers.js +0 -9
- package/esm/models/recordSetsMappers.js.map +0 -1
- package/esm/models/virtualNetworkLinksMappers.d.ts +0 -2
- package/esm/models/virtualNetworkLinksMappers.d.ts.map +0 -1
- package/esm/models/virtualNetworkLinksMappers.js +0 -9
- package/esm/models/virtualNetworkLinksMappers.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/privateZones.d.ts +0 -165
- package/esm/operations/privateZones.d.ts.map +0 -1
- package/esm/operations/privateZones.js +0 -347
- package/esm/operations/privateZones.js.map +0 -1
- package/esm/operations/recordSets.d.ts +0 -229
- package/esm/operations/recordSets.d.ts.map +0 -1
- package/esm/operations/recordSets.js +0 -304
- package/esm/operations/recordSets.js.map +0 -1
- package/esm/operations/virtualNetworkLinks.d.ts +0 -139
- package/esm/operations/virtualNetworkLinks.d.ts.map +0 -1
- package/esm/operations/virtualNetworkLinks.js +0 -305
- package/esm/operations/virtualNetworkLinks.js.map +0 -1
- package/esm/privateDnsManagementClient.d.ts +0 -27
- package/esm/privateDnsManagementClient.d.ts.map +0 -1
- package/esm/privateDnsManagementClient.js +0 -41
- package/esm/privateDnsManagementClient.js.map +0 -1
- package/esm/privateDnsManagementClientContext.d.ts +0 -23
- package/esm/privateDnsManagementClientContext.d.ts.map +0 -1
- package/esm/privateDnsManagementClientContext.js +0 -62
- package/esm/privateDnsManagementClientContext.js.map +0 -1
- package/src/models/privateZonesMappers.ts +0 -28
- package/src/models/recordSetsMappers.ts +0 -28
- package/src/models/virtualNetworkLinksMappers.ts +0 -28
- package/src/privateDnsManagementClientContext.ts +0 -69
|
@@ -1,154 +1,272 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import * as
|
|
14
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { 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 {
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
*
|
|
24
|
-
* @param
|
|
38
|
+
* Initialize a new instance of the class VirtualNetworkLinks class.
|
|
39
|
+
* @param client Reference to the service client
|
|
25
40
|
*/
|
|
26
|
-
constructor(client:
|
|
41
|
+
constructor(client: PrivateDnsManagementClient) {
|
|
27
42
|
this.client = client;
|
|
28
43
|
}
|
|
29
44
|
|
|
30
45
|
/**
|
|
31
|
-
*
|
|
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
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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
|
-
*
|
|
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
|
|
94
|
-
* @param
|
|
113
|
+
* @param parameters Parameters supplied to the CreateOrUpdate operation.
|
|
114
|
+
* @param options The options parameters.
|
|
95
115
|
*/
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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
|
-
|
|
106
|
-
|
|
176
|
+
createOrUpdateOperationSpec
|
|
177
|
+
);
|
|
178
|
+
return new LroEngine(lro, {
|
|
179
|
+
resumeFrom: options?.resumeFrom,
|
|
180
|
+
intervalInMs: options?.updateIntervalInMs
|
|
181
|
+
});
|
|
107
182
|
}
|
|
108
183
|
|
|
109
184
|
/**
|
|
110
|
-
*
|
|
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
|
|
127
|
-
* @param
|
|
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
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
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
|
-
*
|
|
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
|
|
147
|
-
* @param
|
|
148
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
214
|
+
* @param parameters Parameters supplied to the Update operation.
|
|
215
|
+
* @param options The options parameters.
|
|
149
216
|
*/
|
|
150
|
-
|
|
151
|
-
|
|
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
|
-
|
|
160
|
-
|
|
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
|
|
170
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
291
|
+
* @param options The options parameters.
|
|
171
292
|
*/
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
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
|
-
*
|
|
188
|
-
*
|
|
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
|
|
193
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
317
|
+
* @param options The options parameters.
|
|
194
318
|
*/
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
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
|
-
*
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
* @
|
|
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
|
-
|
|
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
|
-
*
|
|
216
|
-
* @param
|
|
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
|
-
|
|
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
|
-
*
|
|
221
|
-
* @param
|
|
222
|
-
* @param
|
|
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
|
-
|
|
225
|
-
|
|
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
|
-
|
|
229
|
-
|
|
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 =
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
path:
|
|
241
|
-
|
|
242
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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.
|
|
297
|
-
Parameters.
|
|
298
|
-
],
|
|
299
|
-
queryParameters: [
|
|
300
|
-
Parameters.apiVersion
|
|
523
|
+
Parameters.subscriptionId,
|
|
524
|
+
Parameters.virtualNetworkLinkName
|
|
301
525
|
],
|
|
302
526
|
headerParameters: [
|
|
303
|
-
Parameters.
|
|
304
|
-
Parameters.
|
|
305
|
-
Parameters.
|
|
527
|
+
Parameters.contentType,
|
|
528
|
+
Parameters.accept,
|
|
529
|
+
Parameters.ifMatch
|
|
306
530
|
],
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
336
|
-
Parameters.
|
|
337
|
-
],
|
|
338
|
-
queryParameters: [
|
|
339
|
-
Parameters.apiVersion
|
|
340
|
-
],
|
|
341
|
-
headerParameters: [
|
|
342
|
-
Parameters.ifMatch,
|
|
343
|
-
Parameters.acceptLanguage
|
|
552
|
+
Parameters.subscriptionId,
|
|
553
|
+
Parameters.virtualNetworkLinkName
|
|
344
554
|
],
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
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
|
-
|
|
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.
|
|
371
|
-
Parameters.
|
|
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
|
-
|
|
383
|
-
|
|
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
|
-
|
|
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
|
};
|