V1/Schema/Types.pm untested

filter: Statementstmt 0.0% 0 / 172 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 177 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::Apptopology::V1::Schema::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 'Domain',
11 as InstanceOf['Google::Cloud::Apptopology::V1::Schema::Domain'];
12  
13 coerce 'Domain',
14 from HashRef, via { 'Google::Cloud::Apptopology::V1::Schema::Domain'->new($_) };
15  
16 declare 'RepeatedDomain',
17 as ArrayRef[Domain()];
18  
19 coerce 'RepeatedDomain',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Apptopology::V1::Schema::Domain'->new($_) } @$_ ] };
21  
22 declare 'MapStringDomain',
23 as HashRef[Domain()];
24  
25 declare 'Schema',
26 as InstanceOf['Google::Cloud::Apptopology::V1::Schema::Schema'];
27  
28 coerce 'Schema',
29 from HashRef, via { 'Google::Cloud::Apptopology::V1::Schema::Schema'->new($_) };
30  
31 declare 'RepeatedSchema',
32 as ArrayRef[Schema()];
33  
34 coerce 'RepeatedSchema',
35 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Apptopology::V1::Schema::Schema'->new($_) } @$_ ] };
36  
37 declare 'MapStringSchema',
38 as HashRef[Schema()];
39  
40 declare 'NodeType',
41 as InstanceOf['Google::Cloud::Apptopology::V1::Schema::NodeType'];
42  
43 coerce 'NodeType',
44 from HashRef, via { 'Google::Cloud::Apptopology::V1::Schema::NodeType'->new($_) };
45  
46 declare 'RepeatedNodeType',
47 as ArrayRef[NodeType()];
48  
49 coerce 'RepeatedNodeType',
50 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Apptopology::V1::Schema::NodeType'->new($_) } @$_ ] };
51  
52 declare 'MapStringNodeType',
53 as HashRef[NodeType()];
54  
55 declare 'EdgeType',
56 as InstanceOf['Google::Cloud::Apptopology::V1::Schema::EdgeType'];
57  
58 coerce 'EdgeType',
59 from HashRef, via { 'Google::Cloud::Apptopology::V1::Schema::EdgeType'->new($_) };
60  
61 declare 'RepeatedEdgeType',
62 as ArrayRef[EdgeType()];
63  
64 coerce 'RepeatedEdgeType',
65 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Apptopology::V1::Schema::EdgeType'->new($_) } @$_ ] };
66  
67 declare 'MapStringEdgeType',
68 as HashRef[EdgeType()];
69  
70 declare 'NodeGroup',
71 as InstanceOf['Google::Cloud::Apptopology::V1::Schema::NodeGroup'];
72  
73 coerce 'NodeGroup',
74 from HashRef, via { 'Google::Cloud::Apptopology::V1::Schema::NodeGroup'->new($_) };
75  
76 declare 'RepeatedNodeGroup',
77 as ArrayRef[NodeGroup()];
78  
79 coerce 'RepeatedNodeGroup',
80 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Apptopology::V1::Schema::NodeGroup'->new($_) } @$_ ] };
81  
82 declare 'MapStringNodeGroup',
83 as HashRef[NodeGroup()];
84  
85 declare 'EdgeRule',
86 as InstanceOf['Google::Cloud::Apptopology::V1::Schema::EdgeRule'];
87  
88 coerce 'EdgeRule',
89 from HashRef, via { 'Google::Cloud::Apptopology::V1::Schema::EdgeRule'->new($_) };
90  
91 declare 'RepeatedEdgeRule',
92 as ArrayRef[EdgeRule()];
93  
94 coerce 'RepeatedEdgeRule',
95 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Apptopology::V1::Schema::EdgeRule'->new($_) } @$_ ] };
96  
97 declare 'MapStringEdgeRule',
98 as HashRef[EdgeRule()];
99  
100 declare 'LabelProperties',
101 as InstanceOf['Google::Cloud::Apptopology::V1::Schema::LabelProperties'];
102  
103 coerce 'LabelProperties',
104 from HashRef, via { 'Google::Cloud::Apptopology::V1::Schema::LabelProperties'->new($_) };
105  
106 declare 'RepeatedLabelProperties',
107 as ArrayRef[LabelProperties()];
108  
109 coerce 'RepeatedLabelProperties',
110 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Apptopology::V1::Schema::LabelProperties'->new($_) } @$_ ] };
111  
112 declare 'MapStringLabelProperties',
113 as HashRef[LabelProperties()];
114  
115 declare 'Property',
116 as InstanceOf['Google::Cloud::Apptopology::V1::Schema::Property'];
117  
118 coerce 'Property',
119 from HashRef, via { 'Google::Cloud::Apptopology::V1::Schema::Property'->new($_) };
120  
121 declare 'RepeatedProperty',
122 as ArrayRef[Property()];
123  
124 coerce 'RepeatedProperty',
125 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Apptopology::V1::Schema::Property'->new($_) } @$_ ] };
126  
127 declare 'MapStringProperty',
128 as HashRef[Property()];
129  
130 declare 'StringValue',
131 as InstanceOf['Google::Cloud::Apptopology::V1::Schema::StringValue'];
132  
133 coerce 'StringValue',
134 from HashRef, via { 'Google::Cloud::Apptopology::V1::Schema::StringValue'->new($_) };
135  
136 declare 'RepeatedStringValue',
137 as ArrayRef[StringValue()];
138  
139 coerce 'RepeatedStringValue',
140 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Apptopology::V1::Schema::StringValue'->new($_) } @$_ ] };
141  
142 declare 'MapStringStringValue',
143 as HashRef[StringValue()];
144  
145 declare 'IntValue',
146 as InstanceOf['Google::Cloud::Apptopology::V1::Schema::IntValue'];
147  
148 coerce 'IntValue',
149 from HashRef, via { 'Google::Cloud::Apptopology::V1::Schema::IntValue'->new($_) };
150  
151 declare 'RepeatedIntValue',
152 as ArrayRef[IntValue()];
153  
154 coerce 'RepeatedIntValue',
155 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Apptopology::V1::Schema::IntValue'->new($_) } @$_ ] };
156  
157 declare 'MapStringIntValue',
158 as HashRef[IntValue()];
159  
160 declare 'BoolValue',
161 as InstanceOf['Google::Cloud::Apptopology::V1::Schema::BoolValue'];
162  
163 coerce 'BoolValue',
164 from HashRef, via { 'Google::Cloud::Apptopology::V1::Schema::BoolValue'->new($_) };
165  
166 declare 'RepeatedBoolValue',
167 as ArrayRef[BoolValue()];
168  
169 coerce 'RepeatedBoolValue',
170 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Apptopology::V1::Schema::BoolValue'->new($_) } @$_ ] };
171  
172 declare 'MapStringBoolValue',
173 as HashRef[BoolValue()];
174  
175 declare 'DoubleValue',
176 as InstanceOf['Google::Cloud::Apptopology::V1::Schema::DoubleValue'];
177  
178 coerce 'DoubleValue',
179 from HashRef, via { 'Google::Cloud::Apptopology::V1::Schema::DoubleValue'->new($_) };
180  
181 declare 'RepeatedDoubleValue',
182 as ArrayRef[DoubleValue()];
183  
184 coerce 'RepeatedDoubleValue',
185 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Apptopology::V1::Schema::DoubleValue'->new($_) } @$_ ] };
186  
187 declare 'MapStringDoubleValue',
188 as HashRef[DoubleValue()];
189  
190 1;
191  
192 __END__