@azure/arm-resources-profile-2020-09-01-hybrid 2.1.1-alpha.20250210.1 → 2.1.1-alpha.20250218.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 +25 -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 +617 -693
- package/dist/browser/operations/deployments.js.map +1 -0
- package/dist/browser/operations/index.d.ts +8 -0
- package/dist/browser/operations/index.d.ts.map +1 -0
- package/dist/browser/operations/index.js +15 -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/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 +70 -78
- 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 +287 -319
- 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 +8 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/index.js +15 -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/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 +16 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +29 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +1659 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +21 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +75 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +2316 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +38 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +336 -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 +2694 -0
- package/dist/commonjs/operations/deployments.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +8 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +18 -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/providers.d.ts +74 -0
- package/dist/commonjs/operations/providers.d.ts.map +1 -0
- package/dist/commonjs/operations/providers.js +356 -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 +414 -0
- package/dist/commonjs/operations/resourceGroups.js.map +1 -0
- package/dist/commonjs/operations/resources.d.ts +274 -0
- package/dist/commonjs/operations/resources.d.ts.map +1 -0
- package/dist/commonjs/operations/resources.js +1096 -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 +8 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +18 -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/providers.d.ts +40 -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 +238 -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 +26 -0
- package/dist/commonjs/resourceManagementClient.d.ts.map +1 -0
- package/dist/commonjs/resourceManagementClient.js +108 -0
- package/dist/commonjs/resourceManagementClient.js.map +1 -0
- 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 +16 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +25 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +1659 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +18 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +75 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +2312 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +38 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +333 -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 +2690 -0
- package/dist/esm/operations/deployments.js.map +1 -0
- package/dist/esm/operations/index.d.ts +8 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +15 -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/providers.d.ts +74 -0
- package/dist/esm/operations/providers.d.ts.map +1 -0
- package/dist/esm/operations/providers.js +352 -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 +410 -0
- package/dist/esm/operations/resourceGroups.js.map +1 -0
- package/dist/esm/operations/resources.d.ts +274 -0
- package/dist/esm/operations/resources.d.ts.map +1 -0
- package/dist/esm/operations/resources.js +1092 -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 +8 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +15 -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/providers.d.ts +40 -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 +238 -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 +26 -0
- package/dist/esm/resourceManagementClient.d.ts.map +1 -0
- package/dist/esm/resourceManagementClient.js +103 -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 +16 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +25 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +1659 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +18 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +75 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +2312 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +38 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +333 -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 +2690 -0
- package/dist/react-native/operations/deployments.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +8 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +15 -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/providers.d.ts +74 -0
- package/dist/react-native/operations/providers.d.ts.map +1 -0
- package/dist/react-native/operations/providers.js +352 -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 +410 -0
- package/dist/react-native/operations/resourceGroups.js.map +1 -0
- package/dist/react-native/operations/resources.d.ts +274 -0
- package/dist/react-native/operations/resources.d.ts.map +1 -0
- package/dist/react-native/operations/resources.js +1092 -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 +8 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +15 -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/providers.d.ts +40 -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 +238 -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 +26 -0
- package/dist/react-native/resourceManagementClient.d.ts.map +1 -0
- package/dist/react-native/resourceManagementClient.js +103 -0
- package/dist/react-native/resourceManagementClient.js.map +1 -0
- package/package.json +67 -36
- package/dist/index.js +0 -8842
- 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/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 -66
- 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 -37
- 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 -36
- 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 -36
- 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 -36
- package/dist-esm/samples-dev/deploymentsWhatIfSample.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/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 +0 -29
- 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 -8
- package/dist-esm/src/operations/index.d.ts.map +0 -1
- package/dist-esm/src/operations/index.js +0 -15
- 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/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 -8
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.js +0 -15
- 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/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/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -42
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/src/lroImpl.ts +0 -34
- package/src/models/index.ts +0 -1991
- package/src/models/mappers.ts +0 -2402
- package/src/models/parameters.ts +0 -386
- package/src/operations/deploymentOperations.ts +0 -1016
- package/src/operations/deployments.ts +0 -3805
- package/src/operations/index.ts +0 -15
- package/src/operations/operations.ts +0 -149
- package/src/operations/providers.ts +0 -416
- package/src/operations/resourceGroups.ts +0 -539
- package/src/operations/resources.ts +0 -1548
- package/src/operations/tagsOperations.ts +0 -463
- package/src/operationsInterfaces/deploymentOperations.ts +0 -144
- package/src/operationsInterfaces/deployments.ts +0 -959
- package/src/operationsInterfaces/index.ts +0 -15
- package/src/operationsInterfaces/operations.ts +0 -22
- package/src/operationsInterfaces/providers.ts +0 -77
- package/src/operationsInterfaces/resourceGroups.ts +0 -130
- package/src/operationsInterfaces/resources.ts +0 -418
- package/src/operationsInterfaces/tagsOperations.ts +0 -132
- package/src/pagingHelper.ts +0 -39
- package/src/resourceManagementClient.ts +0 -168
- package/tsconfig.json +0 -33
- package/types/arm-resources-profile-2020-09-01-hybrid.d.ts +0 -3022
- /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}/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/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
- /package/{types → dist/commonjs}/tsdoc-metadata.json +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 { LroEngine } from "@azure/core-lro";
|
|
14
|
-
import { LroImpl } from "../lroImpl";
|
|
14
|
+
import { LroImpl } from "../lroImpl.js";
|
|
15
15
|
/// <reference lib="esnext.asynciterable" />
|
|
16
16
|
/** Class containing Deployments operations. */
|
|
17
17
|
export class DeploymentsImpl {
|
|
@@ -343,38 +343,36 @@ 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
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
374
|
-
});
|
|
375
|
-
yield poller.poll();
|
|
376
|
-
return poller;
|
|
346
|
+
async beginDeleteAtScope(scope, deploymentName, options) {
|
|
347
|
+
const directSendOperation = async (args, spec) => {
|
|
348
|
+
return this.client.sendOperationRequest(args, spec);
|
|
349
|
+
};
|
|
350
|
+
const sendOperation = 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 = new LroImpl(sendOperation, { scope, deploymentName, options }, deleteAtScopeOperationSpec);
|
|
370
|
+
const poller = new LroEngine(lro, {
|
|
371
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
372
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
377
373
|
});
|
|
374
|
+
await poller.poll();
|
|
375
|
+
return poller;
|
|
378
376
|
}
|
|
379
377
|
/**
|
|
380
378
|
* A template deployment that is currently running cannot be deleted. Deleting a template deployment
|
|
@@ -388,11 +386,9 @@ export class DeploymentsImpl {
|
|
|
388
386
|
* @param deploymentName The name of the deployment.
|
|
389
387
|
* @param options The options parameters.
|
|
390
388
|
*/
|
|
391
|
-
beginDeleteAtScopeAndWait(scope, deploymentName, options) {
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
return poller.pollUntilDone();
|
|
395
|
-
});
|
|
389
|
+
async beginDeleteAtScopeAndWait(scope, deploymentName, options) {
|
|
390
|
+
const poller = await this.beginDeleteAtScope(scope, deploymentName, options);
|
|
391
|
+
return poller.pollUntilDone();
|
|
396
392
|
}
|
|
397
393
|
/**
|
|
398
394
|
* Checks whether the deployment exists.
|
|
@@ -410,38 +406,36 @@ export class DeploymentsImpl {
|
|
|
410
406
|
* @param parameters Additional parameters supplied to the operation.
|
|
411
407
|
* @param options The options parameters.
|
|
412
408
|
*/
|
|
413
|
-
beginCreateOrUpdateAtScope(scope, deploymentName, parameters, options) {
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
441
|
-
});
|
|
442
|
-
yield poller.poll();
|
|
443
|
-
return poller;
|
|
409
|
+
async beginCreateOrUpdateAtScope(scope, deploymentName, parameters, options) {
|
|
410
|
+
const directSendOperation = async (args, spec) => {
|
|
411
|
+
return this.client.sendOperationRequest(args, spec);
|
|
412
|
+
};
|
|
413
|
+
const sendOperation = async (args, spec) => {
|
|
414
|
+
var _a;
|
|
415
|
+
let currentRawResponse = undefined;
|
|
416
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
417
|
+
const callback = (rawResponse, flatResponse) => {
|
|
418
|
+
currentRawResponse = rawResponse;
|
|
419
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
420
|
+
};
|
|
421
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
422
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
423
|
+
return {
|
|
424
|
+
flatResponse,
|
|
425
|
+
rawResponse: {
|
|
426
|
+
statusCode: currentRawResponse.status,
|
|
427
|
+
body: currentRawResponse.parsedBody,
|
|
428
|
+
headers: currentRawResponse.headers.toJSON()
|
|
429
|
+
}
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
const lro = new LroImpl(sendOperation, { scope, deploymentName, parameters, options }, createOrUpdateAtScopeOperationSpec);
|
|
433
|
+
const poller = new LroEngine(lro, {
|
|
434
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
435
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
444
436
|
});
|
|
437
|
+
await poller.poll();
|
|
438
|
+
return poller;
|
|
445
439
|
}
|
|
446
440
|
/**
|
|
447
441
|
* You can provide the template and parameters directly in the request or link to JSON files.
|
|
@@ -450,11 +444,9 @@ export class DeploymentsImpl {
|
|
|
450
444
|
* @param parameters Additional parameters supplied to the operation.
|
|
451
445
|
* @param options The options parameters.
|
|
452
446
|
*/
|
|
453
|
-
beginCreateOrUpdateAtScopeAndWait(scope, deploymentName, parameters, options) {
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
return poller.pollUntilDone();
|
|
457
|
-
});
|
|
447
|
+
async beginCreateOrUpdateAtScopeAndWait(scope, deploymentName, parameters, options) {
|
|
448
|
+
const poller = await this.beginCreateOrUpdateAtScope(scope, deploymentName, parameters, options);
|
|
449
|
+
return poller.pollUntilDone();
|
|
458
450
|
}
|
|
459
451
|
/**
|
|
460
452
|
* Gets a deployment.
|
|
@@ -484,38 +476,36 @@ export class DeploymentsImpl {
|
|
|
484
476
|
* @param parameters Parameters to validate.
|
|
485
477
|
* @param options The options parameters.
|
|
486
478
|
*/
|
|
487
|
-
beginValidateAtScope(scope, deploymentName, parameters, options) {
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
515
|
-
});
|
|
516
|
-
yield poller.poll();
|
|
517
|
-
return poller;
|
|
479
|
+
async beginValidateAtScope(scope, deploymentName, parameters, options) {
|
|
480
|
+
const directSendOperation = async (args, spec) => {
|
|
481
|
+
return this.client.sendOperationRequest(args, spec);
|
|
482
|
+
};
|
|
483
|
+
const sendOperation = async (args, spec) => {
|
|
484
|
+
var _a;
|
|
485
|
+
let currentRawResponse = undefined;
|
|
486
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
487
|
+
const callback = (rawResponse, flatResponse) => {
|
|
488
|
+
currentRawResponse = rawResponse;
|
|
489
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
490
|
+
};
|
|
491
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
492
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
493
|
+
return {
|
|
494
|
+
flatResponse,
|
|
495
|
+
rawResponse: {
|
|
496
|
+
statusCode: currentRawResponse.status,
|
|
497
|
+
body: currentRawResponse.parsedBody,
|
|
498
|
+
headers: currentRawResponse.headers.toJSON()
|
|
499
|
+
}
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
const lro = new LroImpl(sendOperation, { scope, deploymentName, parameters, options }, validateAtScopeOperationSpec);
|
|
503
|
+
const poller = new LroEngine(lro, {
|
|
504
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
505
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
518
506
|
});
|
|
507
|
+
await poller.poll();
|
|
508
|
+
return poller;
|
|
519
509
|
}
|
|
520
510
|
/**
|
|
521
511
|
* Validates whether the specified template is syntactically correct and will be accepted by Azure
|
|
@@ -525,11 +515,9 @@ export class DeploymentsImpl {
|
|
|
525
515
|
* @param parameters Parameters to validate.
|
|
526
516
|
* @param options The options parameters.
|
|
527
517
|
*/
|
|
528
|
-
beginValidateAtScopeAndWait(scope, deploymentName, parameters, options) {
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
return poller.pollUntilDone();
|
|
532
|
-
});
|
|
518
|
+
async beginValidateAtScopeAndWait(scope, deploymentName, parameters, options) {
|
|
519
|
+
const poller = await this.beginValidateAtScope(scope, deploymentName, parameters, options);
|
|
520
|
+
return poller.pollUntilDone();
|
|
533
521
|
}
|
|
534
522
|
/**
|
|
535
523
|
* Exports the template used for specified deployment.
|
|
@@ -559,38 +547,36 @@ export class DeploymentsImpl {
|
|
|
559
547
|
* @param deploymentName The name of the deployment.
|
|
560
548
|
* @param options The options parameters.
|
|
561
549
|
*/
|
|
562
|
-
beginDeleteAtTenantScope(deploymentName, options) {
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
590
|
-
});
|
|
591
|
-
yield poller.poll();
|
|
592
|
-
return poller;
|
|
550
|
+
async beginDeleteAtTenantScope(deploymentName, options) {
|
|
551
|
+
const directSendOperation = async (args, spec) => {
|
|
552
|
+
return this.client.sendOperationRequest(args, spec);
|
|
553
|
+
};
|
|
554
|
+
const sendOperation = async (args, spec) => {
|
|
555
|
+
var _a;
|
|
556
|
+
let currentRawResponse = undefined;
|
|
557
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
558
|
+
const callback = (rawResponse, flatResponse) => {
|
|
559
|
+
currentRawResponse = rawResponse;
|
|
560
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
561
|
+
};
|
|
562
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
563
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
564
|
+
return {
|
|
565
|
+
flatResponse,
|
|
566
|
+
rawResponse: {
|
|
567
|
+
statusCode: currentRawResponse.status,
|
|
568
|
+
body: currentRawResponse.parsedBody,
|
|
569
|
+
headers: currentRawResponse.headers.toJSON()
|
|
570
|
+
}
|
|
571
|
+
};
|
|
572
|
+
};
|
|
573
|
+
const lro = new LroImpl(sendOperation, { deploymentName, options }, deleteAtTenantScopeOperationSpec);
|
|
574
|
+
const poller = new LroEngine(lro, {
|
|
575
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
576
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
593
577
|
});
|
|
578
|
+
await poller.poll();
|
|
579
|
+
return poller;
|
|
594
580
|
}
|
|
595
581
|
/**
|
|
596
582
|
* A template deployment that is currently running cannot be deleted. Deleting a template deployment
|
|
@@ -603,11 +589,9 @@ export class DeploymentsImpl {
|
|
|
603
589
|
* @param deploymentName The name of the deployment.
|
|
604
590
|
* @param options The options parameters.
|
|
605
591
|
*/
|
|
606
|
-
beginDeleteAtTenantScopeAndWait(deploymentName, options) {
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
return poller.pollUntilDone();
|
|
610
|
-
});
|
|
592
|
+
async beginDeleteAtTenantScopeAndWait(deploymentName, options) {
|
|
593
|
+
const poller = await this.beginDeleteAtTenantScope(deploymentName, options);
|
|
594
|
+
return poller.pollUntilDone();
|
|
611
595
|
}
|
|
612
596
|
/**
|
|
613
597
|
* Checks whether the deployment exists.
|
|
@@ -623,38 +607,36 @@ export class DeploymentsImpl {
|
|
|
623
607
|
* @param parameters Additional parameters supplied to the operation.
|
|
624
608
|
* @param options The options parameters.
|
|
625
609
|
*/
|
|
626
|
-
beginCreateOrUpdateAtTenantScope(deploymentName, parameters, options) {
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
654
|
-
});
|
|
655
|
-
yield poller.poll();
|
|
656
|
-
return poller;
|
|
610
|
+
async beginCreateOrUpdateAtTenantScope(deploymentName, parameters, options) {
|
|
611
|
+
const directSendOperation = async (args, spec) => {
|
|
612
|
+
return this.client.sendOperationRequest(args, spec);
|
|
613
|
+
};
|
|
614
|
+
const sendOperation = async (args, spec) => {
|
|
615
|
+
var _a;
|
|
616
|
+
let currentRawResponse = undefined;
|
|
617
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
618
|
+
const callback = (rawResponse, flatResponse) => {
|
|
619
|
+
currentRawResponse = rawResponse;
|
|
620
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
621
|
+
};
|
|
622
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
623
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
624
|
+
return {
|
|
625
|
+
flatResponse,
|
|
626
|
+
rawResponse: {
|
|
627
|
+
statusCode: currentRawResponse.status,
|
|
628
|
+
body: currentRawResponse.parsedBody,
|
|
629
|
+
headers: currentRawResponse.headers.toJSON()
|
|
630
|
+
}
|
|
631
|
+
};
|
|
632
|
+
};
|
|
633
|
+
const lro = new LroImpl(sendOperation, { deploymentName, parameters, options }, createOrUpdateAtTenantScopeOperationSpec);
|
|
634
|
+
const poller = new LroEngine(lro, {
|
|
635
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
636
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
657
637
|
});
|
|
638
|
+
await poller.poll();
|
|
639
|
+
return poller;
|
|
658
640
|
}
|
|
659
641
|
/**
|
|
660
642
|
* You can provide the template and parameters directly in the request or link to JSON files.
|
|
@@ -662,11 +644,9 @@ export class DeploymentsImpl {
|
|
|
662
644
|
* @param parameters Additional parameters supplied to the operation.
|
|
663
645
|
* @param options The options parameters.
|
|
664
646
|
*/
|
|
665
|
-
beginCreateOrUpdateAtTenantScopeAndWait(deploymentName, parameters, options) {
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
return poller.pollUntilDone();
|
|
669
|
-
});
|
|
647
|
+
async beginCreateOrUpdateAtTenantScopeAndWait(deploymentName, parameters, options) {
|
|
648
|
+
const poller = await this.beginCreateOrUpdateAtTenantScope(deploymentName, parameters, options);
|
|
649
|
+
return poller.pollUntilDone();
|
|
670
650
|
}
|
|
671
651
|
/**
|
|
672
652
|
* Gets a deployment.
|
|
@@ -693,38 +673,36 @@ export class DeploymentsImpl {
|
|
|
693
673
|
* @param parameters Parameters to validate.
|
|
694
674
|
* @param options The options parameters.
|
|
695
675
|
*/
|
|
696
|
-
beginValidateAtTenantScope(deploymentName, parameters, options) {
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
724
|
-
});
|
|
725
|
-
yield poller.poll();
|
|
726
|
-
return poller;
|
|
676
|
+
async beginValidateAtTenantScope(deploymentName, parameters, options) {
|
|
677
|
+
const directSendOperation = async (args, spec) => {
|
|
678
|
+
return this.client.sendOperationRequest(args, spec);
|
|
679
|
+
};
|
|
680
|
+
const sendOperation = async (args, spec) => {
|
|
681
|
+
var _a;
|
|
682
|
+
let currentRawResponse = undefined;
|
|
683
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
684
|
+
const callback = (rawResponse, flatResponse) => {
|
|
685
|
+
currentRawResponse = rawResponse;
|
|
686
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
687
|
+
};
|
|
688
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
689
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
690
|
+
return {
|
|
691
|
+
flatResponse,
|
|
692
|
+
rawResponse: {
|
|
693
|
+
statusCode: currentRawResponse.status,
|
|
694
|
+
body: currentRawResponse.parsedBody,
|
|
695
|
+
headers: currentRawResponse.headers.toJSON()
|
|
696
|
+
}
|
|
697
|
+
};
|
|
698
|
+
};
|
|
699
|
+
const lro = new LroImpl(sendOperation, { deploymentName, parameters, options }, validateAtTenantScopeOperationSpec);
|
|
700
|
+
const poller = new LroEngine(lro, {
|
|
701
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
702
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
727
703
|
});
|
|
704
|
+
await poller.poll();
|
|
705
|
+
return poller;
|
|
728
706
|
}
|
|
729
707
|
/**
|
|
730
708
|
* Validates whether the specified template is syntactically correct and will be accepted by Azure
|
|
@@ -733,11 +711,9 @@ export class DeploymentsImpl {
|
|
|
733
711
|
* @param parameters Parameters to validate.
|
|
734
712
|
* @param options The options parameters.
|
|
735
713
|
*/
|
|
736
|
-
beginValidateAtTenantScopeAndWait(deploymentName, parameters, options) {
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
return poller.pollUntilDone();
|
|
740
|
-
});
|
|
714
|
+
async beginValidateAtTenantScopeAndWait(deploymentName, parameters, options) {
|
|
715
|
+
const poller = await this.beginValidateAtTenantScope(deploymentName, parameters, options);
|
|
716
|
+
return poller.pollUntilDone();
|
|
741
717
|
}
|
|
742
718
|
/**
|
|
743
719
|
* Returns changes that will be made by the deployment if executed at the scope of the tenant group.
|
|
@@ -745,39 +721,37 @@ export class DeploymentsImpl {
|
|
|
745
721
|
* @param parameters Parameters to validate.
|
|
746
722
|
* @param options The options parameters.
|
|
747
723
|
*/
|
|
748
|
-
beginWhatIfAtTenantScope(deploymentName, parameters, options) {
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
lroResourceLocationConfig: "location"
|
|
777
|
-
});
|
|
778
|
-
yield poller.poll();
|
|
779
|
-
return poller;
|
|
724
|
+
async beginWhatIfAtTenantScope(deploymentName, parameters, options) {
|
|
725
|
+
const directSendOperation = async (args, spec) => {
|
|
726
|
+
return this.client.sendOperationRequest(args, spec);
|
|
727
|
+
};
|
|
728
|
+
const sendOperation = async (args, spec) => {
|
|
729
|
+
var _a;
|
|
730
|
+
let currentRawResponse = undefined;
|
|
731
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
732
|
+
const callback = (rawResponse, flatResponse) => {
|
|
733
|
+
currentRawResponse = rawResponse;
|
|
734
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
735
|
+
};
|
|
736
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
737
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
738
|
+
return {
|
|
739
|
+
flatResponse,
|
|
740
|
+
rawResponse: {
|
|
741
|
+
statusCode: currentRawResponse.status,
|
|
742
|
+
body: currentRawResponse.parsedBody,
|
|
743
|
+
headers: currentRawResponse.headers.toJSON()
|
|
744
|
+
}
|
|
745
|
+
};
|
|
746
|
+
};
|
|
747
|
+
const lro = new LroImpl(sendOperation, { deploymentName, parameters, options }, whatIfAtTenantScopeOperationSpec);
|
|
748
|
+
const poller = new LroEngine(lro, {
|
|
749
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
750
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
751
|
+
lroResourceLocationConfig: "location"
|
|
780
752
|
});
|
|
753
|
+
await poller.poll();
|
|
754
|
+
return poller;
|
|
781
755
|
}
|
|
782
756
|
/**
|
|
783
757
|
* Returns changes that will be made by the deployment if executed at the scope of the tenant group.
|
|
@@ -785,11 +759,9 @@ export class DeploymentsImpl {
|
|
|
785
759
|
* @param parameters Parameters to validate.
|
|
786
760
|
* @param options The options parameters.
|
|
787
761
|
*/
|
|
788
|
-
beginWhatIfAtTenantScopeAndWait(deploymentName, parameters, options) {
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
return poller.pollUntilDone();
|
|
792
|
-
});
|
|
762
|
+
async beginWhatIfAtTenantScopeAndWait(deploymentName, parameters, options) {
|
|
763
|
+
const poller = await this.beginWhatIfAtTenantScope(deploymentName, parameters, options);
|
|
764
|
+
return poller.pollUntilDone();
|
|
793
765
|
}
|
|
794
766
|
/**
|
|
795
767
|
* Exports the template used for specified deployment.
|
|
@@ -818,38 +790,36 @@ export class DeploymentsImpl {
|
|
|
818
790
|
* @param deploymentName The name of the deployment.
|
|
819
791
|
* @param options The options parameters.
|
|
820
792
|
*/
|
|
821
|
-
beginDeleteAtManagementGroupScope(groupId, deploymentName, options) {
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
849
|
-
});
|
|
850
|
-
yield poller.poll();
|
|
851
|
-
return poller;
|
|
793
|
+
async beginDeleteAtManagementGroupScope(groupId, deploymentName, options) {
|
|
794
|
+
const directSendOperation = async (args, spec) => {
|
|
795
|
+
return this.client.sendOperationRequest(args, spec);
|
|
796
|
+
};
|
|
797
|
+
const sendOperation = async (args, spec) => {
|
|
798
|
+
var _a;
|
|
799
|
+
let currentRawResponse = undefined;
|
|
800
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
801
|
+
const callback = (rawResponse, flatResponse) => {
|
|
802
|
+
currentRawResponse = rawResponse;
|
|
803
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
804
|
+
};
|
|
805
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
806
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
807
|
+
return {
|
|
808
|
+
flatResponse,
|
|
809
|
+
rawResponse: {
|
|
810
|
+
statusCode: currentRawResponse.status,
|
|
811
|
+
body: currentRawResponse.parsedBody,
|
|
812
|
+
headers: currentRawResponse.headers.toJSON()
|
|
813
|
+
}
|
|
814
|
+
};
|
|
815
|
+
};
|
|
816
|
+
const lro = new LroImpl(sendOperation, { groupId, deploymentName, options }, deleteAtManagementGroupScopeOperationSpec);
|
|
817
|
+
const poller = new LroEngine(lro, {
|
|
818
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
819
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
852
820
|
});
|
|
821
|
+
await poller.poll();
|
|
822
|
+
return poller;
|
|
853
823
|
}
|
|
854
824
|
/**
|
|
855
825
|
* A template deployment that is currently running cannot be deleted. Deleting a template deployment
|
|
@@ -863,11 +833,9 @@ export class DeploymentsImpl {
|
|
|
863
833
|
* @param deploymentName The name of the deployment.
|
|
864
834
|
* @param options The options parameters.
|
|
865
835
|
*/
|
|
866
|
-
beginDeleteAtManagementGroupScopeAndWait(groupId, deploymentName, options) {
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
return poller.pollUntilDone();
|
|
870
|
-
});
|
|
836
|
+
async beginDeleteAtManagementGroupScopeAndWait(groupId, deploymentName, options) {
|
|
837
|
+
const poller = await this.beginDeleteAtManagementGroupScope(groupId, deploymentName, options);
|
|
838
|
+
return poller.pollUntilDone();
|
|
871
839
|
}
|
|
872
840
|
/**
|
|
873
841
|
* Checks whether the deployment exists.
|
|
@@ -885,38 +853,36 @@ export class DeploymentsImpl {
|
|
|
885
853
|
* @param parameters Additional parameters supplied to the operation.
|
|
886
854
|
* @param options The options parameters.
|
|
887
855
|
*/
|
|
888
|
-
beginCreateOrUpdateAtManagementGroupScope(groupId, deploymentName, parameters, options) {
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
916
|
-
});
|
|
917
|
-
yield poller.poll();
|
|
918
|
-
return poller;
|
|
856
|
+
async beginCreateOrUpdateAtManagementGroupScope(groupId, deploymentName, parameters, options) {
|
|
857
|
+
const directSendOperation = async (args, spec) => {
|
|
858
|
+
return this.client.sendOperationRequest(args, spec);
|
|
859
|
+
};
|
|
860
|
+
const sendOperation = async (args, spec) => {
|
|
861
|
+
var _a;
|
|
862
|
+
let currentRawResponse = undefined;
|
|
863
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
864
|
+
const callback = (rawResponse, flatResponse) => {
|
|
865
|
+
currentRawResponse = rawResponse;
|
|
866
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
867
|
+
};
|
|
868
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
869
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
870
|
+
return {
|
|
871
|
+
flatResponse,
|
|
872
|
+
rawResponse: {
|
|
873
|
+
statusCode: currentRawResponse.status,
|
|
874
|
+
body: currentRawResponse.parsedBody,
|
|
875
|
+
headers: currentRawResponse.headers.toJSON()
|
|
876
|
+
}
|
|
877
|
+
};
|
|
878
|
+
};
|
|
879
|
+
const lro = new LroImpl(sendOperation, { groupId, deploymentName, parameters, options }, createOrUpdateAtManagementGroupScopeOperationSpec);
|
|
880
|
+
const poller = new LroEngine(lro, {
|
|
881
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
882
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
919
883
|
});
|
|
884
|
+
await poller.poll();
|
|
885
|
+
return poller;
|
|
920
886
|
}
|
|
921
887
|
/**
|
|
922
888
|
* You can provide the template and parameters directly in the request or link to JSON files.
|
|
@@ -925,11 +891,9 @@ export class DeploymentsImpl {
|
|
|
925
891
|
* @param parameters Additional parameters supplied to the operation.
|
|
926
892
|
* @param options The options parameters.
|
|
927
893
|
*/
|
|
928
|
-
beginCreateOrUpdateAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
return poller.pollUntilDone();
|
|
932
|
-
});
|
|
894
|
+
async beginCreateOrUpdateAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
|
|
895
|
+
const poller = await this.beginCreateOrUpdateAtManagementGroupScope(groupId, deploymentName, parameters, options);
|
|
896
|
+
return poller.pollUntilDone();
|
|
933
897
|
}
|
|
934
898
|
/**
|
|
935
899
|
* Gets a deployment.
|
|
@@ -959,38 +923,36 @@ export class DeploymentsImpl {
|
|
|
959
923
|
* @param parameters Parameters to validate.
|
|
960
924
|
* @param options The options parameters.
|
|
961
925
|
*/
|
|
962
|
-
beginValidateAtManagementGroupScope(groupId, deploymentName, parameters, options) {
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
990
|
-
});
|
|
991
|
-
yield poller.poll();
|
|
992
|
-
return poller;
|
|
926
|
+
async beginValidateAtManagementGroupScope(groupId, deploymentName, parameters, options) {
|
|
927
|
+
const directSendOperation = async (args, spec) => {
|
|
928
|
+
return this.client.sendOperationRequest(args, spec);
|
|
929
|
+
};
|
|
930
|
+
const sendOperation = async (args, spec) => {
|
|
931
|
+
var _a;
|
|
932
|
+
let currentRawResponse = undefined;
|
|
933
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
934
|
+
const callback = (rawResponse, flatResponse) => {
|
|
935
|
+
currentRawResponse = rawResponse;
|
|
936
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
937
|
+
};
|
|
938
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
939
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
940
|
+
return {
|
|
941
|
+
flatResponse,
|
|
942
|
+
rawResponse: {
|
|
943
|
+
statusCode: currentRawResponse.status,
|
|
944
|
+
body: currentRawResponse.parsedBody,
|
|
945
|
+
headers: currentRawResponse.headers.toJSON()
|
|
946
|
+
}
|
|
947
|
+
};
|
|
948
|
+
};
|
|
949
|
+
const lro = new LroImpl(sendOperation, { groupId, deploymentName, parameters, options }, validateAtManagementGroupScopeOperationSpec);
|
|
950
|
+
const poller = new LroEngine(lro, {
|
|
951
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
952
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
993
953
|
});
|
|
954
|
+
await poller.poll();
|
|
955
|
+
return poller;
|
|
994
956
|
}
|
|
995
957
|
/**
|
|
996
958
|
* Validates whether the specified template is syntactically correct and will be accepted by Azure
|
|
@@ -1000,11 +962,9 @@ export class DeploymentsImpl {
|
|
|
1000
962
|
* @param parameters Parameters to validate.
|
|
1001
963
|
* @param options The options parameters.
|
|
1002
964
|
*/
|
|
1003
|
-
beginValidateAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
return poller.pollUntilDone();
|
|
1007
|
-
});
|
|
965
|
+
async beginValidateAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
|
|
966
|
+
const poller = await this.beginValidateAtManagementGroupScope(groupId, deploymentName, parameters, options);
|
|
967
|
+
return poller.pollUntilDone();
|
|
1008
968
|
}
|
|
1009
969
|
/**
|
|
1010
970
|
* Returns changes that will be made by the deployment if executed at the scope of the management
|
|
@@ -1014,39 +974,37 @@ export class DeploymentsImpl {
|
|
|
1014
974
|
* @param parameters Parameters to validate.
|
|
1015
975
|
* @param options The options parameters.
|
|
1016
976
|
*/
|
|
1017
|
-
beginWhatIfAtManagementGroupScope(groupId, deploymentName, parameters, options) {
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
lroResourceLocationConfig: "location"
|
|
1046
|
-
});
|
|
1047
|
-
yield poller.poll();
|
|
1048
|
-
return poller;
|
|
977
|
+
async beginWhatIfAtManagementGroupScope(groupId, deploymentName, parameters, options) {
|
|
978
|
+
const directSendOperation = async (args, spec) => {
|
|
979
|
+
return this.client.sendOperationRequest(args, spec);
|
|
980
|
+
};
|
|
981
|
+
const sendOperation = async (args, spec) => {
|
|
982
|
+
var _a;
|
|
983
|
+
let currentRawResponse = undefined;
|
|
984
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
985
|
+
const callback = (rawResponse, flatResponse) => {
|
|
986
|
+
currentRawResponse = rawResponse;
|
|
987
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
988
|
+
};
|
|
989
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
990
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
991
|
+
return {
|
|
992
|
+
flatResponse,
|
|
993
|
+
rawResponse: {
|
|
994
|
+
statusCode: currentRawResponse.status,
|
|
995
|
+
body: currentRawResponse.parsedBody,
|
|
996
|
+
headers: currentRawResponse.headers.toJSON()
|
|
997
|
+
}
|
|
998
|
+
};
|
|
999
|
+
};
|
|
1000
|
+
const lro = new LroImpl(sendOperation, { groupId, deploymentName, parameters, options }, whatIfAtManagementGroupScopeOperationSpec);
|
|
1001
|
+
const poller = new LroEngine(lro, {
|
|
1002
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1003
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1004
|
+
lroResourceLocationConfig: "location"
|
|
1049
1005
|
});
|
|
1006
|
+
await poller.poll();
|
|
1007
|
+
return poller;
|
|
1050
1008
|
}
|
|
1051
1009
|
/**
|
|
1052
1010
|
* Returns changes that will be made by the deployment if executed at the scope of the management
|
|
@@ -1056,11 +1014,9 @@ export class DeploymentsImpl {
|
|
|
1056
1014
|
* @param parameters Parameters to validate.
|
|
1057
1015
|
* @param options The options parameters.
|
|
1058
1016
|
*/
|
|
1059
|
-
beginWhatIfAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
return poller.pollUntilDone();
|
|
1063
|
-
});
|
|
1017
|
+
async beginWhatIfAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
|
|
1018
|
+
const poller = await this.beginWhatIfAtManagementGroupScope(groupId, deploymentName, parameters, options);
|
|
1019
|
+
return poller.pollUntilDone();
|
|
1064
1020
|
}
|
|
1065
1021
|
/**
|
|
1066
1022
|
* Exports the template used for specified deployment.
|
|
@@ -1090,38 +1046,36 @@ export class DeploymentsImpl {
|
|
|
1090
1046
|
* @param deploymentName The name of the deployment.
|
|
1091
1047
|
* @param options The options parameters.
|
|
1092
1048
|
*/
|
|
1093
|
-
beginDeleteAtSubscriptionScope(deploymentName, options) {
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1121
|
-
});
|
|
1122
|
-
yield poller.poll();
|
|
1123
|
-
return poller;
|
|
1049
|
+
async beginDeleteAtSubscriptionScope(deploymentName, options) {
|
|
1050
|
+
const directSendOperation = async (args, spec) => {
|
|
1051
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1052
|
+
};
|
|
1053
|
+
const sendOperation = async (args, spec) => {
|
|
1054
|
+
var _a;
|
|
1055
|
+
let currentRawResponse = undefined;
|
|
1056
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1057
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1058
|
+
currentRawResponse = rawResponse;
|
|
1059
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1060
|
+
};
|
|
1061
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1062
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1063
|
+
return {
|
|
1064
|
+
flatResponse,
|
|
1065
|
+
rawResponse: {
|
|
1066
|
+
statusCode: currentRawResponse.status,
|
|
1067
|
+
body: currentRawResponse.parsedBody,
|
|
1068
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1069
|
+
}
|
|
1070
|
+
};
|
|
1071
|
+
};
|
|
1072
|
+
const lro = new LroImpl(sendOperation, { deploymentName, options }, deleteAtSubscriptionScopeOperationSpec);
|
|
1073
|
+
const poller = new LroEngine(lro, {
|
|
1074
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1075
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1124
1076
|
});
|
|
1077
|
+
await poller.poll();
|
|
1078
|
+
return poller;
|
|
1125
1079
|
}
|
|
1126
1080
|
/**
|
|
1127
1081
|
* A template deployment that is currently running cannot be deleted. Deleting a template deployment
|
|
@@ -1134,11 +1088,9 @@ export class DeploymentsImpl {
|
|
|
1134
1088
|
* @param deploymentName The name of the deployment.
|
|
1135
1089
|
* @param options The options parameters.
|
|
1136
1090
|
*/
|
|
1137
|
-
beginDeleteAtSubscriptionScopeAndWait(deploymentName, options) {
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
return poller.pollUntilDone();
|
|
1141
|
-
});
|
|
1091
|
+
async beginDeleteAtSubscriptionScopeAndWait(deploymentName, options) {
|
|
1092
|
+
const poller = await this.beginDeleteAtSubscriptionScope(deploymentName, options);
|
|
1093
|
+
return poller.pollUntilDone();
|
|
1142
1094
|
}
|
|
1143
1095
|
/**
|
|
1144
1096
|
* Checks whether the deployment exists.
|
|
@@ -1154,38 +1106,36 @@ export class DeploymentsImpl {
|
|
|
1154
1106
|
* @param parameters Additional parameters supplied to the operation.
|
|
1155
1107
|
* @param options The options parameters.
|
|
1156
1108
|
*/
|
|
1157
|
-
beginCreateOrUpdateAtSubscriptionScope(deploymentName, parameters, options) {
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1185
|
-
});
|
|
1186
|
-
yield poller.poll();
|
|
1187
|
-
return poller;
|
|
1109
|
+
async beginCreateOrUpdateAtSubscriptionScope(deploymentName, parameters, options) {
|
|
1110
|
+
const directSendOperation = async (args, spec) => {
|
|
1111
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1112
|
+
};
|
|
1113
|
+
const sendOperation = async (args, spec) => {
|
|
1114
|
+
var _a;
|
|
1115
|
+
let currentRawResponse = undefined;
|
|
1116
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1117
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1118
|
+
currentRawResponse = rawResponse;
|
|
1119
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1120
|
+
};
|
|
1121
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1122
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1123
|
+
return {
|
|
1124
|
+
flatResponse,
|
|
1125
|
+
rawResponse: {
|
|
1126
|
+
statusCode: currentRawResponse.status,
|
|
1127
|
+
body: currentRawResponse.parsedBody,
|
|
1128
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1129
|
+
}
|
|
1130
|
+
};
|
|
1131
|
+
};
|
|
1132
|
+
const lro = new LroImpl(sendOperation, { deploymentName, parameters, options }, createOrUpdateAtSubscriptionScopeOperationSpec);
|
|
1133
|
+
const poller = new LroEngine(lro, {
|
|
1134
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1135
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1188
1136
|
});
|
|
1137
|
+
await poller.poll();
|
|
1138
|
+
return poller;
|
|
1189
1139
|
}
|
|
1190
1140
|
/**
|
|
1191
1141
|
* You can provide the template and parameters directly in the request or link to JSON files.
|
|
@@ -1193,11 +1143,9 @@ export class DeploymentsImpl {
|
|
|
1193
1143
|
* @param parameters Additional parameters supplied to the operation.
|
|
1194
1144
|
* @param options The options parameters.
|
|
1195
1145
|
*/
|
|
1196
|
-
beginCreateOrUpdateAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
return poller.pollUntilDone();
|
|
1200
|
-
});
|
|
1146
|
+
async beginCreateOrUpdateAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
|
|
1147
|
+
const poller = await this.beginCreateOrUpdateAtSubscriptionScope(deploymentName, parameters, options);
|
|
1148
|
+
return poller.pollUntilDone();
|
|
1201
1149
|
}
|
|
1202
1150
|
/**
|
|
1203
1151
|
* Gets a deployment.
|
|
@@ -1224,38 +1172,36 @@ export class DeploymentsImpl {
|
|
|
1224
1172
|
* @param parameters Parameters to validate.
|
|
1225
1173
|
* @param options The options parameters.
|
|
1226
1174
|
*/
|
|
1227
|
-
beginValidateAtSubscriptionScope(deploymentName, parameters, options) {
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1255
|
-
});
|
|
1256
|
-
yield poller.poll();
|
|
1257
|
-
return poller;
|
|
1175
|
+
async beginValidateAtSubscriptionScope(deploymentName, parameters, options) {
|
|
1176
|
+
const directSendOperation = async (args, spec) => {
|
|
1177
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1178
|
+
};
|
|
1179
|
+
const sendOperation = async (args, spec) => {
|
|
1180
|
+
var _a;
|
|
1181
|
+
let currentRawResponse = undefined;
|
|
1182
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1183
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1184
|
+
currentRawResponse = rawResponse;
|
|
1185
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1186
|
+
};
|
|
1187
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1188
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1189
|
+
return {
|
|
1190
|
+
flatResponse,
|
|
1191
|
+
rawResponse: {
|
|
1192
|
+
statusCode: currentRawResponse.status,
|
|
1193
|
+
body: currentRawResponse.parsedBody,
|
|
1194
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1195
|
+
}
|
|
1196
|
+
};
|
|
1197
|
+
};
|
|
1198
|
+
const lro = new LroImpl(sendOperation, { deploymentName, parameters, options }, validateAtSubscriptionScopeOperationSpec);
|
|
1199
|
+
const poller = new LroEngine(lro, {
|
|
1200
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1201
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1258
1202
|
});
|
|
1203
|
+
await poller.poll();
|
|
1204
|
+
return poller;
|
|
1259
1205
|
}
|
|
1260
1206
|
/**
|
|
1261
1207
|
* Validates whether the specified template is syntactically correct and will be accepted by Azure
|
|
@@ -1264,11 +1210,9 @@ export class DeploymentsImpl {
|
|
|
1264
1210
|
* @param parameters Parameters to validate.
|
|
1265
1211
|
* @param options The options parameters.
|
|
1266
1212
|
*/
|
|
1267
|
-
beginValidateAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
return poller.pollUntilDone();
|
|
1271
|
-
});
|
|
1213
|
+
async beginValidateAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
|
|
1214
|
+
const poller = await this.beginValidateAtSubscriptionScope(deploymentName, parameters, options);
|
|
1215
|
+
return poller.pollUntilDone();
|
|
1272
1216
|
}
|
|
1273
1217
|
/**
|
|
1274
1218
|
* Returns changes that will be made by the deployment if executed at the scope of the subscription.
|
|
@@ -1276,39 +1220,37 @@ export class DeploymentsImpl {
|
|
|
1276
1220
|
* @param parameters Parameters to What If.
|
|
1277
1221
|
* @param options The options parameters.
|
|
1278
1222
|
*/
|
|
1279
|
-
beginWhatIfAtSubscriptionScope(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
|
-
lroResourceLocationConfig: "location"
|
|
1308
|
-
});
|
|
1309
|
-
yield poller.poll();
|
|
1310
|
-
return poller;
|
|
1223
|
+
async beginWhatIfAtSubscriptionScope(deploymentName, parameters, options) {
|
|
1224
|
+
const directSendOperation = async (args, spec) => {
|
|
1225
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1226
|
+
};
|
|
1227
|
+
const sendOperation = async (args, spec) => {
|
|
1228
|
+
var _a;
|
|
1229
|
+
let currentRawResponse = undefined;
|
|
1230
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1231
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1232
|
+
currentRawResponse = rawResponse;
|
|
1233
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1234
|
+
};
|
|
1235
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1236
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1237
|
+
return {
|
|
1238
|
+
flatResponse,
|
|
1239
|
+
rawResponse: {
|
|
1240
|
+
statusCode: currentRawResponse.status,
|
|
1241
|
+
body: currentRawResponse.parsedBody,
|
|
1242
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1243
|
+
}
|
|
1244
|
+
};
|
|
1245
|
+
};
|
|
1246
|
+
const lro = new LroImpl(sendOperation, { deploymentName, parameters, options }, whatIfAtSubscriptionScopeOperationSpec);
|
|
1247
|
+
const poller = new LroEngine(lro, {
|
|
1248
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1249
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1250
|
+
lroResourceLocationConfig: "location"
|
|
1311
1251
|
});
|
|
1252
|
+
await poller.poll();
|
|
1253
|
+
return poller;
|
|
1312
1254
|
}
|
|
1313
1255
|
/**
|
|
1314
1256
|
* Returns changes that will be made by the deployment if executed at the scope of the subscription.
|
|
@@ -1316,11 +1258,9 @@ export class DeploymentsImpl {
|
|
|
1316
1258
|
* @param parameters Parameters to What If.
|
|
1317
1259
|
* @param options The options parameters.
|
|
1318
1260
|
*/
|
|
1319
|
-
beginWhatIfAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
return poller.pollUntilDone();
|
|
1323
|
-
});
|
|
1261
|
+
async beginWhatIfAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
|
|
1262
|
+
const poller = await this.beginWhatIfAtSubscriptionScope(deploymentName, parameters, options);
|
|
1263
|
+
return poller.pollUntilDone();
|
|
1324
1264
|
}
|
|
1325
1265
|
/**
|
|
1326
1266
|
* Exports the template used for specified deployment.
|
|
@@ -1351,38 +1291,36 @@ export class DeploymentsImpl {
|
|
|
1351
1291
|
* @param deploymentName The name of the deployment.
|
|
1352
1292
|
* @param options The options parameters.
|
|
1353
1293
|
*/
|
|
1354
|
-
beginDelete(resourceGroupName, deploymentName, options) {
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1382
|
-
});
|
|
1383
|
-
yield poller.poll();
|
|
1384
|
-
return poller;
|
|
1294
|
+
async beginDelete(resourceGroupName, deploymentName, options) {
|
|
1295
|
+
const directSendOperation = async (args, spec) => {
|
|
1296
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1297
|
+
};
|
|
1298
|
+
const sendOperation = async (args, spec) => {
|
|
1299
|
+
var _a;
|
|
1300
|
+
let currentRawResponse = undefined;
|
|
1301
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1302
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1303
|
+
currentRawResponse = rawResponse;
|
|
1304
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1305
|
+
};
|
|
1306
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1307
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1308
|
+
return {
|
|
1309
|
+
flatResponse,
|
|
1310
|
+
rawResponse: {
|
|
1311
|
+
statusCode: currentRawResponse.status,
|
|
1312
|
+
body: currentRawResponse.parsedBody,
|
|
1313
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1314
|
+
}
|
|
1315
|
+
};
|
|
1316
|
+
};
|
|
1317
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, deploymentName, options }, deleteOperationSpec);
|
|
1318
|
+
const poller = new LroEngine(lro, {
|
|
1319
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1320
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1385
1321
|
});
|
|
1322
|
+
await poller.poll();
|
|
1323
|
+
return poller;
|
|
1386
1324
|
}
|
|
1387
1325
|
/**
|
|
1388
1326
|
* A template deployment that is currently running cannot be deleted. Deleting a template deployment
|
|
@@ -1398,11 +1336,9 @@ export class DeploymentsImpl {
|
|
|
1398
1336
|
* @param deploymentName The name of the deployment.
|
|
1399
1337
|
* @param options The options parameters.
|
|
1400
1338
|
*/
|
|
1401
|
-
beginDeleteAndWait(resourceGroupName, deploymentName, options) {
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
return poller.pollUntilDone();
|
|
1405
|
-
});
|
|
1339
|
+
async beginDeleteAndWait(resourceGroupName, deploymentName, options) {
|
|
1340
|
+
const poller = await this.beginDelete(resourceGroupName, deploymentName, options);
|
|
1341
|
+
return poller.pollUntilDone();
|
|
1406
1342
|
}
|
|
1407
1343
|
/**
|
|
1408
1344
|
* Checks whether the deployment exists.
|
|
@@ -1422,38 +1358,36 @@ export class DeploymentsImpl {
|
|
|
1422
1358
|
* @param parameters Additional parameters supplied to the operation.
|
|
1423
1359
|
* @param options The options parameters.
|
|
1424
1360
|
*/
|
|
1425
|
-
beginCreateOrUpdate(resourceGroupName, deploymentName, parameters, options) {
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1453
|
-
});
|
|
1454
|
-
yield poller.poll();
|
|
1455
|
-
return poller;
|
|
1361
|
+
async beginCreateOrUpdate(resourceGroupName, deploymentName, parameters, options) {
|
|
1362
|
+
const directSendOperation = async (args, spec) => {
|
|
1363
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1364
|
+
};
|
|
1365
|
+
const sendOperation = async (args, spec) => {
|
|
1366
|
+
var _a;
|
|
1367
|
+
let currentRawResponse = undefined;
|
|
1368
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1369
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1370
|
+
currentRawResponse = rawResponse;
|
|
1371
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1372
|
+
};
|
|
1373
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1374
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1375
|
+
return {
|
|
1376
|
+
flatResponse,
|
|
1377
|
+
rawResponse: {
|
|
1378
|
+
statusCode: currentRawResponse.status,
|
|
1379
|
+
body: currentRawResponse.parsedBody,
|
|
1380
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1381
|
+
}
|
|
1382
|
+
};
|
|
1383
|
+
};
|
|
1384
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, deploymentName, parameters, options }, createOrUpdateOperationSpec);
|
|
1385
|
+
const poller = new LroEngine(lro, {
|
|
1386
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1387
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1456
1388
|
});
|
|
1389
|
+
await poller.poll();
|
|
1390
|
+
return poller;
|
|
1457
1391
|
}
|
|
1458
1392
|
/**
|
|
1459
1393
|
* You can provide the template and parameters directly in the request or link to JSON files.
|
|
@@ -1463,11 +1397,9 @@ export class DeploymentsImpl {
|
|
|
1463
1397
|
* @param parameters Additional parameters supplied to the operation.
|
|
1464
1398
|
* @param options The options parameters.
|
|
1465
1399
|
*/
|
|
1466
|
-
beginCreateOrUpdateAndWait(resourceGroupName, deploymentName, parameters, options) {
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
return poller.pollUntilDone();
|
|
1470
|
-
});
|
|
1400
|
+
async beginCreateOrUpdateAndWait(resourceGroupName, deploymentName, parameters, options) {
|
|
1401
|
+
const poller = await this.beginCreateOrUpdate(resourceGroupName, deploymentName, parameters, options);
|
|
1402
|
+
return poller.pollUntilDone();
|
|
1471
1403
|
}
|
|
1472
1404
|
/**
|
|
1473
1405
|
* Gets a deployment.
|
|
@@ -1498,38 +1430,36 @@ export class DeploymentsImpl {
|
|
|
1498
1430
|
* @param parameters Parameters to validate.
|
|
1499
1431
|
* @param options The options parameters.
|
|
1500
1432
|
*/
|
|
1501
|
-
beginValidate(resourceGroupName, deploymentName, parameters, options) {
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1529
|
-
});
|
|
1530
|
-
yield poller.poll();
|
|
1531
|
-
return poller;
|
|
1433
|
+
async beginValidate(resourceGroupName, deploymentName, parameters, options) {
|
|
1434
|
+
const directSendOperation = async (args, spec) => {
|
|
1435
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1436
|
+
};
|
|
1437
|
+
const sendOperation = async (args, spec) => {
|
|
1438
|
+
var _a;
|
|
1439
|
+
let currentRawResponse = undefined;
|
|
1440
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1441
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1442
|
+
currentRawResponse = rawResponse;
|
|
1443
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1444
|
+
};
|
|
1445
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1446
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1447
|
+
return {
|
|
1448
|
+
flatResponse,
|
|
1449
|
+
rawResponse: {
|
|
1450
|
+
statusCode: currentRawResponse.status,
|
|
1451
|
+
body: currentRawResponse.parsedBody,
|
|
1452
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1453
|
+
}
|
|
1454
|
+
};
|
|
1455
|
+
};
|
|
1456
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, deploymentName, parameters, options }, validateOperationSpec);
|
|
1457
|
+
const poller = new LroEngine(lro, {
|
|
1458
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1459
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1532
1460
|
});
|
|
1461
|
+
await poller.poll();
|
|
1462
|
+
return poller;
|
|
1533
1463
|
}
|
|
1534
1464
|
/**
|
|
1535
1465
|
* Validates whether the specified template is syntactically correct and will be accepted by Azure
|
|
@@ -1540,11 +1470,9 @@ export class DeploymentsImpl {
|
|
|
1540
1470
|
* @param parameters Parameters to validate.
|
|
1541
1471
|
* @param options The options parameters.
|
|
1542
1472
|
*/
|
|
1543
|
-
beginValidateAndWait(resourceGroupName, deploymentName, parameters, options) {
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
return poller.pollUntilDone();
|
|
1547
|
-
});
|
|
1473
|
+
async beginValidateAndWait(resourceGroupName, deploymentName, parameters, options) {
|
|
1474
|
+
const poller = await this.beginValidate(resourceGroupName, deploymentName, parameters, options);
|
|
1475
|
+
return poller.pollUntilDone();
|
|
1548
1476
|
}
|
|
1549
1477
|
/**
|
|
1550
1478
|
* Returns changes that will be made by the deployment if executed at the scope of the resource group.
|
|
@@ -1554,39 +1482,37 @@ export class DeploymentsImpl {
|
|
|
1554
1482
|
* @param parameters Parameters to validate.
|
|
1555
1483
|
* @param options The options parameters.
|
|
1556
1484
|
*/
|
|
1557
|
-
beginWhatIf(resourceGroupName, deploymentName, parameters, options) {
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
lroResourceLocationConfig: "location"
|
|
1586
|
-
});
|
|
1587
|
-
yield poller.poll();
|
|
1588
|
-
return poller;
|
|
1485
|
+
async beginWhatIf(resourceGroupName, deploymentName, parameters, options) {
|
|
1486
|
+
const directSendOperation = async (args, spec) => {
|
|
1487
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1488
|
+
};
|
|
1489
|
+
const sendOperation = async (args, spec) => {
|
|
1490
|
+
var _a;
|
|
1491
|
+
let currentRawResponse = undefined;
|
|
1492
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1493
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1494
|
+
currentRawResponse = rawResponse;
|
|
1495
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1496
|
+
};
|
|
1497
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1498
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1499
|
+
return {
|
|
1500
|
+
flatResponse,
|
|
1501
|
+
rawResponse: {
|
|
1502
|
+
statusCode: currentRawResponse.status,
|
|
1503
|
+
body: currentRawResponse.parsedBody,
|
|
1504
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1505
|
+
}
|
|
1506
|
+
};
|
|
1507
|
+
};
|
|
1508
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, deploymentName, parameters, options }, whatIfOperationSpec);
|
|
1509
|
+
const poller = new LroEngine(lro, {
|
|
1510
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1511
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1512
|
+
lroResourceLocationConfig: "location"
|
|
1589
1513
|
});
|
|
1514
|
+
await poller.poll();
|
|
1515
|
+
return poller;
|
|
1590
1516
|
}
|
|
1591
1517
|
/**
|
|
1592
1518
|
* Returns changes that will be made by the deployment if executed at the scope of the resource group.
|
|
@@ -1596,11 +1522,9 @@ export class DeploymentsImpl {
|
|
|
1596
1522
|
* @param parameters Parameters to validate.
|
|
1597
1523
|
* @param options The options parameters.
|
|
1598
1524
|
*/
|
|
1599
|
-
beginWhatIfAndWait(resourceGroupName, deploymentName, parameters, options) {
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
return poller.pollUntilDone();
|
|
1603
|
-
});
|
|
1525
|
+
async beginWhatIfAndWait(resourceGroupName, deploymentName, parameters, options) {
|
|
1526
|
+
const poller = await this.beginWhatIf(resourceGroupName, deploymentName, parameters, options);
|
|
1527
|
+
return poller.pollUntilDone();
|
|
1604
1528
|
}
|
|
1605
1529
|
/**
|
|
1606
1530
|
* Exports the template used for specified deployment.
|