UNPKG

@xompass/sdk-cloud-api

Version:

Xompass Client for cloud-api

67 lines 1.88 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RateLimit = void 0; var RateLimit = /** @class */ (function () { function RateLimit(data) { this.enabled = true; Object.assign(this, data); } /** * The name of the model represented by this $resource, * i.e. `RateLimit`. */ RateLimit.getModelName = function () { return 'RateLimit'; }; /** * @method factory * @author Jonathan Casarrubias * @license MIT * This method creates an instance of RateLimit for dynamic purposes. */ RateLimit.factory = function (data) { return new RateLimit(data); }; /** * @method getModelDefinition * @author Julien Ledun * @license MIT * This method returns an object that represents some of the model * definitions. */ RateLimit.getModelDefinition = function () { return { name: 'RateLimit', plural: 'RateLimits', path: 'RateLimits', idName: 'id', properties: { readLimit: { name: 'readLimit', type: 'number' }, writeLimit: { name: 'writeLimit', type: 'number' }, timeIntervalS: { name: 'timeIntervalS', type: 'number' }, enabled: { name: 'enabled', type: 'boolean', default: true }, id: { name: 'id', type: 'any' }, }, relations: {} }; }; return RateLimit; }()); exports.RateLimit = RateLimit; //# sourceMappingURL=RateLimit.js.map