« Twilio/Rest/Studio/V2/Flow/Execution/ExecutionContext.pm
↑ Summary
Twilio/Rest/Serverless/V1/Service/Function/FunctionVersion/FunctionVersionContent.pm »
| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||||||||||||
| 2 | package Twilio::Rest::Api::V2010::Account::Address::DependentPhoneNumber; | ||||||||||||
| 3 | |||||||||||||
| 4 | 2 | ▶ | use 5.016; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | 2 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | |||||||||||||
| 7 | 2 | our $VERSION = '2.001'; | |||||||||||
| 8 | |||||||||||||
| 9 | package Twilio::Rest::Api::V2010::Account::Address::DependentPhoneNumberList; | ||||||||||||
| 10 | |||||||||||||
| 11 | 2 | ▶ | use parent 'Twilio::ListResource'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 12 | |||||||||||||
| 13 | 2 | ▶ | use Twilio::Serialize; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 14 | |||||||||||||
| 15 | 1 | ▶ | sub new { | ||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||
| 16 | 1 | my ($class, $version, $account_sid, $address_sid) = @_; | |||||||||||
| 17 | 1 | my $self = $class->SUPER::new($version); | |||||||||||
| 18 | 1 | $self->{solution} = { account_sid => $account_sid, address_sid => $address_sid }; | |||||||||||
| 19 | 1 | $self->{uri} = join q{}, '/Accounts/', Twilio::Serialize::path_segment($account_sid), | |||||||||||
| 20 | '/Addresses/', Twilio::Serialize::path_segment($address_sid), '/DependentPhoneNumbers.json'; | ||||||||||||
| 21 | 1 | return $self; | |||||||||||
| 22 | } | ||||||||||||
| 23 | |||||||||||||
| 24 | 0 | ▶ | sub read { | ||||||||||
|
Subroutine
read: not called CC=1 SCAR=6.9
| |||||||||||||
| 25 | 0 | my ($self, @arguments) = @_; | |||||||||||
| 26 | 0 | return $self->read_records(@arguments); | |||||||||||
| 27 | } | ||||||||||||
| 28 | |||||||||||||
| 29 | 0 | ▶ | sub stream { | ||||||||||
|
Subroutine
stream: not called CC=1 SCAR=6.9
| |||||||||||||
| 30 | 0 | my ($self, @arguments) = @_; | |||||||||||
| 31 | 0 | return $self->stream_records(@arguments); | |||||||||||
| 32 | } | ||||||||||||
| 33 | |||||||||||||
| 34 | 1 | ▶ | sub page { | ||||||||||
|
Subroutine
page: called CC=2 SCAR=7.0
| |||||||||||||
| 35 | 1 | my ($self, $options, $page_size, $page_token, $page_number) = @_; | |||||||||||
| 36 | 1 | ▶ | $options //= {}; | ||||||||||
|
Condition50%1/2
$options //= {}
MC/DC0%0/1
$options //= {}
$options
Truth table50%1/2
A
A= $options
| |||||||||||||
| 37 | |||||||||||||
| 38 | 1 | my $params = { | |||||||||||
| 39 | PageToken => $page_token, | ||||||||||||
| 40 | Page => $page_number, | ||||||||||||
| 41 | PageSize => $page_size, | ||||||||||||
| 42 | }; | ||||||||||||
| 43 | |||||||||||||
| 44 | 1 | my $response = $self->{version}->page('GET', $self->{uri}, { params => $params }); | |||||||||||
| 45 | 1 | return $self->_build_page($response); | |||||||||||
| 46 | } | ||||||||||||
| 47 | |||||||||||||
| 48 | 0 | ▶ | sub get_page { | ||||||||||
|
Subroutine
get_page: not called CC=1 SCAR=6.9
| |||||||||||||
| 49 | 0 | my ($self, $target_url) = @_; | |||||||||||
| 50 | 0 | my $client = $self->{version}->get_domain->get_client; | |||||||||||
| 51 | 0 | return $self->_build_page($client->request('GET', $target_url)); | |||||||||||
| 52 | } | ||||||||||||
| 53 | |||||||||||||
| 54 | 1 | ▶ | sub _build_page { | ||||||||||
|
Subroutine
_build_page: called CC=1 SCAR=0.0
| |||||||||||||
| 55 | 1 | my ($self, $response) = @_; | |||||||||||
| 56 | return Twilio::Rest::Api::V2010::Account::Address::DependentPhoneNumberPage->new($self->{version}, | ||||||||||||
| 57 | 1 | $response, $self->{solution}); | |||||||||||
| 58 | } | ||||||||||||
| 59 | |||||||||||||
| 60 | package Twilio::Rest::Api::V2010::Account::Address::DependentPhoneNumberPage; | ||||||||||||
| 61 | |||||||||||||
| 62 | 2 | ▶ | use parent 'Twilio::Page'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 63 | |||||||||||||
| 64 | 1 | ▶ | sub records_key { return 'dependent_phone_numbers' } | ||||||||||
|
Subroutine
records_key: called CC=1 SCAR=0.0
| |||||||||||||
| 65 | |||||||||||||
| 66 | 1 | ▶ | sub build_instance { | ||||||||||
|
Subroutine
build_instance: called CC=1 SCAR=0.0
| |||||||||||||
| 67 | 1 | my ($self, $payload) = @_; | |||||||||||
| 68 | return Twilio::Rest::Api::V2010::Account::Address::DependentPhoneNumberInstance->new( | ||||||||||||
| 69 | $self->{version}, $payload, | ||||||||||||
| 70 | $self->{solution}{account_sid}, | ||||||||||||
| 71 | $self->{solution}{address_sid} | ||||||||||||
| 72 | 1 | ); | |||||||||||
| 73 | } | ||||||||||||
| 74 | |||||||||||||
| 75 | package Twilio::Rest::Api::V2010::Account::Address::DependentPhoneNumberInstance; | ||||||||||||
| 76 | |||||||||||||
| 77 | 2 | ▶ | use parent 'Twilio::InstanceResource'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 78 | |||||||||||||
| 79 | 2 | ▶ | use Twilio::Deserialize; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 80 | |||||||||||||
| 81 | 1 | ▶ | sub new { | ||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||
| 82 | 1 | my ($class, $version, $payload, $account_sid, $address_sid) = @_; | |||||||||||
| 83 | 1 | my $self = $class->SUPER::new($version, $payload); | |||||||||||
| 84 | 1 | $self->{solution} = { account_sid => $account_sid, address_sid => $address_sid }; | |||||||||||
| 85 | 1 | return $self; | |||||||||||
| 86 | } | ||||||||||||
| 87 | |||||||||||||
| 88 | 1 | ▶ | sub account_sid { return $_[0]{properties}{account_sid} } | ||||||||||
|
Subroutine
account_sid: called CC=1 SCAR=0.0
| |||||||||||||
| 89 | 1 | ▶ | sub address_requirements { return $_[0]{properties}{address_requirements} } | ||||||||||
|
Subroutine
address_requirements: called CC=1 SCAR=0.0
| |||||||||||||
| 90 | 1 | ▶ | sub api_version { return $_[0]{properties}{api_version} } | ||||||||||
|
Subroutine
api_version: called CC=1 SCAR=0.0
| |||||||||||||
| 91 | 1 | ▶ | sub capabilities { return $_[0]{properties}{capabilities} } | ||||||||||
|
Subroutine
capabilities: called CC=1 SCAR=0.0
| |||||||||||||
| 92 | 1 | ▶ | sub date_created { return Twilio::Deserialize::date_time($_[0]{properties}{date_created}) } | ||||||||||
|
Subroutine
date_created: called CC=1 SCAR=0.0
| |||||||||||||
| 93 | 1 | ▶ | sub date_updated { return Twilio::Deserialize::date_time($_[0]{properties}{date_updated}) } | ||||||||||
|
Subroutine
date_updated: called CC=1 SCAR=0.0
| |||||||||||||
| 94 | 1 | ▶ | sub emergency_address_sid { return $_[0]{properties}{emergency_address_sid} } | ||||||||||
|
Subroutine
emergency_address_sid: called CC=1 SCAR=0.0
| |||||||||||||
| 95 | 1 | ▶ | sub emergency_status { return $_[0]{properties}{emergency_status} } | ||||||||||
|
Subroutine
emergency_status: called CC=1 SCAR=0.0
| |||||||||||||
| 96 | 1 | ▶ | sub friendly_name { return $_[0]{properties}{friendly_name} } | ||||||||||
|
Subroutine
friendly_name: called CC=1 SCAR=0.0
| |||||||||||||
| 97 | 1 | ▶ | sub phone_number { return $_[0]{properties}{phone_number} } | ||||||||||
|
Subroutine
phone_number: called CC=1 SCAR=0.0
| |||||||||||||
| 98 | 1 | ▶ | sub sid { return $_[0]{properties}{sid} } | ||||||||||
|
Subroutine
sid: called CC=1 SCAR=0.0
| |||||||||||||
| 99 | 1 | ▶ | sub sms_application_sid { return $_[0]{properties}{sms_application_sid} } | ||||||||||
|
Subroutine
sms_application_sid: called CC=1 SCAR=0.0
| |||||||||||||
| 100 | 1 | ▶ | sub sms_fallback_method { return $_[0]{properties}{sms_fallback_method} } | ||||||||||
|
Subroutine
sms_fallback_method: called CC=1 SCAR=0.0
| |||||||||||||
| 101 | 1 | ▶ | sub sms_fallback_url { return $_[0]{properties}{sms_fallback_url} } | ||||||||||
|
Subroutine
sms_fallback_url: called CC=1 SCAR=0.0
| |||||||||||||
| 102 | 1 | ▶ | sub sms_method { return $_[0]{properties}{sms_method} } | ||||||||||
|
Subroutine
sms_method: called CC=1 SCAR=0.0
| |||||||||||||
| 103 | 1 | ▶ | sub sms_url { return $_[0]{properties}{sms_url} } | ||||||||||
|
Subroutine
sms_url: called CC=1 SCAR=0.0
| |||||||||||||
| 104 | 1 | ▶ | sub status_callback { return $_[0]{properties}{status_callback} } | ||||||||||
|
Subroutine
status_callback: called CC=1 SCAR=0.0
| |||||||||||||
| 105 | 1 | ▶ | sub status_callback_method { return $_[0]{properties}{status_callback_method} } | ||||||||||
|
Subroutine
status_callback_method: called CC=1 SCAR=0.0
| |||||||||||||
| 106 | 1 | ▶ | sub trunk_sid { return $_[0]{properties}{trunk_sid} } | ||||||||||
|
Subroutine
trunk_sid: called CC=1 SCAR=0.0
| |||||||||||||
| 107 | 1 | ▶ | sub uri { return $_[0]{properties}{uri} } | ||||||||||
|
Subroutine
uri: called CC=1 SCAR=0.0
| |||||||||||||
| 108 | 1 | ▶ | sub voice_application_sid { return $_[0]{properties}{voice_application_sid} } | ||||||||||
|
Subroutine
voice_application_sid: called CC=1 SCAR=0.0
| |||||||||||||
| 109 | 1 | ▶ | sub voice_caller_id_lookup { return $_[0]{properties}{voice_caller_id_lookup} } | ||||||||||
|
Subroutine
voice_caller_id_lookup: called CC=1 SCAR=0.0
| |||||||||||||
| 110 | 1 | ▶ | sub voice_fallback_method { return $_[0]{properties}{voice_fallback_method} } | ||||||||||
|
Subroutine
voice_fallback_method: called CC=1 SCAR=0.0
| |||||||||||||
| 111 | 1 | ▶ | sub voice_fallback_url { return $_[0]{properties}{voice_fallback_url} } | ||||||||||
|
Subroutine
voice_fallback_url: called CC=1 SCAR=0.0
| |||||||||||||
| 112 | 1 | ▶ | sub voice_method { return $_[0]{properties}{voice_method} } | ||||||||||
|
Subroutine
voice_method: called CC=1 SCAR=0.0
| |||||||||||||
| 113 | 1 | ▶ | sub voice_url { return $_[0]{properties}{voice_url} } | ||||||||||
|
Subroutine
voice_url: called CC=1 SCAR=0.0
| |||||||||||||
| 114 | |||||||||||||
| 115 | 2 | 1; | |||||||||||
| 116 | |||||||||||||
| 117 | __END__ | ||||||||||||