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

new(version, payload) click to toggle source

Initialize the RestoreAssistantInstance @param [Version] version Version that contains the resource @param [Hash] payload payload that contains response from Twilio @return [RestoreAssistantInstance] RestoreAssistantInstance

Calls superclass method 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

account_sid() click to toggle source

@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
callback_events() click to toggle source

@return [String] Reserved

    # File lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb
175 def callback_events
176   @properties['callback_events']
177 end
callback_url() click to toggle source

@return [String] Reserved

    # File lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb
169 def callback_url
170   @properties['callback_url']
171 end
date_created() click to toggle source

@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
date_updated() click to toggle source

@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
development_stage() click to toggle source

@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
friendly_name() click to toggle source

@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
inspect() click to toggle source

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
latest_model_build_sid() click to toggle source

@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
log_queries() click to toggle source

@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
needs_model_build() click to toggle source

@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
sid() click to toggle source

@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
to_s() click to toggle source

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
unique_name() click to toggle source

@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