import { Global } 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 { GlobalGetDeletedWebAppOptionalParams , GlobalGetDeletedWebAppResponse , GlobalGetDeletedWebAppSnapshotsOptionalParams , GlobalGetDeletedWebAppSnapshotsResponse , GlobalGetSubscriptionOperationWithAsyncResponseOptionalParams } from "../models" ; /** Class containing Global operations. */ export class GlobalImpl implements Global { private readonly client : WebSiteManagementClient ; param client constructor ( client ) { this . client = client ; } param deletedSiteId param options getDeletedWebApp ( deletedSiteId , options ? ) { return this . client . sendOperationRequest ( { deletedSiteId , options } , getDeletedWebAppOperationSpec ) ; } param deletedSiteId param options getDeletedWebAppSnapshots ( deletedSiteId , options ? ) { return this . client . sendOperationRequest ( { deletedSiteId , options } , getDeletedWebAppSnapshotsOperationSpec ) ; } param location param operationId param options getSubscriptionOperationWithAsyncResponse ( location , operationId , options ? ) { return this . client . sendOperationRequest ( { location , operationId , options } , getSubscriptionOperationWithAsyncResponseOperationSpec ) ; } } const serializer = coreClient . createSerializer ( Mappers , false ) ; const getDeletedWebAppOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.Web/deletedSites/{deletedSiteId}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . DeletedSite } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . deletedSiteId ] , headerParameters : [ Parameters . accept ] , serializer } ; const getDeletedWebAppSnapshotsOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.Web/deletedSites/{deletedSiteId}/snapshots" , httpMethod : "GET" , responses : { 200 : { bodyMapper : { type : { name : "Sequence" , element : { type : { name : "Composite" , className : "Snapshot" } } } } } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . deletedSiteId ] , headerParameters : [ Parameters . accept ] , serializer } ; const getSubscriptionOperationWithAsyncResponseOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/operations/{operationId}" , httpMethod : "GET" , responses : { 204 : { } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . location , Parameters . operationId ] , headerParameters : [ Parameters . accept ] , serializer } ;