@azure/arm-privatedns 2.1.1 → 3.0.0-alpha.20220124.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +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 +82 -23
- 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
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=recordSets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recordSets.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/recordSets.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
3
|
+
import { VirtualNetworkLink, VirtualNetworkLinksListOptionalParams, VirtualNetworkLinksCreateOrUpdateOptionalParams, VirtualNetworkLinksCreateOrUpdateResponse, VirtualNetworkLinksUpdateOptionalParams, VirtualNetworkLinksUpdateResponse, VirtualNetworkLinksDeleteOptionalParams, VirtualNetworkLinksGetOptionalParams, VirtualNetworkLinksGetResponse } from "../models";
|
|
4
|
+
/** Interface representing a VirtualNetworkLinks. */
|
|
5
|
+
export interface VirtualNetworkLinks {
|
|
6
|
+
/**
|
|
7
|
+
* Lists the virtual network links to the specified Private DNS zone.
|
|
8
|
+
* @param resourceGroupName The name of the resource group.
|
|
9
|
+
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
10
|
+
* @param options The options parameters.
|
|
11
|
+
*/
|
|
12
|
+
list(resourceGroupName: string, privateZoneName: string, options?: VirtualNetworkLinksListOptionalParams): PagedAsyncIterableIterator<VirtualNetworkLink>;
|
|
13
|
+
/**
|
|
14
|
+
* Creates or updates a virtual network link to the specified Private DNS zone.
|
|
15
|
+
* @param resourceGroupName The name of the resource group.
|
|
16
|
+
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
17
|
+
* @param virtualNetworkLinkName The name of the virtual network link.
|
|
18
|
+
* @param parameters Parameters supplied to the CreateOrUpdate operation.
|
|
19
|
+
* @param options The options parameters.
|
|
20
|
+
*/
|
|
21
|
+
beginCreateOrUpdate(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, parameters: VirtualNetworkLink, options?: VirtualNetworkLinksCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<VirtualNetworkLinksCreateOrUpdateResponse>, VirtualNetworkLinksCreateOrUpdateResponse>>;
|
|
22
|
+
/**
|
|
23
|
+
* Creates or updates a virtual network link to the specified Private DNS zone.
|
|
24
|
+
* @param resourceGroupName The name of the resource group.
|
|
25
|
+
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
26
|
+
* @param virtualNetworkLinkName The name of the virtual network link.
|
|
27
|
+
* @param parameters Parameters supplied to the CreateOrUpdate operation.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
beginCreateOrUpdateAndWait(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, parameters: VirtualNetworkLink, options?: VirtualNetworkLinksCreateOrUpdateOptionalParams): Promise<VirtualNetworkLinksCreateOrUpdateResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Updates a virtual network link to the specified Private DNS zone.
|
|
33
|
+
* @param resourceGroupName The name of the resource group.
|
|
34
|
+
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
35
|
+
* @param virtualNetworkLinkName The name of the virtual network link.
|
|
36
|
+
* @param parameters Parameters supplied to the Update operation.
|
|
37
|
+
* @param options The options parameters.
|
|
38
|
+
*/
|
|
39
|
+
beginUpdate(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, parameters: VirtualNetworkLink, options?: VirtualNetworkLinksUpdateOptionalParams): Promise<PollerLike<PollOperationState<VirtualNetworkLinksUpdateResponse>, VirtualNetworkLinksUpdateResponse>>;
|
|
40
|
+
/**
|
|
41
|
+
* Updates a virtual network link to the specified Private DNS zone.
|
|
42
|
+
* @param resourceGroupName The name of the resource group.
|
|
43
|
+
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
44
|
+
* @param virtualNetworkLinkName The name of the virtual network link.
|
|
45
|
+
* @param parameters Parameters supplied to the Update operation.
|
|
46
|
+
* @param options The options parameters.
|
|
47
|
+
*/
|
|
48
|
+
beginUpdateAndWait(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, parameters: VirtualNetworkLink, options?: VirtualNetworkLinksUpdateOptionalParams): Promise<VirtualNetworkLinksUpdateResponse>;
|
|
49
|
+
/**
|
|
50
|
+
* Deletes a virtual network link to the specified Private DNS zone. WARNING: In case of a registration
|
|
51
|
+
* virtual network, all auto-registered DNS records in the zone for the virtual network will also be
|
|
52
|
+
* deleted. This operation cannot be undone.
|
|
53
|
+
* @param resourceGroupName The name of the resource group.
|
|
54
|
+
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
55
|
+
* @param virtualNetworkLinkName The name of the virtual network link.
|
|
56
|
+
* @param options The options parameters.
|
|
57
|
+
*/
|
|
58
|
+
beginDelete(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, options?: VirtualNetworkLinksDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
59
|
+
/**
|
|
60
|
+
* Deletes a virtual network link to the specified Private DNS zone. WARNING: In case of a registration
|
|
61
|
+
* virtual network, all auto-registered DNS records in the zone for the virtual network will also be
|
|
62
|
+
* deleted. This operation cannot be undone.
|
|
63
|
+
* @param resourceGroupName The name of the resource group.
|
|
64
|
+
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
65
|
+
* @param virtualNetworkLinkName The name of the virtual network link.
|
|
66
|
+
* @param options The options parameters.
|
|
67
|
+
*/
|
|
68
|
+
beginDeleteAndWait(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, options?: VirtualNetworkLinksDeleteOptionalParams): Promise<void>;
|
|
69
|
+
/**
|
|
70
|
+
* Gets a virtual network link to the specified Private DNS zone.
|
|
71
|
+
* @param resourceGroupName The name of the resource group.
|
|
72
|
+
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
73
|
+
* @param virtualNetworkLinkName The name of the virtual network link.
|
|
74
|
+
* @param options The options parameters.
|
|
75
|
+
*/
|
|
76
|
+
get(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, options?: VirtualNetworkLinksGetOptionalParams): Promise<VirtualNetworkLinksGetResponse>;
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=virtualNetworkLinks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"virtualNetworkLinks.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/virtualNetworkLinks.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,kBAAkB,EAClB,qCAAqC,EACrC,+CAA+C,EAC/C,yCAAyC,EACzC,uCAAuC,EACvC,iCAAiC,EACjC,uCAAuC,EACvC,oCAAoC,EACpC,8BAA8B,EAC/B,MAAM,WAAW,CAAC;AAGnB,oDAAoD;AACpD,MAAM,WAAW,mBAAmB;IAClC;;;;;OAKG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,0BAA0B,CAAC,kBAAkB,CAAC,CAAC;IAClD;;;;;;;OAOG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,sBAAsB,EAAE,MAAM,EAC9B,UAAU,EAAE,kBAAkB,EAC9B,OAAO,CAAC,EAAE,+CAA+C,GACxD,OAAO,CACR,UAAU,CACR,kBAAkB,CAAC,yCAAyC,CAAC,EAC7D,yCAAyC,CAC1C,CACF,CAAC;IACF;;;;;;;OAOG;IACH,0BAA0B,CACxB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,sBAAsB,EAAE,MAAM,EAC9B,UAAU,EAAE,kBAAkB,EAC9B,OAAO,CAAC,EAAE,+CAA+C,GACxD,OAAO,CAAC,yCAAyC,CAAC,CAAC;IACtD;;;;;;;OAOG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,sBAAsB,EAAE,MAAM,EAC9B,UAAU,EAAE,kBAAkB,EAC9B,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CACR,UAAU,CACR,kBAAkB,CAAC,iCAAiC,CAAC,EACrD,iCAAiC,CAClC,CACF,CAAC;IACF;;;;;;;OAOG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,sBAAsB,EAAE,MAAM,EAC9B,UAAU,EAAE,kBAAkB,EAC9B,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CAAC,iCAAiC,CAAC,CAAC;IAC9C;;;;;;;;OAQG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,sBAAsB,EAAE,MAAM,EAC9B,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IACvD;;;;;;;;OAQG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,sBAAsB,EAAE,MAAM,EAC9B,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,sBAAsB,EAAE,MAAM,EAC9B,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,8BAA8B,CAAC,CAAC;CAC5C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=virtualNetworkLinks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"virtualNetworkLinks.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/virtualNetworkLinks.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
2
|
+
import * as coreAuth from "@azure/core-auth";
|
|
3
|
+
import { PrivateZones, VirtualNetworkLinks, RecordSets } from "./operationsInterfaces";
|
|
4
|
+
import { PrivateDnsManagementClientOptionalParams } from "./models";
|
|
5
|
+
export declare class PrivateDnsManagementClient extends coreClient.ServiceClient {
|
|
6
|
+
$host: string;
|
|
7
|
+
apiVersion: string;
|
|
8
|
+
subscriptionId: string;
|
|
9
|
+
/**
|
|
10
|
+
* Initializes a new instance of the PrivateDnsManagementClient class.
|
|
11
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
12
|
+
* @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure
|
|
13
|
+
* subscription. The subscription ID forms part of the URI for every service call.
|
|
14
|
+
* @param options The parameter options
|
|
15
|
+
*/
|
|
16
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: PrivateDnsManagementClientOptionalParams);
|
|
17
|
+
privateZones: PrivateZones;
|
|
18
|
+
virtualNetworkLinks: VirtualNetworkLinks;
|
|
19
|
+
recordSets: RecordSets;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=privateDnsManagementClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateDnsManagementClient.d.ts","sourceRoot":"","sources":["../../src/privateDnsManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAM7C,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,UAAU,EACX,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,wCAAwC,EAAE,MAAM,UAAU,CAAC;AAEpE,qBAAa,0BAA2B,SAAQ,UAAU,CAAC,aAAa;IACtE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,wCAAwC;IA+CpD,YAAY,EAAE,YAAY,CAAC;IAC3B,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,UAAU,EAAE,UAAU,CAAC;CACxB"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import * as coreClient from "@azure/core-client";
|
|
9
|
+
import { PrivateZonesImpl, VirtualNetworkLinksImpl, RecordSetsImpl } from "./operations";
|
|
10
|
+
export class PrivateDnsManagementClient extends coreClient.ServiceClient {
|
|
11
|
+
/**
|
|
12
|
+
* Initializes a new instance of the PrivateDnsManagementClient class.
|
|
13
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
14
|
+
* @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure
|
|
15
|
+
* subscription. The subscription ID forms part of the URI for every service call.
|
|
16
|
+
* @param options The parameter options
|
|
17
|
+
*/
|
|
18
|
+
constructor(credentials, subscriptionId, options) {
|
|
19
|
+
if (credentials === undefined) {
|
|
20
|
+
throw new Error("'credentials' cannot be null");
|
|
21
|
+
}
|
|
22
|
+
if (subscriptionId === undefined) {
|
|
23
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
24
|
+
}
|
|
25
|
+
// Initializing default values for options
|
|
26
|
+
if (!options) {
|
|
27
|
+
options = {};
|
|
28
|
+
}
|
|
29
|
+
const defaults = {
|
|
30
|
+
requestContentType: "application/json; charset=utf-8",
|
|
31
|
+
credential: credentials
|
|
32
|
+
};
|
|
33
|
+
const packageDetails = `azsdk-js-arm-privatedns/3.0.0`;
|
|
34
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
35
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
36
|
+
: `${packageDetails}`;
|
|
37
|
+
if (!options.credentialScopes) {
|
|
38
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
39
|
+
}
|
|
40
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
41
|
+
userAgentPrefix
|
|
42
|
+
}, baseUri: options.endpoint || "https://management.azure.com" });
|
|
43
|
+
super(optionsWithDefaults);
|
|
44
|
+
// Parameter assignments
|
|
45
|
+
this.subscriptionId = subscriptionId;
|
|
46
|
+
// Assigning values to Constant parameters
|
|
47
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
48
|
+
this.apiVersion = options.apiVersion || "2020-06-01";
|
|
49
|
+
this.privateZones = new PrivateZonesImpl(this);
|
|
50
|
+
this.virtualNetworkLinks = new VirtualNetworkLinksImpl(this);
|
|
51
|
+
this.recordSets = new RecordSetsImpl(this);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=privateDnsManagementClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateDnsManagementClient.js","sourceRoot":"","sources":["../../src/privateDnsManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,cAAc,EACf,MAAM,cAAc,CAAC;AAQtB,MAAM,OAAO,0BAA2B,SAAQ,UAAU,CAAC,aAAa;IAKtE;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAkD;QAElD,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAA6C;YACzD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,+BAA+B,CAAC;QACvD,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE;YAC7B,OAAO,CAAC,gBAAgB,GAAG,CAAC,uCAAuC,CAAC,CAAC;SACtE;QACD,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,OAAO,EAAE,OAAO,CAAC,QAAQ,IAAI,8BAA8B,GAC5D,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,wBAAwB;QACxB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QAErC,0CAA0C;QAC1C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,8BAA8B,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;QACrD,IAAI,CAAC,YAAY,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,mBAAmB,GAAG,IAAI,uBAAuB,CAAC,IAAI,CAAC,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;CAKF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sampleTest.d.ts","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
import { record } from "@azure-tools/test-recorder";
|
|
10
|
+
const recorderEnvSetup = {
|
|
11
|
+
replaceableVariables: {
|
|
12
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
|
13
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
14
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
15
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
|
16
|
+
},
|
|
17
|
+
customizationsOnRecordings: [
|
|
18
|
+
(recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
|
|
19
|
+
],
|
|
20
|
+
queryParametersToSkip: []
|
|
21
|
+
};
|
|
22
|
+
describe("My test", () => {
|
|
23
|
+
let recorder;
|
|
24
|
+
beforeEach(function () {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
recorder = record(this, recorderEnvSetup);
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
afterEach(function () {
|
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
yield recorder.stop();
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
it("sample test", function () {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
console.log("Hi, I'm a test!");
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
//# sourceMappingURL=sampleTest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EAEL,MAAM,EAGP,MAAM,4BAA4B,CAAC;AAGpC,MAAM,gBAAgB,GAA6B;IACjD,oBAAoB,EAAE;QACpB,eAAe,EAAE,iBAAiB;QAClC,mBAAmB,EAAE,qBAAqB;QAC1C,eAAe,EAAE,sCAAsC;QACvD,eAAe,EAAE,uBAAuB;KACzC;IACD,0BAA0B,EAAE;QAC1B,CAAC,SAAc,EAAO,EAAE,CACtB,SAAS,CAAC,OAAO,CACf,yBAAyB,EACzB,+BAA+B,CAChC;KACJ;IACD,qBAAqB,EAAE,EAAE;CAC1B,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC;;YACT,QAAQ,GAAG,MAAM,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;QAC5C,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE;;YAChB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACjC,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/arm-privatedns",
|
|
3
|
+
"sdk-type": "mgmt",
|
|
3
4
|
"author": "Microsoft Corporation",
|
|
4
|
-
"description": "
|
|
5
|
-
"version": "
|
|
5
|
+
"description": "A generated SDK for PrivateDnsManagementClient.",
|
|
6
|
+
"version": "3.0.0-alpha.20220124.1",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=12.0.0"
|
|
9
|
+
},
|
|
6
10
|
"dependencies": {
|
|
7
|
-
"@azure/
|
|
8
|
-
"@azure/
|
|
9
|
-
"@azure/core-
|
|
10
|
-
"
|
|
11
|
+
"@azure/core-lro": "^2.2.0",
|
|
12
|
+
"@azure/abort-controller": "^1.0.0",
|
|
13
|
+
"@azure/core-paging": "^1.2.0",
|
|
14
|
+
"@azure/core-client": "^1.0.0",
|
|
15
|
+
"@azure/core-auth": "^1.3.0",
|
|
16
|
+
"@azure/core-rest-pipeline": "^1.1.0",
|
|
17
|
+
"tslib": "^2.2.0"
|
|
11
18
|
},
|
|
12
19
|
"keywords": [
|
|
13
20
|
"node",
|
|
@@ -17,17 +24,27 @@
|
|
|
17
24
|
"isomorphic"
|
|
18
25
|
],
|
|
19
26
|
"license": "MIT",
|
|
20
|
-
"main": "./dist/
|
|
21
|
-
"module": "./esm/
|
|
22
|
-
"types": "./
|
|
27
|
+
"main": "./dist/index.js",
|
|
28
|
+
"module": "./dist-esm/src/index.js",
|
|
29
|
+
"types": "./types/arm-privatedns.d.ts",
|
|
23
30
|
"devDependencies": {
|
|
24
|
-
"
|
|
25
|
-
"rollup": "
|
|
26
|
-
"rollup
|
|
31
|
+
"@microsoft/api-extractor": "^7.18.11",
|
|
32
|
+
"@rollup/plugin-commonjs": "11.0.2",
|
|
33
|
+
"@rollup/plugin-json": "^4.0.0",
|
|
34
|
+
"@rollup/plugin-multi-entry": "^3.0.0",
|
|
35
|
+
"@rollup/plugin-node-resolve": "^8.0.0",
|
|
36
|
+
"mkdirp": "^1.0.4",
|
|
37
|
+
"rollup": "^1.16.3",
|
|
27
38
|
"rollup-plugin-sourcemaps": "^0.4.2",
|
|
28
|
-
"
|
|
39
|
+
"typescript": "~4.2.0",
|
|
40
|
+
"uglify-js": "^3.4.9",
|
|
41
|
+
"rimraf": "^3.0.0",
|
|
42
|
+
"@azure/identity": "^2.0.1",
|
|
43
|
+
"@azure-tools/test-recorder": "^1.0.0",
|
|
44
|
+
"mocha": "^7.1.1",
|
|
45
|
+
"cross-env": "^7.0.2"
|
|
29
46
|
},
|
|
30
|
-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/
|
|
47
|
+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/privatedns/arm-privatedns",
|
|
31
48
|
"repository": {
|
|
32
49
|
"type": "git",
|
|
33
50
|
"url": "https://github.com/Azure/azure-sdk-for-js.git"
|
|
@@ -40,20 +57,62 @@
|
|
|
40
57
|
"dist/**/*.js.map",
|
|
41
58
|
"dist/**/*.d.ts",
|
|
42
59
|
"dist/**/*.d.ts.map",
|
|
43
|
-
"esm/**/*.js",
|
|
44
|
-
"esm/**/*.js.map",
|
|
45
|
-
"esm/**/*.d.ts",
|
|
46
|
-
"esm/**/*.d.ts.map",
|
|
60
|
+
"dist-esm/**/*.js",
|
|
61
|
+
"dist-esm/**/*.js.map",
|
|
62
|
+
"dist-esm/**/*.d.ts",
|
|
63
|
+
"dist-esm/**/*.d.ts.map",
|
|
47
64
|
"src/**/*.ts",
|
|
48
65
|
"README.md",
|
|
66
|
+
"LICENSE",
|
|
49
67
|
"rollup.config.js",
|
|
50
|
-
"tsconfig.json"
|
|
68
|
+
"tsconfig.json",
|
|
69
|
+
"review/*",
|
|
70
|
+
"CHANGELOG.md",
|
|
71
|
+
"types/*"
|
|
51
72
|
],
|
|
52
73
|
"scripts": {
|
|
53
|
-
"build": "tsc && rollup -c
|
|
54
|
-
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/
|
|
55
|
-
"prepack": "npm
|
|
74
|
+
"build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
|
|
75
|
+
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
|
|
76
|
+
"prepack": "npm run build",
|
|
77
|
+
"pack": "npm pack 2>&1",
|
|
78
|
+
"extract-api": "api-extractor run --local",
|
|
79
|
+
"lint": "echo skipped",
|
|
80
|
+
"audit": "echo skipped",
|
|
81
|
+
"clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
|
82
|
+
"build:node": "echo skipped",
|
|
83
|
+
"build:browser": "echo skipped",
|
|
84
|
+
"build:test": "echo skipped",
|
|
85
|
+
"build:samples": "echo skipped.",
|
|
86
|
+
"check-format": "echo skipped",
|
|
87
|
+
"execute:samples": "echo skipped",
|
|
88
|
+
"format": "echo skipped",
|
|
89
|
+
"test": "npm run integration-test",
|
|
90
|
+
"test:node": "echo skipped",
|
|
91
|
+
"test:browser": "echo skipped",
|
|
92
|
+
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
|
93
|
+
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
|
|
94
|
+
"unit-test:browser": "echo skipped",
|
|
95
|
+
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
96
|
+
"integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
|
|
97
|
+
"integration-test:browser": "echo skipped",
|
|
98
|
+
"docs": "echo skipped"
|
|
56
99
|
},
|
|
57
100
|
"sideEffects": false,
|
|
58
|
-
"
|
|
101
|
+
"//metadata": {
|
|
102
|
+
"constantPaths": [
|
|
103
|
+
{
|
|
104
|
+
"path": "src/PrivateDnsManagementClient.ts",
|
|
105
|
+
"prefix": "packageDetails"
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"autoPublish": true,
|
|
110
|
+
"//sampleConfiguration": {
|
|
111
|
+
"productName": "",
|
|
112
|
+
"productSlugs": [
|
|
113
|
+
"azure"
|
|
114
|
+
],
|
|
115
|
+
"disableDocsMs": true,
|
|
116
|
+
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-privatedns?view=azure-node-preview"
|
|
117
|
+
}
|
|
59
118
|
}
|