/** * Flamenco manager * Render Farm manager API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. * */ import ApiClient from '../ApiClient'; import JobStatus from './JobStatus'; /** * The JobAllOf model module. * @module model/JobAllOf * @version 0.0.0 */ class JobAllOf { /** * Constructs a new JobAllOf. * @alias module:model/JobAllOf * @param id {String} UUID of the Job * @param created {Date} Creation timestamp * @param updated {Date} Creation timestamp * @param status {module:model/JobStatus} */ constructor(id, created, updated, status) { JobAllOf.initialize(this, id, created, updated, status); } /** * 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, id, created, updated, status) { obj['id'] = id; obj['created'] = created; obj['updated'] = updated; obj['status'] = status; } /** * Constructs a JobAllOf from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. * @param {module:model/JobAllOf} obj Optional instance to populate. * @return {module:model/JobAllOf} The populated JobAllOf instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new JobAllOf(); if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'String'); } if (data.hasOwnProperty('created')) { obj['created'] = ApiClient.convertToType(data['created'], 'Date'); } if (data.hasOwnProperty('updated')) { obj['updated'] = ApiClient.convertToType(data['updated'], 'Date'); } if (data.hasOwnProperty('status')) { obj['status'] = JobStatus.constructFromObject(data['status']); } } return obj; } } /** * UUID of the Job * @member {String} id */ JobAllOf.prototype['id'] = undefined; /** * Creation timestamp * @member {Date} created */ JobAllOf.prototype['created'] = undefined; /** * Creation timestamp * @member {Date} updated */ JobAllOf.prototype['updated'] = undefined; /** * @member {module:model/JobStatus} status */ JobAllOf.prototype['status'] = undefined; export default JobAllOf;