@azure/arm-privatedns 3.1.1-alpha.20230502.1 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -11
- package/LICENSE +1 -1
- package/dist/index.js +81 -73
- 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 +10 -3
- package/dist-esm/samples-dev/privateZonesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateZonesDeleteSample.js +10 -3
- package/dist-esm/samples-dev/privateZonesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateZonesGetSample.js +10 -3
- package/dist-esm/samples-dev/privateZonesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateZonesListByResourceGroupSample.js +10 -3
- package/dist-esm/samples-dev/privateZonesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/privateZonesListSample.js +9 -2
- package/dist-esm/samples-dev/privateZonesListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateZonesUpdateSample.js +10 -3
- package/dist-esm/samples-dev/privateZonesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/recordSetsCreateOrUpdateSample.js +31 -24
- package/dist-esm/samples-dev/recordSetsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/recordSetsDeleteSample.js +28 -21
- package/dist-esm/samples-dev/recordSetsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/recordSetsGetSample.js +31 -24
- package/dist-esm/samples-dev/recordSetsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/recordSetsListByTypeSample.js +31 -24
- package/dist-esm/samples-dev/recordSetsListByTypeSample.js.map +1 -1
- package/dist-esm/samples-dev/recordSetsListSample.js +10 -3
- package/dist-esm/samples-dev/recordSetsListSample.js.map +1 -1
- package/dist-esm/samples-dev/recordSetsUpdateSample.js +31 -24
- package/dist-esm/samples-dev/recordSetsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworkLinksCreateOrUpdateSample.js +10 -3
- package/dist-esm/samples-dev/virtualNetworkLinksCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworkLinksDeleteSample.js +10 -3
- package/dist-esm/samples-dev/virtualNetworkLinksDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworkLinksGetSample.js +10 -3
- package/dist-esm/samples-dev/virtualNetworkLinksGetSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworkLinksListSample.js +10 -3
- package/dist-esm/samples-dev/virtualNetworkLinksListSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworkLinksUpdateSample.js +10 -3
- package/dist-esm/samples-dev/virtualNetworkLinksUpdateSample.js.map +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +0 -14
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/operations/privateZones.d.ts +4 -4
- package/dist-esm/src/operations/privateZones.d.ts.map +1 -1
- package/dist-esm/src/operations/privateZones.js +26 -16
- package/dist-esm/src/operations/privateZones.js.map +1 -1
- package/dist-esm/src/operations/recordSets.js +0 -10
- package/dist-esm/src/operations/recordSets.js.map +1 -1
- package/dist-esm/src/operations/virtualNetworkLinks.d.ts +4 -4
- package/dist-esm/src/operations/virtualNetworkLinks.d.ts.map +1 -1
- package/dist-esm/src/operations/virtualNetworkLinks.js +43 -27
- package/dist-esm/src/operations/virtualNetworkLinks.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/privateZones.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/privateZones.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/virtualNetworkLinks.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/virtualNetworkLinks.d.ts.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +4 -4
- package/dist-esm/src/pagingHelper.js +4 -4
- package/dist-esm/src/privateDnsManagementClient.js +1 -1
- package/dist-esm/test/privatedns_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/privatedns_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/privatedns_operations_test.spec.js +121 -0
- package/dist-esm/test/privatedns_operations_test.spec.js.map +1 -0
- package/package.json +7 -6
- package/review/arm-privatedns.api.md +8 -15
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +5 -24
- package/src/operations/privateZones.ts +41 -33
- package/src/operations/recordSets.ts +0 -10
- package/src/operations/virtualNetworkLinks.ts +46 -32
- package/src/operationsInterfaces/privateZones.ts +6 -6
- package/src/operationsInterfaces/virtualNetworkLinks.ts +6 -6
- package/src/pagingHelper.ts +4 -4
- package/src/privateDnsManagementClient.ts +1 -1
- package/types/arm-privatedns.d.ts +12 -26
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- 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 {
|
|
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 {
|
|
@@ -41,11 +41,11 @@ export declare interface CnameRecord {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
|
-
* Given
|
|
45
|
-
* continuation token that can be used to begin paging from
|
|
44
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
45
|
+
* returns a continuation token that can be used to begin paging from
|
|
46
46
|
* that point later.
|
|
47
|
-
* @param page
|
|
48
|
-
* @returns The continuation token that can be passed into byPage().
|
|
47
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
48
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
49
49
|
*/
|
|
50
50
|
export declare function getContinuationToken(page: unknown): string | undefined;
|
|
51
51
|
|
|
@@ -188,7 +188,7 @@ export declare interface PrivateZones {
|
|
|
188
188
|
* @param parameters Parameters supplied to the CreateOrUpdate operation.
|
|
189
189
|
* @param options The options parameters.
|
|
190
190
|
*/
|
|
191
|
-
beginCreateOrUpdate(resourceGroupName: string, privateZoneName: string, parameters: PrivateZone, options?: PrivateZonesCreateOrUpdateOptionalParams): Promise<
|
|
191
|
+
beginCreateOrUpdate(resourceGroupName: string, privateZoneName: string, parameters: PrivateZone, options?: PrivateZonesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<PrivateZonesCreateOrUpdateResponse>, PrivateZonesCreateOrUpdateResponse>>;
|
|
192
192
|
/**
|
|
193
193
|
* Creates or updates a Private DNS zone. Does not modify Links to virtual networks or DNS records
|
|
194
194
|
* within the zone.
|
|
@@ -205,7 +205,7 @@ export declare interface PrivateZones {
|
|
|
205
205
|
* @param parameters Parameters supplied to the Update operation.
|
|
206
206
|
* @param options The options parameters.
|
|
207
207
|
*/
|
|
208
|
-
beginUpdate(resourceGroupName: string, privateZoneName: string, parameters: PrivateZone, options?: PrivateZonesUpdateOptionalParams): Promise<
|
|
208
|
+
beginUpdate(resourceGroupName: string, privateZoneName: string, parameters: PrivateZone, options?: PrivateZonesUpdateOptionalParams): Promise<SimplePollerLike<OperationState<PrivateZonesUpdateResponse>, PrivateZonesUpdateResponse>>;
|
|
209
209
|
/**
|
|
210
210
|
* Updates a Private DNS zone. Does not modify virtual network links or DNS records within the zone.
|
|
211
211
|
* @param resourceGroupName The name of the resource group.
|
|
@@ -222,7 +222,7 @@ export declare interface PrivateZones {
|
|
|
222
222
|
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
223
223
|
* @param options The options parameters.
|
|
224
224
|
*/
|
|
225
|
-
beginDelete(resourceGroupName: string, privateZoneName: string, options?: PrivateZonesDeleteOptionalParams): Promise<
|
|
225
|
+
beginDelete(resourceGroupName: string, privateZoneName: string, options?: PrivateZonesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
226
226
|
/**
|
|
227
227
|
* Deletes a Private DNS zone. WARNING: All DNS records in the zone will also be deleted. This
|
|
228
228
|
* operation cannot be undone. Private DNS zone cannot be deleted unless all virtual network links to
|
|
@@ -276,8 +276,6 @@ export declare type PrivateZonesGetResponse = PrivateZone;
|
|
|
276
276
|
|
|
277
277
|
/** Optional parameters. */
|
|
278
278
|
export declare interface PrivateZonesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
|
|
279
|
-
/** The maximum number of record sets to return. If not specified, returns up to 100 record sets. */
|
|
280
|
-
top?: number;
|
|
281
279
|
}
|
|
282
280
|
|
|
283
281
|
/** Contains response data for the listByResourceGroupNext operation. */
|
|
@@ -294,8 +292,6 @@ export declare type PrivateZonesListByResourceGroupResponse = PrivateZoneListRes
|
|
|
294
292
|
|
|
295
293
|
/** Optional parameters. */
|
|
296
294
|
export declare interface PrivateZonesListNextOptionalParams extends coreClient.OperationOptions {
|
|
297
|
-
/** The maximum number of Private DNS zones to return. If not specified, returns up to 100 zones. */
|
|
298
|
-
top?: number;
|
|
299
295
|
}
|
|
300
296
|
|
|
301
297
|
/** Contains response data for the listNext operation. */
|
|
@@ -481,10 +477,6 @@ export declare type RecordSetsGetResponse = RecordSet;
|
|
|
481
477
|
|
|
482
478
|
/** Optional parameters. */
|
|
483
479
|
export declare interface RecordSetsListByTypeNextOptionalParams extends coreClient.OperationOptions {
|
|
484
|
-
/** The maximum number of record sets to return. If not specified, returns up to 100 record sets. */
|
|
485
|
-
top?: number;
|
|
486
|
-
/** The suffix label of the record set name to be used to filter the record set enumeration. If this parameter is specified, the returned enumeration will only contain records that end with ".<recordsetnamesuffix>". */
|
|
487
|
-
recordsetnamesuffix?: string;
|
|
488
480
|
}
|
|
489
481
|
|
|
490
482
|
/** Contains response data for the listByTypeNext operation. */
|
|
@@ -503,10 +495,6 @@ export declare type RecordSetsListByTypeResponse = RecordSetListResult;
|
|
|
503
495
|
|
|
504
496
|
/** Optional parameters. */
|
|
505
497
|
export declare interface RecordSetsListNextOptionalParams extends coreClient.OperationOptions {
|
|
506
|
-
/** The maximum number of record sets to return. If not specified, returns up to 100 record sets. */
|
|
507
|
-
top?: number;
|
|
508
|
-
/** The suffix label of the record set name to be used to filter the record set enumeration. If this parameter is specified, the returned enumeration will only contain records that end with ".<recordsetnamesuffix>". */
|
|
509
|
-
recordsetnamesuffix?: string;
|
|
510
498
|
}
|
|
511
499
|
|
|
512
500
|
/** Contains response data for the listNext operation. */
|
|
@@ -654,7 +642,7 @@ export declare interface VirtualNetworkLinks {
|
|
|
654
642
|
* @param parameters Parameters supplied to the CreateOrUpdate operation.
|
|
655
643
|
* @param options The options parameters.
|
|
656
644
|
*/
|
|
657
|
-
beginCreateOrUpdate(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, parameters: VirtualNetworkLink, options?: VirtualNetworkLinksCreateOrUpdateOptionalParams): Promise<
|
|
645
|
+
beginCreateOrUpdate(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, parameters: VirtualNetworkLink, options?: VirtualNetworkLinksCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<VirtualNetworkLinksCreateOrUpdateResponse>, VirtualNetworkLinksCreateOrUpdateResponse>>;
|
|
658
646
|
/**
|
|
659
647
|
* Creates or updates a virtual network link to the specified Private DNS zone.
|
|
660
648
|
* @param resourceGroupName The name of the resource group.
|
|
@@ -672,7 +660,7 @@ export declare interface VirtualNetworkLinks {
|
|
|
672
660
|
* @param parameters Parameters supplied to the Update operation.
|
|
673
661
|
* @param options The options parameters.
|
|
674
662
|
*/
|
|
675
|
-
beginUpdate(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, parameters: VirtualNetworkLink, options?: VirtualNetworkLinksUpdateOptionalParams): Promise<
|
|
663
|
+
beginUpdate(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, parameters: VirtualNetworkLink, options?: VirtualNetworkLinksUpdateOptionalParams): Promise<SimplePollerLike<OperationState<VirtualNetworkLinksUpdateResponse>, VirtualNetworkLinksUpdateResponse>>;
|
|
676
664
|
/**
|
|
677
665
|
* Updates a virtual network link to the specified Private DNS zone.
|
|
678
666
|
* @param resourceGroupName The name of the resource group.
|
|
@@ -691,7 +679,7 @@ export declare interface VirtualNetworkLinks {
|
|
|
691
679
|
* @param virtualNetworkLinkName The name of the virtual network link.
|
|
692
680
|
* @param options The options parameters.
|
|
693
681
|
*/
|
|
694
|
-
beginDelete(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, options?: VirtualNetworkLinksDeleteOptionalParams): Promise<
|
|
682
|
+
beginDelete(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, options?: VirtualNetworkLinksDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
695
683
|
/**
|
|
696
684
|
* Deletes a virtual network link to the specified Private DNS zone. WARNING: In case of a registration
|
|
697
685
|
* virtual network, all auto-registered DNS records in the zone for the virtual network will also be
|
|
@@ -746,8 +734,6 @@ export declare type VirtualNetworkLinksGetResponse = VirtualNetworkLink;
|
|
|
746
734
|
|
|
747
735
|
/** Optional parameters. */
|
|
748
736
|
export declare interface VirtualNetworkLinksListNextOptionalParams extends coreClient.OperationOptions {
|
|
749
|
-
/** The maximum number of virtual network links to return. If not specified, returns up to 100 virtual network links. */
|
|
750
|
-
top?: number;
|
|
751
737
|
}
|
|
752
738
|
|
|
753
739
|
/** Contains response data for the listNext operation. */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sampleTest.d.ts","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":""}
|
|
@@ -1,38 +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
|
-
};
|
|
19
|
-
describe("My test", () => {
|
|
20
|
-
let recorder;
|
|
21
|
-
beforeEach(function () {
|
|
22
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
recorder = new Recorder(this.currentTest);
|
|
24
|
-
yield recorder.start(recorderOptions);
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
afterEach(function () {
|
|
28
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
-
yield recorder.stop();
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
it("sample test", function () {
|
|
33
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
console.log("Hi, I'm a test!");
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
//# 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;CAC1C,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"}
|