blib/lib/Paws/ImportExport.pm

filter: Statementstmt 32.7% 18 / 55 Branchbran 0.0% 0 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 37.5% 6 / 16 Podpod 58.3% 7 / 12 totaltotal 34.0% 31 / 91 CC 7 SCAR 29.4
CC
7
Cov
29%
ListAllJobs
56.0
signing_name
2.0
version
2.0
CRAP 18.9
« blib/lib/Paws/S3.pm ↑ Summary blib/lib/Paws/Net/ResponseRole.pm »
1 package Paws::ImportExport;
2 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶ sub service { 'importexport' }
Subroutine service: called CC=1 SCAR=0.0
Pod undocumented
4 0 ▶ sub signing_name { 'importexport' }
Subroutine signing_name: not called CC=1 SCAR=6.9
Pod undocumented
5 0 ▶ sub version { '2010-06-01' }
Subroutine version: not called CC=1 SCAR=6.9
Pod undocumented
6 0 ▶ sub flattened_arrays { 0 }
Subroutine flattened_arrays: not called CC=1 SCAR=6.9
Pod undocumented
7 1 has max_attempts => (is => 'ro', isa => 'Int', default => 5);
8 1 ▶ has retry => (is => 'ro', isa => 'HashRef', default => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
9 1 { base => 'rand', type => 'exponential', growth_factor => 2 }
10 1 });
11 1 ▶ has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [
Subroutine __ANON__: called CC=1 SCAR=0.0
12 1 ] });
13  
14 1 with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V2Signature', 'Paws::Net::QueryCaller';
15  
16 1 ▶ has '+region_rules' => (default => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
17 1 my $regioninfo;
18 1 $regioninfo = [
19 {
20 constraints => [
21 [
22 'region',
23 'notStartsWith',
24 'cn-'
25 ]
26 ],
27 uri => 'https://importexport.amazonaws.com'
28 }
29 ];
30  
31 1 return $regioninfo;
32 1 });
33  
34
35 0 ▶ sub CancelJob {
Subroutine CancelJob: not called CC=1 SCAR=6.9
Pod documented
36 0 my $self = shift;
37 0 my $call_object = $self->new_with_coercions('Paws::ImportExport::CancelJob', @_);
38 0 return $self->caller->do_call($self, $call_object);
39 }
40 0 ▶ sub CreateJob {
Subroutine CreateJob: not called CC=1 SCAR=6.9
Pod documented
41 0 my $self = shift;
42 0 my $call_object = $self->new_with_coercions('Paws::ImportExport::CreateJob', @_);
43 0 return $self->caller->do_call($self, $call_object);
44 }
45 0 ▶ sub GetShippingLabel {
Subroutine GetShippingLabel: not called CC=1 SCAR=6.9
Pod documented
46 0 my $self = shift;
47 0 my $call_object = $self->new_with_coercions('Paws::ImportExport::GetShippingLabel', @_);
48 0 return $self->caller->do_call($self, $call_object);
49 }
50 0 ▶ sub GetStatus {
Subroutine GetStatus: not called CC=1 SCAR=6.9
Pod documented
51 0 my $self = shift;
52 0 my $call_object = $self->new_with_coercions('Paws::ImportExport::GetStatus', @_);
53 0 return $self->caller->do_call($self, $call_object);
54 }
55 1 ▶ sub ListJobs {
Subroutine ListJobs: called CC=1 SCAR=0.0
Pod documented
56 1 my $self = shift;
57 1 my $call_object = $self->new_with_coercions('Paws::ImportExport::ListJobs', @_);
58 1 return $self->caller->do_call($self, $call_object);
59 }
60 0 ▶ sub UpdateJob {
Subroutine UpdateJob: not called CC=1 SCAR=6.9
Pod documented
61 0 my $self = shift;
62 0 my $call_object = $self->new_with_coercions('Paws::ImportExport::UpdateJob', @_);
63 0 return $self->caller->do_call($self, $call_object);
64 }
65
66 0 ▶ sub ListAllJobs {
Subroutine ListAllJobs: not called CC=7 SCAR=40.3
Pod documented
67 0 my $self = shift;
68  
69 0 ▶ my $callback = shift @_ if (ref($_[0]) eq 'CODE');
Branch: 1 branch
BranchTrueFalseTotal
if ref $_[0] eq "CODE" 0 0 0
70 0 my $result = $self->ListJobs(@_);
71 0 my $next_result = $result;
72  
73 0 ▶ if (not defined $callback) {
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $callback) { } 0 0 0
74 0 ▶ while ($next_result->IsTruncated) {
Branch: 1 branch
BranchTrueFalseTotal
if ($next_result->IsTruncated) 0 0 0
75 0 $next_result = $self->ListJobs(@_, Marker => $next_result->Jobs->[-1]->JobId);
76 0 push @{ $result->Jobs }, @{ $next_result->Jobs };
77 }
78 0 return $result;
79 } else {
80 0 ▶ while ($result->IsTruncated) {
Branch: 1 branch
BranchTrueFalseTotal
if ($result->IsTruncated) 0 0 0
81 0 $callback->($_ => 'Jobs') foreach (@{ $result->Jobs });
82 0 $result = $self->ListJobs(@_, Marker => $result->Jobs->[-1]->JobId);
83 }
84 0 $callback->($_ => 'Jobs') foreach (@{ $result->Jobs });
85 }
86  
87 return undef
88 0 }
89  
90  
91 0 ▶ sub operations { qw/CancelJob CreateJob GetShippingLabel GetStatus ListJobs UpdateJob / }
Subroutine operations: not called CC=1 SCAR=6.9
Pod undocumented
92  
93 1 1;
94  
95 ### main pod documentation begin ###
96  
97 =head1 NAME
98  
99 Paws::ImportExport - Perl Interface to AWS AWS Import/Export
100  
101 =head1 SYNOPSIS
102  
103 use Paws;
104  
105 my $obj = Paws->service('ImportExport');
106 my $res = $obj->Method(
107 Arg1 => $val1,
108 Arg2 => [ 'V1', 'V2' ],
109 # if Arg3 is an object, the HashRef will be used as arguments to the constructor
110 # of the arguments type
111 Arg3 => { Att1 => 'Val1' },
112 # if Arg4 is an array of objects, the HashRefs will be passed as arguments to
113 # the constructor of the arguments type
114 Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ],
115 );
116  
117 =head1 DESCRIPTION
118  
119 AWS Import/Export Service AWS Import/Export accelerates transferring
120 large amounts of data between the AWS cloud and portable storage
121 devices that you mail to us. AWS Import/Export transfers data directly
122 onto and off of your storage devices using Amazon's high-speed internal
123 network and bypassing the Internet. For large data sets, AWS
124 Import/Export is often faster than Internet transfer and more cost
125 effective than upgrading your connectivity.
126  
127 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/importexport-2010-06-01>
128  
129  
130 =head1 METHODS
131  
132 =head2 CancelJob
133  
134 =over
135  
136 =item JobId => Str
137  
138 =item [APIVersion => Str]
139  
140  
141 =back
142  
143 Each argument is described in detail in: L<Paws::ImportExport::CancelJob>
144  
145 Returns: a L<Paws::ImportExport::CancelJobOutput> instance
146  
147 This operation cancels a specified job. Only the job owner can cancel
148 it. The operation fails if the job has already started or is complete.
149  
150  
151 =head2 CreateJob
152  
153 =over
154  
155 =item JobType => Str
156  
157 =item Manifest => Str
158  
159 =item ValidateOnly => Bool
160  
161 =item [APIVersion => Str]
162  
163 =item [ManifestAddendum => Str]
164  
165  
166 =back
167  
168 Each argument is described in detail in: L<Paws::ImportExport::CreateJob>
169  
170 Returns: a L<Paws::ImportExport::CreateJobOutput> instance
171  
172 This operation initiates the process of scheduling an upload or
173 download of your data. You include in the request a manifest that
174 describes the data transfer specifics. The response to the request
175 includes a job ID, which you can use in other operations, a signature
176 that you use to identify your storage device, and the address where you
177 should ship your storage device.
178  
179  
180 =head2 GetShippingLabel
181  
182 =over
183  
184 =item JobIds => ArrayRef[Str|Undef]
185  
186 =item [APIVersion => Str]
187  
188 =item [City => Str]
189  
190 =item [Company => Str]
191  
192 =item [Country => Str]
193  
194 =item [Name => Str]
195  
196 =item [PhoneNumber => Str]
197  
198 =item [PostalCode => Str]
199  
200 =item [StateOrProvince => Str]
201  
202 =item [Street1 => Str]
203  
204 =item [Street2 => Str]
205  
206 =item [Street3 => Str]
207  
208  
209 =back
210  
211 Each argument is described in detail in: L<Paws::ImportExport::GetShippingLabel>
212  
213 Returns: a L<Paws::ImportExport::GetShippingLabelOutput> instance
214  
215 This operation generates a pre-paid UPS shipping label that you will
216 use to ship your device to AWS for processing.
217  
218  
219 =head2 GetStatus
220  
221 =over
222  
223 =item JobId => Str
224  
225 =item [APIVersion => Str]
226  
227  
228 =back
229  
230 Each argument is described in detail in: L<Paws::ImportExport::GetStatus>
231  
232 Returns: a L<Paws::ImportExport::GetStatusOutput> instance
233  
234 This operation returns information about a job, including where the job
235 is in the processing pipeline, the status of the results, and the
236 signature value associated with the job. You can only return
237 information about jobs you own.
238  
239  
240 =head2 ListJobs
241  
242 =over
243  
244 =item [APIVersion => Str]
245  
246 =item [Marker => Str]
247  
248 =item [MaxJobs => Int]
249  
250  
251 =back
252  
253 Each argument is described in detail in: L<Paws::ImportExport::ListJobs>
254  
255 Returns: a L<Paws::ImportExport::ListJobsOutput> instance
256  
257 This operation returns the jobs associated with the requester. AWS
258 Import/Export lists the jobs in reverse chronological order based on
259 the date of creation. For example if Job Test1 was created 2009Dec30
260 and Test2 was created 2010Feb05, the ListJobs operation would return
261 Test2 followed by Test1.
262  
263  
264 =head2 UpdateJob
265  
266 =over
267  
268 =item JobId => Str
269  
270 =item JobType => Str
271  
272 =item Manifest => Str
273  
274 =item ValidateOnly => Bool
275  
276 =item [APIVersion => Str]
277  
278  
279 =back
280  
281 Each argument is described in detail in: L<Paws::ImportExport::UpdateJob>
282  
283 Returns: a L<Paws::ImportExport::UpdateJobOutput> instance
284  
285 You use this operation to change the parameters specified in the
286 original manifest file by supplying a new manifest file. The manifest
287 file attached to this request replaces the original manifest file. You
288 can only use the operation after a CreateJob request but before the
289 data transfer starts and you can only use it on jobs you own.
290  
291  
292  
293  
294 =head1 PAGINATORS
295  
296 Paginator methods are helpers that repetively call methods that return partial results
297  
298 =head2 ListAllJobs(sub { },[APIVersion => Str, Marker => Str, MaxJobs => Int])
299  
300 =head2 ListAllJobs([APIVersion => Str, Marker => Str, MaxJobs => Int])
301  
302  
303 If passed a sub as first parameter, it will call the sub for each element found in :
304  
305 - Jobs, passing the object as the first parameter, and the string 'Jobs' as the second parameter
306  
307 If not, it will return a a L<Paws::ImportExport::ListJobsOutput> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory.
308  
309  
310  
311  
312  
313 =head1 SEE ALSO
314  
315 This service class forms part of L<Paws>
316  
317 =head1 BUGS and CONTRIBUTIONS
318  
319 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
320  
321 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
322  
323 =cut
324  
« blib/lib/Paws/S3.pm ↑ Summary blib/lib/Paws/Net/ResponseRole.pm »