import * as msRest from "@azure/ms-rest-js" ; import * as Models from "../models" ; import * as Mappers from "../models/siteExtensionMappers" ; import * as Parameters from "../models/parameters" ; import { KuduClientContext } from "../kuduClientContext" ; /** Class representing a SiteExtension. */ export class SiteExtension { private readonly client : KuduClientContext ; param { KuduClientContext } client constructor ( client ) { this . client = client ; } param options returns getRemoteExtensions ( options ? ) ; param callback getRemoteExtensions ( callback ) ; param options param callback getRemoteExtensions ( options , callback ) ; getRemoteExtensions ( options ? , callback ? ) { return this . client . sendOperationRequest ( { options } , getRemoteExtensionsOperationSpec , callback ) as Promise < Models . SiteExtensionGetRemoteExtensionsResponse > ; } param id param options returns getRemoteExtension ( id , options ? ) ; param id param callback getRemoteExtension ( id , callback ) ; param id param options param callback getRemoteExtension ( id , options , callback ) ; getRemoteExtension ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , getRemoteExtensionOperationSpec , callback ) as Promise < Models . SiteExtensionGetRemoteExtensionResponse > ; } param options returns getLocalExtensions ( options ? ) ; param callback getLocalExtensions ( callback ) ; param options param callback getLocalExtensions ( options , callback ) ; getLocalExtensions ( options ? , callback ? ) { return this . client . sendOperationRequest ( { options } , getLocalExtensionsOperationSpec , callback ) as Promise < Models . SiteExtensionGetLocalExtensionsResponse > ; } param id param options returns getLocalExtension ( id , options ? ) ; param id param callback getLocalExtension ( id , callback ) ; param id param options param callback getLocalExtension ( id , options , callback ) ; getLocalExtension ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , getLocalExtensionOperationSpec , callback ) as Promise < Models . SiteExtensionGetLocalExtensionResponse > ; } param id param requestInfo param options returns installExtension ( id , requestInfo , options ? ) ; param id param requestInfo param callback installExtension ( id , requestInfo , callback ) ; param id param requestInfo param options param callback installExtension ( id , requestInfo , options , callback ) ; installExtension ( id , requestInfo , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , requestInfo , options } , installExtensionOperationSpec , callback ) as Promise < Models . SiteExtensionInstallExtensionResponse > ; } param id param options returns uninstallExtension ( id , options ? ) ; param id param callback uninstallExtension ( id , callback ) ; param id param options param callback uninstallExtension ( id , options , callback ) ; uninstallExtension ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , uninstallExtensionOperationSpec , callback ) as Promise < Models . SiteExtensionUninstallExtensionResponse > ; } } const serializer = new msRest . Serializer ( Mappers ) ; const getRemoteExtensionsOperationSpec = { httpMethod : "GET" , path : "api/extensionfeed" , queryParameters : [ Parameters . filter , Parameters . allowPrereleaseVersions , Parameters . feedUrl ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const getRemoteExtensionOperationSpec = { httpMethod : "GET" , path : "api/extensionfeed/{id}" , urlParameters : [ Parameters . id0 ] , queryParameters : [ Parameters . version , Parameters . feedUrl ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const getLocalExtensionsOperationSpec = { httpMethod : "GET" , path : "api/siteextensions" , queryParameters : [ Parameters . filter , Parameters . checkLatest ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const getLocalExtensionOperationSpec = { httpMethod : "GET" , path : "api/siteextensions/{id}" , urlParameters : [ Parameters . id0 ] , queryParameters : [ Parameters . checkLatest ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const installExtensionOperationSpec = { httpMethod : "PUT" , path : "api/siteextensions/{id}" , urlParameters : [ Parameters . id0 ] , requestBody : { parameterPath : "requestInfo" , mapper : { ... Mappers . SiteExtensionInfo , required : true } } , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const uninstallExtensionOperationSpec = { httpMethod : "DELETE" , path : "api/siteextensions/{id}" , urlParameters : [ Parameters . id0 ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ;