V1/Execution/Types.pm untested

filter: Statementstmt 0.0% 0 / 111 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 116 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::Notebooks::V1::Execution::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 'ExecutionTemplate',
11 as InstanceOf['Google::Cloud::Notebooks::V1::Execution::ExecutionTemplate'];
12  
13 coerce 'ExecutionTemplate',
14 from HashRef, via { 'Google::Cloud::Notebooks::V1::Execution::ExecutionTemplate'->new($_) };
15  
16 declare 'RepeatedExecutionTemplate',
17 as ArrayRef[ExecutionTemplate()];
18  
19 coerce 'RepeatedExecutionTemplate',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Notebooks::V1::Execution::ExecutionTemplate'->new($_) } @$_ ] };
21  
22 declare 'MapStringExecutionTemplate',
23 as HashRef[ExecutionTemplate()];
24  
25 declare 'ScaleTier',
26 as (Int | Str);
27  
28 declare 'SchedulerAcceleratorType',
29 as (Int | Str);
30  
31 declare 'JobType',
32 as (Int | Str);
33  
34 declare 'SchedulerAcceleratorConfig',
35 as InstanceOf['Google::Cloud::Notebooks::V1::Execution::ExecutionTemplate::SchedulerAcceleratorConfig'];
36  
37 coerce 'SchedulerAcceleratorConfig',
38 from HashRef, via { 'Google::Cloud::Notebooks::V1::Execution::ExecutionTemplate::SchedulerAcceleratorConfig'->new($_) };
39  
40 declare 'RepeatedSchedulerAcceleratorConfig',
41 as ArrayRef[SchedulerAcceleratorConfig()];
42  
43 coerce 'RepeatedSchedulerAcceleratorConfig',
44 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Notebooks::V1::Execution::ExecutionTemplate::SchedulerAcceleratorConfig'->new($_) } @$_ ] };
45  
46 declare 'MapStringSchedulerAcceleratorConfig',
47 as HashRef[SchedulerAcceleratorConfig()];
48  
49 declare 'DataprocParameters',
50 as InstanceOf['Google::Cloud::Notebooks::V1::Execution::ExecutionTemplate::DataprocParameters'];
51  
52 coerce 'DataprocParameters',
53 from HashRef, via { 'Google::Cloud::Notebooks::V1::Execution::ExecutionTemplate::DataprocParameters'->new($_) };
54  
55 declare 'RepeatedDataprocParameters',
56 as ArrayRef[DataprocParameters()];
57  
58 coerce 'RepeatedDataprocParameters',
59 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Notebooks::V1::Execution::ExecutionTemplate::DataprocParameters'->new($_) } @$_ ] };
60  
61 declare 'MapStringDataprocParameters',
62 as HashRef[DataprocParameters()];
63  
64 declare 'VertexAIParameters',
65 as InstanceOf['Google::Cloud::Notebooks::V1::Execution::ExecutionTemplate::VertexAIParameters'];
66  
67 coerce 'VertexAIParameters',
68 from HashRef, via { 'Google::Cloud::Notebooks::V1::Execution::ExecutionTemplate::VertexAIParameters'->new($_) };
69  
70 declare 'RepeatedVertexAIParameters',
71 as ArrayRef[VertexAIParameters()];
72  
73 coerce 'RepeatedVertexAIParameters',
74 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Notebooks::V1::Execution::ExecutionTemplate::VertexAIParameters'->new($_) } @$_ ] };
75  
76 declare 'MapStringVertexAIParameters',
77 as HashRef[VertexAIParameters()];
78  
79 declare 'EnvEntry',
80 as InstanceOf['Google::Cloud::Notebooks::V1::Execution::ExecutionTemplate::VertexAIParameters::EnvEntry'];
81  
82 coerce 'EnvEntry',
83 from HashRef, via { 'Google::Cloud::Notebooks::V1::Execution::ExecutionTemplate::VertexAIParameters::EnvEntry'->new($_) };
84  
85 declare 'RepeatedEnvEntry',
86 as ArrayRef[EnvEntry()];
87  
88 coerce 'RepeatedEnvEntry',
89 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Notebooks::V1::Execution::ExecutionTemplate::VertexAIParameters::EnvEntry'->new($_) } @$_ ] };
90  
91 declare 'MapStringEnvEntry',
92 as HashRef[EnvEntry()];
93  
94 declare 'LabelsEntry',
95 as InstanceOf['Google::Cloud::Notebooks::V1::Execution::ExecutionTemplate::LabelsEntry'];
96  
97 coerce 'LabelsEntry',
98 from HashRef, via { 'Google::Cloud::Notebooks::V1::Execution::ExecutionTemplate::LabelsEntry'->new($_) };
99  
100 declare 'RepeatedLabelsEntry',
101 as ArrayRef[LabelsEntry()];
102  
103 coerce 'RepeatedLabelsEntry',
104 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Notebooks::V1::Execution::ExecutionTemplate::LabelsEntry'->new($_) } @$_ ] };
105  
106 declare 'MapStringLabelsEntry',
107 as HashRef[LabelsEntry()];
108  
109 declare 'Execution',
110 as InstanceOf['Google::Cloud::Notebooks::V1::Execution::Execution'];
111  
112 coerce 'Execution',
113 from HashRef, via { 'Google::Cloud::Notebooks::V1::Execution::Execution'->new($_) };
114  
115 declare 'RepeatedExecution',
116 as ArrayRef[Execution()];
117  
118 coerce 'RepeatedExecution',
119 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Notebooks::V1::Execution::Execution'->new($_) } @$_ ] };
120  
121 declare 'MapStringExecution',
122 as HashRef[Execution()];
123  
124 declare 'State',
125 as (Int | Str);
126  
127 1;
128  
129 __END__