@azure/arm-resourcesdeployments 1.0.0-alpha.20250716.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/LICENSE +21 -0
- package/README.md +115 -0
- package/dist/browser/deploymentsClient.d.ts +22 -0
- package/dist/browser/deploymentsClient.d.ts.map +1 -0
- package/dist/browser/deploymentsClient.js +96 -0
- package/dist/browser/deploymentsClient.js.map +1 -0
- package/dist/browser/index.d.ts +5 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +13 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/lroImpl.d.ts +11 -0
- package/dist/browser/lroImpl.d.ts.map +1 -0
- package/dist/browser/lroImpl.js +21 -0
- package/dist/browser/lroImpl.js.map +1 -0
- package/dist/browser/models/index.d.ts +1541 -0
- package/dist/browser/models/index.d.ts.map +1 -0
- package/dist/browser/models/index.js +132 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.d.ts +62 -0
- package/dist/browser/models/mappers.d.ts.map +1 -0
- package/dist/browser/models/mappers.js +2165 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/dist/browser/models/parameters.d.ts +20 -0
- package/dist/browser/models/parameters.d.ts.map +1 -0
- package/dist/browser/models/parameters.js +184 -0
- package/dist/browser/models/parameters.js.map +1 -0
- package/dist/browser/operations/deploymentOperations.d.ts +168 -0
- package/dist/browser/operations/deploymentOperations.d.ts.map +1 -0
- package/dist/browser/operations/deploymentOperations.js +782 -0
- package/dist/browser/operations/deploymentOperations.js.map +1 -0
- package/dist/browser/operations/deployments.d.ts +628 -0
- package/dist/browser/operations/deployments.d.ts.map +1 -0
- package/dist/browser/operations/deployments.js +2766 -0
- package/dist/browser/operations/deployments.js.map +1 -0
- package/dist/browser/operations/index.d.ts +3 -0
- package/dist/browser/operations/index.d.ts.map +1 -0
- package/dist/browser/operations/index.js +10 -0
- package/dist/browser/operations/index.js.map +1 -0
- package/dist/browser/operationsInterfaces/deploymentOperations.d.ts +77 -0
- package/dist/browser/operationsInterfaces/deploymentOperations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/deploymentOperations.js +9 -0
- package/dist/browser/operationsInterfaces/deploymentOperations.js.map +1 -0
- package/dist/browser/operationsInterfaces/deployments.d.ts +545 -0
- package/dist/browser/operationsInterfaces/deployments.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/deployments.js +9 -0
- package/dist/browser/operationsInterfaces/deployments.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +3 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/index.js +10 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.d.ts +13 -0
- package/dist/browser/pagingHelper.d.ts.map +1 -0
- package/dist/browser/pagingHelper.js +32 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/deploymentsClient.d.ts +22 -0
- package/dist/commonjs/deploymentsClient.d.ts.map +1 -0
- package/dist/commonjs/deploymentsClient.js +101 -0
- package/dist/commonjs/deploymentsClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/lroImpl.d.ts +11 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +24 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +1541 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +135 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +62 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +2169 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +20 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +187 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/deploymentOperations.d.ts +168 -0
- package/dist/commonjs/operations/deploymentOperations.d.ts.map +1 -0
- package/dist/commonjs/operations/deploymentOperations.js +786 -0
- package/dist/commonjs/operations/deploymentOperations.js.map +1 -0
- package/dist/commonjs/operations/deployments.d.ts +628 -0
- package/dist/commonjs/operations/deployments.d.ts.map +1 -0
- package/dist/commonjs/operations/deployments.js +2770 -0
- package/dist/commonjs/operations/deployments.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +3 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +13 -0
- package/dist/commonjs/operations/index.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 +3 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +13 -0
- package/dist/commonjs/operationsInterfaces/index.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/tsdoc-metadata.json +11 -0
- package/dist/esm/deploymentsClient.d.ts +22 -0
- package/dist/esm/deploymentsClient.d.ts.map +1 -0
- package/dist/esm/deploymentsClient.js +96 -0
- package/dist/esm/deploymentsClient.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +13 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lroImpl.d.ts +11 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +21 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +1541 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +132 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +62 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +2165 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +20 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +184 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/deploymentOperations.d.ts +168 -0
- package/dist/esm/operations/deploymentOperations.d.ts.map +1 -0
- package/dist/esm/operations/deploymentOperations.js +782 -0
- package/dist/esm/operations/deploymentOperations.js.map +1 -0
- package/dist/esm/operations/deployments.d.ts +628 -0
- package/dist/esm/operations/deployments.d.ts.map +1 -0
- package/dist/esm/operations/deployments.js +2766 -0
- package/dist/esm/operations/deployments.js.map +1 -0
- package/dist/esm/operations/index.d.ts +3 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +10 -0
- package/dist/esm/operations/index.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 +3 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +10 -0
- package/dist/esm/operationsInterfaces/index.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/react-native/deploymentsClient.d.ts +22 -0
- package/dist/react-native/deploymentsClient.d.ts.map +1 -0
- package/dist/react-native/deploymentsClient.js +96 -0
- package/dist/react-native/deploymentsClient.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/lroImpl.d.ts +11 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +21 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +1541 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +132 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +62 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +2165 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +20 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +184 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/deploymentOperations.d.ts +168 -0
- package/dist/react-native/operations/deploymentOperations.d.ts.map +1 -0
- package/dist/react-native/operations/deploymentOperations.js +782 -0
- package/dist/react-native/operations/deploymentOperations.js.map +1 -0
- package/dist/react-native/operations/deployments.d.ts +628 -0
- package/dist/react-native/operations/deployments.d.ts.map +1 -0
- package/dist/react-native/operations/deployments.js +2766 -0
- package/dist/react-native/operations/deployments.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +3 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +10 -0
- package/dist/react-native/operations/index.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 +3 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +10 -0
- package/dist/react-native/operationsInterfaces/index.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/package.json +133 -0
- package/review/arm-resourcesdeployments.api.md +1226 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployments.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/deployments.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport {\n DeploymentExtended,\n DeploymentsListAtScopeOptionalParams,\n DeploymentsListAtTenantScopeOptionalParams,\n DeploymentsListAtManagementGroupScopeOptionalParams,\n DeploymentsListAtSubscriptionScopeOptionalParams,\n DeploymentsListByResourceGroupOptionalParams,\n DeploymentsDeleteAtScopeOptionalParams,\n DeploymentsCheckExistenceAtScopeOptionalParams,\n DeploymentsCheckExistenceAtScopeResponse,\n Deployment,\n DeploymentsCreateOrUpdateAtScopeOptionalParams,\n DeploymentsCreateOrUpdateAtScopeResponse,\n DeploymentsGetAtScopeOptionalParams,\n DeploymentsGetAtScopeResponse,\n DeploymentsCancelAtScopeOptionalParams,\n DeploymentsValidateAtScopeOptionalParams,\n DeploymentsValidateAtScopeResponse,\n DeploymentsExportTemplateAtScopeOptionalParams,\n DeploymentsExportTemplateAtScopeResponse,\n DeploymentsDeleteAtTenantScopeOptionalParams,\n DeploymentsCheckExistenceAtTenantScopeOptionalParams,\n DeploymentsCheckExistenceAtTenantScopeResponse,\n ScopedDeployment,\n DeploymentsCreateOrUpdateAtTenantScopeOptionalParams,\n DeploymentsCreateOrUpdateAtTenantScopeResponse,\n DeploymentsGetAtTenantScopeOptionalParams,\n DeploymentsGetAtTenantScopeResponse,\n DeploymentsCancelAtTenantScopeOptionalParams,\n DeploymentsValidateAtTenantScopeOptionalParams,\n DeploymentsValidateAtTenantScopeResponse,\n ScopedDeploymentWhatIf,\n DeploymentsWhatIfAtTenantScopeOptionalParams,\n DeploymentsWhatIfAtTenantScopeResponse,\n DeploymentsExportTemplateAtTenantScopeOptionalParams,\n DeploymentsExportTemplateAtTenantScopeResponse,\n DeploymentsDeleteAtManagementGroupScopeOptionalParams,\n DeploymentsCheckExistenceAtManagementGroupScopeOptionalParams,\n DeploymentsCheckExistenceAtManagementGroupScopeResponse,\n DeploymentsCreateOrUpdateAtManagementGroupScopeOptionalParams,\n DeploymentsCreateOrUpdateAtManagementGroupScopeResponse,\n DeploymentsGetAtManagementGroupScopeOptionalParams,\n DeploymentsGetAtManagementGroupScopeResponse,\n DeploymentsCancelAtManagementGroupScopeOptionalParams,\n DeploymentsValidateAtManagementGroupScopeOptionalParams,\n DeploymentsValidateAtManagementGroupScopeResponse,\n DeploymentsWhatIfAtManagementGroupScopeOptionalParams,\n DeploymentsWhatIfAtManagementGroupScopeResponse,\n DeploymentsExportTemplateAtManagementGroupScopeOptionalParams,\n DeploymentsExportTemplateAtManagementGroupScopeResponse,\n DeploymentsDeleteAtSubscriptionScopeOptionalParams,\n DeploymentsCheckExistenceAtSubscriptionScopeOptionalParams,\n DeploymentsCheckExistenceAtSubscriptionScopeResponse,\n DeploymentsCreateOrUpdateAtSubscriptionScopeOptionalParams,\n DeploymentsCreateOrUpdateAtSubscriptionScopeResponse,\n DeploymentsGetAtSubscriptionScopeOptionalParams,\n DeploymentsGetAtSubscriptionScopeResponse,\n DeploymentsCancelAtSubscriptionScopeOptionalParams,\n DeploymentsValidateAtSubscriptionScopeOptionalParams,\n DeploymentsValidateAtSubscriptionScopeResponse,\n DeploymentWhatIf,\n DeploymentsWhatIfAtSubscriptionScopeOptionalParams,\n DeploymentsWhatIfAtSubscriptionScopeResponse,\n DeploymentsExportTemplateAtSubscriptionScopeOptionalParams,\n DeploymentsExportTemplateAtSubscriptionScopeResponse,\n DeploymentsDeleteOptionalParams,\n DeploymentsCheckExistenceOptionalParams,\n DeploymentsCheckExistenceResponse,\n DeploymentsCreateOrUpdateOptionalParams,\n DeploymentsCreateOrUpdateResponse,\n DeploymentsGetOptionalParams,\n DeploymentsGetResponse,\n DeploymentsCancelOptionalParams,\n DeploymentsValidateOptionalParams,\n DeploymentsValidateResponse,\n DeploymentsWhatIfOptionalParams,\n DeploymentsWhatIfResponse,\n DeploymentsExportTemplateOptionalParams,\n DeploymentsExportTemplateResponse,\n DeploymentsCalculateTemplateHashOptionalParams,\n DeploymentsCalculateTemplateHashResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Deployments. */\nexport interface Deployments {\n /**\n * Get all the deployments at the given scope.\n * @param scope The resource scope.\n * @param options The options parameters.\n */\n listAtScope(\n scope: string,\n options?: DeploymentsListAtScopeOptionalParams,\n ): PagedAsyncIterableIterator<DeploymentExtended>;\n /**\n * Get all the deployments at the tenant scope.\n * @param options The options parameters.\n */\n listAtTenantScope(\n options?: DeploymentsListAtTenantScopeOptionalParams,\n ): PagedAsyncIterableIterator<DeploymentExtended>;\n /**\n * Get all the deployments for a management group.\n * @param groupId The management group ID.\n * @param options The options parameters.\n */\n listAtManagementGroupScope(\n groupId: string,\n options?: DeploymentsListAtManagementGroupScopeOptionalParams,\n ): PagedAsyncIterableIterator<DeploymentExtended>;\n /**\n * Get all the deployments for a subscription.\n * @param options The options parameters.\n */\n listAtSubscriptionScope(\n options?: DeploymentsListAtSubscriptionScopeOptionalParams,\n ): PagedAsyncIterableIterator<DeploymentExtended>;\n /**\n * Get all the deployments for a resource group.\n * @param resourceGroupName The name of the resource group with the deployments to get. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n options?: DeploymentsListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<DeploymentExtended>;\n /**\n * A template deployment that is currently running cannot be deleted. Deleting a template deployment\n * removes the associated deployment operations. This is an asynchronous operation that returns a\n * status of 202 until the template deployment is successfully deleted. The Location response header\n * contains the URI that is used to obtain the status of the process. While the process is running, a\n * call to the URI in the Location header returns a status of 202. When the process finishes, the URI\n * in the Location header returns a status of 204 on success. If the asynchronous request failed, the\n * URI in the Location header returns an error-level status code.\n * @param scope The resource scope.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n beginDeleteAtScope(\n scope: string,\n deploymentName: string,\n options?: DeploymentsDeleteAtScopeOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * A template deployment that is currently running cannot be deleted. Deleting a template deployment\n * removes the associated deployment operations. This is an asynchronous operation that returns a\n * status of 202 until the template deployment is successfully deleted. The Location response header\n * contains the URI that is used to obtain the status of the process. While the process is running, a\n * call to the URI in the Location header returns a status of 202. When the process finishes, the URI\n * in the Location header returns a status of 204 on success. If the asynchronous request failed, the\n * URI in the Location header returns an error-level status code.\n * @param scope The resource scope.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n beginDeleteAtScopeAndWait(\n scope: string,\n deploymentName: string,\n options?: DeploymentsDeleteAtScopeOptionalParams,\n ): Promise<void>;\n /**\n * Checks whether the deployment exists.\n * @param scope The resource scope.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n checkExistenceAtScope(\n scope: string,\n deploymentName: string,\n options?: DeploymentsCheckExistenceAtScopeOptionalParams,\n ): Promise<DeploymentsCheckExistenceAtScopeResponse>;\n /**\n * You can provide the template and parameters directly in the request or link to JSON files.\n * @param scope The resource scope.\n * @param deploymentName The name of the deployment.\n * @param parameters Additional parameters supplied to the operation.\n * @param options The options parameters.\n */\n beginCreateOrUpdateAtScope(\n scope: string,\n deploymentName: string,\n parameters: Deployment,\n options?: DeploymentsCreateOrUpdateAtScopeOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DeploymentsCreateOrUpdateAtScopeResponse>,\n DeploymentsCreateOrUpdateAtScopeResponse\n >\n >;\n /**\n * You can provide the template and parameters directly in the request or link to JSON files.\n * @param scope The resource scope.\n * @param deploymentName The name of the deployment.\n * @param parameters Additional parameters supplied to the operation.\n * @param options The options parameters.\n */\n beginCreateOrUpdateAtScopeAndWait(\n scope: string,\n deploymentName: string,\n parameters: Deployment,\n options?: DeploymentsCreateOrUpdateAtScopeOptionalParams,\n ): Promise<DeploymentsCreateOrUpdateAtScopeResponse>;\n /**\n * Gets a deployment.\n * @param scope The resource scope.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n getAtScope(\n scope: string,\n deploymentName: string,\n options?: DeploymentsGetAtScopeOptionalParams,\n ): Promise<DeploymentsGetAtScopeResponse>;\n /**\n * You can cancel a deployment only if the provisioningState is Accepted or Running. After the\n * deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment\n * stops the currently running template deployment and leaves the resources partially deployed.\n * @param scope The resource scope.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n cancelAtScope(\n scope: string,\n deploymentName: string,\n options?: DeploymentsCancelAtScopeOptionalParams,\n ): Promise<void>;\n /**\n * Validates whether the specified template is syntactically correct and will be accepted by Azure\n * Resource Manager..\n * @param scope The resource scope.\n * @param deploymentName The name of the deployment.\n * @param parameters Parameters to validate.\n * @param options The options parameters.\n */\n beginValidateAtScope(\n scope: string,\n deploymentName: string,\n parameters: Deployment,\n options?: DeploymentsValidateAtScopeOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DeploymentsValidateAtScopeResponse>,\n DeploymentsValidateAtScopeResponse\n >\n >;\n /**\n * Validates whether the specified template is syntactically correct and will be accepted by Azure\n * Resource Manager..\n * @param scope The resource scope.\n * @param deploymentName The name of the deployment.\n * @param parameters Parameters to validate.\n * @param options The options parameters.\n */\n beginValidateAtScopeAndWait(\n scope: string,\n deploymentName: string,\n parameters: Deployment,\n options?: DeploymentsValidateAtScopeOptionalParams,\n ): Promise<DeploymentsValidateAtScopeResponse>;\n /**\n * Exports the template used for specified deployment.\n * @param scope The resource scope.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n exportTemplateAtScope(\n scope: string,\n deploymentName: string,\n options?: DeploymentsExportTemplateAtScopeOptionalParams,\n ): Promise<DeploymentsExportTemplateAtScopeResponse>;\n /**\n * A template deployment that is currently running cannot be deleted. Deleting a template deployment\n * removes the associated deployment operations. This is an asynchronous operation that returns a\n * status of 202 until the template deployment is successfully deleted. The Location response header\n * contains the URI that is used to obtain the status of the process. While the process is running, a\n * call to the URI in the Location header returns a status of 202. When the process finishes, the URI\n * in the Location header returns a status of 204 on success. If the asynchronous request failed, the\n * URI in the Location header returns an error-level status code.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n beginDeleteAtTenantScope(\n deploymentName: string,\n options?: DeploymentsDeleteAtTenantScopeOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * A template deployment that is currently running cannot be deleted. Deleting a template deployment\n * removes the associated deployment operations. This is an asynchronous operation that returns a\n * status of 202 until the template deployment is successfully deleted. The Location response header\n * contains the URI that is used to obtain the status of the process. While the process is running, a\n * call to the URI in the Location header returns a status of 202. When the process finishes, the URI\n * in the Location header returns a status of 204 on success. If the asynchronous request failed, the\n * URI in the Location header returns an error-level status code.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n beginDeleteAtTenantScopeAndWait(\n deploymentName: string,\n options?: DeploymentsDeleteAtTenantScopeOptionalParams,\n ): Promise<void>;\n /**\n * Checks whether the deployment exists.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n checkExistenceAtTenantScope(\n deploymentName: string,\n options?: DeploymentsCheckExistenceAtTenantScopeOptionalParams,\n ): Promise<DeploymentsCheckExistenceAtTenantScopeResponse>;\n /**\n * You can provide the template and parameters directly in the request or link to JSON files.\n * @param deploymentName The name of the deployment.\n * @param parameters Additional parameters supplied to the operation.\n * @param options The options parameters.\n */\n beginCreateOrUpdateAtTenantScope(\n deploymentName: string,\n parameters: ScopedDeployment,\n options?: DeploymentsCreateOrUpdateAtTenantScopeOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DeploymentsCreateOrUpdateAtTenantScopeResponse>,\n DeploymentsCreateOrUpdateAtTenantScopeResponse\n >\n >;\n /**\n * You can provide the template and parameters directly in the request or link to JSON files.\n * @param deploymentName The name of the deployment.\n * @param parameters Additional parameters supplied to the operation.\n * @param options The options parameters.\n */\n beginCreateOrUpdateAtTenantScopeAndWait(\n deploymentName: string,\n parameters: ScopedDeployment,\n options?: DeploymentsCreateOrUpdateAtTenantScopeOptionalParams,\n ): Promise<DeploymentsCreateOrUpdateAtTenantScopeResponse>;\n /**\n * Gets a deployment.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n getAtTenantScope(\n deploymentName: string,\n options?: DeploymentsGetAtTenantScopeOptionalParams,\n ): Promise<DeploymentsGetAtTenantScopeResponse>;\n /**\n * You can cancel a deployment only if the provisioningState is Accepted or Running. After the\n * deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment\n * stops the currently running template deployment and leaves the resources partially deployed.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n cancelAtTenantScope(\n deploymentName: string,\n options?: DeploymentsCancelAtTenantScopeOptionalParams,\n ): Promise<void>;\n /**\n * Validates whether the specified template is syntactically correct and will be accepted by Azure\n * Resource Manager..\n * @param deploymentName The name of the deployment.\n * @param parameters Parameters to validate.\n * @param options The options parameters.\n */\n beginValidateAtTenantScope(\n deploymentName: string,\n parameters: ScopedDeployment,\n options?: DeploymentsValidateAtTenantScopeOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DeploymentsValidateAtTenantScopeResponse>,\n DeploymentsValidateAtTenantScopeResponse\n >\n >;\n /**\n * Validates whether the specified template is syntactically correct and will be accepted by Azure\n * Resource Manager..\n * @param deploymentName The name of the deployment.\n * @param parameters Parameters to validate.\n * @param options The options parameters.\n */\n beginValidateAtTenantScopeAndWait(\n deploymentName: string,\n parameters: ScopedDeployment,\n options?: DeploymentsValidateAtTenantScopeOptionalParams,\n ): Promise<DeploymentsValidateAtTenantScopeResponse>;\n /**\n * Returns changes that will be made by the deployment if executed at the scope of the tenant group.\n * @param deploymentName The name of the deployment.\n * @param parameters Parameters to validate.\n * @param options The options parameters.\n */\n beginWhatIfAtTenantScope(\n deploymentName: string,\n parameters: ScopedDeploymentWhatIf,\n options?: DeploymentsWhatIfAtTenantScopeOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DeploymentsWhatIfAtTenantScopeResponse>,\n DeploymentsWhatIfAtTenantScopeResponse\n >\n >;\n /**\n * Returns changes that will be made by the deployment if executed at the scope of the tenant group.\n * @param deploymentName The name of the deployment.\n * @param parameters Parameters to validate.\n * @param options The options parameters.\n */\n beginWhatIfAtTenantScopeAndWait(\n deploymentName: string,\n parameters: ScopedDeploymentWhatIf,\n options?: DeploymentsWhatIfAtTenantScopeOptionalParams,\n ): Promise<DeploymentsWhatIfAtTenantScopeResponse>;\n /**\n * Exports the template used for specified deployment.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n exportTemplateAtTenantScope(\n deploymentName: string,\n options?: DeploymentsExportTemplateAtTenantScopeOptionalParams,\n ): Promise<DeploymentsExportTemplateAtTenantScopeResponse>;\n /**\n * A template deployment that is currently running cannot be deleted. Deleting a template deployment\n * removes the associated deployment operations. This is an asynchronous operation that returns a\n * status of 202 until the template deployment is successfully deleted. The Location response header\n * contains the URI that is used to obtain the status of the process. While the process is running, a\n * call to the URI in the Location header returns a status of 202. When the process finishes, the URI\n * in the Location header returns a status of 204 on success. If the asynchronous request failed, the\n * URI in the Location header returns an error-level status code.\n * @param groupId The management group ID.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n beginDeleteAtManagementGroupScope(\n groupId: string,\n deploymentName: string,\n options?: DeploymentsDeleteAtManagementGroupScopeOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * A template deployment that is currently running cannot be deleted. Deleting a template deployment\n * removes the associated deployment operations. This is an asynchronous operation that returns a\n * status of 202 until the template deployment is successfully deleted. The Location response header\n * contains the URI that is used to obtain the status of the process. While the process is running, a\n * call to the URI in the Location header returns a status of 202. When the process finishes, the URI\n * in the Location header returns a status of 204 on success. If the asynchronous request failed, the\n * URI in the Location header returns an error-level status code.\n * @param groupId The management group ID.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n beginDeleteAtManagementGroupScopeAndWait(\n groupId: string,\n deploymentName: string,\n options?: DeploymentsDeleteAtManagementGroupScopeOptionalParams,\n ): Promise<void>;\n /**\n * Checks whether the deployment exists.\n * @param groupId The management group ID.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n checkExistenceAtManagementGroupScope(\n groupId: string,\n deploymentName: string,\n options?: DeploymentsCheckExistenceAtManagementGroupScopeOptionalParams,\n ): Promise<DeploymentsCheckExistenceAtManagementGroupScopeResponse>;\n /**\n * You can provide the template and parameters directly in the request or link to JSON files.\n * @param groupId The management group ID.\n * @param deploymentName The name of the deployment.\n * @param parameters Additional parameters supplied to the operation.\n * @param options The options parameters.\n */\n beginCreateOrUpdateAtManagementGroupScope(\n groupId: string,\n deploymentName: string,\n parameters: ScopedDeployment,\n options?: DeploymentsCreateOrUpdateAtManagementGroupScopeOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DeploymentsCreateOrUpdateAtManagementGroupScopeResponse>,\n DeploymentsCreateOrUpdateAtManagementGroupScopeResponse\n >\n >;\n /**\n * You can provide the template and parameters directly in the request or link to JSON files.\n * @param groupId The management group ID.\n * @param deploymentName The name of the deployment.\n * @param parameters Additional parameters supplied to the operation.\n * @param options The options parameters.\n */\n beginCreateOrUpdateAtManagementGroupScopeAndWait(\n groupId: string,\n deploymentName: string,\n parameters: ScopedDeployment,\n options?: DeploymentsCreateOrUpdateAtManagementGroupScopeOptionalParams,\n ): Promise<DeploymentsCreateOrUpdateAtManagementGroupScopeResponse>;\n /**\n * Gets a deployment.\n * @param groupId The management group ID.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n getAtManagementGroupScope(\n groupId: string,\n deploymentName: string,\n options?: DeploymentsGetAtManagementGroupScopeOptionalParams,\n ): Promise<DeploymentsGetAtManagementGroupScopeResponse>;\n /**\n * You can cancel a deployment only if the provisioningState is Accepted or Running. After the\n * deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment\n * stops the currently running template deployment and leaves the resources partially deployed.\n * @param groupId The management group ID.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n cancelAtManagementGroupScope(\n groupId: string,\n deploymentName: string,\n options?: DeploymentsCancelAtManagementGroupScopeOptionalParams,\n ): Promise<void>;\n /**\n * Validates whether the specified template is syntactically correct and will be accepted by Azure\n * Resource Manager..\n * @param groupId The management group ID.\n * @param deploymentName The name of the deployment.\n * @param parameters Parameters to validate.\n * @param options The options parameters.\n */\n beginValidateAtManagementGroupScope(\n groupId: string,\n deploymentName: string,\n parameters: ScopedDeployment,\n options?: DeploymentsValidateAtManagementGroupScopeOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DeploymentsValidateAtManagementGroupScopeResponse>,\n DeploymentsValidateAtManagementGroupScopeResponse\n >\n >;\n /**\n * Validates whether the specified template is syntactically correct and will be accepted by Azure\n * Resource Manager..\n * @param groupId The management group ID.\n * @param deploymentName The name of the deployment.\n * @param parameters Parameters to validate.\n * @param options The options parameters.\n */\n beginValidateAtManagementGroupScopeAndWait(\n groupId: string,\n deploymentName: string,\n parameters: ScopedDeployment,\n options?: DeploymentsValidateAtManagementGroupScopeOptionalParams,\n ): Promise<DeploymentsValidateAtManagementGroupScopeResponse>;\n /**\n * Returns changes that will be made by the deployment if executed at the scope of the management\n * group.\n * @param groupId The management group ID.\n * @param deploymentName The name of the deployment.\n * @param parameters Parameters to validate.\n * @param options The options parameters.\n */\n beginWhatIfAtManagementGroupScope(\n groupId: string,\n deploymentName: string,\n parameters: ScopedDeploymentWhatIf,\n options?: DeploymentsWhatIfAtManagementGroupScopeOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DeploymentsWhatIfAtManagementGroupScopeResponse>,\n DeploymentsWhatIfAtManagementGroupScopeResponse\n >\n >;\n /**\n * Returns changes that will be made by the deployment if executed at the scope of the management\n * group.\n * @param groupId The management group ID.\n * @param deploymentName The name of the deployment.\n * @param parameters Parameters to validate.\n * @param options The options parameters.\n */\n beginWhatIfAtManagementGroupScopeAndWait(\n groupId: string,\n deploymentName: string,\n parameters: ScopedDeploymentWhatIf,\n options?: DeploymentsWhatIfAtManagementGroupScopeOptionalParams,\n ): Promise<DeploymentsWhatIfAtManagementGroupScopeResponse>;\n /**\n * Exports the template used for specified deployment.\n * @param groupId The management group ID.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n exportTemplateAtManagementGroupScope(\n groupId: string,\n deploymentName: string,\n options?: DeploymentsExportTemplateAtManagementGroupScopeOptionalParams,\n ): Promise<DeploymentsExportTemplateAtManagementGroupScopeResponse>;\n /**\n * A template deployment that is currently running cannot be deleted. Deleting a template deployment\n * removes the associated deployment operations. This is an asynchronous operation that returns a\n * status of 202 until the template deployment is successfully deleted. The Location response header\n * contains the URI that is used to obtain the status of the process. While the process is running, a\n * call to the URI in the Location header returns a status of 202. When the process finishes, the URI\n * in the Location header returns a status of 204 on success. If the asynchronous request failed, the\n * URI in the Location header returns an error-level status code.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n beginDeleteAtSubscriptionScope(\n deploymentName: string,\n options?: DeploymentsDeleteAtSubscriptionScopeOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * A template deployment that is currently running cannot be deleted. Deleting a template deployment\n * removes the associated deployment operations. This is an asynchronous operation that returns a\n * status of 202 until the template deployment is successfully deleted. The Location response header\n * contains the URI that is used to obtain the status of the process. While the process is running, a\n * call to the URI in the Location header returns a status of 202. When the process finishes, the URI\n * in the Location header returns a status of 204 on success. If the asynchronous request failed, the\n * URI in the Location header returns an error-level status code.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n beginDeleteAtSubscriptionScopeAndWait(\n deploymentName: string,\n options?: DeploymentsDeleteAtSubscriptionScopeOptionalParams,\n ): Promise<void>;\n /**\n * Checks whether the deployment exists.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n checkExistenceAtSubscriptionScope(\n deploymentName: string,\n options?: DeploymentsCheckExistenceAtSubscriptionScopeOptionalParams,\n ): Promise<DeploymentsCheckExistenceAtSubscriptionScopeResponse>;\n /**\n * You can provide the template and parameters directly in the request or link to JSON files.\n * @param deploymentName The name of the deployment.\n * @param parameters Additional parameters supplied to the operation.\n * @param options The options parameters.\n */\n beginCreateOrUpdateAtSubscriptionScope(\n deploymentName: string,\n parameters: Deployment,\n options?: DeploymentsCreateOrUpdateAtSubscriptionScopeOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DeploymentsCreateOrUpdateAtSubscriptionScopeResponse>,\n DeploymentsCreateOrUpdateAtSubscriptionScopeResponse\n >\n >;\n /**\n * You can provide the template and parameters directly in the request or link to JSON files.\n * @param deploymentName The name of the deployment.\n * @param parameters Additional parameters supplied to the operation.\n * @param options The options parameters.\n */\n beginCreateOrUpdateAtSubscriptionScopeAndWait(\n deploymentName: string,\n parameters: Deployment,\n options?: DeploymentsCreateOrUpdateAtSubscriptionScopeOptionalParams,\n ): Promise<DeploymentsCreateOrUpdateAtSubscriptionScopeResponse>;\n /**\n * Gets a deployment.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n getAtSubscriptionScope(\n deploymentName: string,\n options?: DeploymentsGetAtSubscriptionScopeOptionalParams,\n ): Promise<DeploymentsGetAtSubscriptionScopeResponse>;\n /**\n * You can cancel a deployment only if the provisioningState is Accepted or Running. After the\n * deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment\n * stops the currently running template deployment and leaves the resources partially deployed.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n cancelAtSubscriptionScope(\n deploymentName: string,\n options?: DeploymentsCancelAtSubscriptionScopeOptionalParams,\n ): Promise<void>;\n /**\n * Validates whether the specified template is syntactically correct and will be accepted by Azure\n * Resource Manager..\n * @param deploymentName The name of the deployment.\n * @param parameters Parameters to validate.\n * @param options The options parameters.\n */\n beginValidateAtSubscriptionScope(\n deploymentName: string,\n parameters: Deployment,\n options?: DeploymentsValidateAtSubscriptionScopeOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DeploymentsValidateAtSubscriptionScopeResponse>,\n DeploymentsValidateAtSubscriptionScopeResponse\n >\n >;\n /**\n * Validates whether the specified template is syntactically correct and will be accepted by Azure\n * Resource Manager..\n * @param deploymentName The name of the deployment.\n * @param parameters Parameters to validate.\n * @param options The options parameters.\n */\n beginValidateAtSubscriptionScopeAndWait(\n deploymentName: string,\n parameters: Deployment,\n options?: DeploymentsValidateAtSubscriptionScopeOptionalParams,\n ): Promise<DeploymentsValidateAtSubscriptionScopeResponse>;\n /**\n * Returns changes that will be made by the deployment if executed at the scope of the subscription.\n * @param deploymentName The name of the deployment.\n * @param parameters Parameters to What If.\n * @param options The options parameters.\n */\n beginWhatIfAtSubscriptionScope(\n deploymentName: string,\n parameters: DeploymentWhatIf,\n options?: DeploymentsWhatIfAtSubscriptionScopeOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DeploymentsWhatIfAtSubscriptionScopeResponse>,\n DeploymentsWhatIfAtSubscriptionScopeResponse\n >\n >;\n /**\n * Returns changes that will be made by the deployment if executed at the scope of the subscription.\n * @param deploymentName The name of the deployment.\n * @param parameters Parameters to What If.\n * @param options The options parameters.\n */\n beginWhatIfAtSubscriptionScopeAndWait(\n deploymentName: string,\n parameters: DeploymentWhatIf,\n options?: DeploymentsWhatIfAtSubscriptionScopeOptionalParams,\n ): Promise<DeploymentsWhatIfAtSubscriptionScopeResponse>;\n /**\n * Exports the template used for specified deployment.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n exportTemplateAtSubscriptionScope(\n deploymentName: string,\n options?: DeploymentsExportTemplateAtSubscriptionScopeOptionalParams,\n ): Promise<DeploymentsExportTemplateAtSubscriptionScopeResponse>;\n /**\n * A template deployment that is currently running cannot be deleted. Deleting a template deployment\n * removes the associated deployment operations. Deleting a template deployment does not affect the\n * state of the resource group. This is an asynchronous operation that returns a status of 202 until\n * the template deployment is successfully deleted. The Location response header contains the URI that\n * is used to obtain the status of the process. While the process is running, a call to the URI in the\n * Location header returns a status of 202. When the process finishes, the URI in the Location header\n * returns a status of 204 on success. If the asynchronous request failed, the URI in the Location\n * header returns an error-level status code.\n * @param resourceGroupName The name of the resource group with the deployment to delete. The name is\n * case insensitive.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n beginDelete(\n resourceGroupName: string,\n deploymentName: string,\n options?: DeploymentsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * A template deployment that is currently running cannot be deleted. Deleting a template deployment\n * removes the associated deployment operations. Deleting a template deployment does not affect the\n * state of the resource group. This is an asynchronous operation that returns a status of 202 until\n * the template deployment is successfully deleted. The Location response header contains the URI that\n * is used to obtain the status of the process. While the process is running, a call to the URI in the\n * Location header returns a status of 202. When the process finishes, the URI in the Location header\n * returns a status of 204 on success. If the asynchronous request failed, the URI in the Location\n * header returns an error-level status code.\n * @param resourceGroupName The name of the resource group with the deployment to delete. The name is\n * case insensitive.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n beginDeleteAndWait(\n resourceGroupName: string,\n deploymentName: string,\n options?: DeploymentsDeleteOptionalParams,\n ): Promise<void>;\n /**\n * Checks whether the deployment exists.\n * @param resourceGroupName The name of the resource group with the deployment to check. The name is\n * case insensitive.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n checkExistence(\n resourceGroupName: string,\n deploymentName: string,\n options?: DeploymentsCheckExistenceOptionalParams,\n ): Promise<DeploymentsCheckExistenceResponse>;\n /**\n * You can provide the template and parameters directly in the request or link to JSON files.\n * @param resourceGroupName The name of the resource group to deploy the resources to. The name is case\n * insensitive. The resource group must already exist.\n * @param deploymentName The name of the deployment.\n * @param parameters Additional parameters supplied to the operation.\n * @param options The options parameters.\n */\n beginCreateOrUpdate(\n resourceGroupName: string,\n deploymentName: string,\n parameters: Deployment,\n options?: DeploymentsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DeploymentsCreateOrUpdateResponse>,\n DeploymentsCreateOrUpdateResponse\n >\n >;\n /**\n * You can provide the template and parameters directly in the request or link to JSON files.\n * @param resourceGroupName The name of the resource group to deploy the resources to. The name is case\n * insensitive. The resource group must already exist.\n * @param deploymentName The name of the deployment.\n * @param parameters Additional parameters supplied to the operation.\n * @param options The options parameters.\n */\n beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n deploymentName: string,\n parameters: Deployment,\n options?: DeploymentsCreateOrUpdateOptionalParams,\n ): Promise<DeploymentsCreateOrUpdateResponse>;\n /**\n * Gets a deployment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n deploymentName: string,\n options?: DeploymentsGetOptionalParams,\n ): Promise<DeploymentsGetResponse>;\n /**\n * You can cancel a deployment only if the provisioningState is Accepted or Running. After the\n * deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment\n * stops the currently running template deployment and leaves the resource group partially deployed.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n cancel(\n resourceGroupName: string,\n deploymentName: string,\n options?: DeploymentsCancelOptionalParams,\n ): Promise<void>;\n /**\n * Validates whether the specified template is syntactically correct and will be accepted by Azure\n * Resource Manager..\n * @param resourceGroupName The name of the resource group the template will be deployed to. The name\n * is case insensitive.\n * @param deploymentName The name of the deployment.\n * @param parameters Parameters to validate.\n * @param options The options parameters.\n */\n beginValidate(\n resourceGroupName: string,\n deploymentName: string,\n parameters: Deployment,\n options?: DeploymentsValidateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DeploymentsValidateResponse>,\n DeploymentsValidateResponse\n >\n >;\n /**\n * Validates whether the specified template is syntactically correct and will be accepted by Azure\n * Resource Manager..\n * @param resourceGroupName The name of the resource group the template will be deployed to. The name\n * is case insensitive.\n * @param deploymentName The name of the deployment.\n * @param parameters Parameters to validate.\n * @param options The options parameters.\n */\n beginValidateAndWait(\n resourceGroupName: string,\n deploymentName: string,\n parameters: Deployment,\n options?: DeploymentsValidateOptionalParams,\n ): Promise<DeploymentsValidateResponse>;\n /**\n * Returns changes that will be made by the deployment if executed at the scope of the resource group.\n * @param resourceGroupName The name of the resource group the template will be deployed to. The name\n * is case insensitive.\n * @param deploymentName The name of the deployment.\n * @param parameters Parameters to validate.\n * @param options The options parameters.\n */\n beginWhatIf(\n resourceGroupName: string,\n deploymentName: string,\n parameters: DeploymentWhatIf,\n options?: DeploymentsWhatIfOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DeploymentsWhatIfResponse>,\n DeploymentsWhatIfResponse\n >\n >;\n /**\n * Returns changes that will be made by the deployment if executed at the scope of the resource group.\n * @param resourceGroupName The name of the resource group the template will be deployed to. The name\n * is case insensitive.\n * @param deploymentName The name of the deployment.\n * @param parameters Parameters to validate.\n * @param options The options parameters.\n */\n beginWhatIfAndWait(\n resourceGroupName: string,\n deploymentName: string,\n parameters: DeploymentWhatIf,\n options?: DeploymentsWhatIfOptionalParams,\n ): Promise<DeploymentsWhatIfResponse>;\n /**\n * Exports the template used for specified deployment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param deploymentName The name of the deployment.\n * @param options The options parameters.\n */\n exportTemplate(\n resourceGroupName: string,\n deploymentName: string,\n options?: DeploymentsExportTemplateOptionalParams,\n ): Promise<DeploymentsExportTemplateResponse>;\n /**\n * Calculate the hash of the given template.\n * @param template The template provided to calculate hash.\n * @param options The options parameters.\n */\n calculateTemplateHash(\n template: Record<string, unknown>,\n options?: DeploymentsCalculateTemplateHashOptionalParams,\n ): Promise<DeploymentsCalculateTemplateHashResponse>;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export * from "./deployments.js";
|
|
9
|
+
export * from "./deploymentOperations.js";
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./deployments.js\";\nexport * from \"./deploymentOperations.js\";\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface PageInfo {
|
|
2
|
+
continuationToken?: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
6
|
+
* returns a continuation token that can be used to begin paging from
|
|
7
|
+
* that point later.
|
|
8
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
9
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
10
|
+
*/
|
|
11
|
+
export declare function getContinuationToken(page: unknown): string | undefined;
|
|
12
|
+
export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
|
|
13
|
+
//# sourceMappingURL=pagingHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
const pageMap = new WeakMap();
|
|
9
|
+
/**
|
|
10
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
11
|
+
* returns a continuation token that can be used to begin paging from
|
|
12
|
+
* that point later.
|
|
13
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
14
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
15
|
+
*/
|
|
16
|
+
export function getContinuationToken(page) {
|
|
17
|
+
var _a;
|
|
18
|
+
if (typeof page !== "object" || page === null) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
22
|
+
}
|
|
23
|
+
export function setContinuationToken(page, continuationToken) {
|
|
24
|
+
var _a;
|
|
25
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
29
|
+
pageInfo.continuationToken = continuationToken;
|
|
30
|
+
pageMap.set(page, pageInfo);
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=pagingHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined,\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
2
|
+
import * as coreAuth from "@azure/core-auth";
|
|
3
|
+
import { Deployments, DeploymentOperations } from "./operationsInterfaces/index.js";
|
|
4
|
+
import { DeploymentsClientOptionalParams } from "./models/index.js";
|
|
5
|
+
export declare class DeploymentsClient extends coreClient.ServiceClient {
|
|
6
|
+
$host: string;
|
|
7
|
+
apiVersion: string;
|
|
8
|
+
subscriptionId?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Initializes a new instance of the DeploymentsClient class.
|
|
11
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
12
|
+
* @param subscriptionId The Microsoft Azure subscription ID.
|
|
13
|
+
* @param options The parameter options
|
|
14
|
+
*/
|
|
15
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: DeploymentsClientOptionalParams);
|
|
16
|
+
constructor(credentials: coreAuth.TokenCredential, options?: DeploymentsClientOptionalParams);
|
|
17
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
18
|
+
private addCustomApiVersionPolicy;
|
|
19
|
+
deployments: Deployments;
|
|
20
|
+
deploymentOperations: DeploymentOperations;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=deploymentsClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploymentsClient.d.ts","sourceRoot":"","sources":["../../src/deploymentsClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAK7C,OAAO,EACL,WAAW,EACX,oBAAoB,EACrB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,+BAA+B,EAAE,MAAM,mBAAmB,CAAC;AAEpE,qBAAa,iBAAkB,SAAQ,UAAU,CAAC,aAAa;IAC7D,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,+BAA+B;gBAGzC,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,OAAO,CAAC,EAAE,+BAA+B;IAwF3C,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,WAAW,EAAE,WAAW,CAAC;IACzB,oBAAoB,EAAE,oBAAoB,CAAC;CAC5C"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.DeploymentsClient = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
13
|
+
const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
|
|
14
|
+
const index_js_1 = require("./operations/index.js");
|
|
15
|
+
class DeploymentsClient extends coreClient.ServiceClient {
|
|
16
|
+
constructor(credentials, subscriptionIdOrOptions, options) {
|
|
17
|
+
var _a, _b, _c;
|
|
18
|
+
if (credentials === undefined) {
|
|
19
|
+
throw new Error("'credentials' cannot be null");
|
|
20
|
+
}
|
|
21
|
+
let subscriptionId;
|
|
22
|
+
if (typeof subscriptionIdOrOptions === "string") {
|
|
23
|
+
subscriptionId = subscriptionIdOrOptions;
|
|
24
|
+
}
|
|
25
|
+
else if (typeof subscriptionIdOrOptions === "object") {
|
|
26
|
+
options = subscriptionIdOrOptions;
|
|
27
|
+
}
|
|
28
|
+
// Initializing default values for options
|
|
29
|
+
if (!options) {
|
|
30
|
+
options = {};
|
|
31
|
+
}
|
|
32
|
+
const defaults = {
|
|
33
|
+
requestContentType: "application/json; charset=utf-8",
|
|
34
|
+
credential: credentials,
|
|
35
|
+
};
|
|
36
|
+
const packageDetails = `azsdk-js-arm-resourcesdeployments/1.0.0-beta.1`;
|
|
37
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
38
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
39
|
+
: `${packageDetails}`;
|
|
40
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
41
|
+
userAgentPrefix,
|
|
42
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
43
|
+
super(optionsWithDefaults);
|
|
44
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
45
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
46
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
47
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
48
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
49
|
+
}
|
|
50
|
+
if (!options ||
|
|
51
|
+
!options.pipeline ||
|
|
52
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
53
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
54
|
+
this.pipeline.removePolicy({
|
|
55
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
|
56
|
+
});
|
|
57
|
+
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
58
|
+
credential: credentials,
|
|
59
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
60
|
+
challengeCallbacks: {
|
|
61
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
|
|
62
|
+
},
|
|
63
|
+
}));
|
|
64
|
+
}
|
|
65
|
+
// Parameter assignments
|
|
66
|
+
this.subscriptionId = subscriptionId;
|
|
67
|
+
// Assigning values to Constant parameters
|
|
68
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
69
|
+
this.apiVersion = options.apiVersion || "2025-04-01";
|
|
70
|
+
this.deployments = new index_js_1.DeploymentsImpl(this);
|
|
71
|
+
this.deploymentOperations = new index_js_1.DeploymentOperationsImpl(this);
|
|
72
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
73
|
+
}
|
|
74
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
75
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
76
|
+
if (!apiVersion) {
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
const apiVersionPolicy = {
|
|
80
|
+
name: "CustomApiVersionPolicy",
|
|
81
|
+
async sendRequest(request, next) {
|
|
82
|
+
const param = request.url.split("?");
|
|
83
|
+
if (param.length > 1) {
|
|
84
|
+
const newParams = param[1].split("&").map((item) => {
|
|
85
|
+
if (item.indexOf("api-version") > -1) {
|
|
86
|
+
return "api-version=" + apiVersion;
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
return item;
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
93
|
+
}
|
|
94
|
+
return next(request);
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.DeploymentsClient = DeploymentsClient;
|
|
101
|
+
//# sourceMappingURL=deploymentsClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploymentsClient.js","sourceRoot":"","sources":["../../src/deploymentsClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAG+B;AAO/B,MAAa,iBAAkB,SAAQ,UAAU,CAAC,aAAa;IAoB7D,YACE,WAAqC,EACrC,uBAAkE,EAClE,OAAyC;;QAEzC,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,cAAkC,CAAC;QAEvC,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YAChD,cAAc,GAAG,uBAAuB,CAAC;QAC3C,CAAC;aAAM,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YACvD,OAAO,GAAG,uBAAuB,CAAC;QACpC,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAoC;YAChD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,gDAAgD,CAAC;QACxE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,QAAQ,EACN,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,8BAA8B,GACxE,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAE3B,IAAI,oCAAoC,GAAY,KAAK,CAAC;QAC1D,IAAI,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,KAAI,OAAO,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC1E,MAAM,gBAAgB,GACpB,OAAO,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAC;YACxC,oCAAoC,GAAG,gBAAgB,CAAC,IAAI,CAC1D,CAAC,cAAc,EAAE,EAAE,CACjB,cAAc,CAAC,IAAI;gBACnB,gBAAgB,CAAC,mCAAmC,CACvD,CAAC;QACJ,CAAC;QACD,IACE,CAAC,OAAO;YACR,CAAC,OAAO,CAAC,QAAQ;YACjB,OAAO,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAC,MAAM,IAAI,CAAC;YACjD,CAAC,oCAAoC,EACrC,CAAC;YACD,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC;gBACzB,IAAI,EAAE,gBAAgB,CAAC,mCAAmC;aAC3D,CAAC,CAAC;YACH,IAAI,CAAC,QAAQ,CAAC,SAAS,CACrB,gBAAgB,CAAC,+BAA+B,CAAC;gBAC/C,UAAU,EAAE,WAAW;gBACvB,MAAM,EACJ,MAAA,mBAAmB,CAAC,gBAAgB,mCACpC,GAAG,mBAAmB,CAAC,QAAQ,WAAW;gBAC5C,kBAAkB,EAAE;oBAClB,2BAA2B,EACzB,UAAU,CAAC,gCAAgC;iBAC9C;aACF,CAAC,CACH,CAAC;QACJ,CAAC;QACD,wBAAwB;QACxB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QAErC,0CAA0C;QAC1C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,8BAA8B,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;QACrD,IAAI,CAAC,WAAW,GAAG,IAAI,0BAAe,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,oBAAoB,GAAG,IAAI,mCAAwB,CAAC,IAAI,CAAC,CAAC;QAC/D,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IAED,8GAA8G;IACtG,yBAAyB,CAAC,UAAmB;QACnD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO;QACT,CAAC;QACD,MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAIF;AAxID,8CAwIC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n DeploymentsImpl,\n DeploymentOperationsImpl,\n} from \"./operations/index.js\";\nimport {\n Deployments,\n DeploymentOperations,\n} from \"./operationsInterfaces/index.js\";\nimport { DeploymentsClientOptionalParams } from \"./models/index.js\";\n\nexport class DeploymentsClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the DeploymentsClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The Microsoft Azure subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: DeploymentsClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: DeploymentsClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: DeploymentsClientOptionalParams | string,\n options?: DeploymentsClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: DeploymentsClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-resourcesdeployments/1.0.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2025-04-01\";\n this.deployments = new DeploymentsImpl(this);\n this.deploymentOperations = new DeploymentOperationsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n deployments: Deployments;\n deploymentOperations: DeploymentOperations;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,cAAc,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.DeploymentsClient = exports.getContinuationToken = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
var pagingHelper_js_1 = require("./pagingHelper.js");
|
|
14
|
+
Object.defineProperty(exports, "getContinuationToken", { enumerable: true, get: function () { return pagingHelper_js_1.getContinuationToken; } });
|
|
15
|
+
tslib_1.__exportStar(require("./models/index.js"), exports);
|
|
16
|
+
var deploymentsClient_js_1 = require("./deploymentsClient.js");
|
|
17
|
+
Object.defineProperty(exports, "DeploymentsClient", { enumerable: true, get: function () { return deploymentsClient_js_1.DeploymentsClient; } });
|
|
18
|
+
tslib_1.__exportStar(require("./operationsInterfaces/index.js"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,4CAA4C;AAC5C,qDAAyD;AAAhD,uHAAA,oBAAoB,OAAA;AAC7B,4DAAkC;AAClC,+DAA2D;AAAlD,yHAAA,iBAAiB,OAAA;AAC1B,0EAAgD","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { DeploymentsClient } from \"./deploymentsClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
2
|
+
export declare function createLroSpec<T>(inputs: {
|
|
3
|
+
sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
|
|
4
|
+
args: Record<string, unknown>;
|
|
5
|
+
spec: {
|
|
6
|
+
readonly requestBody?: unknown;
|
|
7
|
+
readonly path?: string;
|
|
8
|
+
readonly httpMethod: string;
|
|
9
|
+
} & Record<string, any>;
|
|
10
|
+
}): LongRunningOperation<T>;
|
|
11
|
+
//# sourceMappingURL=lroImpl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.createLroSpec = createLroSpec;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
function createLroSpec(inputs) {
|
|
13
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
14
|
+
return {
|
|
15
|
+
requestMethod: spec.httpMethod,
|
|
16
|
+
requestPath: spec.path,
|
|
17
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
18
|
+
sendPollRequest: (path, options) => {
|
|
19
|
+
const { requestBody } = spec, restSpec = tslib_1.__rest(spec, ["requestBody"]);
|
|
20
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=lroImpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAKH,sCA2BC;;AA3BD,SAAgB,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,kBAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}
|