class Twilio::REST::Api::V2010::AccountContext::SipList::DomainContext::AuthTypesList::AuthTypeRegistrationsList
Public Class Methods
new(version, account_sid: nil, domain_sid: nil)
click to toggle source
Initialize the AuthTypeRegistrationsList
@param [Version] version Version
that contains the resource @param [String] account_sid The SID of the
{Account}[https://www.twilio.com/docs/iam/api/account] that created the SipDomain resource.
@param [String] domain_sid The unique string that that we created to identify
the SipDomain resource.
@return [AuthTypeRegistrationsList] AuthTypeRegistrationsList
Calls superclass method
Twilio::REST::ListResource::new
# File lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping.rb 27 def initialize(version, account_sid: nil, domain_sid: nil) 28 super(version) 29 30 # Path Solution 31 @solution = {account_sid: account_sid, domain_sid: domain_sid} 32 33 # Components 34 @credential_list_mappings = nil 35 end
Public Instance Methods
credential_list_mappings(sid=:unset)
click to toggle source
Access the credential_list_mappings
@param [String] sid The Twilio-provided string that uniquely identifies the
CredentialListMapping resource to fetch.
@return [AuthRegistrationsCredentialListMappingList] @return [AuthRegistrationsCredentialListMappingContext] if sid was passed.
# File lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping.rb 43 def credential_list_mappings(sid=:unset) 44 raise ArgumentError, 'sid cannot be nil' if sid.nil? 45 46 if sid != :unset 47 return AuthRegistrationsCredentialListMappingContext.new( 48 @version, 49 @solution[:account_sid], 50 @solution[:domain_sid], 51 sid, 52 ) 53 end 54 55 @credential_list_mappings ||= AuthRegistrationsCredentialListMappingList.new( 56 @version, 57 account_sid: @solution[:account_sid], 58 domain_sid: @solution[:domain_sid], 59 ) 60 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping.rb 64 def to_s 65 '#<Twilio.Api.V2010.AuthTypeRegistrationsList>' 66 end