Class: Twilio::REST::Autopilot::V1::RestoreAssistantList

Inherits:
ListResource
  • Object
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) ⇒ RestoreAssistantList

Initialize the RestoreAssistantList

Parameters:

  • version (Version)

    Version that contains the resource


20
21
22
23
24
25
26
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 20

def initialize(version)
  super(version)

  # Path Solution
  @solution = {}
  @uri = "/Assistants/Restore"
end

Instance Method Details

#to_sObject

Provide a user friendly representation


43
44
45
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 43

def to_s
  '#<Twilio.Autopilot.V1.RestoreAssistantList>'
end

#update(assistant: nil) ⇒ RestoreAssistantInstance

Update the RestoreAssistantInstance

Parameters:

  • assistant (String) (defaults to: nil)

    The Twilio-provided string that uniquely identifies the Assistant resource to restore.

Returns:


33
34
35
36
37
38
39
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 33

def update(assistant: nil)
  data = Twilio::Values.of({'Assistant' => assistant, })

  payload = @version.update('POST', @uri, data: data)

  RestoreAssistantInstance.new(@version, payload, )
end