import * as msRest from "@azure/ms-rest-js" ; import * as Models from "../models" ; import * as Mappers from "../models/runtimeMappers" ; import * as Parameters from "../models/parameters" ; import { KuduClientContext } from "../kuduClientContext" ; /** Class representing a Runtime. */ export class Runtime { private readonly client : KuduClientContext ; param { KuduClientContext } client constructor ( client ) { this . client = client ; } param options returns getRuntimeVersions ( options ? ) ; param callback getRuntimeVersions ( callback ) ; param options param callback getRuntimeVersions ( options , callback ) ; getRuntimeVersions ( options ? , callback ? ) { return this . client . sendOperationRequest ( { options } , getRuntimeVersionsOperationSpec , callback ) as Promise < Models . RuntimeGetRuntimeVersionsResponse > ; } param options returns getRuntimeVersions1 ( options ? ) ; param callback getRuntimeVersions1 ( callback ) ; param options param callback getRuntimeVersions1 ( options , callback ) ; getRuntimeVersions1 ( options ? , callback ? ) { return this . client . sendOperationRequest ( { options } , getRuntimeVersions1OperationSpec , callback ) as Promise < Models . RuntimeGetRuntimeVersions1Response > ; } } const serializer = new msRest . Serializer ( Mappers ) ; const getRuntimeVersionsOperationSpec = { httpMethod : "GET" , path : "diagnostics/runtime" , queryParameters : [ Parameters . allVersions ] , responses : { 200 : { bodyMapper : Mappers . RuntimeInfo } , default : { } } , serializer } ; const getRuntimeVersions1OperationSpec = { httpMethod : "GET" , path : "api/diagnostics/runtime" , queryParameters : [ Parameters . allVersions ] , responses : { 200 : { bodyMapper : Mappers . RuntimeInfo } , default : { } } , serializer } ;