V1alpha/Task/Types.pm untested

filter: Statementstmt 0.0% 0 / 265 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 270 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::V1alpha::Task::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 'ComputeResource',
11 as InstanceOf['Google::Cloud::Batch::V1alpha::Task::ComputeResource'];
12  
13 coerce 'ComputeResource',
14 from HashRef, via { 'Google::Cloud::Batch::V1alpha::Task::ComputeResource'->new($_) };
15  
16 declare 'RepeatedComputeResource',
17 as ArrayRef[ComputeResource()];
18  
19 coerce 'RepeatedComputeResource',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::Task::ComputeResource'->new($_) } @$_ ] };
21  
22 declare 'MapStringComputeResource',
23 as HashRef[ComputeResource()];
24  
25 declare 'StatusEvent',
26 as InstanceOf['Google::Cloud::Batch::V1alpha::Task::StatusEvent'];
27  
28 coerce 'StatusEvent',
29 from HashRef, via { 'Google::Cloud::Batch::V1alpha::Task::StatusEvent'->new($_) };
30  
31 declare 'RepeatedStatusEvent',
32 as ArrayRef[StatusEvent()];
33  
34 coerce 'RepeatedStatusEvent',
35 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::Task::StatusEvent'->new($_) } @$_ ] };
36  
37 declare 'MapStringStatusEvent',
38 as HashRef[StatusEvent()];
39  
40 declare 'TaskExecution',
41 as InstanceOf['Google::Cloud::Batch::V1alpha::Task::TaskExecution'];
42  
43 coerce 'TaskExecution',
44 from HashRef, via { 'Google::Cloud::Batch::V1alpha::Task::TaskExecution'->new($_) };
45  
46 declare 'RepeatedTaskExecution',
47 as ArrayRef[TaskExecution()];
48  
49 coerce 'RepeatedTaskExecution',
50 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::Task::TaskExecution'->new($_) } @$_ ] };
51  
52 declare 'MapStringTaskExecution',
53 as HashRef[TaskExecution()];
54  
55 declare 'TaskStatus',
56 as InstanceOf['Google::Cloud::Batch::V1alpha::Task::TaskStatus'];
57  
58 coerce 'TaskStatus',
59 from HashRef, via { 'Google::Cloud::Batch::V1alpha::Task::TaskStatus'->new($_) };
60  
61 declare 'RepeatedTaskStatus',
62 as ArrayRef[TaskStatus()];
63  
64 coerce 'RepeatedTaskStatus',
65 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::Task::TaskStatus'->new($_) } @$_ ] };
66  
67 declare 'MapStringTaskStatus',
68 as HashRef[TaskStatus()];
69  
70 declare 'State',
71 as (Int | Str);
72  
73 declare 'TaskResourceUsage',
74 as InstanceOf['Google::Cloud::Batch::V1alpha::Task::TaskResourceUsage'];
75  
76 coerce 'TaskResourceUsage',
77 from HashRef, via { 'Google::Cloud::Batch::V1alpha::Task::TaskResourceUsage'->new($_) };
78  
79 declare 'RepeatedTaskResourceUsage',
80 as ArrayRef[TaskResourceUsage()];
81  
82 coerce 'RepeatedTaskResourceUsage',
83 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::Task::TaskResourceUsage'->new($_) } @$_ ] };
84  
85 declare 'MapStringTaskResourceUsage',
86 as HashRef[TaskResourceUsage()];
87  
88 declare 'Runnable',
89 as InstanceOf['Google::Cloud::Batch::V1alpha::Task::Runnable'];
90  
91 coerce 'Runnable',
92 from HashRef, via { 'Google::Cloud::Batch::V1alpha::Task::Runnable'->new($_) };
93  
94 declare 'RepeatedRunnable',
95 as ArrayRef[Runnable()];
96  
97 coerce 'RepeatedRunnable',
98 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::Task::Runnable'->new($_) } @$_ ] };
99  
100 declare 'MapStringRunnable',
101 as HashRef[Runnable()];
102  
103 declare 'Container',
104 as InstanceOf['Google::Cloud::Batch::V1alpha::Task::Runnable::Container'];
105  
106 coerce 'Container',
107 from HashRef, via { 'Google::Cloud::Batch::V1alpha::Task::Runnable::Container'->new($_) };
108  
109 declare 'RepeatedContainer',
110 as ArrayRef[Container()];
111  
112 coerce 'RepeatedContainer',
113 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::Task::Runnable::Container'->new($_) } @$_ ] };
114  
115 declare 'MapStringContainer',
116 as HashRef[Container()];
117  
118 declare 'Script',
119 as InstanceOf['Google::Cloud::Batch::V1alpha::Task::Runnable::Script'];
120  
121 coerce 'Script',
122 from HashRef, via { 'Google::Cloud::Batch::V1alpha::Task::Runnable::Script'->new($_) };
123  
124 declare 'RepeatedScript',
125 as ArrayRef[Script()];
126  
127 coerce 'RepeatedScript',
128 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::Task::Runnable::Script'->new($_) } @$_ ] };
129  
130 declare 'MapStringScript',
131 as HashRef[Script()];
132  
133 declare 'Barrier',
134 as InstanceOf['Google::Cloud::Batch::V1alpha::Task::Runnable::Barrier'];
135  
136 coerce 'Barrier',
137 from HashRef, via { 'Google::Cloud::Batch::V1alpha::Task::Runnable::Barrier'->new($_) };
138  
139 declare 'RepeatedBarrier',
140 as ArrayRef[Barrier()];
141  
142 coerce 'RepeatedBarrier',
143 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::Task::Runnable::Barrier'->new($_) } @$_ ] };
144  
145 declare 'MapStringBarrier',
146 as HashRef[Barrier()];
147  
148 declare 'LabelsEntry',
149 as InstanceOf['Google::Cloud::Batch::V1alpha::Task::Runnable::LabelsEntry'];
150  
151 coerce 'LabelsEntry',
152 from HashRef, via { 'Google::Cloud::Batch::V1alpha::Task::Runnable::LabelsEntry'->new($_) };
153  
154 declare 'RepeatedLabelsEntry',
155 as ArrayRef[LabelsEntry()];
156  
157 coerce 'RepeatedLabelsEntry',
158 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::Task::Runnable::LabelsEntry'->new($_) } @$_ ] };
159  
160 declare 'MapStringLabelsEntry',
161 as HashRef[LabelsEntry()];
162  
163 declare 'TaskSpec',
164 as InstanceOf['Google::Cloud::Batch::V1alpha::Task::TaskSpec'];
165  
166 coerce 'TaskSpec',
167 from HashRef, via { 'Google::Cloud::Batch::V1alpha::Task::TaskSpec'->new($_) };
168  
169 declare 'RepeatedTaskSpec',
170 as ArrayRef[TaskSpec()];
171  
172 coerce 'RepeatedTaskSpec',
173 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::Task::TaskSpec'->new($_) } @$_ ] };
174  
175 declare 'MapStringTaskSpec',
176 as HashRef[TaskSpec()];
177  
178 declare 'EnvironmentsEntry',
179 as InstanceOf['Google::Cloud::Batch::V1alpha::Task::TaskSpec::EnvironmentsEntry'];
180  
181 coerce 'EnvironmentsEntry',
182 from HashRef, via { 'Google::Cloud::Batch::V1alpha::Task::TaskSpec::EnvironmentsEntry'->new($_) };
183  
184 declare 'RepeatedEnvironmentsEntry',
185 as ArrayRef[EnvironmentsEntry()];
186  
187 coerce 'RepeatedEnvironmentsEntry',
188 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::Task::TaskSpec::EnvironmentsEntry'->new($_) } @$_ ] };
189  
190 declare 'MapStringEnvironmentsEntry',
191 as HashRef[EnvironmentsEntry()];
192  
193 declare 'LifecyclePolicy',
194 as InstanceOf['Google::Cloud::Batch::V1alpha::Task::LifecyclePolicy'];
195  
196 coerce 'LifecyclePolicy',
197 from HashRef, via { 'Google::Cloud::Batch::V1alpha::Task::LifecyclePolicy'->new($_) };
198  
199 declare 'RepeatedLifecyclePolicy',
200 as ArrayRef[LifecyclePolicy()];
201  
202 coerce 'RepeatedLifecyclePolicy',
203 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::Task::LifecyclePolicy'->new($_) } @$_ ] };
204  
205 declare 'MapStringLifecyclePolicy',
206 as HashRef[LifecyclePolicy()];
207  
208 declare 'Action',
209 as (Int | Str);
210  
211 declare 'ActionCondition',
212 as InstanceOf['Google::Cloud::Batch::V1alpha::Task::LifecyclePolicy::ActionCondition'];
213  
214 coerce 'ActionCondition',
215 from HashRef, via { 'Google::Cloud::Batch::V1alpha::Task::LifecyclePolicy::ActionCondition'->new($_) };
216  
217 declare 'RepeatedActionCondition',
218 as ArrayRef[ActionCondition()];
219  
220 coerce 'RepeatedActionCondition',
221 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::Task::LifecyclePolicy::ActionCondition'->new($_) } @$_ ] };
222  
223 declare 'MapStringActionCondition',
224 as HashRef[ActionCondition()];
225  
226 declare 'Task',
227 as InstanceOf['Google::Cloud::Batch::V1alpha::Task::Task'];
228  
229 coerce 'Task',
230 from HashRef, via { 'Google::Cloud::Batch::V1alpha::Task::Task'->new($_) };
231  
232 declare 'RepeatedTask',
233 as ArrayRef[Task()];
234  
235 coerce 'RepeatedTask',
236 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::Task::Task'->new($_) } @$_ ] };
237  
238 declare 'MapStringTask',
239 as HashRef[Task()];
240  
241 declare 'Environment',
242 as InstanceOf['Google::Cloud::Batch::V1alpha::Task::Environment'];
243  
244 coerce 'Environment',
245 from HashRef, via { 'Google::Cloud::Batch::V1alpha::Task::Environment'->new($_) };
246  
247 declare 'RepeatedEnvironment',
248 as ArrayRef[Environment()];
249  
250 coerce 'RepeatedEnvironment',
251 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::Task::Environment'->new($_) } @$_ ] };
252  
253 declare 'MapStringEnvironment',
254 as HashRef[Environment()];
255  
256 declare 'KMSEnvMap',
257 as InstanceOf['Google::Cloud::Batch::V1alpha::Task::Environment::KMSEnvMap'];
258  
259 coerce 'KMSEnvMap',
260 from HashRef, via { 'Google::Cloud::Batch::V1alpha::Task::Environment::KMSEnvMap'->new($_) };
261  
262 declare 'RepeatedKMSEnvMap',
263 as ArrayRef[KMSEnvMap()];
264  
265 coerce 'RepeatedKMSEnvMap',
266 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::Task::Environment::KMSEnvMap'->new($_) } @$_ ] };
267  
268 declare 'MapStringKMSEnvMap',
269 as HashRef[KMSEnvMap()];
270  
271 declare 'VariablesEntry',
272 as InstanceOf['Google::Cloud::Batch::V1alpha::Task::Environment::VariablesEntry'];
273  
274 coerce 'VariablesEntry',
275 from HashRef, via { 'Google::Cloud::Batch::V1alpha::Task::Environment::VariablesEntry'->new($_) };
276  
277 declare 'RepeatedVariablesEntry',
278 as ArrayRef[VariablesEntry()];
279  
280 coerce 'RepeatedVariablesEntry',
281 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::Task::Environment::VariablesEntry'->new($_) } @$_ ] };
282  
283 declare 'MapStringVariablesEntry',
284 as HashRef[VariablesEntry()];
285  
286 declare 'SecretVariablesEntry',
287 as InstanceOf['Google::Cloud::Batch::V1alpha::Task::Environment::SecretVariablesEntry'];
288  
289 coerce 'SecretVariablesEntry',
290 from HashRef, via { 'Google::Cloud::Batch::V1alpha::Task::Environment::SecretVariablesEntry'->new($_) };
291  
292 declare 'RepeatedSecretVariablesEntry',
293 as ArrayRef[SecretVariablesEntry()];
294  
295 coerce 'RepeatedSecretVariablesEntry',
296 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Batch::V1alpha::Task::Environment::SecretVariablesEntry'->new($_) } @$_ ] };
297  
298 declare 'MapStringSecretVariablesEntry',
299 as HashRef[SecretVariablesEntry()];
300  
301 1;
302  
303 __END__