blib/lib/Paws/Glacier/ListParts.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 18 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Paws/Glacier/ListMultipartUploads.pm ↑ Summary blib/lib/Paws/Glacier/ListProvisionedCapacity.pm »
1  
2 package Paws::Glacier::ListParts;
3 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 has AccountId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'accountId', required => 1);
5 1 has Limit => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'limit');
6 1 has Marker => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'marker');
7 1 has UploadId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'uploadId', required => 1);
8 1 has VaultName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'vaultName', required => 1);
9  
10 1 ▶ use MooseX::ClassAttribute;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 1 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ListParts');
13 1 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}');
14 1 class_has _api_method => (isa => 'Str', is => 'ro', default => 'GET');
15 1 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Glacier::ListPartsOutput');
16 1 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::Glacier::ListParts - Arguments for method ListParts on L<Paws::Glacier>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method ListParts on the
27 L<Amazon Glacier|Paws::Glacier> service. Use the attributes of this class
28 as arguments to method ListParts.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ListParts.
31  
32 =head1 SYNOPSIS
33  
34 my $glacier = Paws->service('Glacier');
35 # To list the parts of an archive that have been uploaded in a multipart upload
36 # The example lists all the parts of a multipart upload.
37 my $ListPartsOutput = $glacier->ListParts(
38 'AccountId' => '-',
39 'UploadId' =>
40 'OW2fM5iVylEpFEMM9_HpKowRapC3vn5sSL39_396UW9zLFUWVrnRHaPjUJddQ5OxSHVXjYtrN47NBZ-khxOjyEXAMPLE',
41 'VaultName' => 'examplevault'
42 );
43  
44 # Results:
45 my $ArchiveDescription = $ListPartsOutput->ArchiveDescription;
46 my $CreationDate = $ListPartsOutput->CreationDate;
47 my $Marker = $ListPartsOutput->Marker;
48 my $MultipartUploadId = $ListPartsOutput->MultipartUploadId;
49 my $PartSizeInBytes = $ListPartsOutput->PartSizeInBytes;
50 my $Parts = $ListPartsOutput->Parts;
51 my $VaultARN = $ListPartsOutput->VaultARN;
52  
53 # Returns a L<Paws::Glacier::ListPartsOutput> object.
54  
55 Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
56 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/glacier/ListParts>
57  
58 =head1 ATTRIBUTES
59  
60  
61 =head2 B<REQUIRED> AccountId => Str
62  
63 The C<AccountId> value is the AWS account ID of the account that owns
64 the vault. You can either specify an AWS account ID or optionally a
65 single 'C<->' (hyphen), in which case Amazon S3 Glacier uses the AWS
66 account ID associated with the credentials used to sign the request. If
67 you use an account ID, do not include any hyphens ('-') in the ID.
68  
69  
70  
71 =head2 Limit => Str
72  
73 The maximum number of parts to be returned. The default limit is 50.
74 The number of parts returned might be fewer than the specified limit,
75 but the number of returned parts never exceeds the limit.
76  
77  
78  
79 =head2 Marker => Str
80  
81 An opaque string used for pagination. This value specifies the part at
82 which the listing of parts should begin. Get the marker value from the
83 response of a previous List Parts response. You need only include the
84 marker if you are continuing the pagination of results started in a
85 previous List Parts request.
86  
87  
88  
89 =head2 B<REQUIRED> UploadId => Str
90  
91 The upload ID of the multipart upload.
92  
93  
94  
95 =head2 B<REQUIRED> VaultName => Str
96  
97 The name of the vault.
98  
99  
100  
101  
102 =head1 SEE ALSO
103  
104 This class forms part of L<Paws>, documenting arguments for method ListParts in L<Paws::Glacier>
105  
106 =head1 BUGS and CONTRIBUTIONS
107  
108 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
109  
110 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
111  
112 =cut
113  
« blib/lib/Paws/Glacier/ListMultipartUploads.pm ↑ Summary blib/lib/Paws/Glacier/ListProvisionedCapacity.pm »