import { PagedAsyncIterableIterator } from "@azure/core-paging" ; import { Deployments } from "../operationsInterfaces" ; import * as coreClient from "@azure/core-client" ; import * as Mappers from "../models/mappers" ; import * as Parameters from "../models/parameters" ; import { ResourceManagementClient } from "../resourceManagementClient" ; import { PollerLike , PollOperationState , LroEngine } from "@azure/core-lro" ; import { LroImpl } from "../lroImpl" ; import { DeploymentExtended , DeploymentsListAtScopeNextOptionalParams , DeploymentsListAtScopeOptionalParams , DeploymentsListAtTenantScopeNextOptionalParams , DeploymentsListAtTenantScopeOptionalParams , DeploymentsListAtManagementGroupScopeNextOptionalParams , DeploymentsListAtManagementGroupScopeOptionalParams , DeploymentsListAtSubscriptionScopeNextOptionalParams , DeploymentsListAtSubscriptionScopeOptionalParams , DeploymentsListByResourceGroupNextOptionalParams , DeploymentsListByResourceGroupOptionalParams , DeploymentsDeleteAtScopeOptionalParams , DeploymentsCheckExistenceAtScopeOptionalParams , Deployment , DeploymentsCreateOrUpdateAtScopeOptionalParams , DeploymentsCreateOrUpdateAtScopeResponse , DeploymentsGetAtScopeOptionalParams , DeploymentsGetAtScopeResponse , DeploymentsCancelAtScopeOptionalParams , DeploymentsValidateAtScopeOptionalParams , DeploymentsValidateAtScopeResponse , DeploymentsExportTemplateAtScopeOptionalParams , DeploymentsExportTemplateAtScopeResponse , DeploymentsListAtScopeResponse , DeploymentsDeleteAtTenantScopeOptionalParams , DeploymentsCheckExistenceAtTenantScopeOptionalParams , ScopedDeployment , DeploymentsCreateOrUpdateAtTenantScopeOptionalParams , DeploymentsCreateOrUpdateAtTenantScopeResponse , DeploymentsGetAtTenantScopeOptionalParams , DeploymentsGetAtTenantScopeResponse , DeploymentsCancelAtTenantScopeOptionalParams , DeploymentsValidateAtTenantScopeOptionalParams , DeploymentsValidateAtTenantScopeResponse , DeploymentsExportTemplateAtTenantScopeOptionalParams , DeploymentsExportTemplateAtTenantScopeResponse , DeploymentsListAtTenantScopeResponse , DeploymentsDeleteAtManagementGroupScopeOptionalParams , DeploymentsCheckExistenceAtManagementGroupScopeOptionalParams , DeploymentsCreateOrUpdateAtManagementGroupScopeOptionalParams , DeploymentsCreateOrUpdateAtManagementGroupScopeResponse , DeploymentsGetAtManagementGroupScopeOptionalParams , DeploymentsGetAtManagementGroupScopeResponse , DeploymentsCancelAtManagementGroupScopeOptionalParams , DeploymentsValidateAtManagementGroupScopeOptionalParams , DeploymentsValidateAtManagementGroupScopeResponse , DeploymentsExportTemplateAtManagementGroupScopeOptionalParams , DeploymentsExportTemplateAtManagementGroupScopeResponse , DeploymentsListAtManagementGroupScopeResponse , DeploymentsDeleteAtSubscriptionScopeOptionalParams , DeploymentsCheckExistenceAtSubscriptionScopeOptionalParams , DeploymentsCreateOrUpdateAtSubscriptionScopeOptionalParams , DeploymentsCreateOrUpdateAtSubscriptionScopeResponse , DeploymentsGetAtSubscriptionScopeOptionalParams , DeploymentsGetAtSubscriptionScopeResponse , DeploymentsCancelAtSubscriptionScopeOptionalParams , DeploymentsValidateAtSubscriptionScopeOptionalParams , DeploymentsValidateAtSubscriptionScopeResponse , DeploymentWhatIf , DeploymentsWhatIfAtSubscriptionScopeOptionalParams , DeploymentsWhatIfAtSubscriptionScopeResponse , DeploymentsExportTemplateAtSubscriptionScopeOptionalParams , DeploymentsExportTemplateAtSubscriptionScopeResponse , DeploymentsListAtSubscriptionScopeResponse , DeploymentsDeleteOptionalParams , DeploymentsCheckExistenceOptionalParams , DeploymentsCreateOrUpdateOptionalParams , DeploymentsCreateOrUpdateResponse , DeploymentsGetOptionalParams , DeploymentsGetResponse , DeploymentsCancelOptionalParams , DeploymentsValidateOptionalParams , DeploymentsValidateResponse , DeploymentsWhatIfOptionalParams , DeploymentsWhatIfResponse , DeploymentsExportTemplateOptionalParams , DeploymentsExportTemplateResponse , DeploymentsListByResourceGroupResponse , DeploymentsCalculateTemplateHashOptionalParams , DeploymentsCalculateTemplateHashResponse , DeploymentsListAtScopeNextResponse , DeploymentsListAtTenantScopeNextResponse , DeploymentsListAtManagementGroupScopeNextResponse , DeploymentsListAtSubscriptionScopeNextResponse , DeploymentsListByResourceGroupNextResponse } from "../models" ; /** Class containing Deployments operations. */ export class DeploymentsImpl implements Deployments { private readonly client : ResourceManagementClient ; param client constructor ( client ) { this . client = client ; } param scope param options public listAtScope ( scope , options ? ) { const iter = this . listAtScopePagingAll ( scope , options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . listAtScopePagingPage ( scope , options ) ; } } ; } private async * listAtScopePagingPage ( scope , options ? ) { let result = await this . _listAtScope ( scope , options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _listAtScopeNext ( scope , continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * listAtScopePagingAll ( scope , options ? ) { for await ( const page of this . listAtScopePagingPage ( scope , options ) ) { yield * page ; } } param options public listAtTenantScope ( options ? ) { const iter = this . listAtTenantScopePagingAll ( options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . listAtTenantScopePagingPage ( options ) ; } } ; } private async * listAtTenantScopePagingPage ( options ? ) { let result = await this . _listAtTenantScope ( options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _listAtTenantScopeNext ( continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * listAtTenantScopePagingAll ( options ? ) { for await ( const page of this . listAtTenantScopePagingPage ( options ) ) { yield * page ; } } param groupId param options public listAtManagementGroupScope ( groupId , options ? ) { const iter = this . listAtManagementGroupScopePagingAll ( groupId , options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . listAtManagementGroupScopePagingPage ( groupId , options ) ; } } ; } private async * listAtManagementGroupScopePagingPage ( groupId , options ? ) { let result = await this . _listAtManagementGroupScope ( groupId , options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _listAtManagementGroupScopeNext ( groupId , continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * listAtManagementGroupScopePagingAll ( groupId , options ? ) { for await ( const page of this . listAtManagementGroupScopePagingPage ( groupId , options ) ) { yield * page ; } } param options public listAtSubscriptionScope ( options ? ) { const iter = this . listAtSubscriptionScopePagingAll ( options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . listAtSubscriptionScopePagingPage ( options ) ; } } ; } private async * listAtSubscriptionScopePagingPage ( options ? ) { let result = await this . _listAtSubscriptionScope ( options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _listAtSubscriptionScopeNext ( continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * listAtSubscriptionScopePagingAll ( options ? ) { for await ( const page of this . listAtSubscriptionScopePagingPage ( options ) ) { yield * page ; } } param resourceGroupName param options public listByResourceGroup ( resourceGroupName , options ? ) { const iter = this . listByResourceGroupPagingAll ( resourceGroupName , options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . listByResourceGroupPagingPage ( resourceGroupName , options ) ; } } ; } private async * listByResourceGroupPagingPage ( resourceGroupName , options ? ) { let result = await this . _listByResourceGroup ( resourceGroupName , options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _listByResourceGroupNext ( resourceGroupName , continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * listByResourceGroupPagingAll ( resourceGroupName , options ? ) { for await ( const page of this . listByResourceGroupPagingPage ( resourceGroupName , options ) ) { yield * page ; } } param scope param deploymentName param options async beginDeleteAtScope ( scope , deploymentName , options ? ) { const directSendOperation = async ( args , spec ) : Promise < void > => { return this . client . sendOperationRequest ( args , spec ) ; } ; const sendOperation = async ( args , spec ) => { let currentRawResponse = undefined ; const providedCallback = args . options ?. onResponse ; const callback = ( rawResponse , flatResponse ) => { currentRawResponse = rawResponse ; providedCallback ?. ( rawResponse , flatResponse ) ; } ; const updatedArgs = { ... args , options : { ... args . options , onResponse : callback } } ; const flatResponse = await directSendOperation ( updatedArgs , spec ) ; return { flatResponse , rawResponse : { statusCode : currentRawResponse ! . status , body : currentRawResponse ! . parsedBody , headers : currentRawResponse ! . headers . toJSON ( ) } } ; } ; const lro = new LroImpl ( sendOperation , { scope , deploymentName , options } , deleteAtScopeOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs } ) ; } param scope param deploymentName param options async beginDeleteAtScopeAndWait ( scope , deploymentName , options ? ) { const poller = await this . beginDeleteAtScope ( scope , deploymentName , options ) ; return poller . pollUntilDone ( ) ; } param scope param deploymentName param options checkExistenceAtScope ( scope , deploymentName , options ? ) { return this . client . sendOperationRequest ( { scope , deploymentName , options } , checkExistenceAtScopeOperationSpec ) ; } param scope param deploymentName param parameters param options async beginCreateOrUpdateAtScope ( scope , deploymentName , parameters , options ? ) { const directSendOperation = async ( args , spec ) : Promise < DeploymentsCreateOrUpdateAtScopeResponse > => { return this . client . sendOperationRequest ( args , spec ) ; } ; const sendOperation = async ( args , spec ) => { let currentRawResponse = undefined ; const providedCallback = args . options ?. onResponse ; const callback = ( rawResponse , flatResponse ) => { currentRawResponse = rawResponse ; providedCallback ?. ( rawResponse , flatResponse ) ; } ; const updatedArgs = { ... args , options : { ... args . options , onResponse : callback } } ; const flatResponse = await directSendOperation ( updatedArgs , spec ) ; return { flatResponse , rawResponse : { statusCode : currentRawResponse ! . status , body : currentRawResponse ! . parsedBody , headers : currentRawResponse ! . headers . toJSON ( ) } } ; } ; const lro = new LroImpl ( sendOperation , { scope , deploymentName , parameters , options } , createOrUpdateAtScopeOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs } ) ; } param scope param deploymentName param parameters param options async beginCreateOrUpdateAtScopeAndWait ( scope , deploymentName , parameters , options ? ) { const poller = await this . beginCreateOrUpdateAtScope ( scope , deploymentName , parameters , options ) ; return poller . pollUntilDone ( ) ; } param scope param deploymentName param options getAtScope ( scope , deploymentName , options ? ) { return this . client . sendOperationRequest ( { scope , deploymentName , options } , getAtScopeOperationSpec ) ; } param scope param deploymentName param options cancelAtScope ( scope , deploymentName , options ? ) { return this . client . sendOperationRequest ( { scope , deploymentName , options } , cancelAtScopeOperationSpec ) ; } param scope param deploymentName param parameters param options validateAtScope ( scope , deploymentName , parameters , options ? ) { return this . client . sendOperationRequest ( { scope , deploymentName , parameters , options } , validateAtScopeOperationSpec ) ; } param scope param deploymentName param options exportTemplateAtScope ( scope , deploymentName , options ? ) { return this . client . sendOperationRequest ( { scope , deploymentName , options } , exportTemplateAtScopeOperationSpec ) ; } param scope param options private _listAtScope ( scope , options ? ) { return this . client . sendOperationRequest ( { scope , options } , listAtScopeOperationSpec ) ; } param deploymentName param options async beginDeleteAtTenantScope ( deploymentName , options ? ) { const directSendOperation = async ( args , spec ) : Promise < void > => { return this . client . sendOperationRequest ( args , spec ) ; } ; const sendOperation = async ( args , spec ) => { let currentRawResponse = undefined ; const providedCallback = args . options ?. onResponse ; const callback = ( rawResponse , flatResponse ) => { currentRawResponse = rawResponse ; providedCallback ?. ( rawResponse , flatResponse ) ; } ; const updatedArgs = { ... args , options : { ... args . options , onResponse : callback } } ; const flatResponse = await directSendOperation ( updatedArgs , spec ) ; return { flatResponse , rawResponse : { statusCode : currentRawResponse ! . status , body : currentRawResponse ! . parsedBody , headers : currentRawResponse ! . headers . toJSON ( ) } } ; } ; const lro = new LroImpl ( sendOperation , { deploymentName , options } , deleteAtTenantScopeOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs } ) ; } param deploymentName param options async beginDeleteAtTenantScopeAndWait ( deploymentName , options ? ) { const poller = await this . beginDeleteAtTenantScope ( deploymentName , options ) ; return poller . pollUntilDone ( ) ; } param deploymentName param options checkExistenceAtTenantScope ( deploymentName , options ? ) { return this . client . sendOperationRequest ( { deploymentName , options } , checkExistenceAtTenantScopeOperationSpec ) ; } param deploymentName param parameters param options async beginCreateOrUpdateAtTenantScope ( deploymentName , parameters , options ? ) { const directSendOperation = async ( args , spec ) : Promise < DeploymentsCreateOrUpdateAtTenantScopeResponse > => { return this . client . sendOperationRequest ( args , spec ) ; } ; const sendOperation = async ( args , spec ) => { let currentRawResponse = undefined ; const providedCallback = args . options ?. onResponse ; const callback = ( rawResponse , flatResponse ) => { currentRawResponse = rawResponse ; providedCallback ?. ( rawResponse , flatResponse ) ; } ; const updatedArgs = { ... args , options : { ... args . options , onResponse : callback } } ; const flatResponse = await directSendOperation ( updatedArgs , spec ) ; return { flatResponse , rawResponse : { statusCode : currentRawResponse ! . status , body : currentRawResponse ! . parsedBody , headers : currentRawResponse ! . headers . toJSON ( ) } } ; } ; const lro = new LroImpl ( sendOperation , { deploymentName , parameters , options } , createOrUpdateAtTenantScopeOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs } ) ; } param deploymentName param parameters param options async beginCreateOrUpdateAtTenantScopeAndWait ( deploymentName , parameters , options ? ) { const poller = await this . beginCreateOrUpdateAtTenantScope ( deploymentName , parameters , options ) ; return poller . pollUntilDone ( ) ; } param deploymentName param options getAtTenantScope ( deploymentName , options ? ) { return this . client . sendOperationRequest ( { deploymentName , options } , getAtTenantScopeOperationSpec ) ; } param deploymentName param options cancelAtTenantScope ( deploymentName , options ? ) { return this . client . sendOperationRequest ( { deploymentName , options } , cancelAtTenantScopeOperationSpec ) ; } param deploymentName param parameters param options validateAtTenantScope ( deploymentName , parameters , options ? ) { return this . client . sendOperationRequest ( { deploymentName , parameters , options } , validateAtTenantScopeOperationSpec ) ; } param deploymentName param options exportTemplateAtTenantScope ( deploymentName , options ? ) { return this . client . sendOperationRequest ( { deploymentName , options } , exportTemplateAtTenantScopeOperationSpec ) ; } param options private _listAtTenantScope ( options ? ) { return this . client . sendOperationRequest ( { options } , listAtTenantScopeOperationSpec ) ; } param groupId param deploymentName param options async beginDeleteAtManagementGroupScope ( groupId , deploymentName , options ? ) { const directSendOperation = async ( args , spec ) : Promise < void > => { return this . client . sendOperationRequest ( args , spec ) ; } ; const sendOperation = async ( args , spec ) => { let currentRawResponse = undefined ; const providedCallback = args . options ?. onResponse ; const callback = ( rawResponse , flatResponse ) => { currentRawResponse = rawResponse ; providedCallback ?. ( rawResponse , flatResponse ) ; } ; const updatedArgs = { ... args , options : { ... args . options , onResponse : callback } } ; const flatResponse = await directSendOperation ( updatedArgs , spec ) ; return { flatResponse , rawResponse : { statusCode : currentRawResponse ! . status , body : currentRawResponse ! . parsedBody , headers : currentRawResponse ! . headers . toJSON ( ) } } ; } ; const lro = new LroImpl ( sendOperation , { groupId , deploymentName , options } , deleteAtManagementGroupScopeOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs } ) ; } param groupId param deploymentName param options async beginDeleteAtManagementGroupScopeAndWait ( groupId , deploymentName , options ? ) { const poller = await this . beginDeleteAtManagementGroupScope ( groupId , deploymentName , options ) ; return poller . pollUntilDone ( ) ; } param groupId param deploymentName param options checkExistenceAtManagementGroupScope ( groupId , deploymentName , options ? ) { return this . client . sendOperationRequest ( { groupId , deploymentName , options } , checkExistenceAtManagementGroupScopeOperationSpec ) ; } param groupId param deploymentName param parameters param options async beginCreateOrUpdateAtManagementGroupScope ( groupId , deploymentName , parameters , options ? ) { const directSendOperation = async ( args , spec ) : Promise < DeploymentsCreateOrUpdateAtManagementGroupScopeResponse > => { return this . client . sendOperationRequest ( args , spec ) ; } ; const sendOperation = async ( args , spec ) => { let currentRawResponse = undefined ; const providedCallback = args . options ?. onResponse ; const callback = ( rawResponse , flatResponse ) => { currentRawResponse = rawResponse ; providedCallback ?. ( rawResponse , flatResponse ) ; } ; const updatedArgs = { ... args , options : { ... args . options , onResponse : callback } } ; const flatResponse = await directSendOperation ( updatedArgs , spec ) ; return { flatResponse , rawResponse : { statusCode : currentRawResponse ! . status , body : currentRawResponse ! . parsedBody , headers : currentRawResponse ! . headers . toJSON ( ) } } ; } ; const lro = new LroImpl ( sendOperation , { groupId , deploymentName , parameters , options } , createOrUpdateAtManagementGroupScopeOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs } ) ; } param groupId param deploymentName param parameters param options async beginCreateOrUpdateAtManagementGroupScopeAndWait ( groupId , deploymentName , parameters , options ? ) { const poller = await this . beginCreateOrUpdateAtManagementGroupScope ( groupId , deploymentName , parameters , options ) ; return poller . pollUntilDone ( ) ; } param groupId param deploymentName param options getAtManagementGroupScope ( groupId , deploymentName , options ? ) { return this . client . sendOperationRequest ( { groupId , deploymentName , options } , getAtManagementGroupScopeOperationSpec ) ; } param groupId param deploymentName param options cancelAtManagementGroupScope ( groupId , deploymentName , options ? ) { return this . client . sendOperationRequest ( { groupId , deploymentName , options } , cancelAtManagementGroupScopeOperationSpec ) ; } param groupId param deploymentName param parameters param options validateAtManagementGroupScope ( groupId , deploymentName , parameters , options ? ) { return this . client . sendOperationRequest ( { groupId , deploymentName , parameters , options } , validateAtManagementGroupScopeOperationSpec ) ; } param groupId param deploymentName param options exportTemplateAtManagementGroupScope ( groupId , deploymentName , options ? ) { return this . client . sendOperationRequest ( { groupId , deploymentName , options } , exportTemplateAtManagementGroupScopeOperationSpec ) ; } param groupId param options private _listAtManagementGroupScope ( groupId , options ? ) { return this . client . sendOperationRequest ( { groupId , options } , listAtManagementGroupScopeOperationSpec ) ; } param deploymentName param options async beginDeleteAtSubscriptionScope ( deploymentName , options ? ) { const directSendOperation = async ( args , spec ) : Promise < void > => { return this . client . sendOperationRequest ( args , spec ) ; } ; const sendOperation = async ( args , spec ) => { let currentRawResponse = undefined ; const providedCallback = args . options ?. onResponse ; const callback = ( rawResponse , flatResponse ) => { currentRawResponse = rawResponse ; providedCallback ?. ( rawResponse , flatResponse ) ; } ; const updatedArgs = { ... args , options : { ... args . options , onResponse : callback } } ; const flatResponse = await directSendOperation ( updatedArgs , spec ) ; return { flatResponse , rawResponse : { statusCode : currentRawResponse ! . status , body : currentRawResponse ! . parsedBody , headers : currentRawResponse ! . headers . toJSON ( ) } } ; } ; const lro = new LroImpl ( sendOperation , { deploymentName , options } , deleteAtSubscriptionScopeOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs } ) ; } param deploymentName param options async beginDeleteAtSubscriptionScopeAndWait ( deploymentName , options ? ) { const poller = await this . beginDeleteAtSubscriptionScope ( deploymentName , options ) ; return poller . pollUntilDone ( ) ; } param deploymentName param options checkExistenceAtSubscriptionScope ( deploymentName , options ? ) { return this . client . sendOperationRequest ( { deploymentName , options } , checkExistenceAtSubscriptionScopeOperationSpec ) ; } param deploymentName param parameters param options async beginCreateOrUpdateAtSubscriptionScope ( deploymentName , parameters , options ? ) { const directSendOperation = async ( args , spec ) : Promise < DeploymentsCreateOrUpdateAtSubscriptionScopeResponse > => { return this . client . sendOperationRequest ( args , spec ) ; } ; const sendOperation = async ( args , spec ) => { let currentRawResponse = undefined ; const providedCallback = args . options ?. onResponse ; const callback = ( rawResponse , flatResponse ) => { currentRawResponse = rawResponse ; providedCallback ?. ( rawResponse , flatResponse ) ; } ; const updatedArgs = { ... args , options : { ... args . options , onResponse : callback } } ; const flatResponse = await directSendOperation ( updatedArgs , spec ) ; return { flatResponse , rawResponse : { statusCode : currentRawResponse ! . status , body : currentRawResponse ! . parsedBody , headers : currentRawResponse ! . headers . toJSON ( ) } } ; } ; const lro = new LroImpl ( sendOperation , { deploymentName , parameters , options } , createOrUpdateAtSubscriptionScopeOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs } ) ; } param deploymentName param parameters param options async beginCreateOrUpdateAtSubscriptionScopeAndWait ( deploymentName , parameters , options ? ) { const poller = await this . beginCreateOrUpdateAtSubscriptionScope ( deploymentName , parameters , options ) ; return poller . pollUntilDone ( ) ; } param deploymentName param options getAtSubscriptionScope ( deploymentName , options ? ) { return this . client . sendOperationRequest ( { deploymentName , options } , getAtSubscriptionScopeOperationSpec ) ; } param deploymentName param options cancelAtSubscriptionScope ( deploymentName , options ? ) { return this . client . sendOperationRequest ( { deploymentName , options } , cancelAtSubscriptionScopeOperationSpec ) ; } param deploymentName param parameters param options validateAtSubscriptionScope ( deploymentName , parameters , options ? ) { return this . client . sendOperationRequest ( { deploymentName , parameters , options } , validateAtSubscriptionScopeOperationSpec ) ; } param deploymentName param parameters param options async beginWhatIfAtSubscriptionScope ( deploymentName , parameters , options ? ) { const directSendOperation = async ( args , spec ) : Promise < DeploymentsWhatIfAtSubscriptionScopeResponse > => { return this . client . sendOperationRequest ( args , spec ) ; } ; const sendOperation = async ( args , spec ) => { let currentRawResponse = undefined ; const providedCallback = args . options ?. onResponse ; const callback = ( rawResponse , flatResponse ) => { currentRawResponse = rawResponse ; providedCallback ?. ( rawResponse , flatResponse ) ; } ; const updatedArgs = { ... args , options : { ... args . options , onResponse : callback } } ; const flatResponse = await directSendOperation ( updatedArgs , spec ) ; return { flatResponse , rawResponse : { statusCode : currentRawResponse ! . status , body : currentRawResponse ! . parsedBody , headers : currentRawResponse ! . headers . toJSON ( ) } } ; } ; const lro = new LroImpl ( sendOperation , { deploymentName , parameters , options } , whatIfAtSubscriptionScopeOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs , lroResourceLocationConfig : "location" } ) ; } param deploymentName param parameters param options async beginWhatIfAtSubscriptionScopeAndWait ( deploymentName , parameters , options ? ) { const poller = await this . beginWhatIfAtSubscriptionScope ( deploymentName , parameters , options ) ; return poller . pollUntilDone ( ) ; } param deploymentName param options exportTemplateAtSubscriptionScope ( deploymentName , options ? ) { return this . client . sendOperationRequest ( { deploymentName , options } , exportTemplateAtSubscriptionScopeOperationSpec ) ; } param options private _listAtSubscriptionScope ( options ? ) { return this . client . sendOperationRequest ( { options } , listAtSubscriptionScopeOperationSpec ) ; } param resourceGroupName param deploymentName param options async beginDelete ( resourceGroupName , deploymentName , options ? ) { const directSendOperation = async ( args , spec ) : Promise < void > => { return this . client . sendOperationRequest ( args , spec ) ; } ; const sendOperation = async ( args , spec ) => { let currentRawResponse = undefined ; const providedCallback = args . options ?. onResponse ; const callback = ( rawResponse , flatResponse ) => { currentRawResponse = rawResponse ; providedCallback ?. ( rawResponse , flatResponse ) ; } ; const updatedArgs = { ... args , options : { ... args . options , onResponse : callback } } ; const flatResponse = await directSendOperation ( updatedArgs , spec ) ; return { flatResponse , rawResponse : { statusCode : currentRawResponse ! . status , body : currentRawResponse ! . parsedBody , headers : currentRawResponse ! . headers . toJSON ( ) } } ; } ; const lro = new LroImpl ( sendOperation , { resourceGroupName , deploymentName , options } , deleteOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs } ) ; } param resourceGroupName param deploymentName param options async beginDeleteAndWait ( resourceGroupName , deploymentName , options ? ) { const poller = await this . beginDelete ( resourceGroupName , deploymentName , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param deploymentName param options checkExistence ( resourceGroupName , deploymentName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , deploymentName , options } , checkExistenceOperationSpec ) ; } param resourceGroupName param deploymentName param parameters param options async beginCreateOrUpdate ( resourceGroupName , deploymentName , parameters , options ? ) { const directSendOperation = async ( args , spec ) : Promise < DeploymentsCreateOrUpdateResponse > => { return this . client . sendOperationRequest ( args , spec ) ; } ; const sendOperation = async ( args , spec ) => { let currentRawResponse = undefined ; const providedCallback = args . options ?. onResponse ; const callback = ( rawResponse , flatResponse ) => { currentRawResponse = rawResponse ; providedCallback ?. ( rawResponse , flatResponse ) ; } ; const updatedArgs = { ... args , options : { ... args . options , onResponse : callback } } ; const flatResponse = await directSendOperation ( updatedArgs , spec ) ; return { flatResponse , rawResponse : { statusCode : currentRawResponse ! . status , body : currentRawResponse ! . parsedBody , headers : currentRawResponse ! . headers . toJSON ( ) } } ; } ; const lro = new LroImpl ( sendOperation , { resourceGroupName , deploymentName , parameters , options } , createOrUpdateOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs } ) ; } param resourceGroupName param deploymentName param parameters param options async beginCreateOrUpdateAndWait ( resourceGroupName , deploymentName , parameters , options ? ) { const poller = await this . beginCreateOrUpdate ( resourceGroupName , deploymentName , parameters , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param deploymentName param options get ( resourceGroupName , deploymentName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , deploymentName , options } , getOperationSpec ) ; } param resourceGroupName param deploymentName param options cancel ( resourceGroupName , deploymentName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , deploymentName , options } , cancelOperationSpec ) ; } param resourceGroupName param deploymentName param parameters param options validate ( resourceGroupName , deploymentName , parameters , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , deploymentName , parameters , options } , validateOperationSpec ) ; } param resourceGroupName param deploymentName param parameters param options async beginWhatIf ( resourceGroupName , deploymentName , parameters , options ? ) { const directSendOperation = async ( args , spec ) : Promise < DeploymentsWhatIfResponse > => { return this . client . sendOperationRequest ( args , spec ) ; } ; const sendOperation = async ( args , spec ) => { let currentRawResponse = undefined ; const providedCallback = args . options ?. onResponse ; const callback = ( rawResponse , flatResponse ) => { currentRawResponse = rawResponse ; providedCallback ?. ( rawResponse , flatResponse ) ; } ; const updatedArgs = { ... args , options : { ... args . options , onResponse : callback } } ; const flatResponse = await directSendOperation ( updatedArgs , spec ) ; return { flatResponse , rawResponse : { statusCode : currentRawResponse ! . status , body : currentRawResponse ! . parsedBody , headers : currentRawResponse ! . headers . toJSON ( ) } } ; } ; const lro = new LroImpl ( sendOperation , { resourceGroupName , deploymentName , parameters , options } , whatIfOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs , lroResourceLocationConfig : "location" } ) ; } param resourceGroupName param deploymentName param parameters param options async beginWhatIfAndWait ( resourceGroupName , deploymentName , parameters , options ? ) { const poller = await this . beginWhatIf ( resourceGroupName , deploymentName , parameters , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param deploymentName param options exportTemplate ( resourceGroupName , deploymentName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , deploymentName , options } , exportTemplateOperationSpec ) ; } param resourceGroupName param options private _listByResourceGroup ( resourceGroupName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , options } , listByResourceGroupOperationSpec ) ; } param template param options calculateTemplateHash ( template , options ? ) { return this . client . sendOperationRequest ( { template , options } , calculateTemplateHashOperationSpec ) ; } param scope param nextLink param options private _listAtScopeNext ( scope , nextLink , options ? ) { return this . client . sendOperationRequest ( { scope , nextLink , options } , listAtScopeNextOperationSpec ) ; } param nextLink param options private _listAtTenantScopeNext ( nextLink , options ? ) { return this . client . sendOperationRequest ( { nextLink , options } , listAtTenantScopeNextOperationSpec ) ; } param groupId param nextLink param options private _listAtManagementGroupScopeNext ( groupId , nextLink , options ? ) { return this . client . sendOperationRequest ( { groupId , nextLink , options } , listAtManagementGroupScopeNextOperationSpec ) ; } param nextLink param options private _listAtSubscriptionScopeNext ( nextLink , options ? ) { return this . client . sendOperationRequest ( { nextLink , options } , listAtSubscriptionScopeNextOperationSpec ) ; } param resourceGroupName param nextLink param options private _listByResourceGroupNext ( resourceGroupName , nextLink , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , nextLink , options } , listByResourceGroupNextOperationSpec ) ; } } const serializer = coreClient . createSerializer ( Mappers , false ) ; const deleteAtScopeOperationSpec = { path : "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}" , httpMethod : "DELETE" , responses : { 200 : { } , 201 : { } , 202 : { } , 204 : { } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . scope , Parameters . deploymentName ] , headerParameters : [ Parameters . accept ] , serializer } ; const checkExistenceAtScopeOperationSpec = { path : "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}" , httpMethod : "HEAD" , responses : { 204 : { } , 404 : { } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . scope , Parameters . deploymentName ] , headerParameters : [ Parameters . accept ] , serializer } ; const createOrUpdateAtScopeOperationSpec = { path : "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}" , httpMethod : "PUT" , responses : { 200 : { bodyMapper : Mappers . DeploymentExtended } , 201 : { bodyMapper : Mappers . DeploymentExtended } , 202 : { bodyMapper : Mappers . DeploymentExtended } , 204 : { bodyMapper : Mappers . DeploymentExtended } , default : { bodyMapper : Mappers . CloudError } } , requestBody : Parameters . parameters , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . scope , Parameters . deploymentName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const getAtScopeOperationSpec = { path : "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . DeploymentExtended } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . scope , Parameters . deploymentName ] , headerParameters : [ Parameters . accept ] , serializer } ; const cancelAtScopeOperationSpec = { path : "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel" , httpMethod : "POST" , responses : { 204 : { } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . scope , Parameters . deploymentName ] , headerParameters : [ Parameters . accept ] , serializer } ; const validateAtScopeOperationSpec = { path : "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/validate" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . DeploymentValidateResult } , 400 : { bodyMapper : Mappers . DeploymentValidateResult } , default : { bodyMapper : Mappers . CloudError } } , requestBody : Parameters . parameters , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . scope , Parameters . deploymentName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const exportTemplateAtScopeOperationSpec = { path : "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . DeploymentExportResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . scope , Parameters . deploymentName ] , headerParameters : [ Parameters . accept ] , serializer } ; const listAtScopeOperationSpec = { path : "/{scope}/providers/Microsoft.Resources/deployments/" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . DeploymentListResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion , Parameters . filter , Parameters . top ] , urlParameters : [ Parameters . $host , Parameters . scope ] , headerParameters : [ Parameters . accept ] , serializer } ; const deleteAtTenantScopeOperationSpec = { path : "/providers/Microsoft.Resources/deployments/{deploymentName}" , httpMethod : "DELETE" , responses : { 200 : { } , 201 : { } , 202 : { } , 204 : { } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName ] , headerParameters : [ Parameters . accept ] , serializer } ; const checkExistenceAtTenantScopeOperationSpec = { path : "/providers/Microsoft.Resources/deployments/{deploymentName}" , httpMethod : "HEAD" , responses : { 204 : { } , 404 : { } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName ] , headerParameters : [ Parameters . accept ] , serializer } ; const createOrUpdateAtTenantScopeOperationSpec = { path : "/providers/Microsoft.Resources/deployments/{deploymentName}" , httpMethod : "PUT" , responses : { 200 : { bodyMapper : Mappers . DeploymentExtended } , 201 : { bodyMapper : Mappers . DeploymentExtended } , 202 : { bodyMapper : Mappers . DeploymentExtended } , 204 : { bodyMapper : Mappers . DeploymentExtended } , default : { bodyMapper : Mappers . CloudError } } , requestBody : Parameters . parameters1 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const getAtTenantScopeOperationSpec = { path : "/providers/Microsoft.Resources/deployments/{deploymentName}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . DeploymentExtended } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName ] , headerParameters : [ Parameters . accept ] , serializer } ; const cancelAtTenantScopeOperationSpec = { path : "/providers/Microsoft.Resources/deployments/{deploymentName}/cancel" , httpMethod : "POST" , responses : { 204 : { } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName ] , headerParameters : [ Parameters . accept ] , serializer } ; const validateAtTenantScopeOperationSpec = { path : "/providers/Microsoft.Resources/deployments/{deploymentName}/validate" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . DeploymentValidateResult } , 400 : { bodyMapper : Mappers . DeploymentValidateResult } , default : { bodyMapper : Mappers . CloudError } } , requestBody : Parameters . parameters1 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const exportTemplateAtTenantScopeOperationSpec = { path : "/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . DeploymentExportResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName ] , headerParameters : [ Parameters . accept ] , serializer } ; const listAtTenantScopeOperationSpec = { path : "/providers/Microsoft.Resources/deployments/" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . DeploymentListResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion , Parameters . filter , Parameters . top ] , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept ] , serializer } ; const deleteAtManagementGroupScopeOperationSpec = { path : "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}" , httpMethod : "DELETE" , responses : { 200 : { } , 201 : { } , 202 : { } , 204 : { } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName , Parameters . groupId ] , headerParameters : [ Parameters . accept ] , serializer } ; const checkExistenceAtManagementGroupScopeOperationSpec = { path : "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}" , httpMethod : "HEAD" , responses : { 204 : { } , 404 : { } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName , Parameters . groupId ] , headerParameters : [ Parameters . accept ] , serializer } ; const createOrUpdateAtManagementGroupScopeOperationSpec = { path : "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}" , httpMethod : "PUT" , responses : { 200 : { bodyMapper : Mappers . DeploymentExtended } , 201 : { bodyMapper : Mappers . DeploymentExtended } , 202 : { bodyMapper : Mappers . DeploymentExtended } , 204 : { bodyMapper : Mappers . DeploymentExtended } , default : { bodyMapper : Mappers . CloudError } } , requestBody : Parameters . parameters1 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName , Parameters . groupId ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const getAtManagementGroupScopeOperationSpec = { path : "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . DeploymentExtended } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName , Parameters . groupId ] , headerParameters : [ Parameters . accept ] , serializer } ; const cancelAtManagementGroupScopeOperationSpec = { path : "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel" , httpMethod : "POST" , responses : { 204 : { } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName , Parameters . groupId ] , headerParameters : [ Parameters . accept ] , serializer } ; const validateAtManagementGroupScopeOperationSpec = { path : "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . DeploymentValidateResult } , 400 : { bodyMapper : Mappers . DeploymentValidateResult } , default : { bodyMapper : Mappers . CloudError } } , requestBody : Parameters . parameters1 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName , Parameters . groupId ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const exportTemplateAtManagementGroupScopeOperationSpec = { path : "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . DeploymentExportResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName , Parameters . groupId ] , headerParameters : [ Parameters . accept ] , serializer } ; const listAtManagementGroupScopeOperationSpec = { path : "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . DeploymentListResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion , Parameters . filter , Parameters . top ] , urlParameters : [ Parameters . $host , Parameters . groupId ] , headerParameters : [ Parameters . accept ] , serializer } ; const deleteAtSubscriptionScopeOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}" , httpMethod : "DELETE" , responses : { 200 : { } , 201 : { } , 202 : { } , 204 : { } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName , Parameters . subscriptionId ] , headerParameters : [ Parameters . accept ] , serializer } ; const checkExistenceAtSubscriptionScopeOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}" , httpMethod : "HEAD" , responses : { 204 : { } , 404 : { } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName , Parameters . subscriptionId ] , headerParameters : [ Parameters . accept ] , serializer } ; const createOrUpdateAtSubscriptionScopeOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}" , httpMethod : "PUT" , responses : { 200 : { bodyMapper : Mappers . DeploymentExtended } , 201 : { bodyMapper : Mappers . DeploymentExtended } , 202 : { bodyMapper : Mappers . DeploymentExtended } , 204 : { bodyMapper : Mappers . DeploymentExtended } , default : { bodyMapper : Mappers . CloudError } } , requestBody : Parameters . parameters , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName , Parameters . subscriptionId ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const getAtSubscriptionScopeOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . DeploymentExtended } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName , Parameters . subscriptionId ] , headerParameters : [ Parameters . accept ] , serializer } ; const cancelAtSubscriptionScopeOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel" , httpMethod : "POST" , responses : { 204 : { } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName , Parameters . subscriptionId ] , headerParameters : [ Parameters . accept ] , serializer } ; const validateAtSubscriptionScopeOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . DeploymentValidateResult } , 400 : { bodyMapper : Mappers . DeploymentValidateResult } , default : { bodyMapper : Mappers . CloudError } } , requestBody : Parameters . parameters , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName , Parameters . subscriptionId ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const whatIfAtSubscriptionScopeOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . WhatIfOperationResult } , 201 : { bodyMapper : Mappers . WhatIfOperationResult } , 202 : { bodyMapper : Mappers . WhatIfOperationResult } , 204 : { bodyMapper : Mappers . WhatIfOperationResult } , default : { bodyMapper : Mappers . CloudError } } , requestBody : Parameters . parameters2 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName , Parameters . subscriptionId ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const exportTemplateAtSubscriptionScopeOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . DeploymentExportResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName , Parameters . subscriptionId ] , headerParameters : [ Parameters . accept ] , serializer } ; const listAtSubscriptionScopeOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . DeploymentListResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion , Parameters . filter , Parameters . top ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId ] , headerParameters : [ Parameters . accept ] , serializer } ; const deleteOperationSpec = { path : "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}" , httpMethod : "DELETE" , responses : { 200 : { } , 201 : { } , 202 : { } , 204 : { } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName , Parameters . subscriptionId , Parameters . resourceGroupName ] , headerParameters : [ Parameters . accept ] , serializer } ; const checkExistenceOperationSpec = { path : "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}" , httpMethod : "HEAD" , responses : { 204 : { } , 404 : { } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName , Parameters . subscriptionId , Parameters . resourceGroupName ] , headerParameters : [ Parameters . accept ] , serializer } ; const createOrUpdateOperationSpec = { path : "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}" , httpMethod : "PUT" , responses : { 200 : { bodyMapper : Mappers . DeploymentExtended } , 201 : { bodyMapper : Mappers . DeploymentExtended } , 202 : { bodyMapper : Mappers . DeploymentExtended } , 204 : { bodyMapper : Mappers . DeploymentExtended } , default : { bodyMapper : Mappers . CloudError } } , requestBody : Parameters . parameters , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName , Parameters . subscriptionId , Parameters . resourceGroupName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const getOperationSpec = { path : "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . DeploymentExtended } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName , Parameters . subscriptionId , Parameters . resourceGroupName ] , headerParameters : [ Parameters . accept ] , serializer } ; const cancelOperationSpec = { path : "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel" , httpMethod : "POST" , responses : { 204 : { } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName , Parameters . subscriptionId , Parameters . resourceGroupName ] , headerParameters : [ Parameters . accept ] , serializer } ; const validateOperationSpec = { path : "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . DeploymentValidateResult } , 400 : { bodyMapper : Mappers . DeploymentValidateResult } , default : { bodyMapper : Mappers . CloudError } } , requestBody : Parameters . parameters , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName , Parameters . subscriptionId , Parameters . resourceGroupName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const whatIfOperationSpec = { path : "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . WhatIfOperationResult } , 201 : { bodyMapper : Mappers . WhatIfOperationResult } , 202 : { bodyMapper : Mappers . WhatIfOperationResult } , 204 : { bodyMapper : Mappers . WhatIfOperationResult } , default : { bodyMapper : Mappers . CloudError } } , requestBody : Parameters . parameters2 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName , Parameters . subscriptionId , Parameters . resourceGroupName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const exportTemplateOperationSpec = { path : "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . DeploymentExportResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . deploymentName , Parameters . subscriptionId , Parameters . resourceGroupName ] , headerParameters : [ Parameters . accept ] , serializer } ; const listByResourceGroupOperationSpec = { path : "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . DeploymentListResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion , Parameters . filter , Parameters . top ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName ] , headerParameters : [ Parameters . accept ] , serializer } ; const calculateTemplateHashOperationSpec = { path : "/providers/Microsoft.Resources/calculateTemplateHash" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . TemplateHashResult } , default : { bodyMapper : Mappers . CloudError } } , requestBody : Parameters . template , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const listAtScopeNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . DeploymentListResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion , Parameters . filter , Parameters . top ] , urlParameters : [ Parameters . $host , Parameters . nextLink , Parameters . scope ] , headerParameters : [ Parameters . accept ] , serializer } ; const listAtTenantScopeNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . DeploymentListResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion , Parameters . filter , Parameters . top ] , urlParameters : [ Parameters . $host , Parameters . nextLink ] , headerParameters : [ Parameters . accept ] , serializer } ; const listAtManagementGroupScopeNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . DeploymentListResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion , Parameters . filter , Parameters . top ] , urlParameters : [ Parameters . $host , Parameters . nextLink , Parameters . groupId ] , headerParameters : [ Parameters . accept ] , serializer } ; const listAtSubscriptionScopeNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . DeploymentListResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion , Parameters . filter , Parameters . top ] , urlParameters : [ Parameters . $host , Parameters . nextLink , Parameters . subscriptionId ] , headerParameters : [ Parameters . accept ] , serializer } ; const listByResourceGroupNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . DeploymentListResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion , Parameters . filter , Parameters . top ] , urlParameters : [ Parameters . $host , Parameters . nextLink , Parameters . subscriptionId , Parameters . resourceGroupName ] , headerParameters : [ Parameters . accept ] , serializer } ;