UNPKG

@factset/sdk-portfolioreportingbatcher

Version:

Portfolio Reporting Batcher client library for JavaScript

89 lines (82 loc) 2.87 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); var _JobOverrides = _interopRequireDefault(require("./JobOverrides")); var _JobTypes = _interopRequireDefault(require("./JobTypes")); function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } /** * Portfolio Reporting Batcher * The Portfolio Reporting Batcher (PRB) API allows clients to systematically leverage functionalities of the PRB application. * * The version of the OpenAPI document: 1.2.0 * Contact: api@factset.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. * */ /** * The StartJob model module. * @module model/StartJob */ class StartJob { /** * Constructs a new <code>StartJob</code>. * Details required to start a job * @alias module:model/StartJob * @param jobName {String} The name of the PRB job * @param jobType {module:model/JobTypes} */ constructor(jobName, jobType) { StartJob.initialize(this, jobName, jobType); } /** * Initializes the fields of this object. * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ static initialize(obj, jobName, jobType) { obj['jobName'] = jobName; obj['jobType'] = jobType; } /** * Constructs a <code>StartJob</code> from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. * @param {module:model/StartJob} obj Optional instance to populate. * @return {module:model/StartJob} The populated <code>StartJob</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new StartJob(); if (data.hasOwnProperty('jobName')) { obj['jobName'] = _ApiClient.default.convertToType(data['jobName'], 'String'); } if (data.hasOwnProperty('overrides')) { obj['overrides'] = _JobOverrides.default.constructFromObject(data['overrides']); } if (data.hasOwnProperty('jobType')) { obj['jobType'] = _JobTypes.default.constructFromObject(data['jobType']); } } return obj; } } /** * The name of the PRB job * @member {String} jobName */ StartJob.prototype['jobName'] = undefined; /** * @member {module:model/JobOverrides} overrides */ StartJob.prototype['overrides'] = undefined; /** * @member {module:model/JobTypes} jobType */ StartJob.prototype['jobType'] = undefined; var _default = exports.default = StartJob;