Net/Amazon/S3/Request/Role/Tags/Add.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 14 / 14 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
_request_content
1.0
CRAP 1.0
« Net/Amazon/S3/Request/Role/Query/Param/Version_id.pm ↑ Summary Net/Amazon/S3/Request/Service.pm »
1 package Net::Amazon::S3::Request::Role::Tags::Add;
2 # ABSTRACT: Add tags request parts common to Bucket and Object
3 99 $Net::Amazon::S3::Request::Role::Tags::Add::VERSION = '0.991';
4 99 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 99 with 'Net::Amazon::S3::Request::Role::HTTP::Method::PUT';
7 99 with 'Net::Amazon::S3::Request::Role::Query::Action::Tagging';
8 99 with 'Net::Amazon::S3::Request::Role::XML::Content';
9  
10 99 has 'tags' => (
11 is => 'ro',
12 isa => 'HashRef',
13 required => 1,
14 );
15  
16 sub _request_content {
17 19 ▶ my ($self) = @_;
Subroutine _request_content: called CC=1 SCAR=0.0
18  
19 $self->_build_xml (Tagging => [
20 { TagSet => [
21 map +{ Tag => [
22 { Key => $_ },
23 { Value => $self->tags->{$_} },
24 19 ]}, sort keys %{ $self->tags }
25 ]},
26 ]);
27 }
28  
29  
30 99 1;
31  
32 __END__
33  
34 =pod
35  
36 =encoding UTF-8
37  
38 =head1 NAME
39  
40 Net::Amazon::S3::Request::Role::Tags::Add - Add tags request parts common to Bucket and Object
41  
42 =head1 VERSION
43  
44 version 0.991
45  
46 =head1 AUTHOR
47  
48 Branislav Zahradník <barney@cpan.org>
49  
50 =head1 COPYRIGHT AND LICENSE
51  
52 This software is copyright (c) 2022 by Amazon Digital Services, Leon Brocard, Brad Fitzpatrick, Pedro Figueiredo, Rusty Conover, Branislav Zahradník.
53  
54 This is free software; you can redistribute it and/or modify it under
55 the same terms as the Perl 5 programming language system itself.
56  
57 =cut
« Net/Amazon/S3/Request/Role/Query/Param/Version_id.pm ↑ Summary Net/Amazon/S3/Request/Service.pm »