V1/CloudTpu/Types.pm untested

filter: Statementstmt 0.0% 0 / 306 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 311 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::Tpu::V1::CloudTpu::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 'SchedulingConfig',
11 as InstanceOf['Google::Cloud::Tpu::V1::CloudTpu::SchedulingConfig'];
12  
13 coerce 'SchedulingConfig',
14 from HashRef, via { 'Google::Cloud::Tpu::V1::CloudTpu::SchedulingConfig'->new($_) };
15  
16 declare 'RepeatedSchedulingConfig',
17 as ArrayRef[SchedulingConfig()];
18  
19 coerce 'RepeatedSchedulingConfig',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tpu::V1::CloudTpu::SchedulingConfig'->new($_) } @$_ ] };
21  
22 declare 'MapStringSchedulingConfig',
23 as HashRef[SchedulingConfig()];
24  
25 declare 'NetworkEndpoint',
26 as InstanceOf['Google::Cloud::Tpu::V1::CloudTpu::NetworkEndpoint'];
27  
28 coerce 'NetworkEndpoint',
29 from HashRef, via { 'Google::Cloud::Tpu::V1::CloudTpu::NetworkEndpoint'->new($_) };
30  
31 declare 'RepeatedNetworkEndpoint',
32 as ArrayRef[NetworkEndpoint()];
33  
34 coerce 'RepeatedNetworkEndpoint',
35 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tpu::V1::CloudTpu::NetworkEndpoint'->new($_) } @$_ ] };
36  
37 declare 'MapStringNetworkEndpoint',
38 as HashRef[NetworkEndpoint()];
39  
40 declare 'Node',
41 as InstanceOf['Google::Cloud::Tpu::V1::CloudTpu::Node'];
42  
43 coerce 'Node',
44 from HashRef, via { 'Google::Cloud::Tpu::V1::CloudTpu::Node'->new($_) };
45  
46 declare 'RepeatedNode',
47 as ArrayRef[Node()];
48  
49 coerce 'RepeatedNode',
50 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tpu::V1::CloudTpu::Node'->new($_) } @$_ ] };
51  
52 declare 'MapStringNode',
53 as HashRef[Node()];
54  
55 declare 'State',
56 as (Int | Str);
57  
58 declare 'Health',
59 as (Int | Str);
60  
61 declare 'ApiVersion',
62 as (Int | Str);
63  
64 declare 'LabelsEntry',
65 as InstanceOf['Google::Cloud::Tpu::V1::CloudTpu::Node::LabelsEntry'];
66  
67 coerce 'LabelsEntry',
68 from HashRef, via { 'Google::Cloud::Tpu::V1::CloudTpu::Node::LabelsEntry'->new($_) };
69  
70 declare 'RepeatedLabelsEntry',
71 as ArrayRef[LabelsEntry()];
72  
73 coerce 'RepeatedLabelsEntry',
74 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tpu::V1::CloudTpu::Node::LabelsEntry'->new($_) } @$_ ] };
75  
76 declare 'MapStringLabelsEntry',
77 as HashRef[LabelsEntry()];
78  
79 declare 'ListNodesRequest',
80 as InstanceOf['Google::Cloud::Tpu::V1::CloudTpu::ListNodesRequest'];
81  
82 coerce 'ListNodesRequest',
83 from HashRef, via { 'Google::Cloud::Tpu::V1::CloudTpu::ListNodesRequest'->new($_) };
84  
85 declare 'RepeatedListNodesRequest',
86 as ArrayRef[ListNodesRequest()];
87  
88 coerce 'RepeatedListNodesRequest',
89 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tpu::V1::CloudTpu::ListNodesRequest'->new($_) } @$_ ] };
90  
91 declare 'MapStringListNodesRequest',
92 as HashRef[ListNodesRequest()];
93  
94 declare 'ListNodesResponse',
95 as InstanceOf['Google::Cloud::Tpu::V1::CloudTpu::ListNodesResponse'];
96  
97 coerce 'ListNodesResponse',
98 from HashRef, via { 'Google::Cloud::Tpu::V1::CloudTpu::ListNodesResponse'->new($_) };
99  
100 declare 'RepeatedListNodesResponse',
101 as ArrayRef[ListNodesResponse()];
102  
103 coerce 'RepeatedListNodesResponse',
104 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tpu::V1::CloudTpu::ListNodesResponse'->new($_) } @$_ ] };
105  
106 declare 'MapStringListNodesResponse',
107 as HashRef[ListNodesResponse()];
108  
109 declare 'GetNodeRequest',
110 as InstanceOf['Google::Cloud::Tpu::V1::CloudTpu::GetNodeRequest'];
111  
112 coerce 'GetNodeRequest',
113 from HashRef, via { 'Google::Cloud::Tpu::V1::CloudTpu::GetNodeRequest'->new($_) };
114  
115 declare 'RepeatedGetNodeRequest',
116 as ArrayRef[GetNodeRequest()];
117  
118 coerce 'RepeatedGetNodeRequest',
119 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tpu::V1::CloudTpu::GetNodeRequest'->new($_) } @$_ ] };
120  
121 declare 'MapStringGetNodeRequest',
122 as HashRef[GetNodeRequest()];
123  
124 declare 'CreateNodeRequest',
125 as InstanceOf['Google::Cloud::Tpu::V1::CloudTpu::CreateNodeRequest'];
126  
127 coerce 'CreateNodeRequest',
128 from HashRef, via { 'Google::Cloud::Tpu::V1::CloudTpu::CreateNodeRequest'->new($_) };
129  
130 declare 'RepeatedCreateNodeRequest',
131 as ArrayRef[CreateNodeRequest()];
132  
133 coerce 'RepeatedCreateNodeRequest',
134 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tpu::V1::CloudTpu::CreateNodeRequest'->new($_) } @$_ ] };
135  
136 declare 'MapStringCreateNodeRequest',
137 as HashRef[CreateNodeRequest()];
138  
139 declare 'DeleteNodeRequest',
140 as InstanceOf['Google::Cloud::Tpu::V1::CloudTpu::DeleteNodeRequest'];
141  
142 coerce 'DeleteNodeRequest',
143 from HashRef, via { 'Google::Cloud::Tpu::V1::CloudTpu::DeleteNodeRequest'->new($_) };
144  
145 declare 'RepeatedDeleteNodeRequest',
146 as ArrayRef[DeleteNodeRequest()];
147  
148 coerce 'RepeatedDeleteNodeRequest',
149 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tpu::V1::CloudTpu::DeleteNodeRequest'->new($_) } @$_ ] };
150  
151 declare 'MapStringDeleteNodeRequest',
152 as HashRef[DeleteNodeRequest()];
153  
154 declare 'ReimageNodeRequest',
155 as InstanceOf['Google::Cloud::Tpu::V1::CloudTpu::ReimageNodeRequest'];
156  
157 coerce 'ReimageNodeRequest',
158 from HashRef, via { 'Google::Cloud::Tpu::V1::CloudTpu::ReimageNodeRequest'->new($_) };
159  
160 declare 'RepeatedReimageNodeRequest',
161 as ArrayRef[ReimageNodeRequest()];
162  
163 coerce 'RepeatedReimageNodeRequest',
164 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tpu::V1::CloudTpu::ReimageNodeRequest'->new($_) } @$_ ] };
165  
166 declare 'MapStringReimageNodeRequest',
167 as HashRef[ReimageNodeRequest()];
168  
169 declare 'StopNodeRequest',
170 as InstanceOf['Google::Cloud::Tpu::V1::CloudTpu::StopNodeRequest'];
171  
172 coerce 'StopNodeRequest',
173 from HashRef, via { 'Google::Cloud::Tpu::V1::CloudTpu::StopNodeRequest'->new($_) };
174  
175 declare 'RepeatedStopNodeRequest',
176 as ArrayRef[StopNodeRequest()];
177  
178 coerce 'RepeatedStopNodeRequest',
179 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tpu::V1::CloudTpu::StopNodeRequest'->new($_) } @$_ ] };
180  
181 declare 'MapStringStopNodeRequest',
182 as HashRef[StopNodeRequest()];
183  
184 declare 'StartNodeRequest',
185 as InstanceOf['Google::Cloud::Tpu::V1::CloudTpu::StartNodeRequest'];
186  
187 coerce 'StartNodeRequest',
188 from HashRef, via { 'Google::Cloud::Tpu::V1::CloudTpu::StartNodeRequest'->new($_) };
189  
190 declare 'RepeatedStartNodeRequest',
191 as ArrayRef[StartNodeRequest()];
192  
193 coerce 'RepeatedStartNodeRequest',
194 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tpu::V1::CloudTpu::StartNodeRequest'->new($_) } @$_ ] };
195  
196 declare 'MapStringStartNodeRequest',
197 as HashRef[StartNodeRequest()];
198  
199 declare 'TensorFlowVersion',
200 as InstanceOf['Google::Cloud::Tpu::V1::CloudTpu::TensorFlowVersion'];
201  
202 coerce 'TensorFlowVersion',
203 from HashRef, via { 'Google::Cloud::Tpu::V1::CloudTpu::TensorFlowVersion'->new($_) };
204  
205 declare 'RepeatedTensorFlowVersion',
206 as ArrayRef[TensorFlowVersion()];
207  
208 coerce 'RepeatedTensorFlowVersion',
209 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tpu::V1::CloudTpu::TensorFlowVersion'->new($_) } @$_ ] };
210  
211 declare 'MapStringTensorFlowVersion',
212 as HashRef[TensorFlowVersion()];
213  
214 declare 'GetTensorFlowVersionRequest',
215 as InstanceOf['Google::Cloud::Tpu::V1::CloudTpu::GetTensorFlowVersionRequest'];
216  
217 coerce 'GetTensorFlowVersionRequest',
218 from HashRef, via { 'Google::Cloud::Tpu::V1::CloudTpu::GetTensorFlowVersionRequest'->new($_) };
219  
220 declare 'RepeatedGetTensorFlowVersionRequest',
221 as ArrayRef[GetTensorFlowVersionRequest()];
222  
223 coerce 'RepeatedGetTensorFlowVersionRequest',
224 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tpu::V1::CloudTpu::GetTensorFlowVersionRequest'->new($_) } @$_ ] };
225  
226 declare 'MapStringGetTensorFlowVersionRequest',
227 as HashRef[GetTensorFlowVersionRequest()];
228  
229 declare 'ListTensorFlowVersionsRequest',
230 as InstanceOf['Google::Cloud::Tpu::V1::CloudTpu::ListTensorFlowVersionsRequest'];
231  
232 coerce 'ListTensorFlowVersionsRequest',
233 from HashRef, via { 'Google::Cloud::Tpu::V1::CloudTpu::ListTensorFlowVersionsRequest'->new($_) };
234  
235 declare 'RepeatedListTensorFlowVersionsRequest',
236 as ArrayRef[ListTensorFlowVersionsRequest()];
237  
238 coerce 'RepeatedListTensorFlowVersionsRequest',
239 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tpu::V1::CloudTpu::ListTensorFlowVersionsRequest'->new($_) } @$_ ] };
240  
241 declare 'MapStringListTensorFlowVersionsRequest',
242 as HashRef[ListTensorFlowVersionsRequest()];
243  
244 declare 'ListTensorFlowVersionsResponse',
245 as InstanceOf['Google::Cloud::Tpu::V1::CloudTpu::ListTensorFlowVersionsResponse'];
246  
247 coerce 'ListTensorFlowVersionsResponse',
248 from HashRef, via { 'Google::Cloud::Tpu::V1::CloudTpu::ListTensorFlowVersionsResponse'->new($_) };
249  
250 declare 'RepeatedListTensorFlowVersionsResponse',
251 as ArrayRef[ListTensorFlowVersionsResponse()];
252  
253 coerce 'RepeatedListTensorFlowVersionsResponse',
254 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tpu::V1::CloudTpu::ListTensorFlowVersionsResponse'->new($_) } @$_ ] };
255  
256 declare 'MapStringListTensorFlowVersionsResponse',
257 as HashRef[ListTensorFlowVersionsResponse()];
258  
259 declare 'AcceleratorType',
260 as InstanceOf['Google::Cloud::Tpu::V1::CloudTpu::AcceleratorType'];
261  
262 coerce 'AcceleratorType',
263 from HashRef, via { 'Google::Cloud::Tpu::V1::CloudTpu::AcceleratorType'->new($_) };
264  
265 declare 'RepeatedAcceleratorType',
266 as ArrayRef[AcceleratorType()];
267  
268 coerce 'RepeatedAcceleratorType',
269 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tpu::V1::CloudTpu::AcceleratorType'->new($_) } @$_ ] };
270  
271 declare 'MapStringAcceleratorType',
272 as HashRef[AcceleratorType()];
273  
274 declare 'GetAcceleratorTypeRequest',
275 as InstanceOf['Google::Cloud::Tpu::V1::CloudTpu::GetAcceleratorTypeRequest'];
276  
277 coerce 'GetAcceleratorTypeRequest',
278 from HashRef, via { 'Google::Cloud::Tpu::V1::CloudTpu::GetAcceleratorTypeRequest'->new($_) };
279  
280 declare 'RepeatedGetAcceleratorTypeRequest',
281 as ArrayRef[GetAcceleratorTypeRequest()];
282  
283 coerce 'RepeatedGetAcceleratorTypeRequest',
284 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tpu::V1::CloudTpu::GetAcceleratorTypeRequest'->new($_) } @$_ ] };
285  
286 declare 'MapStringGetAcceleratorTypeRequest',
287 as HashRef[GetAcceleratorTypeRequest()];
288  
289 declare 'ListAcceleratorTypesRequest',
290 as InstanceOf['Google::Cloud::Tpu::V1::CloudTpu::ListAcceleratorTypesRequest'];
291  
292 coerce 'ListAcceleratorTypesRequest',
293 from HashRef, via { 'Google::Cloud::Tpu::V1::CloudTpu::ListAcceleratorTypesRequest'->new($_) };
294  
295 declare 'RepeatedListAcceleratorTypesRequest',
296 as ArrayRef[ListAcceleratorTypesRequest()];
297  
298 coerce 'RepeatedListAcceleratorTypesRequest',
299 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tpu::V1::CloudTpu::ListAcceleratorTypesRequest'->new($_) } @$_ ] };
300  
301 declare 'MapStringListAcceleratorTypesRequest',
302 as HashRef[ListAcceleratorTypesRequest()];
303  
304 declare 'ListAcceleratorTypesResponse',
305 as InstanceOf['Google::Cloud::Tpu::V1::CloudTpu::ListAcceleratorTypesResponse'];
306  
307 coerce 'ListAcceleratorTypesResponse',
308 from HashRef, via { 'Google::Cloud::Tpu::V1::CloudTpu::ListAcceleratorTypesResponse'->new($_) };
309  
310 declare 'RepeatedListAcceleratorTypesResponse',
311 as ArrayRef[ListAcceleratorTypesResponse()];
312  
313 coerce 'RepeatedListAcceleratorTypesResponse',
314 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tpu::V1::CloudTpu::ListAcceleratorTypesResponse'->new($_) } @$_ ] };
315  
316 declare 'MapStringListAcceleratorTypesResponse',
317 as HashRef[ListAcceleratorTypesResponse()];
318  
319 declare 'OperationMetadata',
320 as InstanceOf['Google::Cloud::Tpu::V1::CloudTpu::OperationMetadata'];
321  
322 coerce 'OperationMetadata',
323 from HashRef, via { 'Google::Cloud::Tpu::V1::CloudTpu::OperationMetadata'->new($_) };
324  
325 declare 'RepeatedOperationMetadata',
326 as ArrayRef[OperationMetadata()];
327  
328 coerce 'RepeatedOperationMetadata',
329 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tpu::V1::CloudTpu::OperationMetadata'->new($_) } @$_ ] };
330  
331 declare 'MapStringOperationMetadata',
332 as HashRef[OperationMetadata()];
333  
334 declare 'Symptom',
335 as InstanceOf['Google::Cloud::Tpu::V1::CloudTpu::Symptom'];
336  
337 coerce 'Symptom',
338 from HashRef, via { 'Google::Cloud::Tpu::V1::CloudTpu::Symptom'->new($_) };
339  
340 declare 'RepeatedSymptom',
341 as ArrayRef[Symptom()];
342  
343 coerce 'RepeatedSymptom',
344 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Tpu::V1::CloudTpu::Symptom'->new($_) } @$_ ] };
345  
346 declare 'MapStringSymptom',
347 as HashRef[Symptom()];
348  
349 declare 'SymptomType',
350 as (Int | Str);
351  
352 1;
353  
354 __END__