summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Twilio/Rest/Preview.php58
-rw-r--r--Twilio/Rest/Preview/Sync/ServiceContext.php1
-rw-r--r--Twilio/Rest/Preview/Sync/ServiceInstance.php2
-rw-r--r--Twilio/Rest/Preview/Sync/ServiceList.php1
-rw-r--r--Twilio/Rest/Preview/Sync/ServiceOptions.php40
-rw-r--r--Twilio/Rest/Preview/Wireless/DeviceContext.php1
-rw-r--r--Twilio/Rest/Preview/Wireless/DeviceOptions.php20
7 files changed, 85 insertions, 38 deletions
diff --git a/Twilio/Rest/Preview.php b/Twilio/Rest/Preview.php
index ca3dc83..8898155 100644
--- a/Twilio/Rest/Preview.php
+++ b/Twilio/Rest/Preview.php
@@ -15,20 +15,20 @@ use Twilio\Rest\Preview\Sync;
use Twilio\Rest\Preview\Wireless;
/**
- * @property \Twilio\Rest\Preview\Wireless wireless
* @property \Twilio\Rest\Preview\Sync sync
+ * @property \Twilio\Rest\Preview\Wireless wireless
+ * @property \Twilio\Rest\Preview\Sync\ServiceList services
* @property \Twilio\Rest\Preview\Wireless\CommandList commands
* @property \Twilio\Rest\Preview\Wireless\DeviceList devices
* @property \Twilio\Rest\Preview\Wireless\RatePlanList ratePlans
- * @property \Twilio\Rest\Preview\Sync\ServiceList services
+ * @method \Twilio\Rest\Preview\Sync\ServiceContext services(string $sid)
* @method \Twilio\Rest\Preview\Wireless\CommandContext commands(string $sid)
* @method \Twilio\Rest\Preview\Wireless\DeviceContext devices(string $sid)
* @method \Twilio\Rest\Preview\Wireless\RatePlanContext ratePlans(string $sid)
- * @method \Twilio\Rest\Preview\Sync\ServiceContext services(string $sid)
*/
class Preview extends Domain {
- protected $_wireless = null;
protected $_sync = null;
+ protected $_wireless = null;
/**
* Construct the Preview Domain
@@ -44,16 +44,6 @@ class Preview extends Domain {
}
/**
- * @return \Twilio\Rest\Preview\Wireless Version wireless of preview
- */
- protected function getWireless() {
- if (!$this->_wireless) {
- $this->_wireless = new Wireless($this);
- }
- return $this->_wireless;
- }
-
- /**
* @return \Twilio\Rest\Preview\Sync Version sync of preview
*/
protected function getSync() {
@@ -64,6 +54,16 @@ class Preview extends Domain {
}
/**
+ * @return \Twilio\Rest\Preview\Wireless Version wireless of preview
+ */
+ protected function getWireless() {
+ if (!$this->_wireless) {
+ $this->_wireless = new Wireless($this);
+ }
+ return $this->_wireless;
+ }
+
+ /**
* Magic getter to lazy load version
*
* @param string $name Version to return
@@ -97,6 +97,21 @@ class Preview extends Domain {
}
/**
+ * @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\Wireless\CommandList
*/
protected function getCommands() {
@@ -142,21 +157,6 @@ class Preview extends Domain {
}
/**
- * @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);
- }
-
- /**
* Provide a friendly representation
*
* @return string Machine friendly representation
diff --git a/Twilio/Rest/Preview/Sync/ServiceContext.php b/Twilio/Rest/Preview/Sync/ServiceContext.php
index 090fbaa..be9e62f 100644
--- a/Twilio/Rest/Preview/Sync/ServiceContext.php
+++ b/Twilio/Rest/Preview/Sync/ServiceContext.php
@@ -91,6 +91,7 @@ class ServiceContext extends InstanceContext {
$data = Values::of(array(
'WebhookUrl' => $options['webhookUrl'],
'FriendlyName' => $options['friendlyName'],
+ 'ReachabilityWebhooksEnabled' => $options['reachabilityWebhooksEnabled'],
));
$payload = $this->version->update(
diff --git a/Twilio/Rest/Preview/Sync/ServiceInstance.php b/Twilio/Rest/Preview/Sync/ServiceInstance.php
index 7ba7da1..a4049b6 100644
--- a/Twilio/Rest/Preview/Sync/ServiceInstance.php
+++ b/Twilio/Rest/Preview/Sync/ServiceInstance.php
@@ -23,6 +23,7 @@ use Twilio\Version;
* @property \DateTime dateUpdated
* @property string url
* @property string webhookUrl
+ * @property string reachabilityWebhooksEnabled
* @property string links
*/
class ServiceInstance extends InstanceResource {
@@ -50,6 +51,7 @@ class ServiceInstance extends InstanceResource {
'dateUpdated' => Deserialize::iso8601DateTime($payload['date_updated']),
'url' => $payload['url'],
'webhookUrl' => $payload['webhook_url'],
+ 'reachabilityWebhooksEnabled' => $payload['reachability_webhooks_enabled'],
'links' => $payload['links'],
);
diff --git a/Twilio/Rest/Preview/Sync/ServiceList.php b/Twilio/Rest/Preview/Sync/ServiceList.php
index e3e1729..6a40711 100644
--- a/Twilio/Rest/Preview/Sync/ServiceList.php
+++ b/Twilio/Rest/Preview/Sync/ServiceList.php
@@ -42,6 +42,7 @@ class ServiceList extends ListResource {
$data = Values::of(array(
'FriendlyName' => $options['friendlyName'],
'WebhookUrl' => $options['webhookUrl'],
+ 'ReachabilityWebhooksEnabled' => $options['reachabilityWebhooksEnabled'],
));
$payload = $this->version->create(
diff --git a/Twilio/Rest/Preview/Sync/ServiceOptions.php b/Twilio/Rest/Preview/Sync/ServiceOptions.php
index d1ae169..d4c7eb7 100644
--- a/Twilio/Rest/Preview/Sync/ServiceOptions.php
+++ b/Twilio/Rest/Preview/Sync/ServiceOptions.php
@@ -16,19 +16,21 @@ abstract class ServiceOptions {
/**
* @param string $friendlyName The friendly_name
* @param string $webhookUrl The webhook_url
+ * @param string $reachabilityWebhooksEnabled The reachability_webhooks_enabled
* @return CreateServiceOptions Options builder
*/
- public static function create($friendlyName = Values::NONE, $webhookUrl = Values::NONE) {
- return new CreateServiceOptions($friendlyName, $webhookUrl);
+ public static function create($friendlyName = Values::NONE, $webhookUrl = Values::NONE, $reachabilityWebhooksEnabled = Values::NONE) {
+ return new CreateServiceOptions($friendlyName, $webhookUrl, $reachabilityWebhooksEnabled);
}
/**
* @param string $webhookUrl The webhook_url
* @param string $friendlyName The friendly_name
+ * @param string $reachabilityWebhooksEnabled The reachability_webhooks_enabled
* @return UpdateServiceOptions Options builder
*/
- public static function update($webhookUrl = Values::NONE, $friendlyName = Values::NONE) {
- return new UpdateServiceOptions($webhookUrl, $friendlyName);
+ public static function update($webhookUrl = Values::NONE, $friendlyName = Values::NONE, $reachabilityWebhooksEnabled = Values::NONE) {
+ return new UpdateServiceOptions($webhookUrl, $friendlyName, $reachabilityWebhooksEnabled);
}
}
@@ -36,10 +38,12 @@ class CreateServiceOptions extends Options {
/**
* @param string $friendlyName The friendly_name
* @param string $webhookUrl The webhook_url
+ * @param string $reachabilityWebhooksEnabled The reachability_webhooks_enabled
*/
- public function __construct($friendlyName = Values::NONE, $webhookUrl = Values::NONE) {
+ public function __construct($friendlyName = Values::NONE, $webhookUrl = Values::NONE, $reachabilityWebhooksEnabled = Values::NONE) {
$this->options['friendlyName'] = $friendlyName;
$this->options['webhookUrl'] = $webhookUrl;
+ $this->options['reachabilityWebhooksEnabled'] = $reachabilityWebhooksEnabled;
}
/**
@@ -65,6 +69,17 @@ class CreateServiceOptions extends Options {
}
/**
+ * The reachability_webhooks_enabled
+ *
+ * @param string $reachabilityWebhooksEnabled The reachability_webhooks_enabled
+ * @return $this Fluent Builder
+ */
+ public function setReachabilityWebhooksEnabled($reachabilityWebhooksEnabled) {
+ $this->options['reachabilityWebhooksEnabled'] = $reachabilityWebhooksEnabled;
+ return $this;
+ }
+
+ /**
* Provide a friendly representation
*
* @return string Machine friendly representation
@@ -84,10 +99,12 @@ class UpdateServiceOptions extends Options {
/**
* @param string $webhookUrl The webhook_url
* @param string $friendlyName The friendly_name
+ * @param string $reachabilityWebhooksEnabled The reachability_webhooks_enabled
*/
- public function __construct($webhookUrl = Values::NONE, $friendlyName = Values::NONE) {
+ public function __construct($webhookUrl = Values::NONE, $friendlyName = Values::NONE, $reachabilityWebhooksEnabled = Values::NONE) {
$this->options['webhookUrl'] = $webhookUrl;
$this->options['friendlyName'] = $friendlyName;
+ $this->options['reachabilityWebhooksEnabled'] = $reachabilityWebhooksEnabled;
}
/**
@@ -113,6 +130,17 @@ class UpdateServiceOptions extends Options {
}
/**
+ * The reachability_webhooks_enabled
+ *
+ * @param string $reachabilityWebhooksEnabled The reachability_webhooks_enabled
+ * @return $this Fluent Builder
+ */
+ public function setReachabilityWebhooksEnabled($reachabilityWebhooksEnabled) {
+ $this->options['reachabilityWebhooksEnabled'] = $reachabilityWebhooksEnabled;
+ return $this;
+ }
+
+ /**
* Provide a friendly representation
*
* @return string Machine friendly representation
diff --git a/Twilio/Rest/Preview/Wireless/DeviceContext.php b/Twilio/Rest/Preview/Wireless/DeviceContext.php
index 4312eae..2552293 100644
--- a/Twilio/Rest/Preview/Wireless/DeviceContext.php
+++ b/Twilio/Rest/Preview/Wireless/DeviceContext.php
@@ -76,6 +76,7 @@ class DeviceContext extends InstanceContext {
'CallbackMethod' => $options['callbackMethod'],
'CallbackUrl' => $options['callbackUrl'],
'FriendlyName' => $options['friendlyName'],
+ 'RatePlan' => $options['ratePlan'],
'SimIdentifier' => $options['simIdentifier'],
'Status' => $options['status'],
'CommandsCallbackMethod' => $options['commandsCallbackMethod'],
diff --git a/Twilio/Rest/Preview/Wireless/DeviceOptions.php b/Twilio/Rest/Preview/Wireless/DeviceOptions.php
index 9438327..7030eae 100644
--- a/Twilio/Rest/Preview/Wireless/DeviceOptions.php
+++ b/Twilio/Rest/Preview/Wireless/DeviceOptions.php
@@ -43,14 +43,15 @@ abstract class DeviceOptions {
* @param string $callbackMethod The callback_method
* @param string $callbackUrl The callback_url
* @param string $friendlyName The friendly_name
+ * @param string $ratePlan The rate_plan
* @param string $simIdentifier The sim_identifier
* @param string $status The status
* @param string $commandsCallbackMethod The commands_callback_method
* @param string $commandsCallbackUrl The commands_callback_url
* @return UpdateDeviceOptions Options builder
*/
- public static function update($alias = Values::NONE, $callbackMethod = Values::NONE, $callbackUrl = Values::NONE, $friendlyName = Values::NONE, $simIdentifier = Values::NONE, $status = Values::NONE, $commandsCallbackMethod = Values::NONE, $commandsCallbackUrl = Values::NONE) {
- return new UpdateDeviceOptions($alias, $callbackMethod, $callbackUrl, $friendlyName, $simIdentifier, $status, $commandsCallbackMethod, $commandsCallbackUrl);
+ public static function update($alias = Values::NONE, $callbackMethod = Values::NONE, $callbackUrl = Values::NONE, $friendlyName = Values::NONE, $ratePlan = Values::NONE, $simIdentifier = Values::NONE, $status = Values::NONE, $commandsCallbackMethod = Values::NONE, $commandsCallbackUrl = Values::NONE) {
+ return new UpdateDeviceOptions($alias, $callbackMethod, $callbackUrl, $friendlyName, $ratePlan, $simIdentifier, $status, $commandsCallbackMethod, $commandsCallbackUrl);
}
}
@@ -247,16 +248,18 @@ class UpdateDeviceOptions extends Options {
* @param string $callbackMethod The callback_method
* @param string $callbackUrl The callback_url
* @param string $friendlyName The friendly_name
+ * @param string $ratePlan The rate_plan
* @param string $simIdentifier The sim_identifier
* @param string $status The status
* @param string $commandsCallbackMethod The commands_callback_method
* @param string $commandsCallbackUrl The commands_callback_url
*/
- public function __construct($alias = Values::NONE, $callbackMethod = Values::NONE, $callbackUrl = Values::NONE, $friendlyName = Values::NONE, $simIdentifier = Values::NONE, $status = Values::NONE, $commandsCallbackMethod = Values::NONE, $commandsCallbackUrl = Values::NONE) {
+ public function __construct($alias = Values::NONE, $callbackMethod = Values::NONE, $callbackUrl = Values::NONE, $friendlyName = Values::NONE, $ratePlan = Values::NONE, $simIdentifier = Values::NONE, $status = Values::NONE, $commandsCallbackMethod = Values::NONE, $commandsCallbackUrl = Values::NONE) {
$this->options['alias'] = $alias;
$this->options['callbackMethod'] = $callbackMethod;
$this->options['callbackUrl'] = $callbackUrl;
$this->options['friendlyName'] = $friendlyName;
+ $this->options['ratePlan'] = $ratePlan;
$this->options['simIdentifier'] = $simIdentifier;
$this->options['status'] = $status;
$this->options['commandsCallbackMethod'] = $commandsCallbackMethod;
@@ -308,6 +311,17 @@ class UpdateDeviceOptions extends Options {
}
/**
+ * The rate_plan
+ *
+ * @param string $ratePlan The rate_plan
+ * @return $this Fluent Builder
+ */
+ public function setRatePlan($ratePlan) {
+ $this->options['ratePlan'] = $ratePlan;
+ return $this;
+ }
+
+ /**
* The sim_identifier
*
* @param string $simIdentifier The sim_identifier