| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package OpenSearch::Parameters::Index::SetAliases; |
|
2
|
4
|
|
|
4
|
|
2896
|
use strict; |
|
|
4
|
|
|
|
|
14
|
|
|
|
4
|
|
|
|
|
178
|
|
|
3
|
4
|
|
|
4
|
|
35
|
use warnings; |
|
|
4
|
|
|
|
|
10
|
|
|
|
4
|
|
|
|
|
286
|
|
|
4
|
4
|
|
|
4
|
|
27
|
use feature qw(state); |
|
|
4
|
|
|
|
|
10
|
|
|
|
4
|
|
|
|
|
492
|
|
|
5
|
4
|
|
|
4
|
|
26
|
use Types::Standard qw(Str ArrayRef); |
|
|
4
|
|
|
|
|
10
|
|
|
|
4
|
|
|
|
|
32
|
|
|
6
|
4
|
|
|
4
|
|
8279
|
use Moo::Role; |
|
|
4
|
|
|
|
|
12
|
|
|
|
4
|
|
|
|
|
42
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
with 'OpenSearch::Parameters'; |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has 'actions' => ( |
|
11
|
|
|
|
|
|
|
is => 'rw', |
|
12
|
|
|
|
|
|
|
isa => ArrayRef, |
|
13
|
|
|
|
|
|
|
); |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
has 'cluster_manager_timeout' => ( |
|
16
|
|
|
|
|
|
|
is => 'rw', |
|
17
|
|
|
|
|
|
|
isa => Str, |
|
18
|
|
|
|
|
|
|
); |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
has 'timeout' => ( |
|
21
|
|
|
|
|
|
|
is => 'rw', |
|
22
|
|
|
|
|
|
|
isa => Str, |
|
23
|
|
|
|
|
|
|
); |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
around [qw/actions cluster_manager_timeout timeout/] => sub { |
|
26
|
|
|
|
|
|
|
my $orig = shift; |
|
27
|
|
|
|
|
|
|
my $self = shift; |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
if (@_) { |
|
30
|
|
|
|
|
|
|
$self->$orig(@_); |
|
31
|
|
|
|
|
|
|
return ($self); |
|
32
|
|
|
|
|
|
|
} |
|
33
|
|
|
|
|
|
|
return ( $self->$orig ); |
|
34
|
|
|
|
|
|
|
}; |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub api_spec { |
|
37
|
0
|
|
|
0
|
0
|
|
state $s = +{ |
|
38
|
|
|
|
|
|
|
actions => { |
|
39
|
|
|
|
|
|
|
encode_func => 'as_is', |
|
40
|
|
|
|
|
|
|
type => 'body', |
|
41
|
|
|
|
|
|
|
}, |
|
42
|
|
|
|
|
|
|
cluster_manager_timeout => { |
|
43
|
|
|
|
|
|
|
encode_func => 'as_is', |
|
44
|
|
|
|
|
|
|
type => 'url', |
|
45
|
|
|
|
|
|
|
}, |
|
46
|
|
|
|
|
|
|
timeout => { |
|
47
|
|
|
|
|
|
|
encode_func => 'as_is', |
|
48
|
|
|
|
|
|
|
type => 'url', |
|
49
|
|
|
|
|
|
|
} |
|
50
|
|
|
|
|
|
|
}; |
|
51
|
|
|
|
|
|
|
} |
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
1; |