import * as msRest from "@azure/ms-rest-js" ; import * as Models from "../models" ; import * as Mappers from "../models/diagnosticsMappers" ; import * as Parameters from "../models/parameters" ; import { KuduClientContext } from "../kuduClientContext" ; /** Class representing a Diagnostics. */ export class Diagnostics { private readonly client : KuduClientContext ; param { KuduClientContext } client constructor ( client ) { this . client = client ; } param options returns getLog ( options ? ) ; param callback getLog ( callback ) ; param options param callback getLog ( options , callback ) ; getLog ( options ? , callback ? ) { return this . client . sendOperationRequest ( { options } , getLogOperationSpec , callback ) as Promise < Models . DiagnosticsGetLogResponse > ; } param options returns getLog1 ( options ? ) ; param callback getLog1 ( callback ) ; param options param callback getLog1 ( options , callback ) ; getLog1 ( options ? , callback ? ) { return this . client . sendOperationRequest ( { options } , getLog1OperationSpec , callback ) as Promise < Models . DiagnosticsGetLog1Response > ; } param options returns getAll ( options ? ) ; param callback getAll ( callback ) ; param options param callback getAll ( options , callback ) ; getAll ( options ? , callback ? ) { return this . client . sendOperationRequest ( { options } , getAllOperationSpec , callback ) as Promise < Models . DiagnosticsGetAllResponse > ; } param newSettings param options returns set ( newSettings , options ? ) ; param newSettings param callback set ( newSettings , callback ) ; param newSettings param options param callback set ( newSettings , options , callback ) ; set ( newSettings , options ? , callback ? ) { return this . client . sendOperationRequest ( { newSettings , options } , setOperationSpec , callback ) as Promise < Models . DiagnosticsSetResponse > ; } param options returns getAll1 ( options ? ) ; param callback getAll1 ( callback ) ; param options param callback getAll1 ( options , callback ) ; getAll1 ( options ? , callback ? ) { return this . client . sendOperationRequest ( { options } , getAll1OperationSpec , callback ) as Promise < Models . DiagnosticsGetAll1Response > ; } param newSettings param options returns set1 ( newSettings , options ? ) ; param newSettings param callback set1 ( newSettings , callback ) ; param newSettings param options param callback set1 ( newSettings , options , callback ) ; set1 ( newSettings , options ? , callback ? ) { return this . client . sendOperationRequest ( { newSettings , options } , set1OperationSpec , callback ) as Promise < Models . DiagnosticsSet1Response > ; } param key param options returns get ( key , options ? ) ; param key param callback get ( key , callback ) ; param key param options param callback get ( key , options , callback ) ; get ( key , options ? , callback ? ) { return this . client . sendOperationRequest ( { key , options } , getOperationSpec , callback ) as Promise < Models . DiagnosticsGetResponse > ; } param key param options returns deleteMethod ( key , options ? ) ; param key param callback deleteMethod ( key , callback ) ; param key param options param callback deleteMethod ( key , options , callback ) ; deleteMethod ( key , options ? , callback ? ) { return this . client . sendOperationRequest ( { key , options } , deleteMethodOperationSpec , callback ) as Promise < Models . DiagnosticsDeleteMethodResponse > ; } param key param options returns get1 ( key , options ? ) ; param key param callback get1 ( key , callback ) ; param key param options param callback get1 ( key , options , callback ) ; get1 ( key , options ? , callback ? ) { return this . client . sendOperationRequest ( { key , options } , get1OperationSpec , callback ) as Promise < Models . DiagnosticsGet1Response > ; } param key param options returns delete1 ( key , options ? ) ; param key param callback delete1 ( key , callback ) ; param key param options param callback delete1 ( key , options , callback ) ; delete1 ( key , options ? , callback ? ) { return this . client . sendOperationRequest ( { key , options } , delete1OperationSpec , callback ) as Promise < Models . DiagnosticsDelete1Response > ; } param options returns getRecentLogs ( options ? ) ; param callback getRecentLogs ( callback ) ; param options param callback getRecentLogs ( options , callback ) ; getRecentLogs ( options ? , callback ? ) { return this . client . sendOperationRequest ( { options } , getRecentLogsOperationSpec , callback ) as Promise < Models . DiagnosticsGetRecentLogsResponse > ; } } const serializer = new msRest . Serializer ( Mappers ) ; const getLogOperationSpec = { httpMethod : "GET" , path : "dump" , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const getLog1OperationSpec = { httpMethod : "GET" , path : "api/dump" , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const getAllOperationSpec = { httpMethod : "GET" , path : "diagnostics/settings" , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const setOperationSpec = { httpMethod : "POST" , path : "diagnostics/settings" , requestBody : { parameterPath : "newSettings" , mapper : { ... Mappers . DiagnosticsSettings , required : true } } , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const getAll1OperationSpec = { httpMethod : "GET" , path : "api/diagnostics/settings" , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const set1OperationSpec = { httpMethod : "POST" , path : "api/diagnostics/settings" , requestBody : { parameterPath : "newSettings" , mapper : { ... Mappers . DiagnosticsSettings , required : true } } , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const getOperationSpec = { httpMethod : "GET" , path : "diagnostics/settings/{key}" , urlParameters : [ Parameters . key ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const deleteMethodOperationSpec = { httpMethod : "DELETE" , path : "diagnostics/settings/{key}" , urlParameters : [ Parameters . key ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const get1OperationSpec = { httpMethod : "GET" , path : "api/diagnostics/settings/{key}" , urlParameters : [ Parameters . key ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const delete1OperationSpec = { httpMethod : "DELETE" , path : "api/diagnostics/settings/{key}" , urlParameters : [ Parameters . key ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const getRecentLogsOperationSpec = { httpMethod : "GET" , path : "api/logs/recent" , queryParameters : [ Parameters . top ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ;