« Twilio/Rest/Numbers/V1/PortingWebhookConfiguration.pm
↑ Summary
Twilio/Rest/Numbers/V1/SenderIdRegistration.pm »
| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||
| 2 | package Twilio::Rest::Numbers::V1::PortingWebhookConfigurationDelete; | ||
| 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::Numbers::V1::PortingWebhookConfigurationDeleteList; | ||
| 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) = @_; | |
| 17 | 1 | my $self = $class->SUPER::new($version); | |
| 18 | 1 | $self->{solution} = {}; | |
| 19 | 1 | $self->{uri} = '/Porting/Configuration/Webhook'; | |
| 20 | 1 | return $self; | |
| 21 | } | ||
| 22 | |||
| 23 | 1 | ▶ | sub get_context { |
|
Subroutine
get_context: called CC=1 SCAR=0.0
| |||
| 24 | 1 | my ($self, $webhook_type) = @_; | |
| 25 | return Twilio::Rest::Numbers::V1::PortingWebhookConfigurationDeleteContext->new($self->{version}, | ||
| 26 | 1 | $webhook_type); | |
| 27 | } | ||
| 28 | |||
| 29 | package Twilio::Rest::Numbers::V1::PortingWebhookConfigurationDeleteContext; | ||
| 30 | |||
| 31 | 2 | ▶ | use parent 'Twilio::InstanceContext'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 32 | |||
| 33 | 2 | ▶ | use Twilio::Serialize; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 34 | |||
| 35 | 1 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
| |||
| 36 | 1 | my ($class, $version, $webhook_type) = @_; | |
| 37 | 1 | my $self = $class->SUPER::new($version); | |
| 38 | 1 | $self->{solution} = { webhook_type => $webhook_type }; | |
| 39 | 1 | $self->{uri} = join q{}, '/Porting/Configuration/Webhook/', | |
| 40 | Twilio::Serialize::path_segment($webhook_type); | ||
| 41 | 1 | return $self; | |
| 42 | } | ||
| 43 | |||
| 44 | 1 | ▶ | sub delete { |
|
Subroutine
delete: called CC=1 SCAR=0.0
| |||
| 45 | 1 | my ($self) = @_; | |
| 46 | 1 | $self->{version}->handle_request('DELETE', $self->{uri}, 'delete'); | |
| 47 | 1 | return 1; | |
| 48 | } | ||
| 49 | |||
| 50 | 2 | 1; | |
| 51 | |||
| 52 | __END__ | ||