import * as msRest from "@azure/ms-rest-js" ; import * as Models from "../models" ; import * as Mappers from "../models/environmentMappers" ; import { KuduClientContext } from "../kuduClientContext" ; /** Class representing a Environment. */ export class Environment { private readonly client : KuduClientContext ; param { KuduClientContext } client constructor ( client ) { this . client = client ; } param options returns get ( options ? ) ; param callback get ( callback ) ; param options param callback get ( options , callback ) ; get ( options ? , callback ? ) { return this . client . sendOperationRequest ( { options } , getOperationSpec , callback ) as Promise < Models . EnvironmentGetResponse > ; } param options returns get1 ( options ? ) ; param callback get1 ( callback ) ; param options param callback get1 ( options , callback ) ; get1 ( options ? , callback ? ) { return this . client . sendOperationRequest ( { options } , get1OperationSpec , callback ) as Promise < Models . EnvironmentGet1Response > ; } } const serializer = new msRest . Serializer ( Mappers ) ; const getOperationSpec = { httpMethod : "GET" , path : "environment" , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const get1OperationSpec = { httpMethod : "GET" , path : "api/environment" , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ;