V1/Task/Types.pm untested

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