import * as msRest from "@azure/ms-rest-js" ; import * as Models from "../models" ; import * as Mappers from "../models/processMappers" ; import * as Parameters from "../models/parameters" ; import { KuduClientContext } from "../kuduClientContext" ; /** Class representing a Process. */ export class Process { private readonly client : KuduClientContext ; param { KuduClientContext } client constructor ( client ) { this . client = client ; } param options returns getAllProcesses ( options ? ) ; param callback getAllProcesses ( callback ) ; param options param callback getAllProcesses ( options , callback ) ; getAllProcesses ( options ? , callback ? ) { return this . client . sendOperationRequest ( { options } , getAllProcessesOperationSpec , callback ) as Promise < Models . ProcessGetAllProcessesResponse > ; } param options returns getAllProcesses1 ( options ? ) ; param callback getAllProcesses1 ( callback ) ; param options param callback getAllProcesses1 ( options , callback ) ; getAllProcesses1 ( options ? , callback ? ) { return this . client . sendOperationRequest ( { options } , getAllProcesses1OperationSpec , callback ) as Promise < Models . ProcessGetAllProcesses1Response > ; } param options returns getAllProcesses2 ( options ? ) ; param callback getAllProcesses2 ( callback ) ; param options param callback getAllProcesses2 ( options , callback ) ; getAllProcesses2 ( options ? , callback ? ) { return this . client . sendOperationRequest ( { options } , getAllProcesses2OperationSpec , callback ) as Promise < Models . ProcessGetAllProcesses2Response > ; } param id param options returns getProcess ( id , options ? ) ; param id param callback getProcess ( id , callback ) ; param id param options param callback getProcess ( id , options , callback ) ; getProcess ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , getProcessOperationSpec , callback ) as Promise < Models . ProcessGetProcessResponse > ; } param id param options returns killProcess ( id , options ? ) ; param id param callback killProcess ( id , callback ) ; param id param options param callback killProcess ( id , options , callback ) ; killProcess ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , killProcessOperationSpec , callback ) ; } param id param options returns getProcess1 ( id , options ? ) ; param id param callback getProcess1 ( id , callback ) ; param id param options param callback getProcess1 ( id , options , callback ) ; getProcess1 ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , getProcess1OperationSpec , callback ) as Promise < Models . ProcessGetProcess1Response > ; } param id param options returns killProcess1 ( id , options ? ) ; param id param callback killProcess1 ( id , callback ) ; param id param options param callback killProcess1 ( id , options , callback ) ; killProcess1 ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , killProcess1OperationSpec , callback ) ; } param id param options returns getProcess2 ( id , options ? ) ; param id param callback getProcess2 ( id , callback ) ; param id param options param callback getProcess2 ( id , options , callback ) ; getProcess2 ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , getProcess2OperationSpec , callback ) as Promise < Models . ProcessGetProcess2Response > ; } param id param options returns killProcess2 ( id , options ? ) ; param id param callback killProcess2 ( id , callback ) ; param id param options param callback killProcess2 ( id , options , callback ) ; killProcess2 ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , killProcess2OperationSpec , callback ) ; } param id param options returns miniDump ( id , options ? ) ; param id param callback miniDump ( id , callback ) ; param id param options param callback miniDump ( id , options , callback ) ; miniDump ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , miniDumpOperationSpec , callback ) as Promise < Models . ProcessMiniDumpResponse > ; } param id param options returns miniDump1 ( id , options ? ) ; param id param callback miniDump1 ( id , callback ) ; param id param options param callback miniDump1 ( id , options , callback ) ; miniDump1 ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , miniDump1OperationSpec , callback ) as Promise < Models . ProcessMiniDump1Response > ; } param id param options returns miniDump2 ( id , options ? ) ; param id param callback miniDump2 ( id , callback ) ; param id param options param callback miniDump2 ( id , options , callback ) ; miniDump2 ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , miniDump2OperationSpec , callback ) as Promise < Models . ProcessMiniDump2Response > ; } param id param options returns startProfileAsync ( id , options ? ) ; param id param callback startProfileAsync ( id , callback ) ; param id param options param callback startProfileAsync ( id , options , callback ) ; startProfileAsync ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , startProfileAsyncOperationSpec , callback ) as Promise < Models . ProcessStartProfileAsyncResponse > ; } param id param options returns startProfileAsync1 ( id , options ? ) ; param id param callback startProfileAsync1 ( id , callback ) ; param id param options param callback startProfileAsync1 ( id , options , callback ) ; startProfileAsync1 ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , startProfileAsync1OperationSpec , callback ) as Promise < Models . ProcessStartProfileAsync1Response > ; } param id param options returns startProfileAsync2 ( id , options ? ) ; param id param callback startProfileAsync2 ( id , callback ) ; param id param options param callback startProfileAsync2 ( id , options , callback ) ; startProfileAsync2 ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , startProfileAsync2OperationSpec , callback ) as Promise < Models . ProcessStartProfileAsync2Response > ; } param id param options returns stopProfileAsync ( id , options ? ) ; param id param callback stopProfileAsync ( id , callback ) ; param id param options param callback stopProfileAsync ( id , options , callback ) ; stopProfileAsync ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , stopProfileAsyncOperationSpec , callback ) as Promise < Models . ProcessStopProfileAsyncResponse > ; } param id param options returns stopProfileAsync1 ( id , options ? ) ; param id param callback stopProfileAsync1 ( id , callback ) ; param id param options param callback stopProfileAsync1 ( id , options , callback ) ; stopProfileAsync1 ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , stopProfileAsync1OperationSpec , callback ) as Promise < Models . ProcessStopProfileAsync1Response > ; } param id param options returns stopProfileAsync2 ( id , options ? ) ; param id param callback stopProfileAsync2 ( id , callback ) ; param id param options param callback stopProfileAsync2 ( id , options , callback ) ; stopProfileAsync2 ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , stopProfileAsync2OperationSpec , callback ) as Promise < Models . ProcessStopProfileAsync2Response > ; } param id param options returns getAllThreads ( id , options ? ) ; param id param callback getAllThreads ( id , callback ) ; param id param options param callback getAllThreads ( id , options , callback ) ; getAllThreads ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , getAllThreadsOperationSpec , callback ) as Promise < Models . ProcessGetAllThreadsResponse > ; } param id param options returns getAllThreads1 ( id , options ? ) ; param id param callback getAllThreads1 ( id , callback ) ; param id param options param callback getAllThreads1 ( id , options , callback ) ; getAllThreads1 ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , getAllThreads1OperationSpec , callback ) as Promise < Models . ProcessGetAllThreads1Response > ; } param id param options returns getAllThreads2 ( id , options ? ) ; param id param callback getAllThreads2 ( id , callback ) ; param id param options param callback getAllThreads2 ( id , options , callback ) ; getAllThreads2 ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , getAllThreads2OperationSpec , callback ) as Promise < Models . ProcessGetAllThreads2Response > ; } param processId param threadId param options returns getThread ( processId , threadId , options ? ) ; param processId param threadId param callback getThread ( processId , threadId , callback ) ; param processId param threadId param options param callback getThread ( processId , threadId , options , callback ) ; getThread ( processId , threadId , options ? , callback ? ) { return this . client . sendOperationRequest ( { processId , threadId , options } , getThreadOperationSpec , callback ) as Promise < Models . ProcessGetThreadResponse > ; } param processId param threadId param options returns getThread1 ( processId , threadId , options ? ) ; param processId param threadId param callback getThread1 ( processId , threadId , callback ) ; param processId param threadId param options param callback getThread1 ( processId , threadId , options , callback ) ; getThread1 ( processId , threadId , options ? , callback ? ) { return this . client . sendOperationRequest ( { processId , threadId , options } , getThread1OperationSpec , callback ) as Promise < Models . ProcessGetThread1Response > ; } param processId param threadId param options returns getThread2 ( processId , threadId , options ? ) ; param processId param threadId param callback getThread2 ( processId , threadId , callback ) ; param processId param threadId param options param callback getThread2 ( processId , threadId , options , callback ) ; getThread2 ( processId , threadId , options ? , callback ? ) { return this . client . sendOperationRequest ( { processId , threadId , options } , getThread2OperationSpec , callback ) as Promise < Models . ProcessGetThread2Response > ; } param id param options returns getAllModules ( id , options ? ) ; param id param callback getAllModules ( id , callback ) ; param id param options param callback getAllModules ( id , options , callback ) ; getAllModules ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , getAllModulesOperationSpec , callback ) as Promise < Models . ProcessGetAllModulesResponse > ; } param id param options returns getAllModules1 ( id , options ? ) ; param id param callback getAllModules1 ( id , callback ) ; param id param options param callback getAllModules1 ( id , options , callback ) ; getAllModules1 ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , getAllModules1OperationSpec , callback ) as Promise < Models . ProcessGetAllModules1Response > ; } param id param options returns getAllModules2 ( id , options ? ) ; param id param callback getAllModules2 ( id , callback ) ; param id param options param callback getAllModules2 ( id , options , callback ) ; getAllModules2 ( id , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , options } , getAllModules2OperationSpec , callback ) as Promise < Models . ProcessGetAllModules2Response > ; } param id param baseAddress param options returns getModule ( id , baseAddress , options ? ) ; param id param baseAddress param callback getModule ( id , baseAddress , callback ) ; param id param baseAddress param options param callback getModule ( id , baseAddress , options , callback ) ; getModule ( id , baseAddress , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , baseAddress , options } , getModuleOperationSpec , callback ) as Promise < Models . ProcessGetModuleResponse > ; } param id param baseAddress param options returns getModule1 ( id , baseAddress , options ? ) ; param id param baseAddress param callback getModule1 ( id , baseAddress , callback ) ; param id param baseAddress param options param callback getModule1 ( id , baseAddress , options , callback ) ; getModule1 ( id , baseAddress , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , baseAddress , options } , getModule1OperationSpec , callback ) as Promise < Models . ProcessGetModule1Response > ; } param id param baseAddress param options returns getModule2 ( id , baseAddress , options ? ) ; param id param baseAddress param callback getModule2 ( id , baseAddress , callback ) ; param id param baseAddress param options param callback getModule2 ( id , baseAddress , options , callback ) ; getModule2 ( id , baseAddress , options ? , callback ? ) { return this . client . sendOperationRequest ( { id , baseAddress , options } , getModule2OperationSpec , callback ) as Promise < Models . ProcessGetModule2Response > ; } } const serializer = new msRest . Serializer ( Mappers ) ; const getAllProcessesOperationSpec = { httpMethod : "GET" , path : "api/processes" , queryParameters : [ Parameters . allUsers ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const getAllProcesses1OperationSpec = { httpMethod : "GET" , path : "diagnostics/processes" , queryParameters : [ Parameters . allUsers ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const getAllProcesses2OperationSpec = { httpMethod : "GET" , path : "api/diagnostics/processes" , queryParameters : [ Parameters . allUsers ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const getProcessOperationSpec = { httpMethod : "GET" , path : "api/processes/{id}" , urlParameters : [ Parameters . id1 ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const killProcessOperationSpec = { httpMethod : "DELETE" , path : "api/processes/{id}" , urlParameters : [ Parameters . id1 ] , responses : { 204 : { } , default : { } } , serializer } ; const getProcess1OperationSpec = { httpMethod : "GET" , path : "diagnostics/processes/{id}" , urlParameters : [ Parameters . id1 ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const killProcess1OperationSpec = { httpMethod : "DELETE" , path : "diagnostics/processes/{id}" , urlParameters : [ Parameters . id1 ] , responses : { 204 : { } , default : { } } , serializer } ; const getProcess2OperationSpec = { httpMethod : "GET" , path : "api/diagnostics/processes/{id}" , urlParameters : [ Parameters . id1 ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const killProcess2OperationSpec = { httpMethod : "DELETE" , path : "api/diagnostics/processes/{id}" , urlParameters : [ Parameters . id1 ] , responses : { 204 : { } , default : { } } , serializer } ; const miniDumpOperationSpec = { httpMethod : "GET" , path : "api/processes/{id}/dump" , urlParameters : [ Parameters . id1 ] , queryParameters : [ Parameters . dumpType , Parameters . format ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const miniDump1OperationSpec = { httpMethod : "GET" , path : "diagnostics/processes/{id}/dump" , urlParameters : [ Parameters . id1 ] , queryParameters : [ Parameters . dumpType , Parameters . format ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const miniDump2OperationSpec = { httpMethod : "GET" , path : "api/diagnostics/processes/{id}/dump" , urlParameters : [ Parameters . id1 ] , queryParameters : [ Parameters . dumpType , Parameters . format ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const startProfileAsyncOperationSpec = { httpMethod : "POST" , path : "api/processes/{id}/profile/start" , urlParameters : [ Parameters . id1 ] , queryParameters : [ Parameters . iisProfiling ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const startProfileAsync1OperationSpec = { httpMethod : "POST" , path : "diagnostics/processes/{id}/profile/start" , urlParameters : [ Parameters . id1 ] , queryParameters : [ Parameters . iisProfiling ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const startProfileAsync2OperationSpec = { httpMethod : "POST" , path : "api/diagnostics/processes/{id}/profile/start" , urlParameters : [ Parameters . id1 ] , queryParameters : [ Parameters . iisProfiling ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const stopProfileAsyncOperationSpec = { httpMethod : "GET" , path : "api/processes/{id}/profile/stop" , urlParameters : [ Parameters . id1 ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const stopProfileAsync1OperationSpec = { httpMethod : "GET" , path : "diagnostics/processes/{id}/profile/stop" , urlParameters : [ Parameters . id1 ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const stopProfileAsync2OperationSpec = { httpMethod : "GET" , path : "api/diagnostics/processes/{id}/profile/stop" , urlParameters : [ Parameters . id1 ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const getAllThreadsOperationSpec = { httpMethod : "GET" , path : "api/processes/{id}/threads" , urlParameters : [ Parameters . id1 ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const getAllThreads1OperationSpec = { httpMethod : "GET" , path : "diagnostics/processes/{id}/threads" , urlParameters : [ Parameters . id1 ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const getAllThreads2OperationSpec = { httpMethod : "GET" , path : "api/diagnostics/processes/{id}/threads" , urlParameters : [ Parameters . id1 ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const getThreadOperationSpec = { httpMethod : "GET" , path : "api/processes/{processId}/threads/{threadId}" , urlParameters : [ Parameters . processId , Parameters . threadId ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const getThread1OperationSpec = { httpMethod : "GET" , path : "diagnostics/processes/{processId}/threads/{threadId}" , urlParameters : [ Parameters . processId , Parameters . threadId ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const getThread2OperationSpec = { httpMethod : "GET" , path : "api/diagnostics/processes/{processId}/threads/{threadId}" , urlParameters : [ Parameters . processId , Parameters . threadId ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const getAllModulesOperationSpec = { httpMethod : "GET" , path : "api/processes/{id}/modules" , urlParameters : [ Parameters . id1 ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const getAllModules1OperationSpec = { httpMethod : "GET" , path : "diagnostics/processes/{id}/modules" , urlParameters : [ Parameters . id1 ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const getAllModules2OperationSpec = { httpMethod : "GET" , path : "api/diagnostics/processes/{id}/modules" , urlParameters : [ Parameters . id1 ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const getModuleOperationSpec = { httpMethod : "GET" , path : "api/processes/{id}/modules/{baseAddress}" , urlParameters : [ Parameters . id1 , Parameters . baseAddress ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const getModule1OperationSpec = { httpMethod : "GET" , path : "diagnostics/processes/{id}/modules/{baseAddress}" , urlParameters : [ Parameters . id1 , Parameters . baseAddress ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const getModule2OperationSpec = { httpMethod : "GET" , path : "api/diagnostics/processes/{id}/modules/{baseAddress}" , urlParameters : [ Parameters . id1 , Parameters . baseAddress ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ;