import * as msRest from "@azure/ms-rest-js" ; import * as Models from "../models" ; import * as Mappers from "../models/deploymentMappers" ; import * as Parameters from "../models/parameters" ; import { KuduClientContext } from "../kuduClientContext" ; /** Class representing a Deployment. */ export class Deployment { private readonly client : KuduClientContext ; param { KuduClientContext } client constructor ( client ) { this . client = client ; } param options returns getDeployResults ( options ? ) ; param callback getDeployResults ( callback ) ; param options param callback getDeployResults ( options , callback ) ; getDeployResults ( options ? , callback ? ) { return this . client . sendOperationRequest ( { options } , getDeployResultsOperationSpec , callback ) as Promise < Models . DeploymentGetDeployResultsResponse > ; } param options returns getDeployResults1 ( options ? ) ; param callback getDeployResults1 ( callback ) ; param options param callback getDeployResults1 ( options , callback ) ; getDeployResults1 ( options ? , callback ? ) { return this . client . sendOperationRequest ( { options } , getDeployResults1OperationSpec , callback ) as Promise < Models . DeploymentGetDeployResults1Response > ; } param id param options returns getResult ( id , options ? ) ; param id param callback getResult ( id , callback ) ; param id param options param callback getResult ( id , options , callback ) ; getResult ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , getResultOperationSpec , callback ) as Promise < Models . DeploymentGetResultResponse > ; } param id param options returns deploy ( id , options ? ) ; param id param callback deploy ( id , callback ) ; param id param options param callback deploy ( id , options , callback ) ; deploy ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , deployOperationSpec , callback ) as Promise < Models . DeploymentDeployResponse > ; } param id param options returns deleteMethod ( id , options ? ) ; param id param callback deleteMethod ( id , callback ) ; param id param options param callback deleteMethod ( id , options , callback ) ; deleteMethod ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , deleteMethodOperationSpec , callback ) ; } param id param options returns getResult1 ( id , options ? ) ; param id param callback getResult1 ( id , callback ) ; param id param options param callback getResult1 ( id , options , callback ) ; getResult1 ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , getResult1OperationSpec , callback ) as Promise < Models . DeploymentGetResult1Response > ; } param id param options returns deploy1 ( id , options ? ) ; param id param callback deploy1 ( id , callback ) ; param id param options param callback deploy1 ( id , options , callback ) ; deploy1 ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , deploy1OperationSpec , callback ) as Promise < Models . DeploymentDeploy1Response > ; } param id param options returns delete1 ( id , options ? ) ; param id param callback delete1 ( id , callback ) ; param id param options param callback delete1 ( id , options , callback ) ; delete1 ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , delete1OperationSpec , callback ) ; } param id param options returns getLogEntry ( id , options ? ) ; param id param callback getLogEntry ( id , callback ) ; param id param options param callback getLogEntry ( id , options , callback ) ; getLogEntry ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , getLogEntryOperationSpec , callback ) as Promise < Models . DeploymentGetLogEntryResponse > ; } param id param options returns getLogEntry1 ( id , options ? ) ; param id param callback getLogEntry1 ( id , callback ) ; param id param options param callback getLogEntry1 ( id , options , callback ) ; getLogEntry1 ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , getLogEntry1OperationSpec , callback ) as Promise < Models . DeploymentGetLogEntry1Response > ; } param id param logId param options returns getLogEntryDetails ( id , logId , options ? ) ; param id param logId param callback getLogEntryDetails ( id , logId , callback ) ; param id param logId param options param callback getLogEntryDetails ( id , logId , options , callback ) ; getLogEntryDetails ( id , logId , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , logId , options } , getLogEntryDetailsOperationSpec , callback ) as Promise < Models . DeploymentGetLogEntryDetailsResponse > ; } param id param logId param options returns getLogEntryDetails1 ( id , logId , options ? ) ; param id param logId param callback getLogEntryDetails1 ( id , logId , callback ) ; param id param logId param options param callback getLogEntryDetails1 ( id , logId , options , callback ) ; getLogEntryDetails1 ( id , logId , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , logId , options } , getLogEntryDetails1OperationSpec , callback ) as Promise < Models . DeploymentGetLogEntryDetails1Response > ; } param options returns getDeploymentScript ( options ? ) ; param callback getDeploymentScript ( callback ) ; param options param callback getDeploymentScript ( options , callback ) ; getDeploymentScript ( options ? , callback ? ) { return this . client . sendOperationRequest ( { options } , getDeploymentScriptOperationSpec , callback ) as Promise < Models . DeploymentGetDeploymentScriptResponse > ; } } const serializer = new msRest . Serializer ( Mappers ) ; const getDeployResultsOperationSpec = { httpMethod : "GET" , path : "deployments" , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Sequence" , element : { type : { name : "Composite" , className : "DeployResult" } } } } } , default : { } } , serializer } ; const getDeployResults1OperationSpec = { httpMethod : "GET" , path : "api/deployments" , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Sequence" , element : { type : { name : "Composite" , className : "DeployResult" } } } } } , default : { } } , serializer } ; const getResultOperationSpec = { httpMethod : "GET" , path : "deployments/{id}" , urlParameters : [ Parameters . id0 ] , responses : { 200 : { bodyMapper : Mappers . DeployResult } , 202 : { bodyMapper : Mappers . DeployResult } , default : { } } , serializer } ; const deployOperationSpec = { httpMethod : "PUT" , path : "deployments/{id}" , urlParameters : [ Parameters . id0 ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const deleteMethodOperationSpec = { httpMethod : "DELETE" , path : "deployments/{id}" , urlParameters : [ Parameters . id0 ] , responses : { 204 : { } , default : { } } , serializer } ; const getResult1OperationSpec = { httpMethod : "GET" , path : "api/deployments/{id}" , urlParameters : [ Parameters . id0 ] , responses : { 200 : { bodyMapper : Mappers . DeployResult } , 202 : { bodyMapper : Mappers . DeployResult } , default : { } } , serializer } ; const deploy1OperationSpec = { httpMethod : "PUT" , path : "api/deployments/{id}" , urlParameters : [ Parameters . id0 ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const delete1OperationSpec = { httpMethod : "DELETE" , path : "api/deployments/{id}" , urlParameters : [ Parameters . id0 ] , responses : { 204 : { } , default : { } } , serializer } ; const getLogEntryOperationSpec = { httpMethod : "GET" , path : "deployments/{id}/log" , urlParameters : [ Parameters . id0 ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Sequence" , element : { type : { name : "Composite" , className : "LogEntry" } } } } } , default : { } } , serializer } ; const getLogEntry1OperationSpec = { httpMethod : "GET" , path : "api/deployments/{id}/log" , urlParameters : [ Parameters . id0 ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Sequence" , element : { type : { name : "Composite" , className : "LogEntry" } } } } } , default : { } } , serializer } ; const getLogEntryDetailsOperationSpec = { httpMethod : "GET" , path : "deployments/{id}/log/{logId}" , urlParameters : [ Parameters . id0 , Parameters . logId ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Sequence" , element : { type : { name : "Composite" , className : "LogEntry" } } } } } , default : { } } , serializer } ; const getLogEntryDetails1OperationSpec = { httpMethod : "GET" , path : "api/deployments/{id}/log/{logId}" , urlParameters : [ Parameters . id0 , Parameters . logId ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Sequence" , element : { type : { name : "Composite" , className : "LogEntry" } } } } } , default : { } } , serializer } ; const getDeploymentScriptOperationSpec = { httpMethod : "GET" , path : "api/deploymentscript" , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ;