File Coverage

blib/lib/Paws/Lightsail/Disk.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Paws::Lightsail::Disk;
2 1     1   539 use Moose;
  1         6  
  1         13  
3             has Arn => (is => 'ro', isa => 'Str', request_name => 'arn', traits => ['NameInRequest']);
4             has AttachedTo => (is => 'ro', isa => 'Str', request_name => 'attachedTo', traits => ['NameInRequest']);
5             has AttachmentState => (is => 'ro', isa => 'Str', request_name => 'attachmentState', traits => ['NameInRequest']);
6             has CreatedAt => (is => 'ro', isa => 'Str', request_name => 'createdAt', traits => ['NameInRequest']);
7             has GbInUse => (is => 'ro', isa => 'Int', request_name => 'gbInUse', traits => ['NameInRequest']);
8             has Iops => (is => 'ro', isa => 'Int', request_name => 'iops', traits => ['NameInRequest']);
9             has IsAttached => (is => 'ro', isa => 'Bool', request_name => 'isAttached', traits => ['NameInRequest']);
10             has IsSystemDisk => (is => 'ro', isa => 'Bool', request_name => 'isSystemDisk', traits => ['NameInRequest']);
11             has Location => (is => 'ro', isa => 'Paws::Lightsail::ResourceLocation', request_name => 'location', traits => ['NameInRequest']);
12             has Name => (is => 'ro', isa => 'Str', request_name => 'name', traits => ['NameInRequest']);
13             has Path => (is => 'ro', isa => 'Str', request_name => 'path', traits => ['NameInRequest']);
14             has ResourceType => (is => 'ro', isa => 'Str', request_name => 'resourceType', traits => ['NameInRequest']);
15             has SizeInGb => (is => 'ro', isa => 'Int', request_name => 'sizeInGb', traits => ['NameInRequest']);
16             has SupportCode => (is => 'ro', isa => 'Str', request_name => 'supportCode', traits => ['NameInRequest']);
17             1;
18              
19             ### main pod documentation begin ###
20              
21             =head1 NAME
22              
23             Paws::Lightsail::Disk
24              
25             =head1 USAGE
26              
27             This class represents one of two things:
28              
29             =head3 Arguments in a call to a service
30              
31             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
32             Each attribute should be used as a named argument in the calls that expect this type of object.
33              
34             As an example, if Att1 is expected to be a Paws::Lightsail::Disk object:
35              
36             $service_obj->Method(Att1 => { Arn => $value, ..., SupportCode => $value });
37              
38             =head3 Results returned from an API call
39              
40             Use accessors for each attribute. If Att1 is expected to be an Paws::Lightsail::Disk object:
41              
42             $result = $service_obj->Method(...);
43             $result->Att1->Arn
44              
45             =head1 DESCRIPTION
46              
47             Describes the hard disk (an SSD).
48              
49             =head1 ATTRIBUTES
50              
51              
52             =head2 Arn => Str
53              
54             The Amazon Resource Name (ARN) of the disk.
55              
56              
57             =head2 AttachedTo => Str
58              
59             The resources to which the disk is attached.
60              
61              
62             =head2 AttachmentState => Str
63              
64             The attachment state of the disk.
65              
66              
67             =head2 CreatedAt => Str
68              
69             The date when the disk was created.
70              
71              
72             =head2 GbInUse => Int
73              
74             The number of GB in use by the disk.
75              
76              
77             =head2 Iops => Int
78              
79             The input/output operations per second (IOPS) of the disk.
80              
81              
82             =head2 IsAttached => Bool
83              
84             A Boolean value indicating whether the disk is attached.
85              
86              
87             =head2 IsSystemDisk => Bool
88              
89             A Boolean value indicating whether this disk is a system disk (has an
90             operating system loaded on it).
91              
92              
93             =head2 Location => L<Paws::Lightsail::ResourceLocation>
94              
95             The region and Availability Zone where the disk is located.
96              
97              
98             =head2 Name => Str
99              
100             The name of the disk.
101              
102              
103             =head2 Path => Str
104              
105             The disk path.
106              
107              
108             =head2 ResourceType => Str
109              
110             The resource type of the disk.
111              
112              
113             =head2 SizeInGb => Int
114              
115             The size of the disk in GB.
116              
117              
118             =head2 SupportCode => Str
119              
120             The support code. Include this code in your email to support when you
121             have questions about an instance or another resource in Lightsail. This
122             code enables our support team to look up your Lightsail information
123             more easily.
124              
125              
126              
127             =head1 SEE ALSO
128              
129             This class forms part of L<Paws>, describing an object used in L<Paws::Lightsail>
130              
131             =head1 BUGS and CONTRIBUTIONS
132              
133             The source code is located here: https://github.com/pplu/aws-sdk-perl
134              
135             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
136              
137             =cut
138