92 lines
2.5 KiB
JavaScript
Generated
92 lines
2.5 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';
|
|
|
|
/**
|
|
* The WorkerCluster model module.
|
|
* @module model/WorkerCluster
|
|
* @version 0.0.0
|
|
*/
|
|
class WorkerCluster {
|
|
/**
|
|
* Constructs a new <code>WorkerCluster</code>.
|
|
* Cluster of workers. A job can optionally specify which cluster it should be limited to. Workers can be part of multiple clusters simultaneously.
|
|
* @alias module:model/WorkerCluster
|
|
* @param name {String}
|
|
*/
|
|
constructor(name) {
|
|
|
|
WorkerCluster.initialize(this, name);
|
|
}
|
|
|
|
/**
|
|
* 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, name) {
|
|
obj['name'] = name;
|
|
}
|
|
|
|
/**
|
|
* Constructs a <code>WorkerCluster</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/WorkerCluster} obj Optional instance to populate.
|
|
* @return {module:model/WorkerCluster} The populated <code>WorkerCluster</code> instance.
|
|
*/
|
|
static constructFromObject(data, obj) {
|
|
if (data) {
|
|
obj = obj || new WorkerCluster();
|
|
|
|
if (data.hasOwnProperty('id')) {
|
|
obj['id'] = ApiClient.convertToType(data['id'], 'String');
|
|
}
|
|
if (data.hasOwnProperty('name')) {
|
|
obj['name'] = ApiClient.convertToType(data['name'], 'String');
|
|
}
|
|
if (data.hasOwnProperty('description')) {
|
|
obj['description'] = ApiClient.convertToType(data['description'], 'String');
|
|
}
|
|
}
|
|
return obj;
|
|
}
|
|
|
|
|
|
}
|
|
|
|
/**
|
|
* UUID of the cluster. Can be ommitted when creating a new cluster, in which case a random UUID will be assigned.
|
|
* @member {String} id
|
|
*/
|
|
WorkerCluster.prototype['id'] = undefined;
|
|
|
|
/**
|
|
* @member {String} name
|
|
*/
|
|
WorkerCluster.prototype['name'] = undefined;
|
|
|
|
/**
|
|
* @member {String} description
|
|
*/
|
|
WorkerCluster.prototype['description'] = undefined;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default WorkerCluster;
|
|
|