| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||||||||||
| 2 | package Twilio::Rest::Api::V2010::Account::Sip::Domain::AuthTypes::AuthTypeCalls; | ||||||||||
| 3 | |||||||||||
| 4 | 3 | ▶ | use 5.016; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 3 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 3 | our $VERSION = '2.001'; | |||||||||
| 8 | |||||||||||
| 9 | package Twilio::Rest::Api::V2010::Account::Sip::Domain::AuthTypes::AuthTypeCallsList; | ||||||||||
| 10 | |||||||||||
| 11 | 3 | ▶ | use parent 'Twilio::ListResource'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | |||||||||||
| 13 | 3 | ▶ | use Twilio::Serialize; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 14 | |||||||||||
| 15 | 9 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||
| 16 | 9 | my ($class, $version, $account_sid, $domain_sid) = @_; | |||||||||
| 17 | 9 | my $self = $class->SUPER::new($version); | |||||||||
| 18 | 9 | $self->{solution} = { account_sid => $account_sid, domain_sid => $domain_sid }; | |||||||||
| 19 | 9 | $self->{uri} = join q{}, '/Accounts/', Twilio::Serialize::path_segment($account_sid), | |||||||||
| 20 | '/SIP/Domains/', Twilio::Serialize::path_segment($domain_sid), '/Auth/Calls.json'; | ||||||||||
| 21 | 9 | return $self; | |||||||||
| 22 | } | ||||||||||
| 23 | |||||||||||
| 24 | 5 | ▶ | sub credential_list_mappings { | ||||||||
|
Subroutine
credential_list_mappings: called CC=2 SCAR=6.9
| |||||||||||
| 25 | 5 | my ($self, $sid) = @_; | |||||||||
| 26 | require | ||||||||||
| 27 | 5 | Twilio::Rest::Api::V2010::Account::Sip::Domain::AuthTypes::AuthTypeCalls::AuthCallsCredentialListMapping; | |||||||||
| 28 | my $list = | ||||||||||
| 29 | Twilio::Rest::Api::V2010::Account::Sip::Domain::AuthTypes::AuthTypeCalls::AuthCallsCredentialListMappingList | ||||||||||
| 30 | ->new( | ||||||||||
| 31 | $self->{version}, | ||||||||||
| 32 | $self->{solution}{account_sid}, | ||||||||||
| 33 | $self->{solution}{domain_sid} | ||||||||||
| 34 | 5 | ); | |||||||||
| 35 | 5 | ▶ | return defined $sid ? $list->get_context($sid) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 36 | } | ||||||||||
| 37 | |||||||||||
| 38 | 4 | ▶ | sub ip_access_control_list_mappings { | ||||||||
|
Subroutine
ip_access_control_list_mappings: called CC=2 SCAR=6.9
| |||||||||||
| 39 | 4 | my ($self, $sid) = @_; | |||||||||
| 40 | require | ||||||||||
| 41 | 4 | Twilio::Rest::Api::V2010::Account::Sip::Domain::AuthTypes::AuthTypeCalls::AuthCallsIpAccessControlListMapping; | |||||||||
| 42 | my $list = | ||||||||||
| 43 | Twilio::Rest::Api::V2010::Account::Sip::Domain::AuthTypes::AuthTypeCalls::AuthCallsIpAccessControlListMappingList | ||||||||||
| 44 | ->new( | ||||||||||
| 45 | $self->{version}, | ||||||||||
| 46 | $self->{solution}{account_sid}, | ||||||||||
| 47 | $self->{solution}{domain_sid} | ||||||||||
| 48 | 4 | ); | |||||||||
| 49 | 4 | ▶ | return defined $sid ? $list->get_context($sid) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 50 | } | ||||||||||
| 51 | |||||||||||
| 52 | 3 | 1; | |||||||||
| 53 | |||||||||||
| 54 | __END__ | ||||||||||