class Twilio::REST::Autopilot::V1::RestoreAssistantInstance
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.
Public Class Methods
Initialize the RestoreAssistantInstance
@param [Version] version Version
that contains the resource @param [Hash] payload payload that contains response from Twilio
@return [RestoreAssistantInstance] RestoreAssistantInstance
Twilio::REST::InstanceResource::new
# File lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb 87 def initialize(version, payload) 88 super(version) 89 90 # Marshaled Properties 91 @properties = { 92 'account_sid' => payload['account_sid'], 93 'sid' => payload['sid'], 94 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']), 95 'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']), 96 'unique_name' => payload['unique_name'], 97 'friendly_name' => payload['friendly_name'], 98 'needs_model_build' => payload['needs_model_build'], 99 'latest_model_build_sid' => payload['latest_model_build_sid'], 100 'log_queries' => payload['log_queries'], 101 'development_stage' => payload['development_stage'], 102 'callback_url' => payload['callback_url'], 103 'callback_events' => payload['callback_events'], 104 } 105 end
Public Instance Methods
@return [String] The SID of the Account that created the resource
# File lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb 109 def account_sid 110 @properties['account_sid'] 111 end
@return [String] Reserved
# File lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb 175 def callback_events 176 @properties['callback_events'] 177 end
@return [String] Reserved
# File lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb 169 def callback_url 170 @properties['callback_url'] 171 end
@return [Time] The RFC 2822 date and time in GMT when the resource was created
# File lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb 121 def date_created 122 @properties['date_created'] 123 end
@return [Time] The RFC 2822 date and time in GMT when the resource was last updated
# File lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb 127 def date_updated 128 @properties['date_updated'] 129 end
@return [String] A string describing the state of the assistant.
# File lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb 163 def development_stage 164 @properties['development_stage'] 165 end
@return [String] The string that you assigned to describe the resource
# File lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb 139 def friendly_name 140 @properties['friendly_name'] 141 end
Provide a detailed, user friendly representation
# File lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb 187 def inspect 188 "<Twilio.Autopilot.V1.RestoreAssistantInstance>" 189 end
@return [String] Reserved
# File lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb 151 def latest_model_build_sid 152 @properties['latest_model_build_sid'] 153 end
@return [Boolean] Whether queries should be logged and kept after training
# File lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb 157 def log_queries 158 @properties['log_queries'] 159 end
@return [Boolean] Whether model needs to be rebuilt
# File lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb 145 def needs_model_build 146 @properties['needs_model_build'] 147 end
@return [String] The unique string that identifies the resource
# File lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb 115 def sid 116 @properties['sid'] 117 end
Provide a user friendly representation
# File lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb 181 def to_s 182 "<Twilio.Autopilot.V1.RestoreAssistantInstance>" 183 end
@return [String] An application-defined string that uniquely identifies the resource
# File lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb 133 def unique_name 134 @properties['unique_name'] 135 end