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



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



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

def 
  @properties['account_sid']
end

#callback_eventsString



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

def callback_events
  @properties['callback_events']
end

#callback_urlString



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

def callback_url
  @properties['callback_url']
end

#date_createdTime



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

def date_created
  @properties['date_created']
end

#date_updatedTime



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

def date_updated
  @properties['date_updated']
end

#development_stageString



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

def development_stage
  @properties['development_stage']
end

#friendly_nameString



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



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



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



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



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



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

def unique_name
  @properties['unique_name']
end