import * as coreClient from "@azure/core-client" ; import { PolicyImpl } from "./operations" ; import { Policy } from "./operationsInterfaces" ; import { GeneratedClientOptionalParams } from "./models" ; internal export class GeneratedClient extends coreClient . ServiceClient { instanceUrl : string ; apiVersion : string ; param instanceUrl param options constructor ( instanceUrl , options ? ) { if ( instanceUrl === undefined ) { throw new Error ( "'instanceUrl' cannot be null" ) ; } if ( ! options ) { options = { } ; } const defaults = { requestContentType : "application/json; charset=utf-8" } ; const packageDetails = `azsdk-js-attestation/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 || "{instanceUrl}" } ; super ( optionsWithDefaults ) ; this . instanceUrl = instanceUrl ; this . apiVersion = options . apiVersion || "2020-10-01" ; this . policy = new PolicyImpl ( this ) ; } policy : Policy ; }