
Replace the Vue v2 webapp with a Vue v3 one, and embed the OpenAPI client in the webapp itself (instead of being its own npm project). - Vue v2.x -> v3.x - Tabulator v4.x -> v5.1 - Moment JS -> replaced with Luxon JS - Vue CLI/UI -> replaced with Vite
108 lines
2.8 KiB
JavaScript
108 lines
2.8 KiB
JavaScript
/**
|
|
* 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 <code>JobAllOf</code>.
|
|
* @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 <code>JobAllOf</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/JobAllOf} obj Optional instance to populate.
|
|
* @return {module:model/JobAllOf} The populated <code>JobAllOf</code> 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;
|
|
|