blib/lib/VM/EC2/Snapshot/CreateVolumePermission.pm untested

filter: Statementstmt 0.0% 0 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 8 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package VM::EC2::Snapshot::CreateVolumePermission;
2  
3 =head1 NAME
4  
5 VM::EC2::Snapshot::CreateVolumePermission - Object describing AMI create volume permissions
6  
7 =head1 SYNOPSIS
8  
9 use VM::EC2;
10  
11 $ec2 = VM::EC2->new(...);
12 $snapshot = $ec2->describe_snapshots('snap-12345');
13 @users = $image->createVolumePermissions;
14 for (@users) {
15 $group = $_->group;
16 $user = $_->userId;
17 }
18  
19 =head1 DESCRIPTION
20  
21 This object represents an Amazon volume snapshot create volume
22 permission, and is return by VM::EC2::Snapshot createVolumePermissions().
23  
24 =head1 METHODS
25  
26 These object methods are supported:
27  
28 group -- Name of a group with launch permissions. Only
29 valid value is "all"
30 userId -- Name of a user with launch permissions.
31  
32 =head1 STRING OVERLOADING
33  
34 When used in a string context, this object will interpolate the
35 userId. If the userId is blank, then interpolates as the group.
36  
37 =head1 SEE ALSO
38  
39 L<VM::EC2>
40 L<VM::EC2::Generic>
41 L<VM::EC2::Snapshot>
42  
43 =head1 AUTHOR
44  
45 Lincoln Stein E<lt>lincoln.stein@gmail.comE<gt>.
46  
47 Copyright (c) 2011 Ontario Institute for Cancer Research
48  
49 This package and its accompanying libraries is free software; you can
50 redistribute it and/or modify it under the terms of the GPL (either
51 version 1, or at your option, any later version) or the Artistic
52 License 2.0. Refer to LICENSE for the full license text. In addition,
53 please see DISCLAIMER.txt for disclaimers of warranty.
54  
55 =cut
56  
57 use strict;
58 use base 'VM::EC2::Image::LaunchPermission';
59  
60  
61 1;