@azure/arm-privatedns 2.1.1 → 3.0.0-alpha.20220208.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.
Files changed (139) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -83
  4. package/dist/index.js +2295 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/index.d.ts +5 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/src/index.js +12 -0
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/lroImpl.d.ts +16 -0
  13. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  14. package/dist-esm/src/lroImpl.js +29 -0
  15. package/dist-esm/src/lroImpl.js.map +1 -0
  16. package/dist-esm/src/models/index.d.ts +470 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +24 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +22 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/{esm → dist-esm/src}/models/mappers.js +234 -205
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +20 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/models/parameters.js +91 -77
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  29. package/dist-esm/src/operations/index.d.ts.map +1 -0
  30. package/{esm → dist-esm/src}/operations/index.js +3 -5
  31. package/dist-esm/src/operations/index.js.map +1 -0
  32. package/dist-esm/src/operations/privateZones.d.ts +114 -0
  33. package/dist-esm/src/operations/privateZones.d.ts.map +1 -0
  34. package/dist-esm/src/operations/privateZones.js +516 -0
  35. package/dist-esm/src/operations/privateZones.js.map +1 -0
  36. package/dist-esm/src/operations/recordSets.d.ts +105 -0
  37. package/dist-esm/src/operations/recordSets.d.ts.map +1 -0
  38. package/dist-esm/src/operations/recordSets.js +451 -0
  39. package/dist-esm/src/operations/recordSets.js.map +1 -0
  40. package/dist-esm/src/operations/virtualNetworkLinks.d.ts +103 -0
  41. package/dist-esm/src/operations/virtualNetworkLinks.d.ts.map +1 -0
  42. package/dist-esm/src/operations/virtualNetworkLinks.js +442 -0
  43. package/dist-esm/src/operations/virtualNetworkLinks.js.map +1 -0
  44. package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
  45. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  46. package/dist-esm/src/operationsInterfaces/index.js +11 -0
  47. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  48. package/dist-esm/src/operationsInterfaces/privateZones.d.ts +78 -0
  49. package/dist-esm/src/operationsInterfaces/privateZones.d.ts.map +1 -0
  50. package/dist-esm/src/operationsInterfaces/privateZones.js +9 -0
  51. package/dist-esm/src/operationsInterfaces/privateZones.js.map +1 -0
  52. package/dist-esm/src/operationsInterfaces/recordSets.d.ts +61 -0
  53. package/dist-esm/src/operationsInterfaces/recordSets.d.ts.map +1 -0
  54. package/dist-esm/src/operationsInterfaces/recordSets.js +9 -0
  55. package/dist-esm/src/operationsInterfaces/recordSets.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/virtualNetworkLinks.d.ts +78 -0
  57. package/dist-esm/src/operationsInterfaces/virtualNetworkLinks.d.ts.map +1 -0
  58. package/dist-esm/src/operationsInterfaces/virtualNetworkLinks.js +9 -0
  59. package/dist-esm/src/operationsInterfaces/virtualNetworkLinks.js.map +1 -0
  60. package/dist-esm/src/privateDnsManagementClient.d.ts +21 -0
  61. package/dist-esm/src/privateDnsManagementClient.d.ts.map +1 -0
  62. package/dist-esm/src/privateDnsManagementClient.js +54 -0
  63. package/dist-esm/src/privateDnsManagementClient.js.map +1 -0
  64. package/dist-esm/test/sampleTest.d.ts +2 -0
  65. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  66. package/dist-esm/test/sampleTest.js +40 -0
  67. package/dist-esm/test/sampleTest.js.map +1 -0
  68. package/package.json +82 -23
  69. package/review/arm-privatedns.api.md +435 -0
  70. package/rollup.config.js +181 -30
  71. package/src/index.ts +12 -0
  72. package/src/lroImpl.ts +34 -0
  73. package/src/models/index.ts +400 -956
  74. package/src/models/mappers.ts +248 -214
  75. package/src/models/parameters.ts +117 -78
  76. package/src/operations/index.ts +3 -5
  77. package/src/operations/privateZones.ts +521 -325
  78. package/src/operations/recordSets.ts +382 -348
  79. package/src/operations/virtualNetworkLinks.ts +475 -261
  80. package/src/operationsInterfaces/index.ts +11 -0
  81. package/src/operationsInterfaces/privateZones.ts +145 -0
  82. package/src/operationsInterfaces/recordSets.ts +117 -0
  83. package/src/operationsInterfaces/virtualNetworkLinks.ts +150 -0
  84. package/src/privateDnsManagementClient.ts +75 -40
  85. package/tsconfig.json +20 -7
  86. package/types/arm-privatedns.d.ts +768 -0
  87. package/types/tsdoc-metadata.json +11 -0
  88. package/dist/arm-privatedns.js +0 -1948
  89. package/dist/arm-privatedns.js.map +0 -1
  90. package/dist/arm-privatedns.min.js +0 -1
  91. package/dist/arm-privatedns.min.js.map +0 -1
  92. package/esm/models/index.d.ts +0 -1031
  93. package/esm/models/index.d.ts.map +0 -1
  94. package/esm/models/index.js +0 -8
  95. package/esm/models/index.js.map +0 -1
  96. package/esm/models/mappers.d.ts +0 -22
  97. package/esm/models/mappers.d.ts.map +0 -1
  98. package/esm/models/mappers.js.map +0 -1
  99. package/esm/models/parameters.d.ts +0 -15
  100. package/esm/models/parameters.d.ts.map +0 -1
  101. package/esm/models/parameters.js.map +0 -1
  102. package/esm/models/privateZonesMappers.d.ts +0 -2
  103. package/esm/models/privateZonesMappers.d.ts.map +0 -1
  104. package/esm/models/privateZonesMappers.js +0 -9
  105. package/esm/models/privateZonesMappers.js.map +0 -1
  106. package/esm/models/recordSetsMappers.d.ts +0 -2
  107. package/esm/models/recordSetsMappers.d.ts.map +0 -1
  108. package/esm/models/recordSetsMappers.js +0 -9
  109. package/esm/models/recordSetsMappers.js.map +0 -1
  110. package/esm/models/virtualNetworkLinksMappers.d.ts +0 -2
  111. package/esm/models/virtualNetworkLinksMappers.d.ts.map +0 -1
  112. package/esm/models/virtualNetworkLinksMappers.js +0 -9
  113. package/esm/models/virtualNetworkLinksMappers.js.map +0 -1
  114. package/esm/operations/index.d.ts.map +0 -1
  115. package/esm/operations/index.js.map +0 -1
  116. package/esm/operations/privateZones.d.ts +0 -165
  117. package/esm/operations/privateZones.d.ts.map +0 -1
  118. package/esm/operations/privateZones.js +0 -347
  119. package/esm/operations/privateZones.js.map +0 -1
  120. package/esm/operations/recordSets.d.ts +0 -229
  121. package/esm/operations/recordSets.d.ts.map +0 -1
  122. package/esm/operations/recordSets.js +0 -304
  123. package/esm/operations/recordSets.js.map +0 -1
  124. package/esm/operations/virtualNetworkLinks.d.ts +0 -139
  125. package/esm/operations/virtualNetworkLinks.d.ts.map +0 -1
  126. package/esm/operations/virtualNetworkLinks.js +0 -305
  127. package/esm/operations/virtualNetworkLinks.js.map +0 -1
  128. package/esm/privateDnsManagementClient.d.ts +0 -27
  129. package/esm/privateDnsManagementClient.d.ts.map +0 -1
  130. package/esm/privateDnsManagementClient.js +0 -41
  131. package/esm/privateDnsManagementClient.js.map +0 -1
  132. package/esm/privateDnsManagementClientContext.d.ts +0 -23
  133. package/esm/privateDnsManagementClientContext.d.ts.map +0 -1
  134. package/esm/privateDnsManagementClientContext.js +0 -62
  135. package/esm/privateDnsManagementClientContext.js.map +0 -1
  136. package/src/models/privateZonesMappers.ts +0 -28
  137. package/src/models/recordSetsMappers.ts +0 -28
  138. package/src/models/virtualNetworkLinksMappers.ts +0 -28
  139. package/src/privateDnsManagementClientContext.ts +0 -69
@@ -0,0 +1,11 @@
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
+ export * from "./privateZones";
10
+ export * from "./virtualNetworkLinks";
11
+ export * from "./recordSets";
@@ -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
+ }
@@ -1,53 +1,88 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
5
4
  *
6
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9
7
  */
10
8
 
11
- import * as msRest from "@azure/ms-rest-js";
12
- import { TokenCredential } from "@azure/core-auth";
13
- import * as Models from "./models";
14
- import * as Mappers from "./models/mappers";
15
- import * as operations from "./operations";
16
- import { PrivateDnsManagementClientContext } from "./privateDnsManagementClientContext";
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";
17
22
 
18
-
19
- class PrivateDnsManagementClient extends PrivateDnsManagementClientContext {
20
- // Operation groups
21
- privateZones: operations.PrivateZones;
22
- virtualNetworkLinks: operations.VirtualNetworkLinks;
23
- recordSets: operations.RecordSets;
23
+ export class PrivateDnsManagementClient extends coreClient.ServiceClient {
24
+ $host: string;
25
+ apiVersion: string;
26
+ subscriptionId: string;
24
27
 
25
28
  /**
26
29
  * Initializes a new instance of the PrivateDnsManagementClient class.
27
- * @param credentials Credentials needed for the client to connect to Azure. Credentials
28
- * implementing the TokenCredential interface from the @azure/identity package are recommended. For
29
- * more information about these credentials, see
30
- * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
31
- * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
32
- * @azure/ms-rest-browserauth are also supported.
30
+ * @param credentials Subscription credentials which uniquely identify client subscription.
33
31
  * @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure
34
- * subscription. The subscription ID forms part of the URI for every service call.
35
- * @param [options] The parameter options
32
+ * subscription. The subscription ID forms part of the URI for every service call.
33
+ * @param options The parameter options
36
34
  */
37
- constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.PrivateDnsManagementClientOptions) {
38
- super(credentials, subscriptionId, options);
39
- this.privateZones = new operations.PrivateZones(this);
40
- this.virtualNetworkLinks = new operations.VirtualNetworkLinks(this);
41
- this.recordSets = new operations.RecordSets(this);
42
- }
43
- }
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
+ };
44
55
 
45
- // Operation Specifications
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}`;
46
61
 
47
- export {
48
- PrivateDnsManagementClient,
49
- PrivateDnsManagementClientContext,
50
- Models as PrivateDnsManagementModels,
51
- Mappers as PrivateDnsManagementMappers
52
- };
53
- export * from "./operations";
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", "dom"],
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": ["./src/**/*.ts"],
18
- "exclude": ["node_modules"]
19
- }
25
+ "include": [
26
+ "./src/**/*.ts",
27
+ "./test/**/*.ts"
28
+ ],
29
+ "exclude": [
30
+ "node_modules"
31
+ ]
32
+ }