@azure/arm-privatedns 3.2.1-alpha.20240925.1 → 3.3.0-alpha.20240926.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -10
- package/LICENSE +1 -1
- package/dist/index.js +435 -422
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/privateZonesCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/privateZonesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateZonesGetSample.js +1 -1
- package/dist-esm/samples-dev/privateZonesListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/privateZonesListSample.js +1 -1
- package/dist-esm/samples-dev/privateZonesUpdateSample.js +1 -1
- package/dist-esm/samples-dev/recordSetsCreateOrUpdateSample.js +18 -17
- package/dist-esm/samples-dev/recordSetsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/recordSetsDeleteSample.js +7 -7
- package/dist-esm/samples-dev/recordSetsGetSample.js +8 -8
- package/dist-esm/samples-dev/recordSetsListByTypeSample.js +8 -8
- package/dist-esm/samples-dev/recordSetsListSample.js +1 -1
- package/dist-esm/samples-dev/recordSetsUpdateSample.js +8 -8
- package/dist-esm/samples-dev/virtualNetworkLinksCreateOrUpdateSample.js +4 -4
- package/dist-esm/samples-dev/virtualNetworkLinksCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworkLinksDeleteSample.js +1 -1
- package/dist-esm/samples-dev/virtualNetworkLinksGetSample.js +1 -1
- package/dist-esm/samples-dev/virtualNetworkLinksListSample.js +2 -2
- package/dist-esm/samples-dev/virtualNetworkLinksListSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworkLinksUpdateSample.js +5 -4
- package/dist-esm/samples-dev/virtualNetworkLinksUpdateSample.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +18 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +8 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +206 -201
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +50 -50
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/privateZones.d.ts.map +1 -1
- package/dist-esm/src/operations/privateZones.js +61 -61
- package/dist-esm/src/operations/privateZones.js.map +1 -1
- package/dist-esm/src/operations/recordSets.js +50 -50
- package/dist-esm/src/operations/recordSets.js.map +1 -1
- package/dist-esm/src/operations/virtualNetworkLinks.d.ts.map +1 -1
- package/dist-esm/src/operations/virtualNetworkLinks.js +54 -54
- package/dist-esm/src/operations/virtualNetworkLinks.js.map +1 -1
- package/dist-esm/src/privateDnsManagementClient.d.ts.map +1 -1
- package/dist-esm/src/privateDnsManagementClient.js +9 -9
- package/dist-esm/src/privateDnsManagementClient.js.map +1 -1
- package/dist-esm/test/privatedns_operations_test.spec.d.ts.map +1 -1
- package/dist-esm/test/privatedns_operations_test.spec.js +0 -3
- package/dist-esm/test/privatedns_operations_test.spec.js.map +1 -1
- package/package.json +12 -12
- package/review/arm-privatedns.api.md +10 -0
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +22 -2
- package/src/models/mappers.ts +212 -206
- package/src/models/parameters.ts +51 -51
- package/src/operations/privateZones.ts +116 -125
- package/src/operations/recordSets.ts +88 -94
- package/src/operations/virtualNetworkLinks.ts +103 -111
- package/src/operationsInterfaces/privateZones.ts +10 -10
- package/src/operationsInterfaces/recordSets.ts +7 -7
- package/src/operationsInterfaces/virtualNetworkLinks.ts +9 -9
- package/src/pagingHelper.ts +1 -1
- package/src/privateDnsManagementClient.ts +18 -17
- package/types/arm-privatedns.d.ts +20 -0
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
RecordSetsUpdateResponse,
|
|
19
19
|
RecordSetsDeleteOptionalParams,
|
|
20
20
|
RecordSetsGetOptionalParams,
|
|
21
|
-
RecordSetsGetResponse
|
|
21
|
+
RecordSetsGetResponse,
|
|
22
22
|
} from "../models";
|
|
23
23
|
|
|
24
24
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -35,7 +35,7 @@ export interface RecordSets {
|
|
|
35
35
|
resourceGroupName: string,
|
|
36
36
|
privateZoneName: string,
|
|
37
37
|
recordType: RecordType,
|
|
38
|
-
options?: RecordSetsListByTypeOptionalParams
|
|
38
|
+
options?: RecordSetsListByTypeOptionalParams,
|
|
39
39
|
): PagedAsyncIterableIterator<RecordSet>;
|
|
40
40
|
/**
|
|
41
41
|
* Lists all record sets in a Private DNS zone.
|
|
@@ -46,7 +46,7 @@ export interface RecordSets {
|
|
|
46
46
|
list(
|
|
47
47
|
resourceGroupName: string,
|
|
48
48
|
privateZoneName: string,
|
|
49
|
-
options?: RecordSetsListOptionalParams
|
|
49
|
+
options?: RecordSetsListOptionalParams,
|
|
50
50
|
): PagedAsyncIterableIterator<RecordSet>;
|
|
51
51
|
/**
|
|
52
52
|
* Creates or updates a record set within a Private DNS zone.
|
|
@@ -64,7 +64,7 @@ export interface RecordSets {
|
|
|
64
64
|
recordType: RecordType,
|
|
65
65
|
relativeRecordSetName: string,
|
|
66
66
|
parameters: RecordSet,
|
|
67
|
-
options?: RecordSetsCreateOrUpdateOptionalParams
|
|
67
|
+
options?: RecordSetsCreateOrUpdateOptionalParams,
|
|
68
68
|
): Promise<RecordSetsCreateOrUpdateResponse>;
|
|
69
69
|
/**
|
|
70
70
|
* Updates a record set within a Private DNS zone.
|
|
@@ -81,7 +81,7 @@ export interface RecordSets {
|
|
|
81
81
|
recordType: RecordType,
|
|
82
82
|
relativeRecordSetName: string,
|
|
83
83
|
parameters: RecordSet,
|
|
84
|
-
options?: RecordSetsUpdateOptionalParams
|
|
84
|
+
options?: RecordSetsUpdateOptionalParams,
|
|
85
85
|
): Promise<RecordSetsUpdateResponse>;
|
|
86
86
|
/**
|
|
87
87
|
* Deletes a record set from a Private DNS zone. This operation cannot be undone.
|
|
@@ -97,7 +97,7 @@ export interface RecordSets {
|
|
|
97
97
|
privateZoneName: string,
|
|
98
98
|
recordType: RecordType,
|
|
99
99
|
relativeRecordSetName: string,
|
|
100
|
-
options?: RecordSetsDeleteOptionalParams
|
|
100
|
+
options?: RecordSetsDeleteOptionalParams,
|
|
101
101
|
): Promise<void>;
|
|
102
102
|
/**
|
|
103
103
|
* Gets a record set.
|
|
@@ -112,6 +112,6 @@ export interface RecordSets {
|
|
|
112
112
|
privateZoneName: string,
|
|
113
113
|
recordType: RecordType,
|
|
114
114
|
relativeRecordSetName: string,
|
|
115
|
-
options?: RecordSetsGetOptionalParams
|
|
115
|
+
options?: RecordSetsGetOptionalParams,
|
|
116
116
|
): Promise<RecordSetsGetResponse>;
|
|
117
117
|
}
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
VirtualNetworkLinksUpdateResponse,
|
|
18
18
|
VirtualNetworkLinksDeleteOptionalParams,
|
|
19
19
|
VirtualNetworkLinksGetOptionalParams,
|
|
20
|
-
VirtualNetworkLinksGetResponse
|
|
20
|
+
VirtualNetworkLinksGetResponse,
|
|
21
21
|
} from "../models";
|
|
22
22
|
|
|
23
23
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -32,7 +32,7 @@ export interface VirtualNetworkLinks {
|
|
|
32
32
|
list(
|
|
33
33
|
resourceGroupName: string,
|
|
34
34
|
privateZoneName: string,
|
|
35
|
-
options?: VirtualNetworkLinksListOptionalParams
|
|
35
|
+
options?: VirtualNetworkLinksListOptionalParams,
|
|
36
36
|
): PagedAsyncIterableIterator<VirtualNetworkLink>;
|
|
37
37
|
/**
|
|
38
38
|
* Creates or updates a virtual network link to the specified Private DNS zone.
|
|
@@ -47,7 +47,7 @@ export interface VirtualNetworkLinks {
|
|
|
47
47
|
privateZoneName: string,
|
|
48
48
|
virtualNetworkLinkName: string,
|
|
49
49
|
parameters: VirtualNetworkLink,
|
|
50
|
-
options?: VirtualNetworkLinksCreateOrUpdateOptionalParams
|
|
50
|
+
options?: VirtualNetworkLinksCreateOrUpdateOptionalParams,
|
|
51
51
|
): Promise<
|
|
52
52
|
SimplePollerLike<
|
|
53
53
|
OperationState<VirtualNetworkLinksCreateOrUpdateResponse>,
|
|
@@ -67,7 +67,7 @@ export interface VirtualNetworkLinks {
|
|
|
67
67
|
privateZoneName: string,
|
|
68
68
|
virtualNetworkLinkName: string,
|
|
69
69
|
parameters: VirtualNetworkLink,
|
|
70
|
-
options?: VirtualNetworkLinksCreateOrUpdateOptionalParams
|
|
70
|
+
options?: VirtualNetworkLinksCreateOrUpdateOptionalParams,
|
|
71
71
|
): Promise<VirtualNetworkLinksCreateOrUpdateResponse>;
|
|
72
72
|
/**
|
|
73
73
|
* Updates a virtual network link to the specified Private DNS zone.
|
|
@@ -82,7 +82,7 @@ export interface VirtualNetworkLinks {
|
|
|
82
82
|
privateZoneName: string,
|
|
83
83
|
virtualNetworkLinkName: string,
|
|
84
84
|
parameters: VirtualNetworkLink,
|
|
85
|
-
options?: VirtualNetworkLinksUpdateOptionalParams
|
|
85
|
+
options?: VirtualNetworkLinksUpdateOptionalParams,
|
|
86
86
|
): Promise<
|
|
87
87
|
SimplePollerLike<
|
|
88
88
|
OperationState<VirtualNetworkLinksUpdateResponse>,
|
|
@@ -102,7 +102,7 @@ export interface VirtualNetworkLinks {
|
|
|
102
102
|
privateZoneName: string,
|
|
103
103
|
virtualNetworkLinkName: string,
|
|
104
104
|
parameters: VirtualNetworkLink,
|
|
105
|
-
options?: VirtualNetworkLinksUpdateOptionalParams
|
|
105
|
+
options?: VirtualNetworkLinksUpdateOptionalParams,
|
|
106
106
|
): Promise<VirtualNetworkLinksUpdateResponse>;
|
|
107
107
|
/**
|
|
108
108
|
* Deletes a virtual network link to the specified Private DNS zone. WARNING: In case of a registration
|
|
@@ -117,7 +117,7 @@ export interface VirtualNetworkLinks {
|
|
|
117
117
|
resourceGroupName: string,
|
|
118
118
|
privateZoneName: string,
|
|
119
119
|
virtualNetworkLinkName: string,
|
|
120
|
-
options?: VirtualNetworkLinksDeleteOptionalParams
|
|
120
|
+
options?: VirtualNetworkLinksDeleteOptionalParams,
|
|
121
121
|
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
122
122
|
/**
|
|
123
123
|
* Deletes a virtual network link to the specified Private DNS zone. WARNING: In case of a registration
|
|
@@ -132,7 +132,7 @@ export interface VirtualNetworkLinks {
|
|
|
132
132
|
resourceGroupName: string,
|
|
133
133
|
privateZoneName: string,
|
|
134
134
|
virtualNetworkLinkName: string,
|
|
135
|
-
options?: VirtualNetworkLinksDeleteOptionalParams
|
|
135
|
+
options?: VirtualNetworkLinksDeleteOptionalParams,
|
|
136
136
|
): Promise<void>;
|
|
137
137
|
/**
|
|
138
138
|
* Gets a virtual network link to the specified Private DNS zone.
|
|
@@ -145,6 +145,6 @@ export interface VirtualNetworkLinks {
|
|
|
145
145
|
resourceGroupName: string,
|
|
146
146
|
privateZoneName: string,
|
|
147
147
|
virtualNetworkLinkName: string,
|
|
148
|
-
options?: VirtualNetworkLinksGetOptionalParams
|
|
148
|
+
options?: VirtualNetworkLinksGetOptionalParams,
|
|
149
149
|
): Promise<VirtualNetworkLinksGetResponse>;
|
|
150
150
|
}
|
package/src/pagingHelper.ts
CHANGED
|
@@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined {
|
|
|
28
28
|
|
|
29
29
|
export function setContinuationToken(
|
|
30
30
|
page: unknown,
|
|
31
|
-
continuationToken: string | undefined
|
|
31
|
+
continuationToken: string | undefined,
|
|
32
32
|
): void {
|
|
33
33
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
34
34
|
return;
|
|
@@ -11,18 +11,18 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
|
11
11
|
import {
|
|
12
12
|
PipelineRequest,
|
|
13
13
|
PipelineResponse,
|
|
14
|
-
SendRequest
|
|
14
|
+
SendRequest,
|
|
15
15
|
} from "@azure/core-rest-pipeline";
|
|
16
16
|
import * as coreAuth from "@azure/core-auth";
|
|
17
17
|
import {
|
|
18
18
|
PrivateZonesImpl,
|
|
19
19
|
VirtualNetworkLinksImpl,
|
|
20
|
-
RecordSetsImpl
|
|
20
|
+
RecordSetsImpl,
|
|
21
21
|
} from "./operations";
|
|
22
22
|
import {
|
|
23
23
|
PrivateZones,
|
|
24
24
|
VirtualNetworkLinks,
|
|
25
|
-
RecordSets
|
|
25
|
+
RecordSets,
|
|
26
26
|
} from "./operationsInterfaces";
|
|
27
27
|
import { PrivateDnsManagementClientOptionalParams } from "./models";
|
|
28
28
|
|
|
@@ -41,7 +41,7 @@ export class PrivateDnsManagementClient extends coreClient.ServiceClient {
|
|
|
41
41
|
constructor(
|
|
42
42
|
credentials: coreAuth.TokenCredential,
|
|
43
43
|
subscriptionId: string,
|
|
44
|
-
options?: PrivateDnsManagementClientOptionalParams
|
|
44
|
+
options?: PrivateDnsManagementClientOptionalParams,
|
|
45
45
|
) {
|
|
46
46
|
if (credentials === undefined) {
|
|
47
47
|
throw new Error("'credentials' cannot be null");
|
|
@@ -56,10 +56,10 @@ export class PrivateDnsManagementClient extends coreClient.ServiceClient {
|
|
|
56
56
|
}
|
|
57
57
|
const defaults: PrivateDnsManagementClientOptionalParams = {
|
|
58
58
|
requestContentType: "application/json; charset=utf-8",
|
|
59
|
-
credential: credentials
|
|
59
|
+
credential: credentials,
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
const packageDetails = `azsdk-js-arm-privatedns/3.
|
|
62
|
+
const packageDetails = `azsdk-js-arm-privatedns/3.3.0`;
|
|
63
63
|
const userAgentPrefix =
|
|
64
64
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
65
65
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -69,20 +69,21 @@ export class PrivateDnsManagementClient extends coreClient.ServiceClient {
|
|
|
69
69
|
...defaults,
|
|
70
70
|
...options,
|
|
71
71
|
userAgentOptions: {
|
|
72
|
-
userAgentPrefix
|
|
72
|
+
userAgentPrefix,
|
|
73
73
|
},
|
|
74
74
|
endpoint:
|
|
75
|
-
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
75
|
+
options.endpoint ?? options.baseUri ?? "https://management.azure.com",
|
|
76
76
|
};
|
|
77
77
|
super(optionsWithDefaults);
|
|
78
78
|
|
|
79
79
|
let bearerTokenAuthenticationPolicyFound: boolean = false;
|
|
80
80
|
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
81
|
-
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =
|
|
81
|
+
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =
|
|
82
|
+
options.pipeline.getOrderedPolicies();
|
|
82
83
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
83
84
|
(pipelinePolicy) =>
|
|
84
85
|
pipelinePolicy.name ===
|
|
85
|
-
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
86
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
|
86
87
|
);
|
|
87
88
|
}
|
|
88
89
|
if (
|
|
@@ -92,7 +93,7 @@ export class PrivateDnsManagementClient extends coreClient.ServiceClient {
|
|
|
92
93
|
!bearerTokenAuthenticationPolicyFound
|
|
93
94
|
) {
|
|
94
95
|
this.pipeline.removePolicy({
|
|
95
|
-
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
96
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
|
96
97
|
});
|
|
97
98
|
this.pipeline.addPolicy(
|
|
98
99
|
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
@@ -102,9 +103,9 @@ export class PrivateDnsManagementClient extends coreClient.ServiceClient {
|
|
|
102
103
|
`${optionsWithDefaults.endpoint}/.default`,
|
|
103
104
|
challengeCallbacks: {
|
|
104
105
|
authorizeRequestOnChallenge:
|
|
105
|
-
coreClient.authorizeRequestOnClaimChallenge
|
|
106
|
-
}
|
|
107
|
-
})
|
|
106
|
+
coreClient.authorizeRequestOnClaimChallenge,
|
|
107
|
+
},
|
|
108
|
+
}),
|
|
108
109
|
);
|
|
109
110
|
}
|
|
110
111
|
// Parameter assignments
|
|
@@ -112,7 +113,7 @@ export class PrivateDnsManagementClient extends coreClient.ServiceClient {
|
|
|
112
113
|
|
|
113
114
|
// Assigning values to Constant parameters
|
|
114
115
|
this.$host = options.$host || "https://management.azure.com";
|
|
115
|
-
this.apiVersion = options.apiVersion || "
|
|
116
|
+
this.apiVersion = options.apiVersion || "2024-06-01";
|
|
116
117
|
this.privateZones = new PrivateZonesImpl(this);
|
|
117
118
|
this.virtualNetworkLinks = new VirtualNetworkLinksImpl(this);
|
|
118
119
|
this.recordSets = new RecordSetsImpl(this);
|
|
@@ -128,7 +129,7 @@ export class PrivateDnsManagementClient extends coreClient.ServiceClient {
|
|
|
128
129
|
name: "CustomApiVersionPolicy",
|
|
129
130
|
async sendRequest(
|
|
130
131
|
request: PipelineRequest,
|
|
131
|
-
next: SendRequest
|
|
132
|
+
next: SendRequest,
|
|
132
133
|
): Promise<PipelineResponse> {
|
|
133
134
|
const param = request.url.split("?");
|
|
134
135
|
if (param.length > 1) {
|
|
@@ -142,7 +143,7 @@ export class PrivateDnsManagementClient extends coreClient.ServiceClient {
|
|
|
142
143
|
request.url = param[0] + "?" + newParams.join("&");
|
|
143
144
|
}
|
|
144
145
|
return next(request);
|
|
145
|
-
}
|
|
146
|
+
},
|
|
146
147
|
};
|
|
147
148
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
148
149
|
}
|
|
@@ -65,6 +65,14 @@ export declare enum KnownProvisioningState {
|
|
|
65
65
|
Canceled = "Canceled"
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
/** Known values of {@link ResolutionPolicy} that the service accepts. */
|
|
69
|
+
export declare enum KnownResolutionPolicy {
|
|
70
|
+
/** Default */
|
|
71
|
+
Default = "Default",
|
|
72
|
+
/** NxDomainRedirect */
|
|
73
|
+
NxDomainRedirect = "NxDomainRedirect"
|
|
74
|
+
}
|
|
75
|
+
|
|
68
76
|
/** Known values of {@link VirtualNetworkLinkState} that the service accepts. */
|
|
69
77
|
export declare enum KnownVirtualNetworkLinkState {
|
|
70
78
|
/** InProgress */
|
|
@@ -523,6 +531,16 @@ export declare type RecordSetsUpdateResponse = RecordSet;
|
|
|
523
531
|
/** Defines values for RecordType. */
|
|
524
532
|
export declare type RecordType = "A" | "AAAA" | "CNAME" | "MX" | "PTR" | "SOA" | "SRV" | "TXT";
|
|
525
533
|
|
|
534
|
+
/**
|
|
535
|
+
* Defines values for ResolutionPolicy. \
|
|
536
|
+
* {@link KnownResolutionPolicy} can be used interchangeably with ResolutionPolicy,
|
|
537
|
+
* this enum contains the known values that the service supports.
|
|
538
|
+
* ### Known values supported by the service
|
|
539
|
+
* **Default** \
|
|
540
|
+
* **NxDomainRedirect**
|
|
541
|
+
*/
|
|
542
|
+
export declare type ResolutionPolicy = string;
|
|
543
|
+
|
|
526
544
|
/** The core properties of ARM resources */
|
|
527
545
|
export declare interface Resource {
|
|
528
546
|
/**
|
|
@@ -602,6 +620,8 @@ export declare interface VirtualNetworkLink extends TrackedResource {
|
|
|
602
620
|
virtualNetwork?: SubResource;
|
|
603
621
|
/** Is auto-registration of virtual machine records in the virtual network in the Private DNS zone enabled? */
|
|
604
622
|
registrationEnabled?: boolean;
|
|
623
|
+
/** The resolution policy on the virtual network link. Only applicable for virtual network links to privatelink zones, and for A,AAAA,CNAME queries. When set to 'NxDomainRedirect', Azure DNS resolver falls back to public resolution if private dns query resolution results in non-existent domain response. */
|
|
624
|
+
resolutionPolicy?: ResolutionPolicy;
|
|
605
625
|
/**
|
|
606
626
|
* The status of the virtual network link to the Private DNS zone. Possible values are 'InProgress' and 'Done'. This is a read-only property and any attempt to set this value will be ignored.
|
|
607
627
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|