import * as msRest from "@azure/ms-rest-js" ; import * as Models from "../models" ; import * as Mappers from "../models/liveScmMappers" ; import * as Parameters from "../models/parameters" ; import { KuduClientContext } from "../kuduClientContext" ; /** Class representing a LiveScm. */ export class LiveScm { private readonly client : KuduClientContext ; param { KuduClientContext } client constructor ( client ) { this . client = client ; } param request param options returns getRepositoryInfo ( request , options ? ) ; param request param callback getRepositoryInfo ( request , callback ) ; param request param options param callback getRepositoryInfo ( request , options , callback ) ; getRepositoryInfo ( request , options ? , callback ? ) { return this . client . sendOperationRequest ( { request , options } , getRepositoryInfoOperationSpec , callback ) as Promise < Models . LiveScmGetRepositoryInfoResponse > ; } param request param options returns getRepositoryInfo1 ( request , options ? ) ; param request param callback getRepositoryInfo1 ( request , callback ) ; param request param options param callback getRepositoryInfo1 ( request , options , callback ) ; getRepositoryInfo1 ( request , options ? , callback ? ) { return this . client . sendOperationRequest ( { request , options } , getRepositoryInfo1OperationSpec , callback ) as Promise < Models . LiveScmGetRepositoryInfo1Response > ; } param options returns clean ( options ? ) ; param callback clean ( callback ) ; param options param callback clean ( options , callback ) ; clean ( options ? , callback ? ) { return this . client . sendOperationRequest ( { options } , cleanOperationSpec , callback ) ; } param options returns clean1 ( options ? ) ; param callback clean1 ( callback ) ; param options param callback clean1 ( options , callback ) ; clean1 ( options ? , callback ? ) { return this . client . sendOperationRequest ( { options } , clean1OperationSpec , callback ) ; } param options returns deleteMethod ( options ? ) ; param callback deleteMethod ( callback ) ; param options param callback deleteMethod ( options , callback ) ; deleteMethod ( options ? , callback ? ) { return this . client . sendOperationRequest ( { options } , deleteMethodOperationSpec , callback ) ; } param options returns delete1 ( options ? ) ; param callback delete1 ( callback ) ; param options param callback delete1 ( options , callback ) ; delete1 ( options ? , callback ? ) { return this . client . sendOperationRequest ( { options } , delete1OperationSpec , callback ) ; } } const serializer = new msRest . Serializer ( Mappers ) ; const getRepositoryInfoOperationSpec = { httpMethod : "GET" , path : "scm/info" , queryParameters : [ Parameters . request ] , responses : { 200 : { bodyMapper : Mappers . RepositoryInfo } , default : { } } , serializer } ; const getRepositoryInfo1OperationSpec = { httpMethod : "GET" , path : "api/scm/info" , queryParameters : [ Parameters . request ] , responses : { 200 : { bodyMapper : Mappers . RepositoryInfo } , default : { } } , serializer } ; const cleanOperationSpec = { httpMethod : "POST" , path : "scm/clean" , responses : { 204 : { } , default : { } } , serializer } ; const clean1OperationSpec = { httpMethod : "POST" , path : "api/scm/clean" , responses : { 204 : { } , default : { } } , serializer } ; const deleteMethodOperationSpec = { httpMethod : "DELETE" , path : "scm" , queryParameters : [ Parameters . deleteWebRoot , Parameters . ignoreErrors ] , responses : { 204 : { } , default : { } } , serializer } ; const delete1OperationSpec = { httpMethod : "DELETE" , path : "api/scm" , queryParameters : [ Parameters . deleteWebRoot , Parameters . ignoreErrors ] , responses : { 204 : { } , default : { } } , serializer } ;