import * as msRest from "@azure/ms-rest-js" ; import * as Models from "./models" ; const packageName = "vscode-azurekudu" ; const packageVersion = "0.2.0" ; export class KuduClientContext extends msRest . ServiceClient { credentials : msRest . ServiceClientCredentials ; param credentials param options constructor ( credentials , options ? ) { if ( credentials == undefined ) { throw new Error ( "'credentials' cannot be null." ) ; } if ( ! options ) { options = { } ; } if ( ! options . userAgent ) { const defaultUserAgent = msRest . getDefaultUserAgentValue ( ) ; options . userAgent = `${ packageName }/${ packageVersion } ${ defaultUserAgent }` ; } super ( credentials , options ) ; this . baseUri = options . baseUri || this . baseUri || "https://scm.azurewebsites.net" ; this . requestContentType = "application/json; charset=utf-8" ; this . credentials = credentials ; } }