class Twilio::REST::Autopilot::V1::RestoreAssistantList

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

Initialize the RestoreAssistantList @param [Version] version Version that contains the resource @return [RestoreAssistantList] RestoreAssistantList

Calls superclass method Twilio::REST::ListResource::new
   # File lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb
20 def initialize(version)
21   super(version)
22 
23   # Path Solution
24   @solution = {}
25   @uri = "/Assistants/Restore"
26 end

Public Instance Methods

to_s() click to toggle source

Provide a user friendly representation

   # File lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb
43 def to_s
44   '#<Twilio.Autopilot.V1.RestoreAssistantList>'
45 end
update(assistant: nil) click to toggle source

Update the RestoreAssistantInstance @param [String] assistant The Twilio-provided string that uniquely identifies

the Assistant resource to restore.

@return [RestoreAssistantInstance] Updated RestoreAssistantInstance

   # File lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb
33 def update(assistant: nil)
34   data = Twilio::Values.of({'Assistant' => assistant, })
35 
36   payload = @version.update('POST', @uri, data: data)
37 
38   RestoreAssistantInstance.new(@version, payload, )
39 end