line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Amazon::S3::Role::ACL; |
2
|
|
|
|
|
|
|
# ABSTRACT: ACL specification |
3
|
|
|
|
|
|
|
$Net::Amazon::S3::Role::ACL::VERSION = '0.99'; |
4
|
99
|
|
|
99
|
|
71073
|
use Moose::Role; |
|
99
|
|
|
|
|
273
|
|
|
99
|
|
|
|
|
1026
|
|
5
|
99
|
|
|
99
|
|
553882
|
use Moose::Util::TypeConstraints; |
|
99
|
|
|
|
|
267
|
|
|
99
|
|
|
|
|
845
|
|
6
|
|
|
|
|
|
|
|
7
|
99
|
|
|
99
|
|
219685
|
use Carp (); |
|
99
|
|
|
|
|
263
|
|
|
99
|
|
|
|
|
2462
|
|
8
|
|
|
|
|
|
|
|
9
|
99
|
|
|
99
|
|
55243
|
use Net::Amazon::S3::ACL::Set; |
|
99
|
|
|
|
|
389
|
|
|
99
|
|
|
|
|
3924
|
|
10
|
99
|
|
|
99
|
|
42399
|
use Net::Amazon::S3::ACL::Canned; |
|
99
|
|
|
|
|
325
|
|
|
99
|
|
|
|
|
3639
|
|
11
|
99
|
|
|
99
|
|
780
|
use Net::Amazon::S3::Constraint::ACL::Canned; |
|
99
|
|
|
|
|
243
|
|
|
99
|
|
|
|
|
18132
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
has acl => ( |
14
|
|
|
|
|
|
|
is => 'ro', |
15
|
|
|
|
|
|
|
isa => union ([ |
16
|
|
|
|
|
|
|
'Net::Amazon::S3::ACL::Set', |
17
|
|
|
|
|
|
|
'Net::Amazon::S3::ACL::Canned', |
18
|
|
|
|
|
|
|
]), |
19
|
|
|
|
|
|
|
required => 0, |
20
|
|
|
|
|
|
|
coerce => 1, |
21
|
|
|
|
|
|
|
); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
around BUILDARGS => sub { |
24
|
|
|
|
|
|
|
my ($orig, $class) = (shift, shift); |
25
|
|
|
|
|
|
|
my $args = $class->$orig (@_); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
if (exists $args->{acl_short}) { |
28
|
|
|
|
|
|
|
my $acl_short = delete $args->{acl_short}; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
Carp::carp "'acl_short' parameter is ignored when 'acl' specified" |
31
|
|
|
|
|
|
|
if exists $args->{acl}; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
$args->{acl} = $acl_short |
34
|
|
|
|
|
|
|
unless exists $args->{acl}; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
delete $args->{acl} unless defined $args->{acl}; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
return $args; |
40
|
|
|
|
|
|
|
}; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
__END__ |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=pod |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=encoding UTF-8 |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 NAME |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Net::Amazon::S3::Role::ACL - ACL specification |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 VERSION |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
version 0.99 |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 AUTHOR |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Branislav Zahradník <barney@cpan.org> |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
This software is copyright (c) 2021 by Amazon Digital Services, Leon Brocard, Brad Fitzpatrick, Pedro Figueiredo, Rusty Conover, Branislav Zahradník. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
67
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=cut |