@azure/arm-privatedns 1.0.0 → 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/LICENSE.txt +21 -21
- package/README.md +98 -100
- 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 +86 -26
- 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 +567 -0
- package/{lib → src}/models/mappers.ts +248 -214
- package/src/models/parameters.ts +201 -0
- package/{lib → src}/operations/index.ts +3 -5
- package/src/operations/privateZones.ts +686 -0
- package/src/operations/recordSets.ts +602 -0
- package/src/operations/virtualNetworkLinks.ts +624 -0
- 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 +88 -0
- 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 -1944
- package/dist/arm-privatedns.js.map +0 -1
- package/dist/arm-privatedns.min.js +0 -1
- package/dist/arm-privatedns.min.js.map +0 -1
- package/esm/models/index.d.ts +0 -1031
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -22
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -15
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/privateZonesMappers.d.ts +0 -2
- package/esm/models/privateZonesMappers.d.ts.map +0 -1
- package/esm/models/privateZonesMappers.js +0 -9
- package/esm/models/privateZonesMappers.js.map +0 -1
- package/esm/models/recordSetsMappers.d.ts +0 -2
- package/esm/models/recordSetsMappers.d.ts.map +0 -1
- package/esm/models/recordSetsMappers.js +0 -9
- package/esm/models/recordSetsMappers.js.map +0 -1
- package/esm/models/virtualNetworkLinksMappers.d.ts +0 -2
- package/esm/models/virtualNetworkLinksMappers.d.ts.map +0 -1
- package/esm/models/virtualNetworkLinksMappers.js +0 -9
- package/esm/models/virtualNetworkLinksMappers.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/privateZones.d.ts +0 -165
- package/esm/operations/privateZones.d.ts.map +0 -1
- package/esm/operations/privateZones.js +0 -347
- package/esm/operations/privateZones.js.map +0 -1
- package/esm/operations/recordSets.d.ts +0 -229
- package/esm/operations/recordSets.d.ts.map +0 -1
- package/esm/operations/recordSets.js +0 -304
- package/esm/operations/recordSets.js.map +0 -1
- package/esm/operations/virtualNetworkLinks.d.ts +0 -139
- package/esm/operations/virtualNetworkLinks.d.ts.map +0 -1
- package/esm/operations/virtualNetworkLinks.js +0 -305
- package/esm/operations/virtualNetworkLinks.js.map +0 -1
- package/esm/privateDnsManagementClient.d.ts +0 -21
- package/esm/privateDnsManagementClient.d.ts.map +0 -1
- package/esm/privateDnsManagementClient.js +0 -36
- package/esm/privateDnsManagementClient.js.map +0 -1
- package/esm/privateDnsManagementClientContext.d.ts +0 -17
- package/esm/privateDnsManagementClientContext.d.ts.map +0 -1
- package/esm/privateDnsManagementClientContext.js +0 -57
- package/esm/privateDnsManagementClientContext.js.map +0 -1
- package/lib/models/index.ts +0 -1123
- package/lib/models/parameters.ts +0 -162
- package/lib/models/privateZonesMappers.ts +0 -28
- package/lib/models/recordSetsMappers.ts +0 -28
- package/lib/models/virtualNetworkLinksMappers.ts +0 -28
- package/lib/operations/privateZones.ts +0 -490
- package/lib/operations/recordSets.ts +0 -568
- package/lib/operations/virtualNetworkLinks.ts +0 -410
- package/lib/privateDnsManagementClient.ts +0 -47
- package/lib/privateDnsManagementClientContext.ts +0 -63
|
@@ -1,410 +0,0 @@
|
|
|
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.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
9
|
-
*/
|
|
10
|
-
|
|
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";
|
|
15
|
-
import * as Parameters from "../models/parameters";
|
|
16
|
-
import { PrivateDnsManagementClientContext } from "../privateDnsManagementClientContext";
|
|
17
|
-
|
|
18
|
-
/** Class representing a VirtualNetworkLinks. */
|
|
19
|
-
export class VirtualNetworkLinks {
|
|
20
|
-
private readonly client: PrivateDnsManagementClientContext;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Create a VirtualNetworkLinks.
|
|
24
|
-
* @param {PrivateDnsManagementClientContext} client Reference to the service client.
|
|
25
|
-
*/
|
|
26
|
-
constructor(client: PrivateDnsManagementClientContext) {
|
|
27
|
-
this.client = client;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Creates or updates a virtual network link to the specified Private DNS zone.
|
|
32
|
-
* @param resourceGroupName The name of the resource group.
|
|
33
|
-
* @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>
|
|
38
|
-
*/
|
|
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>;
|
|
42
|
-
}
|
|
43
|
-
|
|
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>;
|
|
56
|
-
}
|
|
57
|
-
|
|
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());
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/**
|
|
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
|
-
/**
|
|
90
|
-
* @param resourceGroupName The name of the resource group.
|
|
91
|
-
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
92
|
-
* @param virtualNetworkLinkName The name of the virtual network link.
|
|
93
|
-
* @param options The optional parameters
|
|
94
|
-
* @param callback The callback
|
|
95
|
-
*/
|
|
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(
|
|
99
|
-
{
|
|
100
|
-
resourceGroupName,
|
|
101
|
-
privateZoneName,
|
|
102
|
-
virtualNetworkLinkName,
|
|
103
|
-
options
|
|
104
|
-
},
|
|
105
|
-
getOperationSpec,
|
|
106
|
-
callback) as Promise<Models.VirtualNetworkLinksGetResponse>;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
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
|
-
/**
|
|
124
|
-
* @param resourceGroupName The name of the resource group.
|
|
125
|
-
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
126
|
-
* @param options The optional parameters
|
|
127
|
-
* @param callback The callback
|
|
128
|
-
*/
|
|
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>;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Creates or updates a virtual network link to the specified Private DNS zone.
|
|
143
|
-
* @param resourceGroupName The name of the resource group.
|
|
144
|
-
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
145
|
-
* @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>
|
|
149
|
-
*/
|
|
150
|
-
beginCreateOrUpdate(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, parameters: Models.VirtualNetworkLink, options?: Models.VirtualNetworkLinksBeginCreateOrUpdateOptionalParams): Promise<msRestAzure.LROPoller> {
|
|
151
|
-
return this.client.sendLRORequest(
|
|
152
|
-
{
|
|
153
|
-
resourceGroupName,
|
|
154
|
-
privateZoneName,
|
|
155
|
-
virtualNetworkLinkName,
|
|
156
|
-
parameters,
|
|
157
|
-
options
|
|
158
|
-
},
|
|
159
|
-
beginCreateOrUpdateOperationSpec,
|
|
160
|
-
options);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* Updates a virtual network link to the specified Private DNS zone.
|
|
165
|
-
* @param resourceGroupName The name of the resource group.
|
|
166
|
-
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
167
|
-
* @param virtualNetworkLinkName The name of the virtual network link.
|
|
168
|
-
* @param parameters Parameters supplied to the Update operation.
|
|
169
|
-
* @param [options] The optional parameters
|
|
170
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
171
|
-
*/
|
|
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);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
/**
|
|
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.
|
|
189
|
-
* @param resourceGroupName The name of the resource group.
|
|
190
|
-
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
191
|
-
* @param virtualNetworkLinkName The name of the virtual network link.
|
|
192
|
-
* @param [options] The optional parameters
|
|
193
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
194
|
-
*/
|
|
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);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/**
|
|
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>
|
|
212
|
-
*/
|
|
213
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.VirtualNetworkLinksListNextResponse>;
|
|
214
|
-
/**
|
|
215
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
216
|
-
* @param callback The callback
|
|
217
|
-
*/
|
|
218
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.VirtualNetworkLinkListResult>): void;
|
|
219
|
-
/**
|
|
220
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
221
|
-
* @param options The optional parameters
|
|
222
|
-
* @param callback The callback
|
|
223
|
-
*/
|
|
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> {
|
|
226
|
-
return this.client.sendOperationRequest(
|
|
227
|
-
{
|
|
228
|
-
nextPageLink,
|
|
229
|
-
options
|
|
230
|
-
},
|
|
231
|
-
listNextOperationSpec,
|
|
232
|
-
callback) as Promise<Models.VirtualNetworkLinksListNextResponse>;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
// 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
|
-
],
|
|
253
|
-
responses: {
|
|
254
|
-
200: {
|
|
255
|
-
bodyMapper: Mappers.VirtualNetworkLink
|
|
256
|
-
},
|
|
257
|
-
default: {
|
|
258
|
-
bodyMapper: Mappers.CloudError
|
|
259
|
-
}
|
|
260
|
-
},
|
|
261
|
-
serializer
|
|
262
|
-
};
|
|
263
|
-
|
|
264
|
-
const listOperationSpec: msRest.OperationSpec = {
|
|
265
|
-
httpMethod: "GET",
|
|
266
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/virtualNetworkLinks",
|
|
267
|
-
urlParameters: [
|
|
268
|
-
Parameters.resourceGroupName,
|
|
269
|
-
Parameters.privateZoneName,
|
|
270
|
-
Parameters.subscriptionId
|
|
271
|
-
],
|
|
272
|
-
queryParameters: [
|
|
273
|
-
Parameters.top,
|
|
274
|
-
Parameters.apiVersion
|
|
275
|
-
],
|
|
276
|
-
headerParameters: [
|
|
277
|
-
Parameters.acceptLanguage
|
|
278
|
-
],
|
|
279
|
-
responses: {
|
|
280
|
-
200: {
|
|
281
|
-
bodyMapper: Mappers.VirtualNetworkLinkListResult
|
|
282
|
-
},
|
|
283
|
-
default: {
|
|
284
|
-
bodyMapper: Mappers.CloudError
|
|
285
|
-
}
|
|
286
|
-
},
|
|
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}",
|
|
293
|
-
urlParameters: [
|
|
294
|
-
Parameters.resourceGroupName,
|
|
295
|
-
Parameters.privateZoneName,
|
|
296
|
-
Parameters.virtualNetworkLinkName,
|
|
297
|
-
Parameters.subscriptionId
|
|
298
|
-
],
|
|
299
|
-
queryParameters: [
|
|
300
|
-
Parameters.apiVersion
|
|
301
|
-
],
|
|
302
|
-
headerParameters: [
|
|
303
|
-
Parameters.ifMatch,
|
|
304
|
-
Parameters.ifNoneMatch,
|
|
305
|
-
Parameters.acceptLanguage
|
|
306
|
-
],
|
|
307
|
-
requestBody: {
|
|
308
|
-
parameterPath: "parameters",
|
|
309
|
-
mapper: {
|
|
310
|
-
...Mappers.VirtualNetworkLink,
|
|
311
|
-
required: true
|
|
312
|
-
}
|
|
313
|
-
},
|
|
314
|
-
responses: {
|
|
315
|
-
200: {
|
|
316
|
-
bodyMapper: Mappers.VirtualNetworkLink
|
|
317
|
-
},
|
|
318
|
-
201: {
|
|
319
|
-
bodyMapper: Mappers.VirtualNetworkLink
|
|
320
|
-
},
|
|
321
|
-
202: {},
|
|
322
|
-
default: {
|
|
323
|
-
bodyMapper: Mappers.CloudError
|
|
324
|
-
}
|
|
325
|
-
},
|
|
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}",
|
|
332
|
-
urlParameters: [
|
|
333
|
-
Parameters.resourceGroupName,
|
|
334
|
-
Parameters.privateZoneName,
|
|
335
|
-
Parameters.virtualNetworkLinkName,
|
|
336
|
-
Parameters.subscriptionId
|
|
337
|
-
],
|
|
338
|
-
queryParameters: [
|
|
339
|
-
Parameters.apiVersion
|
|
340
|
-
],
|
|
341
|
-
headerParameters: [
|
|
342
|
-
Parameters.ifMatch,
|
|
343
|
-
Parameters.acceptLanguage
|
|
344
|
-
],
|
|
345
|
-
requestBody: {
|
|
346
|
-
parameterPath: "parameters",
|
|
347
|
-
mapper: {
|
|
348
|
-
...Mappers.VirtualNetworkLink,
|
|
349
|
-
required: true
|
|
350
|
-
}
|
|
351
|
-
},
|
|
352
|
-
responses: {
|
|
353
|
-
200: {
|
|
354
|
-
bodyMapper: Mappers.VirtualNetworkLink
|
|
355
|
-
},
|
|
356
|
-
202: {},
|
|
357
|
-
default: {
|
|
358
|
-
bodyMapper: Mappers.CloudError
|
|
359
|
-
}
|
|
360
|
-
},
|
|
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}",
|
|
367
|
-
urlParameters: [
|
|
368
|
-
Parameters.resourceGroupName,
|
|
369
|
-
Parameters.privateZoneName,
|
|
370
|
-
Parameters.virtualNetworkLinkName,
|
|
371
|
-
Parameters.subscriptionId
|
|
372
|
-
],
|
|
373
|
-
queryParameters: [
|
|
374
|
-
Parameters.apiVersion
|
|
375
|
-
],
|
|
376
|
-
headerParameters: [
|
|
377
|
-
Parameters.ifMatch,
|
|
378
|
-
Parameters.acceptLanguage
|
|
379
|
-
],
|
|
380
|
-
responses: {
|
|
381
|
-
200: {},
|
|
382
|
-
202: {},
|
|
383
|
-
204: {},
|
|
384
|
-
default: {
|
|
385
|
-
bodyMapper: Mappers.CloudError
|
|
386
|
-
}
|
|
387
|
-
},
|
|
388
|
-
serializer
|
|
389
|
-
};
|
|
390
|
-
|
|
391
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
392
|
-
httpMethod: "GET",
|
|
393
|
-
baseUrl: "https://management.azure.com",
|
|
394
|
-
path: "{nextLink}",
|
|
395
|
-
urlParameters: [
|
|
396
|
-
Parameters.nextPageLink
|
|
397
|
-
],
|
|
398
|
-
headerParameters: [
|
|
399
|
-
Parameters.acceptLanguage
|
|
400
|
-
],
|
|
401
|
-
responses: {
|
|
402
|
-
200: {
|
|
403
|
-
bodyMapper: Mappers.VirtualNetworkLinkListResult
|
|
404
|
-
},
|
|
405
|
-
default: {
|
|
406
|
-
bodyMapper: Mappers.CloudError
|
|
407
|
-
}
|
|
408
|
-
},
|
|
409
|
-
serializer
|
|
410
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
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.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
12
|
-
import * as Models from "./models";
|
|
13
|
-
import * as Mappers from "./models/mappers";
|
|
14
|
-
import * as operations from "./operations";
|
|
15
|
-
import { PrivateDnsManagementClientContext } from "./privateDnsManagementClientContext";
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
class PrivateDnsManagementClient extends PrivateDnsManagementClientContext {
|
|
19
|
-
// Operation groups
|
|
20
|
-
privateZones: operations.PrivateZones;
|
|
21
|
-
virtualNetworkLinks: operations.VirtualNetworkLinks;
|
|
22
|
-
recordSets: operations.RecordSets;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Initializes a new instance of the PrivateDnsManagementClient class.
|
|
26
|
-
* @param credentials Credentials needed for the client to connect to Azure.
|
|
27
|
-
* @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure
|
|
28
|
-
* subscription. The subscription ID forms part of the URI for every service call.
|
|
29
|
-
* @param [options] The parameter options
|
|
30
|
-
*/
|
|
31
|
-
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.PrivateDnsManagementClientOptions) {
|
|
32
|
-
super(credentials, subscriptionId, options);
|
|
33
|
-
this.privateZones = new operations.PrivateZones(this);
|
|
34
|
-
this.virtualNetworkLinks = new operations.VirtualNetworkLinks(this);
|
|
35
|
-
this.recordSets = new operations.RecordSets(this);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// Operation Specifications
|
|
40
|
-
|
|
41
|
-
export {
|
|
42
|
-
PrivateDnsManagementClient,
|
|
43
|
-
PrivateDnsManagementClientContext,
|
|
44
|
-
Models as PrivateDnsManagementModels,
|
|
45
|
-
Mappers as PrivateDnsManagementMappers
|
|
46
|
-
};
|
|
47
|
-
export * from "./operations";
|
|
@@ -1,63 +0,0 @@
|
|
|
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.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import * as Models from "./models";
|
|
12
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
13
|
-
import * as msRestAzure from "@azure/ms-rest-azure-js";
|
|
14
|
-
|
|
15
|
-
const packageName = "@azure/arm-privatedns";
|
|
16
|
-
const packageVersion = "1.0.0";
|
|
17
|
-
|
|
18
|
-
export class PrivateDnsManagementClientContext extends msRestAzure.AzureServiceClient {
|
|
19
|
-
credentials: msRest.ServiceClientCredentials;
|
|
20
|
-
subscriptionId: string;
|
|
21
|
-
apiVersion?: string;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Initializes a new instance of the PrivateDnsManagementClient class.
|
|
25
|
-
* @param credentials Credentials needed for the client to connect to Azure.
|
|
26
|
-
* @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure
|
|
27
|
-
* subscription. The subscription ID forms part of the URI for every service call.
|
|
28
|
-
* @param [options] The parameter options
|
|
29
|
-
*/
|
|
30
|
-
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.PrivateDnsManagementClientOptions) {
|
|
31
|
-
if (credentials == undefined) {
|
|
32
|
-
throw new Error('\'credentials\' cannot be null.');
|
|
33
|
-
}
|
|
34
|
-
if (subscriptionId == undefined) {
|
|
35
|
-
throw new Error('\'subscriptionId\' cannot be null.');
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
if (!options) {
|
|
39
|
-
options = {};
|
|
40
|
-
}
|
|
41
|
-
if(!options.userAgent) {
|
|
42
|
-
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
|
|
43
|
-
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
super(credentials, options);
|
|
47
|
-
|
|
48
|
-
this.apiVersion = '2018-09-01';
|
|
49
|
-
this.acceptLanguage = 'en-US';
|
|
50
|
-
this.longRunningOperationRetryTimeout = 30;
|
|
51
|
-
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
|
|
52
|
-
this.requestContentType = "application/json; charset=utf-8";
|
|
53
|
-
this.credentials = credentials;
|
|
54
|
-
this.subscriptionId = subscriptionId;
|
|
55
|
-
|
|
56
|
-
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
|
|
57
|
-
this.acceptLanguage = options.acceptLanguage;
|
|
58
|
-
}
|
|
59
|
-
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
|
|
60
|
-
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|