import { PagedAsyncIterableIterator } from "@azure/core-paging" ; import { AppServiceCertificateOrders } 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 { AppServiceCertificateOrder , AppServiceCertificateOrdersListNextOptionalParams , AppServiceCertificateOrdersListOptionalParams , AppServiceCertificateOrdersListByResourceGroupNextOptionalParams , AppServiceCertificateOrdersListByResourceGroupOptionalParams , AppServiceCertificateResource , AppServiceCertificateOrdersListCertificatesNextOptionalParams , AppServiceCertificateOrdersListCertificatesOptionalParams , AppServiceCertificateOrdersListResponse , AppServiceCertificateOrdersValidatePurchaseInformationOptionalParams , AppServiceCertificateOrdersListByResourceGroupResponse , AppServiceCertificateOrdersGetOptionalParams , AppServiceCertificateOrdersGetResponse , AppServiceCertificateOrdersCreateOrUpdateOptionalParams , AppServiceCertificateOrdersCreateOrUpdateResponse , AppServiceCertificateOrdersDeleteOptionalParams , AppServiceCertificateOrderPatchResource , AppServiceCertificateOrdersUpdateOptionalParams , AppServiceCertificateOrdersUpdateResponse , AppServiceCertificateOrdersListCertificatesResponse , AppServiceCertificateOrdersGetCertificateOptionalParams , AppServiceCertificateOrdersGetCertificateResponse , AppServiceCertificateOrdersCreateOrUpdateCertificateOptionalParams , AppServiceCertificateOrdersCreateOrUpdateCertificateResponse , AppServiceCertificateOrdersDeleteCertificateOptionalParams , AppServiceCertificatePatchResource , AppServiceCertificateOrdersUpdateCertificateOptionalParams , AppServiceCertificateOrdersUpdateCertificateResponse , ReissueCertificateOrderRequest , AppServiceCertificateOrdersReissueOptionalParams , RenewCertificateOrderRequest , AppServiceCertificateOrdersRenewOptionalParams , AppServiceCertificateOrdersResendEmailOptionalParams , NameIdentifier , AppServiceCertificateOrdersResendRequestEmailsOptionalParams , SiteSealRequest , AppServiceCertificateOrdersRetrieveSiteSealOptionalParams , AppServiceCertificateOrdersRetrieveSiteSealResponse , AppServiceCertificateOrdersVerifyDomainOwnershipOptionalParams , AppServiceCertificateOrdersRetrieveCertificateActionsOptionalParams , AppServiceCertificateOrdersRetrieveCertificateActionsResponse , AppServiceCertificateOrdersRetrieveCertificateEmailHistoryOptionalParams , AppServiceCertificateOrdersRetrieveCertificateEmailHistoryResponse , AppServiceCertificateOrdersListNextResponse , AppServiceCertificateOrdersListByResourceGroupNextResponse , AppServiceCertificateOrdersListCertificatesNextResponse } from "../models" ; /** Class containing AppServiceCertificateOrders operations. */ export class AppServiceCertificateOrdersImpl implements AppServiceCertificateOrders { 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 listByResourceGroup ( resourceGroupName , options ? ) { const iter = this . listByResourceGroupPagingAll ( resourceGroupName , options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . listByResourceGroupPagingPage ( resourceGroupName , options ) ; } } ; } private async * listByResourceGroupPagingPage ( resourceGroupName , options ? ) { let result = await this . _listByResourceGroup ( resourceGroupName , options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _listByResourceGroupNext ( resourceGroupName , continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * listByResourceGroupPagingAll ( resourceGroupName , options ? ) { for await ( const page of this . listByResourceGroupPagingPage ( resourceGroupName , options ) ) { yield * page ; } } param resourceGroupName param certificateOrderName param options public listCertificates ( resourceGroupName , certificateOrderName , options ? ) { const iter = this . listCertificatesPagingAll ( resourceGroupName , certificateOrderName , options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . listCertificatesPagingPage ( resourceGroupName , certificateOrderName , options ) ; } } ; } private async * listCertificatesPagingPage ( resourceGroupName , certificateOrderName , options ? ) { let result = await this . _listCertificates ( resourceGroupName , certificateOrderName , options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _listCertificatesNext ( resourceGroupName , certificateOrderName , continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * listCertificatesPagingAll ( resourceGroupName , certificateOrderName , options ? ) { for await ( const page of this . listCertificatesPagingPage ( resourceGroupName , certificateOrderName , options ) ) { yield * page ; } } param options private _list ( options ? ) { return this . client . sendOperationRequest ( { options } , listOperationSpec ) ; } param appServiceCertificateOrder param options validatePurchaseInformation ( appServiceCertificateOrder , options ? ) { return this . client . sendOperationRequest ( { appServiceCertificateOrder , options } , validatePurchaseInformationOperationSpec ) ; } param resourceGroupName param options private _listByResourceGroup ( resourceGroupName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , options } , listByResourceGroupOperationSpec ) ; } param resourceGroupName param certificateOrderName param options get ( resourceGroupName , certificateOrderName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , certificateOrderName , options } , getOperationSpec ) ; } param resourceGroupName param certificateOrderName param certificateDistinguishedName param options async beginCreateOrUpdate ( resourceGroupName , certificateOrderName , certificateDistinguishedName , options ? ) { const directSendOperation = async ( args , spec ) : Promise < AppServiceCertificateOrdersCreateOrUpdateResponse > => { 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 , certificateOrderName , certificateDistinguishedName , options } , createOrUpdateOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs } ) ; } param resourceGroupName param certificateOrderName param certificateDistinguishedName param options async beginCreateOrUpdateAndWait ( resourceGroupName , certificateOrderName , certificateDistinguishedName , options ? ) { const poller = await this . beginCreateOrUpdate ( resourceGroupName , certificateOrderName , certificateDistinguishedName , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param certificateOrderName param options delete ( resourceGroupName , certificateOrderName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , certificateOrderName , options } , deleteOperationSpec ) ; } param resourceGroupName param certificateOrderName param certificateDistinguishedName param options update ( resourceGroupName , certificateOrderName , certificateDistinguishedName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , certificateOrderName , certificateDistinguishedName , options } , updateOperationSpec ) ; } param resourceGroupName param certificateOrderName param options private _listCertificates ( resourceGroupName , certificateOrderName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , certificateOrderName , options } , listCertificatesOperationSpec ) ; } param resourceGroupName param certificateOrderName param name param options getCertificate ( resourceGroupName , certificateOrderName , name , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , certificateOrderName , name , options } , getCertificateOperationSpec ) ; } param resourceGroupName param certificateOrderName param name param keyVaultCertificate param options async beginCreateOrUpdateCertificate ( resourceGroupName , certificateOrderName , name , keyVaultCertificate , options ? ) { const directSendOperation = async ( args , spec ) : Promise < AppServiceCertificateOrdersCreateOrUpdateCertificateResponse > => { 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 , certificateOrderName , name , keyVaultCertificate , options } , createOrUpdateCertificateOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs } ) ; } param resourceGroupName param certificateOrderName param name param keyVaultCertificate param options async beginCreateOrUpdateCertificateAndWait ( resourceGroupName , certificateOrderName , name , keyVaultCertificate , options ? ) { const poller = await this . beginCreateOrUpdateCertificate ( resourceGroupName , certificateOrderName , name , keyVaultCertificate , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param certificateOrderName param name param options deleteCertificate ( resourceGroupName , certificateOrderName , name , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , certificateOrderName , name , options } , deleteCertificateOperationSpec ) ; } param resourceGroupName param certificateOrderName param name param keyVaultCertificate param options updateCertificate ( resourceGroupName , certificateOrderName , name , keyVaultCertificate , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , certificateOrderName , name , keyVaultCertificate , options } , updateCertificateOperationSpec ) ; } param resourceGroupName param certificateOrderName param reissueCertificateOrderRequest param options reissue ( resourceGroupName , certificateOrderName , reissueCertificateOrderRequest , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , certificateOrderName , reissueCertificateOrderRequest , options } , reissueOperationSpec ) ; } param resourceGroupName param certificateOrderName param renewCertificateOrderRequest param options renew ( resourceGroupName , certificateOrderName , renewCertificateOrderRequest , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , certificateOrderName , renewCertificateOrderRequest , options } , renewOperationSpec ) ; } param resourceGroupName param certificateOrderName param options resendEmail ( resourceGroupName , certificateOrderName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , certificateOrderName , options } , resendEmailOperationSpec ) ; } param resourceGroupName param certificateOrderName param nameIdentifier param options resendRequestEmails ( resourceGroupName , certificateOrderName , nameIdentifier , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , certificateOrderName , nameIdentifier , options } , resendRequestEmailsOperationSpec ) ; } param resourceGroupName param certificateOrderName param siteSealRequest param options retrieveSiteSeal ( resourceGroupName , certificateOrderName , siteSealRequest , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , certificateOrderName , siteSealRequest , options } , retrieveSiteSealOperationSpec ) ; } param resourceGroupName param certificateOrderName param options verifyDomainOwnership ( resourceGroupName , certificateOrderName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , certificateOrderName , options } , verifyDomainOwnershipOperationSpec ) ; } param resourceGroupName param name param options retrieveCertificateActions ( resourceGroupName , name , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , options } , retrieveCertificateActionsOperationSpec ) ; } param resourceGroupName param name param options retrieveCertificateEmailHistory ( resourceGroupName , name , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , options } , retrieveCertificateEmailHistoryOperationSpec ) ; } param nextLink param options private _listNext ( nextLink , options ? ) { return this . client . sendOperationRequest ( { nextLink , options } , listNextOperationSpec ) ; } param resourceGroupName param nextLink param options private _listByResourceGroupNext ( resourceGroupName , nextLink , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , nextLink , options } , listByResourceGroupNextOperationSpec ) ; } param resourceGroupName param certificateOrderName param nextLink param options private _listCertificatesNext ( resourceGroupName , certificateOrderName , nextLink , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , certificateOrderName , nextLink , options } , listCertificatesNextOperationSpec ) ; } } const serializer = coreClient . createSerializer ( Mappers , false ) ; const listOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.CertificateRegistration/certificateOrders" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . AppServiceCertificateOrderCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId ] , headerParameters : [ Parameters . accept ] , serializer } ; const validatePurchaseInformationOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.CertificateRegistration/validateCertificateRegistrationInformation" , httpMethod : "POST" , responses : { 204 : { } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , requestBody : Parameters . appServiceCertificateOrder , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const listByResourceGroupOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . AppServiceCertificateOrderCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName ] , headerParameters : [ Parameters . accept ] , serializer } ; const getOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . AppServiceCertificateOrder } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . certificateOrderName ] , headerParameters : [ Parameters . accept ] , serializer } ; const createOrUpdateOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}" , httpMethod : "PUT" , responses : { 200 : { bodyMapper : Mappers . AppServiceCertificateOrder } , 201 : { bodyMapper : Mappers . AppServiceCertificateOrder } , 202 : { bodyMapper : Mappers . AppServiceCertificateOrder } , 204 : { bodyMapper : Mappers . AppServiceCertificateOrder } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , requestBody : Parameters . certificateDistinguishedName , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . certificateOrderName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const deleteOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}" , httpMethod : "DELETE" , responses : { 200 : { } , 204 : { } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . certificateOrderName ] , headerParameters : [ Parameters . accept ] , serializer } ; const updateOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}" , httpMethod : "PATCH" , responses : { 200 : { bodyMapper : Mappers . AppServiceCertificateOrder } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , requestBody : Parameters . certificateDistinguishedName1 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . certificateOrderName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const listCertificatesOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . AppServiceCertificateCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . certificateOrderName ] , headerParameters : [ Parameters . accept ] , serializer } ; const getCertificateOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . AppServiceCertificateResource } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . certificateOrderName , Parameters . name ] , headerParameters : [ Parameters . accept ] , serializer } ; const createOrUpdateCertificateOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}" , httpMethod : "PUT" , responses : { 200 : { bodyMapper : Mappers . AppServiceCertificateResource } , 201 : { bodyMapper : Mappers . AppServiceCertificateResource } , 202 : { bodyMapper : Mappers . AppServiceCertificateResource } , 204 : { bodyMapper : Mappers . AppServiceCertificateResource } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , requestBody : Parameters . keyVaultCertificate , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . certificateOrderName , Parameters . name ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const deleteCertificateOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}" , httpMethod : "DELETE" , responses : { 200 : { } , 204 : { } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . certificateOrderName , Parameters . name ] , headerParameters : [ Parameters . accept ] , serializer } ; const updateCertificateOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}" , httpMethod : "PATCH" , responses : { 200 : { bodyMapper : Mappers . AppServiceCertificateResource } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , requestBody : Parameters . keyVaultCertificate1 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . certificateOrderName , Parameters . name ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const reissueOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/reissue" , httpMethod : "POST" , responses : { 204 : { } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , requestBody : Parameters . reissueCertificateOrderRequest , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . certificateOrderName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const renewOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/renew" , httpMethod : "POST" , responses : { 204 : { } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , requestBody : Parameters . renewCertificateOrderRequest , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . certificateOrderName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const resendEmailOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/resendEmail" , httpMethod : "POST" , responses : { 204 : { } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . certificateOrderName ] , headerParameters : [ Parameters . accept ] , serializer } ; const resendRequestEmailsOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/resendRequestEmails" , httpMethod : "POST" , responses : { 204 : { } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , requestBody : Parameters . nameIdentifier , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . certificateOrderName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const retrieveSiteSealOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/retrieveSiteSeal" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . SiteSeal } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , requestBody : Parameters . siteSealRequest , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . certificateOrderName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const verifyDomainOwnershipOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/verifyDomainOwnership" , httpMethod : "POST" , responses : { 204 : { } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . certificateOrderName ] , headerParameters : [ Parameters . accept ] , serializer } ; const retrieveCertificateActionsOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/retrieveCertificateActions" , httpMethod : "POST" , responses : { 200 : { bodyMapper : { type : { name : "Sequence" , element : { type : { name : "Composite" , className : "CertificateOrderAction" } } } } } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name ] , headerParameters : [ Parameters . accept ] , serializer } ; const retrieveCertificateEmailHistoryOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/retrieveEmailHistory" , httpMethod : "POST" , responses : { 200 : { bodyMapper : { type : { name : "Sequence" , element : { type : { name : "Composite" , className : "CertificateEmail" } } } } } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name ] , headerParameters : [ Parameters . accept ] , serializer } ; const listNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . AppServiceCertificateOrderCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . nextLink ] , headerParameters : [ Parameters . accept ] , serializer } ; const listByResourceGroupNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . AppServiceCertificateOrderCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . nextLink ] , headerParameters : [ Parameters . accept ] , serializer } ; const listCertificatesNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . AppServiceCertificateCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . certificateOrderName , Parameters . nextLink ] , headerParameters : [ Parameters . accept ] , serializer } ;