EC2/Snapshot.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 21 / 21 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« EC2/ReservedInstanceOffering.pm ↑ Summary EC2/SnapshotAttribute.pm »
1 package Net::Amazon::EC2::Snapshot;
2 2 $Net::Amazon::EC2::Snapshot::VERSION = '0.36';
3 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 =head1 NAME
6  
7 Net::Amazon::EC2::Snapshot
8  
9 =head1 DESCRIPTION
10  
11 A class representing a snapshot of a volume.
12  
13 =head1 ATTRIBUTES
14  
15 =over
16  
17 =item snapshot_id (required)
18  
19 The ID of the snapshot.
20  
21 =item status (required)
22  
23 The snapshot's status.
24  
25 =item volume_id (required)
26  
27 The ID of the volume the snapshot was taken from.
28  
29 =item start_time (required)
30  
31 The time the snapshot was started.
32  
33 =item progress (required)
34  
35 The current progress of the snapshop, in percent.
36  
37 =item owner_id (required)
38  
39 AWS Access Key ID of the user who owns the snapshot.
40  
41 =item volume_size (required)
42  
43 The size of the volume, in GiB.
44  
45 =item description (optional)
46  
47 Description of the snapshot.
48  
49 =item owner_alias (optional)
50  
51 The AWS account alias (e.g., "amazon", "redhat", "self", etc.) or AWS account ID that owns the AMI.
52  
53 =back
54  
55 =cut
56  
57 2 has 'snapshot_id' => ( is => 'ro', isa => 'Str', required => 1 );
58 2 has 'status' => ( is => 'ro', isa => 'Str', required => 1 );
59 2 has 'volume_id' => ( is => 'ro', isa => 'Str', required => 1 );
60 2 has 'start_time' => ( is => 'ro', isa => 'Str', required => 1 );
61 2 has 'progress' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 );
62 2 has 'owner_id' => ( is => 'ro', isa => 'Str', required => 1 );
63 2 has 'volume_size' => ( is => 'ro', isa => 'Str', required => 1 );
64 2 has 'description' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 );
65 2 has 'owner_alias' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 );
66 2 has 'tag_set' => ( is => 'ro', isa => 'Maybe[ArrayRef[Net::Amazon::EC2::TagSet]]', required => 0 );
67  
68 2 __PACKAGE__->meta->make_immutable();
69  
70 =head1 AUTHOR
71  
72 Jeff Kim <cpan@chosec.com>
73  
74 =head1 COPYRIGHT
75  
76 Copyright (c) 2006-2010 Jeff Kim. This program is free software; you can redistribute it and/or modify it
77 under the same terms as Perl itself.
78  
79 =cut
80  
81 2 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
82 2 1;
« EC2/ReservedInstanceOffering.pm ↑ Summary EC2/SnapshotAttribute.pm »