import * as coreClient from "@azure/core-client" ; import { StringOperationsImpl , EnumImpl } from "./operations" ; import { StringOperations , Enum } from "./operationsInterfaces" ; import { BodyStringClientOptionalParams } from "./models" ; export class BodyStringClient extends coreClient . ServiceClient { $host : string ; param options constructor ( options ? ) { if ( ! options ) { options = { } ; } const defaults = { requestContentType : "application/json; charset=utf-8" } ; const packageDetails = `azsdk-js-body-string/1.0.0-preview1` ; const userAgentPrefix = options . userAgentOptions && options . userAgentOptions . userAgentPrefix ? `${ options . userAgentOptions . userAgentPrefix } ${ packageDetails }` : `${ packageDetails }` ; const optionsWithDefaults = { ... defaults , ... options , userAgentOptions : { userAgentPrefix } , baseUri : options . endpoint || "http://localhost:3000" } ; super ( optionsWithDefaults ) ; this . $host = options . $host || "http://localhost:3000" ; this . string = new StringOperationsImpl ( this ) ; this . enum = new EnumImpl ( this ) ; } string : StringOperations ; enum : Enum ; }