## # This code was generated by # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ # # Twilio - Api # This is the public Twilio REST API. # # NOTE: This class is auto generated by OpenAPI Generator. # https://openapi-generator.tech # Do not edit the class manually. # module Twilio module REST class Api < ApiBase class V2010 < Version class AccountContext < InstanceContext class SipList < ListResource class DomainContext < InstanceContext class AuthTypesList < ListResource class AuthTypeRegistrationsList < ListResource ## # Initialize the AuthTypeRegistrationsList # @param [Version] version Version that contains the resource # @return [AuthTypeRegistrationsList] AuthTypeRegistrationsList def initialize(version, account_sid: nil, domain_sid: nil) super(version) # Path Solution @solution = { account_sid: account_sid, domain_sid: domain_sid } @uri = "/Accounts/#{@solution[:account_sid]}/SIP/Domains/#{@solution[:domain_sid]}/Auth/Registrations.json" # Components @credential_list_mappings = nil end ## # Access the credential_list_mappings # @return [AuthRegistrationsCredentialListMappingList] # @return [AuthRegistrationsCredentialListMappingContext] if sid was passed. def credential_list_mappings(sid=:unset) raise ArgumentError, 'sid cannot be nil' if sid.nil? if sid != :unset return AuthRegistrationsCredentialListMappingContext.new(@version, @solution[:account_sid], @solution[:domain_sid],sid ) end @credential_list_mappings ||= AuthRegistrationsCredentialListMappingList.new(@version, account_sid: @solution[:account_sid], domain_sid: @solution[:domain_sid] ) end # Provide a user friendly representation def to_s '#' end end class AuthTypeRegistrationsPage < Page ## # Initialize the AuthTypeRegistrationsPage # @param [Version] version Version that contains the resource # @param [Response] response Response from the API # @param [Hash] solution Path solution for the resource # @return [AuthTypeRegistrationsPage] AuthTypeRegistrationsPage def initialize(version, response, solution) super(version, response) # Path Solution @solution = solution end ## # Build an instance of AuthTypeRegistrationsInstance # @param [Hash] payload Payload response from the API # @return [AuthTypeRegistrationsInstance] AuthTypeRegistrationsInstance def get_instance(payload) AuthTypeRegistrationsInstance.new(@version, payload, account_sid: @solution[:account_sid], domain_sid: @solution[:domain_sid]) end ## # Provide a user friendly representation def to_s '' end end class AuthTypeRegistrationsInstance < InstanceResource ## # Initialize the AuthTypeRegistrationsInstance # @param [Version] version Version that contains the resource # @param [Hash] payload payload that contains response from Twilio # @param [String] account_sid The SID of the # {Account}[https://www.twilio.com/docs/iam/api/account] that created this AuthTypeRegistrations # resource. # @param [String] sid The SID of the Call resource to fetch. # @return [AuthTypeRegistrationsInstance] AuthTypeRegistrationsInstance def initialize(version , account_sid: nil, domain_sid: nil) 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 end end end end