Storage/Bucket.pm

filter: Statementstmt 100% 25 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 30 / 30 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Storage/Agent.pm ↑ Summary Storage/Object.pm »
1 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 package Net::Google::Storage::Bucket;
4 {
5 2 $Net::Google::Storage::Bucket::VERSION = '0.1.2';
6 }
7  
8 # ABSTRACT: Interface for a Google Storage Bucket
9 # https://developers.google.com/storage/docs/json_api/v1/buckets#resource
10  
11 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 2 ▶use Net::Google::Storage::Types;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15  
16 2 has id => (
17 is => 'ro',
18 isa => 'Str',
19 );
20  
21  
22 2 has projectId => (
23 is => 'ro',
24 isa => 'Int',
25 );
26  
27  
28 2 has selfLink => (
29 is => 'ro',
30 isa => 'Str'
31 );
32  
33  
34 2 has timeCreated => (
35 is => 'ro',
36 isa => 'Str',
37 );
38  
39  
40 2 has owner => (
41 is => 'ro',
42 isa => 'HashRef[Str]',
43 );
44  
45  
46 2 has location => (
47 is => 'rw',
48 isa => 'Net::Google::Storage::Types::BucketLocation',
49 default => 'US',
50 );
51  
52 2 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
53 2 __PACKAGE__->meta->make_immutable;
54  
55 2 1;
56  
57  
58 __END__
59 =pod
60  
61 =head1 NAME
62  
63 Net::Google::Storage::Bucket - Interface for a Google Storage Bucket
64  
65 =head1 VERSION
66  
67 version 0.1.2
68  
69 =head1 DESCRIPTION
70  
71 Object for storing the data of a bucket, slightly cut down from
72 L<https://developers.google.com/storage/docs/json_api/v1/buckets#resource>.
73  
74 Generally Net::Google::Storage::Bucket objects are acquired from a
75 C<get_bucket>, C<list_buckets>, or C<insert_bucket> call on a
76 L<Net::Google::Storage> object.
77  
78 =head1 ATTRIBUTES
79  
80 =head2 id
81  
82 The name of the bucket.
83  
84 =head2 projectId
85  
86 The id of the project to which this bucket belongs.
87  
88 =head2 selfLink
89  
90 The url of this bucket.
91  
92 =head2 timeCreated
93  
94 The creation date of the bucket in
95 L<RFC3339https://tools.ietf.org/html/rfc3339> format, eg
96 C<2012-09-16T07:00:26.982Z>.
97  
98 =head2 owner
99  
100 Hashref of the owner details for the bucket - see
101 L<the docs|https://developers.google.com/storage/docs/json_api/v1/buckets#resource>.
102  
103 =head2 location
104  
105 Physical location of the servers containing this bucket, currently only C<US>
106 or C<EU>.
107  
108 =head1 AUTHOR
109  
110 Glenn Fowler <cebjyre@cpan.org>
111  
112 =head1 COPYRIGHT AND LICENSE
113  
114 This software is copyright (c) 2012 by Glenn Fowler.
115  
116 This is free software; you can redistribute it and/or modify it under
117 the same terms as the Perl 5 programming language system itself.
118  
119 =cut
120  
« Storage/Agent.pm ↑ Summary Storage/Object.pm »