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