| 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 | 2 | $Net::Google::Storage::Bucket::VERSION = '0.2.0'; | |
| 5 | # ABSTRACT: Interface for a Google Storage Bucket | ||
| 6 | # https://developers.google.com/storage/docs/json_api/v1/buckets#resource | ||
| 7 | |||
| 8 | 2 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 2 | ▶ | use Net::Google::Storage::Types; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | |||
| 13 | 2 | has id => ( | |
| 14 | is => 'ro', | ||
| 15 | isa => 'Str', | ||
| 16 | ); | ||
| 17 | |||
| 18 | |||
| 19 | 2 | has projectId => ( | |
| 20 | is => 'ro', | ||
| 21 | isa => 'Int', | ||
| 22 | ); | ||
| 23 | |||
| 24 | |||
| 25 | 2 | has selfLink => ( | |
| 26 | is => 'ro', | ||
| 27 | isa => 'Str' | ||
| 28 | ); | ||
| 29 | |||
| 30 | |||
| 31 | 2 | has timeCreated => ( | |
| 32 | is => 'ro', | ||
| 33 | isa => 'Str', | ||
| 34 | ); | ||
| 35 | |||
| 36 | |||
| 37 | 2 | has owner => ( | |
| 38 | is => 'ro', | ||
| 39 | isa => 'HashRef[Str]', | ||
| 40 | ); | ||
| 41 | |||
| 42 | |||
| 43 | 2 | has location => ( | |
| 44 | is => 'rw', | ||
| 45 | isa => 'Net::Google::Storage::Types::BucketLocation', | ||
| 46 | default => 'US', | ||
| 47 | ); | ||
| 48 | |||
| 49 | 2 | ▶ | no Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 50 | 2 | __PACKAGE__->meta->make_immutable; | |
| 51 | |||
| 52 | 2 | 1; | |
| 53 | |||
| 54 | __END__ | ||