@kaltura-ng/kaltura-client
Version:
Kaltura Typescript client
49 lines • 2.46 kB
JavaScript
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import { KalturaTypesFactory } from '../kaltura-types-factory';
import { KalturaSchedulerStatus } from './KalturaSchedulerStatus';
import { KalturaSchedulerConfig } from './KalturaSchedulerConfig';
import { KalturaSchedulerWorker } from './KalturaSchedulerWorker';
import { KalturaObjectBase } from '../kaltura-object-base';
var KalturaScheduler = (function (_super) {
__extends(KalturaScheduler, _super);
function KalturaScheduler(data) {
var _this = _super.call(this, data) || this;
if (typeof _this.statuses === 'undefined')
_this.statuses = [];
if (typeof _this.configs === 'undefined')
_this.configs = [];
if (typeof _this.workers === 'undefined')
_this.workers = [];
return _this;
}
KalturaScheduler.prototype._getMetadata = function () {
var result = _super.prototype._getMetadata.call(this);
Object.assign(result.properties, {
objectType: { type: 'c', default: 'KalturaScheduler' },
id: { type: 'n', readOnly: true },
configuredId: { type: 'n' },
name: { type: 's' },
host: { type: 's' },
statuses: { type: 'a', readOnly: true, subTypeConstructor: KalturaSchedulerStatus, subType: 'KalturaSchedulerStatus' },
configs: { type: 'a', readOnly: true, subTypeConstructor: KalturaSchedulerConfig, subType: 'KalturaSchedulerConfig' },
workers: { type: 'a', readOnly: true, subTypeConstructor: KalturaSchedulerWorker, subType: 'KalturaSchedulerWorker' },
createdAt: { type: 'd', readOnly: true },
lastStatus: { type: 'n', readOnly: true },
lastStatusStr: { type: 's', readOnly: true }
});
return result;
};
return KalturaScheduler;
}(KalturaObjectBase));
export { KalturaScheduler };
KalturaTypesFactory.registerType('KalturaScheduler', KalturaScheduler);
//# sourceMappingURL=KalturaScheduler.js.map