Class: Twilio::REST::Api::V2010::AccountContext::SipList
- Inherits:
-
ListResource
- Object
- ListResource
- Twilio::REST::Api::V2010::AccountContext::SipList
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/sip.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb,
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_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,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb
Defined Under Namespace
Classes: CredentialListContext, CredentialListInstance, CredentialListList, CredentialListPage, DomainContext, DomainInstance, DomainList, DomainPage, IpAccessControlListContext, IpAccessControlListInstance, IpAccessControlListList, IpAccessControlListPage
Instance Method Summary collapse
-
#credential_lists(sid = :unset) ⇒ CredentialListList, CredentialListContext
Access the credential_lists.
-
#domains(sid = :unset) ⇒ DomainList, DomainContext
Access the domains.
-
#initialize(version, account_sid: nil) ⇒ SipList
constructor
Initialize the SipList.
-
#ip_access_control_lists(sid = :unset) ⇒ IpAccessControlListList, IpAccessControlListContext
Access the ip_access_control_lists.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, account_sid: nil) ⇒ SipList
Initialize the SipList
28 29 30 31 32 33 34 35 36 37 |
# File 'lib/twilio-ruby/rest/api/v2010/account/sip.rb', line 28 def initialize(version, account_sid: nil) super(version) # Path Solution @solution = { account_sid: account_sid } @uri = "/Accounts/#{@solution[:account_sid]}/SIP.json" # Components @domains = nil @credential_lists = nil @ip_access_control_lists = nil end |
Instance Method Details
#credential_lists(sid = :unset) ⇒ CredentialListList, CredentialListContext
Access the credential_lists
57 58 59 60 61 62 63 64 65 |
# File 'lib/twilio-ruby/rest/api/v2010/account/sip.rb', line 57 def credential_lists(sid=:unset) raise ArgumentError, 'sid cannot be nil' if sid.nil? if sid != :unset return CredentialListContext.new(@version, @solution[:account_sid],sid ) end @credential_lists ||= CredentialListList.new(@version, account_sid: @solution[:account_sid] ) end |
#domains(sid = :unset) ⇒ DomainList, DomainContext
Access the domains
44 45 46 47 48 49 50 51 52 |
# File 'lib/twilio-ruby/rest/api/v2010/account/sip.rb', line 44 def domains(sid=:unset) raise ArgumentError, 'sid cannot be nil' if sid.nil? if sid != :unset return DomainContext.new(@version, @solution[:account_sid],sid ) end @domains ||= DomainList.new(@version, account_sid: @solution[:account_sid] ) end |
#ip_access_control_lists(sid = :unset) ⇒ IpAccessControlListList, IpAccessControlListContext
Access the ip_access_control_lists
70 71 72 73 74 75 76 77 78 |
# File 'lib/twilio-ruby/rest/api/v2010/account/sip.rb', line 70 def ip_access_control_lists(sid=:unset) raise ArgumentError, 'sid cannot be nil' if sid.nil? if sid != :unset return IpAccessControlListContext.new(@version, @solution[:account_sid],sid ) end @ip_access_control_lists ||= IpAccessControlListList.new(@version, account_sid: @solution[:account_sid] ) end |
#to_s ⇒ Object
Provide a user friendly representation
81 82 83 |
# File 'lib/twilio-ruby/rest/api/v2010/account/sip.rb', line 81 def to_s '#<Twilio.Api.V2010.SipList>' end |