UNPKG

@factset/sdk-portfolioreportingbatcher

Version:

Portfolio Reporting Batcher client library for JavaScript

76 lines (70 loc) 2.91 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); var _JobOverridesCombinationsRoot = _interopRequireDefault(require("./JobOverridesCombinationsRoot")); 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.0.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 JobOverrides model module. * @module model/JobOverrides */ class JobOverrides { /** * Constructs a new <code>JobOverrides</code>. * If this object is provided, the settings given here will override the default settings of the job for the job run (settings will only be used temporarily and no changes will be made to the default PRB job). Only certain objects can be used for certain job types. * @alias module:model/JobOverrides */ constructor() { JobOverrides.initialize(this); } /** * 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) {} /** * Constructs a <code>JobOverrides</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/JobOverrides} obj Optional instance to populate. * @return {module:model/JobOverrides} The populated <code>JobOverrides</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new JobOverrides(); if (data.hasOwnProperty('combinations')) { obj['combinations'] = _ApiClient.default.convertToType(data['combinations'], [_JobOverridesCombinationsRoot.default]); } if (data.hasOwnProperty('runAsSerialNumber')) { obj['runAsSerialNumber'] = _ApiClient.default.convertToType(data['runAsSerialNumber'], 'String'); } } return obj; } } /** * An array of date, account, and tasks combinations * @member {Array.<module:model/JobOverridesCombinationsRoot>} combinations */ JobOverrides.prototype['combinations'] = undefined; /** * The FactSet serial number which has the credentials wanted to run the job * @member {String} runAsSerialNumber */ JobOverrides.prototype['runAsSerialNumber'] = undefined; var _default = exports.default = JobOverrides;