UNPKG

@azure/quantum-jobs

Version:
59 lines 2.62 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 coreHttp from "@azure/core-http"; var packageName = "@azure/quantum-jobs"; var packageVersion = "1.0.0-beta.1"; var QuantumJobClientContext = /** @class */ (function (_super) { __extends(QuantumJobClientContext, _super); /** * Initializes a new instance of the QuantumJobClientContext class. * @param credentials Subscription credentials which uniquely identify client subscription. * @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g. * 00000000-0000-0000-0000-000000000000) * @param resourceGroupName Name of an Azure resource group. * @param workspaceName Name of the workspace. * @param options The parameter options */ function QuantumJobClientContext(credentials, subscriptionId, resourceGroupName, workspaceName, options) { var _this = this; if (credentials === undefined) { throw new Error("'credentials' cannot be null"); } if (subscriptionId === undefined) { throw new Error("'subscriptionId' cannot be null"); } if (resourceGroupName === undefined) { throw new Error("'resourceGroupName' cannot be null"); } if (workspaceName === undefined) { throw new Error("'workspaceName' cannot be null"); } // Initializing default values for options if (!options) { options = {}; } if (!options.userAgent) { var defaultUserAgent = coreHttp.getDefaultUserAgentValue(); options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent; } _this = _super.call(this, credentials, options) || this; _this.requestContentType = "application/json; charset=utf-8"; _this.baseUri = options.endpoint || "https://quantum.azure.com"; // Parameter assignments _this.subscriptionId = subscriptionId; _this.resourceGroupName = resourceGroupName; _this.workspaceName = workspaceName; // Assigning values to Constant parameters _this.$host = options.$host || "https://quantum.azure.com"; return _this; } return QuantumJobClientContext; }(coreHttp.ServiceClient)); export { QuantumJobClientContext }; //# sourceMappingURL=quantumJobClientContext.js.map