V1/Job/Types.pm untested

filter: Statementstmt 0.0% 0 / 373 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 378 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Cloud::Batch::V1::Job::Types;
2  
3 use strict;
4 use warnings;
5  
6 use Type::Library -base;
7 use Type::Utils -all;
8 use Types::Standard -types;
9  
10 declare 'Job',
11 as InstanceOf['Google::Cloud::Batch::V1::Job::Job'];
12  
13 coerce 'Job',
14 from HashRef, via { 'Google::Cloud::Batch::V1::Job::Job'->new($_) };
15  
16 declare 'RepeatedJob',
17 as ArrayRef[Job()];
18  
19 coerce 'RepeatedJob',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1::Job::Job'->new($_) } @$_ ] };
21  
22 declare 'MapStringJob',
23 as HashRef[Job()];
24  
25 declare 'LabelsEntry',
26 as InstanceOf['Google::Cloud::Batch::V1::Job::Job::LabelsEntry'];
27  
28 coerce 'LabelsEntry',
29 from HashRef, via { 'Google::Cloud::Batch::V1::Job::Job::LabelsEntry'->new($_) };
30  
31 declare 'RepeatedLabelsEntry',
32 as ArrayRef[LabelsEntry()];
33  
34 coerce 'RepeatedLabelsEntry',
35 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1::Job::Job::LabelsEntry'->new($_) } @$_ ] };
36  
37 declare 'MapStringLabelsEntry',
38 as HashRef[LabelsEntry()];
39  
40 declare 'LogsPolicy',
41 as InstanceOf['Google::Cloud::Batch::V1::Job::LogsPolicy'];
42  
43 coerce 'LogsPolicy',
44 from HashRef, via { 'Google::Cloud::Batch::V1::Job::LogsPolicy'->new($_) };
45  
46 declare 'RepeatedLogsPolicy',
47 as ArrayRef[LogsPolicy()];
48  
49 coerce 'RepeatedLogsPolicy',
50 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1::Job::LogsPolicy'->new($_) } @$_ ] };
51  
52 declare 'MapStringLogsPolicy',
53 as HashRef[LogsPolicy()];
54  
55 declare 'Destination',
56 as (Int | Str);
57  
58 declare 'CloudLoggingOption',
59 as InstanceOf['Google::Cloud::Batch::V1::Job::LogsPolicy::CloudLoggingOption'];
60  
61 coerce 'CloudLoggingOption',
62 from HashRef, via { 'Google::Cloud::Batch::V1::Job::LogsPolicy::CloudLoggingOption'->new($_) };
63  
64 declare 'RepeatedCloudLoggingOption',
65 as ArrayRef[CloudLoggingOption()];
66  
67 coerce 'RepeatedCloudLoggingOption',
68 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1::Job::LogsPolicy::CloudLoggingOption'->new($_) } @$_ ] };
69  
70 declare 'MapStringCloudLoggingOption',
71 as HashRef[CloudLoggingOption()];
72  
73 declare 'JobStatus',
74 as InstanceOf['Google::Cloud::Batch::V1::Job::JobStatus'];
75  
76 coerce 'JobStatus',
77 from HashRef, via { 'Google::Cloud::Batch::V1::Job::JobStatus'->new($_) };
78  
79 declare 'RepeatedJobStatus',
80 as ArrayRef[JobStatus()];
81  
82 coerce 'RepeatedJobStatus',
83 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1::Job::JobStatus'->new($_) } @$_ ] };
84  
85 declare 'MapStringJobStatus',
86 as HashRef[JobStatus()];
87  
88 declare 'State',
89 as (Int | Str);
90  
91 declare 'InstanceStatus',
92 as InstanceOf['Google::Cloud::Batch::V1::Job::JobStatus::InstanceStatus'];
93  
94 coerce 'InstanceStatus',
95 from HashRef, via { 'Google::Cloud::Batch::V1::Job::JobStatus::InstanceStatus'->new($_) };
96  
97 declare 'RepeatedInstanceStatus',
98 as ArrayRef[InstanceStatus()];
99  
100 coerce 'RepeatedInstanceStatus',
101 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1::Job::JobStatus::InstanceStatus'->new($_) } @$_ ] };
102  
103 declare 'MapStringInstanceStatus',
104 as HashRef[InstanceStatus()];
105  
106 declare 'TaskGroupStatus',
107 as InstanceOf['Google::Cloud::Batch::V1::Job::JobStatus::TaskGroupStatus'];
108  
109 coerce 'TaskGroupStatus',
110 from HashRef, via { 'Google::Cloud::Batch::V1::Job::JobStatus::TaskGroupStatus'->new($_) };
111  
112 declare 'RepeatedTaskGroupStatus',
113 as ArrayRef[TaskGroupStatus()];
114  
115 coerce 'RepeatedTaskGroupStatus',
116 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1::Job::JobStatus::TaskGroupStatus'->new($_) } @$_ ] };
117  
118 declare 'MapStringTaskGroupStatus',
119 as HashRef[TaskGroupStatus()];
120  
121 declare 'CountsEntry',
122 as InstanceOf['Google::Cloud::Batch::V1::Job::JobStatus::TaskGroupStatus::CountsEntry'];
123  
124 coerce 'CountsEntry',
125 from HashRef, via { 'Google::Cloud::Batch::V1::Job::JobStatus::TaskGroupStatus::CountsEntry'->new($_) };
126  
127 declare 'RepeatedCountsEntry',
128 as ArrayRef[CountsEntry()];
129  
130 coerce 'RepeatedCountsEntry',
131 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1::Job::JobStatus::TaskGroupStatus::CountsEntry'->new($_) } @$_ ] };
132  
133 declare 'MapStringCountsEntry',
134 as HashRef[CountsEntry()];
135  
136 declare 'TaskGroupsEntry',
137 as InstanceOf['Google::Cloud::Batch::V1::Job::JobStatus::TaskGroupsEntry'];
138  
139 coerce 'TaskGroupsEntry',
140 from HashRef, via { 'Google::Cloud::Batch::V1::Job::JobStatus::TaskGroupsEntry'->new($_) };
141  
142 declare 'RepeatedTaskGroupsEntry',
143 as ArrayRef[TaskGroupsEntry()];
144  
145 coerce 'RepeatedTaskGroupsEntry',
146 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1::Job::JobStatus::TaskGroupsEntry'->new($_) } @$_ ] };
147  
148 declare 'MapStringTaskGroupsEntry',
149 as HashRef[TaskGroupsEntry()];
150  
151 declare 'JobNotification',
152 as InstanceOf['Google::Cloud::Batch::V1::Job::JobNotification'];
153  
154 coerce 'JobNotification',
155 from HashRef, via { 'Google::Cloud::Batch::V1::Job::JobNotification'->new($_) };
156  
157 declare 'RepeatedJobNotification',
158 as ArrayRef[JobNotification()];
159  
160 coerce 'RepeatedJobNotification',
161 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1::Job::JobNotification'->new($_) } @$_ ] };
162  
163 declare 'MapStringJobNotification',
164 as HashRef[JobNotification()];
165  
166 declare 'Type',
167 as (Int | Str);
168  
169 declare 'Message',
170 as InstanceOf['Google::Cloud::Batch::V1::Job::JobNotification::Message'];
171  
172 coerce 'Message',
173 from HashRef, via { 'Google::Cloud::Batch::V1::Job::JobNotification::Message'->new($_) };
174  
175 declare 'RepeatedMessage',
176 as ArrayRef[Message()];
177  
178 coerce 'RepeatedMessage',
179 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1::Job::JobNotification::Message'->new($_) } @$_ ] };
180  
181 declare 'MapStringMessage',
182 as HashRef[Message()];
183  
184 declare 'AllocationPolicy',
185 as InstanceOf['Google::Cloud::Batch::V1::Job::AllocationPolicy'];
186  
187 coerce 'AllocationPolicy',
188 from HashRef, via { 'Google::Cloud::Batch::V1::Job::AllocationPolicy'->new($_) };
189  
190 declare 'RepeatedAllocationPolicy',
191 as ArrayRef[AllocationPolicy()];
192  
193 coerce 'RepeatedAllocationPolicy',
194 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1::Job::AllocationPolicy'->new($_) } @$_ ] };
195  
196 declare 'MapStringAllocationPolicy',
197 as HashRef[AllocationPolicy()];
198  
199 declare 'ProvisioningModel',
200 as (Int | Str);
201  
202 declare 'LocationPolicy',
203 as InstanceOf['Google::Cloud::Batch::V1::Job::AllocationPolicy::LocationPolicy'];
204  
205 coerce 'LocationPolicy',
206 from HashRef, via { 'Google::Cloud::Batch::V1::Job::AllocationPolicy::LocationPolicy'->new($_) };
207  
208 declare 'RepeatedLocationPolicy',
209 as ArrayRef[LocationPolicy()];
210  
211 coerce 'RepeatedLocationPolicy',
212 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1::Job::AllocationPolicy::LocationPolicy'->new($_) } @$_ ] };
213  
214 declare 'MapStringLocationPolicy',
215 as HashRef[LocationPolicy()];
216  
217 declare 'Disk',
218 as InstanceOf['Google::Cloud::Batch::V1::Job::AllocationPolicy::Disk'];
219  
220 coerce 'Disk',
221 from HashRef, via { 'Google::Cloud::Batch::V1::Job::AllocationPolicy::Disk'->new($_) };
222  
223 declare 'RepeatedDisk',
224 as ArrayRef[Disk()];
225  
226 coerce 'RepeatedDisk',
227 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1::Job::AllocationPolicy::Disk'->new($_) } @$_ ] };
228  
229 declare 'MapStringDisk',
230 as HashRef[Disk()];
231  
232 declare 'AttachedDisk',
233 as InstanceOf['Google::Cloud::Batch::V1::Job::AllocationPolicy::AttachedDisk'];
234  
235 coerce 'AttachedDisk',
236 from HashRef, via { 'Google::Cloud::Batch::V1::Job::AllocationPolicy::AttachedDisk'->new($_) };
237  
238 declare 'RepeatedAttachedDisk',
239 as ArrayRef[AttachedDisk()];
240  
241 coerce 'RepeatedAttachedDisk',
242 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1::Job::AllocationPolicy::AttachedDisk'->new($_) } @$_ ] };
243  
244 declare 'MapStringAttachedDisk',
245 as HashRef[AttachedDisk()];
246  
247 declare 'Accelerator',
248 as InstanceOf['Google::Cloud::Batch::V1::Job::AllocationPolicy::Accelerator'];
249  
250 coerce 'Accelerator',
251 from HashRef, via { 'Google::Cloud::Batch::V1::Job::AllocationPolicy::Accelerator'->new($_) };
252  
253 declare 'RepeatedAccelerator',
254 as ArrayRef[Accelerator()];
255  
256 coerce 'RepeatedAccelerator',
257 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1::Job::AllocationPolicy::Accelerator'->new($_) } @$_ ] };
258  
259 declare 'MapStringAccelerator',
260 as HashRef[Accelerator()];
261  
262 declare 'InstancePolicy',
263 as InstanceOf['Google::Cloud::Batch::V1::Job::AllocationPolicy::InstancePolicy'];
264  
265 coerce 'InstancePolicy',
266 from HashRef, via { 'Google::Cloud::Batch::V1::Job::AllocationPolicy::InstancePolicy'->new($_) };
267  
268 declare 'RepeatedInstancePolicy',
269 as ArrayRef[InstancePolicy()];
270  
271 coerce 'RepeatedInstancePolicy',
272 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1::Job::AllocationPolicy::InstancePolicy'->new($_) } @$_ ] };
273  
274 declare 'MapStringInstancePolicy',
275 as HashRef[InstancePolicy()];
276  
277 declare 'InstancePolicyOrTemplate',
278 as InstanceOf['Google::Cloud::Batch::V1::Job::AllocationPolicy::InstancePolicyOrTemplate'];
279  
280 coerce 'InstancePolicyOrTemplate',
281 from HashRef, via { 'Google::Cloud::Batch::V1::Job::AllocationPolicy::InstancePolicyOrTemplate'->new($_) };
282  
283 declare 'RepeatedInstancePolicyOrTemplate',
284 as ArrayRef[InstancePolicyOrTemplate()];
285  
286 coerce 'RepeatedInstancePolicyOrTemplate',
287 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1::Job::AllocationPolicy::InstancePolicyOrTemplate'->new($_) } @$_ ] };
288  
289 declare 'MapStringInstancePolicyOrTemplate',
290 as HashRef[InstancePolicyOrTemplate()];
291  
292 declare 'NetworkInterface',
293 as InstanceOf['Google::Cloud::Batch::V1::Job::AllocationPolicy::NetworkInterface'];
294  
295 coerce 'NetworkInterface',
296 from HashRef, via { 'Google::Cloud::Batch::V1::Job::AllocationPolicy::NetworkInterface'->new($_) };
297  
298 declare 'RepeatedNetworkInterface',
299 as ArrayRef[NetworkInterface()];
300  
301 coerce 'RepeatedNetworkInterface',
302 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1::Job::AllocationPolicy::NetworkInterface'->new($_) } @$_ ] };
303  
304 declare 'MapStringNetworkInterface',
305 as HashRef[NetworkInterface()];
306  
307 declare 'NicType',
308 as (Int | Str);
309  
310 declare 'NetworkPolicy',
311 as InstanceOf['Google::Cloud::Batch::V1::Job::AllocationPolicy::NetworkPolicy'];
312  
313 coerce 'NetworkPolicy',
314 from HashRef, via { 'Google::Cloud::Batch::V1::Job::AllocationPolicy::NetworkPolicy'->new($_) };
315  
316 declare 'RepeatedNetworkPolicy',
317 as ArrayRef[NetworkPolicy()];
318  
319 coerce 'RepeatedNetworkPolicy',
320 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1::Job::AllocationPolicy::NetworkPolicy'->new($_) } @$_ ] };
321  
322 declare 'MapStringNetworkPolicy',
323 as HashRef[NetworkPolicy()];
324  
325 declare 'PlacementPolicy',
326 as InstanceOf['Google::Cloud::Batch::V1::Job::AllocationPolicy::PlacementPolicy'];
327  
328 coerce 'PlacementPolicy',
329 from HashRef, via { 'Google::Cloud::Batch::V1::Job::AllocationPolicy::PlacementPolicy'->new($_) };
330  
331 declare 'RepeatedPlacementPolicy',
332 as ArrayRef[PlacementPolicy()];
333  
334 coerce 'RepeatedPlacementPolicy',
335 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1::Job::AllocationPolicy::PlacementPolicy'->new($_) } @$_ ] };
336  
337 declare 'MapStringPlacementPolicy',
338 as HashRef[PlacementPolicy()];
339  
340 declare 'InstanceFlexibilityPolicy',
341 as InstanceOf['Google::Cloud::Batch::V1::Job::AllocationPolicy::InstanceFlexibilityPolicy'];
342  
343 coerce 'InstanceFlexibilityPolicy',
344 from HashRef, via { 'Google::Cloud::Batch::V1::Job::AllocationPolicy::InstanceFlexibilityPolicy'->new($_) };
345  
346 declare 'RepeatedInstanceFlexibilityPolicy',
347 as ArrayRef[InstanceFlexibilityPolicy()];
348  
349 coerce 'RepeatedInstanceFlexibilityPolicy',
350 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1::Job::AllocationPolicy::InstanceFlexibilityPolicy'->new($_) } @$_ ] };
351  
352 declare 'MapStringInstanceFlexibilityPolicy',
353 as HashRef[InstanceFlexibilityPolicy()];
354  
355 declare 'InstanceSelectionsEntry',
356 as InstanceOf['Google::Cloud::Batch::V1::Job::AllocationPolicy::InstanceFlexibilityPolicy::InstanceSelectionsEntry'];
357  
358 coerce 'InstanceSelectionsEntry',
359 from HashRef, via { 'Google::Cloud::Batch::V1::Job::AllocationPolicy::InstanceFlexibilityPolicy::InstanceSelectionsEntry'->new($_) };
360  
361 declare 'RepeatedInstanceSelectionsEntry',
362 as ArrayRef[InstanceSelectionsEntry()];
363  
364 coerce 'RepeatedInstanceSelectionsEntry',
365 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1::Job::AllocationPolicy::InstanceFlexibilityPolicy::InstanceSelectionsEntry'->new($_) } @$_ ] };
366  
367 declare 'MapStringInstanceSelectionsEntry',
368 as HashRef[InstanceSelectionsEntry()];
369  
370 declare 'InstanceSelection',
371 as InstanceOf['Google::Cloud::Batch::V1::Job::AllocationPolicy::InstanceSelection'];
372  
373 coerce 'InstanceSelection',
374 from HashRef, via { 'Google::Cloud::Batch::V1::Job::AllocationPolicy::InstanceSelection'->new($_) };
375  
376 declare 'RepeatedInstanceSelection',
377 as ArrayRef[InstanceSelection()];
378  
379 coerce 'RepeatedInstanceSelection',
380 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1::Job::AllocationPolicy::InstanceSelection'->new($_) } @$_ ] };
381  
382 declare 'MapStringInstanceSelection',
383 as HashRef[InstanceSelection()];
384  
385 declare 'LabelsEntry',
386 as InstanceOf['Google::Cloud::Batch::V1::Job::AllocationPolicy::LabelsEntry'];
387  
388 coerce 'LabelsEntry',
389 from HashRef, via { 'Google::Cloud::Batch::V1::Job::AllocationPolicy::LabelsEntry'->new($_) };
390  
391 declare 'RepeatedLabelsEntry',
392 as ArrayRef[LabelsEntry()];
393  
394 coerce 'RepeatedLabelsEntry',
395 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1::Job::AllocationPolicy::LabelsEntry'->new($_) } @$_ ] };
396  
397 declare 'MapStringLabelsEntry',
398 as HashRef[LabelsEntry()];
399  
400 declare 'TaskGroup',
401 as InstanceOf['Google::Cloud::Batch::V1::Job::TaskGroup'];
402  
403 coerce 'TaskGroup',
404 from HashRef, via { 'Google::Cloud::Batch::V1::Job::TaskGroup'->new($_) };
405  
406 declare 'RepeatedTaskGroup',
407 as ArrayRef[TaskGroup()];
408  
409 coerce 'RepeatedTaskGroup',
410 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1::Job::TaskGroup'->new($_) } @$_ ] };
411  
412 declare 'MapStringTaskGroup',
413 as HashRef[TaskGroup()];
414  
415 declare 'SchedulingPolicy',
416 as (Int | Str);
417  
418 declare 'ServiceAccount',
419 as InstanceOf['Google::Cloud::Batch::V1::Job::ServiceAccount'];
420  
421 coerce 'ServiceAccount',
422 from HashRef, via { 'Google::Cloud::Batch::V1::Job::ServiceAccount'->new($_) };
423  
424 declare 'RepeatedServiceAccount',
425 as ArrayRef[ServiceAccount()];
426  
427 coerce 'RepeatedServiceAccount',
428 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1::Job::ServiceAccount'->new($_) } @$_ ] };
429  
430 declare 'MapStringServiceAccount',
431 as HashRef[ServiceAccount()];
432  
433 1;
434  
435 __END__