V1/AttackPath/Types.pm untested

filter: Statementstmt 0.0% 0 / 95 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 100 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::Securitycenter::V1::AttackPath::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 'AttackPath',
11 as InstanceOf['Google::Cloud::Securitycenter::V1::AttackPath::AttackPath'];
12  
13 coerce 'AttackPath',
14 from HashRef, via { 'Google::Cloud::Securitycenter::V1::AttackPath::AttackPath'->new($_) };
15  
16 declare 'RepeatedAttackPath',
17 as ArrayRef[AttackPath()];
18  
19 coerce 'RepeatedAttackPath',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V1::AttackPath::AttackPath'->new($_) } @$_ ] };
21  
22 declare 'MapStringAttackPath',
23 as HashRef[AttackPath()];
24  
25 declare 'AttackPathNode',
26 as InstanceOf['Google::Cloud::Securitycenter::V1::AttackPath::AttackPath::AttackPathNode'];
27  
28 coerce 'AttackPathNode',
29 from HashRef, via { 'Google::Cloud::Securitycenter::V1::AttackPath::AttackPath::AttackPathNode'->new($_) };
30  
31 declare 'RepeatedAttackPathNode',
32 as ArrayRef[AttackPathNode()];
33  
34 coerce 'RepeatedAttackPathNode',
35 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V1::AttackPath::AttackPath::AttackPathNode'->new($_) } @$_ ] };
36  
37 declare 'MapStringAttackPathNode',
38 as HashRef[AttackPathNode()];
39  
40 declare 'NodeType',
41 as (Int | Str);
42  
43 declare 'PathNodeAssociatedFinding',
44 as InstanceOf['Google::Cloud::Securitycenter::V1::AttackPath::AttackPath::AttackPathNode::PathNodeAssociatedFinding'];
45  
46 coerce 'PathNodeAssociatedFinding',
47 from HashRef, via { 'Google::Cloud::Securitycenter::V1::AttackPath::AttackPath::AttackPathNode::PathNodeAssociatedFinding'->new($_) };
48  
49 declare 'RepeatedPathNodeAssociatedFinding',
50 as ArrayRef[PathNodeAssociatedFinding()];
51  
52 coerce 'RepeatedPathNodeAssociatedFinding',
53 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V1::AttackPath::AttackPath::AttackPathNode::PathNodeAssociatedFinding'->new($_) } @$_ ] };
54  
55 declare 'MapStringPathNodeAssociatedFinding',
56 as HashRef[PathNodeAssociatedFinding()];
57  
58 declare 'AttackStepNode',
59 as InstanceOf['Google::Cloud::Securitycenter::V1::AttackPath::AttackPath::AttackPathNode::AttackStepNode'];
60  
61 coerce 'AttackStepNode',
62 from HashRef, via { 'Google::Cloud::Securitycenter::V1::AttackPath::AttackPath::AttackPathNode::AttackStepNode'->new($_) };
63  
64 declare 'RepeatedAttackStepNode',
65 as ArrayRef[AttackStepNode()];
66  
67 coerce 'RepeatedAttackStepNode',
68 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V1::AttackPath::AttackPath::AttackPathNode::AttackStepNode'->new($_) } @$_ ] };
69  
70 declare 'MapStringAttackStepNode',
71 as HashRef[AttackStepNode()];
72  
73 declare 'LabelsEntry',
74 as InstanceOf['Google::Cloud::Securitycenter::V1::AttackPath::AttackPath::AttackPathNode::AttackStepNode::LabelsEntry'];
75  
76 coerce 'LabelsEntry',
77 from HashRef, via { 'Google::Cloud::Securitycenter::V1::AttackPath::AttackPath::AttackPathNode::AttackStepNode::LabelsEntry'->new($_) };
78  
79 declare 'RepeatedLabelsEntry',
80 as ArrayRef[LabelsEntry()];
81  
82 coerce 'RepeatedLabelsEntry',
83 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V1::AttackPath::AttackPath::AttackPathNode::AttackStepNode::LabelsEntry'->new($_) } @$_ ] };
84  
85 declare 'MapStringLabelsEntry',
86 as HashRef[LabelsEntry()];
87  
88 declare 'AttackPathEdge',
89 as InstanceOf['Google::Cloud::Securitycenter::V1::AttackPath::AttackPath::AttackPathEdge'];
90  
91 coerce 'AttackPathEdge',
92 from HashRef, via { 'Google::Cloud::Securitycenter::V1::AttackPath::AttackPath::AttackPathEdge'->new($_) };
93  
94 declare 'RepeatedAttackPathEdge',
95 as ArrayRef[AttackPathEdge()];
96  
97 coerce 'RepeatedAttackPathEdge',
98 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V1::AttackPath::AttackPath::AttackPathEdge'->new($_) } @$_ ] };
99  
100 declare 'MapStringAttackPathEdge',
101 as HashRef[AttackPathEdge()];
102  
103 1;
104  
105 __END__