@azure/arm-dns 5.1.1-alpha.20241024.1 → 5.2.0-beta.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 (129) hide show
  1. package/CHANGELOG.md +44 -10
  2. package/LICENSE +1 -1
  3. package/README.md +1 -1
  4. package/dist/index.js +1371 -579
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/dnsResourceReferenceGetByTargetResourcesSample.js +15 -8
  9. package/dist-esm/samples-dev/dnsResourceReferenceGetByTargetResourcesSample.js.map +1 -1
  10. package/dist-esm/samples-dev/dnssecConfigsCreateOrUpdateSample.d.ts +2 -0
  11. package/dist-esm/samples-dev/dnssecConfigsCreateOrUpdateSample.d.ts.map +1 -0
  12. package/dist-esm/samples-dev/dnssecConfigsCreateOrUpdateSample.js +38 -0
  13. package/dist-esm/samples-dev/dnssecConfigsCreateOrUpdateSample.js.map +1 -0
  14. package/dist-esm/samples-dev/dnssecConfigsDeleteSample.d.ts +2 -0
  15. package/dist-esm/samples-dev/dnssecConfigsDeleteSample.d.ts.map +1 -0
  16. package/dist-esm/samples-dev/dnssecConfigsDeleteSample.js +38 -0
  17. package/dist-esm/samples-dev/dnssecConfigsDeleteSample.js.map +1 -0
  18. package/dist-esm/samples-dev/dnssecConfigsGetSample.d.ts +2 -0
  19. package/dist-esm/samples-dev/dnssecConfigsGetSample.d.ts.map +1 -0
  20. package/dist-esm/samples-dev/dnssecConfigsGetSample.js +38 -0
  21. package/dist-esm/samples-dev/dnssecConfigsGetSample.js.map +1 -0
  22. package/dist-esm/samples-dev/dnssecConfigsListByDnsZoneSample.d.ts +2 -0
  23. package/dist-esm/samples-dev/dnssecConfigsListByDnsZoneSample.d.ts.map +1 -0
  24. package/dist-esm/samples-dev/dnssecConfigsListByDnsZoneSample.js +54 -0
  25. package/dist-esm/samples-dev/dnssecConfigsListByDnsZoneSample.js.map +1 -0
  26. package/dist-esm/samples-dev/recordSetsCreateOrUpdateSample.js +213 -79
  27. package/dist-esm/samples-dev/recordSetsCreateOrUpdateSample.js.map +1 -1
  28. package/dist-esm/samples-dev/recordSetsDeleteSample.js +124 -57
  29. package/dist-esm/samples-dev/recordSetsDeleteSample.js.map +1 -1
  30. package/dist-esm/samples-dev/recordSetsGetSample.js +107 -40
  31. package/dist-esm/samples-dev/recordSetsGetSample.js.map +1 -1
  32. package/dist-esm/samples-dev/recordSetsListAllByDnsZoneSample.js +12 -5
  33. package/dist-esm/samples-dev/recordSetsListAllByDnsZoneSample.js.map +1 -1
  34. package/dist-esm/samples-dev/recordSetsListByDnsZoneSample.js +11 -4
  35. package/dist-esm/samples-dev/recordSetsListByDnsZoneSample.js.map +1 -1
  36. package/dist-esm/samples-dev/recordSetsListByTypeSample.js +166 -54
  37. package/dist-esm/samples-dev/recordSetsListByTypeSample.js.map +1 -1
  38. package/dist-esm/samples-dev/recordSetsUpdateSample.js +110 -40
  39. package/dist-esm/samples-dev/recordSetsUpdateSample.js.map +1 -1
  40. package/dist-esm/samples-dev/zonesCreateOrUpdateSample.js +11 -4
  41. package/dist-esm/samples-dev/zonesCreateOrUpdateSample.js.map +1 -1
  42. package/dist-esm/samples-dev/zonesDeleteSample.js +11 -4
  43. package/dist-esm/samples-dev/zonesDeleteSample.js.map +1 -1
  44. package/dist-esm/samples-dev/zonesGetSample.js +11 -4
  45. package/dist-esm/samples-dev/zonesGetSample.js.map +1 -1
  46. package/dist-esm/samples-dev/zonesListByResourceGroupSample.js +11 -4
  47. package/dist-esm/samples-dev/zonesListByResourceGroupSample.js.map +1 -1
  48. package/dist-esm/samples-dev/zonesListSample.js +10 -3
  49. package/dist-esm/samples-dev/zonesListSample.js.map +1 -1
  50. package/dist-esm/samples-dev/zonesUpdateSample.js +11 -4
  51. package/dist-esm/samples-dev/zonesUpdateSample.js.map +1 -1
  52. package/dist-esm/src/dnsManagementClient.d.ts +3 -3
  53. package/dist-esm/src/dnsManagementClient.d.ts.map +1 -1
  54. package/dist-esm/src/dnsManagementClient.js +13 -12
  55. package/dist-esm/src/dnsManagementClient.js.map +1 -1
  56. package/dist-esm/src/lroImpl.d.ts +6 -11
  57. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  58. package/dist-esm/src/lroImpl.js +12 -20
  59. package/dist-esm/src/lroImpl.js.map +1 -1
  60. package/dist-esm/src/models/index.d.ts +256 -32
  61. package/dist-esm/src/models/index.d.ts.map +1 -1
  62. package/dist-esm/src/models/index.js +12 -1
  63. package/dist-esm/src/models/index.js.map +1 -1
  64. package/dist-esm/src/models/mappers.d.ts +13 -2
  65. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  66. package/dist-esm/src/models/mappers.js +692 -262
  67. package/dist-esm/src/models/mappers.js.map +1 -1
  68. package/dist-esm/src/models/parameters.d.ts +6 -6
  69. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  70. package/dist-esm/src/models/parameters.js +106 -96
  71. package/dist-esm/src/models/parameters.js.map +1 -1
  72. package/dist-esm/src/operations/dnsResourceReferenceOperations.d.ts.map +1 -1
  73. package/dist-esm/src/operations/dnsResourceReferenceOperations.js +5 -5
  74. package/dist-esm/src/operations/dnsResourceReferenceOperations.js.map +1 -1
  75. package/dist-esm/src/operations/dnssecConfigs.d.ts +74 -0
  76. package/dist-esm/src/operations/dnssecConfigs.d.ts.map +1 -0
  77. package/dist-esm/src/operations/dnssecConfigs.js +348 -0
  78. package/dist-esm/src/operations/dnssecConfigs.js.map +1 -0
  79. package/dist-esm/src/operations/index.d.ts +1 -0
  80. package/dist-esm/src/operations/index.d.ts.map +1 -1
  81. package/dist-esm/src/operations/index.js +1 -0
  82. package/dist-esm/src/operations/index.js.map +1 -1
  83. package/dist-esm/src/operations/recordSets.d.ts +22 -22
  84. package/dist-esm/src/operations/recordSets.js +87 -102
  85. package/dist-esm/src/operations/recordSets.js.map +1 -1
  86. package/dist-esm/src/operations/zones.d.ts +10 -10
  87. package/dist-esm/src/operations/zones.d.ts.map +1 -1
  88. package/dist-esm/src/operations/zones.js +66 -64
  89. package/dist-esm/src/operations/zones.js.map +1 -1
  90. package/dist-esm/src/operationsInterfaces/dnssecConfigs.d.ts +49 -0
  91. package/dist-esm/src/operationsInterfaces/dnssecConfigs.d.ts.map +1 -0
  92. package/dist-esm/src/operationsInterfaces/dnssecConfigs.js +9 -0
  93. package/dist-esm/src/operationsInterfaces/dnssecConfigs.js.map +1 -0
  94. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
  95. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  96. package/dist-esm/src/operationsInterfaces/index.js +1 -0
  97. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  98. package/dist-esm/src/operationsInterfaces/recordSets.d.ts +14 -14
  99. package/dist-esm/src/operationsInterfaces/zones.d.ts +8 -8
  100. package/dist-esm/src/operationsInterfaces/zones.d.ts.map +1 -1
  101. package/dist-esm/src/pagingHelper.d.ts +4 -4
  102. package/dist-esm/src/pagingHelper.js +4 -4
  103. package/dist-esm/test/dns_operations_test.spec.d.ts +4 -0
  104. package/dist-esm/test/dns_operations_test.spec.d.ts.map +1 -0
  105. package/dist-esm/test/dns_operations_test.spec.js +114 -0
  106. package/dist-esm/test/dns_operations_test.spec.js.map +1 -0
  107. package/package.json +31 -31
  108. package/review/arm-dns.api.md +157 -12
  109. package/src/dnsManagementClient.ts +25 -22
  110. package/src/lroImpl.ts +31 -23
  111. package/src/models/index.ts +290 -44
  112. package/src/models/mappers.ts +706 -263
  113. package/src/models/parameters.ts +113 -103
  114. package/src/operations/dnsResourceReferenceOperations.ts +11 -11
  115. package/src/operations/dnssecConfigs.ts +468 -0
  116. package/src/operations/index.ts +1 -0
  117. package/src/operations/recordSets.ts +138 -160
  118. package/src/operations/zones.ts +107 -111
  119. package/src/operationsInterfaces/dnsResourceReferenceOperations.ts +2 -2
  120. package/src/operationsInterfaces/dnssecConfigs.ts +95 -0
  121. package/src/operationsInterfaces/index.ts +1 -0
  122. package/src/operationsInterfaces/recordSets.ts +22 -22
  123. package/src/operationsInterfaces/zones.ts +15 -15
  124. package/src/pagingHelper.ts +5 -5
  125. package/types/arm-dns.d.ts +338 -46
  126. package/dist-esm/test/sampleTest.d.ts +0 -2
  127. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  128. package/dist-esm/test/sampleTest.js +0 -42
  129. package/dist-esm/test/sampleTest.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  import * as coreAuth from '@azure/core-auth';
2
2
  import * as coreClient from '@azure/core-client';
3
+ import { OperationState } from '@azure/core-lro';
3
4
  import { PagedAsyncIterableIterator } from '@azure/core-paging';
4
- import { PollerLike } from '@azure/core-lro';
5
- import { PollOperationState } from '@azure/core-lro';
5
+ import { SimplePollerLike } from '@azure/core-lro';
6
6
 
7
7
  /** An AAAA record. */
8
8
  export declare interface AaaaRecord {
@@ -50,6 +50,45 @@ export declare interface CnameRecord {
50
50
  cname?: string;
51
51
  }
52
52
 
53
+ /**
54
+ * Defines values for CreatedByType. \
55
+ * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
56
+ * this enum contains the known values that the service supports.
57
+ * ### Known values supported by the service
58
+ * **User** \
59
+ * **Application** \
60
+ * **ManagedIdentity** \
61
+ * **Key**
62
+ */
63
+ export declare type CreatedByType = string;
64
+
65
+ /** The delegation signer information. */
66
+ export declare interface DelegationSignerInfo {
67
+ /**
68
+ * The digest algorithm type represents the standard digest algorithm number used to construct the digest. See: https://www.iana.org/assignments/ds-rr-types/ds-rr-types.xhtml
69
+ * NOTE: This property will not be serialized. It can only be populated by the server.
70
+ */
71
+ readonly digestAlgorithmType?: number;
72
+ /**
73
+ * The digest value is a cryptographic hash value of the referenced DNSKEY Resource Record.
74
+ * NOTE: This property will not be serialized. It can only be populated by the server.
75
+ */
76
+ readonly digestValue?: string;
77
+ /**
78
+ * The record represents a delegation signer (DS) record.
79
+ * NOTE: This property will not be serialized. It can only be populated by the server.
80
+ */
81
+ readonly record?: string;
82
+ }
83
+
84
+ /** A digest. */
85
+ export declare interface Digest {
86
+ /** The digest algorithm type represents the standard digest algorithm number used to construct the digest. See: https://www.iana.org/assignments/ds-rr-types/ds-rr-types.xhtml */
87
+ algorithmType?: number;
88
+ /** The digest value is a cryptographic hash value of the referenced DNSKEY Resource Record. */
89
+ value?: string;
90
+ }
91
+
53
92
  export declare class DnsManagementClient extends coreClient.ServiceClient {
54
93
  $host: string;
55
94
  apiVersion: string;
@@ -57,13 +96,13 @@ export declare class DnsManagementClient extends coreClient.ServiceClient {
57
96
  /**
58
97
  * Initializes a new instance of the DnsManagementClient class.
59
98
  * @param credentials Subscription credentials which uniquely identify client subscription.
60
- * @param subscriptionId Specifies the Azure subscription ID, which uniquely identifies the Microsoft
61
- * Azure subscription.
99
+ * @param subscriptionId The ID of the target subscription.
62
100
  * @param options The parameter options
63
101
  */
64
102
  constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: DnsManagementClientOptionalParams);
65
103
  /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
66
104
  private addCustomApiVersionPolicy;
105
+ dnssecConfigs: DnssecConfigs;
67
106
  recordSets: RecordSets;
68
107
  zones: Zones;
69
108
  dnsResourceReferenceOperations: DnsResourceReferenceOperations;
@@ -116,15 +155,182 @@ export declare interface DnsResourceReferenceResult {
116
155
  dnsResourceReferences?: DnsResourceReference[];
117
156
  }
118
157
 
158
+ /** Represents the DNSSEC configuration. */
159
+ export declare interface DnssecConfig {
160
+ /**
161
+ * The ID of the DNSSEC configuration.
162
+ * NOTE: This property will not be serialized. It can only be populated by the server.
163
+ */
164
+ readonly id?: string;
165
+ /**
166
+ * The name of the DNSSEC configuration.
167
+ * NOTE: This property will not be serialized. It can only be populated by the server.
168
+ */
169
+ readonly name?: string;
170
+ /**
171
+ * The type of the DNSSEC configuration.
172
+ * NOTE: This property will not be serialized. It can only be populated by the server.
173
+ */
174
+ readonly type?: string;
175
+ /** The etag of the DNSSEC configuration. */
176
+ etag?: string;
177
+ /**
178
+ * Metadata pertaining to creation and last modification of the resource.
179
+ * NOTE: This property will not be serialized. It can only be populated by the server.
180
+ */
181
+ readonly systemData?: SystemData;
182
+ /**
183
+ * Provisioning State of the DNSSEC configuration.
184
+ * NOTE: This property will not be serialized. It can only be populated by the server.
185
+ */
186
+ readonly provisioningState?: string;
187
+ /**
188
+ * The list of signing keys.
189
+ * NOTE: This property will not be serialized. It can only be populated by the server.
190
+ */
191
+ readonly signingKeys?: SigningKey[];
192
+ }
193
+
194
+ /** The response to a List DNSSEC configurations operation. */
195
+ export declare interface DnssecConfigListResult {
196
+ /** Information about the DNSSEC configurations in the response. */
197
+ value?: DnssecConfig[];
198
+ /**
199
+ * The continuation token for the next page of results.
200
+ * NOTE: This property will not be serialized. It can only be populated by the server.
201
+ */
202
+ readonly nextLink?: string;
203
+ }
204
+
205
+ /** Interface representing a DnssecConfigs. */
206
+ export declare interface DnssecConfigs {
207
+ /**
208
+ * Lists the DNSSEC configurations in a DNS zone.
209
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
210
+ * @param zoneName The name of the DNS zone (without a terminating dot).
211
+ * @param options The options parameters.
212
+ */
213
+ listByDnsZone(resourceGroupName: string, zoneName: string, options?: DnssecConfigsListByDnsZoneOptionalParams): PagedAsyncIterableIterator<DnssecConfig>;
214
+ /**
215
+ * Creates or updates the DNSSEC configuration on a DNS zone.
216
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
217
+ * @param zoneName The name of the DNS zone (without a terminating dot).
218
+ * @param options The options parameters.
219
+ */
220
+ beginCreateOrUpdate(resourceGroupName: string, zoneName: string, options?: DnssecConfigsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<DnssecConfigsCreateOrUpdateResponse>, DnssecConfigsCreateOrUpdateResponse>>;
221
+ /**
222
+ * Creates or updates the DNSSEC configuration on a DNS zone.
223
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
224
+ * @param zoneName The name of the DNS zone (without a terminating dot).
225
+ * @param options The options parameters.
226
+ */
227
+ beginCreateOrUpdateAndWait(resourceGroupName: string, zoneName: string, options?: DnssecConfigsCreateOrUpdateOptionalParams): Promise<DnssecConfigsCreateOrUpdateResponse>;
228
+ /**
229
+ * Deletes the DNSSEC configuration on a DNS zone. This operation cannot be undone.
230
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
231
+ * @param zoneName The name of the DNS zone (without a terminating dot).
232
+ * @param options The options parameters.
233
+ */
234
+ beginDelete(resourceGroupName: string, zoneName: string, options?: DnssecConfigsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
235
+ /**
236
+ * Deletes the DNSSEC configuration on a DNS zone. This operation cannot be undone.
237
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
238
+ * @param zoneName The name of the DNS zone (without a terminating dot).
239
+ * @param options The options parameters.
240
+ */
241
+ beginDeleteAndWait(resourceGroupName: string, zoneName: string, options?: DnssecConfigsDeleteOptionalParams): Promise<void>;
242
+ /**
243
+ * Gets the DNSSEC configuration.
244
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
245
+ * @param zoneName The name of the DNS zone (without a terminating dot).
246
+ * @param options The options parameters.
247
+ */
248
+ get(resourceGroupName: string, zoneName: string, options?: DnssecConfigsGetOptionalParams): Promise<DnssecConfigsGetResponse>;
249
+ }
250
+
251
+ /** Optional parameters. */
252
+ export declare interface DnssecConfigsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
253
+ /** The etag of the DNSSEC configuration. Omit this value to always overwrite the DNSSEC configuration. Specify the last-seen etag value to prevent accidentally overwriting any concurrent changes. */
254
+ ifMatch?: string;
255
+ /** Set to '*' to allow this DNSSEC configuration to be created, but to prevent updating existing DNSSEC configuration. Other values will be ignored. */
256
+ ifNoneMatch?: string;
257
+ /** Delay to wait until next poll, in milliseconds. */
258
+ updateIntervalInMs?: number;
259
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
260
+ resumeFrom?: string;
261
+ }
262
+
263
+ /** Contains response data for the createOrUpdate operation. */
264
+ export declare type DnssecConfigsCreateOrUpdateResponse = DnssecConfig;
265
+
266
+ /** Defines headers for DnssecConfigs_delete operation. */
267
+ export declare interface DnssecConfigsDeleteHeaders {
268
+ /** Location URI to poll for result */
269
+ location?: string;
270
+ }
271
+
272
+ /** Optional parameters. */
273
+ export declare interface DnssecConfigsDeleteOptionalParams extends coreClient.OperationOptions {
274
+ /** The etag of this DNSSEC configuration. Omit this value to always delete the DNSSEC configuration. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes. */
275
+ ifMatch?: string;
276
+ /** Delay to wait until next poll, in milliseconds. */
277
+ updateIntervalInMs?: number;
278
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
279
+ resumeFrom?: string;
280
+ }
281
+
282
+ /** Optional parameters. */
283
+ export declare interface DnssecConfigsGetOptionalParams extends coreClient.OperationOptions {
284
+ }
285
+
286
+ /** Contains response data for the get operation. */
287
+ export declare type DnssecConfigsGetResponse = DnssecConfig;
288
+
289
+ /** Optional parameters. */
290
+ export declare interface DnssecConfigsListByDnsZoneNextOptionalParams extends coreClient.OperationOptions {
291
+ }
292
+
293
+ /** Contains response data for the listByDnsZoneNext operation. */
294
+ export declare type DnssecConfigsListByDnsZoneNextResponse = DnssecConfigListResult;
295
+
296
+ /** Optional parameters. */
297
+ export declare interface DnssecConfigsListByDnsZoneOptionalParams extends coreClient.OperationOptions {
298
+ }
299
+
300
+ /** Contains response data for the listByDnsZone operation. */
301
+ export declare type DnssecConfigsListByDnsZoneResponse = DnssecConfigListResult;
302
+
303
+ /** A DS record. For more information about the DS record format, see RFC 4034: https://www.rfc-editor.org/rfc/rfc4034 */
304
+ export declare interface DsRecord {
305
+ /** The key tag value is used to determine which DNSKEY Resource Record is used for signature verification. */
306
+ keyTag?: number;
307
+ /** The security algorithm type represents the standard security algorithm number of the DNSKEY Resource Record. See: https://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml */
308
+ algorithm?: number;
309
+ /** The digest entity. */
310
+ digest?: Digest;
311
+ }
312
+
119
313
  /**
120
- * Given a result page from a pageable operation, returns a
121
- * continuation token that can be used to begin paging from
314
+ * Given the last `.value` produced by the `byPage` iterator,
315
+ * returns a continuation token that can be used to begin paging from
122
316
  * that point later.
123
- * @param page A result object from calling .byPage() on a paged operation.
124
- * @returns The continuation token that can be passed into byPage().
317
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
318
+ * @returns The continuation token that can be passed into byPage() during future calls.
125
319
  */
126
320
  export declare function getContinuationToken(page: unknown): string | undefined;
127
321
 
322
+ /** Known values of {@link CreatedByType} that the service accepts. */
323
+ export declare enum KnownCreatedByType {
324
+ /** User */
325
+ User = "User",
326
+ /** Application */
327
+ Application = "Application",
328
+ /** ManagedIdentity */
329
+ ManagedIdentity = "ManagedIdentity",
330
+ /** Key */
331
+ Key = "Key"
332
+ }
333
+
128
334
  /** An MX record. */
129
335
  export declare interface MxRecord {
130
336
  /** The preference value for this MX record. */
@@ -133,6 +339,22 @@ export declare interface MxRecord {
133
339
  exchange?: string;
134
340
  }
135
341
 
342
+ /** A NAPTR record. For more information about the NAPTR record format, see RFC 3403: https://www.rfc-editor.org/rfc/rfc3403 */
343
+ export declare interface NaptrRecord {
344
+ /** The order in which the NAPTR records MUST be processed in order to accurately represent the ordered list of rules. The ordering is from lowest to highest. Valid values: 0-65535. */
345
+ order?: number;
346
+ /** The preference specifies the order in which NAPTR records with equal 'order' values should be processed, low numbers being processed before high numbers. Valid values: 0-65535. */
347
+ preference?: number;
348
+ /** The flags specific to DDDS applications. Values currently defined in RFC 3404 are uppercase and lowercase letters "A", "P", "S", and "U", and the empty string, "". Enclose Flags in quotation marks. */
349
+ flags?: string;
350
+ /** The services specific to DDDS applications. Enclose Services in quotation marks. */
351
+ services?: string;
352
+ /** The regular expression that the DDDS application uses to convert an input value into an output value. For example: an IP phone system might use a regular expression to convert a phone number that is entered by a user into a SIP URI. Enclose the regular expression in quotation marks. Specify either a value for 'regexp' or a value for 'replacement'. */
353
+ regexp?: string;
354
+ /** The replacement is a fully qualified domain name (FQDN) of the next domain name that you want the DDDS application to submit a DNS query for. The DDDS application replaces the input value with the value specified for replacement. Specify either a value for 'regexp' or a value for 'replacement'. If you specify a value for 'regexp', specify a dot (.) for 'replacement'. */
355
+ replacement?: string;
356
+ }
357
+
136
358
  /** An NS record. */
137
359
  export declare interface NsRecord {
138
360
  /** The name server name for this NS record. */
@@ -182,6 +404,8 @@ export declare interface RecordSet {
182
404
  readonly provisioningState?: string;
183
405
  /** A reference to an azure resource from where the dns resource value is taken. */
184
406
  targetResource?: SubResource;
407
+ /** A reference to an azure traffic manager profile resource from where the dns resource value is taken. */
408
+ trafficManagementProfile?: SubResource;
185
409
  /** The list of A records in the record set. */
186
410
  aRecords?: ARecord[];
187
411
  /** The list of AAAA records in the record set. */
@@ -202,6 +426,12 @@ export declare interface RecordSet {
202
426
  soaRecord?: SoaRecord;
203
427
  /** The list of CAA records in the record set. */
204
428
  caaRecords?: CaaRecord[];
429
+ /** The list of DS records in the record set. */
430
+ dsRecords?: DsRecord[];
431
+ /** The list of TLSA records in the record set. */
432
+ tlsaRecords?: TlsaRecord[];
433
+ /** The list of NAPTR records in the record set. */
434
+ naptrRecords?: NaptrRecord[];
205
435
  }
206
436
 
207
437
  /** The response to a record set List operation. */
@@ -219,29 +449,29 @@ export declare interface RecordSetListResult {
219
449
  export declare interface RecordSets {
220
450
  /**
221
451
  * Lists the record sets of a specified type in a DNS zone.
222
- * @param resourceGroupName The name of the resource group.
452
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
223
453
  * @param zoneName The name of the DNS zone (without a terminating dot).
224
- * @param recordType The type of record sets to enumerate.
454
+ * @param recordType The type of DNS record in this record set.
225
455
  * @param options The options parameters.
226
456
  */
227
457
  listByType(resourceGroupName: string, zoneName: string, recordType: RecordType, options?: RecordSetsListByTypeOptionalParams): PagedAsyncIterableIterator<RecordSet>;
228
458
  /**
229
459
  * Lists all record sets in a DNS zone.
230
- * @param resourceGroupName The name of the resource group.
460
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
231
461
  * @param zoneName The name of the DNS zone (without a terminating dot).
232
462
  * @param options The options parameters.
233
463
  */
234
464
  listByDnsZone(resourceGroupName: string, zoneName: string, options?: RecordSetsListByDnsZoneOptionalParams): PagedAsyncIterableIterator<RecordSet>;
235
465
  /**
236
466
  * Lists all record sets in a DNS zone.
237
- * @param resourceGroupName The name of the resource group.
467
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
238
468
  * @param zoneName The name of the DNS zone (without a terminating dot).
239
469
  * @param options The options parameters.
240
470
  */
241
471
  listAllByDnsZone(resourceGroupName: string, zoneName: string, options?: RecordSetsListAllByDnsZoneOptionalParams): PagedAsyncIterableIterator<RecordSet>;
242
472
  /**
243
473
  * Updates a record set within a DNS zone.
244
- * @param resourceGroupName The name of the resource group.
474
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
245
475
  * @param zoneName The name of the DNS zone (without a terminating dot).
246
476
  * @param relativeRecordSetName The name of the record set, relative to the name of the zone.
247
477
  * @param recordType The type of DNS record in this record set.
@@ -250,29 +480,29 @@ export declare interface RecordSets {
250
480
  */
251
481
  update(resourceGroupName: string, zoneName: string, relativeRecordSetName: string, recordType: RecordType, parameters: RecordSet, options?: RecordSetsUpdateOptionalParams): Promise<RecordSetsUpdateResponse>;
252
482
  /**
253
- * Creates or updates a record set within a DNS zone.
254
- * @param resourceGroupName The name of the resource group.
483
+ * Creates or updates a record set within a DNS zone. Record sets of type SOA can be updated but not
484
+ * created (they are created when the DNS zone is created).
485
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
255
486
  * @param zoneName The name of the DNS zone (without a terminating dot).
256
487
  * @param relativeRecordSetName The name of the record set, relative to the name of the zone.
257
- * @param recordType The type of DNS record in this record set. Record sets of type SOA can be updated
258
- * but not created (they are created when the DNS zone is created).
488
+ * @param recordType The type of DNS record in this record set.
259
489
  * @param parameters Parameters supplied to the CreateOrUpdate operation.
260
490
  * @param options The options parameters.
261
491
  */
262
492
  createOrUpdate(resourceGroupName: string, zoneName: string, relativeRecordSetName: string, recordType: RecordType, parameters: RecordSet, options?: RecordSetsCreateOrUpdateOptionalParams): Promise<RecordSetsCreateOrUpdateResponse>;
263
493
  /**
264
- * Deletes a record set from a DNS zone. This operation cannot be undone.
265
- * @param resourceGroupName The name of the resource group.
494
+ * Deletes a record set from a DNS zone. This operation cannot be undone. Record sets of type SOA
495
+ * cannot be deleted (they are deleted when the DNS zone is deleted).
496
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
266
497
  * @param zoneName The name of the DNS zone (without a terminating dot).
267
498
  * @param relativeRecordSetName The name of the record set, relative to the name of the zone.
268
- * @param recordType The type of DNS record in this record set. Record sets of type SOA cannot be
269
- * deleted (they are deleted when the DNS zone is deleted).
499
+ * @param recordType The type of DNS record in this record set.
270
500
  * @param options The options parameters.
271
501
  */
272
502
  delete(resourceGroupName: string, zoneName: string, relativeRecordSetName: string, recordType: RecordType, options?: RecordSetsDeleteOptionalParams): Promise<void>;
273
503
  /**
274
504
  * Gets a record set.
275
- * @param resourceGroupName The name of the resource group.
505
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
276
506
  * @param zoneName The name of the DNS zone (without a terminating dot).
277
507
  * @param relativeRecordSetName The name of the record set, relative to the name of the zone.
278
508
  * @param recordType The type of DNS record in this record set.
@@ -307,10 +537,6 @@ export declare type RecordSetsGetResponse = RecordSet;
307
537
 
308
538
  /** Optional parameters. */
309
539
  export declare interface RecordSetsListAllByDnsZoneNextOptionalParams extends coreClient.OperationOptions {
310
- /** The maximum number of record sets to return. If not specified, returns up to 100 record sets. */
311
- top?: number;
312
- /** The suffix label of the record set name that has to be used to filter the record set enumerations. If this parameter is specified, Enumeration will return only records that end with .<recordSetNameSuffix> */
313
- recordSetNameSuffix?: string;
314
540
  }
315
541
 
316
542
  /** Contains response data for the listAllByDnsZoneNext operation. */
@@ -329,10 +555,6 @@ export declare type RecordSetsListAllByDnsZoneResponse = RecordSetListResult;
329
555
 
330
556
  /** Optional parameters. */
331
557
  export declare interface RecordSetsListByDnsZoneNextOptionalParams extends coreClient.OperationOptions {
332
- /** The maximum number of record sets to return. If not specified, returns up to 100 record sets. */
333
- top?: number;
334
- /** The suffix label of the record set name that has to be used to filter the record set enumerations. If this parameter is specified, Enumeration will return only records that end with .<recordSetNameSuffix> */
335
- recordsetnamesuffix?: string;
336
558
  }
337
559
 
338
560
  /** Contains response data for the listByDnsZoneNext operation. */
@@ -351,10 +573,6 @@ export declare type RecordSetsListByDnsZoneResponse = RecordSetListResult;
351
573
 
352
574
  /** Optional parameters. */
353
575
  export declare interface RecordSetsListByTypeNextOptionalParams extends coreClient.OperationOptions {
354
- /** The maximum number of record sets to return. If not specified, returns up to 100 record sets. */
355
- top?: number;
356
- /** The suffix label of the record set name that has to be used to filter the record set enumerations. If this parameter is specified, Enumeration will return only records that end with .<recordSetNameSuffix> */
357
- recordsetnamesuffix?: string;
358
576
  }
359
577
 
360
578
  /** Contains response data for the listByTypeNext operation. */
@@ -387,7 +605,7 @@ export declare interface RecordSetUpdateParameters {
387
605
  }
388
606
 
389
607
  /** Defines values for RecordType. */
390
- export declare type RecordType = "A" | "AAAA" | "CAA" | "CNAME" | "MX" | "NS" | "PTR" | "SOA" | "SRV" | "TXT";
608
+ export declare type RecordType = "A" | "AAAA" | "CAA" | "CNAME" | "MX" | "NS" | "PTR" | "SOA" | "SRV" | "TXT" | "TLSA" | "DS" | "NAPTR";
391
609
 
392
610
  /** Common properties of an Azure Resource Manager resource */
393
611
  export declare interface Resource {
@@ -414,6 +632,40 @@ export declare interface Resource {
414
632
  };
415
633
  }
416
634
 
635
+ /** Represents the signing key. */
636
+ export declare interface SigningKey {
637
+ /**
638
+ * The delegation signer information.
639
+ * NOTE: This property will not be serialized. It can only be populated by the server.
640
+ */
641
+ readonly delegationSignerInfo?: DelegationSignerInfo[];
642
+ /**
643
+ * The flags specifies how the key is used.
644
+ * NOTE: This property will not be serialized. It can only be populated by the server.
645
+ */
646
+ readonly flags?: number;
647
+ /**
648
+ * The key tag value of the DNSKEY Resource Record.
649
+ * NOTE: This property will not be serialized. It can only be populated by the server.
650
+ */
651
+ readonly keyTag?: number;
652
+ /**
653
+ * The protocol value. The value is always 3.
654
+ * NOTE: This property will not be serialized. It can only be populated by the server.
655
+ */
656
+ readonly protocol?: number;
657
+ /**
658
+ * The public key, represented as a Base64 encoding.
659
+ * NOTE: This property will not be serialized. It can only be populated by the server.
660
+ */
661
+ readonly publicKey?: string;
662
+ /**
663
+ * The security algorithm type represents the standard security algorithm number of the DNSKEY Resource Record. See: https://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml
664
+ * NOTE: This property will not be serialized. It can only be populated by the server.
665
+ */
666
+ readonly securityAlgorithmType?: number;
667
+ }
668
+
417
669
  /** An SOA record. */
418
670
  export declare interface SoaRecord {
419
671
  /** The domain name of the authoritative name server for this SOA record. */
@@ -450,6 +702,34 @@ export declare interface SubResource {
450
702
  id?: string;
451
703
  }
452
704
 
705
+ /** Metadata pertaining to creation and last modification of the resource. */
706
+ export declare interface SystemData {
707
+ /** The identity that created the resource. */
708
+ createdBy?: string;
709
+ /** The type of identity that created the resource. */
710
+ createdByType?: CreatedByType;
711
+ /** The timestamp of resource creation (UTC). */
712
+ createdAt?: Date;
713
+ /** The identity that last modified the resource. */
714
+ lastModifiedBy?: string;
715
+ /** The type of identity that last modified the resource. */
716
+ lastModifiedByType?: CreatedByType;
717
+ /** The timestamp of resource last modification (UTC) */
718
+ lastModifiedAt?: Date;
719
+ }
720
+
721
+ /** A TLSA record. For more information about the TLSA record format, see RFC 6698: https://www.rfc-editor.org/rfc/rfc6698 */
722
+ export declare interface TlsaRecord {
723
+ /** The usage specifies the provided association that will be used to match the certificate presented in the TLS handshake. */
724
+ usage?: number;
725
+ /** The selector specifies which part of the TLS certificate presented by the server will be matched against the association data. */
726
+ selector?: number;
727
+ /** The matching type specifies how the certificate association is presented. */
728
+ matchingType?: number;
729
+ /** This specifies the certificate association data to be matched. */
730
+ certAssociationData?: string;
731
+ }
732
+
453
733
  /** A TXT record. */
454
734
  export declare interface TxtRecord {
455
735
  /** The text value of this TXT record. */
@@ -460,6 +740,11 @@ export declare interface TxtRecord {
460
740
  export declare interface Zone extends Resource {
461
741
  /** The etag of the zone. */
462
742
  etag?: string;
743
+ /**
744
+ * Metadata pertaining to creation and last modification of the resource.
745
+ * NOTE: This property will not be serialized. It can only be populated by the server.
746
+ */
747
+ readonly systemData?: SystemData;
463
748
  /**
464
749
  * The maximum number of record sets that can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
465
750
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -486,6 +771,11 @@ export declare interface Zone extends Resource {
486
771
  registrationVirtualNetworks?: SubResource[];
487
772
  /** A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private. */
488
773
  resolutionVirtualNetworks?: SubResource[];
774
+ /**
775
+ * The list of signing keys.
776
+ * NOTE: This property will not be serialized. It can only be populated by the server.
777
+ */
778
+ readonly signingKeys?: SigningKey[];
489
779
  }
490
780
 
491
781
  /** The response to a Zone List or ListAll operation. */
@@ -503,7 +793,7 @@ export declare interface ZoneListResult {
503
793
  export declare interface Zones {
504
794
  /**
505
795
  * Lists the DNS zones within a resource group.
506
- * @param resourceGroupName The name of the resource group.
796
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
507
797
  * @param options The options parameters.
508
798
  */
509
799
  listByResourceGroup(resourceGroupName: string, options?: ZonesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Zone>;
@@ -514,7 +804,7 @@ export declare interface Zones {
514
804
  list(options?: ZonesListOptionalParams): PagedAsyncIterableIterator<Zone>;
515
805
  /**
516
806
  * Creates or updates a DNS zone. Does not modify DNS records within the zone.
517
- * @param resourceGroupName The name of the resource group.
807
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
518
808
  * @param zoneName The name of the DNS zone (without a terminating dot).
519
809
  * @param parameters Parameters supplied to the CreateOrUpdate operation.
520
810
  * @param options The options parameters.
@@ -523,29 +813,29 @@ export declare interface Zones {
523
813
  /**
524
814
  * Deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot
525
815
  * be undone.
526
- * @param resourceGroupName The name of the resource group.
816
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
527
817
  * @param zoneName The name of the DNS zone (without a terminating dot).
528
818
  * @param options The options parameters.
529
819
  */
530
- beginDelete(resourceGroupName: string, zoneName: string, options?: ZonesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
820
+ beginDelete(resourceGroupName: string, zoneName: string, options?: ZonesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
531
821
  /**
532
822
  * Deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot
533
823
  * be undone.
534
- * @param resourceGroupName The name of the resource group.
824
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
535
825
  * @param zoneName The name of the DNS zone (without a terminating dot).
536
826
  * @param options The options parameters.
537
827
  */
538
828
  beginDeleteAndWait(resourceGroupName: string, zoneName: string, options?: ZonesDeleteOptionalParams): Promise<void>;
539
829
  /**
540
830
  * Gets a DNS zone. Retrieves the zone properties, but not the record sets within the zone.
541
- * @param resourceGroupName The name of the resource group.
831
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
542
832
  * @param zoneName The name of the DNS zone (without a terminating dot).
543
833
  * @param options The options parameters.
544
834
  */
545
835
  get(resourceGroupName: string, zoneName: string, options?: ZonesGetOptionalParams): Promise<ZonesGetResponse>;
546
836
  /**
547
837
  * Updates a DNS zone. Does not modify DNS records within the zone.
548
- * @param resourceGroupName The name of the resource group.
838
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
549
839
  * @param zoneName The name of the DNS zone (without a terminating dot).
550
840
  * @param parameters Parameters supplied to the Update operation.
551
841
  * @param options The options parameters.
@@ -564,6 +854,12 @@ export declare interface ZonesCreateOrUpdateOptionalParams extends coreClient.Op
564
854
  /** Contains response data for the createOrUpdate operation. */
565
855
  export declare type ZonesCreateOrUpdateResponse = Zone;
566
856
 
857
+ /** Defines headers for Zones_delete operation. */
858
+ export declare interface ZonesDeleteHeaders {
859
+ /** Location URI to poll for result */
860
+ location?: string;
861
+ }
862
+
567
863
  /** Optional parameters. */
568
864
  export declare interface ZonesDeleteOptionalParams extends coreClient.OperationOptions {
569
865
  /** The etag of the DNS zone. Omit this value to always delete the current zone. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes. */
@@ -583,8 +879,6 @@ export declare type ZonesGetResponse = Zone;
583
879
 
584
880
  /** Optional parameters. */
585
881
  export declare interface ZonesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
586
- /** The maximum number of record sets to return. If not specified, returns up to 100 record sets. */
587
- top?: number;
588
882
  }
589
883
 
590
884
  /** Contains response data for the listByResourceGroupNext operation. */
@@ -601,8 +895,6 @@ export declare type ZonesListByResourceGroupResponse = ZoneListResult;
601
895
 
602
896
  /** Optional parameters. */
603
897
  export declare interface ZonesListNextOptionalParams extends coreClient.OperationOptions {
604
- /** The maximum number of DNS zones to return. If not specified, returns up to 100 zones. */
605
- top?: number;
606
898
  }
607
899
 
608
900
  /** Contains response data for the listNext operation. */
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=sampleTest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sampleTest.d.ts","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":""}
@@ -1,42 +0,0 @@
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 { Recorder } from "@azure-tools/test-recorder";
10
- const replaceableVariables = {
11
- AZURE_CLIENT_ID: "azure_client_id",
12
- AZURE_CLIENT_SECRET: "azure_client_secret",
13
- AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
14
- SUBSCRIPTION_ID: "azure_subscription_id"
15
- };
16
- const recorderOptions = {
17
- envSetupForPlayback: replaceableVariables,
18
- removeCentralSanitizers: [
19
- "AZSDK3493", // .name in the body is not a secret and is listed below in the beforeEach section
20
- "AZSDK3430", // .id in the body is not a secret and is listed below in the beforeEach section
21
- ],
22
- };
23
- describe("My test", () => {
24
- let recorder;
25
- beforeEach(function () {
26
- return __awaiter(this, void 0, void 0, function* () {
27
- recorder = new Recorder(this.currentTest);
28
- yield recorder.start(recorderOptions);
29
- });
30
- });
31
- afterEach(function () {
32
- return __awaiter(this, void 0, void 0, function* () {
33
- yield recorder.stop();
34
- });
35
- });
36
- it("sample test", function () {
37
- return __awaiter(this, void 0, void 0, function* () {
38
- console.log("Hi, I'm a test!");
39
- });
40
- });
41
- });
42
- //# sourceMappingURL=sampleTest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,QAAQ,EAGT,MAAM,4BAA4B,CAAC;AAIpC,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;IACzC,uBAAuB,EAAE;QACvB,WAAW,EAAE,kFAAkF;QAC/F,WAAW,EAAE,gFAAgF;KAC9F;CACF,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC;;YACT,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC1C,MAAM,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QACxC,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"}