@azure/arm-resources 5.2.1-alpha.20250211.1 → 5.2.1-alpha.20250219.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-esm/src → dist/browser}/operations/deploymentOperations.d.ts +3 -3
- package/dist/browser/operations/deploymentOperations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/deploymentOperations.js +3 -3
- package/dist/browser/operations/deploymentOperations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/deployments.d.ts +3 -3
- package/dist/browser/operations/deployments.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/deployments.js +693 -769
- package/dist/browser/operations/deployments.js.map +1 -0
- package/dist/browser/operations/index.d.ts +9 -0
- package/dist/browser/operations/index.d.ts.map +1 -0
- package/dist/browser/operations/index.js +16 -0
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
- package/dist/browser/operations/operations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.js +3 -3
- package/dist/browser/operations/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/providerResourceTypes.d.ts +3 -3
- package/dist/browser/operations/providerResourceTypes.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/providerResourceTypes.js +2 -2
- package/dist/browser/operations/providerResourceTypes.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/providers.d.ts +3 -3
- package/dist/browser/operations/providers.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/providers.js +3 -3
- package/dist/browser/operations/providers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/resourceGroups.d.ts +3 -3
- package/dist/browser/operations/resourceGroups.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/resourceGroups.js +78 -86
- package/dist/browser/operations/resourceGroups.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/resources.d.ts +3 -3
- package/dist/browser/operations/resources.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/resources.js +319 -351
- package/dist/browser/operations/resources.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/tagsOperations.d.ts +3 -3
- package/dist/browser/operations/tagsOperations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/tagsOperations.js +3 -3
- package/dist/browser/operations/tagsOperations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/deploymentOperations.d.ts +1 -1
- package/dist/browser/operationsInterfaces/deploymentOperations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/deploymentOperations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/deployments.d.ts +1 -1
- package/dist/browser/operationsInterfaces/deployments.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/deployments.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +9 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/index.js +16 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/providerResourceTypes.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/providerResourceTypes.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/providerResourceTypes.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/providers.d.ts +1 -1
- package/dist/browser/operationsInterfaces/providers.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/providers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/resourceGroups.d.ts +1 -1
- package/dist/browser/operationsInterfaces/resourceGroups.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/resourceGroups.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/resources.d.ts +1 -1
- package/dist/browser/operationsInterfaces/resources.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/resources.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/tagsOperations.d.ts +1 -1
- package/dist/browser/operationsInterfaces/tagsOperations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/tagsOperations.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}/resourceManagementClient.d.ts +2 -2
- package/dist/browser/resourceManagementClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/resourceManagementClient.js +15 -18
- package/dist/browser/resourceManagementClient.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 +1977 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +105 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +88 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +2753 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +40 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +349 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/deploymentOperations.d.ts +168 -0
- package/dist/commonjs/operations/deploymentOperations.d.ts.map +1 -0
- package/dist/commonjs/operations/deploymentOperations.js +786 -0
- package/dist/commonjs/operations/deploymentOperations.js.map +1 -0
- package/dist/commonjs/operations/deployments.d.ts +628 -0
- package/dist/commonjs/operations/deployments.d.ts.map +1 -0
- package/dist/commonjs/operations/deployments.js +2770 -0
- package/dist/commonjs/operations/deployments.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +9 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +19 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/operations.d.ts +32 -0
- package/dist/commonjs/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/operations/operations.js +137 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operations/providerResourceTypes.d.ts +19 -0
- package/dist/commonjs/operations/providerResourceTypes.d.ts.map +1 -0
- package/dist/commonjs/operations/providerResourceTypes.js +56 -0
- package/dist/commonjs/operations/providerResourceTypes.js.map +1 -0
- package/dist/commonjs/operations/providers.d.ts +87 -0
- package/dist/commonjs/operations/providers.d.ts.map +1 -0
- package/dist/commonjs/operations/providers.js +413 -0
- package/dist/commonjs/operations/providers.js.map +1 -0
- package/dist/commonjs/operations/resourceGroups.d.ts +91 -0
- package/dist/commonjs/operations/resourceGroups.d.ts.map +1 -0
- package/dist/commonjs/operations/resourceGroups.js +422 -0
- package/dist/commonjs/operations/resourceGroups.js.map +1 -0
- package/dist/commonjs/operations/resources.d.ts +278 -0
- package/dist/commonjs/operations/resources.d.ts.map +1 -0
- package/dist/commonjs/operations/resources.js +1132 -0
- package/dist/commonjs/operations/resources.js.map +1 -0
- package/dist/commonjs/operations/tagsOperations.d.ts +102 -0
- package/dist/commonjs/operations/tagsOperations.d.ts.map +1 -0
- package/dist/commonjs/operations/tagsOperations.js +379 -0
- package/dist/commonjs/operations/tagsOperations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/deploymentOperations.d.ts +77 -0
- package/dist/commonjs/operationsInterfaces/deploymentOperations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/deploymentOperations.js +10 -0
- package/dist/commonjs/operationsInterfaces/deploymentOperations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/deployments.d.ts +545 -0
- package/dist/commonjs/operationsInterfaces/deployments.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/deployments.js +10 -0
- package/dist/commonjs/operationsInterfaces/deployments.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +9 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +19 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.js +10 -0
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/providerResourceTypes.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/providerResourceTypes.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/providerResourceTypes.js +10 -0
- package/dist/commonjs/operationsInterfaces/providerResourceTypes.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/providers.d.ts +53 -0
- package/dist/commonjs/operationsInterfaces/providers.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/providers.js +10 -0
- package/dist/commonjs/operationsInterfaces/providers.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/resourceGroups.d.ts +70 -0
- package/dist/commonjs/operationsInterfaces/resourceGroups.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/resourceGroups.js +10 -0
- package/dist/commonjs/operationsInterfaces/resourceGroups.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/resources.d.ts +242 -0
- package/dist/commonjs/operationsInterfaces/resources.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/resources.js +10 -0
- package/dist/commonjs/operationsInterfaces/resources.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/tagsOperations.d.ts +78 -0
- package/dist/commonjs/operationsInterfaces/tagsOperations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/tagsOperations.js +10 -0
- package/dist/commonjs/operationsInterfaces/tagsOperations.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/resourceManagementClient.d.ts +27 -0
- package/dist/commonjs/resourceManagementClient.d.ts.map +1 -0
- package/dist/commonjs/resourceManagementClient.js +109 -0
- package/dist/commonjs/resourceManagementClient.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 +1977 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +102 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +88 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +2749 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +40 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +346 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/deploymentOperations.d.ts +168 -0
- package/dist/esm/operations/deploymentOperations.d.ts.map +1 -0
- package/dist/esm/operations/deploymentOperations.js +782 -0
- package/dist/esm/operations/deploymentOperations.js.map +1 -0
- package/dist/esm/operations/deployments.d.ts +628 -0
- package/dist/esm/operations/deployments.d.ts.map +1 -0
- package/dist/esm/operations/deployments.js +2766 -0
- package/dist/esm/operations/deployments.js.map +1 -0
- package/dist/esm/operations/index.d.ts +9 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +16 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/operations.d.ts +32 -0
- package/dist/esm/operations/operations.d.ts.map +1 -0
- package/dist/esm/operations/operations.js +133 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operations/providerResourceTypes.d.ts +19 -0
- package/dist/esm/operations/providerResourceTypes.d.ts.map +1 -0
- package/dist/esm/operations/providerResourceTypes.js +51 -0
- package/dist/esm/operations/providerResourceTypes.js.map +1 -0
- package/dist/esm/operations/providers.d.ts +87 -0
- package/dist/esm/operations/providers.d.ts.map +1 -0
- package/dist/esm/operations/providers.js +409 -0
- package/dist/esm/operations/providers.js.map +1 -0
- package/dist/esm/operations/resourceGroups.d.ts +91 -0
- package/dist/esm/operations/resourceGroups.d.ts.map +1 -0
- package/dist/esm/operations/resourceGroups.js +418 -0
- package/dist/esm/operations/resourceGroups.js.map +1 -0
- package/dist/esm/operations/resources.d.ts +278 -0
- package/dist/esm/operations/resources.d.ts.map +1 -0
- package/dist/esm/operations/resources.js +1128 -0
- package/dist/esm/operations/resources.js.map +1 -0
- package/dist/esm/operations/tagsOperations.d.ts +102 -0
- package/dist/esm/operations/tagsOperations.d.ts.map +1 -0
- package/dist/esm/operations/tagsOperations.js +375 -0
- package/dist/esm/operations/tagsOperations.js.map +1 -0
- package/dist/esm/operationsInterfaces/deploymentOperations.d.ts +77 -0
- package/dist/esm/operationsInterfaces/deploymentOperations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/deploymentOperations.js +9 -0
- package/dist/esm/operationsInterfaces/deploymentOperations.js.map +1 -0
- package/dist/esm/operationsInterfaces/deployments.d.ts +545 -0
- package/dist/esm/operationsInterfaces/deployments.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/deployments.js +9 -0
- package/dist/esm/operationsInterfaces/deployments.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +9 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +16 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/operations.js +9 -0
- package/dist/esm/operationsInterfaces/operations.js.map +1 -0
- package/dist/esm/operationsInterfaces/providerResourceTypes.d.ts +11 -0
- package/dist/esm/operationsInterfaces/providerResourceTypes.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/providerResourceTypes.js +9 -0
- package/dist/esm/operationsInterfaces/providerResourceTypes.js.map +1 -0
- package/dist/esm/operationsInterfaces/providers.d.ts +53 -0
- package/dist/esm/operationsInterfaces/providers.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/providers.js +9 -0
- package/dist/esm/operationsInterfaces/providers.js.map +1 -0
- package/dist/esm/operationsInterfaces/resourceGroups.d.ts +70 -0
- package/dist/esm/operationsInterfaces/resourceGroups.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/resourceGroups.js +9 -0
- package/dist/esm/operationsInterfaces/resourceGroups.js.map +1 -0
- package/dist/esm/operationsInterfaces/resources.d.ts +242 -0
- package/dist/esm/operationsInterfaces/resources.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/resources.js +9 -0
- package/dist/esm/operationsInterfaces/resources.js.map +1 -0
- package/dist/esm/operationsInterfaces/tagsOperations.d.ts +78 -0
- package/dist/esm/operationsInterfaces/tagsOperations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/tagsOperations.js +9 -0
- package/dist/esm/operationsInterfaces/tagsOperations.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/resourceManagementClient.d.ts +27 -0
- package/dist/esm/resourceManagementClient.d.ts.map +1 -0
- package/dist/esm/resourceManagementClient.js +104 -0
- package/dist/esm/resourceManagementClient.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 +1977 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +102 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +88 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +2749 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +40 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +346 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/deploymentOperations.d.ts +168 -0
- package/dist/react-native/operations/deploymentOperations.d.ts.map +1 -0
- package/dist/react-native/operations/deploymentOperations.js +782 -0
- package/dist/react-native/operations/deploymentOperations.js.map +1 -0
- package/dist/react-native/operations/deployments.d.ts +628 -0
- package/dist/react-native/operations/deployments.d.ts.map +1 -0
- package/dist/react-native/operations/deployments.js +2766 -0
- package/dist/react-native/operations/deployments.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +9 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +16 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/operations.d.ts +32 -0
- package/dist/react-native/operations/operations.d.ts.map +1 -0
- package/dist/react-native/operations/operations.js +133 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operations/providerResourceTypes.d.ts +19 -0
- package/dist/react-native/operations/providerResourceTypes.d.ts.map +1 -0
- package/dist/react-native/operations/providerResourceTypes.js +51 -0
- package/dist/react-native/operations/providerResourceTypes.js.map +1 -0
- package/dist/react-native/operations/providers.d.ts +87 -0
- package/dist/react-native/operations/providers.d.ts.map +1 -0
- package/dist/react-native/operations/providers.js +409 -0
- package/dist/react-native/operations/providers.js.map +1 -0
- package/dist/react-native/operations/resourceGroups.d.ts +91 -0
- package/dist/react-native/operations/resourceGroups.d.ts.map +1 -0
- package/dist/react-native/operations/resourceGroups.js +418 -0
- package/dist/react-native/operations/resourceGroups.js.map +1 -0
- package/dist/react-native/operations/resources.d.ts +278 -0
- package/dist/react-native/operations/resources.d.ts.map +1 -0
- package/dist/react-native/operations/resources.js +1128 -0
- package/dist/react-native/operations/resources.js.map +1 -0
- package/dist/react-native/operations/tagsOperations.d.ts +102 -0
- package/dist/react-native/operations/tagsOperations.d.ts.map +1 -0
- package/dist/react-native/operations/tagsOperations.js +375 -0
- package/dist/react-native/operations/tagsOperations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/deploymentOperations.d.ts +77 -0
- package/dist/react-native/operationsInterfaces/deploymentOperations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/deploymentOperations.js +9 -0
- package/dist/react-native/operationsInterfaces/deploymentOperations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/deployments.d.ts +545 -0
- package/dist/react-native/operationsInterfaces/deployments.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/deployments.js +9 -0
- package/dist/react-native/operationsInterfaces/deployments.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +9 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +16 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.js +9 -0
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/providerResourceTypes.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/providerResourceTypes.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/providerResourceTypes.js +9 -0
- package/dist/react-native/operationsInterfaces/providerResourceTypes.js.map +1 -0
- package/dist/react-native/operationsInterfaces/providers.d.ts +53 -0
- package/dist/react-native/operationsInterfaces/providers.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/providers.js +9 -0
- package/dist/react-native/operationsInterfaces/providers.js.map +1 -0
- package/dist/react-native/operationsInterfaces/resourceGroups.d.ts +70 -0
- package/dist/react-native/operationsInterfaces/resourceGroups.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/resourceGroups.js +9 -0
- package/dist/react-native/operationsInterfaces/resourceGroups.js.map +1 -0
- package/dist/react-native/operationsInterfaces/resources.d.ts +242 -0
- package/dist/react-native/operationsInterfaces/resources.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/resources.js +9 -0
- package/dist/react-native/operationsInterfaces/resources.js.map +1 -0
- package/dist/react-native/operationsInterfaces/tagsOperations.d.ts +78 -0
- package/dist/react-native/operationsInterfaces/tagsOperations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/tagsOperations.js +9 -0
- package/dist/react-native/operationsInterfaces/tagsOperations.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/resourceManagementClient.d.ts +27 -0
- package/dist/react-native/resourceManagementClient.d.ts.map +1 -0
- package/dist/react-native/resourceManagementClient.js +104 -0
- package/dist/react-native/resourceManagementClient.js.map +1 -0
- package/package.json +67 -36
- package/dist/index.js +0 -9600
- 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/deploymentsCalculateTemplateHashSample.d.ts +0 -2
- package/dist-esm/samples-dev/deploymentsCalculateTemplateHashSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/deploymentsCalculateTemplateHashSample.js +0 -48
- package/dist-esm/samples-dev/deploymentsCalculateTemplateHashSample.js.map +0 -1
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtManagementGroupScopeSample.d.ts +0 -2
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtManagementGroupScopeSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtManagementGroupScopeSample.js +0 -37
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtManagementGroupScopeSample.js.map +0 -1
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtScopeSample.d.ts +0 -2
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtScopeSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtScopeSample.js +0 -38
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtScopeSample.js.map +0 -1
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtSubscriptionScopeSample.d.ts +0 -2
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtSubscriptionScopeSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtSubscriptionScopeSample.js +0 -38
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtSubscriptionScopeSample.js.map +0 -1
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtTenantScopeSample.d.ts +0 -2
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtTenantScopeSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtTenantScopeSample.js +0 -37
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateAtTenantScopeSample.js.map +0 -1
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js +0 -121
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/deploymentsWhatIfAtManagementGroupScopeSample.d.ts +0 -2
- package/dist-esm/samples-dev/deploymentsWhatIfAtManagementGroupScopeSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/deploymentsWhatIfAtManagementGroupScopeSample.js +0 -33
- package/dist-esm/samples-dev/deploymentsWhatIfAtManagementGroupScopeSample.js.map +0 -1
- package/dist-esm/samples-dev/deploymentsWhatIfAtSubscriptionScopeSample.d.ts +0 -2
- package/dist-esm/samples-dev/deploymentsWhatIfAtSubscriptionScopeSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/deploymentsWhatIfAtSubscriptionScopeSample.js +0 -32
- package/dist-esm/samples-dev/deploymentsWhatIfAtSubscriptionScopeSample.js.map +0 -1
- package/dist-esm/samples-dev/deploymentsWhatIfAtTenantScopeSample.d.ts +0 -2
- package/dist-esm/samples-dev/deploymentsWhatIfAtTenantScopeSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/deploymentsWhatIfAtTenantScopeSample.js +0 -32
- package/dist-esm/samples-dev/deploymentsWhatIfAtTenantScopeSample.js.map +0 -1
- package/dist-esm/samples-dev/deploymentsWhatIfSample.d.ts +0 -2
- package/dist-esm/samples-dev/deploymentsWhatIfSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/deploymentsWhatIfSample.js +0 -32
- package/dist-esm/samples-dev/deploymentsWhatIfSample.js.map +0 -1
- package/dist-esm/samples-dev/providerResourceTypesListSample.d.ts +0 -2
- package/dist-esm/samples-dev/providerResourceTypesListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/providerResourceTypesListSample.js +0 -35
- package/dist-esm/samples-dev/providerResourceTypesListSample.js.map +0 -1
- package/dist-esm/samples-dev/providersGetAtTenantScopeSample.d.ts +0 -2
- package/dist-esm/samples-dev/providersGetAtTenantScopeSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/providersGetAtTenantScopeSample.js +0 -30
- package/dist-esm/samples-dev/providersGetAtTenantScopeSample.js.map +0 -1
- package/dist-esm/samples-dev/providersGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/providersGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/providersGetSample.js +0 -35
- package/dist-esm/samples-dev/providersGetSample.js.map +0 -1
- package/dist-esm/samples-dev/providersListSample.d.ts +0 -2
- package/dist-esm/samples-dev/providersListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/providersListSample.js +0 -50
- package/dist-esm/samples-dev/providersListSample.js.map +0 -1
- package/dist-esm/samples-dev/providersProviderPermissionsSample.d.ts +0 -2
- package/dist-esm/samples-dev/providersProviderPermissionsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/providersProviderPermissionsSample.js +0 -35
- package/dist-esm/samples-dev/providersProviderPermissionsSample.js.map +0 -1
- package/dist-esm/samples-dev/resourceGroupsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/resourceGroupsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/resourceGroupsCreateOrUpdateSample.js +0 -29
- package/dist-esm/samples-dev/resourceGroupsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/resourceGroupsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/resourceGroupsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/resourceGroupsDeleteSample.js +0 -49
- package/dist-esm/samples-dev/resourceGroupsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/resourceGroupsExportTemplateSample.d.ts +0 -2
- package/dist-esm/samples-dev/resourceGroupsExportTemplateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/resourceGroupsExportTemplateSample.js +0 -55
- package/dist-esm/samples-dev/resourceGroupsExportTemplateSample.js.map +0 -1
- package/dist-esm/samples-dev/tagsCreateOrUpdateAtScopeSample.d.ts +0 -2
- package/dist-esm/samples-dev/tagsCreateOrUpdateAtScopeSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/tagsCreateOrUpdateAtScopeSample.js +0 -51
- package/dist-esm/samples-dev/tagsCreateOrUpdateAtScopeSample.js.map +0 -1
- package/dist-esm/samples-dev/tagsGetAtScopeSample.d.ts +0 -2
- package/dist-esm/samples-dev/tagsGetAtScopeSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/tagsGetAtScopeSample.js +0 -52
- package/dist-esm/samples-dev/tagsGetAtScopeSample.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/deploymentOperations.d.ts.map +0 -1
- package/dist-esm/src/operations/deploymentOperations.js.map +0 -1
- package/dist-esm/src/operations/deployments.d.ts.map +0 -1
- package/dist-esm/src/operations/deployments.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -9
- package/dist-esm/src/operations/index.d.ts.map +0 -1
- package/dist-esm/src/operations/index.js +0 -16
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/operations.d.ts.map +0 -1
- package/dist-esm/src/operations/operations.js.map +0 -1
- package/dist-esm/src/operations/providerResourceTypes.d.ts.map +0 -1
- package/dist-esm/src/operations/providerResourceTypes.js.map +0 -1
- package/dist-esm/src/operations/providers.d.ts.map +0 -1
- package/dist-esm/src/operations/providers.js.map +0 -1
- package/dist-esm/src/operations/resourceGroups.d.ts.map +0 -1
- package/dist-esm/src/operations/resourceGroups.js.map +0 -1
- package/dist-esm/src/operations/resources.d.ts.map +0 -1
- package/dist-esm/src/operations/resources.js.map +0 -1
- package/dist-esm/src/operations/tagsOperations.d.ts.map +0 -1
- package/dist-esm/src/operations/tagsOperations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/deploymentOperations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/deploymentOperations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/deployments.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/deployments.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -9
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.js +0 -16
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/providerResourceTypes.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/providers.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/providers.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/resourceGroups.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/resourceGroups.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/resources.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/resources.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/tagsOperations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/tagsOperations.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/src/resourceManagementClient.d.ts.map +0 -1
- package/dist-esm/src/resourceManagementClient.js.map +0 -1
- package/dist-esm/test/cae_mock_test.d.ts +0 -2
- package/dist-esm/test/cae_mock_test.d.ts.map +0 -1
- package/dist-esm/test/cae_mock_test.js +0 -120
- package/dist-esm/test/cae_mock_test.js.map +0 -1
- package/dist-esm/test/resources_examples.d.ts +0 -4
- package/dist-esm/test/resources_examples.d.ts.map +0 -1
- package/dist-esm/test/resources_examples.js +0 -225
- package/dist-esm/test/resources_examples.js.map +0 -1
- package/src/lroImpl.ts +0 -38
- package/src/models/index.ts +0 -2347
- package/src/models/mappers.ts +0 -2852
- package/src/models/parameters.ts +0 -402
- package/src/operations/deploymentOperations.ts +0 -1016
- package/src/operations/deployments.ts +0 -3849
- package/src/operations/index.ts +0 -16
- package/src/operations/operations.ts +0 -149
- package/src/operations/providerResourceTypes.ts +0 -69
- package/src/operations/providers.ts +0 -493
- package/src/operations/resourceGroups.ts +0 -546
- package/src/operations/resources.ts +0 -1568
- package/src/operations/tagsOperations.ts +0 -463
- package/src/operationsInterfaces/deploymentOperations.ts +0 -144
- package/src/operationsInterfaces/deployments.ts +0 -957
- package/src/operationsInterfaces/index.ts +0 -16
- package/src/operationsInterfaces/operations.ts +0 -22
- package/src/operationsInterfaces/providerResourceTypes.ts +0 -25
- package/src/operationsInterfaces/providers.ts +0 -100
- package/src/operationsInterfaces/resourceGroups.ts +0 -130
- package/src/operationsInterfaces/resources.ts +0 -422
- package/src/operationsInterfaces/tagsOperations.ts +0 -132
- package/src/pagingHelper.ts +0 -39
- package/src/resourceManagementClient.ts +0 -172
- package/tsconfig.json +0 -33
- package/types/arm-resources.d.ts +0 -3398
- /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/deploymentOperations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/deployments.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/providerResourceTypes.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/providers.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/resourceGroups.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/resources.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/tagsOperations.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
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await
|
|
9
|
-
import { setContinuationToken } from "../pagingHelper";
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
10
|
import * as coreClient from "@azure/core-client";
|
|
11
|
-
import * as Mappers from "../models/mappers";
|
|
12
|
-
import * as Parameters from "../models/parameters";
|
|
11
|
+
import * as Mappers from "../models/mappers.js";
|
|
12
|
+
import * as Parameters from "../models/parameters.js";
|
|
13
13
|
import { createHttpPoller } from "@azure/core-lro";
|
|
14
|
-
import { createLroSpec } from "../lroImpl";
|
|
14
|
+
import { createLroSpec } from "../lroImpl.js";
|
|
15
15
|
/// <reference lib="esnext.asynciterable" />
|
|
16
16
|
/** Class containing Deployments operations. */
|
|
17
17
|
export class DeploymentsImpl {
|
|
@@ -343,42 +343,40 @@ export class DeploymentsImpl {
|
|
|
343
343
|
* @param deploymentName The name of the deployment.
|
|
344
344
|
* @param options The options parameters.
|
|
345
345
|
*/
|
|
346
|
-
beginDeleteAtScope(scope, deploymentName, options) {
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
spec: deleteAtScopeOperationSpec
|
|
374
|
-
});
|
|
375
|
-
const poller = yield createHttpPoller(lro, {
|
|
376
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
377
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
378
|
-
});
|
|
379
|
-
yield poller.poll();
|
|
380
|
-
return poller;
|
|
346
|
+
async beginDeleteAtScope(scope, deploymentName, options) {
|
|
347
|
+
const directSendOperation = async (args, spec) => {
|
|
348
|
+
return this.client.sendOperationRequest(args, spec);
|
|
349
|
+
};
|
|
350
|
+
const sendOperationFn = async (args, spec) => {
|
|
351
|
+
var _a;
|
|
352
|
+
let currentRawResponse = undefined;
|
|
353
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
354
|
+
const callback = (rawResponse, flatResponse) => {
|
|
355
|
+
currentRawResponse = rawResponse;
|
|
356
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
357
|
+
};
|
|
358
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
359
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
360
|
+
return {
|
|
361
|
+
flatResponse,
|
|
362
|
+
rawResponse: {
|
|
363
|
+
statusCode: currentRawResponse.status,
|
|
364
|
+
body: currentRawResponse.parsedBody,
|
|
365
|
+
headers: currentRawResponse.headers.toJSON()
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
const lro = createLroSpec({
|
|
370
|
+
sendOperationFn,
|
|
371
|
+
args: { scope, deploymentName, options },
|
|
372
|
+
spec: deleteAtScopeOperationSpec
|
|
381
373
|
});
|
|
374
|
+
const poller = await createHttpPoller(lro, {
|
|
375
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
376
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
377
|
+
});
|
|
378
|
+
await poller.poll();
|
|
379
|
+
return poller;
|
|
382
380
|
}
|
|
383
381
|
/**
|
|
384
382
|
* A template deployment that is currently running cannot be deleted. Deleting a template deployment
|
|
@@ -392,11 +390,9 @@ export class DeploymentsImpl {
|
|
|
392
390
|
* @param deploymentName The name of the deployment.
|
|
393
391
|
* @param options The options parameters.
|
|
394
392
|
*/
|
|
395
|
-
beginDeleteAtScopeAndWait(scope, deploymentName, options) {
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
return poller.pollUntilDone();
|
|
399
|
-
});
|
|
393
|
+
async beginDeleteAtScopeAndWait(scope, deploymentName, options) {
|
|
394
|
+
const poller = await this.beginDeleteAtScope(scope, deploymentName, options);
|
|
395
|
+
return poller.pollUntilDone();
|
|
400
396
|
}
|
|
401
397
|
/**
|
|
402
398
|
* Checks whether the deployment exists.
|
|
@@ -414,42 +410,40 @@ export class DeploymentsImpl {
|
|
|
414
410
|
* @param parameters Additional parameters supplied to the operation.
|
|
415
411
|
* @param options The options parameters.
|
|
416
412
|
*/
|
|
417
|
-
beginCreateOrUpdateAtScope(scope, deploymentName, parameters, options) {
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
449
|
-
});
|
|
450
|
-
yield poller.poll();
|
|
451
|
-
return poller;
|
|
413
|
+
async beginCreateOrUpdateAtScope(scope, deploymentName, parameters, options) {
|
|
414
|
+
const directSendOperation = async (args, spec) => {
|
|
415
|
+
return this.client.sendOperationRequest(args, spec);
|
|
416
|
+
};
|
|
417
|
+
const sendOperationFn = async (args, spec) => {
|
|
418
|
+
var _a;
|
|
419
|
+
let currentRawResponse = undefined;
|
|
420
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
421
|
+
const callback = (rawResponse, flatResponse) => {
|
|
422
|
+
currentRawResponse = rawResponse;
|
|
423
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
424
|
+
};
|
|
425
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
426
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
427
|
+
return {
|
|
428
|
+
flatResponse,
|
|
429
|
+
rawResponse: {
|
|
430
|
+
statusCode: currentRawResponse.status,
|
|
431
|
+
body: currentRawResponse.parsedBody,
|
|
432
|
+
headers: currentRawResponse.headers.toJSON()
|
|
433
|
+
}
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
const lro = createLroSpec({
|
|
437
|
+
sendOperationFn,
|
|
438
|
+
args: { scope, deploymentName, parameters, options },
|
|
439
|
+
spec: createOrUpdateAtScopeOperationSpec
|
|
440
|
+
});
|
|
441
|
+
const poller = await createHttpPoller(lro, {
|
|
442
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
443
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
452
444
|
});
|
|
445
|
+
await poller.poll();
|
|
446
|
+
return poller;
|
|
453
447
|
}
|
|
454
448
|
/**
|
|
455
449
|
* You can provide the template and parameters directly in the request or link to JSON files.
|
|
@@ -458,11 +452,9 @@ export class DeploymentsImpl {
|
|
|
458
452
|
* @param parameters Additional parameters supplied to the operation.
|
|
459
453
|
* @param options The options parameters.
|
|
460
454
|
*/
|
|
461
|
-
beginCreateOrUpdateAtScopeAndWait(scope, deploymentName, parameters, options) {
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
return poller.pollUntilDone();
|
|
465
|
-
});
|
|
455
|
+
async beginCreateOrUpdateAtScopeAndWait(scope, deploymentName, parameters, options) {
|
|
456
|
+
const poller = await this.beginCreateOrUpdateAtScope(scope, deploymentName, parameters, options);
|
|
457
|
+
return poller.pollUntilDone();
|
|
466
458
|
}
|
|
467
459
|
/**
|
|
468
460
|
* Gets a deployment.
|
|
@@ -492,42 +484,40 @@ export class DeploymentsImpl {
|
|
|
492
484
|
* @param parameters Parameters to validate.
|
|
493
485
|
* @param options The options parameters.
|
|
494
486
|
*/
|
|
495
|
-
beginValidateAtScope(scope, deploymentName, parameters, options) {
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
527
|
-
});
|
|
528
|
-
yield poller.poll();
|
|
529
|
-
return poller;
|
|
487
|
+
async beginValidateAtScope(scope, deploymentName, parameters, options) {
|
|
488
|
+
const directSendOperation = async (args, spec) => {
|
|
489
|
+
return this.client.sendOperationRequest(args, spec);
|
|
490
|
+
};
|
|
491
|
+
const sendOperationFn = async (args, spec) => {
|
|
492
|
+
var _a;
|
|
493
|
+
let currentRawResponse = undefined;
|
|
494
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
495
|
+
const callback = (rawResponse, flatResponse) => {
|
|
496
|
+
currentRawResponse = rawResponse;
|
|
497
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
498
|
+
};
|
|
499
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
500
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
501
|
+
return {
|
|
502
|
+
flatResponse,
|
|
503
|
+
rawResponse: {
|
|
504
|
+
statusCode: currentRawResponse.status,
|
|
505
|
+
body: currentRawResponse.parsedBody,
|
|
506
|
+
headers: currentRawResponse.headers.toJSON()
|
|
507
|
+
}
|
|
508
|
+
};
|
|
509
|
+
};
|
|
510
|
+
const lro = createLroSpec({
|
|
511
|
+
sendOperationFn,
|
|
512
|
+
args: { scope, deploymentName, parameters, options },
|
|
513
|
+
spec: validateAtScopeOperationSpec
|
|
514
|
+
});
|
|
515
|
+
const poller = await createHttpPoller(lro, {
|
|
516
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
517
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
530
518
|
});
|
|
519
|
+
await poller.poll();
|
|
520
|
+
return poller;
|
|
531
521
|
}
|
|
532
522
|
/**
|
|
533
523
|
* Validates whether the specified template is syntactically correct and will be accepted by Azure
|
|
@@ -537,11 +527,9 @@ export class DeploymentsImpl {
|
|
|
537
527
|
* @param parameters Parameters to validate.
|
|
538
528
|
* @param options The options parameters.
|
|
539
529
|
*/
|
|
540
|
-
beginValidateAtScopeAndWait(scope, deploymentName, parameters, options) {
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
return poller.pollUntilDone();
|
|
544
|
-
});
|
|
530
|
+
async beginValidateAtScopeAndWait(scope, deploymentName, parameters, options) {
|
|
531
|
+
const poller = await this.beginValidateAtScope(scope, deploymentName, parameters, options);
|
|
532
|
+
return poller.pollUntilDone();
|
|
545
533
|
}
|
|
546
534
|
/**
|
|
547
535
|
* Exports the template used for specified deployment.
|
|
@@ -571,42 +559,40 @@ export class DeploymentsImpl {
|
|
|
571
559
|
* @param deploymentName The name of the deployment.
|
|
572
560
|
* @param options The options parameters.
|
|
573
561
|
*/
|
|
574
|
-
beginDeleteAtTenantScope(deploymentName, options) {
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
spec: deleteAtTenantScopeOperationSpec
|
|
602
|
-
});
|
|
603
|
-
const poller = yield createHttpPoller(lro, {
|
|
604
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
605
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
606
|
-
});
|
|
607
|
-
yield poller.poll();
|
|
608
|
-
return poller;
|
|
562
|
+
async beginDeleteAtTenantScope(deploymentName, options) {
|
|
563
|
+
const directSendOperation = async (args, spec) => {
|
|
564
|
+
return this.client.sendOperationRequest(args, spec);
|
|
565
|
+
};
|
|
566
|
+
const sendOperationFn = async (args, spec) => {
|
|
567
|
+
var _a;
|
|
568
|
+
let currentRawResponse = undefined;
|
|
569
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
570
|
+
const callback = (rawResponse, flatResponse) => {
|
|
571
|
+
currentRawResponse = rawResponse;
|
|
572
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
573
|
+
};
|
|
574
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
575
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
576
|
+
return {
|
|
577
|
+
flatResponse,
|
|
578
|
+
rawResponse: {
|
|
579
|
+
statusCode: currentRawResponse.status,
|
|
580
|
+
body: currentRawResponse.parsedBody,
|
|
581
|
+
headers: currentRawResponse.headers.toJSON()
|
|
582
|
+
}
|
|
583
|
+
};
|
|
584
|
+
};
|
|
585
|
+
const lro = createLroSpec({
|
|
586
|
+
sendOperationFn,
|
|
587
|
+
args: { deploymentName, options },
|
|
588
|
+
spec: deleteAtTenantScopeOperationSpec
|
|
609
589
|
});
|
|
590
|
+
const poller = await createHttpPoller(lro, {
|
|
591
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
592
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
593
|
+
});
|
|
594
|
+
await poller.poll();
|
|
595
|
+
return poller;
|
|
610
596
|
}
|
|
611
597
|
/**
|
|
612
598
|
* A template deployment that is currently running cannot be deleted. Deleting a template deployment
|
|
@@ -619,11 +605,9 @@ export class DeploymentsImpl {
|
|
|
619
605
|
* @param deploymentName The name of the deployment.
|
|
620
606
|
* @param options The options parameters.
|
|
621
607
|
*/
|
|
622
|
-
beginDeleteAtTenantScopeAndWait(deploymentName, options) {
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
return poller.pollUntilDone();
|
|
626
|
-
});
|
|
608
|
+
async beginDeleteAtTenantScopeAndWait(deploymentName, options) {
|
|
609
|
+
const poller = await this.beginDeleteAtTenantScope(deploymentName, options);
|
|
610
|
+
return poller.pollUntilDone();
|
|
627
611
|
}
|
|
628
612
|
/**
|
|
629
613
|
* Checks whether the deployment exists.
|
|
@@ -639,42 +623,40 @@ export class DeploymentsImpl {
|
|
|
639
623
|
* @param parameters Additional parameters supplied to the operation.
|
|
640
624
|
* @param options The options parameters.
|
|
641
625
|
*/
|
|
642
|
-
beginCreateOrUpdateAtTenantScope(deploymentName, parameters, options) {
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
674
|
-
});
|
|
675
|
-
yield poller.poll();
|
|
676
|
-
return poller;
|
|
626
|
+
async beginCreateOrUpdateAtTenantScope(deploymentName, parameters, options) {
|
|
627
|
+
const directSendOperation = async (args, spec) => {
|
|
628
|
+
return this.client.sendOperationRequest(args, spec);
|
|
629
|
+
};
|
|
630
|
+
const sendOperationFn = async (args, spec) => {
|
|
631
|
+
var _a;
|
|
632
|
+
let currentRawResponse = undefined;
|
|
633
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
634
|
+
const callback = (rawResponse, flatResponse) => {
|
|
635
|
+
currentRawResponse = rawResponse;
|
|
636
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
637
|
+
};
|
|
638
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
639
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
640
|
+
return {
|
|
641
|
+
flatResponse,
|
|
642
|
+
rawResponse: {
|
|
643
|
+
statusCode: currentRawResponse.status,
|
|
644
|
+
body: currentRawResponse.parsedBody,
|
|
645
|
+
headers: currentRawResponse.headers.toJSON()
|
|
646
|
+
}
|
|
647
|
+
};
|
|
648
|
+
};
|
|
649
|
+
const lro = createLroSpec({
|
|
650
|
+
sendOperationFn,
|
|
651
|
+
args: { deploymentName, parameters, options },
|
|
652
|
+
spec: createOrUpdateAtTenantScopeOperationSpec
|
|
653
|
+
});
|
|
654
|
+
const poller = await createHttpPoller(lro, {
|
|
655
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
656
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
677
657
|
});
|
|
658
|
+
await poller.poll();
|
|
659
|
+
return poller;
|
|
678
660
|
}
|
|
679
661
|
/**
|
|
680
662
|
* You can provide the template and parameters directly in the request or link to JSON files.
|
|
@@ -682,11 +664,9 @@ export class DeploymentsImpl {
|
|
|
682
664
|
* @param parameters Additional parameters supplied to the operation.
|
|
683
665
|
* @param options The options parameters.
|
|
684
666
|
*/
|
|
685
|
-
beginCreateOrUpdateAtTenantScopeAndWait(deploymentName, parameters, options) {
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
return poller.pollUntilDone();
|
|
689
|
-
});
|
|
667
|
+
async beginCreateOrUpdateAtTenantScopeAndWait(deploymentName, parameters, options) {
|
|
668
|
+
const poller = await this.beginCreateOrUpdateAtTenantScope(deploymentName, parameters, options);
|
|
669
|
+
return poller.pollUntilDone();
|
|
690
670
|
}
|
|
691
671
|
/**
|
|
692
672
|
* Gets a deployment.
|
|
@@ -713,42 +693,40 @@ export class DeploymentsImpl {
|
|
|
713
693
|
* @param parameters Parameters to validate.
|
|
714
694
|
* @param options The options parameters.
|
|
715
695
|
*/
|
|
716
|
-
beginValidateAtTenantScope(deploymentName, parameters, options) {
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
748
|
-
});
|
|
749
|
-
yield poller.poll();
|
|
750
|
-
return poller;
|
|
696
|
+
async beginValidateAtTenantScope(deploymentName, parameters, options) {
|
|
697
|
+
const directSendOperation = async (args, spec) => {
|
|
698
|
+
return this.client.sendOperationRequest(args, spec);
|
|
699
|
+
};
|
|
700
|
+
const sendOperationFn = async (args, spec) => {
|
|
701
|
+
var _a;
|
|
702
|
+
let currentRawResponse = undefined;
|
|
703
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
704
|
+
const callback = (rawResponse, flatResponse) => {
|
|
705
|
+
currentRawResponse = rawResponse;
|
|
706
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
707
|
+
};
|
|
708
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
709
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
710
|
+
return {
|
|
711
|
+
flatResponse,
|
|
712
|
+
rawResponse: {
|
|
713
|
+
statusCode: currentRawResponse.status,
|
|
714
|
+
body: currentRawResponse.parsedBody,
|
|
715
|
+
headers: currentRawResponse.headers.toJSON()
|
|
716
|
+
}
|
|
717
|
+
};
|
|
718
|
+
};
|
|
719
|
+
const lro = createLroSpec({
|
|
720
|
+
sendOperationFn,
|
|
721
|
+
args: { deploymentName, parameters, options },
|
|
722
|
+
spec: validateAtTenantScopeOperationSpec
|
|
723
|
+
});
|
|
724
|
+
const poller = await createHttpPoller(lro, {
|
|
725
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
726
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
751
727
|
});
|
|
728
|
+
await poller.poll();
|
|
729
|
+
return poller;
|
|
752
730
|
}
|
|
753
731
|
/**
|
|
754
732
|
* Validates whether the specified template is syntactically correct and will be accepted by Azure
|
|
@@ -757,11 +735,9 @@ export class DeploymentsImpl {
|
|
|
757
735
|
* @param parameters Parameters to validate.
|
|
758
736
|
* @param options The options parameters.
|
|
759
737
|
*/
|
|
760
|
-
beginValidateAtTenantScopeAndWait(deploymentName, parameters, options) {
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
return poller.pollUntilDone();
|
|
764
|
-
});
|
|
738
|
+
async beginValidateAtTenantScopeAndWait(deploymentName, parameters, options) {
|
|
739
|
+
const poller = await this.beginValidateAtTenantScope(deploymentName, parameters, options);
|
|
740
|
+
return poller.pollUntilDone();
|
|
765
741
|
}
|
|
766
742
|
/**
|
|
767
743
|
* Returns changes that will be made by the deployment if executed at the scope of the tenant group.
|
|
@@ -769,43 +745,41 @@ export class DeploymentsImpl {
|
|
|
769
745
|
* @param parameters Parameters to validate.
|
|
770
746
|
* @param options The options parameters.
|
|
771
747
|
*/
|
|
772
|
-
beginWhatIfAtTenantScope(deploymentName, parameters, options) {
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
spec: whatIfAtTenantScopeOperationSpec
|
|
800
|
-
});
|
|
801
|
-
const poller = yield createHttpPoller(lro, {
|
|
802
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
803
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
804
|
-
resourceLocationConfig: "location"
|
|
805
|
-
});
|
|
806
|
-
yield poller.poll();
|
|
807
|
-
return poller;
|
|
748
|
+
async beginWhatIfAtTenantScope(deploymentName, parameters, options) {
|
|
749
|
+
const directSendOperation = async (args, spec) => {
|
|
750
|
+
return this.client.sendOperationRequest(args, spec);
|
|
751
|
+
};
|
|
752
|
+
const sendOperationFn = async (args, spec) => {
|
|
753
|
+
var _a;
|
|
754
|
+
let currentRawResponse = undefined;
|
|
755
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
756
|
+
const callback = (rawResponse, flatResponse) => {
|
|
757
|
+
currentRawResponse = rawResponse;
|
|
758
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
759
|
+
};
|
|
760
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
761
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
762
|
+
return {
|
|
763
|
+
flatResponse,
|
|
764
|
+
rawResponse: {
|
|
765
|
+
statusCode: currentRawResponse.status,
|
|
766
|
+
body: currentRawResponse.parsedBody,
|
|
767
|
+
headers: currentRawResponse.headers.toJSON()
|
|
768
|
+
}
|
|
769
|
+
};
|
|
770
|
+
};
|
|
771
|
+
const lro = createLroSpec({
|
|
772
|
+
sendOperationFn,
|
|
773
|
+
args: { deploymentName, parameters, options },
|
|
774
|
+
spec: whatIfAtTenantScopeOperationSpec
|
|
808
775
|
});
|
|
776
|
+
const poller = await createHttpPoller(lro, {
|
|
777
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
778
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
779
|
+
resourceLocationConfig: "location"
|
|
780
|
+
});
|
|
781
|
+
await poller.poll();
|
|
782
|
+
return poller;
|
|
809
783
|
}
|
|
810
784
|
/**
|
|
811
785
|
* Returns changes that will be made by the deployment if executed at the scope of the tenant group.
|
|
@@ -813,11 +787,9 @@ export class DeploymentsImpl {
|
|
|
813
787
|
* @param parameters Parameters to validate.
|
|
814
788
|
* @param options The options parameters.
|
|
815
789
|
*/
|
|
816
|
-
beginWhatIfAtTenantScopeAndWait(deploymentName, parameters, options) {
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
return poller.pollUntilDone();
|
|
820
|
-
});
|
|
790
|
+
async beginWhatIfAtTenantScopeAndWait(deploymentName, parameters, options) {
|
|
791
|
+
const poller = await this.beginWhatIfAtTenantScope(deploymentName, parameters, options);
|
|
792
|
+
return poller.pollUntilDone();
|
|
821
793
|
}
|
|
822
794
|
/**
|
|
823
795
|
* Exports the template used for specified deployment.
|
|
@@ -846,42 +818,40 @@ export class DeploymentsImpl {
|
|
|
846
818
|
* @param deploymentName The name of the deployment.
|
|
847
819
|
* @param options The options parameters.
|
|
848
820
|
*/
|
|
849
|
-
beginDeleteAtManagementGroupScope(groupId, deploymentName, options) {
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
881
|
-
});
|
|
882
|
-
yield poller.poll();
|
|
883
|
-
return poller;
|
|
821
|
+
async beginDeleteAtManagementGroupScope(groupId, deploymentName, options) {
|
|
822
|
+
const directSendOperation = async (args, spec) => {
|
|
823
|
+
return this.client.sendOperationRequest(args, spec);
|
|
824
|
+
};
|
|
825
|
+
const sendOperationFn = async (args, spec) => {
|
|
826
|
+
var _a;
|
|
827
|
+
let currentRawResponse = undefined;
|
|
828
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
829
|
+
const callback = (rawResponse, flatResponse) => {
|
|
830
|
+
currentRawResponse = rawResponse;
|
|
831
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
832
|
+
};
|
|
833
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
834
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
835
|
+
return {
|
|
836
|
+
flatResponse,
|
|
837
|
+
rawResponse: {
|
|
838
|
+
statusCode: currentRawResponse.status,
|
|
839
|
+
body: currentRawResponse.parsedBody,
|
|
840
|
+
headers: currentRawResponse.headers.toJSON()
|
|
841
|
+
}
|
|
842
|
+
};
|
|
843
|
+
};
|
|
844
|
+
const lro = createLroSpec({
|
|
845
|
+
sendOperationFn,
|
|
846
|
+
args: { groupId, deploymentName, options },
|
|
847
|
+
spec: deleteAtManagementGroupScopeOperationSpec
|
|
848
|
+
});
|
|
849
|
+
const poller = await createHttpPoller(lro, {
|
|
850
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
851
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
884
852
|
});
|
|
853
|
+
await poller.poll();
|
|
854
|
+
return poller;
|
|
885
855
|
}
|
|
886
856
|
/**
|
|
887
857
|
* A template deployment that is currently running cannot be deleted. Deleting a template deployment
|
|
@@ -895,11 +865,9 @@ export class DeploymentsImpl {
|
|
|
895
865
|
* @param deploymentName The name of the deployment.
|
|
896
866
|
* @param options The options parameters.
|
|
897
867
|
*/
|
|
898
|
-
beginDeleteAtManagementGroupScopeAndWait(groupId, deploymentName, options) {
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
return poller.pollUntilDone();
|
|
902
|
-
});
|
|
868
|
+
async beginDeleteAtManagementGroupScopeAndWait(groupId, deploymentName, options) {
|
|
869
|
+
const poller = await this.beginDeleteAtManagementGroupScope(groupId, deploymentName, options);
|
|
870
|
+
return poller.pollUntilDone();
|
|
903
871
|
}
|
|
904
872
|
/**
|
|
905
873
|
* Checks whether the deployment exists.
|
|
@@ -917,42 +885,40 @@ export class DeploymentsImpl {
|
|
|
917
885
|
* @param parameters Additional parameters supplied to the operation.
|
|
918
886
|
* @param options The options parameters.
|
|
919
887
|
*/
|
|
920
|
-
beginCreateOrUpdateAtManagementGroupScope(groupId, deploymentName, parameters, options) {
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
952
|
-
});
|
|
953
|
-
yield poller.poll();
|
|
954
|
-
return poller;
|
|
888
|
+
async beginCreateOrUpdateAtManagementGroupScope(groupId, deploymentName, parameters, options) {
|
|
889
|
+
const directSendOperation = async (args, spec) => {
|
|
890
|
+
return this.client.sendOperationRequest(args, spec);
|
|
891
|
+
};
|
|
892
|
+
const sendOperationFn = async (args, spec) => {
|
|
893
|
+
var _a;
|
|
894
|
+
let currentRawResponse = undefined;
|
|
895
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
896
|
+
const callback = (rawResponse, flatResponse) => {
|
|
897
|
+
currentRawResponse = rawResponse;
|
|
898
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
899
|
+
};
|
|
900
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
901
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
902
|
+
return {
|
|
903
|
+
flatResponse,
|
|
904
|
+
rawResponse: {
|
|
905
|
+
statusCode: currentRawResponse.status,
|
|
906
|
+
body: currentRawResponse.parsedBody,
|
|
907
|
+
headers: currentRawResponse.headers.toJSON()
|
|
908
|
+
}
|
|
909
|
+
};
|
|
910
|
+
};
|
|
911
|
+
const lro = createLroSpec({
|
|
912
|
+
sendOperationFn,
|
|
913
|
+
args: { groupId, deploymentName, parameters, options },
|
|
914
|
+
spec: createOrUpdateAtManagementGroupScopeOperationSpec
|
|
915
|
+
});
|
|
916
|
+
const poller = await createHttpPoller(lro, {
|
|
917
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
918
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
955
919
|
});
|
|
920
|
+
await poller.poll();
|
|
921
|
+
return poller;
|
|
956
922
|
}
|
|
957
923
|
/**
|
|
958
924
|
* You can provide the template and parameters directly in the request or link to JSON files.
|
|
@@ -961,11 +927,9 @@ export class DeploymentsImpl {
|
|
|
961
927
|
* @param parameters Additional parameters supplied to the operation.
|
|
962
928
|
* @param options The options parameters.
|
|
963
929
|
*/
|
|
964
|
-
beginCreateOrUpdateAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
return poller.pollUntilDone();
|
|
968
|
-
});
|
|
930
|
+
async beginCreateOrUpdateAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
|
|
931
|
+
const poller = await this.beginCreateOrUpdateAtManagementGroupScope(groupId, deploymentName, parameters, options);
|
|
932
|
+
return poller.pollUntilDone();
|
|
969
933
|
}
|
|
970
934
|
/**
|
|
971
935
|
* Gets a deployment.
|
|
@@ -995,42 +959,40 @@ export class DeploymentsImpl {
|
|
|
995
959
|
* @param parameters Parameters to validate.
|
|
996
960
|
* @param options The options parameters.
|
|
997
961
|
*/
|
|
998
|
-
beginValidateAtManagementGroupScope(groupId, deploymentName, parameters, options) {
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
spec: validateAtManagementGroupScopeOperationSpec
|
|
1026
|
-
});
|
|
1027
|
-
const poller = yield createHttpPoller(lro, {
|
|
1028
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1029
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1030
|
-
});
|
|
1031
|
-
yield poller.poll();
|
|
1032
|
-
return poller;
|
|
962
|
+
async beginValidateAtManagementGroupScope(groupId, deploymentName, parameters, options) {
|
|
963
|
+
const directSendOperation = async (args, spec) => {
|
|
964
|
+
return this.client.sendOperationRequest(args, spec);
|
|
965
|
+
};
|
|
966
|
+
const sendOperationFn = async (args, spec) => {
|
|
967
|
+
var _a;
|
|
968
|
+
let currentRawResponse = undefined;
|
|
969
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
970
|
+
const callback = (rawResponse, flatResponse) => {
|
|
971
|
+
currentRawResponse = rawResponse;
|
|
972
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
973
|
+
};
|
|
974
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
975
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
976
|
+
return {
|
|
977
|
+
flatResponse,
|
|
978
|
+
rawResponse: {
|
|
979
|
+
statusCode: currentRawResponse.status,
|
|
980
|
+
body: currentRawResponse.parsedBody,
|
|
981
|
+
headers: currentRawResponse.headers.toJSON()
|
|
982
|
+
}
|
|
983
|
+
};
|
|
984
|
+
};
|
|
985
|
+
const lro = createLroSpec({
|
|
986
|
+
sendOperationFn,
|
|
987
|
+
args: { groupId, deploymentName, parameters, options },
|
|
988
|
+
spec: validateAtManagementGroupScopeOperationSpec
|
|
1033
989
|
});
|
|
990
|
+
const poller = await createHttpPoller(lro, {
|
|
991
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
992
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
993
|
+
});
|
|
994
|
+
await poller.poll();
|
|
995
|
+
return poller;
|
|
1034
996
|
}
|
|
1035
997
|
/**
|
|
1036
998
|
* Validates whether the specified template is syntactically correct and will be accepted by Azure
|
|
@@ -1040,11 +1002,9 @@ export class DeploymentsImpl {
|
|
|
1040
1002
|
* @param parameters Parameters to validate.
|
|
1041
1003
|
* @param options The options parameters.
|
|
1042
1004
|
*/
|
|
1043
|
-
beginValidateAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
return poller.pollUntilDone();
|
|
1047
|
-
});
|
|
1005
|
+
async beginValidateAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
|
|
1006
|
+
const poller = await this.beginValidateAtManagementGroupScope(groupId, deploymentName, parameters, options);
|
|
1007
|
+
return poller.pollUntilDone();
|
|
1048
1008
|
}
|
|
1049
1009
|
/**
|
|
1050
1010
|
* Returns changes that will be made by the deployment if executed at the scope of the management
|
|
@@ -1054,43 +1014,41 @@ export class DeploymentsImpl {
|
|
|
1054
1014
|
* @param parameters Parameters to validate.
|
|
1055
1015
|
* @param options The options parameters.
|
|
1056
1016
|
*/
|
|
1057
|
-
beginWhatIfAtManagementGroupScope(groupId, deploymentName, parameters, options) {
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
resourceLocationConfig: "location"
|
|
1090
|
-
});
|
|
1091
|
-
yield poller.poll();
|
|
1092
|
-
return poller;
|
|
1017
|
+
async beginWhatIfAtManagementGroupScope(groupId, deploymentName, parameters, options) {
|
|
1018
|
+
const directSendOperation = async (args, spec) => {
|
|
1019
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1020
|
+
};
|
|
1021
|
+
const sendOperationFn = async (args, spec) => {
|
|
1022
|
+
var _a;
|
|
1023
|
+
let currentRawResponse = undefined;
|
|
1024
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1025
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1026
|
+
currentRawResponse = rawResponse;
|
|
1027
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1028
|
+
};
|
|
1029
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1030
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1031
|
+
return {
|
|
1032
|
+
flatResponse,
|
|
1033
|
+
rawResponse: {
|
|
1034
|
+
statusCode: currentRawResponse.status,
|
|
1035
|
+
body: currentRawResponse.parsedBody,
|
|
1036
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1037
|
+
}
|
|
1038
|
+
};
|
|
1039
|
+
};
|
|
1040
|
+
const lro = createLroSpec({
|
|
1041
|
+
sendOperationFn,
|
|
1042
|
+
args: { groupId, deploymentName, parameters, options },
|
|
1043
|
+
spec: whatIfAtManagementGroupScopeOperationSpec
|
|
1044
|
+
});
|
|
1045
|
+
const poller = await createHttpPoller(lro, {
|
|
1046
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1047
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1048
|
+
resourceLocationConfig: "location"
|
|
1093
1049
|
});
|
|
1050
|
+
await poller.poll();
|
|
1051
|
+
return poller;
|
|
1094
1052
|
}
|
|
1095
1053
|
/**
|
|
1096
1054
|
* Returns changes that will be made by the deployment if executed at the scope of the management
|
|
@@ -1100,11 +1058,9 @@ export class DeploymentsImpl {
|
|
|
1100
1058
|
* @param parameters Parameters to validate.
|
|
1101
1059
|
* @param options The options parameters.
|
|
1102
1060
|
*/
|
|
1103
|
-
beginWhatIfAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
return poller.pollUntilDone();
|
|
1107
|
-
});
|
|
1061
|
+
async beginWhatIfAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
|
|
1062
|
+
const poller = await this.beginWhatIfAtManagementGroupScope(groupId, deploymentName, parameters, options);
|
|
1063
|
+
return poller.pollUntilDone();
|
|
1108
1064
|
}
|
|
1109
1065
|
/**
|
|
1110
1066
|
* Exports the template used for specified deployment.
|
|
@@ -1134,42 +1090,40 @@ export class DeploymentsImpl {
|
|
|
1134
1090
|
* @param deploymentName The name of the deployment.
|
|
1135
1091
|
* @param options The options parameters.
|
|
1136
1092
|
*/
|
|
1137
|
-
beginDeleteAtSubscriptionScope(deploymentName, options) {
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1169
|
-
});
|
|
1170
|
-
yield poller.poll();
|
|
1171
|
-
return poller;
|
|
1093
|
+
async beginDeleteAtSubscriptionScope(deploymentName, options) {
|
|
1094
|
+
const directSendOperation = async (args, spec) => {
|
|
1095
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1096
|
+
};
|
|
1097
|
+
const sendOperationFn = async (args, spec) => {
|
|
1098
|
+
var _a;
|
|
1099
|
+
let currentRawResponse = undefined;
|
|
1100
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1101
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1102
|
+
currentRawResponse = rawResponse;
|
|
1103
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1104
|
+
};
|
|
1105
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1106
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1107
|
+
return {
|
|
1108
|
+
flatResponse,
|
|
1109
|
+
rawResponse: {
|
|
1110
|
+
statusCode: currentRawResponse.status,
|
|
1111
|
+
body: currentRawResponse.parsedBody,
|
|
1112
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1113
|
+
}
|
|
1114
|
+
};
|
|
1115
|
+
};
|
|
1116
|
+
const lro = createLroSpec({
|
|
1117
|
+
sendOperationFn,
|
|
1118
|
+
args: { deploymentName, options },
|
|
1119
|
+
spec: deleteAtSubscriptionScopeOperationSpec
|
|
1120
|
+
});
|
|
1121
|
+
const poller = await createHttpPoller(lro, {
|
|
1122
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1123
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1172
1124
|
});
|
|
1125
|
+
await poller.poll();
|
|
1126
|
+
return poller;
|
|
1173
1127
|
}
|
|
1174
1128
|
/**
|
|
1175
1129
|
* A template deployment that is currently running cannot be deleted. Deleting a template deployment
|
|
@@ -1182,11 +1136,9 @@ export class DeploymentsImpl {
|
|
|
1182
1136
|
* @param deploymentName The name of the deployment.
|
|
1183
1137
|
* @param options The options parameters.
|
|
1184
1138
|
*/
|
|
1185
|
-
beginDeleteAtSubscriptionScopeAndWait(deploymentName, options) {
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
return poller.pollUntilDone();
|
|
1189
|
-
});
|
|
1139
|
+
async beginDeleteAtSubscriptionScopeAndWait(deploymentName, options) {
|
|
1140
|
+
const poller = await this.beginDeleteAtSubscriptionScope(deploymentName, options);
|
|
1141
|
+
return poller.pollUntilDone();
|
|
1190
1142
|
}
|
|
1191
1143
|
/**
|
|
1192
1144
|
* Checks whether the deployment exists.
|
|
@@ -1202,42 +1154,40 @@ export class DeploymentsImpl {
|
|
|
1202
1154
|
* @param parameters Additional parameters supplied to the operation.
|
|
1203
1155
|
* @param options The options parameters.
|
|
1204
1156
|
*/
|
|
1205
|
-
beginCreateOrUpdateAtSubscriptionScope(deploymentName, parameters, options) {
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
spec: createOrUpdateAtSubscriptionScopeOperationSpec
|
|
1233
|
-
});
|
|
1234
|
-
const poller = yield createHttpPoller(lro, {
|
|
1235
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1236
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1237
|
-
});
|
|
1238
|
-
yield poller.poll();
|
|
1239
|
-
return poller;
|
|
1157
|
+
async beginCreateOrUpdateAtSubscriptionScope(deploymentName, parameters, options) {
|
|
1158
|
+
const directSendOperation = async (args, spec) => {
|
|
1159
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1160
|
+
};
|
|
1161
|
+
const sendOperationFn = async (args, spec) => {
|
|
1162
|
+
var _a;
|
|
1163
|
+
let currentRawResponse = undefined;
|
|
1164
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1165
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1166
|
+
currentRawResponse = rawResponse;
|
|
1167
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1168
|
+
};
|
|
1169
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1170
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1171
|
+
return {
|
|
1172
|
+
flatResponse,
|
|
1173
|
+
rawResponse: {
|
|
1174
|
+
statusCode: currentRawResponse.status,
|
|
1175
|
+
body: currentRawResponse.parsedBody,
|
|
1176
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1177
|
+
}
|
|
1178
|
+
};
|
|
1179
|
+
};
|
|
1180
|
+
const lro = createLroSpec({
|
|
1181
|
+
sendOperationFn,
|
|
1182
|
+
args: { deploymentName, parameters, options },
|
|
1183
|
+
spec: createOrUpdateAtSubscriptionScopeOperationSpec
|
|
1240
1184
|
});
|
|
1185
|
+
const poller = await createHttpPoller(lro, {
|
|
1186
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1187
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1188
|
+
});
|
|
1189
|
+
await poller.poll();
|
|
1190
|
+
return poller;
|
|
1241
1191
|
}
|
|
1242
1192
|
/**
|
|
1243
1193
|
* You can provide the template and parameters directly in the request or link to JSON files.
|
|
@@ -1245,11 +1195,9 @@ export class DeploymentsImpl {
|
|
|
1245
1195
|
* @param parameters Additional parameters supplied to the operation.
|
|
1246
1196
|
* @param options The options parameters.
|
|
1247
1197
|
*/
|
|
1248
|
-
beginCreateOrUpdateAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
return poller.pollUntilDone();
|
|
1252
|
-
});
|
|
1198
|
+
async beginCreateOrUpdateAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
|
|
1199
|
+
const poller = await this.beginCreateOrUpdateAtSubscriptionScope(deploymentName, parameters, options);
|
|
1200
|
+
return poller.pollUntilDone();
|
|
1253
1201
|
}
|
|
1254
1202
|
/**
|
|
1255
1203
|
* Gets a deployment.
|
|
@@ -1276,42 +1224,40 @@ export class DeploymentsImpl {
|
|
|
1276
1224
|
* @param parameters Parameters to validate.
|
|
1277
1225
|
* @param options The options parameters.
|
|
1278
1226
|
*/
|
|
1279
|
-
beginValidateAtSubscriptionScope(deploymentName, parameters, options) {
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1311
|
-
});
|
|
1312
|
-
yield poller.poll();
|
|
1313
|
-
return poller;
|
|
1227
|
+
async beginValidateAtSubscriptionScope(deploymentName, parameters, options) {
|
|
1228
|
+
const directSendOperation = async (args, spec) => {
|
|
1229
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1230
|
+
};
|
|
1231
|
+
const sendOperationFn = async (args, spec) => {
|
|
1232
|
+
var _a;
|
|
1233
|
+
let currentRawResponse = undefined;
|
|
1234
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1235
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1236
|
+
currentRawResponse = rawResponse;
|
|
1237
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1238
|
+
};
|
|
1239
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1240
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1241
|
+
return {
|
|
1242
|
+
flatResponse,
|
|
1243
|
+
rawResponse: {
|
|
1244
|
+
statusCode: currentRawResponse.status,
|
|
1245
|
+
body: currentRawResponse.parsedBody,
|
|
1246
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1247
|
+
}
|
|
1248
|
+
};
|
|
1249
|
+
};
|
|
1250
|
+
const lro = createLroSpec({
|
|
1251
|
+
sendOperationFn,
|
|
1252
|
+
args: { deploymentName, parameters, options },
|
|
1253
|
+
spec: validateAtSubscriptionScopeOperationSpec
|
|
1254
|
+
});
|
|
1255
|
+
const poller = await createHttpPoller(lro, {
|
|
1256
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1257
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1314
1258
|
});
|
|
1259
|
+
await poller.poll();
|
|
1260
|
+
return poller;
|
|
1315
1261
|
}
|
|
1316
1262
|
/**
|
|
1317
1263
|
* Validates whether the specified template is syntactically correct and will be accepted by Azure
|
|
@@ -1320,11 +1266,9 @@ export class DeploymentsImpl {
|
|
|
1320
1266
|
* @param parameters Parameters to validate.
|
|
1321
1267
|
* @param options The options parameters.
|
|
1322
1268
|
*/
|
|
1323
|
-
beginValidateAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
return poller.pollUntilDone();
|
|
1327
|
-
});
|
|
1269
|
+
async beginValidateAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
|
|
1270
|
+
const poller = await this.beginValidateAtSubscriptionScope(deploymentName, parameters, options);
|
|
1271
|
+
return poller.pollUntilDone();
|
|
1328
1272
|
}
|
|
1329
1273
|
/**
|
|
1330
1274
|
* Returns changes that will be made by the deployment if executed at the scope of the subscription.
|
|
@@ -1332,43 +1276,41 @@ export class DeploymentsImpl {
|
|
|
1332
1276
|
* @param parameters Parameters to What If.
|
|
1333
1277
|
* @param options The options parameters.
|
|
1334
1278
|
*/
|
|
1335
|
-
beginWhatIfAtSubscriptionScope(deploymentName, parameters, options) {
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
resourceLocationConfig: "location"
|
|
1368
|
-
});
|
|
1369
|
-
yield poller.poll();
|
|
1370
|
-
return poller;
|
|
1279
|
+
async beginWhatIfAtSubscriptionScope(deploymentName, parameters, options) {
|
|
1280
|
+
const directSendOperation = async (args, spec) => {
|
|
1281
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1282
|
+
};
|
|
1283
|
+
const sendOperationFn = async (args, spec) => {
|
|
1284
|
+
var _a;
|
|
1285
|
+
let currentRawResponse = undefined;
|
|
1286
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1287
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1288
|
+
currentRawResponse = rawResponse;
|
|
1289
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1290
|
+
};
|
|
1291
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1292
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1293
|
+
return {
|
|
1294
|
+
flatResponse,
|
|
1295
|
+
rawResponse: {
|
|
1296
|
+
statusCode: currentRawResponse.status,
|
|
1297
|
+
body: currentRawResponse.parsedBody,
|
|
1298
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1299
|
+
}
|
|
1300
|
+
};
|
|
1301
|
+
};
|
|
1302
|
+
const lro = createLroSpec({
|
|
1303
|
+
sendOperationFn,
|
|
1304
|
+
args: { deploymentName, parameters, options },
|
|
1305
|
+
spec: whatIfAtSubscriptionScopeOperationSpec
|
|
1306
|
+
});
|
|
1307
|
+
const poller = await createHttpPoller(lro, {
|
|
1308
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1309
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1310
|
+
resourceLocationConfig: "location"
|
|
1371
1311
|
});
|
|
1312
|
+
await poller.poll();
|
|
1313
|
+
return poller;
|
|
1372
1314
|
}
|
|
1373
1315
|
/**
|
|
1374
1316
|
* Returns changes that will be made by the deployment if executed at the scope of the subscription.
|
|
@@ -1376,11 +1318,9 @@ export class DeploymentsImpl {
|
|
|
1376
1318
|
* @param parameters Parameters to What If.
|
|
1377
1319
|
* @param options The options parameters.
|
|
1378
1320
|
*/
|
|
1379
|
-
beginWhatIfAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
return poller.pollUntilDone();
|
|
1383
|
-
});
|
|
1321
|
+
async beginWhatIfAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
|
|
1322
|
+
const poller = await this.beginWhatIfAtSubscriptionScope(deploymentName, parameters, options);
|
|
1323
|
+
return poller.pollUntilDone();
|
|
1384
1324
|
}
|
|
1385
1325
|
/**
|
|
1386
1326
|
* Exports the template used for specified deployment.
|
|
@@ -1411,42 +1351,40 @@ export class DeploymentsImpl {
|
|
|
1411
1351
|
* @param deploymentName The name of the deployment.
|
|
1412
1352
|
* @param options The options parameters.
|
|
1413
1353
|
*/
|
|
1414
|
-
beginDelete(resourceGroupName, deploymentName, options) {
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
spec: deleteOperationSpec
|
|
1442
|
-
});
|
|
1443
|
-
const poller = yield createHttpPoller(lro, {
|
|
1444
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1445
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1446
|
-
});
|
|
1447
|
-
yield poller.poll();
|
|
1448
|
-
return poller;
|
|
1354
|
+
async beginDelete(resourceGroupName, deploymentName, options) {
|
|
1355
|
+
const directSendOperation = async (args, spec) => {
|
|
1356
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1357
|
+
};
|
|
1358
|
+
const sendOperationFn = async (args, spec) => {
|
|
1359
|
+
var _a;
|
|
1360
|
+
let currentRawResponse = undefined;
|
|
1361
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1362
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1363
|
+
currentRawResponse = rawResponse;
|
|
1364
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1365
|
+
};
|
|
1366
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1367
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1368
|
+
return {
|
|
1369
|
+
flatResponse,
|
|
1370
|
+
rawResponse: {
|
|
1371
|
+
statusCode: currentRawResponse.status,
|
|
1372
|
+
body: currentRawResponse.parsedBody,
|
|
1373
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1374
|
+
}
|
|
1375
|
+
};
|
|
1376
|
+
};
|
|
1377
|
+
const lro = createLroSpec({
|
|
1378
|
+
sendOperationFn,
|
|
1379
|
+
args: { resourceGroupName, deploymentName, options },
|
|
1380
|
+
spec: deleteOperationSpec
|
|
1449
1381
|
});
|
|
1382
|
+
const poller = await createHttpPoller(lro, {
|
|
1383
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1384
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1385
|
+
});
|
|
1386
|
+
await poller.poll();
|
|
1387
|
+
return poller;
|
|
1450
1388
|
}
|
|
1451
1389
|
/**
|
|
1452
1390
|
* A template deployment that is currently running cannot be deleted. Deleting a template deployment
|
|
@@ -1462,11 +1400,9 @@ export class DeploymentsImpl {
|
|
|
1462
1400
|
* @param deploymentName The name of the deployment.
|
|
1463
1401
|
* @param options The options parameters.
|
|
1464
1402
|
*/
|
|
1465
|
-
beginDeleteAndWait(resourceGroupName, deploymentName, options) {
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
return poller.pollUntilDone();
|
|
1469
|
-
});
|
|
1403
|
+
async beginDeleteAndWait(resourceGroupName, deploymentName, options) {
|
|
1404
|
+
const poller = await this.beginDelete(resourceGroupName, deploymentName, options);
|
|
1405
|
+
return poller.pollUntilDone();
|
|
1470
1406
|
}
|
|
1471
1407
|
/**
|
|
1472
1408
|
* Checks whether the deployment exists.
|
|
@@ -1486,42 +1422,40 @@ export class DeploymentsImpl {
|
|
|
1486
1422
|
* @param parameters Additional parameters supplied to the operation.
|
|
1487
1423
|
* @param options The options parameters.
|
|
1488
1424
|
*/
|
|
1489
|
-
beginCreateOrUpdate(resourceGroupName, deploymentName, parameters, options) {
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1521
|
-
});
|
|
1522
|
-
yield poller.poll();
|
|
1523
|
-
return poller;
|
|
1425
|
+
async beginCreateOrUpdate(resourceGroupName, deploymentName, parameters, options) {
|
|
1426
|
+
const directSendOperation = async (args, spec) => {
|
|
1427
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1428
|
+
};
|
|
1429
|
+
const sendOperationFn = async (args, spec) => {
|
|
1430
|
+
var _a;
|
|
1431
|
+
let currentRawResponse = undefined;
|
|
1432
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1433
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1434
|
+
currentRawResponse = rawResponse;
|
|
1435
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1436
|
+
};
|
|
1437
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1438
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1439
|
+
return {
|
|
1440
|
+
flatResponse,
|
|
1441
|
+
rawResponse: {
|
|
1442
|
+
statusCode: currentRawResponse.status,
|
|
1443
|
+
body: currentRawResponse.parsedBody,
|
|
1444
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1445
|
+
}
|
|
1446
|
+
};
|
|
1447
|
+
};
|
|
1448
|
+
const lro = createLroSpec({
|
|
1449
|
+
sendOperationFn,
|
|
1450
|
+
args: { resourceGroupName, deploymentName, parameters, options },
|
|
1451
|
+
spec: createOrUpdateOperationSpec
|
|
1452
|
+
});
|
|
1453
|
+
const poller = await createHttpPoller(lro, {
|
|
1454
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1455
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1524
1456
|
});
|
|
1457
|
+
await poller.poll();
|
|
1458
|
+
return poller;
|
|
1525
1459
|
}
|
|
1526
1460
|
/**
|
|
1527
1461
|
* You can provide the template and parameters directly in the request or link to JSON files.
|
|
@@ -1531,11 +1465,9 @@ export class DeploymentsImpl {
|
|
|
1531
1465
|
* @param parameters Additional parameters supplied to the operation.
|
|
1532
1466
|
* @param options The options parameters.
|
|
1533
1467
|
*/
|
|
1534
|
-
beginCreateOrUpdateAndWait(resourceGroupName, deploymentName, parameters, options) {
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
return poller.pollUntilDone();
|
|
1538
|
-
});
|
|
1468
|
+
async beginCreateOrUpdateAndWait(resourceGroupName, deploymentName, parameters, options) {
|
|
1469
|
+
const poller = await this.beginCreateOrUpdate(resourceGroupName, deploymentName, parameters, options);
|
|
1470
|
+
return poller.pollUntilDone();
|
|
1539
1471
|
}
|
|
1540
1472
|
/**
|
|
1541
1473
|
* Gets a deployment.
|
|
@@ -1566,42 +1498,40 @@ export class DeploymentsImpl {
|
|
|
1566
1498
|
* @param parameters Parameters to validate.
|
|
1567
1499
|
* @param options The options parameters.
|
|
1568
1500
|
*/
|
|
1569
|
-
beginValidate(resourceGroupName, deploymentName, parameters, options) {
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1601
|
-
});
|
|
1602
|
-
yield poller.poll();
|
|
1603
|
-
return poller;
|
|
1501
|
+
async beginValidate(resourceGroupName, deploymentName, parameters, options) {
|
|
1502
|
+
const directSendOperation = async (args, spec) => {
|
|
1503
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1504
|
+
};
|
|
1505
|
+
const sendOperationFn = async (args, spec) => {
|
|
1506
|
+
var _a;
|
|
1507
|
+
let currentRawResponse = undefined;
|
|
1508
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1509
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1510
|
+
currentRawResponse = rawResponse;
|
|
1511
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1512
|
+
};
|
|
1513
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1514
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1515
|
+
return {
|
|
1516
|
+
flatResponse,
|
|
1517
|
+
rawResponse: {
|
|
1518
|
+
statusCode: currentRawResponse.status,
|
|
1519
|
+
body: currentRawResponse.parsedBody,
|
|
1520
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1521
|
+
}
|
|
1522
|
+
};
|
|
1523
|
+
};
|
|
1524
|
+
const lro = createLroSpec({
|
|
1525
|
+
sendOperationFn,
|
|
1526
|
+
args: { resourceGroupName, deploymentName, parameters, options },
|
|
1527
|
+
spec: validateOperationSpec
|
|
1528
|
+
});
|
|
1529
|
+
const poller = await createHttpPoller(lro, {
|
|
1530
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1531
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1604
1532
|
});
|
|
1533
|
+
await poller.poll();
|
|
1534
|
+
return poller;
|
|
1605
1535
|
}
|
|
1606
1536
|
/**
|
|
1607
1537
|
* Validates whether the specified template is syntactically correct and will be accepted by Azure
|
|
@@ -1612,11 +1542,9 @@ export class DeploymentsImpl {
|
|
|
1612
1542
|
* @param parameters Parameters to validate.
|
|
1613
1543
|
* @param options The options parameters.
|
|
1614
1544
|
*/
|
|
1615
|
-
beginValidateAndWait(resourceGroupName, deploymentName, parameters, options) {
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
return poller.pollUntilDone();
|
|
1619
|
-
});
|
|
1545
|
+
async beginValidateAndWait(resourceGroupName, deploymentName, parameters, options) {
|
|
1546
|
+
const poller = await this.beginValidate(resourceGroupName, deploymentName, parameters, options);
|
|
1547
|
+
return poller.pollUntilDone();
|
|
1620
1548
|
}
|
|
1621
1549
|
/**
|
|
1622
1550
|
* Returns changes that will be made by the deployment if executed at the scope of the resource group.
|
|
@@ -1626,43 +1554,41 @@ export class DeploymentsImpl {
|
|
|
1626
1554
|
* @param parameters Parameters to validate.
|
|
1627
1555
|
* @param options The options parameters.
|
|
1628
1556
|
*/
|
|
1629
|
-
beginWhatIf(resourceGroupName, deploymentName, parameters, options) {
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
spec: whatIfOperationSpec
|
|
1657
|
-
});
|
|
1658
|
-
const poller = yield createHttpPoller(lro, {
|
|
1659
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1660
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1661
|
-
resourceLocationConfig: "location"
|
|
1662
|
-
});
|
|
1663
|
-
yield poller.poll();
|
|
1664
|
-
return poller;
|
|
1557
|
+
async beginWhatIf(resourceGroupName, deploymentName, parameters, options) {
|
|
1558
|
+
const directSendOperation = async (args, spec) => {
|
|
1559
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1560
|
+
};
|
|
1561
|
+
const sendOperationFn = async (args, spec) => {
|
|
1562
|
+
var _a;
|
|
1563
|
+
let currentRawResponse = undefined;
|
|
1564
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1565
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1566
|
+
currentRawResponse = rawResponse;
|
|
1567
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1568
|
+
};
|
|
1569
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1570
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1571
|
+
return {
|
|
1572
|
+
flatResponse,
|
|
1573
|
+
rawResponse: {
|
|
1574
|
+
statusCode: currentRawResponse.status,
|
|
1575
|
+
body: currentRawResponse.parsedBody,
|
|
1576
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1577
|
+
}
|
|
1578
|
+
};
|
|
1579
|
+
};
|
|
1580
|
+
const lro = createLroSpec({
|
|
1581
|
+
sendOperationFn,
|
|
1582
|
+
args: { resourceGroupName, deploymentName, parameters, options },
|
|
1583
|
+
spec: whatIfOperationSpec
|
|
1665
1584
|
});
|
|
1585
|
+
const poller = await createHttpPoller(lro, {
|
|
1586
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1587
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1588
|
+
resourceLocationConfig: "location"
|
|
1589
|
+
});
|
|
1590
|
+
await poller.poll();
|
|
1591
|
+
return poller;
|
|
1666
1592
|
}
|
|
1667
1593
|
/**
|
|
1668
1594
|
* Returns changes that will be made by the deployment if executed at the scope of the resource group.
|
|
@@ -1672,11 +1598,9 @@ export class DeploymentsImpl {
|
|
|
1672
1598
|
* @param parameters Parameters to validate.
|
|
1673
1599
|
* @param options The options parameters.
|
|
1674
1600
|
*/
|
|
1675
|
-
beginWhatIfAndWait(resourceGroupName, deploymentName, parameters, options) {
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
return poller.pollUntilDone();
|
|
1679
|
-
});
|
|
1601
|
+
async beginWhatIfAndWait(resourceGroupName, deploymentName, parameters, options) {
|
|
1602
|
+
const poller = await this.beginWhatIf(resourceGroupName, deploymentName, parameters, options);
|
|
1603
|
+
return poller.pollUntilDone();
|
|
1680
1604
|
}
|
|
1681
1605
|
/**
|
|
1682
1606
|
* Exports the template used for specified deployment.
|