V2/GceSetup/Types.pm untested

filter: Statementstmt 0.0% 0 / 163 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 168 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::V2::GceSetup::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 'DiskEncryption',
11 as (Int | Str);
12  
13 declare 'DiskType',
14 as (Int | Str);
15  
16 declare 'NetworkInterface',
17 as InstanceOf['Google::Cloud::Notebooks::V2::GceSetup::NetworkInterface'];
18  
19 coerce 'NetworkInterface',
20 from HashRef, via { 'Google::Cloud::Notebooks::V2::GceSetup::NetworkInterface'->new($_) };
21  
22 declare 'RepeatedNetworkInterface',
23 as ArrayRef[NetworkInterface()];
24  
25 coerce 'RepeatedNetworkInterface',
26 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Notebooks::V2::GceSetup::NetworkInterface'->new($_) } @$_ ] };
27  
28 declare 'MapStringNetworkInterface',
29 as HashRef[NetworkInterface()];
30  
31 declare 'NicType',
32 as (Int | Str);
33  
34 declare 'VmImage',
35 as InstanceOf['Google::Cloud::Notebooks::V2::GceSetup::VmImage'];
36  
37 coerce 'VmImage',
38 from HashRef, via { 'Google::Cloud::Notebooks::V2::GceSetup::VmImage'->new($_) };
39  
40 declare 'RepeatedVmImage',
41 as ArrayRef[VmImage()];
42  
43 coerce 'RepeatedVmImage',
44 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Notebooks::V2::GceSetup::VmImage'->new($_) } @$_ ] };
45  
46 declare 'MapStringVmImage',
47 as HashRef[VmImage()];
48  
49 declare 'ContainerImage',
50 as InstanceOf['Google::Cloud::Notebooks::V2::GceSetup::ContainerImage'];
51  
52 coerce 'ContainerImage',
53 from HashRef, via { 'Google::Cloud::Notebooks::V2::GceSetup::ContainerImage'->new($_) };
54  
55 declare 'RepeatedContainerImage',
56 as ArrayRef[ContainerImage()];
57  
58 coerce 'RepeatedContainerImage',
59 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Notebooks::V2::GceSetup::ContainerImage'->new($_) } @$_ ] };
60  
61 declare 'MapStringContainerImage',
62 as HashRef[ContainerImage()];
63  
64 declare 'AcceleratorConfig',
65 as InstanceOf['Google::Cloud::Notebooks::V2::GceSetup::AcceleratorConfig'];
66  
67 coerce 'AcceleratorConfig',
68 from HashRef, via { 'Google::Cloud::Notebooks::V2::GceSetup::AcceleratorConfig'->new($_) };
69  
70 declare 'RepeatedAcceleratorConfig',
71 as ArrayRef[AcceleratorConfig()];
72  
73 coerce 'RepeatedAcceleratorConfig',
74 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Notebooks::V2::GceSetup::AcceleratorConfig'->new($_) } @$_ ] };
75  
76 declare 'MapStringAcceleratorConfig',
77 as HashRef[AcceleratorConfig()];
78  
79 declare 'AcceleratorType',
80 as (Int | Str);
81  
82 declare 'ShieldedInstanceConfig',
83 as InstanceOf['Google::Cloud::Notebooks::V2::GceSetup::ShieldedInstanceConfig'];
84  
85 coerce 'ShieldedInstanceConfig',
86 from HashRef, via { 'Google::Cloud::Notebooks::V2::GceSetup::ShieldedInstanceConfig'->new($_) };
87  
88 declare 'RepeatedShieldedInstanceConfig',
89 as ArrayRef[ShieldedInstanceConfig()];
90  
91 coerce 'RepeatedShieldedInstanceConfig',
92 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Notebooks::V2::GceSetup::ShieldedInstanceConfig'->new($_) } @$_ ] };
93  
94 declare 'MapStringShieldedInstanceConfig',
95 as HashRef[ShieldedInstanceConfig()];
96  
97 declare 'GPUDriverConfig',
98 as InstanceOf['Google::Cloud::Notebooks::V2::GceSetup::GPUDriverConfig'];
99  
100 coerce 'GPUDriverConfig',
101 from HashRef, via { 'Google::Cloud::Notebooks::V2::GceSetup::GPUDriverConfig'->new($_) };
102  
103 declare 'RepeatedGPUDriverConfig',
104 as ArrayRef[GPUDriverConfig()];
105  
106 coerce 'RepeatedGPUDriverConfig',
107 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Notebooks::V2::GceSetup::GPUDriverConfig'->new($_) } @$_ ] };
108  
109 declare 'MapStringGPUDriverConfig',
110 as HashRef[GPUDriverConfig()];
111  
112 declare 'DataDisk',
113 as InstanceOf['Google::Cloud::Notebooks::V2::GceSetup::DataDisk'];
114  
115 coerce 'DataDisk',
116 from HashRef, via { 'Google::Cloud::Notebooks::V2::GceSetup::DataDisk'->new($_) };
117  
118 declare 'RepeatedDataDisk',
119 as ArrayRef[DataDisk()];
120  
121 coerce 'RepeatedDataDisk',
122 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Notebooks::V2::GceSetup::DataDisk'->new($_) } @$_ ] };
123  
124 declare 'MapStringDataDisk',
125 as HashRef[DataDisk()];
126  
127 declare 'BootDisk',
128 as InstanceOf['Google::Cloud::Notebooks::V2::GceSetup::BootDisk'];
129  
130 coerce 'BootDisk',
131 from HashRef, via { 'Google::Cloud::Notebooks::V2::GceSetup::BootDisk'->new($_) };
132  
133 declare 'RepeatedBootDisk',
134 as ArrayRef[BootDisk()];
135  
136 coerce 'RepeatedBootDisk',
137 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Notebooks::V2::GceSetup::BootDisk'->new($_) } @$_ ] };
138  
139 declare 'MapStringBootDisk',
140 as HashRef[BootDisk()];
141  
142 declare 'ServiceAccount',
143 as InstanceOf['Google::Cloud::Notebooks::V2::GceSetup::ServiceAccount'];
144  
145 coerce 'ServiceAccount',
146 from HashRef, via { 'Google::Cloud::Notebooks::V2::GceSetup::ServiceAccount'->new($_) };
147  
148 declare 'RepeatedServiceAccount',
149 as ArrayRef[ServiceAccount()];
150  
151 coerce 'RepeatedServiceAccount',
152 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Notebooks::V2::GceSetup::ServiceAccount'->new($_) } @$_ ] };
153  
154 declare 'MapStringServiceAccount',
155 as HashRef[ServiceAccount()];
156  
157 declare 'GceSetup',
158 as InstanceOf['Google::Cloud::Notebooks::V2::GceSetup::GceSetup'];
159  
160 coerce 'GceSetup',
161 from HashRef, via { 'Google::Cloud::Notebooks::V2::GceSetup::GceSetup'->new($_) };
162  
163 declare 'RepeatedGceSetup',
164 as ArrayRef[GceSetup()];
165  
166 coerce 'RepeatedGceSetup',
167 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Notebooks::V2::GceSetup::GceSetup'->new($_) } @$_ ] };
168  
169 declare 'MapStringGceSetup',
170 as HashRef[GceSetup()];
171  
172 declare 'MetadataEntry',
173 as InstanceOf['Google::Cloud::Notebooks::V2::GceSetup::GceSetup::MetadataEntry'];
174  
175 coerce 'MetadataEntry',
176 from HashRef, via { 'Google::Cloud::Notebooks::V2::GceSetup::GceSetup::MetadataEntry'->new($_) };
177  
178 declare 'RepeatedMetadataEntry',
179 as ArrayRef[MetadataEntry()];
180  
181 coerce 'RepeatedMetadataEntry',
182 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Notebooks::V2::GceSetup::GceSetup::MetadataEntry'->new($_) } @$_ ] };
183  
184 declare 'MapStringMetadataEntry',
185 as HashRef[MetadataEntry()];
186  
187 1;
188  
189 __END__