« Twilio/Rest/Video/V1/Room/Participant/SubscribedTrack.pm
↑ Summary
Twilio/Rest/Conversations/V1/Conversation/Message/DeliveryReceipt.pm »
| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||||||||||||
| 2 | package Twilio::Rest::Conversations::V1::Configuration; | ||||||||||||
| 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::Conversations::V1::ConfigurationContext; | ||||||||||||
| 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 | 4 | ▶ | sub new { | ||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||
| 16 | 4 | my ($class, $version) = @_; | |||||||||||
| 17 | 4 | my $self = $class->SUPER::new($version); | |||||||||||
| 18 | 4 | $self->{solution} = {}; | |||||||||||
| 19 | 4 | $self->{uri} = '/Configuration'; | |||||||||||
| 20 | 4 | return $self; | |||||||||||
| 21 | } | ||||||||||||
| 22 | |||||||||||||
| 23 | 1 | ▶ | sub fetch { | ||||||||||
|
Subroutine
fetch: called CC=1 SCAR=0.0
| |||||||||||||
| 24 | 1 | my ($self) = @_; | |||||||||||
| 25 | |||||||||||||
| 26 | 1 | my $response = $self->{version}->handle_request('GET', $self->{uri}, 'fetch'); | |||||||||||
| 27 | 1 | return $self->_build_instance($response); | |||||||||||
| 28 | } | ||||||||||||
| 29 | |||||||||||||
| 30 | 1 | ▶ | sub update { | ||||||||||
|
Subroutine
update: called CC=2 SCAR=7.0
| |||||||||||||
| 31 | 1 | my ($self, $options) = @_; | |||||||||||
| 32 | 1 | ▶ | $options //= {}; | ||||||||||
|
Condition50%1/2
$options //= {}
MC/DC0%0/1
$options //= {}
$options
Truth table50%1/2
A
A= $options
| |||||||||||||
| 33 | |||||||||||||
| 34 | my $data = { | ||||||||||||
| 35 | DefaultChatServiceSid => $options->{default_chat_service_sid}, | ||||||||||||
| 36 | DefaultClosedTimer => $options->{default_closed_timer}, | ||||||||||||
| 37 | DefaultInactiveTimer => $options->{default_inactive_timer}, | ||||||||||||
| 38 | DefaultMessagingServiceSid => $options->{default_messaging_service_sid}, | ||||||||||||
| 39 | 1 | }; | |||||||||||
| 40 | |||||||||||||
| 41 | my $response = | ||||||||||||
| 42 | 1 | $self->{version}->handle_request('POST', $self->{uri}, 'update', { data => $data }); | |||||||||||
| 43 | 1 | return $self->_build_instance($response); | |||||||||||
| 44 | } | ||||||||||||
| 45 | |||||||||||||
| 46 | 2 | ▶ | sub _build_instance { | ||||||||||
|
Subroutine
_build_instance: called CC=1 SCAR=0.0
| |||||||||||||
| 47 | 2 | my ($self, $response) = @_; | |||||||||||
| 48 | return Twilio::Rest::Conversations::V1::ConfigurationInstance->new($self->{version}, | ||||||||||||
| 49 | 2 | $response->get_content); | |||||||||||
| 50 | } | ||||||||||||
| 51 | |||||||||||||
| 52 | 2 | ▶ | sub webhooks { | ||||||||||
|
Subroutine
webhooks: called CC=1 SCAR=0.0
| |||||||||||||
| 53 | 2 | my ($self) = @_; | |||||||||||
| 54 | 2 | require Twilio::Rest::Conversations::V1::Configuration::Webhook; | |||||||||||
| 55 | 2 | return Twilio::Rest::Conversations::V1::Configuration::WebhookContext->new($self->{version}); | |||||||||||
| 56 | } | ||||||||||||
| 57 | |||||||||||||
| 58 | package Twilio::Rest::Conversations::V1::ConfigurationInstance; | ||||||||||||
| 59 | |||||||||||||
| 60 | 2 | ▶ | use parent 'Twilio::InstanceResource'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 61 | |||||||||||||
| 62 | 2 | ▶ | use Twilio::Deserialize; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 63 | |||||||||||||
| 64 | 2 | ▶ | sub new { | ||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||
| 65 | 2 | my ($class, $version, $payload) = @_; | |||||||||||
| 66 | 2 | my $self = $class->SUPER::new($version, $payload); | |||||||||||
| 67 | 2 | $self->{solution} = {}; | |||||||||||
| 68 | 2 | return $self; | |||||||||||
| 69 | } | ||||||||||||
| 70 | |||||||||||||
| 71 | 0 | ▶ | sub fetch { | ||||||||||
|
Subroutine
fetch: not called CC=1 SCAR=6.9
| |||||||||||||
| 72 | 0 | my ($self, @arguments) = @_; | |||||||||||
| 73 | 0 | return $self->_context->fetch(@arguments); | |||||||||||
| 74 | } | ||||||||||||
| 75 | |||||||||||||
| 76 | 0 | ▶ | sub update { | ||||||||||
|
Subroutine
update: not called CC=1 SCAR=6.9
| |||||||||||||
| 77 | 0 | my ($self, @arguments) = @_; | |||||||||||
| 78 | 0 | return $self->_context->update(@arguments); | |||||||||||
| 79 | } | ||||||||||||
| 80 | |||||||||||||
| 81 | 0 | ▶ | sub webhooks { | ||||||||||
|
Subroutine
webhooks: not called CC=1 SCAR=6.9
| |||||||||||||
| 82 | 0 | my ($self, @arguments) = @_; | |||||||||||
| 83 | 0 | return $self->_context->webhooks(@arguments); | |||||||||||
| 84 | } | ||||||||||||
| 85 | |||||||||||||
| 86 | 0 | ▶ | sub _context { | ||||||||||
|
Subroutine
_context: not called CC=1 SCAR=6.9
| |||||||||||||
| 87 | 0 | my ($self) = @_; | |||||||||||
| 88 | 0 | return Twilio::Rest::Conversations::V1::ConfigurationContext->new($self->{version}); | |||||||||||
| 89 | } | ||||||||||||
| 90 | |||||||||||||
| 91 | 2 | ▶ | sub account_sid { return $_[0]{properties}{account_sid} } | ||||||||||
|
Subroutine
account_sid: called CC=1 SCAR=0.0
| |||||||||||||
| 92 | 2 | ▶ | sub default_chat_service_sid { return $_[0]{properties}{default_chat_service_sid} } | ||||||||||
|
Subroutine
default_chat_service_sid: called CC=1 SCAR=0.0
| |||||||||||||
| 93 | 2 | ▶ | sub default_closed_timer { return $_[0]{properties}{default_closed_timer} } | ||||||||||
|
Subroutine
default_closed_timer: called CC=1 SCAR=0.0
| |||||||||||||
| 94 | 2 | ▶ | sub default_inactive_timer { return $_[0]{properties}{default_inactive_timer} } | ||||||||||
|
Subroutine
default_inactive_timer: called CC=1 SCAR=0.0
| |||||||||||||
| 95 | 2 | ▶ | sub default_messaging_service_sid { return $_[0]{properties}{default_messaging_service_sid} } | ||||||||||
|
Subroutine
default_messaging_service_sid: called CC=1 SCAR=0.0
| |||||||||||||
| 96 | 2 | ▶ | sub links { return $_[0]{properties}{links} } | ||||||||||
|
Subroutine
links: called CC=1 SCAR=0.0
| |||||||||||||
| 97 | 2 | ▶ | sub url { return $_[0]{properties}{url} } | ||||||||||
|
Subroutine
url: called CC=1 SCAR=0.0
| |||||||||||||
| 98 | |||||||||||||
| 99 | 2 | 1; | |||||||||||
| 100 | |||||||||||||
| 101 | __END__ | ||||||||||||