Class: Twilio::REST::Autopilot::V1::RestoreAssistantInstance

Inherits:
InstanceResource show all
Defined in:
lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb

Overview

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 [email protected]

Instance Method Summary collapse

Constructor Details

#initialize(version, payload) ⇒ RestoreAssistantInstance

Initialize the RestoreAssistantInstance

Parameters:

  • version (Version)

    Version that contains the resource

  • payload (Hash)

    payload that contains response from Twilio


87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 87

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_sidString

Returns The SID of the Account that created the resource.

Returns:

  • (String)

    The SID of the Account that created the resource


109
110
111
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 109

def 
  @properties['account_sid']
end

#callback_eventsString

Returns Reserved.

Returns:

  • (String)

    Reserved


175
176
177
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 175

def callback_events
  @properties['callback_events']
end

#callback_urlString

Returns Reserved.

Returns:

  • (String)

    Reserved


169
170
171
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 169

def callback_url
  @properties['callback_url']
end

#date_createdTime

Returns The RFC 2822 date and time in GMT when the resource was created.

Returns:

  • (Time)

    The RFC 2822 date and time in GMT when the resource was created


121
122
123
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 121

def date_created
  @properties['date_created']
end

#date_updatedTime

Returns The RFC 2822 date and time in GMT when the resource was last updated.

Returns:

  • (Time)

    The RFC 2822 date and time in GMT when the resource was last updated


127
128
129
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 127

def date_updated
  @properties['date_updated']
end

#development_stageString

Returns A string describing the state of the assistant.

Returns:

  • (String)

    A string describing the state of the assistant.


163
164
165
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 163

def development_stage
  @properties['development_stage']
end

#friendly_nameString

Returns The string that you assigned to describe the resource.

Returns:

  • (String)

    The string that you assigned to describe the resource


139
140
141
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 139

def friendly_name
  @properties['friendly_name']
end

#inspectObject

Provide a detailed, user friendly representation


187
188
189
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 187

def inspect
  "<Twilio.Autopilot.V1.RestoreAssistantInstance>"
end

#latest_model_build_sidString

Returns Reserved.

Returns:

  • (String)

    Reserved


151
152
153
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 151

def latest_model_build_sid
  @properties['latest_model_build_sid']
end

#log_queriesBoolean

Returns Whether queries should be logged and kept after training.

Returns:

  • (Boolean)

    Whether queries should be logged and kept after training


157
158
159
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 157

def log_queries
  @properties['log_queries']
end

#needs_model_buildBoolean

Returns Whether model needs to be rebuilt.

Returns:

  • (Boolean)

    Whether model needs to be rebuilt


145
146
147
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 145

def needs_model_build
  @properties['needs_model_build']
end

#sidString

Returns The unique string that identifies the resource.

Returns:

  • (String)

    The unique string that identifies the resource


115
116
117
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 115

def sid
  @properties['sid']
end

#to_sObject

Provide a user friendly representation


181
182
183
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 181

def to_s
  "<Twilio.Autopilot.V1.RestoreAssistantInstance>"
end

#unique_nameString

Returns An application-defined string that uniquely identifies the resource.

Returns:

  • (String)

    An application-defined string that uniquely identifies the resource


133
134
135
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 133

def unique_name
  @properties['unique_name']
end