UNPKG

@signalwire/compatibility-api

Version:
47 lines (38 loc) 1.05 kB
'use strict'; /* jshint ignore:start */ /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ /* jshint ignore:end */ var _ = require('lodash'); /* jshint ignore:line */ var ServiceList = require('./v1/service').ServiceList; var Version = require('../../base/Version'); /* jshint ignore:line */ /* jshint ignore:start */ /** * Initialize the V1 version of Serverless * * @constructor Twilio.Serverless.V1 * * @property {Twilio.Serverless.V1.ServiceList} services - services resource * * @param {Twilio.Serverless} domain - The twilio domain */ /* jshint ignore:end */ function V1(domain) { Version.prototype.constructor.call(this, domain, 'v1'); // Resources this._services = undefined; } _.extend(V1.prototype, Version.prototype); V1.prototype.constructor = V1; Object.defineProperty(V1.prototype, 'services', { get: function() { this._services = this._services || new ServiceList(this); return this._services; } }); module.exports = V1;