Class: Twilio::REST::Api::V2010::AccountContext::SipList::DomainContext::AuthTypesList::AuthTypeCallsList

Inherits:
ListResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.rb

Defined Under Namespace

Classes: AuthCallsCredentialListMappingContext, AuthCallsCredentialListMappingInstance, AuthCallsCredentialListMappingList, AuthCallsCredentialListMappingPage, AuthCallsIpAccessControlListMappingContext, AuthCallsIpAccessControlListMappingInstance, AuthCallsIpAccessControlListMappingList, AuthCallsIpAccessControlListMappingPage

Instance Method Summary collapse

Constructor Details

#initialize(version, account_sid: nil, domain_sid: nil) ⇒ AuthTypeCallsList

Initialize the AuthTypeCallsList

Parameters:

  • version (Version)

    Version that contains the resource



30
31
32
33
34
35
36
37
38
# File 'lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb', line 30

def initialize(version, account_sid: nil, domain_sid: nil)
    super(version)
    # Path Solution
    @solution = { account_sid: , domain_sid: domain_sid }
    @uri = "/Accounts/#{@solution[:account_sid]}/SIP/Domains/#{@solution[:domain_sid]}/Auth/Calls.json"
    # Components
    @credential_list_mappings = nil
    @ip_access_control_list_mappings = nil
end

Instance Method Details

#credential_list_mappings(sid = :unset) ⇒ AuthCallsCredentialListMappingList, AuthCallsCredentialListMappingContext

Access the credential_list_mappings

Returns:

Raises:

  • (ArgumentError)


45
46
47
48
49
50
51
52
53
# File 'lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb', line 45

def credential_list_mappings(sid=:unset)
    raise ArgumentError, 'sid cannot be nil' if sid.nil?

    if sid != :unset
        return AuthCallsCredentialListMappingContext.new(@version, @solution[:account_sid], @solution[:domain_sid],sid )
    end

    @credential_list_mappings ||= AuthCallsCredentialListMappingList.new(@version, account_sid: @solution[:account_sid], domain_sid: @solution[:domain_sid] )
end

#ip_access_control_list_mappings(sid = :unset) ⇒ AuthCallsIpAccessControlListMappingList, AuthCallsIpAccessControlListMappingContext

Access the ip_access_control_list_mappings

Returns:

Raises:

  • (ArgumentError)


58
59
60
61
62
63
64
65
66
# File 'lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb', line 58

def ip_access_control_list_mappings(sid=:unset)
    raise ArgumentError, 'sid cannot be nil' if sid.nil?

    if sid != :unset
        return AuthCallsIpAccessControlListMappingContext.new(@version, @solution[:account_sid], @solution[:domain_sid],sid )
    end

    @ip_access_control_list_mappings ||= AuthCallsIpAccessControlListMappingList.new(@version, account_sid: @solution[:account_sid], domain_sid: @solution[:domain_sid] )
end

#to_sObject

Provide a user friendly representation



69
70
71
# File 'lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb', line 69

def to_s
    '#<Twilio.Api.V2010.AuthTypeCallsList>'
end