| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425 |
- <?php
- /**
- * This code was generated by
- * \ / _ _ _| _ _
- * | (_)\/(_)(_|\/| |(/_ v1.0.0
- * / /
- */
- namespace Twilio\Rest;
- use Twilio\Domain;
- use Twilio\Exceptions\TwilioException;
- use Twilio\Rest\Preview\AccSecurity as PreviewAccSecurity;
- use Twilio\Rest\Preview\BulkExports as PreviewBulkExports;
- use Twilio\Rest\Preview\DeployedDevices as PreviewDeployedDevices;
- use Twilio\Rest\Preview\HostedNumbers as PreviewHostedNumbers;
- use Twilio\Rest\Preview\Marketplace as PreviewMarketplace;
- use Twilio\Rest\Preview\Proxy as PreviewProxy;
- use Twilio\Rest\Preview\Studio as PreviewStudio;
- use Twilio\Rest\Preview\Sync as PreviewSync;
- use Twilio\Rest\Preview\Understand as PreviewUnderstand;
- use Twilio\Rest\Preview\Wireless as PreviewWireless;
- /**
- * @property \Twilio\Rest\Preview\BulkExports bulkExports
- * @property \Twilio\Rest\Preview\DeployedDevices deployedDevices
- * @property \Twilio\Rest\Preview\HostedNumbers hostedNumbers
- * @property \Twilio\Rest\Preview\Marketplace marketplace
- * @property \Twilio\Rest\Preview\Proxy proxy
- * @property \Twilio\Rest\Preview\Studio studio
- * @property \Twilio\Rest\Preview\AccSecurity accSecurity
- * @property \Twilio\Rest\Preview\Sync sync
- * @property \Twilio\Rest\Preview\Understand understand
- * @property \Twilio\Rest\Preview\Wireless wireless
- * @property \Twilio\Rest\Preview\BulkExports\ExportList exports
- * @property \Twilio\Rest\Preview\BulkExports\ExportConfigurationList exportConfiguration
- * @property \Twilio\Rest\Preview\DeployedDevices\FleetList fleets
- * @property \Twilio\Rest\Preview\HostedNumbers\AuthorizationDocumentList authorizationDocuments
- * @property \Twilio\Rest\Preview\HostedNumbers\HostedNumberOrderList hostedNumberOrders
- * @property \Twilio\Rest\Preview\Marketplace\InstalledAddOnList installedAddOns
- * @property \Twilio\Rest\Preview\Marketplace\AvailableAddOnList availableAddOns
- * @property \Twilio\Rest\Preview\Sync\ServiceList services
- * @property \Twilio\Rest\Preview\Studio\FlowList flows
- * @property \Twilio\Rest\Preview\Understand\AssistantList assistants
- * @property \Twilio\Rest\Preview\Wireless\CommandList commands
- * @property \Twilio\Rest\Preview\Wireless\RatePlanList ratePlans
- * @property \Twilio\Rest\Preview\Wireless\SimList sims
- * @method \Twilio\Rest\Preview\BulkExports\ExportContext exports(string $resourceType)
- * @method \Twilio\Rest\Preview\BulkExports\ExportConfigurationContext exportConfiguration(string $resourceType)
- * @method \Twilio\Rest\Preview\DeployedDevices\FleetContext fleets(string $sid)
- * @method \Twilio\Rest\Preview\HostedNumbers\AuthorizationDocumentContext authorizationDocuments(string $sid)
- * @method \Twilio\Rest\Preview\HostedNumbers\HostedNumberOrderContext hostedNumberOrders(string $sid)
- * @method \Twilio\Rest\Preview\Marketplace\InstalledAddOnContext installedAddOns(string $sid)
- * @method \Twilio\Rest\Preview\Marketplace\AvailableAddOnContext availableAddOns(string $sid)
- * @method \Twilio\Rest\Preview\Sync\ServiceContext services(string $sid)
- * @method \Twilio\Rest\Preview\Studio\FlowContext flows(string $sid)
- * @method \Twilio\Rest\Preview\Understand\AssistantContext assistants(string $sid)
- * @method \Twilio\Rest\Preview\Wireless\CommandContext commands(string $sid)
- * @method \Twilio\Rest\Preview\Wireless\RatePlanContext ratePlans(string $sid)
- * @method \Twilio\Rest\Preview\Wireless\SimContext sims(string $sid)
- */
- class Preview extends Domain {
- protected $_bulkExports = null;
- protected $_deployedDevices = null;
- protected $_hostedNumbers = null;
- protected $_marketplace = null;
- protected $_proxy = null;
- protected $_studio = null;
- protected $_accSecurity = null;
- protected $_sync = null;
- protected $_understand = null;
- protected $_wireless = null;
- /**
- * Construct the Preview Domain
- *
- * @param \Twilio\Rest\Client $client Twilio\Rest\Client to communicate with
- * Twilio
- * @return \Twilio\Rest\Preview Domain for Preview
- */
- public function __construct(Client $client) {
- parent::__construct($client);
- $this->baseUrl = 'https://preview.twilio.com';
- }
- /**
- * @return \Twilio\Rest\Preview\BulkExports Version bulkExports of preview
- */
- protected function getBulkExports() {
- if (!$this->_bulkExports) {
- $this->_bulkExports = new PreviewBulkExports($this);
- }
- return $this->_bulkExports;
- }
- /**
- * @return \Twilio\Rest\Preview\DeployedDevices Version deployedDevices of
- * preview
- */
- protected function getDeployedDevices() {
- if (!$this->_deployedDevices) {
- $this->_deployedDevices = new PreviewDeployedDevices($this);
- }
- return $this->_deployedDevices;
- }
- /**
- * @return \Twilio\Rest\Preview\HostedNumbers Version hostedNumbers of preview
- */
- protected function getHostedNumbers() {
- if (!$this->_hostedNumbers) {
- $this->_hostedNumbers = new PreviewHostedNumbers($this);
- }
- return $this->_hostedNumbers;
- }
- /**
- * @return \Twilio\Rest\Preview\Marketplace Version marketplace of preview
- */
- protected function getMarketplace() {
- if (!$this->_marketplace) {
- $this->_marketplace = new PreviewMarketplace($this);
- }
- return $this->_marketplace;
- }
- /**
- * @return \Twilio\Rest\Preview\Proxy Version proxy of preview
- */
- protected function getProxy() {
- if (!$this->_proxy) {
- $this->_proxy = new PreviewProxy($this);
- }
- return $this->_proxy;
- }
- /**
- * @return \Twilio\Rest\Preview\Studio Version studio of preview
- */
- protected function getStudio() {
- if (!$this->_studio) {
- $this->_studio = new PreviewStudio($this);
- }
- return $this->_studio;
- }
- /**
- * @return \Twilio\Rest\Preview\AccSecurity Version accSecurity of preview
- */
- protected function getAccSecurity() {
- if (!$this->_accSecurity) {
- $this->_accSecurity = new PreviewAccSecurity($this);
- }
- return $this->_accSecurity;
- }
- /**
- * @return \Twilio\Rest\Preview\Sync Version sync of preview
- */
- protected function getSync() {
- if (!$this->_sync) {
- $this->_sync = new PreviewSync($this);
- }
- return $this->_sync;
- }
- /**
- * @return \Twilio\Rest\Preview\Understand Version understand of preview
- */
- protected function getUnderstand() {
- if (!$this->_understand) {
- $this->_understand = new PreviewUnderstand($this);
- }
- return $this->_understand;
- }
- /**
- * @return \Twilio\Rest\Preview\Wireless Version wireless of preview
- */
- protected function getWireless() {
- if (!$this->_wireless) {
- $this->_wireless = new PreviewWireless($this);
- }
- return $this->_wireless;
- }
- /**
- * Magic getter to lazy load version
- *
- * @param string $name Version to return
- * @return \Twilio\Version The requested version
- * @throws \Twilio\Exceptions\TwilioException For unknown versions
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
- throw new TwilioException('Unknown version ' . $name);
- }
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $method = 'context' . ucfirst($name);
- if (method_exists($this, $method)) {
- return call_user_func_array(array($this, $method), $arguments);
- }
- throw new TwilioException('Unknown context ' . $name);
- }
- /**
- * @return \Twilio\Rest\Preview\BulkExports\ExportList
- */
- protected function getExports() {
- return $this->bulkExports->exports;
- }
- /**
- * @param string $resourceType The resource_type
- * @return \Twilio\Rest\Preview\BulkExports\ExportContext
- */
- protected function contextExports($resourceType) {
- return $this->bulkExports->exports($resourceType);
- }
- /**
- * @return \Twilio\Rest\Preview\BulkExports\ExportConfigurationList
- */
- protected function getExportConfiguration() {
- return $this->bulkExports->exportConfiguration;
- }
- /**
- * @param string $resourceType The resource_type
- * @return \Twilio\Rest\Preview\BulkExports\ExportConfigurationContext
- */
- protected function contextExportConfiguration($resourceType) {
- return $this->bulkExports->exportConfiguration($resourceType);
- }
- /**
- * @return \Twilio\Rest\Preview\DeployedDevices\FleetList
- */
- protected function getFleets() {
- return $this->deployedDevices->fleets;
- }
- /**
- * @param string $sid A string that uniquely identifies the Fleet.
- * @return \Twilio\Rest\Preview\DeployedDevices\FleetContext
- */
- protected function contextFleets($sid) {
- return $this->deployedDevices->fleets($sid);
- }
- /**
- * @return \Twilio\Rest\Preview\HostedNumbers\AuthorizationDocumentList
- */
- protected function getAuthorizationDocuments() {
- return $this->hostedNumbers->authorizationDocuments;
- }
- /**
- * @param string $sid AuthorizationDocument sid.
- * @return \Twilio\Rest\Preview\HostedNumbers\AuthorizationDocumentContext
- */
- protected function contextAuthorizationDocuments($sid) {
- return $this->hostedNumbers->authorizationDocuments($sid);
- }
- /**
- * @return \Twilio\Rest\Preview\HostedNumbers\HostedNumberOrderList
- */
- protected function getHostedNumberOrders() {
- return $this->hostedNumbers->hostedNumberOrders;
- }
- /**
- * @param string $sid HostedNumberOrder sid.
- * @return \Twilio\Rest\Preview\HostedNumbers\HostedNumberOrderContext
- */
- protected function contextHostedNumberOrders($sid) {
- return $this->hostedNumbers->hostedNumberOrders($sid);
- }
- /**
- * @return \Twilio\Rest\Preview\Marketplace\InstalledAddOnList
- */
- protected function getInstalledAddOns() {
- return $this->marketplace->installedAddOns;
- }
- /**
- * @param string $sid The unique Installed Add-on Sid
- * @return \Twilio\Rest\Preview\Marketplace\InstalledAddOnContext
- */
- protected function contextInstalledAddOns($sid) {
- return $this->marketplace->installedAddOns($sid);
- }
- /**
- * @return \Twilio\Rest\Preview\Marketplace\AvailableAddOnList
- */
- protected function getAvailableAddOns() {
- return $this->marketplace->availableAddOns;
- }
- /**
- * @param string $sid The unique Available Add-on Sid
- * @return \Twilio\Rest\Preview\Marketplace\AvailableAddOnContext
- */
- protected function contextAvailableAddOns($sid) {
- return $this->marketplace->availableAddOns($sid);
- }
- /**
- * @return \Twilio\Rest\Preview\Sync\ServiceList
- */
- protected function getServices() {
- return $this->sync->services;
- }
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\Preview\Sync\ServiceContext
- */
- protected function contextServices($sid) {
- return $this->sync->services($sid);
- }
- /**
- * @return \Twilio\Rest\Preview\Studio\FlowList
- */
- protected function getFlows() {
- return $this->studio->flows;
- }
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\Preview\Studio\FlowContext
- */
- protected function contextFlows($sid) {
- return $this->studio->flows($sid);
- }
- /**
- * @return \Twilio\Rest\Preview\Understand\AssistantList
- */
- protected function getAssistants() {
- return $this->understand->assistants;
- }
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\Preview\Understand\AssistantContext
- */
- protected function contextAssistants($sid) {
- return $this->understand->assistants($sid);
- }
- /**
- * @return \Twilio\Rest\Preview\Wireless\CommandList
- */
- protected function getCommands() {
- return $this->wireless->commands;
- }
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\Preview\Wireless\CommandContext
- */
- protected function contextCommands($sid) {
- return $this->wireless->commands($sid);
- }
- /**
- * @return \Twilio\Rest\Preview\Wireless\RatePlanList
- */
- protected function getRatePlans() {
- return $this->wireless->ratePlans;
- }
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\Preview\Wireless\RatePlanContext
- */
- protected function contextRatePlans($sid) {
- return $this->wireless->ratePlans($sid);
- }
- /**
- * @return \Twilio\Rest\Preview\Wireless\SimList
- */
- protected function getSims() {
- return $this->wireless->sims;
- }
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\Preview\Wireless\SimContext
- */
- protected function contextSims($sid) {
- return $this->wireless->sims($sid);
- }
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview]';
- }
- }
|