## # This code was generated by # \ / _ _ _| _ _ # | (_)\/(_)(_|\/| |(/_ v1.0.0 # / / # # frozen_string_literal: true module Twilio module REST class FlexApi < Domain class V1 < Version ## # 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. class InsightsSettingsCommentList < ListResource ## # Initialize the InsightsSettingsCommentList # @param [Version] version Version that contains the resource # @return [InsightsSettingsCommentList] InsightsSettingsCommentList def initialize(version) super(version) # Path Solution @solution = {} @uri = "/Insights/QM/Settings/CommentTags" end ## # Fetch the InsightsSettingsCommentInstance # @param [String] token The Token HTTP request header # @return [InsightsSettingsCommentInstance] Fetched InsightsSettingsCommentInstance def fetch(token: :unset) headers = Twilio::Values.of({'Token' => token, }) payload = @version.fetch('GET', @uri, headers: headers) InsightsSettingsCommentInstance.new(@version, payload, ) end ## # Provide a user friendly representation def to_s '#' end end ## # 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. class InsightsSettingsCommentPage < Page ## # Initialize the InsightsSettingsCommentPage # @param [Version] version Version that contains the resource # @param [Response] response Response from the API # @param [Hash] solution Path solution for the resource # @return [InsightsSettingsCommentPage] InsightsSettingsCommentPage def initialize(version, response, solution) super(version, response) # Path Solution @solution = solution end ## # Build an instance of InsightsSettingsCommentInstance # @param [Hash] payload Payload response from the API # @return [InsightsSettingsCommentInstance] InsightsSettingsCommentInstance def get_instance(payload) InsightsSettingsCommentInstance.new(@version, payload, ) end ## # Provide a user friendly representation def to_s '' end end ## # 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. class InsightsSettingsCommentInstance < InstanceResource ## # Initialize the InsightsSettingsCommentInstance # @param [Version] version Version that contains the resource # @param [Hash] payload payload that contains response from Twilio # @return [InsightsSettingsCommentInstance] InsightsSettingsCommentInstance def initialize(version, payload) super(version) # Marshaled Properties @properties = { 'account_sid' => payload['account_sid'], 'comments' => payload['comments'], 'url' => payload['url'], } end ## # @return [String] The SID of the Account that created the resource and owns this Flex Insights def account_sid @properties['account_sid'] end ## # @return [Hash] The comments def comments @properties['comments'] end ## # @return [String] The url def url @properties['url'] end ## # Provide a user friendly representation def to_s "" end ## # Provide a detailed, user friendly representation def inspect "" end end end end end end