/* * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ import * as msRest from "@azure/ms-rest-js"; import * as Models from "./models"; const packageName = "@naveego/client-metabase"; const packageVersion = "1.0.0-beta.1"; export class MetabaseApiContext extends msRest.ServiceClient { credentials: msRest.ServiceClientCredentials; /** * Initializes a new instance of the MetabaseApiContext class. * @param credentials Subscription credentials which uniquely identify client subscription. * @param [options] The parameter options */ constructor(credentials: msRest.ServiceClientCredentials, options?: Models.MetabaseApiOptions) { if (credentials === null || 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 || "http://metabase.n5o.red"; this.requestContentType = "application/json; charset=utf-8"; this.credentials = credentials; } }