flamenco/web/app/src/manager-api/model/WorkerStateChanged.js
Sybren A. Stüvel 555c935790 Web: Replace Vue 2 with Vue 3 webapp
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
2022-04-12 12:34:49 +02:00

75 lines
2.0 KiB
JavaScript
Generated

/**
* 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 WorkerStatus from './WorkerStatus';
/**
* The WorkerStateChanged model module.
* @module model/WorkerStateChanged
* @version 0.0.0
*/
class WorkerStateChanged {
/**
* Constructs a new <code>WorkerStateChanged</code>.
* @alias module:model/WorkerStateChanged
* @param status {module:model/WorkerStatus}
*/
constructor(status) {
WorkerStateChanged.initialize(this, 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, status) {
obj['status'] = status;
}
/**
* Constructs a <code>WorkerStateChanged</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/WorkerStateChanged} obj Optional instance to populate.
* @return {module:model/WorkerStateChanged} The populated <code>WorkerStateChanged</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new WorkerStateChanged();
if (data.hasOwnProperty('status')) {
obj['status'] = WorkerStatus.constructFromObject(data['status']);
}
}
return obj;
}
}
/**
* @member {module:model/WorkerStatus} status
*/
WorkerStateChanged.prototype['status'] = undefined;
export default WorkerStateChanged;