« Twilio/Rest/Numbers/V2/RegulatoryCompliance/Regulation.pm
↑ Summary
Twilio/Rest/Proxy/V1/Service/Session/Participant.pm »
| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||||||||||||||||||||
| 2 | package Twilio::Rest::Video::V1::Room::Transcriptions; | ||||||||||||||||||||
| 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::TranscriptionsList; | ||||||||||||||||||||
| 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 | 4 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 16 | 4 | my ($class, $version, $room_sid) = @_; | |||||||||||||||||||
| 17 | 4 | my $self = $class->SUPER::new($version); | |||||||||||||||||||
| 18 | 4 | $self->{solution} = { room_sid => $room_sid }; | |||||||||||||||||||
| 19 | 4 | $self->{uri} = join q{}, '/Rooms/', Twilio::Serialize::path_segment($room_sid), '/Transcriptions'; | |||||||||||||||||||
| 20 | 4 | return $self; | |||||||||||||||||||
| 21 | } | ||||||||||||||||||||
| 22 | |||||||||||||||||||||
| 23 | 1 | ▶ | sub create { | ||||||||||||||||||
|
Subroutine
create: called CC=2 SCAR=7.0
| |||||||||||||||||||||
| 24 | 1 | my ($self, $options) = @_; | |||||||||||||||||||
| 25 | 1 | ▶ | $options //= {}; | ||||||||||||||||||
|
Condition50%1/2
$options //= {}
MC/DC0%0/1
$options //= {}
$options
Truth table50%1/2
A
A= $options
| |||||||||||||||||||||
| 26 | |||||||||||||||||||||
| 27 | 1 | my $data = { Configuration => Twilio::Serialize::json_object($options->{configuration}), }; | |||||||||||||||||||
| 28 | |||||||||||||||||||||
| 29 | my $response = | ||||||||||||||||||||
| 30 | 1 | $self->{version}->handle_request('POST', $self->{uri}, 'create', { data => $data }); | |||||||||||||||||||
| 31 | return Twilio::Rest::Video::V1::Room::TranscriptionsInstance->new($self->{version}, | ||||||||||||||||||||
| 32 | 1 | $response->get_content, $self->{solution}{room_sid}); | |||||||||||||||||||
| 33 | } | ||||||||||||||||||||
| 34 | |||||||||||||||||||||
| 35 | 0 | ▶ | sub read { | ||||||||||||||||||
|
Subroutine
read: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 36 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 37 | 0 | return $self->read_records(@arguments); | |||||||||||||||||||
| 38 | } | ||||||||||||||||||||
| 39 | |||||||||||||||||||||
| 40 | 0 | ▶ | sub stream { | ||||||||||||||||||
|
Subroutine
stream: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 41 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 42 | 0 | return $self->stream_records(@arguments); | |||||||||||||||||||
| 43 | } | ||||||||||||||||||||
| 44 | |||||||||||||||||||||
| 45 | 1 | ▶ | sub page { | ||||||||||||||||||
|
Subroutine
page: called CC=2 SCAR=7.0
| |||||||||||||||||||||
| 46 | 1 | my ($self, $options, $page_size, $page_token, $page_number) = @_; | |||||||||||||||||||
| 47 | 1 | ▶ | $options //= {}; | ||||||||||||||||||
|
Condition50%1/2
$options //= {}
MC/DC0%0/1
$options //= {}
$options
Truth table50%1/2
A
A= $options
| |||||||||||||||||||||
| 48 | |||||||||||||||||||||
| 49 | 1 | my $params = { | |||||||||||||||||||
| 50 | PageToken => $page_token, | ||||||||||||||||||||
| 51 | Page => $page_number, | ||||||||||||||||||||
| 52 | PageSize => $page_size, | ||||||||||||||||||||
| 53 | }; | ||||||||||||||||||||
| 54 | |||||||||||||||||||||
| 55 | 1 | my $response = $self->{version}->page('GET', $self->{uri}, { params => $params }); | |||||||||||||||||||
| 56 | 1 | return $self->_build_page($response); | |||||||||||||||||||
| 57 | } | ||||||||||||||||||||
| 58 | |||||||||||||||||||||
| 59 | 0 | ▶ | sub get_page { | ||||||||||||||||||
|
Subroutine
get_page: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 60 | 0 | my ($self, $target_url) = @_; | |||||||||||||||||||
| 61 | 0 | my $client = $self->{version}->get_domain->get_client; | |||||||||||||||||||
| 62 | 0 | return $self->_build_page($client->request('GET', $target_url)); | |||||||||||||||||||
| 63 | } | ||||||||||||||||||||
| 64 | |||||||||||||||||||||
| 65 | 1 | ▶ | sub _build_page { | ||||||||||||||||||
|
Subroutine
_build_page: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 66 | 1 | my ($self, $response) = @_; | |||||||||||||||||||
| 67 | return Twilio::Rest::Video::V1::Room::TranscriptionsPage->new($self->{version}, $response, | ||||||||||||||||||||
| 68 | 1 | $self->{solution}); | |||||||||||||||||||
| 69 | } | ||||||||||||||||||||
| 70 | |||||||||||||||||||||
| 71 | 2 | ▶ | sub get_context { | ||||||||||||||||||
|
Subroutine
get_context: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 72 | 2 | my ($self, $ttid) = @_; | |||||||||||||||||||
| 73 | return Twilio::Rest::Video::V1::Room::TranscriptionsContext->new($self->{version}, | ||||||||||||||||||||
| 74 | 2 | $self->{solution}{room_sid}, $ttid); | |||||||||||||||||||
| 75 | } | ||||||||||||||||||||
| 76 | |||||||||||||||||||||
| 77 | package Twilio::Rest::Video::V1::Room::TranscriptionsPage; | ||||||||||||||||||||
| 78 | |||||||||||||||||||||
| 79 | 2 | ▶ | use parent 'Twilio::Page'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 80 | |||||||||||||||||||||
| 81 | 1 | ▶ | sub records_key { return 'transcriptions' } | ||||||||||||||||||
|
Subroutine
records_key: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 82 | |||||||||||||||||||||
| 83 | 1 | ▶ | sub build_instance { | ||||||||||||||||||
|
Subroutine
build_instance: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 84 | 1 | my ($self, $payload) = @_; | |||||||||||||||||||
| 85 | return Twilio::Rest::Video::V1::Room::TranscriptionsInstance->new($self->{version}, $payload, | ||||||||||||||||||||
| 86 | 1 | $self->{solution}{room_sid}); | |||||||||||||||||||
| 87 | } | ||||||||||||||||||||
| 88 | |||||||||||||||||||||
| 89 | package Twilio::Rest::Video::V1::Room::TranscriptionsContext; | ||||||||||||||||||||
| 90 | |||||||||||||||||||||
| 91 | 2 | ▶ | use parent 'Twilio::InstanceContext'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 92 | |||||||||||||||||||||
| 93 | 2 | ▶ | use Twilio::Serialize; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 94 | |||||||||||||||||||||
| 95 | 2 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 96 | 2 | my ($class, $version, $room_sid, $ttid) = @_; | |||||||||||||||||||
| 97 | 2 | my $self = $class->SUPER::new($version); | |||||||||||||||||||
| 98 | 2 | $self->{solution} = { room_sid => $room_sid, ttid => $ttid }; | |||||||||||||||||||
| 99 | 2 | $self->{uri} = join q{}, '/Rooms/', Twilio::Serialize::path_segment($room_sid), | |||||||||||||||||||
| 100 | '/Transcriptions/', Twilio::Serialize::path_segment($ttid); | ||||||||||||||||||||
| 101 | 2 | return $self; | |||||||||||||||||||
| 102 | } | ||||||||||||||||||||
| 103 | |||||||||||||||||||||
| 104 | 1 | ▶ | sub fetch { | ||||||||||||||||||
|
Subroutine
fetch: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 105 | 1 | my ($self) = @_; | |||||||||||||||||||
| 106 | |||||||||||||||||||||
| 107 | 1 | my $response = $self->{version}->handle_request('GET', $self->{uri}, 'fetch'); | |||||||||||||||||||
| 108 | 1 | return $self->_build_instance($response); | |||||||||||||||||||
| 109 | } | ||||||||||||||||||||
| 110 | |||||||||||||||||||||
| 111 | 1 | ▶ | sub update { | ||||||||||||||||||
|
Subroutine
update: called CC=2 SCAR=7.0
| |||||||||||||||||||||
| 112 | 1 | my ($self, $options) = @_; | |||||||||||||||||||
| 113 | 1 | ▶ | $options //= {}; | ||||||||||||||||||
|
Condition50%1/2
$options //= {}
MC/DC0%0/1
$options //= {}
$options
Truth table50%1/2
A
A= $options
| |||||||||||||||||||||
| 114 | |||||||||||||||||||||
| 115 | my $data = { | ||||||||||||||||||||
| 116 | Configuration => Twilio::Serialize::json_object($options->{configuration}), | ||||||||||||||||||||
| 117 | Status => $options->{status}, | ||||||||||||||||||||
| 118 | 1 | }; | |||||||||||||||||||
| 119 | |||||||||||||||||||||
| 120 | my $response = | ||||||||||||||||||||
| 121 | 1 | $self->{version}->handle_request('POST', $self->{uri}, 'update', { data => $data }); | |||||||||||||||||||
| 122 | 1 | return $self->_build_instance($response); | |||||||||||||||||||
| 123 | } | ||||||||||||||||||||
| 124 | |||||||||||||||||||||
| 125 | 2 | ▶ | sub _build_instance { | ||||||||||||||||||
|
Subroutine
_build_instance: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 126 | 2 | my ($self, $response) = @_; | |||||||||||||||||||
| 127 | return Twilio::Rest::Video::V1::Room::TranscriptionsInstance->new( | ||||||||||||||||||||
| 128 | $self->{version}, $response->get_content, | ||||||||||||||||||||
| 129 | $self->{solution}{room_sid}, $self->{solution}{ttid} | ||||||||||||||||||||
| 130 | 2 | ); | |||||||||||||||||||
| 131 | } | ||||||||||||||||||||
| 132 | |||||||||||||||||||||
| 133 | package Twilio::Rest::Video::V1::Room::TranscriptionsInstance; | ||||||||||||||||||||
| 134 | |||||||||||||||||||||
| 135 | 2 | ▶ | use parent 'Twilio::InstanceResource'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 136 | |||||||||||||||||||||
| 137 | 2 | ▶ | use Twilio::Deserialize; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 138 | |||||||||||||||||||||
| 139 | 4 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=2 SCAR=7.0
| |||||||||||||||||||||
| 140 | 4 | my ($class, $version, $payload, $room_sid, $ttid) = @_; | |||||||||||||||||||
| 141 | 4 | my $self = $class->SUPER::new($version, $payload); | |||||||||||||||||||
| 142 | 4 | ▶ | $self->{solution} = { room_sid => $room_sid, ttid => $ttid // $self->{properties}{ttid} }; | ||||||||||||||||||
|
Condition66%2/3
$ttid // $self->{"properties"}{"ttid"}
MC/DC0%0/2
$ttid // $self->{"properties"}{"ttid"}
$ttid
$self->{"properties"}{"ttid"}
Truth table66%2/3
A // B
A= $ttidB= $self->{"properties"}{"ttid"}
| |||||||||||||||||||||
| 143 | 4 | return $self; | |||||||||||||||||||
| 144 | } | ||||||||||||||||||||
| 145 | |||||||||||||||||||||
| 146 | 0 | ▶ | sub fetch { | ||||||||||||||||||
|
Subroutine
fetch: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 147 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 148 | 0 | return $self->_context->fetch(@arguments); | |||||||||||||||||||
| 149 | } | ||||||||||||||||||||
| 150 | |||||||||||||||||||||
| 151 | 0 | ▶ | sub update { | ||||||||||||||||||
|
Subroutine
update: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 152 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 153 | 0 | return $self->_context->update(@arguments); | |||||||||||||||||||
| 154 | } | ||||||||||||||||||||
| 155 | |||||||||||||||||||||
| 156 | 0 | ▶ | sub _context { | ||||||||||||||||||
|
Subroutine
_context: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 157 | 0 | my ($self) = @_; | |||||||||||||||||||
| 158 | return Twilio::Rest::Video::V1::Room::TranscriptionsContext->new( | ||||||||||||||||||||
| 159 | $self->{version}, | ||||||||||||||||||||
| 160 | $self->{solution}{room_sid}, | ||||||||||||||||||||
| 161 | $self->{solution}{ttid} | ||||||||||||||||||||
| 162 | 0 | ); | |||||||||||||||||||
| 163 | } | ||||||||||||||||||||
| 164 | |||||||||||||||||||||
| 165 | 4 | ▶ | sub account_sid { return $_[0]{properties}{account_sid} } | ||||||||||||||||||
|
Subroutine
account_sid: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 166 | 4 | ▶ | sub configuration { return $_[0]{properties}{configuration} } | ||||||||||||||||||
|
Subroutine
configuration: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 167 | 4 | ▶ | sub date_created { return Twilio::Deserialize::date_time($_[0]{properties}{date_created}) } | ||||||||||||||||||
|
Subroutine
date_created: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 168 | 4 | ▶ | sub date_updated { return Twilio::Deserialize::date_time($_[0]{properties}{date_updated}) } | ||||||||||||||||||
|
Subroutine
date_updated: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 169 | 4 | ▶ | sub duration { return $_[0]{properties}{duration} } | ||||||||||||||||||
|
Subroutine
duration: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 170 | 4 | ▶ | sub end_time { return Twilio::Deserialize::date_time($_[0]{properties}{end_time}) } | ||||||||||||||||||
|
Subroutine
end_time: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 171 | 4 | ▶ | sub room_sid { return $_[0]{properties}{room_sid} } | ||||||||||||||||||
|
Subroutine
room_sid: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 172 | 4 | ▶ | sub source_sid { return $_[0]{properties}{source_sid} } | ||||||||||||||||||
|
Subroutine
source_sid: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 173 | 4 | ▶ | sub start_time { return Twilio::Deserialize::date_time($_[0]{properties}{start_time}) } | ||||||||||||||||||
|
Subroutine
start_time: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 174 | 4 | ▶ | sub status { return $_[0]{properties}{status} } | ||||||||||||||||||
|
Subroutine
status: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 175 | 4 | ▶ | sub ttid { return $_[0]{properties}{ttid} } | ||||||||||||||||||
|
Subroutine
ttid: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 176 | 4 | ▶ | sub url { return $_[0]{properties}{url} } | ||||||||||||||||||
|
Subroutine
url: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 177 | |||||||||||||||||||||
| 178 | 2 | 1; | |||||||||||||||||||
| 179 | |||||||||||||||||||||
| 180 | __END__ | ||||||||||||||||||||