import * as msRest from "@azure/ms-rest-js" ; import * as Models from "../models" ; import * as Mappers from "../models/pushDeploymentMappers" ; import * as Parameters from "../models/parameters" ; import { KuduClientContext } from "../kuduClientContext" ; /** Class representing a PushDeployment. */ export class PushDeployment { private readonly client : KuduClientContext ; param { KuduClientContext } client constructor ( client ) { this . client = client ; } param file param options returns zipPushDeploy ( file , options ? ) ; param file param callback zipPushDeploy ( file , callback ) ; param file param options param callback zipPushDeploy ( file , options , callback ) ; zipPushDeploy ( file , options ? , callback ? ) { return this . client . sendOperationRequest ( { file , options } , zipPushDeployOperationSpec , callback ) ; } param file param options returns warPushDeploy ( file , options ? ) ; param file param callback warPushDeploy ( file , callback ) ; param file param options param callback warPushDeploy ( file , options , callback ) ; warPushDeploy ( file , options ? , callback ? ) { return this . client . sendOperationRequest ( { file , options } , warPushDeployOperationSpec , callback ) ; } } const serializer = new msRest . Serializer ( Mappers ) ; const zipPushDeployOperationSpec = { httpMethod : "POST" , path : "api/zipdeploy" , queryParameters : [ Parameters . isAsync , Parameters . author , Parameters . authorEmail , Parameters . deployer , Parameters . message ] , requestBody : { parameterPath : "file" , mapper : { required : true , serializedName : "file" , type : { name : "Stream" } } } , contentType : "application/octet-stream" , responses : { 200 : { } , 202 : { } , default : { } } , serializer } ; const warPushDeployOperationSpec = { httpMethod : "POST" , path : "api/wardeploy" , queryParameters : [ Parameters . isAsync , Parameters . author , Parameters . authorEmail , Parameters . deployer , Parameters . message ] , requestBody : { parameterPath : "file" , mapper : { required : true , serializedName : "file" , type : { name : "Stream" } } } , contentType : "application/octet-stream" , responses : { 200 : { } , 202 : { } , default : { } } , serializer } ;