Файл: sngine-v2.8/Script/includes/libs/Twilio/Rest/Authy/V1/ServiceOptions.php
Строк: 417
<?php
/**
* This code was generated by
* / _ _ _| _ _
* | (_)/(_)(_|/| |(/_ v1.0.0
* / /
*/
namespace TwilioRestAuthyV1;
use TwilioOptions;
use TwilioValues;
/**
* PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
*/
abstract class ServiceOptions {
/**
* @param string $push Optional service level push factors configuration
* @param string $twilioSandboxMode The Twilio-Sandbox-Mode HTTP request header
* @return CreateServiceOptions Options builder
*/
public static function create(string $push = Values::NONE, string $twilioSandboxMode = Values::NONE): CreateServiceOptions {
return new CreateServiceOptions($push, $twilioSandboxMode);
}
/**
* @param string $twilioSandboxMode The Twilio-Sandbox-Mode HTTP request header
* @return DeleteServiceOptions Options builder
*/
public static function delete(string $twilioSandboxMode = Values::NONE): DeleteServiceOptions {
return new DeleteServiceOptions($twilioSandboxMode);
}
/**
* @param string $twilioSandboxMode The Twilio-Sandbox-Mode HTTP request header
* @return FetchServiceOptions Options builder
*/
public static function fetch(string $twilioSandboxMode = Values::NONE): FetchServiceOptions {
return new FetchServiceOptions($twilioSandboxMode);
}
/**
* @param string $twilioSandboxMode The Twilio-Sandbox-Mode HTTP request header
* @return ReadServiceOptions Options builder
*/
public static function read(string $twilioSandboxMode = Values::NONE): ReadServiceOptions {
return new ReadServiceOptions($twilioSandboxMode);
}
/**
* @param string $friendlyName A human readable description of this resource.
* @param string $push Optional service level push factors configuration
* @param string $twilioSandboxMode The Twilio-Sandbox-Mode HTTP request header
* @return UpdateServiceOptions Options builder
*/
public static function update(string $friendlyName = Values::NONE, string $push = Values::NONE, string $twilioSandboxMode = Values::NONE): UpdateServiceOptions {
return new UpdateServiceOptions($friendlyName, $push, $twilioSandboxMode);
}
}
class CreateServiceOptions extends Options {
/**
* @param string $push Optional service level push factors configuration
* @param string $twilioSandboxMode The Twilio-Sandbox-Mode HTTP request header
*/
public function __construct(string $push = Values::NONE, string $twilioSandboxMode = Values::NONE) {
$this->options['push'] = $push;
$this->options['twilioSandboxMode'] = $twilioSandboxMode;
}
/**
* The optional service level push factors configuration. If present it must be a json string with the following format: {"notify_service_sid": "ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "include_date": true}
*
* @param string $push Optional service level push factors configuration
* @return $this Fluent Builder
*/
public function setPush(string $push): self {
$this->options['push'] = $push;
return $this;
}
/**
* The Twilio-Sandbox-Mode HTTP request header
*
* @param string $twilioSandboxMode The Twilio-Sandbox-Mode HTTP request header
* @return $this Fluent Builder
*/
public function setTwilioSandboxMode(string $twilioSandboxMode): self {
$this->options['twilioSandboxMode'] = $twilioSandboxMode;
return $this;
}
/**
* Provide a friendly representation
*
* @return string Machine friendly representation
*/
public function __toString(): string {
$options = http_build_query(Values::of($this->options), '', ' ');
return '[Twilio.Authy.V1.CreateServiceOptions ' . $options . ']';
}
}
class DeleteServiceOptions extends Options {
/**
* @param string $twilioSandboxMode The Twilio-Sandbox-Mode HTTP request header
*/
public function __construct(string $twilioSandboxMode = Values::NONE) {
$this->options['twilioSandboxMode'] = $twilioSandboxMode;
}
/**
* The Twilio-Sandbox-Mode HTTP request header
*
* @param string $twilioSandboxMode The Twilio-Sandbox-Mode HTTP request header
* @return $this Fluent Builder
*/
public function setTwilioSandboxMode(string $twilioSandboxMode): self {
$this->options['twilioSandboxMode'] = $twilioSandboxMode;
return $this;
}
/**
* Provide a friendly representation
*
* @return string Machine friendly representation
*/
public function __toString(): string {
$options = http_build_query(Values::of($this->options), '', ' ');
return '[Twilio.Authy.V1.DeleteServiceOptions ' . $options . ']';
}
}
class FetchServiceOptions extends Options {
/**
* @param string $twilioSandboxMode The Twilio-Sandbox-Mode HTTP request header
*/
public function __construct(string $twilioSandboxMode = Values::NONE) {
$this->options['twilioSandboxMode'] = $twilioSandboxMode;
}
/**
* The Twilio-Sandbox-Mode HTTP request header
*
* @param string $twilioSandboxMode The Twilio-Sandbox-Mode HTTP request header
* @return $this Fluent Builder
*/
public function setTwilioSandboxMode(string $twilioSandboxMode): self {
$this->options['twilioSandboxMode'] = $twilioSandboxMode;
return $this;
}
/**
* Provide a friendly representation
*
* @return string Machine friendly representation
*/
public function __toString(): string {
$options = http_build_query(Values::of($this->options), '', ' ');
return '[Twilio.Authy.V1.FetchServiceOptions ' . $options . ']';
}
}
class ReadServiceOptions extends Options {
/**
* @param string $twilioSandboxMode The Twilio-Sandbox-Mode HTTP request header
*/
public function __construct(string $twilioSandboxMode = Values::NONE) {
$this->options['twilioSandboxMode'] = $twilioSandboxMode;
}
/**
* The Twilio-Sandbox-Mode HTTP request header
*
* @param string $twilioSandboxMode The Twilio-Sandbox-Mode HTTP request header
* @return $this Fluent Builder
*/
public function setTwilioSandboxMode(string $twilioSandboxMode): self {
$this->options['twilioSandboxMode'] = $twilioSandboxMode;
return $this;
}
/**
* Provide a friendly representation
*
* @return string Machine friendly representation
*/
public function __toString(): string {
$options = http_build_query(Values::of($this->options), '', ' ');
return '[Twilio.Authy.V1.ReadServiceOptions ' . $options . ']';
}
}
class UpdateServiceOptions extends Options {
/**
* @param string $friendlyName A human readable description of this resource.
* @param string $push Optional service level push factors configuration
* @param string $twilioSandboxMode The Twilio-Sandbox-Mode HTTP request header
*/
public function __construct(string $friendlyName = Values::NONE, string $push = Values::NONE, string $twilioSandboxMode = Values::NONE) {
$this->options['friendlyName'] = $friendlyName;
$this->options['push'] = $push;
$this->options['twilioSandboxMode'] = $twilioSandboxMode;
}
/**
* A human readable description of this resource, up to 64 characters.
*
* @param string $friendlyName A human readable description of this resource.
* @return $this Fluent Builder
*/
public function setFriendlyName(string $friendlyName): self {
$this->options['friendlyName'] = $friendlyName;
return $this;
}
/**
* The optional service level push factors configuration. If present it must be a json string with the following format: {"notify_service_sid": "ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "include_date": true}
*
* @param string $push Optional service level push factors configuration
* @return $this Fluent Builder
*/
public function setPush(string $push): self {
$this->options['push'] = $push;
return $this;
}
/**
* The Twilio-Sandbox-Mode HTTP request header
*
* @param string $twilioSandboxMode The Twilio-Sandbox-Mode HTTP request header
* @return $this Fluent Builder
*/
public function setTwilioSandboxMode(string $twilioSandboxMode): self {
$this->options['twilioSandboxMode'] = $twilioSandboxMode;
return $this;
}
/**
* Provide a friendly representation
*
* @return string Machine friendly representation
*/
public function __toString(): string {
$options = http_build_query(Values::of($this->options), '', ' ');
return '[Twilio.Authy.V1.UpdateServiceOptions ' . $options . ']';
}
}