@azure/arm-privatedns 3.3.1-alpha.20250218.1 → 3.3.1-alpha.20250220.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/README.md +21 -12
- package/dist/browser/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/lroImpl.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
- package/dist/browser/models/parameters.js.map +1 -0
- package/dist/browser/operations/index.d.ts +4 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operations/index.js +3 -3
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/privateZones.d.ts +3 -3
- package/dist/browser/operations/privateZones.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/privateZones.js +113 -125
- package/dist/browser/operations/privateZones.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/recordSets.d.ts +3 -3
- package/dist/browser/operations/recordSets.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/recordSets.js +3 -3
- package/dist/browser/operations/recordSets.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/virtualNetworkLinks.d.ts +3 -3
- package/dist/browser/operations/virtualNetworkLinks.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/virtualNetworkLinks.js +127 -139
- package/dist/browser/operations/virtualNetworkLinks.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +4 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +3 -3
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/privateZones.d.ts +1 -1
- package/dist/browser/operationsInterfaces/privateZones.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/privateZones.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/recordSets.d.ts +1 -1
- package/dist/browser/operationsInterfaces/recordSets.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/recordSets.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/virtualNetworkLinks.d.ts +1 -1
- package/dist/browser/operationsInterfaces/virtualNetworkLinks.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/virtualNetworkLinks.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/{dist-esm/src → dist/browser}/privateDnsManagementClient.d.ts +2 -2
- package/dist/browser/privateDnsManagementClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/privateDnsManagementClient.js +15 -18
- package/dist/browser/privateDnsManagementClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/lroImpl.d.ts +11 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +17 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +483 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +43 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +22 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +603 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +20 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +177 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +4 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +14 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/privateZones.d.ts +114 -0
- package/dist/commonjs/operations/privateZones.d.ts.map +1 -0
- package/dist/commonjs/operations/privateZones.js +551 -0
- package/dist/commonjs/operations/privateZones.js.map +1 -0
- package/dist/commonjs/operations/recordSets.d.ts +105 -0
- package/dist/commonjs/operations/recordSets.d.ts.map +1 -0
- package/dist/commonjs/operations/recordSets.js +472 -0
- package/dist/commonjs/operations/recordSets.js.map +1 -0
- package/dist/commonjs/operations/virtualNetworkLinks.d.ts +103 -0
- package/dist/commonjs/operations/virtualNetworkLinks.d.ts.map +1 -0
- package/dist/commonjs/operations/virtualNetworkLinks.js +470 -0
- package/dist/commonjs/operations/virtualNetworkLinks.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +4 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +14 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/privateZones.d.ts +78 -0
- package/dist/commonjs/operationsInterfaces/privateZones.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/privateZones.js +10 -0
- package/dist/commonjs/operationsInterfaces/privateZones.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/recordSets.d.ts +61 -0
- package/dist/commonjs/operationsInterfaces/recordSets.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/recordSets.js +10 -0
- package/dist/commonjs/operationsInterfaces/recordSets.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/virtualNetworkLinks.d.ts +78 -0
- package/dist/commonjs/operationsInterfaces/virtualNetworkLinks.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/virtualNetworkLinks.js +10 -0
- package/dist/commonjs/operationsInterfaces/virtualNetworkLinks.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +36 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/dist/commonjs/privateDnsManagementClient.d.ts +23 -0
- package/dist/commonjs/privateDnsManagementClient.d.ts.map +1 -0
- package/dist/commonjs/privateDnsManagementClient.js +105 -0
- package/dist/commonjs/privateDnsManagementClient.js.map +1 -0
- package/{types → dist/commonjs}/tsdoc-metadata.json +1 -1
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lroImpl.d.ts +11 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +14 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +483 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +40 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +22 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +600 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +20 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +174 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/index.d.ts +4 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +11 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/privateZones.d.ts +114 -0
- package/dist/esm/operations/privateZones.d.ts.map +1 -0
- package/dist/esm/operations/privateZones.js +547 -0
- package/dist/esm/operations/privateZones.js.map +1 -0
- package/dist/esm/operations/recordSets.d.ts +105 -0
- package/dist/esm/operations/recordSets.d.ts.map +1 -0
- package/dist/esm/operations/recordSets.js +468 -0
- package/dist/esm/operations/recordSets.js.map +1 -0
- package/dist/esm/operations/virtualNetworkLinks.d.ts +103 -0
- package/dist/esm/operations/virtualNetworkLinks.d.ts.map +1 -0
- package/dist/esm/operations/virtualNetworkLinks.js +466 -0
- package/dist/esm/operations/virtualNetworkLinks.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +4 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +11 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/privateZones.d.ts +78 -0
- package/dist/esm/operationsInterfaces/privateZones.d.ts.map +1 -0
- package/{src/operations/index.ts → dist/esm/operationsInterfaces/privateZones.js} +2 -4
- package/dist/esm/operationsInterfaces/privateZones.js.map +1 -0
- package/dist/esm/operationsInterfaces/recordSets.d.ts +61 -0
- package/dist/esm/operationsInterfaces/recordSets.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/recordSets.js +9 -0
- package/dist/esm/operationsInterfaces/recordSets.js.map +1 -0
- package/dist/esm/operationsInterfaces/virtualNetworkLinks.d.ts +78 -0
- package/dist/esm/operationsInterfaces/virtualNetworkLinks.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/virtualNetworkLinks.js +9 -0
- package/dist/esm/operationsInterfaces/virtualNetworkLinks.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +32 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/esm/privateDnsManagementClient.d.ts +23 -0
- package/dist/esm/privateDnsManagementClient.d.ts.map +1 -0
- package/dist/esm/privateDnsManagementClient.js +100 -0
- package/dist/esm/privateDnsManagementClient.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/lroImpl.d.ts +11 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +14 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +483 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +40 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +22 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +600 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +20 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +174 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +4 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +11 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/privateZones.d.ts +114 -0
- package/dist/react-native/operations/privateZones.d.ts.map +1 -0
- package/dist/react-native/operations/privateZones.js +547 -0
- package/dist/react-native/operations/privateZones.js.map +1 -0
- package/dist/react-native/operations/recordSets.d.ts +105 -0
- package/dist/react-native/operations/recordSets.d.ts.map +1 -0
- package/dist/react-native/operations/recordSets.js +468 -0
- package/dist/react-native/operations/recordSets.js.map +1 -0
- package/dist/react-native/operations/virtualNetworkLinks.d.ts +103 -0
- package/dist/react-native/operations/virtualNetworkLinks.d.ts.map +1 -0
- package/dist/react-native/operations/virtualNetworkLinks.js +466 -0
- package/dist/react-native/operations/virtualNetworkLinks.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +4 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +11 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/privateZones.d.ts +78 -0
- package/dist/react-native/operationsInterfaces/privateZones.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/privateZones.js +9 -0
- package/dist/react-native/operationsInterfaces/privateZones.js.map +1 -0
- package/dist/react-native/operationsInterfaces/recordSets.d.ts +61 -0
- package/dist/react-native/operationsInterfaces/recordSets.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/recordSets.js +9 -0
- package/dist/react-native/operationsInterfaces/recordSets.js.map +1 -0
- package/dist/react-native/operationsInterfaces/virtualNetworkLinks.d.ts +78 -0
- package/dist/react-native/operationsInterfaces/virtualNetworkLinks.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/virtualNetworkLinks.js +9 -0
- package/dist/react-native/operationsInterfaces/virtualNetworkLinks.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +32 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/dist/react-native/privateDnsManagementClient.d.ts +23 -0
- package/dist/react-native/privateDnsManagementClient.d.ts.map +1 -0
- package/dist/react-native/privateDnsManagementClient.js +100 -0
- package/dist/react-native/privateDnsManagementClient.js.map +1 -0
- package/package.json +66 -36
- package/dist/index.js +0 -2499
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/privateZonesCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateZonesCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateZonesCreateOrUpdateSample.js +0 -33
- package/dist-esm/samples-dev/privateZonesCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/privateZonesDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateZonesDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateZonesDeleteSample.js +0 -36
- package/dist-esm/samples-dev/privateZonesDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/privateZonesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateZonesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateZonesGetSample.js +0 -36
- package/dist-esm/samples-dev/privateZonesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/privateZonesListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateZonesListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateZonesListByResourceGroupSample.js +0 -51
- package/dist-esm/samples-dev/privateZonesListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/privateZonesListSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateZonesListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateZonesListSample.js +0 -50
- package/dist-esm/samples-dev/privateZonesListSample.js.map +0 -1
- package/dist-esm/samples-dev/privateZonesUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateZonesUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateZonesUpdateSample.js +0 -30
- package/dist-esm/samples-dev/privateZonesUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/recordSetsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/recordSetsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/recordSetsCreateOrUpdateSample.js +0 -219
- package/dist-esm/samples-dev/recordSetsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/recordSetsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/recordSetsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/recordSetsDeleteSample.js +0 -158
- package/dist-esm/samples-dev/recordSetsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/recordSetsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/recordSetsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/recordSetsGetSample.js +0 -178
- package/dist-esm/samples-dev/recordSetsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/recordSetsListByTypeSample.d.ts +0 -2
- package/dist-esm/samples-dev/recordSetsListByTypeSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/recordSetsListByTypeSample.js +0 -298
- package/dist-esm/samples-dev/recordSetsListByTypeSample.js.map +0 -1
- package/dist-esm/samples-dev/recordSetsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/recordSetsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/recordSetsListSample.js +0 -52
- package/dist-esm/samples-dev/recordSetsListSample.js.map +0 -1
- package/dist-esm/samples-dev/recordSetsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/recordSetsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/recordSetsUpdateSample.js +0 -179
- package/dist-esm/samples-dev/recordSetsUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/virtualNetworkLinksCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/virtualNetworkLinksCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/virtualNetworkLinksCreateOrUpdateSample.js +0 -38
- package/dist-esm/samples-dev/virtualNetworkLinksCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/virtualNetworkLinksDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/virtualNetworkLinksDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/virtualNetworkLinksDeleteSample.js +0 -37
- package/dist-esm/samples-dev/virtualNetworkLinksDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/virtualNetworkLinksGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/virtualNetworkLinksGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/virtualNetworkLinksGetSample.js +0 -37
- package/dist-esm/samples-dev/virtualNetworkLinksGetSample.js.map +0 -1
- package/dist-esm/samples-dev/virtualNetworkLinksListSample.d.ts +0 -2
- package/dist-esm/samples-dev/virtualNetworkLinksListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/virtualNetworkLinksListSample.js +0 -52
- package/dist-esm/samples-dev/virtualNetworkLinksListSample.js.map +0 -1
- package/dist-esm/samples-dev/virtualNetworkLinksUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/virtualNetworkLinksUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/virtualNetworkLinksUpdateSample.js +0 -35
- package/dist-esm/samples-dev/virtualNetworkLinksUpdateSample.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/lroImpl.js.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -4
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/privateZones.d.ts.map +0 -1
- package/dist-esm/src/operations/privateZones.js.map +0 -1
- package/dist-esm/src/operations/recordSets.d.ts.map +0 -1
- package/dist-esm/src/operations/recordSets.js.map +0 -1
- package/dist-esm/src/operations/virtualNetworkLinks.d.ts.map +0 -1
- package/dist-esm/src/operations/virtualNetworkLinks.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -4
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/privateZones.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/privateZones.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/recordSets.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/recordSets.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/virtualNetworkLinks.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/virtualNetworkLinks.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/src/privateDnsManagementClient.d.ts.map +0 -1
- package/dist-esm/src/privateDnsManagementClient.js.map +0 -1
- package/dist-esm/test/privatedns_operations_test.spec.d.ts +0 -4
- package/dist-esm/test/privatedns_operations_test.spec.d.ts.map +0 -1
- package/dist-esm/test/privatedns_operations_test.spec.js +0 -112
- package/dist-esm/test/privatedns_operations_test.spec.js.map +0 -1
- package/src/lroImpl.ts +0 -38
- package/src/models/index.ts +0 -576
- package/src/models/mappers.ts +0 -663
- package/src/models/parameters.ts +0 -201
- package/src/operations/privateZones.ts +0 -720
- package/src/operations/recordSets.ts +0 -617
- package/src/operations/virtualNetworkLinks.ts +0 -654
- package/src/operationsInterfaces/index.ts +0 -11
- package/src/operationsInterfaces/privateZones.ts +0 -145
- package/src/operationsInterfaces/recordSets.ts +0 -117
- package/src/operationsInterfaces/virtualNetworkLinks.ts +0 -150
- package/src/pagingHelper.ts +0 -39
- package/src/privateDnsManagementClient.ts +0 -154
- package/tsconfig.json +0 -33
- package/types/arm-privatedns.d.ts +0 -794
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/lroImpl.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/privateZones.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/recordSets.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/virtualNetworkLinks.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
|
@@ -0,0 +1,547 @@
|
|
|
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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers.js";
|
|
12
|
+
import * as Parameters from "../models/parameters.js";
|
|
13
|
+
import { createHttpPoller, } from "@azure/core-lro";
|
|
14
|
+
import { createLroSpec } from "../lroImpl.js";
|
|
15
|
+
/// <reference lib="esnext.asynciterable" />
|
|
16
|
+
/** Class containing PrivateZones operations. */
|
|
17
|
+
export class PrivateZonesImpl {
|
|
18
|
+
/**
|
|
19
|
+
* Initialize a new instance of the class PrivateZones class.
|
|
20
|
+
* @param client Reference to the service client
|
|
21
|
+
*/
|
|
22
|
+
constructor(client) {
|
|
23
|
+
this.client = client;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Lists the Private DNS zones in all resource groups in a subscription.
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
list(options) {
|
|
30
|
+
const iter = this.listPagingAll(options);
|
|
31
|
+
return {
|
|
32
|
+
next() {
|
|
33
|
+
return iter.next();
|
|
34
|
+
},
|
|
35
|
+
[Symbol.asyncIterator]() {
|
|
36
|
+
return this;
|
|
37
|
+
},
|
|
38
|
+
byPage: (settings) => {
|
|
39
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
40
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
|
+
}
|
|
42
|
+
return this.listPagingPage(options, settings);
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
listPagingPage(options, settings) {
|
|
47
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = yield __await(this._list(options));
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield yield __await(page);
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = yield __await(this._listNext(continuationToken, options));
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield yield __await(page);
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
listPagingAll(options) {
|
|
67
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
68
|
+
var _a, e_1, _b, _c;
|
|
69
|
+
try {
|
|
70
|
+
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
+
_c = _f.value;
|
|
72
|
+
_d = false;
|
|
73
|
+
const page = _c;
|
|
74
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
+
finally {
|
|
79
|
+
try {
|
|
80
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
+
}
|
|
82
|
+
finally { if (e_1) throw e_1.error; }
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Lists the Private DNS zones within a resource group.
|
|
88
|
+
* @param resourceGroupName The name of the resource group.
|
|
89
|
+
* @param options The options parameters.
|
|
90
|
+
*/
|
|
91
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
92
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
93
|
+
return {
|
|
94
|
+
next() {
|
|
95
|
+
return iter.next();
|
|
96
|
+
},
|
|
97
|
+
[Symbol.asyncIterator]() {
|
|
98
|
+
return this;
|
|
99
|
+
},
|
|
100
|
+
byPage: (settings) => {
|
|
101
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
102
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
103
|
+
}
|
|
104
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
105
|
+
},
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
109
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
110
|
+
let result;
|
|
111
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
112
|
+
if (!continuationToken) {
|
|
113
|
+
result = yield __await(this._listByResourceGroup(resourceGroupName, options));
|
|
114
|
+
let page = result.value || [];
|
|
115
|
+
continuationToken = result.nextLink;
|
|
116
|
+
setContinuationToken(page, continuationToken);
|
|
117
|
+
yield yield __await(page);
|
|
118
|
+
}
|
|
119
|
+
while (continuationToken) {
|
|
120
|
+
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
121
|
+
continuationToken = result.nextLink;
|
|
122
|
+
let page = result.value || [];
|
|
123
|
+
setContinuationToken(page, continuationToken);
|
|
124
|
+
yield yield __await(page);
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
129
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
130
|
+
var _a, e_2, _b, _c;
|
|
131
|
+
try {
|
|
132
|
+
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
133
|
+
_c = _f.value;
|
|
134
|
+
_d = false;
|
|
135
|
+
const page = _c;
|
|
136
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
140
|
+
finally {
|
|
141
|
+
try {
|
|
142
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
143
|
+
}
|
|
144
|
+
finally { if (e_2) throw e_2.error; }
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Creates or updates a Private DNS zone. Does not modify Links to virtual networks or DNS records
|
|
150
|
+
* within the zone.
|
|
151
|
+
* @param resourceGroupName The name of the resource group.
|
|
152
|
+
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
153
|
+
* @param parameters Parameters supplied to the CreateOrUpdate operation.
|
|
154
|
+
* @param options The options parameters.
|
|
155
|
+
*/
|
|
156
|
+
async beginCreateOrUpdate(resourceGroupName, privateZoneName, parameters, options) {
|
|
157
|
+
const directSendOperation = async (args, spec) => {
|
|
158
|
+
return this.client.sendOperationRequest(args, spec);
|
|
159
|
+
};
|
|
160
|
+
const sendOperationFn = async (args, spec) => {
|
|
161
|
+
var _a;
|
|
162
|
+
let currentRawResponse = undefined;
|
|
163
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
164
|
+
const callback = (rawResponse, flatResponse) => {
|
|
165
|
+
currentRawResponse = rawResponse;
|
|
166
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
167
|
+
};
|
|
168
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
169
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
170
|
+
return {
|
|
171
|
+
flatResponse,
|
|
172
|
+
rawResponse: {
|
|
173
|
+
statusCode: currentRawResponse.status,
|
|
174
|
+
body: currentRawResponse.parsedBody,
|
|
175
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
176
|
+
},
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
const lro = createLroSpec({
|
|
180
|
+
sendOperationFn,
|
|
181
|
+
args: { resourceGroupName, privateZoneName, parameters, options },
|
|
182
|
+
spec: createOrUpdateOperationSpec,
|
|
183
|
+
});
|
|
184
|
+
const poller = await createHttpPoller(lro, {
|
|
185
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
186
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
187
|
+
});
|
|
188
|
+
await poller.poll();
|
|
189
|
+
return poller;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Creates or updates a Private DNS zone. Does not modify Links to virtual networks or DNS records
|
|
193
|
+
* within the zone.
|
|
194
|
+
* @param resourceGroupName The name of the resource group.
|
|
195
|
+
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
196
|
+
* @param parameters Parameters supplied to the CreateOrUpdate operation.
|
|
197
|
+
* @param options The options parameters.
|
|
198
|
+
*/
|
|
199
|
+
async beginCreateOrUpdateAndWait(resourceGroupName, privateZoneName, parameters, options) {
|
|
200
|
+
const poller = await this.beginCreateOrUpdate(resourceGroupName, privateZoneName, parameters, options);
|
|
201
|
+
return poller.pollUntilDone();
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Updates a Private DNS zone. Does not modify virtual network links or DNS records within the zone.
|
|
205
|
+
* @param resourceGroupName The name of the resource group.
|
|
206
|
+
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
207
|
+
* @param parameters Parameters supplied to the Update operation.
|
|
208
|
+
* @param options The options parameters.
|
|
209
|
+
*/
|
|
210
|
+
async beginUpdate(resourceGroupName, privateZoneName, parameters, options) {
|
|
211
|
+
const directSendOperation = async (args, spec) => {
|
|
212
|
+
return this.client.sendOperationRequest(args, spec);
|
|
213
|
+
};
|
|
214
|
+
const sendOperationFn = async (args, spec) => {
|
|
215
|
+
var _a;
|
|
216
|
+
let currentRawResponse = undefined;
|
|
217
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
218
|
+
const callback = (rawResponse, flatResponse) => {
|
|
219
|
+
currentRawResponse = rawResponse;
|
|
220
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
221
|
+
};
|
|
222
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
223
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
224
|
+
return {
|
|
225
|
+
flatResponse,
|
|
226
|
+
rawResponse: {
|
|
227
|
+
statusCode: currentRawResponse.status,
|
|
228
|
+
body: currentRawResponse.parsedBody,
|
|
229
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
230
|
+
},
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
const lro = createLroSpec({
|
|
234
|
+
sendOperationFn,
|
|
235
|
+
args: { resourceGroupName, privateZoneName, parameters, options },
|
|
236
|
+
spec: updateOperationSpec,
|
|
237
|
+
});
|
|
238
|
+
const poller = await createHttpPoller(lro, {
|
|
239
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
240
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
241
|
+
});
|
|
242
|
+
await poller.poll();
|
|
243
|
+
return poller;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Updates a Private DNS zone. Does not modify virtual network links or DNS records within the zone.
|
|
247
|
+
* @param resourceGroupName The name of the resource group.
|
|
248
|
+
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
249
|
+
* @param parameters Parameters supplied to the Update operation.
|
|
250
|
+
* @param options The options parameters.
|
|
251
|
+
*/
|
|
252
|
+
async beginUpdateAndWait(resourceGroupName, privateZoneName, parameters, options) {
|
|
253
|
+
const poller = await this.beginUpdate(resourceGroupName, privateZoneName, parameters, options);
|
|
254
|
+
return poller.pollUntilDone();
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Deletes a Private DNS zone. WARNING: All DNS records in the zone will also be deleted. This
|
|
258
|
+
* operation cannot be undone. Private DNS zone cannot be deleted unless all virtual network links to
|
|
259
|
+
* it are removed.
|
|
260
|
+
* @param resourceGroupName The name of the resource group.
|
|
261
|
+
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
262
|
+
* @param options The options parameters.
|
|
263
|
+
*/
|
|
264
|
+
async beginDelete(resourceGroupName, privateZoneName, options) {
|
|
265
|
+
const directSendOperation = async (args, spec) => {
|
|
266
|
+
return this.client.sendOperationRequest(args, spec);
|
|
267
|
+
};
|
|
268
|
+
const sendOperationFn = async (args, spec) => {
|
|
269
|
+
var _a;
|
|
270
|
+
let currentRawResponse = undefined;
|
|
271
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
272
|
+
const callback = (rawResponse, flatResponse) => {
|
|
273
|
+
currentRawResponse = rawResponse;
|
|
274
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
275
|
+
};
|
|
276
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
277
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
278
|
+
return {
|
|
279
|
+
flatResponse,
|
|
280
|
+
rawResponse: {
|
|
281
|
+
statusCode: currentRawResponse.status,
|
|
282
|
+
body: currentRawResponse.parsedBody,
|
|
283
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
284
|
+
},
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
const lro = createLroSpec({
|
|
288
|
+
sendOperationFn,
|
|
289
|
+
args: { resourceGroupName, privateZoneName, options },
|
|
290
|
+
spec: deleteOperationSpec,
|
|
291
|
+
});
|
|
292
|
+
const poller = await createHttpPoller(lro, {
|
|
293
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
294
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
295
|
+
});
|
|
296
|
+
await poller.poll();
|
|
297
|
+
return poller;
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Deletes a Private DNS zone. WARNING: All DNS records in the zone will also be deleted. This
|
|
301
|
+
* operation cannot be undone. Private DNS zone cannot be deleted unless all virtual network links to
|
|
302
|
+
* it are removed.
|
|
303
|
+
* @param resourceGroupName The name of the resource group.
|
|
304
|
+
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
305
|
+
* @param options The options parameters.
|
|
306
|
+
*/
|
|
307
|
+
async beginDeleteAndWait(resourceGroupName, privateZoneName, options) {
|
|
308
|
+
const poller = await this.beginDelete(resourceGroupName, privateZoneName, options);
|
|
309
|
+
return poller.pollUntilDone();
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Gets a Private DNS zone. Retrieves the zone properties, but not the virtual networks links or the
|
|
313
|
+
* record sets within the zone.
|
|
314
|
+
* @param resourceGroupName The name of the resource group.
|
|
315
|
+
* @param privateZoneName The name of the Private DNS zone (without a terminating dot).
|
|
316
|
+
* @param options The options parameters.
|
|
317
|
+
*/
|
|
318
|
+
get(resourceGroupName, privateZoneName, options) {
|
|
319
|
+
return this.client.sendOperationRequest({ resourceGroupName, privateZoneName, options }, getOperationSpec);
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Lists the Private DNS zones in all resource groups in a subscription.
|
|
323
|
+
* @param options The options parameters.
|
|
324
|
+
*/
|
|
325
|
+
_list(options) {
|
|
326
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Lists the Private DNS zones within a resource group.
|
|
330
|
+
* @param resourceGroupName The name of the resource group.
|
|
331
|
+
* @param options The options parameters.
|
|
332
|
+
*/
|
|
333
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
334
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* ListNext
|
|
338
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
339
|
+
* @param options The options parameters.
|
|
340
|
+
*/
|
|
341
|
+
_listNext(nextLink, options) {
|
|
342
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* ListByResourceGroupNext
|
|
346
|
+
* @param resourceGroupName The name of the resource group.
|
|
347
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
348
|
+
* @param options The options parameters.
|
|
349
|
+
*/
|
|
350
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
351
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
// Operation Specifications
|
|
355
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
356
|
+
const createOrUpdateOperationSpec = {
|
|
357
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}",
|
|
358
|
+
httpMethod: "PUT",
|
|
359
|
+
responses: {
|
|
360
|
+
200: {
|
|
361
|
+
bodyMapper: Mappers.PrivateZone,
|
|
362
|
+
},
|
|
363
|
+
201: {
|
|
364
|
+
bodyMapper: Mappers.PrivateZone,
|
|
365
|
+
},
|
|
366
|
+
202: {
|
|
367
|
+
bodyMapper: Mappers.PrivateZone,
|
|
368
|
+
},
|
|
369
|
+
204: {
|
|
370
|
+
bodyMapper: Mappers.PrivateZone,
|
|
371
|
+
},
|
|
372
|
+
default: {
|
|
373
|
+
bodyMapper: Mappers.CloudError,
|
|
374
|
+
},
|
|
375
|
+
},
|
|
376
|
+
requestBody: Parameters.parameters,
|
|
377
|
+
queryParameters: [Parameters.apiVersion],
|
|
378
|
+
urlParameters: [
|
|
379
|
+
Parameters.$host,
|
|
380
|
+
Parameters.resourceGroupName,
|
|
381
|
+
Parameters.privateZoneName,
|
|
382
|
+
Parameters.subscriptionId,
|
|
383
|
+
],
|
|
384
|
+
headerParameters: [
|
|
385
|
+
Parameters.contentType,
|
|
386
|
+
Parameters.accept,
|
|
387
|
+
Parameters.ifMatch,
|
|
388
|
+
Parameters.ifNoneMatch,
|
|
389
|
+
],
|
|
390
|
+
mediaType: "json",
|
|
391
|
+
serializer,
|
|
392
|
+
};
|
|
393
|
+
const updateOperationSpec = {
|
|
394
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}",
|
|
395
|
+
httpMethod: "PATCH",
|
|
396
|
+
responses: {
|
|
397
|
+
200: {
|
|
398
|
+
bodyMapper: Mappers.PrivateZone,
|
|
399
|
+
},
|
|
400
|
+
201: {
|
|
401
|
+
bodyMapper: Mappers.PrivateZone,
|
|
402
|
+
},
|
|
403
|
+
202: {
|
|
404
|
+
bodyMapper: Mappers.PrivateZone,
|
|
405
|
+
},
|
|
406
|
+
204: {
|
|
407
|
+
bodyMapper: Mappers.PrivateZone,
|
|
408
|
+
},
|
|
409
|
+
default: {
|
|
410
|
+
bodyMapper: Mappers.CloudError,
|
|
411
|
+
},
|
|
412
|
+
},
|
|
413
|
+
requestBody: Parameters.parameters,
|
|
414
|
+
queryParameters: [Parameters.apiVersion],
|
|
415
|
+
urlParameters: [
|
|
416
|
+
Parameters.$host,
|
|
417
|
+
Parameters.resourceGroupName,
|
|
418
|
+
Parameters.privateZoneName,
|
|
419
|
+
Parameters.subscriptionId,
|
|
420
|
+
],
|
|
421
|
+
headerParameters: [
|
|
422
|
+
Parameters.contentType,
|
|
423
|
+
Parameters.accept,
|
|
424
|
+
Parameters.ifMatch,
|
|
425
|
+
],
|
|
426
|
+
mediaType: "json",
|
|
427
|
+
serializer,
|
|
428
|
+
};
|
|
429
|
+
const deleteOperationSpec = {
|
|
430
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}",
|
|
431
|
+
httpMethod: "DELETE",
|
|
432
|
+
responses: {
|
|
433
|
+
200: {},
|
|
434
|
+
201: {},
|
|
435
|
+
202: {},
|
|
436
|
+
204: {},
|
|
437
|
+
default: {
|
|
438
|
+
bodyMapper: Mappers.CloudError,
|
|
439
|
+
},
|
|
440
|
+
},
|
|
441
|
+
queryParameters: [Parameters.apiVersion],
|
|
442
|
+
urlParameters: [
|
|
443
|
+
Parameters.$host,
|
|
444
|
+
Parameters.resourceGroupName,
|
|
445
|
+
Parameters.privateZoneName,
|
|
446
|
+
Parameters.subscriptionId,
|
|
447
|
+
],
|
|
448
|
+
headerParameters: [Parameters.accept, Parameters.ifMatch],
|
|
449
|
+
serializer,
|
|
450
|
+
};
|
|
451
|
+
const getOperationSpec = {
|
|
452
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}",
|
|
453
|
+
httpMethod: "GET",
|
|
454
|
+
responses: {
|
|
455
|
+
200: {
|
|
456
|
+
bodyMapper: Mappers.PrivateZone,
|
|
457
|
+
},
|
|
458
|
+
default: {
|
|
459
|
+
bodyMapper: Mappers.CloudError,
|
|
460
|
+
},
|
|
461
|
+
},
|
|
462
|
+
queryParameters: [Parameters.apiVersion],
|
|
463
|
+
urlParameters: [
|
|
464
|
+
Parameters.$host,
|
|
465
|
+
Parameters.resourceGroupName,
|
|
466
|
+
Parameters.privateZoneName,
|
|
467
|
+
Parameters.subscriptionId,
|
|
468
|
+
],
|
|
469
|
+
headerParameters: [Parameters.accept],
|
|
470
|
+
serializer,
|
|
471
|
+
};
|
|
472
|
+
const listOperationSpec = {
|
|
473
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/privateDnsZones",
|
|
474
|
+
httpMethod: "GET",
|
|
475
|
+
responses: {
|
|
476
|
+
200: {
|
|
477
|
+
bodyMapper: Mappers.PrivateZoneListResult,
|
|
478
|
+
},
|
|
479
|
+
default: {
|
|
480
|
+
bodyMapper: Mappers.CloudError,
|
|
481
|
+
},
|
|
482
|
+
},
|
|
483
|
+
queryParameters: [Parameters.apiVersion, Parameters.top],
|
|
484
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
485
|
+
headerParameters: [Parameters.accept],
|
|
486
|
+
serializer,
|
|
487
|
+
};
|
|
488
|
+
const listByResourceGroupOperationSpec = {
|
|
489
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones",
|
|
490
|
+
httpMethod: "GET",
|
|
491
|
+
responses: {
|
|
492
|
+
200: {
|
|
493
|
+
bodyMapper: Mappers.PrivateZoneListResult,
|
|
494
|
+
},
|
|
495
|
+
default: {
|
|
496
|
+
bodyMapper: Mappers.CloudError,
|
|
497
|
+
},
|
|
498
|
+
},
|
|
499
|
+
queryParameters: [Parameters.apiVersion, Parameters.top],
|
|
500
|
+
urlParameters: [
|
|
501
|
+
Parameters.$host,
|
|
502
|
+
Parameters.resourceGroupName,
|
|
503
|
+
Parameters.subscriptionId,
|
|
504
|
+
],
|
|
505
|
+
headerParameters: [Parameters.accept],
|
|
506
|
+
serializer,
|
|
507
|
+
};
|
|
508
|
+
const listNextOperationSpec = {
|
|
509
|
+
path: "{nextLink}",
|
|
510
|
+
httpMethod: "GET",
|
|
511
|
+
responses: {
|
|
512
|
+
200: {
|
|
513
|
+
bodyMapper: Mappers.PrivateZoneListResult,
|
|
514
|
+
},
|
|
515
|
+
default: {
|
|
516
|
+
bodyMapper: Mappers.CloudError,
|
|
517
|
+
},
|
|
518
|
+
},
|
|
519
|
+
urlParameters: [
|
|
520
|
+
Parameters.$host,
|
|
521
|
+
Parameters.subscriptionId,
|
|
522
|
+
Parameters.nextLink,
|
|
523
|
+
],
|
|
524
|
+
headerParameters: [Parameters.accept],
|
|
525
|
+
serializer,
|
|
526
|
+
};
|
|
527
|
+
const listByResourceGroupNextOperationSpec = {
|
|
528
|
+
path: "{nextLink}",
|
|
529
|
+
httpMethod: "GET",
|
|
530
|
+
responses: {
|
|
531
|
+
200: {
|
|
532
|
+
bodyMapper: Mappers.PrivateZoneListResult,
|
|
533
|
+
},
|
|
534
|
+
default: {
|
|
535
|
+
bodyMapper: Mappers.CloudError,
|
|
536
|
+
},
|
|
537
|
+
},
|
|
538
|
+
urlParameters: [
|
|
539
|
+
Parameters.$host,
|
|
540
|
+
Parameters.resourceGroupName,
|
|
541
|
+
Parameters.subscriptionId,
|
|
542
|
+
Parameters.nextLink,
|
|
543
|
+
],
|
|
544
|
+
headerParameters: [Parameters.accept],
|
|
545
|
+
serializer,
|
|
546
|
+
};
|
|
547
|
+
//# sourceMappingURL=privateZones.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateZones.js","sourceRoot":"","sources":["../../../src/operations/privateZones.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AAC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,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { PrivateZones } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { PrivateDnsManagementClient } from \"../privateDnsManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n PrivateZone,\n PrivateZonesListNextOptionalParams,\n PrivateZonesListOptionalParams,\n PrivateZonesListResponse,\n PrivateZonesListByResourceGroupNextOptionalParams,\n PrivateZonesListByResourceGroupOptionalParams,\n PrivateZonesListByResourceGroupResponse,\n PrivateZonesCreateOrUpdateOptionalParams,\n PrivateZonesCreateOrUpdateResponse,\n PrivateZonesUpdateOptionalParams,\n PrivateZonesUpdateResponse,\n PrivateZonesDeleteOptionalParams,\n PrivateZonesGetOptionalParams,\n PrivateZonesGetResponse,\n PrivateZonesListNextResponse,\n PrivateZonesListByResourceGroupNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateZones operations. */\nexport class PrivateZonesImpl implements PrivateZones {\n private readonly client: PrivateDnsManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateZones class.\n * @param client Reference to the service client\n */\n constructor(client: PrivateDnsManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the Private DNS zones in all resource groups in a subscription.\n * @param options The options parameters.\n */\n public list(\n options?: PrivateZonesListOptionalParams,\n ): PagedAsyncIterableIterator<PrivateZone> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: PrivateZonesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<PrivateZone[]> {\n let result: PrivateZonesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: PrivateZonesListOptionalParams,\n ): AsyncIterableIterator<PrivateZone> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists the Private DNS zones within a resource group.\n * @param resourceGroupName The name of the resource group.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: PrivateZonesListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<PrivateZone> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: PrivateZonesListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<PrivateZone[]> {\n let result: PrivateZonesListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: PrivateZonesListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<PrivateZone> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates or updates a Private DNS zone. Does not modify Links to virtual networks or DNS records\n * within the zone.\n * @param resourceGroupName The name of the resource group.\n * @param privateZoneName The name of the Private DNS zone (without a terminating dot).\n * @param parameters Parameters supplied to the CreateOrUpdate operation.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n privateZoneName: string,\n parameters: PrivateZone,\n options?: PrivateZonesCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PrivateZonesCreateOrUpdateResponse>,\n PrivateZonesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PrivateZonesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, privateZoneName, parameters, options },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n PrivateZonesCreateOrUpdateResponse,\n OperationState<PrivateZonesCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates or updates a Private DNS zone. Does not modify Links to virtual networks or DNS records\n * within the zone.\n * @param resourceGroupName The name of the resource group.\n * @param privateZoneName The name of the Private DNS zone (without a terminating dot).\n * @param parameters Parameters supplied to the CreateOrUpdate operation.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n privateZoneName: string,\n parameters: PrivateZone,\n options?: PrivateZonesCreateOrUpdateOptionalParams,\n ): Promise<PrivateZonesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n privateZoneName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates a Private DNS zone. Does not modify virtual network links or DNS records within the zone.\n * @param resourceGroupName The name of the resource group.\n * @param privateZoneName The name of the Private DNS zone (without a terminating dot).\n * @param parameters Parameters supplied to the Update operation.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n privateZoneName: string,\n parameters: PrivateZone,\n options?: PrivateZonesUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PrivateZonesUpdateResponse>,\n PrivateZonesUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PrivateZonesUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, privateZoneName, parameters, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n PrivateZonesUpdateResponse,\n OperationState<PrivateZonesUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates a Private DNS zone. Does not modify virtual network links or DNS records within the zone.\n * @param resourceGroupName The name of the resource group.\n * @param privateZoneName The name of the Private DNS zone (without a terminating dot).\n * @param parameters Parameters supplied to the Update operation.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n privateZoneName: string,\n parameters: PrivateZone,\n options?: PrivateZonesUpdateOptionalParams,\n ): Promise<PrivateZonesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n privateZoneName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a Private DNS zone. WARNING: All DNS records in the zone will also be deleted. This\n * operation cannot be undone. Private DNS zone cannot be deleted unless all virtual network links to\n * it are removed.\n * @param resourceGroupName The name of the resource group.\n * @param privateZoneName The name of the Private DNS zone (without a terminating dot).\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n privateZoneName: string,\n options?: PrivateZonesDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, privateZoneName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a Private DNS zone. WARNING: All DNS records in the zone will also be deleted. This\n * operation cannot be undone. Private DNS zone cannot be deleted unless all virtual network links to\n * it are removed.\n * @param resourceGroupName The name of the resource group.\n * @param privateZoneName The name of the Private DNS zone (without a terminating dot).\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n privateZoneName: string,\n options?: PrivateZonesDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n privateZoneName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets a Private DNS zone. Retrieves the zone properties, but not the virtual networks links or the\n * record sets within the zone.\n * @param resourceGroupName The name of the resource group.\n * @param privateZoneName The name of the Private DNS zone (without a terminating dot).\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n privateZoneName: string,\n options?: PrivateZonesGetOptionalParams,\n ): Promise<PrivateZonesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, privateZoneName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Lists the Private DNS zones in all resource groups in a subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: PrivateZonesListOptionalParams,\n ): Promise<PrivateZonesListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Lists the Private DNS zones within a resource group.\n * @param resourceGroupName The name of the resource group.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: PrivateZonesListByResourceGroupOptionalParams,\n ): Promise<PrivateZonesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: PrivateZonesListNextOptionalParams,\n ): Promise<PrivateZonesListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: PrivateZonesListByResourceGroupNextOptionalParams,\n ): Promise<PrivateZonesListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateZone,\n },\n 201: {\n bodyMapper: Mappers.PrivateZone,\n },\n 202: {\n bodyMapper: Mappers.PrivateZone,\n },\n 204: {\n bodyMapper: Mappers.PrivateZone,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.privateZoneName,\n Parameters.subscriptionId,\n ],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateZone,\n },\n 201: {\n bodyMapper: Mappers.PrivateZone,\n },\n 202: {\n bodyMapper: Mappers.PrivateZone,\n },\n 204: {\n bodyMapper: Mappers.PrivateZone,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.privateZoneName,\n Parameters.subscriptionId,\n ],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.privateZoneName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept, Parameters.ifMatch],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateZone,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.privateZoneName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Network/privateDnsZones\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateZoneListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.top],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateZoneListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateZoneListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateZoneListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|