« Twilio/Rest/Verify/V2/Service/Entity/Challenge/Notification.pm
↑ Summary
Twilio/Rest/Messaging/V1/RequestManagedCert.pm »
| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||
| 2 | package Twilio::Rest::Messaging::V1::DomainConfigMessagingService; | ||
| 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::Messaging::V1::DomainConfigMessagingServiceContext; | ||
| 10 | |||
| 11 | 2 | ▶ | use parent 'Twilio::InstanceContext'; |
|
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, $messaging_service_sid) = @_; | |
| 17 | 1 | my $self = $class->SUPER::new($version); | |
| 18 | 1 | $self->{solution} = { messaging_service_sid => $messaging_service_sid }; | |
| 19 | 1 | $self->{uri} = join q{}, '/LinkShortening/MessagingService/', | |
| 20 | Twilio::Serialize::path_segment($messaging_service_sid), '/DomainConfig'; | ||
| 21 | 1 | return $self; | |
| 22 | } | ||
| 23 | |||
| 24 | 1 | ▶ | sub fetch { |
|
Subroutine
fetch: called CC=1 SCAR=0.0
| |||
| 25 | 1 | my ($self) = @_; | |
| 26 | |||
| 27 | 1 | my $response = $self->{version}->handle_request('GET', $self->{uri}, 'fetch'); | |
| 28 | 1 | return $self->_build_instance($response); | |
| 29 | } | ||
| 30 | |||
| 31 | 1 | ▶ | sub _build_instance { |
|
Subroutine
_build_instance: called CC=1 SCAR=0.0
| |||
| 32 | 1 | my ($self, $response) = @_; | |
| 33 | return Twilio::Rest::Messaging::V1::DomainConfigMessagingServiceInstance->new($self->{version}, | ||
| 34 | 1 | $response->get_content, $self->{solution}{messaging_service_sid}); | |
| 35 | } | ||
| 36 | |||
| 37 | package Twilio::Rest::Messaging::V1::DomainConfigMessagingServiceInstance; | ||
| 38 | |||
| 39 | 2 | ▶ | use parent 'Twilio::InstanceResource'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 40 | |||
| 41 | 2 | ▶ | use Twilio::Deserialize; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 42 | |||
| 43 | 1 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
| |||
| 44 | 1 | my ($class, $version, $payload, $messaging_service_sid) = @_; | |
| 45 | 1 | my $self = $class->SUPER::new($version, $payload); | |
| 46 | 1 | $self->{solution} = { messaging_service_sid => $messaging_service_sid }; | |
| 47 | 1 | return $self; | |
| 48 | } | ||
| 49 | |||
| 50 | 0 | ▶ | sub fetch { |
|
Subroutine
fetch: not called CC=1 SCAR=6.9
| |||
| 51 | 0 | my ($self, @arguments) = @_; | |
| 52 | 0 | return $self->_context->fetch(@arguments); | |
| 53 | } | ||
| 54 | |||
| 55 | 0 | ▶ | sub _context { |
|
Subroutine
_context: not called CC=1 SCAR=6.9
| |||
| 56 | 0 | my ($self) = @_; | |
| 57 | return Twilio::Rest::Messaging::V1::DomainConfigMessagingServiceContext->new($self->{version}, | ||
| 58 | 0 | $self->{solution}{messaging_service_sid}); | |
| 59 | } | ||
| 60 | |||
| 61 | 1 | ▶ | sub callback_url { return $_[0]{properties}{callback_url} } |
|
Subroutine
callback_url: called CC=1 SCAR=0.0
| |||
| 62 | 1 | ▶ | sub config_sid { return $_[0]{properties}{config_sid} } |
|
Subroutine
config_sid: called CC=1 SCAR=0.0
| |||
| 63 | 1 | ▶ | sub continue_on_failure { return $_[0]{properties}{continue_on_failure} } |
|
Subroutine
continue_on_failure: called CC=1 SCAR=0.0
| |||
| 64 | 1 | ▶ | sub date_created { return Twilio::Deserialize::date_time($_[0]{properties}{date_created}) } |
|
Subroutine
date_created: called CC=1 SCAR=0.0
| |||
| 65 | 1 | ▶ | sub date_updated { return Twilio::Deserialize::date_time($_[0]{properties}{date_updated}) } |
|
Subroutine
date_updated: called CC=1 SCAR=0.0
| |||
| 66 | 1 | ▶ | sub domain_sid { return $_[0]{properties}{domain_sid} } |
|
Subroutine
domain_sid: called CC=1 SCAR=0.0
| |||
| 67 | 1 | ▶ | sub fallback_url { return $_[0]{properties}{fallback_url} } |
|
Subroutine
fallback_url: called CC=1 SCAR=0.0
| |||
| 68 | 1 | ▶ | sub messaging_service_sid { return $_[0]{properties}{messaging_service_sid} } |
|
Subroutine
messaging_service_sid: called CC=1 SCAR=0.0
| |||
| 69 | 1 | ▶ | sub url { return $_[0]{properties}{url} } |
|
Subroutine
url: called CC=1 SCAR=0.0
| |||
| 70 | |||
| 71 | 2 | 1; | |
| 72 | |||
| 73 | __END__ | ||