V1beta/Resource/Types.pm untested

filter: Statementstmt 0.0% 0 / 96 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 101 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::Capacityplanner::V1beta::Resource::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 'Unit',
11 as (Int | Str);
12  
13 declare 'ResourceContainer',
14 as InstanceOf['Google::Cloud::Capacityplanner::V1beta::Resource::ResourceContainer'];
15  
16 coerce 'ResourceContainer',
17 from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::Resource::ResourceContainer'->new($_) };
18  
19 declare 'RepeatedResourceContainer',
20 as ArrayRef[ResourceContainer()];
21  
22 coerce 'RepeatedResourceContainer',
23 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::Resource::ResourceContainer'->new($_) } @$_ ] };
24  
25 declare 'MapStringResourceContainer',
26 as HashRef[ResourceContainer()];
27  
28 declare 'Type',
29 as (Int | Str);
30  
31 declare 'ResourceIdKey',
32 as InstanceOf['Google::Cloud::Capacityplanner::V1beta::Resource::ResourceIdKey'];
33  
34 coerce 'ResourceIdKey',
35 from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::Resource::ResourceIdKey'->new($_) };
36  
37 declare 'RepeatedResourceIdKey',
38 as ArrayRef[ResourceIdKey()];
39  
40 coerce 'RepeatedResourceIdKey',
41 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::Resource::ResourceIdKey'->new($_) } @$_ ] };
42  
43 declare 'MapStringResourceIdKey',
44 as HashRef[ResourceIdKey()];
45  
46 declare 'ResourceIdentifier',
47 as InstanceOf['Google::Cloud::Capacityplanner::V1beta::Resource::ResourceIdentifier'];
48  
49 coerce 'ResourceIdentifier',
50 from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::Resource::ResourceIdentifier'->new($_) };
51  
52 declare 'RepeatedResourceIdentifier',
53 as ArrayRef[ResourceIdentifier()];
54  
55 coerce 'RepeatedResourceIdentifier',
56 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::Resource::ResourceIdentifier'->new($_) } @$_ ] };
57  
58 declare 'MapStringResourceIdentifier',
59 as HashRef[ResourceIdentifier()];
60  
61 declare 'ResourceAttribute',
62 as InstanceOf['Google::Cloud::Capacityplanner::V1beta::Resource::ResourceAttribute'];
63  
64 coerce 'ResourceAttribute',
65 from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::Resource::ResourceAttribute'->new($_) };
66  
67 declare 'RepeatedResourceAttribute',
68 as ArrayRef[ResourceAttribute()];
69  
70 coerce 'RepeatedResourceAttribute',
71 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::Resource::ResourceAttribute'->new($_) } @$_ ] };
72  
73 declare 'MapStringResourceAttribute',
74 as HashRef[ResourceAttribute()];
75  
76 declare 'ResourceValue',
77 as InstanceOf['Google::Cloud::Capacityplanner::V1beta::Resource::ResourceValue'];
78  
79 coerce 'ResourceValue',
80 from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::Resource::ResourceValue'->new($_) };
81  
82 declare 'RepeatedResourceValue',
83 as ArrayRef[ResourceValue()];
84  
85 coerce 'RepeatedResourceValue',
86 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::Resource::ResourceValue'->new($_) } @$_ ] };
87  
88 declare 'MapStringResourceValue',
89 as HashRef[ResourceValue()];
90  
91 declare 'Value',
92 as InstanceOf['Google::Cloud::Capacityplanner::V1beta::Resource::Value'];
93  
94 coerce 'Value',
95 from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::Resource::Value'->new($_) };
96  
97 declare 'RepeatedValue',
98 as ArrayRef[Value()];
99  
100 coerce 'RepeatedValue',
101 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::Resource::Value'->new($_) } @$_ ] };
102  
103 declare 'MapStringValue',
104 as HashRef[Value()];
105  
106 1;
107  
108 __END__