@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.
Files changed (146) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/LICENSE.txt +21 -21
  4. package/README.md +98 -100
  5. package/dist/index.js +2295 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/index.min.js +1 -0
  8. package/dist/index.min.js.map +1 -0
  9. package/dist-esm/src/index.d.ts +5 -0
  10. package/dist-esm/src/index.d.ts.map +1 -0
  11. package/dist-esm/src/index.js +12 -0
  12. package/dist-esm/src/index.js.map +1 -0
  13. package/dist-esm/src/lroImpl.d.ts +16 -0
  14. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  15. package/dist-esm/src/lroImpl.js +29 -0
  16. package/dist-esm/src/lroImpl.js.map +1 -0
  17. package/dist-esm/src/models/index.d.ts +470 -0
  18. package/dist-esm/src/models/index.d.ts.map +1 -0
  19. package/dist-esm/src/models/index.js +24 -0
  20. package/dist-esm/src/models/index.js.map +1 -0
  21. package/dist-esm/src/models/mappers.d.ts +22 -0
  22. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  23. package/{esm → dist-esm/src}/models/mappers.js +234 -205
  24. package/dist-esm/src/models/mappers.js.map +1 -0
  25. package/dist-esm/src/models/parameters.d.ts +20 -0
  26. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  27. package/{esm → dist-esm/src}/models/parameters.js +91 -77
  28. package/dist-esm/src/models/parameters.js.map +1 -0
  29. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  30. package/dist-esm/src/operations/index.d.ts.map +1 -0
  31. package/{esm → dist-esm/src}/operations/index.js +3 -5
  32. package/dist-esm/src/operations/index.js.map +1 -0
  33. package/dist-esm/src/operations/privateZones.d.ts +114 -0
  34. package/dist-esm/src/operations/privateZones.d.ts.map +1 -0
  35. package/dist-esm/src/operations/privateZones.js +516 -0
  36. package/dist-esm/src/operations/privateZones.js.map +1 -0
  37. package/dist-esm/src/operations/recordSets.d.ts +105 -0
  38. package/dist-esm/src/operations/recordSets.d.ts.map +1 -0
  39. package/dist-esm/src/operations/recordSets.js +451 -0
  40. package/dist-esm/src/operations/recordSets.js.map +1 -0
  41. package/dist-esm/src/operations/virtualNetworkLinks.d.ts +103 -0
  42. package/dist-esm/src/operations/virtualNetworkLinks.d.ts.map +1 -0
  43. package/dist-esm/src/operations/virtualNetworkLinks.js +442 -0
  44. package/dist-esm/src/operations/virtualNetworkLinks.js.map +1 -0
  45. package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
  46. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  47. package/dist-esm/src/operationsInterfaces/index.js +11 -0
  48. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  49. package/dist-esm/src/operationsInterfaces/privateZones.d.ts +78 -0
  50. package/dist-esm/src/operationsInterfaces/privateZones.d.ts.map +1 -0
  51. package/dist-esm/src/operationsInterfaces/privateZones.js +9 -0
  52. package/dist-esm/src/operationsInterfaces/privateZones.js.map +1 -0
  53. package/dist-esm/src/operationsInterfaces/recordSets.d.ts +61 -0
  54. package/dist-esm/src/operationsInterfaces/recordSets.d.ts.map +1 -0
  55. package/dist-esm/src/operationsInterfaces/recordSets.js +9 -0
  56. package/dist-esm/src/operationsInterfaces/recordSets.js.map +1 -0
  57. package/dist-esm/src/operationsInterfaces/virtualNetworkLinks.d.ts +78 -0
  58. package/dist-esm/src/operationsInterfaces/virtualNetworkLinks.d.ts.map +1 -0
  59. package/dist-esm/src/operationsInterfaces/virtualNetworkLinks.js +9 -0
  60. package/dist-esm/src/operationsInterfaces/virtualNetworkLinks.js.map +1 -0
  61. package/dist-esm/src/privateDnsManagementClient.d.ts +21 -0
  62. package/dist-esm/src/privateDnsManagementClient.d.ts.map +1 -0
  63. package/dist-esm/src/privateDnsManagementClient.js +54 -0
  64. package/dist-esm/src/privateDnsManagementClient.js.map +1 -0
  65. package/dist-esm/test/sampleTest.d.ts +2 -0
  66. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  67. package/dist-esm/test/sampleTest.js +40 -0
  68. package/dist-esm/test/sampleTest.js.map +1 -0
  69. package/package.json +86 -26
  70. package/review/arm-privatedns.api.md +435 -0
  71. package/rollup.config.js +181 -30
  72. package/src/index.ts +12 -0
  73. package/src/lroImpl.ts +34 -0
  74. package/src/models/index.ts +567 -0
  75. package/{lib → src}/models/mappers.ts +248 -214
  76. package/src/models/parameters.ts +201 -0
  77. package/{lib → src}/operations/index.ts +3 -5
  78. package/src/operations/privateZones.ts +686 -0
  79. package/src/operations/recordSets.ts +602 -0
  80. package/src/operations/virtualNetworkLinks.ts +624 -0
  81. package/src/operationsInterfaces/index.ts +11 -0
  82. package/src/operationsInterfaces/privateZones.ts +145 -0
  83. package/src/operationsInterfaces/recordSets.ts +117 -0
  84. package/src/operationsInterfaces/virtualNetworkLinks.ts +150 -0
  85. package/src/privateDnsManagementClient.ts +88 -0
  86. package/tsconfig.json +20 -7
  87. package/types/arm-privatedns.d.ts +768 -0
  88. package/types/tsdoc-metadata.json +11 -0
  89. package/dist/arm-privatedns.js +0 -1944
  90. package/dist/arm-privatedns.js.map +0 -1
  91. package/dist/arm-privatedns.min.js +0 -1
  92. package/dist/arm-privatedns.min.js.map +0 -1
  93. package/esm/models/index.d.ts +0 -1031
  94. package/esm/models/index.d.ts.map +0 -1
  95. package/esm/models/index.js +0 -8
  96. package/esm/models/index.js.map +0 -1
  97. package/esm/models/mappers.d.ts +0 -22
  98. package/esm/models/mappers.d.ts.map +0 -1
  99. package/esm/models/mappers.js.map +0 -1
  100. package/esm/models/parameters.d.ts +0 -15
  101. package/esm/models/parameters.d.ts.map +0 -1
  102. package/esm/models/parameters.js.map +0 -1
  103. package/esm/models/privateZonesMappers.d.ts +0 -2
  104. package/esm/models/privateZonesMappers.d.ts.map +0 -1
  105. package/esm/models/privateZonesMappers.js +0 -9
  106. package/esm/models/privateZonesMappers.js.map +0 -1
  107. package/esm/models/recordSetsMappers.d.ts +0 -2
  108. package/esm/models/recordSetsMappers.d.ts.map +0 -1
  109. package/esm/models/recordSetsMappers.js +0 -9
  110. package/esm/models/recordSetsMappers.js.map +0 -1
  111. package/esm/models/virtualNetworkLinksMappers.d.ts +0 -2
  112. package/esm/models/virtualNetworkLinksMappers.d.ts.map +0 -1
  113. package/esm/models/virtualNetworkLinksMappers.js +0 -9
  114. package/esm/models/virtualNetworkLinksMappers.js.map +0 -1
  115. package/esm/operations/index.d.ts.map +0 -1
  116. package/esm/operations/index.js.map +0 -1
  117. package/esm/operations/privateZones.d.ts +0 -165
  118. package/esm/operations/privateZones.d.ts.map +0 -1
  119. package/esm/operations/privateZones.js +0 -347
  120. package/esm/operations/privateZones.js.map +0 -1
  121. package/esm/operations/recordSets.d.ts +0 -229
  122. package/esm/operations/recordSets.d.ts.map +0 -1
  123. package/esm/operations/recordSets.js +0 -304
  124. package/esm/operations/recordSets.js.map +0 -1
  125. package/esm/operations/virtualNetworkLinks.d.ts +0 -139
  126. package/esm/operations/virtualNetworkLinks.d.ts.map +0 -1
  127. package/esm/operations/virtualNetworkLinks.js +0 -305
  128. package/esm/operations/virtualNetworkLinks.js.map +0 -1
  129. package/esm/privateDnsManagementClient.d.ts +0 -21
  130. package/esm/privateDnsManagementClient.d.ts.map +0 -1
  131. package/esm/privateDnsManagementClient.js +0 -36
  132. package/esm/privateDnsManagementClient.js.map +0 -1
  133. package/esm/privateDnsManagementClientContext.d.ts +0 -17
  134. package/esm/privateDnsManagementClientContext.d.ts.map +0 -1
  135. package/esm/privateDnsManagementClientContext.js +0 -57
  136. package/esm/privateDnsManagementClientContext.js.map +0 -1
  137. package/lib/models/index.ts +0 -1123
  138. package/lib/models/parameters.ts +0 -162
  139. package/lib/models/privateZonesMappers.ts +0 -28
  140. package/lib/models/recordSetsMappers.ts +0 -28
  141. package/lib/models/virtualNetworkLinksMappers.ts +0 -28
  142. package/lib/operations/privateZones.ts +0 -490
  143. package/lib/operations/recordSets.ts +0 -568
  144. package/lib/operations/virtualNetworkLinks.ts +0 -410
  145. package/lib/privateDnsManagementClient.ts +0 -47
  146. package/lib/privateDnsManagementClientContext.ts +0 -63
@@ -0,0 +1,145 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
11
+ import {
12
+ PrivateZone,
13
+ PrivateZonesListOptionalParams,
14
+ PrivateZonesListByResourceGroupOptionalParams,
15
+ PrivateZonesCreateOrUpdateOptionalParams,
16
+ PrivateZonesCreateOrUpdateResponse,
17
+ PrivateZonesUpdateOptionalParams,
18
+ PrivateZonesUpdateResponse,
19
+ PrivateZonesDeleteOptionalParams,
20
+ PrivateZonesGetOptionalParams,
21
+ PrivateZonesGetResponse
22
+ } from "../models";
23
+
24
+ /// <reference lib="esnext.asynciterable" />
25
+ /** Interface representing a PrivateZones. */
26
+ export interface PrivateZones {
27
+ /**
28
+ * Lists the Private DNS zones in all resource groups in a subscription.
29
+ * @param options The options parameters.
30
+ */
31
+ list(
32
+ options?: PrivateZonesListOptionalParams
33
+ ): PagedAsyncIterableIterator<PrivateZone>;
34
+ /**
35
+ * Lists the Private DNS zones within a resource group.
36
+ * @param resourceGroupName The name of the resource group.
37
+ * @param options The options parameters.
38
+ */
39
+ listByResourceGroup(
40
+ resourceGroupName: string,
41
+ options?: PrivateZonesListByResourceGroupOptionalParams
42
+ ): PagedAsyncIterableIterator<PrivateZone>;
43
+ /**
44
+ * Creates or updates a Private DNS zone. Does not modify Links to virtual networks or DNS records
45
+ * within the 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 parameters Parameters supplied to the CreateOrUpdate operation.
49
+ * @param options The options parameters.
50
+ */
51
+ beginCreateOrUpdate(
52
+ resourceGroupName: string,
53
+ privateZoneName: string,
54
+ parameters: PrivateZone,
55
+ options?: PrivateZonesCreateOrUpdateOptionalParams
56
+ ): Promise<
57
+ PollerLike<
58
+ PollOperationState<PrivateZonesCreateOrUpdateResponse>,
59
+ PrivateZonesCreateOrUpdateResponse
60
+ >
61
+ >;
62
+ /**
63
+ * Creates or updates a Private DNS zone. Does not modify Links to virtual networks or DNS records
64
+ * within the zone.
65
+ * @param resourceGroupName The name of the resource group.
66
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
67
+ * @param parameters Parameters supplied to the CreateOrUpdate operation.
68
+ * @param options The options parameters.
69
+ */
70
+ beginCreateOrUpdateAndWait(
71
+ resourceGroupName: string,
72
+ privateZoneName: string,
73
+ parameters: PrivateZone,
74
+ options?: PrivateZonesCreateOrUpdateOptionalParams
75
+ ): Promise<PrivateZonesCreateOrUpdateResponse>;
76
+ /**
77
+ * Updates a Private DNS zone. Does not modify virtual network links or DNS records within the zone.
78
+ * @param resourceGroupName The name of the resource group.
79
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
80
+ * @param parameters Parameters supplied to the Update operation.
81
+ * @param options The options parameters.
82
+ */
83
+ beginUpdate(
84
+ resourceGroupName: string,
85
+ privateZoneName: string,
86
+ parameters: PrivateZone,
87
+ options?: PrivateZonesUpdateOptionalParams
88
+ ): Promise<
89
+ PollerLike<
90
+ PollOperationState<PrivateZonesUpdateResponse>,
91
+ PrivateZonesUpdateResponse
92
+ >
93
+ >;
94
+ /**
95
+ * Updates a Private DNS zone. Does not modify virtual network links or DNS records within the zone.
96
+ * @param resourceGroupName The name of the resource group.
97
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
98
+ * @param parameters Parameters supplied to the Update operation.
99
+ * @param options The options parameters.
100
+ */
101
+ beginUpdateAndWait(
102
+ resourceGroupName: string,
103
+ privateZoneName: string,
104
+ parameters: PrivateZone,
105
+ options?: PrivateZonesUpdateOptionalParams
106
+ ): Promise<PrivateZonesUpdateResponse>;
107
+ /**
108
+ * Deletes a Private DNS zone. WARNING: All DNS records in the zone will also be deleted. This
109
+ * operation cannot be undone. Private DNS zone cannot be deleted unless all virtual network links to
110
+ * it are removed.
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 options parameters.
114
+ */
115
+ beginDelete(
116
+ resourceGroupName: string,
117
+ privateZoneName: string,
118
+ options?: PrivateZonesDeleteOptionalParams
119
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
120
+ /**
121
+ * Deletes a Private DNS zone. WARNING: All DNS records in the zone will also be deleted. This
122
+ * operation cannot be undone. Private DNS zone cannot be deleted unless all virtual network links to
123
+ * it are removed.
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 options parameters.
127
+ */
128
+ beginDeleteAndWait(
129
+ resourceGroupName: string,
130
+ privateZoneName: string,
131
+ options?: PrivateZonesDeleteOptionalParams
132
+ ): Promise<void>;
133
+ /**
134
+ * Gets a Private DNS zone. Retrieves the zone properties, but not the virtual networks links or the
135
+ * record sets within the zone.
136
+ * @param resourceGroupName The name of the resource group.
137
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
138
+ * @param options The options parameters.
139
+ */
140
+ get(
141
+ resourceGroupName: string,
142
+ privateZoneName: string,
143
+ options?: PrivateZonesGetOptionalParams
144
+ ): Promise<PrivateZonesGetResponse>;
145
+ }
@@ -0,0 +1,117 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import {
11
+ RecordSet,
12
+ RecordType,
13
+ RecordSetsListByTypeOptionalParams,
14
+ RecordSetsListOptionalParams,
15
+ RecordSetsCreateOrUpdateOptionalParams,
16
+ RecordSetsCreateOrUpdateResponse,
17
+ RecordSetsUpdateOptionalParams,
18
+ RecordSetsUpdateResponse,
19
+ RecordSetsDeleteOptionalParams,
20
+ RecordSetsGetOptionalParams,
21
+ RecordSetsGetResponse
22
+ } from "../models";
23
+
24
+ /// <reference lib="esnext.asynciterable" />
25
+ /** Interface representing a RecordSets. */
26
+ export interface RecordSets {
27
+ /**
28
+ * Lists the record sets of a specified type in a Private DNS zone.
29
+ * @param resourceGroupName The name of the resource group.
30
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
31
+ * @param recordType The type of record sets to enumerate.
32
+ * @param options The options parameters.
33
+ */
34
+ listByType(
35
+ resourceGroupName: string,
36
+ privateZoneName: string,
37
+ recordType: RecordType,
38
+ options?: RecordSetsListByTypeOptionalParams
39
+ ): PagedAsyncIterableIterator<RecordSet>;
40
+ /**
41
+ * Lists all record sets in a 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 options The options parameters.
45
+ */
46
+ list(
47
+ resourceGroupName: string,
48
+ privateZoneName: string,
49
+ options?: RecordSetsListOptionalParams
50
+ ): PagedAsyncIterableIterator<RecordSet>;
51
+ /**
52
+ * Creates or updates a record set within a Private DNS zone.
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 recordType The type of DNS record in this record set. Record sets of type SOA can be updated
56
+ * but not created (they are created when the Private DNS zone is created).
57
+ * @param relativeRecordSetName The name of the record set, relative to the name of the zone.
58
+ * @param parameters Parameters supplied to the CreateOrUpdate operation.
59
+ * @param options The options parameters.
60
+ */
61
+ createOrUpdate(
62
+ resourceGroupName: string,
63
+ privateZoneName: string,
64
+ recordType: RecordType,
65
+ relativeRecordSetName: string,
66
+ parameters: RecordSet,
67
+ options?: RecordSetsCreateOrUpdateOptionalParams
68
+ ): Promise<RecordSetsCreateOrUpdateResponse>;
69
+ /**
70
+ * Updates a record set within a 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 recordType The type of DNS record in this record set.
74
+ * @param relativeRecordSetName The name of the record set, relative to the name of the zone.
75
+ * @param parameters Parameters supplied to the Update operation.
76
+ * @param options The options parameters.
77
+ */
78
+ update(
79
+ resourceGroupName: string,
80
+ privateZoneName: string,
81
+ recordType: RecordType,
82
+ relativeRecordSetName: string,
83
+ parameters: RecordSet,
84
+ options?: RecordSetsUpdateOptionalParams
85
+ ): Promise<RecordSetsUpdateResponse>;
86
+ /**
87
+ * Deletes a record set from a Private DNS zone. This operation cannot be undone.
88
+ * @param resourceGroupName The name of the resource group.
89
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
90
+ * @param recordType The type of DNS record in this record set. Record sets of type SOA cannot be
91
+ * deleted (they are deleted when the Private DNS zone is deleted).
92
+ * @param relativeRecordSetName The name of the record set, relative to the name of the zone.
93
+ * @param options The options parameters.
94
+ */
95
+ delete(
96
+ resourceGroupName: string,
97
+ privateZoneName: string,
98
+ recordType: RecordType,
99
+ relativeRecordSetName: string,
100
+ options?: RecordSetsDeleteOptionalParams
101
+ ): Promise<void>;
102
+ /**
103
+ * Gets a record set.
104
+ * @param resourceGroupName The name of the resource group.
105
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
106
+ * @param recordType The type of DNS record in this record set.
107
+ * @param relativeRecordSetName The name of the record set, relative to the name of the zone.
108
+ * @param options The options parameters.
109
+ */
110
+ get(
111
+ resourceGroupName: string,
112
+ privateZoneName: string,
113
+ recordType: RecordType,
114
+ relativeRecordSetName: string,
115
+ options?: RecordSetsGetOptionalParams
116
+ ): Promise<RecordSetsGetResponse>;
117
+ }
@@ -0,0 +1,150 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
11
+ import {
12
+ VirtualNetworkLink,
13
+ VirtualNetworkLinksListOptionalParams,
14
+ VirtualNetworkLinksCreateOrUpdateOptionalParams,
15
+ VirtualNetworkLinksCreateOrUpdateResponse,
16
+ VirtualNetworkLinksUpdateOptionalParams,
17
+ VirtualNetworkLinksUpdateResponse,
18
+ VirtualNetworkLinksDeleteOptionalParams,
19
+ VirtualNetworkLinksGetOptionalParams,
20
+ VirtualNetworkLinksGetResponse
21
+ } from "../models";
22
+
23
+ /// <reference lib="esnext.asynciterable" />
24
+ /** Interface representing a VirtualNetworkLinks. */
25
+ export interface VirtualNetworkLinks {
26
+ /**
27
+ * Lists the virtual network links to the specified Private DNS zone.
28
+ * @param resourceGroupName The name of the resource group.
29
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
30
+ * @param options The options parameters.
31
+ */
32
+ list(
33
+ resourceGroupName: string,
34
+ privateZoneName: string,
35
+ options?: VirtualNetworkLinksListOptionalParams
36
+ ): PagedAsyncIterableIterator<VirtualNetworkLink>;
37
+ /**
38
+ * Creates or updates a virtual network link to the specified Private DNS zone.
39
+ * @param resourceGroupName The name of the resource group.
40
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
41
+ * @param virtualNetworkLinkName The name of the virtual network link.
42
+ * @param parameters Parameters supplied to the CreateOrUpdate operation.
43
+ * @param options The options parameters.
44
+ */
45
+ beginCreateOrUpdate(
46
+ resourceGroupName: string,
47
+ privateZoneName: string,
48
+ virtualNetworkLinkName: string,
49
+ parameters: VirtualNetworkLink,
50
+ options?: VirtualNetworkLinksCreateOrUpdateOptionalParams
51
+ ): Promise<
52
+ PollerLike<
53
+ PollOperationState<VirtualNetworkLinksCreateOrUpdateResponse>,
54
+ VirtualNetworkLinksCreateOrUpdateResponse
55
+ >
56
+ >;
57
+ /**
58
+ * Creates or updates a virtual network link to the specified Private DNS zone.
59
+ * @param resourceGroupName The name of the resource group.
60
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
61
+ * @param virtualNetworkLinkName The name of the virtual network link.
62
+ * @param parameters Parameters supplied to the CreateOrUpdate operation.
63
+ * @param options The options parameters.
64
+ */
65
+ beginCreateOrUpdateAndWait(
66
+ resourceGroupName: string,
67
+ privateZoneName: string,
68
+ virtualNetworkLinkName: string,
69
+ parameters: VirtualNetworkLink,
70
+ options?: VirtualNetworkLinksCreateOrUpdateOptionalParams
71
+ ): Promise<VirtualNetworkLinksCreateOrUpdateResponse>;
72
+ /**
73
+ * Updates a virtual network link to the specified Private DNS zone.
74
+ * @param resourceGroupName The name of the resource group.
75
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
76
+ * @param virtualNetworkLinkName The name of the virtual network link.
77
+ * @param parameters Parameters supplied to the Update operation.
78
+ * @param options The options parameters.
79
+ */
80
+ beginUpdate(
81
+ resourceGroupName: string,
82
+ privateZoneName: string,
83
+ virtualNetworkLinkName: string,
84
+ parameters: VirtualNetworkLink,
85
+ options?: VirtualNetworkLinksUpdateOptionalParams
86
+ ): Promise<
87
+ PollerLike<
88
+ PollOperationState<VirtualNetworkLinksUpdateResponse>,
89
+ VirtualNetworkLinksUpdateResponse
90
+ >
91
+ >;
92
+ /**
93
+ * Updates a virtual network link to the specified Private DNS zone.
94
+ * @param resourceGroupName The name of the resource group.
95
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
96
+ * @param virtualNetworkLinkName The name of the virtual network link.
97
+ * @param parameters Parameters supplied to the Update operation.
98
+ * @param options The options parameters.
99
+ */
100
+ beginUpdateAndWait(
101
+ resourceGroupName: string,
102
+ privateZoneName: string,
103
+ virtualNetworkLinkName: string,
104
+ parameters: VirtualNetworkLink,
105
+ options?: VirtualNetworkLinksUpdateOptionalParams
106
+ ): Promise<VirtualNetworkLinksUpdateResponse>;
107
+ /**
108
+ * Deletes a virtual network link to the specified Private DNS zone. WARNING: In case of a registration
109
+ * virtual network, all auto-registered DNS records in the zone for the virtual network will also be
110
+ * deleted. This operation cannot be undone.
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 virtualNetworkLinkName The name of the virtual network link.
114
+ * @param options The options parameters.
115
+ */
116
+ beginDelete(
117
+ resourceGroupName: string,
118
+ privateZoneName: string,
119
+ virtualNetworkLinkName: string,
120
+ options?: VirtualNetworkLinksDeleteOptionalParams
121
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
122
+ /**
123
+ * Deletes a virtual network link to the specified Private DNS zone. WARNING: In case of a registration
124
+ * virtual network, all auto-registered DNS records in the zone for the virtual network will also be
125
+ * deleted. This operation cannot be undone.
126
+ * @param resourceGroupName The name of the resource group.
127
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
128
+ * @param virtualNetworkLinkName The name of the virtual network link.
129
+ * @param options The options parameters.
130
+ */
131
+ beginDeleteAndWait(
132
+ resourceGroupName: string,
133
+ privateZoneName: string,
134
+ virtualNetworkLinkName: string,
135
+ options?: VirtualNetworkLinksDeleteOptionalParams
136
+ ): Promise<void>;
137
+ /**
138
+ * Gets a virtual network link to the specified Private DNS zone.
139
+ * @param resourceGroupName The name of the resource group.
140
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
141
+ * @param virtualNetworkLinkName The name of the virtual network link.
142
+ * @param options The options parameters.
143
+ */
144
+ get(
145
+ resourceGroupName: string,
146
+ privateZoneName: string,
147
+ virtualNetworkLinkName: string,
148
+ options?: VirtualNetworkLinksGetOptionalParams
149
+ ): Promise<VirtualNetworkLinksGetResponse>;
150
+ }
@@ -0,0 +1,88 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as coreAuth from "@azure/core-auth";
11
+ import {
12
+ PrivateZonesImpl,
13
+ VirtualNetworkLinksImpl,
14
+ RecordSetsImpl
15
+ } from "./operations";
16
+ import {
17
+ PrivateZones,
18
+ VirtualNetworkLinks,
19
+ RecordSets
20
+ } from "./operationsInterfaces";
21
+ import { PrivateDnsManagementClientOptionalParams } from "./models";
22
+
23
+ export class PrivateDnsManagementClient extends coreClient.ServiceClient {
24
+ $host: string;
25
+ apiVersion: string;
26
+ subscriptionId: string;
27
+
28
+ /**
29
+ * Initializes a new instance of the PrivateDnsManagementClient class.
30
+ * @param credentials Subscription credentials which uniquely identify client subscription.
31
+ * @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure
32
+ * subscription. The subscription ID forms part of the URI for every service call.
33
+ * @param options The parameter options
34
+ */
35
+ constructor(
36
+ credentials: coreAuth.TokenCredential,
37
+ subscriptionId: string,
38
+ options?: PrivateDnsManagementClientOptionalParams
39
+ ) {
40
+ if (credentials === undefined) {
41
+ throw new Error("'credentials' cannot be null");
42
+ }
43
+ if (subscriptionId === undefined) {
44
+ throw new Error("'subscriptionId' cannot be null");
45
+ }
46
+
47
+ // Initializing default values for options
48
+ if (!options) {
49
+ options = {};
50
+ }
51
+ const defaults: PrivateDnsManagementClientOptionalParams = {
52
+ requestContentType: "application/json; charset=utf-8",
53
+ credential: credentials
54
+ };
55
+
56
+ const packageDetails = `azsdk-js-arm-privatedns/3.0.0`;
57
+ const userAgentPrefix =
58
+ options.userAgentOptions && options.userAgentOptions.userAgentPrefix
59
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
60
+ : `${packageDetails}`;
61
+
62
+ if (!options.credentialScopes) {
63
+ options.credentialScopes = ["https://management.azure.com/.default"];
64
+ }
65
+ const optionsWithDefaults = {
66
+ ...defaults,
67
+ ...options,
68
+ userAgentOptions: {
69
+ userAgentPrefix
70
+ },
71
+ baseUri: options.endpoint || "https://management.azure.com"
72
+ };
73
+ super(optionsWithDefaults);
74
+ // Parameter assignments
75
+ this.subscriptionId = subscriptionId;
76
+
77
+ // Assigning values to Constant parameters
78
+ this.$host = options.$host || "https://management.azure.com";
79
+ this.apiVersion = options.apiVersion || "2020-06-01";
80
+ this.privateZones = new PrivateZonesImpl(this);
81
+ this.virtualNetworkLinks = new VirtualNetworkLinksImpl(this);
82
+ this.recordSets = new RecordSetsImpl(this);
83
+ }
84
+
85
+ privateZones: PrivateZones;
86
+ virtualNetworkLinks: VirtualNetworkLinks;
87
+ recordSets: RecordSets;
88
+ }
package/tsconfig.json CHANGED
@@ -3,17 +3,30 @@
3
3
  "module": "es6",
4
4
  "moduleResolution": "node",
5
5
  "strict": true,
6
- "target": "es5",
6
+ "target": "es6",
7
7
  "sourceMap": true,
8
8
  "declarationMap": true,
9
9
  "esModuleInterop": true,
10
10
  "allowSyntheticDefaultImports": true,
11
11
  "forceConsistentCasingInFileNames": true,
12
- "lib": ["es6"],
12
+ "lib": [
13
+ "es6",
14
+ "dom"
15
+ ],
13
16
  "declaration": true,
14
- "outDir": "./esm",
15
- "importHelpers": true
17
+ "outDir": "./dist-esm",
18
+ "importHelpers": true,
19
+ "paths": {
20
+ "@azure/arm-privatedns": [
21
+ "./src/index"
22
+ ]
23
+ }
16
24
  },
17
- "include": ["./lib/**/*.ts"],
18
- "exclude": ["node_modules"]
19
- }
25
+ "include": [
26
+ "./src/**/*.ts",
27
+ "./test/**/*.ts"
28
+ ],
29
+ "exclude": [
30
+ "node_modules"
31
+ ]
32
+ }