/* * 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 = "@azure/connectors-teradata"; const packageVersion = "0.0.1-alpha"; export class TeradataConnectorContext extends msRest.ServiceClient { private connectionId: string; private credentials: msRest.ServiceClientCredentials; /** * Initializes a new instance of the TeradataConnectorContext class. * @param connectionId Unique identifier of the connection instance * @param credentials Subscription credentials which uniquely identify client subscription. * @param [options] The parameter options */ constructor(credentials: msRest.ServiceClientCredentials, connectionId: string, options?: Models.TeradataConnectorOptions) { if (connectionId == undefined) { throw new Error("'connectionId' cannot be null."); } 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://logic-apis-westcentralus.azure-apim.net/apim/teradata"; this.requestContentType = "application/json; charset=utf-8"; this.connectionId = connectionId; this.credentials = credentials; } }