import * as msRest from "@azure/ms-rest-js" ; import * as Models from "../models" ; import * as Mappers from "../models/commandMappers" ; import { KuduClientContext } from "../kuduClientContext" ; /** Class representing a Command. */ export class Command { private readonly client : KuduClientContext ; param { KuduClientContext } client constructor ( client ) { this . client = client ; } param input param options returns executeCommand ( input , options ? ) ; param input param callback executeCommand ( input , callback ) ; param input param options param callback executeCommand ( input , options , callback ) ; executeCommand ( input , options ? , callback ? ) { return this . client . sendOperationRequest ( { input , options } , executeCommandOperationSpec , callback ) as Promise < Models . CommandExecuteCommandResponse > ; } param input param options returns executeCommand1 ( input , options ? ) ; param input param callback executeCommand1 ( input , callback ) ; param input param options param callback executeCommand1 ( input , options , callback ) ; executeCommand1 ( input , options ? , callback ? ) { return this . client . sendOperationRequest ( { input , options } , executeCommand1OperationSpec , callback ) as Promise < Models . CommandExecuteCommand1Response > ; } } const serializer = new msRest . Serializer ( Mappers ) ; const executeCommandOperationSpec = { httpMethod : "POST" , path : "command" , requestBody : { parameterPath : "input" , mapper : { ... Mappers . CommandInput , required : true } } , responses : { 200 : { bodyMapper : Mappers . CommandResult } , default : { } } , serializer } ; const executeCommand1OperationSpec = { httpMethod : "POST" , path : "api/command" , requestBody : { parameterPath : "input" , mapper : { ... Mappers . CommandInput , required : true } } , responses : { 200 : { bodyMapper : Mappers . CommandResult } , default : { } } , serializer } ;