import * as coreClient from "@azure/core-client" ; import { BarApiImpl , FooApiImpl } from "./operations" ; import { BarApi , FooApi } from "./operationsInterfaces" ; import { MediaTypesV3ClientOptionalParams } from "./models" ; export class MediaTypesV3Client extends coreClient . ServiceClient { $host : string ; param $host param options constructor ( $host , options ? ) { if ( $host === undefined ) { throw new Error ( "'$host' cannot be null" ) ; } if ( ! options ) { options = { } ; } const defaults = { requestContentType : "application/json; charset=utf-8" } ; const packageDetails = `azsdk-js-media-types-v3-client/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 || "{$host}" } ; super ( optionsWithDefaults ) ; this . $host = $host ; this . barApi = new BarApiImpl ( this ) ; this . fooApi = new FooApiImpl ( this ) ; } barApi : BarApi ; fooApi : FooApi ; }