| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||||||||||
| 2 | package Twilio::Rest::Webhooks::V1; | ||||||||||
| 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 | ▶ | use parent 'Twilio::ApiV1Version'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 3 | our $VERSION = '2.001'; | |||||||||
| 10 | |||||||||||
| 11 | 25 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 12 | 25 | my ($class, $domain) = @_; | |||||||||
| 13 | 25 | my $self = $class->SUPER::new($domain); | |||||||||
| 14 | 25 | $self->{version} = 'v1'; | |||||||||
| 15 | 25 | return $self; | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | # Each of these objects is built on demand, for the reason given in Twilio::Rest::Client. | ||||||||||
| 19 | 5 | ▶ | sub auth_profiles { | ||||||||
|
Subroutine
auth_profiles: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 20 | 5 | my ($self, $auth_profile_id) = @_; | |||||||||
| 21 | 5 | require Twilio::Rest::Webhooks::V1::AuthProfile; | |||||||||
| 22 | 5 | my $list = Twilio::Rest::Webhooks::V1::AuthProfileList->new($self); | |||||||||
| 23 | 5 | ▶ | return defined $auth_profile_id ? $list->get_context($auth_profile_id) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 1 | ▶ | sub edge_zones { | ||||||||
|
Subroutine
edge_zones: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 27 | 1 | my ($self) = @_; | |||||||||
| 28 | 1 | require Twilio::Rest::Webhooks::V1::EdgeZone; | |||||||||
| 29 | 1 | return Twilio::Rest::Webhooks::V1::EdgeZoneList->new($self); | |||||||||
| 30 | } | ||||||||||
| 31 | |||||||||||
| 32 | 2 | ▶ | sub operations { | ||||||||
|
Subroutine
operations: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 33 | 2 | my ($self, $operation_id) = @_; | |||||||||
| 34 | 2 | require Twilio::Rest::Webhooks::V1::Operation; | |||||||||
| 35 | 2 | my $list = Twilio::Rest::Webhooks::V1::OperationList->new($self); | |||||||||
| 36 | 2 | ▶ | return defined $operation_id ? $list->get_context($operation_id) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 37 | } | ||||||||||
| 38 | |||||||||||
| 39 | 6 | ▶ | sub rules { | ||||||||
|
Subroutine
rules: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 40 | 6 | my ($self, $rule_id) = @_; | |||||||||
| 41 | 6 | require Twilio::Rest::Webhooks::V1::Rule; | |||||||||
| 42 | 6 | my $list = Twilio::Rest::Webhooks::V1::RuleList->new($self); | |||||||||
| 43 | 6 | ▶ | return defined $rule_id ? $list->get_context($rule_id) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 44 | } | ||||||||||
| 45 | |||||||||||
| 46 | 5 | ▶ | sub settings { | ||||||||
|
Subroutine
settings: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 47 | 5 | my ($self, $setting_id) = @_; | |||||||||
| 48 | 5 | require Twilio::Rest::Webhooks::V1::Setting; | |||||||||
| 49 | 5 | my $list = Twilio::Rest::Webhooks::V1::SettingList->new($self); | |||||||||
| 50 | 5 | ▶ | return defined $setting_id ? $list->get_context($setting_id) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 51 | } | ||||||||||
| 52 | |||||||||||
| 53 | 5 | ▶ | sub shared_keys { | ||||||||
|
Subroutine
shared_keys: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 54 | 5 | my ($self, $shared_key_id) = @_; | |||||||||
| 55 | 5 | require Twilio::Rest::Webhooks::V1::SharedKey; | |||||||||
| 56 | 5 | my $list = Twilio::Rest::Webhooks::V1::SharedKeyList->new($self); | |||||||||
| 57 | 5 | ▶ | return defined $shared_key_id ? $list->get_context($shared_key_id) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 58 | } | ||||||||||
| 59 | |||||||||||
| 60 | 1 | ▶ | sub tests { | ||||||||
|
Subroutine
tests: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 61 | 1 | my ($self) = @_; | |||||||||
| 62 | 1 | require Twilio::Rest::Webhooks::V1::Test; | |||||||||
| 63 | 1 | return Twilio::Rest::Webhooks::V1::TestList->new($self); | |||||||||
| 64 | } | ||||||||||
| 65 | |||||||||||
| 66 | 3 | 1; | |||||||||
| 67 | |||||||||||
| 68 | __END__ | ||||||||||