class Twilio::REST::Studio::V2::FlowValidateList
Public Class Methods
new(version)
click to toggle source
Initialize the FlowValidateList
@param [Version] version Version
that contains the resource @return [FlowValidateList] FlowValidateList
Calls superclass method
Twilio::REST::ListResource::new
# File lib/twilio-ruby/rest/studio/v2/flow_validate.rb 18 def initialize(version) 19 super(version) 20 21 # Path Solution 22 @solution = {} 23 @uri = "/Flows/Validate" 24 end
Public Instance Methods
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/studio/v2/flow_validate.rb 49 def to_s 50 '#<Twilio.Studio.V2.FlowValidateList>' 51 end
update(friendly_name: nil, status: nil, definition: nil, commit_message: :unset)
click to toggle source
Update the FlowValidateInstance
@param [String] friendly_name The string that you assigned to describe the Flow. @param [flow_validate.Status] status The status of the Flow. Can be: `draft` or
`published`.
@param [Hash] definition JSON representation of flow definition. @param [String] commit_message Description of change made in the revision. @return [FlowValidateInstance] Updated FlowValidateInstance
# File lib/twilio-ruby/rest/studio/v2/flow_validate.rb 34 def update(friendly_name: nil, status: nil, definition: nil, commit_message: :unset) 35 data = Twilio::Values.of({ 36 'FriendlyName' => friendly_name, 37 'Status' => status, 38 'Definition' => Twilio.serialize_object(definition), 39 'CommitMessage' => commit_message, 40 }) 41 42 payload = @version.update('POST', @uri, data: data) 43 44 FlowValidateInstance.new(@version, payload, ) 45 end