« Twilio/Rest/FlexApi/V1/PluginConfiguration/ConfiguredPlugin.pm
↑ Summary
Twilio/Rest/Supersim/V1/EsimProfile.pm »
| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||||||||||||||||||||
| 2 | package Twilio::Rest::Intelligence::V2::Transcript::OperatorResult; | ||||||||||||||||||||
| 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::Intelligence::V2::Transcript::OperatorResultList; | ||||||||||||||||||||
| 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 | 2 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 16 | 2 | my ($class, $version, $transcript_sid) = @_; | |||||||||||||||||||
| 17 | 2 | my $self = $class->SUPER::new($version); | |||||||||||||||||||
| 18 | 2 | $self->{solution} = { transcript_sid => $transcript_sid }; | |||||||||||||||||||
| 19 | 2 | $self->{uri} = join q{}, '/Transcripts/', Twilio::Serialize::path_segment($transcript_sid), | |||||||||||||||||||
| 20 | '/OperatorResults'; | ||||||||||||||||||||
| 21 | 2 | return $self; | |||||||||||||||||||
| 22 | } | ||||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | 0 | ▶ | sub read { | ||||||||||||||||||
|
Subroutine
read: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 25 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 26 | 0 | return $self->read_records(@arguments); | |||||||||||||||||||
| 27 | } | ||||||||||||||||||||
| 28 | |||||||||||||||||||||
| 29 | 0 | ▶ | sub stream { | ||||||||||||||||||
|
Subroutine
stream: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 30 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 31 | 0 | return $self->stream_records(@arguments); | |||||||||||||||||||
| 32 | } | ||||||||||||||||||||
| 33 | |||||||||||||||||||||
| 34 | 1 | ▶ | sub page { | ||||||||||||||||||
|
Subroutine
page: called CC=2 SCAR=7.0
| |||||||||||||||||||||
| 35 | 1 | my ($self, $options, $page_size, $page_token, $page_number) = @_; | |||||||||||||||||||
| 36 | 1 | ▶ | $options //= {}; | ||||||||||||||||||
|
Condition50%1/2
$options //= {}
MC/DC0%0/1
$options //= {}
$options
Truth table50%1/2
A
A= $options
| |||||||||||||||||||||
| 37 | |||||||||||||||||||||
| 38 | my $params = { | ||||||||||||||||||||
| 39 | 1 | Redacted => Twilio::Serialize::boolean_to_string($options->{redacted}), | |||||||||||||||||||
| 40 | PageToken => $page_token, | ||||||||||||||||||||
| 41 | Page => $page_number, | ||||||||||||||||||||
| 42 | PageSize => $page_size, | ||||||||||||||||||||
| 43 | }; | ||||||||||||||||||||
| 44 | |||||||||||||||||||||
| 45 | 1 | my $response = $self->{version}->page('GET', $self->{uri}, { params => $params }); | |||||||||||||||||||
| 46 | 1 | return $self->_build_page($response); | |||||||||||||||||||
| 47 | } | ||||||||||||||||||||
| 48 | |||||||||||||||||||||
| 49 | 0 | ▶ | sub get_page { | ||||||||||||||||||
|
Subroutine
get_page: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 50 | 0 | my ($self, $target_url) = @_; | |||||||||||||||||||
| 51 | 0 | my $client = $self->{version}->get_domain->get_client; | |||||||||||||||||||
| 52 | 0 | return $self->_build_page($client->request('GET', $target_url)); | |||||||||||||||||||
| 53 | } | ||||||||||||||||||||
| 54 | |||||||||||||||||||||
| 55 | 1 | ▶ | sub _build_page { | ||||||||||||||||||
|
Subroutine
_build_page: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 56 | 1 | my ($self, $response) = @_; | |||||||||||||||||||
| 57 | return Twilio::Rest::Intelligence::V2::Transcript::OperatorResultPage->new($self->{version}, | ||||||||||||||||||||
| 58 | 1 | $response, $self->{solution}); | |||||||||||||||||||
| 59 | } | ||||||||||||||||||||
| 60 | |||||||||||||||||||||
| 61 | 1 | ▶ | sub get_context { | ||||||||||||||||||
|
Subroutine
get_context: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 62 | 1 | my ($self, $operator_sid) = @_; | |||||||||||||||||||
| 63 | return Twilio::Rest::Intelligence::V2::Transcript::OperatorResultContext->new($self->{version}, | ||||||||||||||||||||
| 64 | $self->{solution}{transcript_sid}, | ||||||||||||||||||||
| 65 | 1 | $operator_sid); | |||||||||||||||||||
| 66 | } | ||||||||||||||||||||
| 67 | |||||||||||||||||||||
| 68 | package Twilio::Rest::Intelligence::V2::Transcript::OperatorResultPage; | ||||||||||||||||||||
| 69 | |||||||||||||||||||||
| 70 | 2 | ▶ | use parent 'Twilio::Page'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 71 | |||||||||||||||||||||
| 72 | 1 | ▶ | sub records_key { return 'operator_results' } | ||||||||||||||||||
|
Subroutine
records_key: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 73 | |||||||||||||||||||||
| 74 | 1 | ▶ | sub build_instance { | ||||||||||||||||||
|
Subroutine
build_instance: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 75 | 1 | my ($self, $payload) = @_; | |||||||||||||||||||
| 76 | return Twilio::Rest::Intelligence::V2::Transcript::OperatorResultInstance->new($self->{version}, | ||||||||||||||||||||
| 77 | 1 | $payload, $self->{solution}{transcript_sid}); | |||||||||||||||||||
| 78 | } | ||||||||||||||||||||
| 79 | |||||||||||||||||||||
| 80 | package Twilio::Rest::Intelligence::V2::Transcript::OperatorResultContext; | ||||||||||||||||||||
| 81 | |||||||||||||||||||||
| 82 | 2 | ▶ | use parent 'Twilio::InstanceContext'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 83 | |||||||||||||||||||||
| 84 | 2 | ▶ | use Twilio::Serialize; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 85 | |||||||||||||||||||||
| 86 | 1 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 87 | 1 | my ($class, $version, $transcript_sid, $operator_sid) = @_; | |||||||||||||||||||
| 88 | 1 | my $self = $class->SUPER::new($version); | |||||||||||||||||||
| 89 | 1 | $self->{solution} = { transcript_sid => $transcript_sid, operator_sid => $operator_sid }; | |||||||||||||||||||
| 90 | 1 | $self->{uri} = join q{}, '/Transcripts/', Twilio::Serialize::path_segment($transcript_sid), | |||||||||||||||||||
| 91 | '/OperatorResults/', Twilio::Serialize::path_segment($operator_sid); | ||||||||||||||||||||
| 92 | 1 | return $self; | |||||||||||||||||||
| 93 | } | ||||||||||||||||||||
| 94 | |||||||||||||||||||||
| 95 | 1 | ▶ | sub fetch { | ||||||||||||||||||
|
Subroutine
fetch: called CC=2 SCAR=7.0
| |||||||||||||||||||||
| 96 | 1 | my ($self, $options) = @_; | |||||||||||||||||||
| 97 | 1 | ▶ | $options //= {}; | ||||||||||||||||||
|
Condition50%1/2
$options //= {}
MC/DC0%0/1
$options //= {}
$options
Truth table50%1/2
A
A= $options
| |||||||||||||||||||||
| 98 | |||||||||||||||||||||
| 99 | my $response = $self->{version}->handle_request('GET', $self->{uri}, 'fetch', | ||||||||||||||||||||
| 100 | 1 | { params => { Redacted => Twilio::Serialize::boolean_to_string($options->{redacted}), } }); | |||||||||||||||||||
| 101 | 1 | return $self->_build_instance($response); | |||||||||||||||||||
| 102 | } | ||||||||||||||||||||
| 103 | |||||||||||||||||||||
| 104 | 1 | ▶ | sub _build_instance { | ||||||||||||||||||
|
Subroutine
_build_instance: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 105 | 1 | my ($self, $response) = @_; | |||||||||||||||||||
| 106 | return Twilio::Rest::Intelligence::V2::Transcript::OperatorResultInstance->new( | ||||||||||||||||||||
| 107 | $self->{version}, $response->get_content, | ||||||||||||||||||||
| 108 | $self->{solution}{transcript_sid}, | ||||||||||||||||||||
| 109 | $self->{solution}{operator_sid} | ||||||||||||||||||||
| 110 | 1 | ); | |||||||||||||||||||
| 111 | } | ||||||||||||||||||||
| 112 | |||||||||||||||||||||
| 113 | package Twilio::Rest::Intelligence::V2::Transcript::OperatorResultInstance; | ||||||||||||||||||||
| 114 | |||||||||||||||||||||
| 115 | 2 | ▶ | use parent 'Twilio::InstanceResource'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 116 | |||||||||||||||||||||
| 117 | 2 | ▶ | use Twilio::Deserialize; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 118 | |||||||||||||||||||||
| 119 | 2 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=2 SCAR=7.0
| |||||||||||||||||||||
| 120 | 2 | my ($class, $version, $payload, $transcript_sid, $operator_sid) = @_; | |||||||||||||||||||
| 121 | 2 | my $self = $class->SUPER::new($version, $payload); | |||||||||||||||||||
| 122 | $self->{solution} = { | ||||||||||||||||||||
| 123 | transcript_sid => $transcript_sid, | ||||||||||||||||||||
| 124 | operator_sid => $operator_sid // $self->{properties}{operator_sid} | ||||||||||||||||||||
| 125 | 2 | ▶ | }; | ||||||||||||||||||
|
Condition66%2/3
$operator_sid // $self->{"properties"}{"operator_sid"}
MC/DC0%0/2
$operator_sid // $self->{"properties"}{"operator_sid"}
$operator_sid
$self->{"properties"}{"operator_sid"}
Truth table66%2/3
A // B
A= $operator_sidB= $self->{"properties"}{"operator_sid"}
| |||||||||||||||||||||
| 126 | 2 | return $self; | |||||||||||||||||||
| 127 | } | ||||||||||||||||||||
| 128 | |||||||||||||||||||||
| 129 | 0 | ▶ | sub fetch { | ||||||||||||||||||
|
Subroutine
fetch: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 130 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 131 | 0 | return $self->_context->fetch(@arguments); | |||||||||||||||||||
| 132 | } | ||||||||||||||||||||
| 133 | |||||||||||||||||||||
| 134 | 0 | ▶ | sub _context { | ||||||||||||||||||
|
Subroutine
_context: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 135 | 0 | my ($self) = @_; | |||||||||||||||||||
| 136 | return Twilio::Rest::Intelligence::V2::Transcript::OperatorResultContext->new( | ||||||||||||||||||||
| 137 | $self->{version}, | ||||||||||||||||||||
| 138 | $self->{solution}{transcript_sid}, | ||||||||||||||||||||
| 139 | $self->{solution}{operator_sid} | ||||||||||||||||||||
| 140 | 0 | ); | |||||||||||||||||||
| 141 | } | ||||||||||||||||||||
| 142 | |||||||||||||||||||||
| 143 | 2 | ▶ | sub extract_match { return $_[0]{properties}{extract_match} } | ||||||||||||||||||
|
Subroutine
extract_match: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 144 | 2 | ▶ | sub extract_results { return $_[0]{properties}{extract_results} } | ||||||||||||||||||
|
Subroutine
extract_results: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 145 | 2 | ▶ | sub json_results { return $_[0]{properties}{json_results} } | ||||||||||||||||||
|
Subroutine
json_results: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 146 | 2 | ▶ | sub label_probabilities { return $_[0]{properties}{label_probabilities} } | ||||||||||||||||||
|
Subroutine
label_probabilities: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 147 | 2 | ▶ | sub match_probability { return $_[0]{properties}{match_probability} } | ||||||||||||||||||
|
Subroutine
match_probability: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 148 | 2 | ▶ | sub name { return $_[0]{properties}{name} } | ||||||||||||||||||
|
Subroutine
name: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 149 | 2 | ▶ | sub normalized_result { return $_[0]{properties}{normalized_result} } | ||||||||||||||||||
|
Subroutine
normalized_result: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 150 | 2 | ▶ | sub operator_sid { return $_[0]{properties}{operator_sid} } | ||||||||||||||||||
|
Subroutine
operator_sid: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 151 | 2 | ▶ | sub operator_type { return $_[0]{properties}{operator_type} } | ||||||||||||||||||
|
Subroutine
operator_type: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 152 | 2 | ▶ | sub predicted_label { return $_[0]{properties}{predicted_label} } | ||||||||||||||||||
|
Subroutine
predicted_label: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 153 | 2 | ▶ | sub predicted_probability { return $_[0]{properties}{predicted_probability} } | ||||||||||||||||||
|
Subroutine
predicted_probability: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 154 | 2 | ▶ | sub text_generation_results { return $_[0]{properties}{text_generation_results} } | ||||||||||||||||||
|
Subroutine
text_generation_results: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 155 | 2 | ▶ | sub transcript_sid { return $_[0]{properties}{transcript_sid} } | ||||||||||||||||||
|
Subroutine
transcript_sid: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 156 | 2 | ▶ | sub url { return $_[0]{properties}{url} } | ||||||||||||||||||
|
Subroutine
url: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 157 | 2 | ▶ | sub utterance_match { return $_[0]{properties}{utterance_match} } | ||||||||||||||||||
|
Subroutine
utterance_match: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 158 | 2 | ▶ | sub utterance_results { return $_[0]{properties}{utterance_results} } | ||||||||||||||||||
|
Subroutine
utterance_results: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 159 | |||||||||||||||||||||
| 160 | 2 | 1; | |||||||||||||||||||
| 161 | |||||||||||||||||||||
| 162 | __END__ | ||||||||||||||||||||