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/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/ip_access_control_list/ip_address.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_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.
-
#regions ⇒ RegionList, RegionContext
Access the regions.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, account_sid: nil) ⇒ SipList
Initialize the SipList
19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/twilio-ruby/rest/api/v2010/account/sip.rb', line 19 def initialize(version, account_sid: nil) super(version) # Path Solution @solution = { account_sid: account_sid } # Components @domains = nil @regions = nil @ip_access_control_lists = nil @credential_lists = nil end |
Instance Method Details
#credential_lists(sid = :unset) ⇒ CredentialListList, CredentialListContext
Access the credential_lists
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/twilio-ruby/rest/api/v2010/account/sip.rb', line 95 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
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/twilio-ruby/rest/api/v2010/account/sip.rb', line 39 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
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/twilio-ruby/rest/api/v2010/account/sip.rb', line 73 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 |
#regions ⇒ RegionList, RegionContext
Access the regions
60 61 62 63 64 65 |
# File 'lib/twilio-ruby/rest/api/v2010/account/sip.rb', line 60 def regions @regions ||= RegionList.new( @version, account_sid: @solution[:account_sid], ) end |
#to_s ⇒ Object
Provide a user friendly representation
114 115 116 |
# File 'lib/twilio-ruby/rest/api/v2010/account/sip.rb', line 114 def to_s '#<Twilio.Api.V2010.SipList>' end |