@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.
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
@@ -1,160 +1,199 @@
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";
9
+ import {
10
+ OperationParameter,
11
+ OperationURLParameter,
12
+ OperationQueryParameter
13
+ } from "@azure/core-client";
14
+ import {
15
+ PrivateZone as PrivateZoneMapper,
16
+ VirtualNetworkLink as VirtualNetworkLinkMapper,
17
+ RecordSet as RecordSetMapper
18
+ } from "../models/mappers";
12
19
 
13
- export const acceptLanguage: msRest.OperationParameter = {
14
- parameterPath: "acceptLanguage",
20
+ export const contentType: OperationParameter = {
21
+ parameterPath: ["options", "contentType"],
15
22
  mapper: {
16
- serializedName: "accept-language",
17
- defaultValue: 'en-US',
23
+ defaultValue: "application/json",
24
+ isConstant: true,
25
+ serializedName: "Content-Type",
18
26
  type: {
19
27
  name: "String"
20
28
  }
21
29
  }
22
30
  };
23
- export const apiVersion: msRest.OperationQueryParameter = {
24
- parameterPath: "apiVersion",
31
+
32
+ export const parameters: OperationParameter = {
33
+ parameterPath: "parameters",
34
+ mapper: PrivateZoneMapper
35
+ };
36
+
37
+ export const accept: OperationParameter = {
38
+ parameterPath: "accept",
25
39
  mapper: {
26
- required: true,
27
- serializedName: "api-version",
40
+ defaultValue: "application/json",
41
+ isConstant: true,
42
+ serializedName: "Accept",
28
43
  type: {
29
44
  name: "String"
30
45
  }
31
46
  }
32
47
  };
33
- export const ifMatch: msRest.OperationParameter = {
34
- parameterPath: [
35
- "options",
36
- "ifMatch"
37
- ],
48
+
49
+ export const $host: OperationURLParameter = {
50
+ parameterPath: "$host",
38
51
  mapper: {
39
- serializedName: "If-Match",
52
+ serializedName: "$host",
53
+ required: true,
40
54
  type: {
41
55
  name: "String"
42
56
  }
43
- }
57
+ },
58
+ skipEncoding: true
44
59
  };
45
- export const ifNoneMatch: msRest.OperationParameter = {
46
- parameterPath: [
47
- "options",
48
- "ifNoneMatch"
49
- ],
60
+
61
+ export const resourceGroupName: OperationURLParameter = {
62
+ parameterPath: "resourceGroupName",
50
63
  mapper: {
51
- serializedName: "If-None-Match",
64
+ serializedName: "resourceGroupName",
65
+ required: true,
52
66
  type: {
53
67
  name: "String"
54
68
  }
55
69
  }
56
70
  };
57
- export const nextPageLink: msRest.OperationURLParameter = {
58
- parameterPath: "nextPageLink",
71
+
72
+ export const privateZoneName: OperationURLParameter = {
73
+ parameterPath: "privateZoneName",
59
74
  mapper: {
75
+ serializedName: "privateZoneName",
60
76
  required: true,
61
- serializedName: "nextLink",
62
77
  type: {
63
78
  name: "String"
64
79
  }
65
- },
66
- skipEncoding: true
80
+ }
67
81
  };
68
- export const privateZoneName: msRest.OperationURLParameter = {
69
- parameterPath: "privateZoneName",
82
+
83
+ export const ifMatch: OperationParameter = {
84
+ parameterPath: ["options", "ifMatch"],
70
85
  mapper: {
71
- required: true,
72
- serializedName: "privateZoneName",
86
+ serializedName: "If-Match",
73
87
  type: {
74
88
  name: "String"
75
89
  }
76
90
  }
77
91
  };
78
- export const recordsetnamesuffix: msRest.OperationQueryParameter = {
79
- parameterPath: [
80
- "options",
81
- "recordsetnamesuffix"
82
- ],
92
+
93
+ export const ifNoneMatch: OperationParameter = {
94
+ parameterPath: ["options", "ifNoneMatch"],
83
95
  mapper: {
84
- serializedName: "$recordsetnamesuffix",
96
+ serializedName: "If-None-Match",
85
97
  type: {
86
98
  name: "String"
87
99
  }
88
100
  }
89
101
  };
90
- export const recordType: msRest.OperationURLParameter = {
91
- parameterPath: "recordType",
102
+
103
+ export const apiVersion: OperationQueryParameter = {
104
+ parameterPath: "apiVersion",
92
105
  mapper: {
106
+ defaultValue: "2020-06-01",
107
+ isConstant: true,
108
+ serializedName: "api-version",
109
+ type: {
110
+ name: "String"
111
+ }
112
+ }
113
+ };
114
+
115
+ export const subscriptionId: OperationURLParameter = {
116
+ parameterPath: "subscriptionId",
117
+ mapper: {
118
+ serializedName: "subscriptionId",
93
119
  required: true,
94
- serializedName: "recordType",
95
120
  type: {
96
- name: "Enum",
97
- allowedValues: [
98
- "A",
99
- "AAAA",
100
- "CNAME",
101
- "MX",
102
- "PTR",
103
- "SOA",
104
- "SRV",
105
- "TXT"
106
- ]
121
+ name: "String"
107
122
  }
108
123
  }
109
124
  };
110
- export const relativeRecordSetName: msRest.OperationURLParameter = {
111
- parameterPath: "relativeRecordSetName",
125
+
126
+ export const top: OperationQueryParameter = {
127
+ parameterPath: ["options", "top"],
128
+ mapper: {
129
+ serializedName: "$top",
130
+ type: {
131
+ name: "Number"
132
+ }
133
+ }
134
+ };
135
+
136
+ export const nextLink: OperationURLParameter = {
137
+ parameterPath: "nextLink",
112
138
  mapper: {
139
+ serializedName: "nextLink",
113
140
  required: true,
114
- serializedName: "relativeRecordSetName",
115
141
  type: {
116
142
  name: "String"
117
143
  }
118
144
  },
119
145
  skipEncoding: true
120
146
  };
121
- export const resourceGroupName: msRest.OperationURLParameter = {
122
- parameterPath: "resourceGroupName",
147
+
148
+ export const parameters1: OperationParameter = {
149
+ parameterPath: "parameters",
150
+ mapper: VirtualNetworkLinkMapper
151
+ };
152
+
153
+ export const virtualNetworkLinkName: OperationURLParameter = {
154
+ parameterPath: "virtualNetworkLinkName",
123
155
  mapper: {
156
+ serializedName: "virtualNetworkLinkName",
124
157
  required: true,
125
- serializedName: "resourceGroupName",
126
158
  type: {
127
159
  name: "String"
128
160
  }
129
161
  }
130
162
  };
131
- export const subscriptionId: msRest.OperationURLParameter = {
132
- parameterPath: "subscriptionId",
163
+
164
+ export const parameters2: OperationParameter = {
165
+ parameterPath: "parameters",
166
+ mapper: RecordSetMapper
167
+ };
168
+
169
+ export const recordType: OperationURLParameter = {
170
+ parameterPath: "recordType",
133
171
  mapper: {
172
+ serializedName: "recordType",
134
173
  required: true,
135
- serializedName: "subscriptionId",
136
174
  type: {
137
- name: "String"
175
+ name: "Enum",
176
+ allowedValues: ["A", "AAAA", "CNAME", "MX", "PTR", "SOA", "SRV", "TXT"]
138
177
  }
139
178
  }
140
179
  };
141
- export const top: msRest.OperationQueryParameter = {
142
- parameterPath: [
143
- "options",
144
- "top"
145
- ],
180
+
181
+ export const relativeRecordSetName: OperationURLParameter = {
182
+ parameterPath: "relativeRecordSetName",
146
183
  mapper: {
147
- serializedName: "$top",
184
+ serializedName: "relativeRecordSetName",
185
+ required: true,
148
186
  type: {
149
- name: "Number"
187
+ name: "String"
150
188
  }
151
- }
189
+ },
190
+ skipEncoding: true
152
191
  };
153
- export const virtualNetworkLinkName: msRest.OperationURLParameter = {
154
- parameterPath: "virtualNetworkLinkName",
192
+
193
+ export const recordsetnamesuffix: OperationQueryParameter = {
194
+ parameterPath: ["options", "recordsetnamesuffix"],
155
195
  mapper: {
156
- required: true,
157
- serializedName: "virtualNetworkLinkName",
196
+ serializedName: "$recordsetnamesuffix",
158
197
  type: {
159
198
  name: "String"
160
199
  }
@@ -1,11 +1,9 @@
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
9
  export * from "./privateZones";