Class: Twilio::REST::Studio::V2::FlowValidateList

Inherits:
ListResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/studio/v2/flow_validate.rb

Overview

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

Instance Method Summary collapse

Constructor Details

#initialize(version) ⇒ FlowValidateList

Initialize the FlowValidateList

Parameters:

  • version (Version)

    Version that contains the resource



20
21
22
23
24
25
26
# File 'lib/twilio-ruby/rest/studio/v2/flow_validate.rb', line 20

def initialize(version)
  super(version)

  # Path Solution
  @solution = {}
  @uri = "/Flows/Validate"
end

Instance Method Details

#to_sObject

Provide a user friendly representation



50
51
52
# File 'lib/twilio-ruby/rest/studio/v2/flow_validate.rb', line 50

def to_s
  '#<Twilio.Studio.V2.FlowValidateList>'
end

#update(friendly_name: nil, status: nil, definition: nil, commit_message: :unset) ⇒ FlowValidateInstance

Update the FlowValidateInstance

Parameters:

  • friendly_name (String) (defaults to: nil)

    The friendly_name

  • status (flow_validate.Status) (defaults to: nil)

    The status

  • definition (Hash) (defaults to: nil)

    The definition

  • commit_message (String) (defaults to: :unset)

    The commit_message

Returns:



35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/twilio-ruby/rest/studio/v2/flow_validate.rb', line 35

def update(friendly_name: nil, status: nil, definition: nil, commit_message: :unset)
  data = Twilio::Values.of({
      'FriendlyName' => friendly_name,
      'Status' => status,
      'Definition' => Twilio.serialize_object(definition),
      'CommitMessage' => commit_message,
  })

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

  FlowValidateInstance.new(@version, payload, )
end