blib/lib/Paws/MobileHub.pm untested

filter: Statementstmt 0.0% 0 / 80 Branchbran 0.0% 0 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 17 Podpod 0.0% 0 / 16 totaltotal 0.0% 0 / 121 CC 5 SCAR 15.8
CC
5
Cov
0%
ListAllBundles
12.0
ListAllProjects
12.0
service
2.0
CRAP 4.9
1 package Paws::MobileHub;
2 use Moose;
3 sub service { 'mobile' }
4 sub signing_name { 'AWSMobileHubService' }
5 sub version { '2017-07-01' }
6 sub flattened_arrays { 0 }
7 has max_attempts => (is => 'ro', isa => 'Int', default => 5);
8 has retry => (is => 'ro', isa => 'HashRef', default => sub {
9 { base => 'rand', type => 'exponential', growth_factor => 2 }
10 });
11 has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [
12 ] });
13  
14 with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::RestJsonCaller';
15  
16
17 sub CreateProject {
18 my $self = shift;
19 my $call_object = $self->new_with_coercions('Paws::MobileHub::CreateProject', @_);
20 return $self->caller->do_call($self, $call_object);
21 }
22 sub DeleteProject {
23 my $self = shift;
24 my $call_object = $self->new_with_coercions('Paws::MobileHub::DeleteProject', @_);
25 return $self->caller->do_call($self, $call_object);
26 }
27 sub DescribeBundle {
28 my $self = shift;
29 my $call_object = $self->new_with_coercions('Paws::MobileHub::DescribeBundle', @_);
30 return $self->caller->do_call($self, $call_object);
31 }
32 sub DescribeProject {
33 my $self = shift;
34 my $call_object = $self->new_with_coercions('Paws::MobileHub::DescribeProject', @_);
35 return $self->caller->do_call($self, $call_object);
36 }
37 sub ExportBundle {
38 my $self = shift;
39 my $call_object = $self->new_with_coercions('Paws::MobileHub::ExportBundle', @_);
40 return $self->caller->do_call($self, $call_object);
41 }
42 sub ExportProject {
43 my $self = shift;
44 my $call_object = $self->new_with_coercions('Paws::MobileHub::ExportProject', @_);
45 return $self->caller->do_call($self, $call_object);
46 }
47 sub ListBundles {
48 my $self = shift;
49 my $call_object = $self->new_with_coercions('Paws::MobileHub::ListBundles', @_);
50 return $self->caller->do_call($self, $call_object);
51 }
52 sub ListProjects {
53 my $self = shift;
54 my $call_object = $self->new_with_coercions('Paws::MobileHub::ListProjects', @_);
55 return $self->caller->do_call($self, $call_object);
56 }
57 sub UpdateProject {
58 my $self = shift;
59 my $call_object = $self->new_with_coercions('Paws::MobileHub::UpdateProject', @_);
60 return $self->caller->do_call($self, $call_object);
61 }
62
63 sub ListAllBundles {
64 my $self = shift;
65  
66 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
67 my $result = $self->ListBundles(@_);
68 my $next_result = $result;
69  
70 if (not defined $callback) {
71 while ($next_result->nextToken) {
72 $next_result = $self->ListBundles(@_, nextToken => $next_result->nextToken);
73 push @{ $result->bundleList }, @{ $next_result->bundleList };
74 }
75 return $result;
76 } else {
77 while ($result->nextToken) {
78 $callback->($_ => 'bundleList') foreach (@{ $result->bundleList });
79 $result = $self->ListBundles(@_, nextToken => $result->nextToken);
80 }
81 $callback->($_ => 'bundleList') foreach (@{ $result->bundleList });
82 }
83  
84 return undef
85 }
86 sub ListAllProjects {
87 my $self = shift;
88  
89 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
90 my $result = $self->ListProjects(@_);
91 my $next_result = $result;
92  
93 if (not defined $callback) {
94 while ($next_result->nextToken) {
95 $next_result = $self->ListProjects(@_, nextToken => $next_result->nextToken);
96 push @{ $result->projects }, @{ $next_result->projects };
97 }
98 return $result;
99 } else {
100 while ($result->nextToken) {
101 $callback->($_ => 'projects') foreach (@{ $result->projects });
102 $result = $self->ListProjects(@_, nextToken => $result->nextToken);
103 }
104 $callback->($_ => 'projects') foreach (@{ $result->projects });
105 }
106  
107 return undef
108 }
109  
110  
111 sub operations { qw/CreateProject DeleteProject DescribeBundle DescribeProject ExportBundle ExportProject ListBundles ListProjects UpdateProject / }
112  
113 1;
114  
115 ### main pod documentation begin ###
116  
117 =head1 NAME
118  
119 Paws::MobileHub - Perl Interface to AWS AWS Mobile
120  
121 =head1 SYNOPSIS
122  
123 use Paws;
124  
125 my $obj = Paws->service('MobileHub');
126 my $res = $obj->Method(
127 Arg1 => $val1,
128 Arg2 => [ 'V1', 'V2' ],
129 # if Arg3 is an object, the HashRef will be used as arguments to the constructor
130 # of the arguments type
131 Arg3 => { Att1 => 'Val1' },
132 # if Arg4 is an array of objects, the HashRefs will be passed as arguments to
133 # the constructor of the arguments type
134 Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ],
135 );
136  
137 =head1 DESCRIPTION
138  
139 AWS Mobile Service provides mobile app and website developers with
140 capabilities required to configure AWS resources and bootstrap their
141 developer desktop projects with the necessary SDKs, constants, tools
142 and samples to make use of those resources.
143  
144 For the AWS API documentation, see L<https://docs.aws.amazon.com/mobile-hub/>
145  
146  
147 =head1 METHODS
148  
149 =head2 CreateProject
150  
151 =over
152  
153 =item [Contents => Str]
154  
155 =item [Name => Str]
156  
157 =item [Region => Str]
158  
159 =item [SnapshotId => Str]
160  
161  
162 =back
163  
164 Each argument is described in detail in: L<Paws::MobileHub::CreateProject>
165  
166 Returns: a L<Paws::MobileHub::CreateProjectResult> instance
167  
168 Creates an AWS Mobile Hub project.
169  
170  
171 =head2 DeleteProject
172  
173 =over
174  
175 =item ProjectId => Str
176  
177  
178 =back
179  
180 Each argument is described in detail in: L<Paws::MobileHub::DeleteProject>
181  
182 Returns: a L<Paws::MobileHub::DeleteProjectResult> instance
183  
184 Delets a project in AWS Mobile Hub.
185  
186  
187 =head2 DescribeBundle
188  
189 =over
190  
191 =item BundleId => Str
192  
193  
194 =back
195  
196 Each argument is described in detail in: L<Paws::MobileHub::DescribeBundle>
197  
198 Returns: a L<Paws::MobileHub::DescribeBundleResult> instance
199  
200 Get the bundle details for the requested bundle id.
201  
202  
203 =head2 DescribeProject
204  
205 =over
206  
207 =item ProjectId => Str
208  
209 =item [SyncFromResources => Bool]
210  
211  
212 =back
213  
214 Each argument is described in detail in: L<Paws::MobileHub::DescribeProject>
215  
216 Returns: a L<Paws::MobileHub::DescribeProjectResult> instance
217  
218 Gets details about a project in AWS Mobile Hub.
219  
220  
221 =head2 ExportBundle
222  
223 =over
224  
225 =item BundleId => Str
226  
227 =item [Platform => Str]
228  
229 =item [ProjectId => Str]
230  
231  
232 =back
233  
234 Each argument is described in detail in: L<Paws::MobileHub::ExportBundle>
235  
236 Returns: a L<Paws::MobileHub::ExportBundleResult> instance
237  
238 Generates customized software development kit (SDK) and or tool
239 packages used to integrate mobile web or mobile app clients with
240 backend AWS resources.
241  
242  
243 =head2 ExportProject
244  
245 =over
246  
247 =item ProjectId => Str
248  
249  
250 =back
251  
252 Each argument is described in detail in: L<Paws::MobileHub::ExportProject>
253  
254 Returns: a L<Paws::MobileHub::ExportProjectResult> instance
255  
256 Exports project configuration to a snapshot which can be downloaded and
257 shared. Note that mobile app push credentials are encrypted in exported
258 projects, so they can only be shared successfully within the same AWS
259 account.
260  
261  
262 =head2 ListBundles
263  
264 =over
265  
266 =item [MaxResults => Int]
267  
268 =item [NextToken => Str]
269  
270  
271 =back
272  
273 Each argument is described in detail in: L<Paws::MobileHub::ListBundles>
274  
275 Returns: a L<Paws::MobileHub::ListBundlesResult> instance
276  
277 List all available bundles.
278  
279  
280 =head2 ListProjects
281  
282 =over
283  
284 =item [MaxResults => Int]
285  
286 =item [NextToken => Str]
287  
288  
289 =back
290  
291 Each argument is described in detail in: L<Paws::MobileHub::ListProjects>
292  
293 Returns: a L<Paws::MobileHub::ListProjectsResult> instance
294  
295 Lists projects in AWS Mobile Hub.
296  
297  
298 =head2 UpdateProject
299  
300 =over
301  
302 =item ProjectId => Str
303  
304 =item [Contents => Str]
305  
306  
307 =back
308  
309 Each argument is described in detail in: L<Paws::MobileHub::UpdateProject>
310  
311 Returns: a L<Paws::MobileHub::UpdateProjectResult> instance
312  
313 Update an existing project.
314  
315  
316  
317  
318 =head1 PAGINATORS
319  
320 Paginator methods are helpers that repetively call methods that return partial results
321  
322 =head2 ListAllBundles(sub { },[MaxResults => Int, NextToken => Str])
323  
324 =head2 ListAllBundles([MaxResults => Int, NextToken => Str])
325  
326  
327 If passed a sub as first parameter, it will call the sub for each element found in :
328  
329 - bundleList, passing the object as the first parameter, and the string 'bundleList' as the second parameter
330  
331 If not, it will return a a L<Paws::MobileHub::ListBundlesResult> 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.
332  
333  
334 =head2 ListAllProjects(sub { },[MaxResults => Int, NextToken => Str])
335  
336 =head2 ListAllProjects([MaxResults => Int, NextToken => Str])
337  
338  
339 If passed a sub as first parameter, it will call the sub for each element found in :
340  
341 - projects, passing the object as the first parameter, and the string 'projects' as the second parameter
342  
343 If not, it will return a a L<Paws::MobileHub::ListProjectsResult> 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.
344  
345  
346  
347  
348  
349 =head1 SEE ALSO
350  
351 This service class forms part of L<Paws>
352  
353 =head1 BUGS and CONTRIBUTIONS
354  
355 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
356  
357 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
358  
359 =cut
360