## # This code was generated by # \ / _ _ _| _ _ # | (_)\/(_)(_|\/| |(/_ v1.0.0 # / / # # frozen_string_literal: true module Twilio module REST class Studio < Domain class V2 < Version ## # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution. class FlowValidateList < ListResource ## # Initialize the FlowValidateList # @param [Version] version Version that contains the resource # @return [FlowValidateList] FlowValidateList def initialize(version) super(version) # Path Solution @solution = {} @uri = "/Flows/Validate" end ## # Update the FlowValidateInstance # @param [String] friendly_name The friendly_name # @param [flow_validate.Status] status The status # @param [Hash] definition The definition # @param [String] commit_message The commit_message # @return [FlowValidateInstance] Updated FlowValidateInstance 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 ## # Provide a user friendly representation def to_s '#' end end ## # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution. class FlowValidatePage < Page ## # Initialize the FlowValidatePage # @param [Version] version Version that contains the resource # @param [Response] response Response from the API # @param [Hash] solution Path solution for the resource # @return [FlowValidatePage] FlowValidatePage def initialize(version, response, solution) super(version, response) # Path Solution @solution = solution end ## # Build an instance of FlowValidateInstance # @param [Hash] payload Payload response from the API # @return [FlowValidateInstance] FlowValidateInstance def get_instance(payload) FlowValidateInstance.new(@version, payload, ) end ## # Provide a user friendly representation def to_s '' end end ## # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution. class FlowValidateInstance < InstanceResource ## # Initialize the FlowValidateInstance # @param [Version] version Version that contains the resource # @param [Hash] payload payload that contains response from Twilio # @return [FlowValidateInstance] FlowValidateInstance def initialize(version, payload) super(version) # Marshaled Properties @properties = {'valid' => payload['valid'], } end ## # @return [Boolean] The valid def valid @properties['valid'] end ## # Provide a user friendly representation def to_s "" end ## # Provide a detailed, user friendly representation def inspect "" end end end end end end