import * as coreClient from "@azure/core-client" ; import { PagingImpl } from "./operations" ; import { Paging } from "./operationsInterfaces" ; import { CustomUrlPagingClientOptionalParams } from "./models" ; export class CustomUrlPagingClient extends coreClient . ServiceClient { host : string ; param options constructor ( options ? ) { if ( ! options ) { options = { } ; } const defaults = { requestContentType : "application/json; charset=utf-8" } ; const packageDetails = `azsdk-js-custom-url-paging/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://{accountName}{host}" } ; super ( optionsWithDefaults ) ; this . host = options . host || "host" ; this . paging = new PagingImpl ( this ) ; } paging : Paging ; }