Net/Amazon/S3/Operation/Object/Restore/Request.pm

filter: Statementstmt 100% 27 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 33 / 33 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Net/Amazon/S3/Operation/Object/Restore.pm ↑ Summary Net/Amazon/S3/Operation/Object/Restore/Response.pm »
1 package Net::Amazon::S3::Operation::Object::Restore::Request;
2 # ABSTRACT: An internal class implementing RestoreObject operation
3 99 $Net::Amazon::S3::Operation::Object::Restore::Request::VERSION = '0.991';
4 99 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 99 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 99 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 99 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 99 ▶use MooseX::StrictConstructor 0.16;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 99 extends 'Net::Amazon::S3::Request::Object';
12 99 with 'Net::Amazon::S3::Request::Role::HTTP::Method::POST';
13 99 with 'Net::Amazon::S3::Request::Role::Query::Action::Restore';
14 99 with 'Net::Amazon::S3::Request::Role::XML::Content';
15  
16 99 enum 'Tier' => [ qw(Standard Expedited Bulk) ];
17 99 has 'days' => (is => 'ro', isa => 'Int', required => 1);
18 99 has 'tier' => (is => 'ro', isa => 'Tier', required => 1);
19  
20 99 __PACKAGE__->meta->make_immutable;
21  
22 sub _request_content {
23 1 ▶ my ($self) = @_;
Subroutine _request_content: called CC=1 SCAR=0.0
24  
25 1 return $self->_build_xml (RestoreRequest => [
26 { Days => $self->days },
27 { GlacierJobParameters => [
28 { Tier => $self->tier },
29 ]},
30 ]);
31 }
32  
33 99 1;
34  
35 __END__
36  
37 =pod
38  
39 =encoding UTF-8
40  
41 =head1 NAME
42  
43 Net::Amazon::S3::Operation::Object::Restore::Request - An internal class implementing RestoreObject operation
44  
45 =head1 VERSION
46  
47 version 0.991
48  
49 =head1 DESCRIPTION
50  
51 Implements an operation L<< RestoreObject|https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html >>
52  
53 =head1 AUTHOR
54  
55 Branislav Zahradník <barney@cpan.org>
56  
57 =head1 COPYRIGHT AND LICENSE
58  
59 This software is copyright (c) 2022 by Amazon Digital Services, Leon Brocard, Brad Fitzpatrick, Pedro Figueiredo, Rusty Conover, Branislav Zahradník.
60  
61 This is free software; you can redistribute it and/or modify it under
62 the same terms as the Perl 5 programming language system itself.
63  
64 =cut
« Net/Amazon/S3/Operation/Object/Restore.pm ↑ Summary Net/Amazon/S3/Operation/Object/Restore/Response.pm »