## # This code was generated by # \ / _ _ _| _ _ # | (_)\/(_)(_|\/| |(/_ v1.0.0 # / / # # frozen_string_literal: true module Twilio module REST class Voice < 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 VoicePermissionList < ListResource ## # Initialize the VoicePermissionList # @param [Version] version Version that contains the resource # @return [VoicePermissionList] VoicePermissionList def initialize(version) super(version) # Path Solution @solution = {} # Components @countries = nil @settings = nil @bulk_country_updates = nil end ## # Access the countries # @param [String] iso_code The [ISO country # code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) # @return [CountryList] # @return [CountryContext] if iso_code was passed. def countries(iso_code=:unset) raise ArgumentError, 'iso_code cannot be nil' if iso_code.nil? if iso_code != :unset return CountryContext.new(@version, iso_code, ) end @countries ||= CountryList.new(@version, ) end ## # Access the settings # @return [SettingsList] # @return [SettingsContext] def settings return SettingsContext.new(@version, ) @settings ||= SettingsList.new(@version, ) end ## # Access the bulk_country_updates # @return [BulkCountryUpdateList] # @return [BulkCountryUpdateContext] def bulk_country_updates @bulk_country_updates ||= BulkCountryUpdateList.new(@version, ) 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 VoicePermissionPage < Page ## # Initialize the VoicePermissionPage # @param [Version] version Version that contains the resource # @param [Response] response Response from the API # @param [Hash] solution Path solution for the resource # @return [VoicePermissionPage] VoicePermissionPage def initialize(version, response, solution) super(version, response) # Path Solution @solution = solution end ## # Build an instance of VoicePermissionInstance # @param [Hash] payload Payload response from the API # @return [VoicePermissionInstance] VoicePermissionInstance def get_instance(payload) VoicePermissionInstance.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 VoicePermissionInstance < InstanceResource ## # Initialize the VoicePermissionInstance # @param [Version] version Version that contains the resource # @param [Hash] payload payload that contains response from Twilio # @return [VoicePermissionInstance] VoicePermissionInstance def initialize(version, payload) super(version) end ## # Provide a user friendly representation def to_s "" end ## # Provide a detailed, user friendly representation def inspect "" end end end end end end