UNPKG

@azure/cognitiveservices-customvision-training

Version:
46 lines 1.87 kB
/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ import { __extends } from "tslib"; import * as msRest from "@azure/ms-rest-js"; var packageName = "@azure/cognitiveservices-customvision-training"; var packageVersion = "5.2.0"; var TrainingAPIClientContext = /** @class */ (function (_super) { __extends(TrainingAPIClientContext, _super); /** * Initializes a new instance of the TrainingAPIClientContext class. * @param endpoint Supported Cognitive Services endpoints. * @param credentials Subscription credentials which uniquely identify client subscription. * @param [options] The parameter options */ function TrainingAPIClientContext(credentials, endpoint, options) { var _this = this; if (endpoint == undefined) { throw new Error("'endpoint' cannot be null."); } if (credentials == undefined) { throw new Error("'credentials' cannot be null."); } if (!options) { options = {}; } if (!options.userAgent) { var defaultUserAgent = msRest.getDefaultUserAgentValue(); options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent; } _this = _super.call(this, credentials, options) || this; _this.baseUri = "{Endpoint}/customvision/v3.4-preview/training"; _this.requestContentType = "application/json; charset=utf-8"; _this.endpoint = endpoint; _this.credentials = credentials; return _this; } return TrainingAPIClientContext; }(msRest.ServiceClient)); export { TrainingAPIClientContext }; //# sourceMappingURL=trainingAPIClientContext.js.map