UNPKG

twilio

Version:
65 lines (54 loc) 1.44 kB
'use strict'; /* jshint ignore:start */ /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ /* jshint ignore:end */ var _ = require('lodash'); /* jshint ignore:line */ var PublicKeyList = require('./credential/publicKey').PublicKeyList; var CredentialList; /* jshint ignore:start */ /** * @constructor Twilio.Accounts.V1.CredentialList * @description Initialize the CredentialList * * @param {Twilio.Accounts.V1} version - Version of the resource */ /* jshint ignore:end */ CredentialList = function CredentialList(version) { /* jshint ignore:start */ /** * @function credentials * @memberof Twilio.Accounts.V1 * @instance * * @param {string} sid - sid of instance * * @returns {Twilio.Accounts.V1.CredentialContext} */ /* jshint ignore:end */ function CredentialListInstance(sid) { return CredentialListInstance.get(sid); } CredentialListInstance._version = version; // Path Solution CredentialListInstance._solution = {}; // Components CredentialListInstance._publicKey = undefined; Object.defineProperty(CredentialListInstance, 'publicKey', { get: function publicKey() { if (!this._publicKey) { this._publicKey = new PublicKeyList(this._version); } return this._publicKey; } }); return CredentialListInstance; }; module.exports = { CredentialList: CredentialList };