/**
* 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 JobsQuery model module.
* @module model/JobsQuery
* @version 0.0.0
*/
class JobsQuery {
/**
* Constructs a new JobsQuery
.
* @alias module:model/JobsQuery
*/
constructor() {
JobsQuery.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 JobsQuery
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/JobsQuery} obj Optional instance to populate.
* @return {module:model/JobsQuery} The populated JobsQuery
instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new JobsQuery();
if (data.hasOwnProperty('offset')) {
obj['offset'] = ApiClient.convertToType(data['offset'], 'Number');
}
if (data.hasOwnProperty('limit')) {
obj['limit'] = ApiClient.convertToType(data['limit'], 'Number');
}
if (data.hasOwnProperty('order_by')) {
obj['order_by'] = ApiClient.convertToType(data['order_by'], ['String']);
}
if (data.hasOwnProperty('status_in')) {
obj['status_in'] = ApiClient.convertToType(data['status_in'], [JobStatus]);
}
if (data.hasOwnProperty('metadata')) {
obj['metadata'] = ApiClient.convertToType(data['metadata'], {'String': 'String'});
}
if (data.hasOwnProperty('settings')) {
obj['settings'] = ApiClient.convertToType(data['settings'], {'String': Object});
}
}
return obj;
}
}
/**
* @member {Number} offset
*/
JobsQuery.prototype['offset'] = undefined;
/**
* @member {Number} limit
*/
JobsQuery.prototype['limit'] = undefined;
/**
* @member {Array.} order_by
*/
JobsQuery.prototype['order_by'] = undefined;
/**
* Return only jobs with a status in this array.
* @member {Array.} status_in
*/
JobsQuery.prototype['status_in'] = undefined;
/**
* Filter by metadata, using `LIKE` notation.
* @member {Object.} metadata
*/
JobsQuery.prototype['metadata'] = undefined;
/**
* Filter by job settings, using `LIKE` notation.
* @member {Object.} settings
*/
JobsQuery.prototype['settings'] = undefined;
export default JobsQuery;