« Twilio/Rest/Verify/V2/Service/VerificationCheck.pm
↑ Summary
Twilio/Rest/FlexApi/V1/Configuration.pm »
| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||
| 2 | package Twilio::Rest::Video::V1::Room::Participant::Anonymize; | ||
| 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::Video::V1::Room::Participant::AnonymizeContext; | ||
| 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, $room_sid, $sid) = @_; | |
| 17 | 1 | my $self = $class->SUPER::new($version); | |
| 18 | 1 | $self->{solution} = { room_sid => $room_sid, sid => $sid }; | |
| 19 | 1 | $self->{uri} = join q{}, '/Rooms/', Twilio::Serialize::path_segment($room_sid), '/Participants/', | |
| 20 | Twilio::Serialize::path_segment($sid), '/Anonymize'; | ||
| 21 | 1 | return $self; | |
| 22 | } | ||
| 23 | |||
| 24 | 1 | ▶ | sub update { |
|
Subroutine
update: called CC=1 SCAR=0.0
| |||
| 25 | 1 | my ($self) = @_; | |
| 26 | |||
| 27 | 1 | my $data = {}; | |
| 28 | |||
| 29 | my $response = | ||
| 30 | 1 | $self->{version}->handle_request('POST', $self->{uri}, 'update', { data => $data }); | |
| 31 | 1 | return $self->_build_instance($response); | |
| 32 | } | ||
| 33 | |||
| 34 | 1 | ▶ | sub _build_instance { |
|
Subroutine
_build_instance: called CC=1 SCAR=0.0
| |||
| 35 | 1 | my ($self, $response) = @_; | |
| 36 | return Twilio::Rest::Video::V1::Room::Participant::AnonymizeInstance->new( | ||
| 37 | $self->{version}, $response->get_content, | ||
| 38 | $self->{solution}{room_sid}, $self->{solution}{sid} | ||
| 39 | 1 | ); | |
| 40 | } | ||
| 41 | |||
| 42 | package Twilio::Rest::Video::V1::Room::Participant::AnonymizeInstance; | ||
| 43 | |||
| 44 | 2 | ▶ | use parent 'Twilio::InstanceResource'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 45 | |||
| 46 | 2 | ▶ | use Twilio::Deserialize; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 47 | |||
| 48 | 1 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
| |||
| 49 | 1 | my ($class, $version, $payload, $room_sid, $sid) = @_; | |
| 50 | 1 | my $self = $class->SUPER::new($version, $payload); | |
| 51 | 1 | $self->{solution} = { room_sid => $room_sid, sid => $sid }; | |
| 52 | 1 | return $self; | |
| 53 | } | ||
| 54 | |||
| 55 | 0 | ▶ | sub update { |
|
Subroutine
update: not called CC=1 SCAR=6.9
| |||
| 56 | 0 | my ($self, @arguments) = @_; | |
| 57 | 0 | return $self->_context->update(@arguments); | |
| 58 | } | ||
| 59 | |||
| 60 | 0 | ▶ | sub _context { |
|
Subroutine
_context: not called CC=1 SCAR=6.9
| |||
| 61 | 0 | my ($self) = @_; | |
| 62 | return Twilio::Rest::Video::V1::Room::Participant::AnonymizeContext->new( | ||
| 63 | $self->{version}, | ||
| 64 | $self->{solution}{room_sid}, | ||
| 65 | $self->{solution}{sid} | ||
| 66 | 0 | ); | |
| 67 | } | ||
| 68 | |||
| 69 | 1 | ▶ | sub account_sid { return $_[0]{properties}{account_sid} } |
|
Subroutine
account_sid: called CC=1 SCAR=0.0
| |||
| 70 | 1 | ▶ | sub date_created { return Twilio::Deserialize::date_time($_[0]{properties}{date_created}) } |
|
Subroutine
date_created: called CC=1 SCAR=0.0
| |||
| 71 | 1 | ▶ | sub date_updated { return Twilio::Deserialize::date_time($_[0]{properties}{date_updated}) } |
|
Subroutine
date_updated: called CC=1 SCAR=0.0
| |||
| 72 | 1 | ▶ | sub duration { return $_[0]{properties}{duration} } |
|
Subroutine
duration: called CC=1 SCAR=0.0
| |||
| 73 | 1 | ▶ | sub end_time { return Twilio::Deserialize::date_time($_[0]{properties}{end_time}) } |
|
Subroutine
end_time: called CC=1 SCAR=0.0
| |||
| 74 | 1 | ▶ | sub identity { return $_[0]{properties}{identity} } |
|
Subroutine
identity: called CC=1 SCAR=0.0
| |||
| 75 | 1 | ▶ | sub room_sid { return $_[0]{properties}{room_sid} } |
|
Subroutine
room_sid: called CC=1 SCAR=0.0
| |||
| 76 | 1 | ▶ | sub sid { return $_[0]{properties}{sid} } |
|
Subroutine
sid: called CC=1 SCAR=0.0
| |||
| 77 | 1 | ▶ | sub start_time { return Twilio::Deserialize::date_time($_[0]{properties}{start_time}) } |
|
Subroutine
start_time: called CC=1 SCAR=0.0
| |||
| 78 | 1 | ▶ | sub status { return $_[0]{properties}{status} } |
|
Subroutine
status: called CC=1 SCAR=0.0
| |||
| 79 | 1 | ▶ | sub url { return $_[0]{properties}{url} } |
|
Subroutine
url: called CC=1 SCAR=0.0
| |||
| 80 | |||
| 81 | 2 | 1; | |
| 82 | |||
| 83 | __END__ | ||