-
Notifications
You must be signed in to change notification settings - Fork 521
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Librarian] Regenerated @ 9e43c4b1c21f11427158cfc8a409854c419cd158
- Loading branch information
Showing
49 changed files
with
4,653 additions
and
3,478 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** | ||
* This code was generated by | ||
* \ / _ _ _| _ _ | ||
* | (_)\/(_)(_|\/| |(/_ v1.0.0 | ||
* / / | ||
*/ | ||
|
||
import Domain = require('../base/Domain'); | ||
import Twilio = require('./Twilio'); | ||
import V1 = require('./microvisor/V1'); | ||
import { AppListInstance } from './microvisor/v1/app'; | ||
import { DeviceListInstance } from './microvisor/v1/device'; | ||
|
||
|
||
declare class Microvisor extends Domain { | ||
/** | ||
* Initialize microvisor domain | ||
* | ||
* @param twilio - The twilio client | ||
*/ | ||
constructor(twilio: Twilio); | ||
|
||
readonly apps: AppListInstance; | ||
readonly devices: DeviceListInstance; | ||
readonly v1: V1; | ||
} | ||
|
||
export = Microvisor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
'use strict'; | ||
|
||
/* jshint ignore:start */ | ||
/** | ||
* This code was generated by | ||
* \ / _ _ _| _ _ | ||
* | (_)\/(_)(_|\/| |(/_ v1.0.0 | ||
* / / | ||
*/ | ||
/* jshint ignore:end */ | ||
|
||
var _ = require('lodash'); /* jshint ignore:line */ | ||
var Domain = require('../base/Domain'); /* jshint ignore:line */ | ||
var V1 = require('./microvisor/V1'); /* jshint ignore:line */ | ||
|
||
|
||
/* jshint ignore:start */ | ||
/** | ||
* Initialize microvisor domain | ||
* | ||
* @constructor Twilio.Microvisor | ||
* | ||
* @property {Twilio.Microvisor.V1} v1 - v1 version | ||
* @property {Twilio.Microvisor.V1.AppList} apps - apps resource | ||
* @property {Twilio.Microvisor.V1.DeviceList} devices - devices resource | ||
* | ||
* @param {Twilio} twilio - The twilio client | ||
*/ | ||
/* jshint ignore:end */ | ||
function Microvisor(twilio) { | ||
Domain.prototype.constructor.call(this, twilio, 'https://microvisor.twilio.com'); | ||
|
||
// Versions | ||
this._v1 = undefined; | ||
} | ||
|
||
_.extend(Microvisor.prototype, Domain.prototype); | ||
Microvisor.prototype.constructor = Microvisor; | ||
|
||
Object.defineProperty(Microvisor.prototype, | ||
'v1', { | ||
get: function() { | ||
this._v1 = this._v1 || new V1(this); | ||
return this._v1; | ||
} | ||
}); | ||
|
||
Object.defineProperty(Microvisor.prototype, | ||
'apps', { | ||
get: function() { | ||
return this.v1.apps; | ||
} | ||
}); | ||
|
||
Object.defineProperty(Microvisor.prototype, | ||
'devices', { | ||
get: function() { | ||
return this.v1.devices; | ||
} | ||
}); | ||
|
||
module.exports = Microvisor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* This code was generated by | ||
* \ / _ _ _| _ _ | ||
* | (_)\/(_)(_|\/| |(/_ v1.0.0 | ||
* / / | ||
*/ | ||
|
||
import Domain = require('../base/Domain'); | ||
import Twilio = require('./Twilio'); | ||
import V2 = require('./routes/V2'); | ||
import { PhoneNumberListInstance } from './routes/v2/phoneNumber'; | ||
import { SipDomainListInstance } from './routes/v2/sipDomain'; | ||
import { TrunkListInstance } from './routes/v2/trunk'; | ||
|
||
|
||
declare class Routes extends Domain { | ||
/** | ||
* Initialize routes domain | ||
* | ||
* @param twilio - The twilio client | ||
*/ | ||
constructor(twilio: Twilio); | ||
|
||
readonly phoneNumbers: PhoneNumberListInstance; | ||
readonly sipDomains: SipDomainListInstance; | ||
readonly trunks: TrunkListInstance; | ||
readonly v2: V2; | ||
} | ||
|
||
export = Routes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
'use strict'; | ||
|
||
/* jshint ignore:start */ | ||
/** | ||
* This code was generated by | ||
* \ / _ _ _| _ _ | ||
* | (_)\/(_)(_|\/| |(/_ v1.0.0 | ||
* / / | ||
*/ | ||
/* jshint ignore:end */ | ||
|
||
var _ = require('lodash'); /* jshint ignore:line */ | ||
var Domain = require('../base/Domain'); /* jshint ignore:line */ | ||
var V2 = require('./routes/V2'); /* jshint ignore:line */ | ||
|
||
|
||
/* jshint ignore:start */ | ||
/** | ||
* Initialize routes domain | ||
* | ||
* @constructor Twilio.Routes | ||
* | ||
* @property {Twilio.Routes.V2} v2 - v2 version | ||
* @property {Twilio.Routes.V2.PhoneNumberList} phoneNumbers - | ||
* phoneNumbers resource | ||
* @property {Twilio.Routes.V2.SipDomainList} sipDomains - sipDomains resource | ||
* @property {Twilio.Routes.V2.TrunkList} trunks - trunks resource | ||
* | ||
* @param {Twilio} twilio - The twilio client | ||
*/ | ||
/* jshint ignore:end */ | ||
function Routes(twilio) { | ||
Domain.prototype.constructor.call(this, twilio, 'https://routes.twilio.com'); | ||
|
||
// Versions | ||
this._v2 = undefined; | ||
} | ||
|
||
_.extend(Routes.prototype, Domain.prototype); | ||
Routes.prototype.constructor = Routes; | ||
|
||
Object.defineProperty(Routes.prototype, | ||
'v2', { | ||
get: function() { | ||
this._v2 = this._v2 || new V2(this); | ||
return this._v2; | ||
} | ||
}); | ||
|
||
Object.defineProperty(Routes.prototype, | ||
'phoneNumbers', { | ||
get: function() { | ||
return this.v2.phoneNumbers; | ||
} | ||
}); | ||
|
||
Object.defineProperty(Routes.prototype, | ||
'sipDomains', { | ||
get: function() { | ||
return this.v2.sipDomains; | ||
} | ||
}); | ||
|
||
Object.defineProperty(Routes.prototype, | ||
'trunks', { | ||
get: function() { | ||
return this.v2.trunks; | ||
} | ||
}); | ||
|
||
module.exports = Routes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.