Class: Twilio::REST::Autopilot::V1::RestoreAssistantInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Autopilot::V1::RestoreAssistantInstance
- Defined in:
- lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb
Instance Method Summary collapse
-
#account_sid ⇒ String
The SID of the [Account](www.twilio.com/docs/iam/api/account) that created the Assistant resource.
-
#callback_events ⇒ String
Reserved.
-
#callback_url ⇒ String
Reserved.
-
#date_created ⇒ Time
The date and time in GMT when the resource was created specified in [RFC 2822](www.ietf.org/rfc/rfc2822.txt) format.
-
#date_updated ⇒ Time
The date and time in GMT when the resource was last updated specified in [RFC 2822](www.ietf.org/rfc/rfc2822.txt) format.
-
#development_stage ⇒ String
A string describing the state of the assistant.
-
#friendly_name ⇒ String
The string that you assigned to describe the resource.
-
#initialize(version, payload) ⇒ RestoreAssistantInstance
constructor
Initialize the RestoreAssistantInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#latest_model_build_sid ⇒ String
Reserved.
-
#log_queries ⇒ Boolean
Whether queries should be logged and kept after training.
-
#needs_model_build ⇒ Boolean
Whether model needs to be rebuilt.
-
#sid ⇒ String
The unique string that we created to identify the Assistant resource.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#unique_name ⇒ String
An application-defined string that uniquely identifies the resource.
Constructor Details
#initialize(version, payload) ⇒ RestoreAssistantInstance
Initialize the RestoreAssistantInstance
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 98 def initialize(version, payload ) super(version) # Marshaled Properties @properties = { 'account_sid' => payload['account_sid'], 'sid' => payload['sid'], 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']), 'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']), 'unique_name' => payload['unique_name'], 'friendly_name' => payload['friendly_name'], 'needs_model_build' => payload['needs_model_build'], 'latest_model_build_sid' => payload['latest_model_build_sid'], 'log_queries' => payload['log_queries'], 'development_stage' => payload['development_stage'], 'callback_url' => payload['callback_url'], 'callback_events' => payload['callback_events'], } end |
Instance Method Details
#account_sid ⇒ String
Returns The SID of the [Account](www.twilio.com/docs/iam/api/account) that created the Assistant resource.
121 122 123 |
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 121 def account_sid @properties['account_sid'] end |
#callback_events ⇒ String
Returns Reserved.
187 188 189 |
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 187 def callback_events @properties['callback_events'] end |
#callback_url ⇒ String
Returns Reserved.
181 182 183 |
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 181 def callback_url @properties['callback_url'] end |
#date_created ⇒ Time
Returns The date and time in GMT when the resource was created specified in [RFC 2822](www.ietf.org/rfc/rfc2822.txt) format.
133 134 135 |
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 133 def date_created @properties['date_created'] end |
#date_updated ⇒ Time
Returns The date and time in GMT when the resource was last updated specified in [RFC 2822](www.ietf.org/rfc/rfc2822.txt) format.
139 140 141 |
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 139 def date_updated @properties['date_updated'] end |
#development_stage ⇒ String
Returns A string describing the state of the assistant.
175 176 177 |
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 175 def development_stage @properties['development_stage'] end |
#friendly_name ⇒ String
Returns The string that you assigned to describe the resource. It is not unique and can be up to 255 characters long.
151 152 153 |
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 151 def friendly_name @properties['friendly_name'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
199 200 201 |
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 199 def inspect "<Twilio.Autopilot.V1.RestoreAssistantInstance>" end |
#latest_model_build_sid ⇒ String
Returns Reserved.
163 164 165 |
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 163 def latest_model_build_sid @properties['latest_model_build_sid'] end |
#log_queries ⇒ Boolean
Returns Whether queries should be logged and kept after training. Can be: ‘true` or `false` and defaults to `true`. If `true`, queries are stored for 30 days, and then deleted. If `false`, no queries are stored.
169 170 171 |
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 169 def log_queries @properties['log_queries'] end |
#needs_model_build ⇒ Boolean
Returns Whether model needs to be rebuilt.
157 158 159 |
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 157 def needs_model_build @properties['needs_model_build'] end |
#sid ⇒ String
Returns The unique string that we created to identify the Assistant resource.
127 128 129 |
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 127 def sid @properties['sid'] end |
#to_s ⇒ Object
Provide a user friendly representation
193 194 195 |
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 193 def to_s "<Twilio.Autopilot.V1.RestoreAssistantInstance>" end |
#unique_name ⇒ String
Returns An application-defined string that uniquely identifies the resource. It can be used in place of the resource’s ‘sid` in the URL to address the resource.
145 146 147 |
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 145 def unique_name @properties['unique_name'] end |