class

Twilio::ValidationRequest

Inherits OpenApi::Json / OpenApi::Validatable / JSON::Serializable::Unmapped / JSON::Serializable / Reference / Object

Constants

MAX_LENGTH_FOR_ACCOUNT_SID = 34
MAX_LENGTH_FOR_CALL_SID = 34
MIN_LENGTH_FOR_ACCOUNT_SID = 34
MIN_LENGTH_FOR_CALL_SID = 34
PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
PATTERN_FOR_CALL_SID = /^CA[0-9a-fA-F]{32}$/

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, account_sid : String | Nil = nil, call_sid : String | Nil = nil, friendly_name : String | Nil = nil, phone_number : String | Nil = nil, validation_code : String | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

account_sid

The SID of the Account that created the resource

Source
account_sid=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] account_sid Object to be assigned

Source
account_sid_present=(account_sid_present : Bool)
Source
account_sid_present?
Source
call_sid

The SID of the Call the resource is associated with

Source
call_sid=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] call_sid Object to be assigned

Source
call_sid_present=(call_sid_present : Bool)
Source
call_sid_present?
Source
friendly_name

The string that you assigned to describe the resource

Source
friendly_name=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] friendly_name Object to be assigned

Source
friendly_name_present=(friendly_name_present : Bool)
Source
friendly_name_present?
Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
phone_number

The phone number to verify in E.164 format

Source
phone_number=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] phone_number Object to be assigned

Source
phone_number_present=(phone_number_present : Bool)
Source
phone_number_present?
Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source
validation_code

The 6 digit validation code that someone must enter to validate the Caller ID when phone_number is called

Source
validation_code=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] validation_code Object to be assigned

Source
validation_code_present=(validation_code_present : Bool)
Source
validation_code_present?
Source