## # This code was generated by # \ / _ _ _| _ _ # | (_)\/(_)(_|\/| |(/_ v1.0.0 # / / module Twilio module REST class Accounts < Domain class V1 < Version class CredentialList < ListResource ## # Initialize the CredentialList # @param [Version] version Version that contains the resource # @return [CredentialList] CredentialList def initialize(version) super(version) # Path Solution @solution = {} # Components @public_key = nil @aws = nil end ## # Access the public_key # @param [String] sid The Credential Sid that uniquely identifies the Credential # to fetch # @return [PublicKeyList] # @return [PublicKeyContext] if sid was passed. def public_key(sid=:unset) raise ArgumentError, 'sid cannot be nil' if sid.nil? if sid != :unset return PublicKeyContext.new(@version, sid) end @public_key ||= PublicKeyList.new(@version) end ## # Access the aws # @param [String] sid The sid # @return [AwsList] # @return [AwsContext] if sid was passed. def aws(sid=:unset) raise ArgumentError, 'sid cannot be nil' if sid.nil? if sid != :unset return AwsContext.new(@version, sid) end @aws ||= AwsList.new(@version) end ## # Provide a user friendly representation def to_s '#' end end class CredentialPage < Page ## # Initialize the CredentialPage # @param [Version] version Version that contains the resource # @param [Response] response Response from the API # @param [Hash] solution Path solution for the resource # @return [CredentialPage] CredentialPage def initialize(version, response, solution) super(version, response) # Path Solution @solution = solution end ## # Build an instance of CredentialInstance # @param [Hash] payload Payload response from the API # @return [CredentialInstance] CredentialInstance def get_instance(payload) CredentialInstance.new(@version, payload) end ## # Provide a user friendly representation def to_s '' end end class CredentialInstance < InstanceResource ## # Initialize the CredentialInstance # @param [Version] version Version that contains the resource # @param [Hash] payload payload that contains response from Twilio # @return [CredentialInstance] CredentialInstance 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