line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Amazon::S3::Operation::Buckets::List::Request; |
2
|
|
|
|
|
|
|
$Net::Amazon::S3::Operation::Buckets::List::Request::VERSION = '0.98'; |
3
|
96
|
|
|
96
|
|
773
|
use Moose 0.85; |
|
96
|
|
|
|
|
2636
|
|
|
96
|
|
|
|
|
736
|
|
4
|
96
|
|
|
96
|
|
654121
|
use MooseX::StrictConstructor 0.16; |
|
96
|
|
|
|
|
2430
|
|
|
96
|
|
|
|
|
784
|
|
5
|
|
|
|
|
|
|
extends 'Net::Amazon::S3::Request::Service'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# ABSTRACT: An internal class to list all buckets |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
with 'Net::Amazon::S3::Request::Role::HTTP::Method::GET'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
# AWS routes request without specific region to us-east-1 |
14
|
|
|
|
|
|
|
# |
15
|
|
|
|
|
|
|
# https://docs.aws.amazon.com/general/latest/gr/rande.html |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub http_request { |
18
|
12
|
|
|
12
|
1
|
33
|
my $self = shift; |
19
|
12
|
|
|
|
|
390
|
return $self->_build_http_request ( |
20
|
|
|
|
|
|
|
use_virtual_host => 0, |
21
|
|
|
|
|
|
|
region => $self->s3->vendor->default_region, |
22
|
|
|
|
|
|
|
); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__END__ |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=pod |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=encoding UTF-8 |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 NAME |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
Net::Amazon::S3::Operation::Buckets::List::Request - An internal class to list all buckets |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 VERSION |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
version 0.98 |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 SYNOPSIS |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
my $request = Net::Amazon::S3::Operation::Buckets::List::Request->new ( |
44
|
|
|
|
|
|
|
s3 => $s3, |
45
|
|
|
|
|
|
|
); |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 DESCRIPTION |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
This module lists all buckets. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
Implements operation L<< ListBuckets|https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.html >> |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=for test_synopsis no strict 'vars' |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 METHODS |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head2 http_request |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
This method returns a HTTP::Request object. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 AUTHOR |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Branislav Zahradník <barney@cpan.org> |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
This software is copyright (c) 2021 by Amazon Digital Services, Leon Brocard, Brad Fitzpatrick, Pedro Figueiredo, Rusty Conover, Branislav Zahradník. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
70
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=cut |