Beta Shell
v2.0 · web2.us.cloudlogin.co
[FM]
[CMD]
[PHP]
[DB]
[INFO]
[SEC]
File Manager
~
/
usr
/
share
/
perl5
/
vendor_perl
/
Net
/
Amazon
/
S3
/
Role
Upload
4 items
Name
Size
Perms
Modified
Actions
[ .. / .. ]
ACL.pm
1.34 KB
-rw-r--r--
2022-07-16 23:46:00
Edit
Del
Bucket.pm
1.43 KB
-rw-r--r--
2022-07-16 23:46:00
Edit
Del
Editing: ACL.pm
(1.34 KB)
Path: /usr/share/perl5/vendor_perl/Net/Amazon/S3/Role/ACL.pm
Back
package Net::Amazon::S3::Role::ACL; # ABSTRACT: ACL specification $Net::Amazon::S3::Role::ACL::VERSION = '0.991'; use Moose::Role; use Moose::Util::TypeConstraints; use Carp (); use Net::Amazon::S3::ACL::Set; use Net::Amazon::S3::ACL::Canned; use Net::Amazon::S3::Constraint::ACL::Canned; has acl => ( is => 'ro', isa => union ([ 'Net::Amazon::S3::ACL::Set', 'Net::Amazon::S3::ACL::Canned', ]), required => 0, coerce => 1, ); around BUILDARGS => sub { my ($orig, $class) = (shift, shift); my $args = $class->$orig (@_); if (exists $args->{acl_short}) { my $acl_short = delete $args->{acl_short}; Carp::carp "'acl_short' parameter is ignored when 'acl' specified" if exists $args->{acl}; $args->{acl} = $acl_short unless exists $args->{acl}; } delete $args->{acl} unless defined $args->{acl}; return $args; }; 1; __END__ =pod =encoding UTF-8 =head1 NAME Net::Amazon::S3::Role::ACL - ACL specification =head1 VERSION version 0.991 =head1 AUTHOR Branislav Zahradník <barney@cpan.org> =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2022 by Amazon Digital Services, Leon Brocard, Brad Fitzpatrick, Pedro Figueiredo, Rusty Conover, Branislav Zahradník. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =cut