import { PagedAsyncIterableIterator } from "@azure/core-paging" ; import { StaticSites } from "../operationsInterfaces" ; import * as coreClient from "@azure/core-client" ; import * as Mappers from "../models/mappers" ; import * as Parameters from "../models/parameters" ; import { WebSiteManagementClient } from "../webSiteManagementClient" ; import { PollerLike , PollOperationState , LroEngine } from "@azure/core-lro" ; import { LroImpl } from "../lroImpl" ; import { StaticSiteARMResource , StaticSitesListNextOptionalParams , StaticSitesListOptionalParams , StaticSitesGetStaticSitesByResourceGroupNextOptionalParams , StaticSitesGetStaticSitesByResourceGroupOptionalParams , StaticSiteUserARMResource , StaticSitesListStaticSiteUsersNextOptionalParams , StaticSitesListStaticSiteUsersOptionalParams , StaticSiteBuildARMResource , StaticSitesGetStaticSiteBuildsNextOptionalParams , StaticSitesGetStaticSiteBuildsOptionalParams , StaticSiteFunctionOverviewARMResource , StaticSitesListStaticSiteBuildFunctionsNextOptionalParams , StaticSitesListStaticSiteBuildFunctionsOptionalParams , StaticSiteUserProvidedFunctionAppARMResource , StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuildNextOptionalParams , StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuildOptionalParams , StaticSiteCustomDomainOverviewARMResource , StaticSitesListStaticSiteCustomDomainsNextOptionalParams , StaticSitesListStaticSiteCustomDomainsOptionalParams , StaticSitesListStaticSiteFunctionsNextOptionalParams , StaticSitesListStaticSiteFunctionsOptionalParams , RemotePrivateEndpointConnectionARMResource , StaticSitesGetPrivateEndpointConnectionListNextOptionalParams , StaticSitesGetPrivateEndpointConnectionListOptionalParams , StaticSitesGetUserProvidedFunctionAppsForStaticSiteNextOptionalParams , StaticSitesGetUserProvidedFunctionAppsForStaticSiteOptionalParams , StaticSitesWorkflowPreviewRequest , StaticSitesPreviewWorkflowOptionalParams , StaticSitesPreviewWorkflowResponse , StaticSitesListResponse , StaticSitesGetStaticSitesByResourceGroupResponse , StaticSitesGetStaticSiteOptionalParams , StaticSitesGetStaticSiteResponse , StaticSitesCreateOrUpdateStaticSiteOptionalParams , StaticSitesCreateOrUpdateStaticSiteResponse , StaticSitesDeleteStaticSiteOptionalParams , StaticSitePatchResource , StaticSitesUpdateStaticSiteOptionalParams , StaticSitesUpdateStaticSiteResponse , StaticSitesListStaticSiteUsersResponse , StaticSitesDeleteStaticSiteUserOptionalParams , StaticSitesUpdateStaticSiteUserOptionalParams , StaticSitesUpdateStaticSiteUserResponse , StaticSitesGetStaticSiteBuildsResponse , StaticSitesGetStaticSiteBuildOptionalParams , StaticSitesGetStaticSiteBuildResponse , StaticSitesDeleteStaticSiteBuildOptionalParams , StringDictionary , StaticSitesCreateOrUpdateStaticSiteBuildAppSettingsOptionalParams , StaticSitesCreateOrUpdateStaticSiteBuildAppSettingsResponse , StaticSitesCreateOrUpdateStaticSiteBuildFunctionAppSettingsOptionalParams , StaticSitesCreateOrUpdateStaticSiteBuildFunctionAppSettingsResponse , StaticSitesListStaticSiteBuildFunctionsResponse , StaticSitesListStaticSiteBuildAppSettingsOptionalParams , StaticSitesListStaticSiteBuildAppSettingsResponse , StaticSitesListStaticSiteBuildFunctionAppSettingsOptionalParams , StaticSitesListStaticSiteBuildFunctionAppSettingsResponse , StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuildResponse , StaticSitesGetUserProvidedFunctionAppForStaticSiteBuildOptionalParams , StaticSitesGetUserProvidedFunctionAppForStaticSiteBuildResponse , StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteBuildOptionalParams , StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteBuildResponse , StaticSitesDetachUserProvidedFunctionAppFromStaticSiteBuildOptionalParams , StaticSiteZipDeploymentARMResource , StaticSitesCreateZipDeploymentForStaticSiteBuildOptionalParams , StaticSitesCreateOrUpdateStaticSiteAppSettingsOptionalParams , StaticSitesCreateOrUpdateStaticSiteAppSettingsResponse , StaticSitesCreateOrUpdateStaticSiteFunctionAppSettingsOptionalParams , StaticSitesCreateOrUpdateStaticSiteFunctionAppSettingsResponse , StaticSiteUserInvitationRequestResource , StaticSitesCreateUserRolesInvitationLinkOptionalParams , StaticSitesCreateUserRolesInvitationLinkResponse , StaticSitesListStaticSiteCustomDomainsResponse , StaticSitesGetStaticSiteCustomDomainOptionalParams , StaticSitesGetStaticSiteCustomDomainResponse , StaticSiteCustomDomainRequestPropertiesARMResource , StaticSitesCreateOrUpdateStaticSiteCustomDomainOptionalParams , StaticSitesCreateOrUpdateStaticSiteCustomDomainResponse , StaticSitesDeleteStaticSiteCustomDomainOptionalParams , StaticSitesValidateCustomDomainCanBeAddedToStaticSiteOptionalParams , StaticSitesDetachStaticSiteOptionalParams , StaticSitesListStaticSiteFunctionsResponse , StaticSitesListStaticSiteAppSettingsOptionalParams , StaticSitesListStaticSiteAppSettingsResponse , StaticSitesListStaticSiteConfiguredRolesOptionalParams , StaticSitesListStaticSiteConfiguredRolesResponse , StaticSitesListStaticSiteFunctionAppSettingsOptionalParams , StaticSitesListStaticSiteFunctionAppSettingsResponse , StaticSitesListStaticSiteSecretsOptionalParams , StaticSitesListStaticSiteSecretsResponse , StaticSitesGetPrivateEndpointConnectionListResponse , StaticSitesGetPrivateEndpointConnectionOptionalParams , StaticSitesGetPrivateEndpointConnectionResponse , PrivateLinkConnectionApprovalRequestResource , StaticSitesApproveOrRejectPrivateEndpointConnectionOptionalParams , StaticSitesApproveOrRejectPrivateEndpointConnectionResponse , StaticSitesDeletePrivateEndpointConnectionOptionalParams , StaticSitesDeletePrivateEndpointConnectionResponse , StaticSitesGetPrivateLinkResourcesOptionalParams , StaticSitesGetPrivateLinkResourcesResponse , StaticSiteResetPropertiesARMResource , StaticSitesResetStaticSiteApiKeyOptionalParams , StaticSitesGetUserProvidedFunctionAppsForStaticSiteResponse , StaticSitesGetUserProvidedFunctionAppForStaticSiteOptionalParams , StaticSitesGetUserProvidedFunctionAppForStaticSiteResponse , StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteOptionalParams , StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteResponse , StaticSitesDetachUserProvidedFunctionAppFromStaticSiteOptionalParams , StaticSitesCreateZipDeploymentForStaticSiteOptionalParams , StaticSitesListNextResponse , StaticSitesGetStaticSitesByResourceGroupNextResponse , StaticSitesListStaticSiteUsersNextResponse , StaticSitesGetStaticSiteBuildsNextResponse , StaticSitesListStaticSiteBuildFunctionsNextResponse , StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuildNextResponse , StaticSitesListStaticSiteCustomDomainsNextResponse , StaticSitesListStaticSiteFunctionsNextResponse , StaticSitesGetPrivateEndpointConnectionListNextResponse , StaticSitesGetUserProvidedFunctionAppsForStaticSiteNextResponse } from "../models" ; /** Class containing StaticSites operations. */ export class StaticSitesImpl implements StaticSites { private readonly client : WebSiteManagementClient ; param client constructor ( client ) { this . client = client ; } param options public list ( options ? ) { const iter = this . listPagingAll ( options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . listPagingPage ( options ) ; } } ; } private async * listPagingPage ( options ? ) { let result = await this . _list ( options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _listNext ( continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * listPagingAll ( options ? ) { for await ( const page of this . listPagingPage ( options ) ) { yield * page ; } } param resourceGroupName param options public listStaticSitesByResourceGroup ( resourceGroupName , options ? ) { const iter = this . getStaticSitesByResourceGroupPagingAll ( resourceGroupName , options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . getStaticSitesByResourceGroupPagingPage ( resourceGroupName , options ) ; } } ; } private async * getStaticSitesByResourceGroupPagingPage ( resourceGroupName , options ? ) { let result = await this . _getStaticSitesByResourceGroup ( resourceGroupName , options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _getStaticSitesByResourceGroupNext ( resourceGroupName , continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * getStaticSitesByResourceGroupPagingAll ( resourceGroupName , options ? ) { for await ( const page of this . getStaticSitesByResourceGroupPagingPage ( resourceGroupName , options ) ) { yield * page ; } } param resourceGroupName param name param authprovider param options public listStaticSiteUsers ( resourceGroupName , name , authprovider , options ? ) { const iter = this . listStaticSiteUsersPagingAll ( resourceGroupName , name , authprovider , options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . listStaticSiteUsersPagingPage ( resourceGroupName , name , authprovider , options ) ; } } ; } private async * listStaticSiteUsersPagingPage ( resourceGroupName , name , authprovider , options ? ) { let result = await this . _listStaticSiteUsers ( resourceGroupName , name , authprovider , options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _listStaticSiteUsersNext ( resourceGroupName , name , authprovider , continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * listStaticSiteUsersPagingAll ( resourceGroupName , name , authprovider , options ? ) { for await ( const page of this . listStaticSiteUsersPagingPage ( resourceGroupName , name , authprovider , options ) ) { yield * page ; } } param resourceGroupName param name param options public listStaticSiteBuilds ( resourceGroupName , name , options ? ) { const iter = this . getStaticSiteBuildsPagingAll ( resourceGroupName , name , options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . getStaticSiteBuildsPagingPage ( resourceGroupName , name , options ) ; } } ; } private async * getStaticSiteBuildsPagingPage ( resourceGroupName , name , options ? ) { let result = await this . _getStaticSiteBuilds ( resourceGroupName , name , options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _getStaticSiteBuildsNext ( resourceGroupName , name , continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * getStaticSiteBuildsPagingAll ( resourceGroupName , name , options ? ) { for await ( const page of this . getStaticSiteBuildsPagingPage ( resourceGroupName , name , options ) ) { yield * page ; } } param resourceGroupName param name param environmentName param options public listStaticSiteBuildFunctions ( resourceGroupName , name , environmentName , options ? ) { const iter = this . listStaticSiteBuildFunctionsPagingAll ( resourceGroupName , name , environmentName , options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . listStaticSiteBuildFunctionsPagingPage ( resourceGroupName , name , environmentName , options ) ; } } ; } private async * listStaticSiteBuildFunctionsPagingPage ( resourceGroupName , name , environmentName , options ? ) { let result = await this . _listStaticSiteBuildFunctions ( resourceGroupName , name , environmentName , options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _listStaticSiteBuildFunctionsNext ( resourceGroupName , name , environmentName , continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * listStaticSiteBuildFunctionsPagingAll ( resourceGroupName , name , environmentName , options ? ) { for await ( const page of this . listStaticSiteBuildFunctionsPagingPage ( resourceGroupName , name , environmentName , options ) ) { yield * page ; } } param resourceGroupName param name param environmentName param options public listUserProvidedFunctionAppsForStaticSiteBuild ( resourceGroupName , name , environmentName , options ? ) { const iter = this . getUserProvidedFunctionAppsForStaticSiteBuildPagingAll ( resourceGroupName , name , environmentName , options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . getUserProvidedFunctionAppsForStaticSiteBuildPagingPage ( resourceGroupName , name , environmentName , options ) ; } } ; } private async * getUserProvidedFunctionAppsForStaticSiteBuildPagingPage ( resourceGroupName , name , environmentName , options ? ) { let result = await this . _getUserProvidedFunctionAppsForStaticSiteBuild ( resourceGroupName , name , environmentName , options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _getUserProvidedFunctionAppsForStaticSiteBuildNext ( resourceGroupName , name , environmentName , continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * getUserProvidedFunctionAppsForStaticSiteBuildPagingAll ( resourceGroupName , name , environmentName , options ? ) { for await ( const page of this . getUserProvidedFunctionAppsForStaticSiteBuildPagingPage ( resourceGroupName , name , environmentName , options ) ) { yield * page ; } } param resourceGroupName param name param options public listStaticSiteCustomDomains ( resourceGroupName , name , options ? ) { const iter = this . listStaticSiteCustomDomainsPagingAll ( resourceGroupName , name , options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . listStaticSiteCustomDomainsPagingPage ( resourceGroupName , name , options ) ; } } ; } private async * listStaticSiteCustomDomainsPagingPage ( resourceGroupName , name , options ? ) { let result = await this . _listStaticSiteCustomDomains ( resourceGroupName , name , options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _listStaticSiteCustomDomainsNext ( resourceGroupName , name , continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * listStaticSiteCustomDomainsPagingAll ( resourceGroupName , name , options ? ) { for await ( const page of this . listStaticSiteCustomDomainsPagingPage ( resourceGroupName , name , options ) ) { yield * page ; } } param resourceGroupName param name param options public listStaticSiteFunctions ( resourceGroupName , name , options ? ) { const iter = this . listStaticSiteFunctionsPagingAll ( resourceGroupName , name , options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . listStaticSiteFunctionsPagingPage ( resourceGroupName , name , options ) ; } } ; } private async * listStaticSiteFunctionsPagingPage ( resourceGroupName , name , options ? ) { let result = await this . _listStaticSiteFunctions ( resourceGroupName , name , options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _listStaticSiteFunctionsNext ( resourceGroupName , name , continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * listStaticSiteFunctionsPagingAll ( resourceGroupName , name , options ? ) { for await ( const page of this . listStaticSiteFunctionsPagingPage ( resourceGroupName , name , options ) ) { yield * page ; } } param resourceGroupName param name param options public listPrivateEndpointConnectionList ( resourceGroupName , name , options ? ) { const iter = this . getPrivateEndpointConnectionListPagingAll ( resourceGroupName , name , options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . getPrivateEndpointConnectionListPagingPage ( resourceGroupName , name , options ) ; } } ; } private async * getPrivateEndpointConnectionListPagingPage ( resourceGroupName , name , options ? ) { let result = await this . _getPrivateEndpointConnectionList ( resourceGroupName , name , options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _getPrivateEndpointConnectionListNext ( resourceGroupName , name , continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * getPrivateEndpointConnectionListPagingAll ( resourceGroupName , name , options ? ) { for await ( const page of this . getPrivateEndpointConnectionListPagingPage ( resourceGroupName , name , options ) ) { yield * page ; } } param resourceGroupName param name param options public listUserProvidedFunctionAppsForStaticSite ( resourceGroupName , name , options ? ) { const iter = this . getUserProvidedFunctionAppsForStaticSitePagingAll ( resourceGroupName , name , options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . getUserProvidedFunctionAppsForStaticSitePagingPage ( resourceGroupName , name , options ) ; } } ; } private async * getUserProvidedFunctionAppsForStaticSitePagingPage ( resourceGroupName , name , options ? ) { let result = await this . _getUserProvidedFunctionAppsForStaticSite ( resourceGroupName , name , options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _getUserProvidedFunctionAppsForStaticSiteNext ( resourceGroupName , name , continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * getUserProvidedFunctionAppsForStaticSitePagingAll ( resourceGroupName , name , options ? ) { for await ( const page of this . getUserProvidedFunctionAppsForStaticSitePagingPage ( resourceGroupName , name , options ) ) { yield * page ; } } param location param staticSitesWorkflowPreviewRequest param options previewWorkflow ( location , staticSitesWorkflowPreviewRequest , options ? ) { return this . client . sendOperationRequest ( { location , staticSitesWorkflowPreviewRequest , options } , previewWorkflowOperationSpec ) ; } param options private _list ( options ? ) { return this . client . sendOperationRequest ( { options } , listOperationSpec ) ; } param resourceGroupName param options private _getStaticSitesByResourceGroup ( resourceGroupName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , options } , getStaticSitesByResourceGroupOperationSpec ) ; } param resourceGroupName param name param options getStaticSite ( resourceGroupName , name , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , options } , getStaticSiteOperationSpec ) ; } param resourceGroupName param name param staticSiteEnvelope param options async beginCreateOrUpdateStaticSite ( resourceGroupName , name , staticSiteEnvelope , options ? ) { const directSendOperation = async ( args , spec ) : Promise < StaticSitesCreateOrUpdateStaticSiteResponse > => { 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 , name , staticSiteEnvelope , options } , createOrUpdateStaticSiteOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs } ) ; } param resourceGroupName param name param staticSiteEnvelope param options async beginCreateOrUpdateStaticSiteAndWait ( resourceGroupName , name , staticSiteEnvelope , options ? ) { const poller = await this . beginCreateOrUpdateStaticSite ( resourceGroupName , name , staticSiteEnvelope , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param name param options async beginDeleteStaticSite ( resourceGroupName , name , 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 , name , options } , deleteStaticSiteOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs } ) ; } param resourceGroupName param name param options async beginDeleteStaticSiteAndWait ( resourceGroupName , name , options ? ) { const poller = await this . beginDeleteStaticSite ( resourceGroupName , name , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param name param staticSiteEnvelope param options updateStaticSite ( resourceGroupName , name , staticSiteEnvelope , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , staticSiteEnvelope , options } , updateStaticSiteOperationSpec ) ; } param resourceGroupName param name param authprovider param options private _listStaticSiteUsers ( resourceGroupName , name , authprovider , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , authprovider , options } , listStaticSiteUsersOperationSpec ) ; } param resourceGroupName param name param authprovider param userid param options deleteStaticSiteUser ( resourceGroupName , name , authprovider , userid , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , authprovider , userid , options } , deleteStaticSiteUserOperationSpec ) ; } param resourceGroupName param name param authprovider param userid param staticSiteUserEnvelope param options updateStaticSiteUser ( resourceGroupName , name , authprovider , userid , staticSiteUserEnvelope , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , authprovider , userid , staticSiteUserEnvelope , options } , updateStaticSiteUserOperationSpec ) ; } param resourceGroupName param name param options private _getStaticSiteBuilds ( resourceGroupName , name , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , options } , getStaticSiteBuildsOperationSpec ) ; } param resourceGroupName param name param environmentName param options getStaticSiteBuild ( resourceGroupName , name , environmentName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , environmentName , options } , getStaticSiteBuildOperationSpec ) ; } param resourceGroupName param name param environmentName param options async beginDeleteStaticSiteBuild ( resourceGroupName , name , environmentName , 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 , name , environmentName , options } , deleteStaticSiteBuildOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs } ) ; } param resourceGroupName param name param environmentName param options async beginDeleteStaticSiteBuildAndWait ( resourceGroupName , name , environmentName , options ? ) { const poller = await this . beginDeleteStaticSiteBuild ( resourceGroupName , name , environmentName , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param name param environmentName param appSettings param options createOrUpdateStaticSiteBuildAppSettings ( resourceGroupName , name , environmentName , appSettings , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , environmentName , appSettings , options } , createOrUpdateStaticSiteBuildAppSettingsOperationSpec ) ; } param resourceGroupName param name param environmentName param appSettings param options createOrUpdateStaticSiteBuildFunctionAppSettings ( resourceGroupName , name , environmentName , appSettings , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , environmentName , appSettings , options } , createOrUpdateStaticSiteBuildFunctionAppSettingsOperationSpec ) ; } param resourceGroupName param name param environmentName param options private _listStaticSiteBuildFunctions ( resourceGroupName , name , environmentName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , environmentName , options } , listStaticSiteBuildFunctionsOperationSpec ) ; } param resourceGroupName param name param environmentName param options listStaticSiteBuildAppSettings ( resourceGroupName , name , environmentName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , environmentName , options } , listStaticSiteBuildAppSettingsOperationSpec ) ; } param resourceGroupName param name param environmentName param options listStaticSiteBuildFunctionAppSettings ( resourceGroupName , name , environmentName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , environmentName , options } , listStaticSiteBuildFunctionAppSettingsOperationSpec ) ; } param resourceGroupName param name param environmentName param options private _getUserProvidedFunctionAppsForStaticSiteBuild ( resourceGroupName , name , environmentName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , environmentName , options } , getUserProvidedFunctionAppsForStaticSiteBuildOperationSpec ) ; } param resourceGroupName param name param environmentName param functionAppName param options getUserProvidedFunctionAppForStaticSiteBuild ( resourceGroupName , name , environmentName , functionAppName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , environmentName , functionAppName , options } , getUserProvidedFunctionAppForStaticSiteBuildOperationSpec ) ; } param resourceGroupName param name param environmentName param functionAppName param staticSiteUserProvidedFunctionEnvelope param options async beginRegisterUserProvidedFunctionAppWithStaticSiteBuild ( resourceGroupName , name , environmentName , functionAppName , staticSiteUserProvidedFunctionEnvelope , options ? ) { const directSendOperation = async ( args , spec ) : Promise < StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteBuildResponse > => { 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 , name , environmentName , functionAppName , staticSiteUserProvidedFunctionEnvelope , options } , registerUserProvidedFunctionAppWithStaticSiteBuildOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs } ) ; } param resourceGroupName param name param environmentName param functionAppName param staticSiteUserProvidedFunctionEnvelope param options async beginRegisterUserProvidedFunctionAppWithStaticSiteBuildAndWait ( resourceGroupName , name , environmentName , functionAppName , staticSiteUserProvidedFunctionEnvelope , options ? ) { const poller = await this . beginRegisterUserProvidedFunctionAppWithStaticSiteBuild ( resourceGroupName , name , environmentName , functionAppName , staticSiteUserProvidedFunctionEnvelope , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param name param environmentName param functionAppName param options detachUserProvidedFunctionAppFromStaticSiteBuild ( resourceGroupName , name , environmentName , functionAppName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , environmentName , functionAppName , options } , detachUserProvidedFunctionAppFromStaticSiteBuildOperationSpec ) ; } param resourceGroupName param name param environmentName param staticSiteZipDeploymentEnvelope param options async beginCreateZipDeploymentForStaticSiteBuild ( resourceGroupName , name , environmentName , staticSiteZipDeploymentEnvelope , 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 , name , environmentName , staticSiteZipDeploymentEnvelope , options } , createZipDeploymentForStaticSiteBuildOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs } ) ; } param resourceGroupName param name param environmentName param staticSiteZipDeploymentEnvelope param options async beginCreateZipDeploymentForStaticSiteBuildAndWait ( resourceGroupName , name , environmentName , staticSiteZipDeploymentEnvelope , options ? ) { const poller = await this . beginCreateZipDeploymentForStaticSiteBuild ( resourceGroupName , name , environmentName , staticSiteZipDeploymentEnvelope , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param name param appSettings param options createOrUpdateStaticSiteAppSettings ( resourceGroupName , name , appSettings , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , appSettings , options } , createOrUpdateStaticSiteAppSettingsOperationSpec ) ; } param resourceGroupName param name param appSettings param options createOrUpdateStaticSiteFunctionAppSettings ( resourceGroupName , name , appSettings , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , appSettings , options } , createOrUpdateStaticSiteFunctionAppSettingsOperationSpec ) ; } param resourceGroupName param name param staticSiteUserRolesInvitationEnvelope param options createUserRolesInvitationLink ( resourceGroupName , name , staticSiteUserRolesInvitationEnvelope , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , staticSiteUserRolesInvitationEnvelope , options } , createUserRolesInvitationLinkOperationSpec ) ; } param resourceGroupName param name param options private _listStaticSiteCustomDomains ( resourceGroupName , name , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , options } , listStaticSiteCustomDomainsOperationSpec ) ; } param resourceGroupName param name param domainName param options getStaticSiteCustomDomain ( resourceGroupName , name , domainName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , domainName , options } , getStaticSiteCustomDomainOperationSpec ) ; } param resourceGroupName param name param domainName param staticSiteCustomDomainRequestPropertiesEnvelope param options async beginCreateOrUpdateStaticSiteCustomDomain ( resourceGroupName , name , domainName , staticSiteCustomDomainRequestPropertiesEnvelope , options ? ) { const directSendOperation = async ( args , spec ) : Promise < StaticSitesCreateOrUpdateStaticSiteCustomDomainResponse > => { 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 , name , domainName , staticSiteCustomDomainRequestPropertiesEnvelope , options } , createOrUpdateStaticSiteCustomDomainOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs } ) ; } param resourceGroupName param name param domainName param staticSiteCustomDomainRequestPropertiesEnvelope param options async beginCreateOrUpdateStaticSiteCustomDomainAndWait ( resourceGroupName , name , domainName , staticSiteCustomDomainRequestPropertiesEnvelope , options ? ) { const poller = await this . beginCreateOrUpdateStaticSiteCustomDomain ( resourceGroupName , name , domainName , staticSiteCustomDomainRequestPropertiesEnvelope , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param name param domainName param options async beginDeleteStaticSiteCustomDomain ( resourceGroupName , name , domainName , 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 , name , domainName , options } , deleteStaticSiteCustomDomainOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs } ) ; } param resourceGroupName param name param domainName param options async beginDeleteStaticSiteCustomDomainAndWait ( resourceGroupName , name , domainName , options ? ) { const poller = await this . beginDeleteStaticSiteCustomDomain ( resourceGroupName , name , domainName , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param name param domainName param staticSiteCustomDomainRequestPropertiesEnvelope param options async beginValidateCustomDomainCanBeAddedToStaticSite ( resourceGroupName , name , domainName , staticSiteCustomDomainRequestPropertiesEnvelope , 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 , name , domainName , staticSiteCustomDomainRequestPropertiesEnvelope , options } , validateCustomDomainCanBeAddedToStaticSiteOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs } ) ; } param resourceGroupName param name param domainName param staticSiteCustomDomainRequestPropertiesEnvelope param options async beginValidateCustomDomainCanBeAddedToStaticSiteAndWait ( resourceGroupName , name , domainName , staticSiteCustomDomainRequestPropertiesEnvelope , options ? ) { const poller = await this . beginValidateCustomDomainCanBeAddedToStaticSite ( resourceGroupName , name , domainName , staticSiteCustomDomainRequestPropertiesEnvelope , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param name param options async beginDetachStaticSite ( resourceGroupName , name , 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 , name , options } , detachStaticSiteOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs } ) ; } param resourceGroupName param name param options async beginDetachStaticSiteAndWait ( resourceGroupName , name , options ? ) { const poller = await this . beginDetachStaticSite ( resourceGroupName , name , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param name param options private _listStaticSiteFunctions ( resourceGroupName , name , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , options } , listStaticSiteFunctionsOperationSpec ) ; } param resourceGroupName param name param options listStaticSiteAppSettings ( resourceGroupName , name , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , options } , listStaticSiteAppSettingsOperationSpec ) ; } param resourceGroupName param name param options listStaticSiteConfiguredRoles ( resourceGroupName , name , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , options } , listStaticSiteConfiguredRolesOperationSpec ) ; } param resourceGroupName param name param options listStaticSiteFunctionAppSettings ( resourceGroupName , name , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , options } , listStaticSiteFunctionAppSettingsOperationSpec ) ; } param resourceGroupName param name param options listStaticSiteSecrets ( resourceGroupName , name , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , options } , listStaticSiteSecretsOperationSpec ) ; } param resourceGroupName param name param options private _getPrivateEndpointConnectionList ( resourceGroupName , name , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , options } , getPrivateEndpointConnectionListOperationSpec ) ; } param resourceGroupName param name param privateEndpointConnectionName param options getPrivateEndpointConnection ( resourceGroupName , name , privateEndpointConnectionName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , privateEndpointConnectionName , options } , getPrivateEndpointConnectionOperationSpec ) ; } param resourceGroupName param name param privateEndpointConnectionName param privateEndpointWrapper param options async beginApproveOrRejectPrivateEndpointConnection ( resourceGroupName , name , privateEndpointConnectionName , privateEndpointWrapper , options ? ) { const directSendOperation = async ( args , spec ) : Promise < StaticSitesApproveOrRejectPrivateEndpointConnectionResponse > => { 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 , name , privateEndpointConnectionName , privateEndpointWrapper , options } , approveOrRejectPrivateEndpointConnectionOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs } ) ; } param resourceGroupName param name param privateEndpointConnectionName param privateEndpointWrapper param options async beginApproveOrRejectPrivateEndpointConnectionAndWait ( resourceGroupName , name , privateEndpointConnectionName , privateEndpointWrapper , options ? ) { const poller = await this . beginApproveOrRejectPrivateEndpointConnection ( resourceGroupName , name , privateEndpointConnectionName , privateEndpointWrapper , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param name param privateEndpointConnectionName param options async beginDeletePrivateEndpointConnection ( resourceGroupName , name , privateEndpointConnectionName , options ? ) { const directSendOperation = async ( args , spec ) : Promise < StaticSitesDeletePrivateEndpointConnectionResponse > => { 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 , name , privateEndpointConnectionName , options } , deletePrivateEndpointConnectionOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs } ) ; } param resourceGroupName param name param privateEndpointConnectionName param options async beginDeletePrivateEndpointConnectionAndWait ( resourceGroupName , name , privateEndpointConnectionName , options ? ) { const poller = await this . beginDeletePrivateEndpointConnection ( resourceGroupName , name , privateEndpointConnectionName , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param name param options getPrivateLinkResources ( resourceGroupName , name , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , options } , getPrivateLinkResourcesOperationSpec ) ; } param resourceGroupName param name param resetPropertiesEnvelope param options resetStaticSiteApiKey ( resourceGroupName , name , resetPropertiesEnvelope , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , resetPropertiesEnvelope , options } , resetStaticSiteApiKeyOperationSpec ) ; } param resourceGroupName param name param options private _getUserProvidedFunctionAppsForStaticSite ( resourceGroupName , name , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , options } , getUserProvidedFunctionAppsForStaticSiteOperationSpec ) ; } param resourceGroupName param name param functionAppName param options getUserProvidedFunctionAppForStaticSite ( resourceGroupName , name , functionAppName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , functionAppName , options } , getUserProvidedFunctionAppForStaticSiteOperationSpec ) ; } param resourceGroupName param name param functionAppName param staticSiteUserProvidedFunctionEnvelope param options async beginRegisterUserProvidedFunctionAppWithStaticSite ( resourceGroupName , name , functionAppName , staticSiteUserProvidedFunctionEnvelope , options ? ) { const directSendOperation = async ( args , spec ) : Promise < StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteResponse > => { 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 , name , functionAppName , staticSiteUserProvidedFunctionEnvelope , options } , registerUserProvidedFunctionAppWithStaticSiteOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs } ) ; } param resourceGroupName param name param functionAppName param staticSiteUserProvidedFunctionEnvelope param options async beginRegisterUserProvidedFunctionAppWithStaticSiteAndWait ( resourceGroupName , name , functionAppName , staticSiteUserProvidedFunctionEnvelope , options ? ) { const poller = await this . beginRegisterUserProvidedFunctionAppWithStaticSite ( resourceGroupName , name , functionAppName , staticSiteUserProvidedFunctionEnvelope , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param name param functionAppName param options detachUserProvidedFunctionAppFromStaticSite ( resourceGroupName , name , functionAppName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , functionAppName , options } , detachUserProvidedFunctionAppFromStaticSiteOperationSpec ) ; } param resourceGroupName param name param staticSiteZipDeploymentEnvelope param options async beginCreateZipDeploymentForStaticSite ( resourceGroupName , name , staticSiteZipDeploymentEnvelope , 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 , name , staticSiteZipDeploymentEnvelope , options } , createZipDeploymentForStaticSiteOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs } ) ; } param resourceGroupName param name param staticSiteZipDeploymentEnvelope param options async beginCreateZipDeploymentForStaticSiteAndWait ( resourceGroupName , name , staticSiteZipDeploymentEnvelope , options ? ) { const poller = await this . beginCreateZipDeploymentForStaticSite ( resourceGroupName , name , staticSiteZipDeploymentEnvelope , options ) ; return poller . pollUntilDone ( ) ; } param nextLink param options private _listNext ( nextLink , options ? ) { return this . client . sendOperationRequest ( { nextLink , options } , listNextOperationSpec ) ; } param resourceGroupName param nextLink param options private _getStaticSitesByResourceGroupNext ( resourceGroupName , nextLink , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , nextLink , options } , getStaticSitesByResourceGroupNextOperationSpec ) ; } param resourceGroupName param name param authprovider param nextLink param options private _listStaticSiteUsersNext ( resourceGroupName , name , authprovider , nextLink , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , authprovider , nextLink , options } , listStaticSiteUsersNextOperationSpec ) ; } param resourceGroupName param name param nextLink param options private _getStaticSiteBuildsNext ( resourceGroupName , name , nextLink , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , nextLink , options } , getStaticSiteBuildsNextOperationSpec ) ; } param resourceGroupName param name param environmentName param nextLink param options private _listStaticSiteBuildFunctionsNext ( resourceGroupName , name , environmentName , nextLink , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , environmentName , nextLink , options } , listStaticSiteBuildFunctionsNextOperationSpec ) ; } param resourceGroupName param name param environmentName param nextLink param options private _getUserProvidedFunctionAppsForStaticSiteBuildNext ( resourceGroupName , name , environmentName , nextLink , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , environmentName , nextLink , options } , getUserProvidedFunctionAppsForStaticSiteBuildNextOperationSpec ) ; } param resourceGroupName param name param nextLink param options private _listStaticSiteCustomDomainsNext ( resourceGroupName , name , nextLink , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , nextLink , options } , listStaticSiteCustomDomainsNextOperationSpec ) ; } param resourceGroupName param name param nextLink param options private _listStaticSiteFunctionsNext ( resourceGroupName , name , nextLink , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , nextLink , options } , listStaticSiteFunctionsNextOperationSpec ) ; } param resourceGroupName param name param nextLink param options private _getPrivateEndpointConnectionListNext ( resourceGroupName , name , nextLink , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , nextLink , options } , getPrivateEndpointConnectionListNextOperationSpec ) ; } param resourceGroupName param name param nextLink param options private _getUserProvidedFunctionAppsForStaticSiteNext ( resourceGroupName , name , nextLink , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , nextLink , options } , getUserProvidedFunctionAppsForStaticSiteNextOperationSpec ) ; } } const serializer = coreClient . createSerializer ( Mappers , false ) ; const previewWorkflowOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/previewStaticSiteWorkflowFile" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . StaticSitesWorkflowPreview } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , requestBody : Parameters . staticSitesWorkflowPreviewRequest , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . location ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const listOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.Web/staticSites" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . StaticSiteCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId ] , headerParameters : [ Parameters . accept ] , serializer } ; const getStaticSitesByResourceGroupOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . StaticSiteCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName ] , headerParameters : [ Parameters . accept ] , serializer } ; const getStaticSiteOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . StaticSiteARMResource } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name ] , headerParameters : [ Parameters . accept ] , serializer } ; const createOrUpdateStaticSiteOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}" , httpMethod : "PUT" , responses : { 200 : { bodyMapper : Mappers . StaticSiteARMResource } , 201 : { bodyMapper : Mappers . StaticSiteARMResource } , 202 : { bodyMapper : Mappers . StaticSiteARMResource } , 204 : { bodyMapper : Mappers . StaticSiteARMResource } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , requestBody : Parameters . staticSiteEnvelope , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const deleteStaticSiteOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}" , httpMethod : "DELETE" , responses : { 200 : { } , 201 : { } , 202 : { } , 204 : { } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name ] , headerParameters : [ Parameters . accept ] , serializer } ; const updateStaticSiteOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}" , httpMethod : "PATCH" , responses : { 200 : { bodyMapper : Mappers . StaticSiteARMResource } , 202 : { bodyMapper : Mappers . StaticSiteARMResource } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , requestBody : Parameters . staticSiteEnvelope1 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const listStaticSiteUsersOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/authproviders/{authprovider}/listUsers" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . StaticSiteUserCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . authprovider ] , headerParameters : [ Parameters . accept ] , serializer } ; const deleteStaticSiteUserOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/authproviders/{authprovider}/users/{userid}" , httpMethod : "DELETE" , responses : { 200 : { } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . authprovider , Parameters . userid ] , headerParameters : [ Parameters . accept ] , serializer } ; const updateStaticSiteUserOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/authproviders/{authprovider}/users/{userid}" , httpMethod : "PATCH" , responses : { 200 : { bodyMapper : Mappers . StaticSiteUserARMResource } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , requestBody : Parameters . staticSiteUserEnvelope , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . authprovider , Parameters . userid ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const getStaticSiteBuildsOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . StaticSiteBuildCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name ] , headerParameters : [ Parameters . accept ] , serializer } ; const getStaticSiteBuildOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . StaticSiteBuildARMResource } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . environmentName1 ] , headerParameters : [ Parameters . accept ] , serializer } ; const deleteStaticSiteBuildOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}" , httpMethod : "DELETE" , responses : { 200 : { } , 201 : { } , 202 : { } , 204 : { } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . environmentName1 ] , headerParameters : [ Parameters . accept ] , serializer } ; const createOrUpdateStaticSiteBuildAppSettingsOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/config/appsettings" , httpMethod : "PUT" , responses : { 200 : { bodyMapper : Mappers . StringDictionary } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , requestBody : Parameters . appSettings , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . environmentName1 ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const createOrUpdateStaticSiteBuildFunctionAppSettingsOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/config/functionappsettings" , httpMethod : "PUT" , responses : { 200 : { bodyMapper : Mappers . StringDictionary } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , requestBody : Parameters . appSettings , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . environmentName1 ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const listStaticSiteBuildFunctionsOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/functions" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . StaticSiteFunctionOverviewCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . environmentName1 ] , headerParameters : [ Parameters . accept ] , serializer } ; const listStaticSiteBuildAppSettingsOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/listAppSettings" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . StringDictionary } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . environmentName1 ] , headerParameters : [ Parameters . accept ] , serializer } ; const listStaticSiteBuildFunctionAppSettingsOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/listFunctionAppSettings" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . StringDictionary } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . environmentName1 ] , headerParameters : [ Parameters . accept ] , serializer } ; const getUserProvidedFunctionAppsForStaticSiteBuildOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/userProvidedFunctionApps" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . StaticSiteUserProvidedFunctionAppsCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . environmentName1 ] , headerParameters : [ Parameters . accept ] , serializer } ; const getUserProvidedFunctionAppForStaticSiteBuildOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/userProvidedFunctionApps/{functionAppName}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . StaticSiteUserProvidedFunctionAppARMResource } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . environmentName1 , Parameters . functionAppName ] , headerParameters : [ Parameters . accept ] , serializer } ; const registerUserProvidedFunctionAppWithStaticSiteBuildOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/userProvidedFunctionApps/{functionAppName}" , httpMethod : "PUT" , responses : { 200 : { bodyMapper : Mappers . StaticSiteUserProvidedFunctionAppARMResource } , 201 : { bodyMapper : Mappers . StaticSiteUserProvidedFunctionAppARMResource } , 202 : { bodyMapper : Mappers . StaticSiteUserProvidedFunctionAppARMResource } , 204 : { bodyMapper : Mappers . StaticSiteUserProvidedFunctionAppARMResource } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , requestBody : Parameters . staticSiteUserProvidedFunctionEnvelope , queryParameters : [ Parameters . apiVersion , Parameters . isForced ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . environmentName1 , Parameters . functionAppName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const detachUserProvidedFunctionAppFromStaticSiteBuildOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/userProvidedFunctionApps/{functionAppName}" , httpMethod : "DELETE" , responses : { 200 : { } , 204 : { } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . environmentName1 , Parameters . functionAppName ] , headerParameters : [ Parameters . accept ] , serializer } ; const createZipDeploymentForStaticSiteBuildOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/zipdeploy" , httpMethod : "POST" , responses : { 200 : { } , 201 : { } , 202 : { } , 204 : { } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , requestBody : Parameters . staticSiteZipDeploymentEnvelope , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . environmentName1 ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const createOrUpdateStaticSiteAppSettingsOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/config/appsettings" , httpMethod : "PUT" , responses : { 200 : { bodyMapper : Mappers . StringDictionary } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , requestBody : Parameters . appSettings , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const createOrUpdateStaticSiteFunctionAppSettingsOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/config/functionappsettings" , httpMethod : "PUT" , responses : { 200 : { bodyMapper : Mappers . StringDictionary } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , requestBody : Parameters . appSettings , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const createUserRolesInvitationLinkOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/createUserInvitation" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . StaticSiteUserInvitationResponseResource } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , requestBody : Parameters . staticSiteUserRolesInvitationEnvelope , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const listStaticSiteCustomDomainsOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/customDomains" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . StaticSiteCustomDomainOverviewCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name ] , headerParameters : [ Parameters . accept ] , serializer } ; const getStaticSiteCustomDomainOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/customDomains/{domainName}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . StaticSiteCustomDomainOverviewARMResource } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . domainName ] , headerParameters : [ Parameters . accept ] , serializer } ; const createOrUpdateStaticSiteCustomDomainOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/customDomains/{domainName}" , httpMethod : "PUT" , responses : { 200 : { bodyMapper : Mappers . StaticSiteCustomDomainOverviewARMResource } , 201 : { bodyMapper : Mappers . StaticSiteCustomDomainOverviewARMResource } , 202 : { bodyMapper : Mappers . StaticSiteCustomDomainOverviewARMResource } , 204 : { bodyMapper : Mappers . StaticSiteCustomDomainOverviewARMResource } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , requestBody : Parameters . staticSiteCustomDomainRequestPropertiesEnvelope , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . domainName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const deleteStaticSiteCustomDomainOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/customDomains/{domainName}" , httpMethod : "DELETE" , responses : { 200 : { } , 201 : { } , 202 : { } , 204 : { } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . domainName ] , headerParameters : [ Parameters . accept ] , serializer } ; const validateCustomDomainCanBeAddedToStaticSiteOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/customDomains/{domainName}/validate" , httpMethod : "POST" , responses : { 200 : { } , 201 : { } , 202 : { } , 204 : { } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , requestBody : Parameters . staticSiteCustomDomainRequestPropertiesEnvelope , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . domainName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const detachStaticSiteOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/detach" , httpMethod : "POST" , responses : { 200 : { } , 201 : { } , 202 : { } , 204 : { } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name ] , headerParameters : [ Parameters . accept ] , serializer } ; const listStaticSiteFunctionsOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/functions" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . StaticSiteFunctionOverviewCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name ] , headerParameters : [ Parameters . accept ] , serializer } ; const listStaticSiteAppSettingsOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/listAppSettings" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . StringDictionary } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name ] , headerParameters : [ Parameters . accept ] , serializer } ; const listStaticSiteConfiguredRolesOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/listConfiguredRoles" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . StringList } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name ] , headerParameters : [ Parameters . accept ] , serializer } ; const listStaticSiteFunctionAppSettingsOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/listFunctionAppSettings" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . StringDictionary } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name ] , headerParameters : [ Parameters . accept ] , serializer } ; const listStaticSiteSecretsOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/listSecrets" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . StringDictionary } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name ] , headerParameters : [ Parameters . accept ] , serializer } ; const getPrivateEndpointConnectionListOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/privateEndpointConnections" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . PrivateEndpointConnectionCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name ] , headerParameters : [ Parameters . accept ] , serializer } ; const getPrivateEndpointConnectionOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/privateEndpointConnections/{privateEndpointConnectionName}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . RemotePrivateEndpointConnectionARMResource } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . privateEndpointConnectionName ] , headerParameters : [ Parameters . accept ] , serializer } ; const approveOrRejectPrivateEndpointConnectionOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/privateEndpointConnections/{privateEndpointConnectionName}" , httpMethod : "PUT" , responses : { 200 : { bodyMapper : Mappers . RemotePrivateEndpointConnectionARMResource } , 201 : { bodyMapper : Mappers . RemotePrivateEndpointConnectionARMResource } , 202 : { bodyMapper : Mappers . RemotePrivateEndpointConnectionARMResource } , 204 : { bodyMapper : Mappers . RemotePrivateEndpointConnectionARMResource } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , requestBody : Parameters . privateEndpointWrapper , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . privateEndpointConnectionName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const deletePrivateEndpointConnectionOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/privateEndpointConnections/{privateEndpointConnectionName}" , httpMethod : "DELETE" , responses : { 200 : { bodyMapper : { type : { name : "Dictionary" , value : { type : { name : "any" } } } } } , 201 : { bodyMapper : { type : { name : "Dictionary" , value : { type : { name : "any" } } } } } , 202 : { bodyMapper : { type : { name : "Dictionary" , value : { type : { name : "any" } } } } } , 204 : { bodyMapper : { type : { name : "Dictionary" , value : { type : { name : "any" } } } } } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . privateEndpointConnectionName ] , headerParameters : [ Parameters . accept ] , serializer } ; const getPrivateLinkResourcesOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/privateLinkResources" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . PrivateLinkResourcesWrapper } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name ] , headerParameters : [ Parameters . accept ] , serializer } ; const resetStaticSiteApiKeyOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/resetapikey" , httpMethod : "POST" , responses : { 200 : { } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , requestBody : Parameters . resetPropertiesEnvelope , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const getUserProvidedFunctionAppsForStaticSiteOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/userProvidedFunctionApps" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . StaticSiteUserProvidedFunctionAppsCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name ] , headerParameters : [ Parameters . accept ] , serializer } ; const getUserProvidedFunctionAppForStaticSiteOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/userProvidedFunctionApps/{functionAppName}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . StaticSiteUserProvidedFunctionAppARMResource } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . functionAppName ] , headerParameters : [ Parameters . accept ] , serializer } ; const registerUserProvidedFunctionAppWithStaticSiteOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/userProvidedFunctionApps/{functionAppName}" , httpMethod : "PUT" , responses : { 200 : { bodyMapper : Mappers . StaticSiteUserProvidedFunctionAppARMResource } , 201 : { bodyMapper : Mappers . StaticSiteUserProvidedFunctionAppARMResource } , 202 : { bodyMapper : Mappers . StaticSiteUserProvidedFunctionAppARMResource } , 204 : { bodyMapper : Mappers . StaticSiteUserProvidedFunctionAppARMResource } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , requestBody : Parameters . staticSiteUserProvidedFunctionEnvelope , queryParameters : [ Parameters . apiVersion , Parameters . isForced ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . functionAppName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const detachUserProvidedFunctionAppFromStaticSiteOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/userProvidedFunctionApps/{functionAppName}" , httpMethod : "DELETE" , responses : { 200 : { } , 204 : { } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . functionAppName ] , headerParameters : [ Parameters . accept ] , serializer } ; const createZipDeploymentForStaticSiteOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/zipdeploy" , httpMethod : "POST" , responses : { 200 : { } , 201 : { } , 202 : { } , 204 : { } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , requestBody : Parameters . staticSiteZipDeploymentEnvelope , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const listNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . StaticSiteCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . nextLink ] , headerParameters : [ Parameters . accept ] , serializer } ; const getStaticSitesByResourceGroupNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . StaticSiteCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . nextLink ] , headerParameters : [ Parameters . accept ] , serializer } ; const listStaticSiteUsersNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . StaticSiteUserCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . nextLink , Parameters . authprovider ] , headerParameters : [ Parameters . accept ] , serializer } ; const getStaticSiteBuildsNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . StaticSiteBuildCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . nextLink ] , headerParameters : [ Parameters . accept ] , serializer } ; const listStaticSiteBuildFunctionsNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . StaticSiteFunctionOverviewCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . nextLink , Parameters . environmentName1 ] , headerParameters : [ Parameters . accept ] , serializer } ; const getUserProvidedFunctionAppsForStaticSiteBuildNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . StaticSiteUserProvidedFunctionAppsCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . nextLink , Parameters . environmentName1 ] , headerParameters : [ Parameters . accept ] , serializer } ; const listStaticSiteCustomDomainsNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . StaticSiteCustomDomainOverviewCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . nextLink ] , headerParameters : [ Parameters . accept ] , serializer } ; const listStaticSiteFunctionsNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . StaticSiteFunctionOverviewCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . nextLink ] , headerParameters : [ Parameters . accept ] , serializer } ; const getPrivateEndpointConnectionListNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . PrivateEndpointConnectionCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . nextLink ] , headerParameters : [ Parameters . accept ] , serializer } ; const getUserProvidedFunctionAppsForStaticSiteNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . StaticSiteUserProvidedFunctionAppsCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . nextLink ] , headerParameters : [ Parameters . accept ] , serializer } ;