Class: Twilio::REST::Api::V2010::AccountContext::SipList::DomainContext::AuthTypesList::AuthTypeRegistrationsList
- Inherits:
-
ListResource
- Object
- ListResource
- Twilio::REST::Api::V2010::AccountContext::SipList::DomainContext::AuthTypesList::AuthTypeRegistrationsList
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb
Defined Under Namespace
Classes: AuthRegistrationsCredentialListMappingContext, AuthRegistrationsCredentialListMappingInstance, AuthRegistrationsCredentialListMappingList, AuthRegistrationsCredentialListMappingPage
Instance Method Summary collapse
-
#credential_list_mappings(sid = :unset) ⇒ AuthRegistrationsCredentialListMappingList, AuthRegistrationsCredentialListMappingContext
Access the credential_list_mappings.
-
#initialize(version, account_sid: nil, domain_sid: nil) ⇒ AuthTypeRegistrationsList
constructor
Initialize the AuthTypeRegistrationsList.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, account_sid: nil, domain_sid: nil) ⇒ AuthTypeRegistrationsList
Initialize the AuthTypeRegistrationsList
30 31 32 33 34 35 36 37 |
# File 'lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations.rb', line 30 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 |
Instance Method Details
#credential_list_mappings(sid = :unset) ⇒ AuthRegistrationsCredentialListMappingList, AuthRegistrationsCredentialListMappingContext
Access the credential_list_mappings
44 45 46 47 48 49 50 51 52 |
# File 'lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations.rb', line 44 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 |
#to_s ⇒ Object
Provide a user friendly representation
55 56 57 |
# File 'lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations.rb', line 55 def to_s '#<Twilio.Api.V2010.AuthTypeRegistrationsList>' end |