V2/Finding/Types.pm untested

filter: Statementstmt 0.0% 0 / 111 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 116 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::V2::Finding::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 'Finding',
11 as InstanceOf['Google::Cloud::Securitycenter::V2::Finding::Finding'];
12  
13 coerce 'Finding',
14 from HashRef, via { 'Google::Cloud::Securitycenter::V2::Finding::Finding'->new($_) };
15  
16 declare 'RepeatedFinding',
17 as ArrayRef[Finding()];
18  
19 coerce 'RepeatedFinding',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V2::Finding::Finding'->new($_) } @$_ ] };
21  
22 declare 'MapStringFinding',
23 as HashRef[Finding()];
24  
25 declare 'State',
26 as (Int | Str);
27  
28 declare 'Severity',
29 as (Int | Str);
30  
31 declare 'Mute',
32 as (Int | Str);
33  
34 declare 'FindingClass',
35 as (Int | Str);
36  
37 declare 'MuteInfo',
38 as InstanceOf['Google::Cloud::Securitycenter::V2::Finding::Finding::MuteInfo'];
39  
40 coerce 'MuteInfo',
41 from HashRef, via { 'Google::Cloud::Securitycenter::V2::Finding::Finding::MuteInfo'->new($_) };
42  
43 declare 'RepeatedMuteInfo',
44 as ArrayRef[MuteInfo()];
45  
46 coerce 'RepeatedMuteInfo',
47 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V2::Finding::Finding::MuteInfo'->new($_) } @$_ ] };
48  
49 declare 'MapStringMuteInfo',
50 as HashRef[MuteInfo()];
51  
52 declare 'StaticMute',
53 as InstanceOf['Google::Cloud::Securitycenter::V2::Finding::Finding::MuteInfo::StaticMute'];
54  
55 coerce 'StaticMute',
56 from HashRef, via { 'Google::Cloud::Securitycenter::V2::Finding::Finding::MuteInfo::StaticMute'->new($_) };
57  
58 declare 'RepeatedStaticMute',
59 as ArrayRef[StaticMute()];
60  
61 coerce 'RepeatedStaticMute',
62 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V2::Finding::Finding::MuteInfo::StaticMute'->new($_) } @$_ ] };
63  
64 declare 'MapStringStaticMute',
65 as HashRef[StaticMute()];
66  
67 declare 'DynamicMuteRecord',
68 as InstanceOf['Google::Cloud::Securitycenter::V2::Finding::Finding::MuteInfo::DynamicMuteRecord'];
69  
70 coerce 'DynamicMuteRecord',
71 from HashRef, via { 'Google::Cloud::Securitycenter::V2::Finding::Finding::MuteInfo::DynamicMuteRecord'->new($_) };
72  
73 declare 'RepeatedDynamicMuteRecord',
74 as ArrayRef[DynamicMuteRecord()];
75  
76 coerce 'RepeatedDynamicMuteRecord',
77 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V2::Finding::Finding::MuteInfo::DynamicMuteRecord'->new($_) } @$_ ] };
78  
79 declare 'MapStringDynamicMuteRecord',
80 as HashRef[DynamicMuteRecord()];
81  
82 declare 'SourcePropertiesEntry',
83 as InstanceOf['Google::Cloud::Securitycenter::V2::Finding::Finding::SourcePropertiesEntry'];
84  
85 coerce 'SourcePropertiesEntry',
86 from HashRef, via { 'Google::Cloud::Securitycenter::V2::Finding::Finding::SourcePropertiesEntry'->new($_) };
87  
88 declare 'RepeatedSourcePropertiesEntry',
89 as ArrayRef[SourcePropertiesEntry()];
90  
91 coerce 'RepeatedSourcePropertiesEntry',
92 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V2::Finding::Finding::SourcePropertiesEntry'->new($_) } @$_ ] };
93  
94 declare 'MapStringSourcePropertiesEntry',
95 as HashRef[SourcePropertiesEntry()];
96  
97 declare 'ExternalSystemsEntry',
98 as InstanceOf['Google::Cloud::Securitycenter::V2::Finding::Finding::ExternalSystemsEntry'];
99  
100 coerce 'ExternalSystemsEntry',
101 from HashRef, via { 'Google::Cloud::Securitycenter::V2::Finding::Finding::ExternalSystemsEntry'->new($_) };
102  
103 declare 'RepeatedExternalSystemsEntry',
104 as ArrayRef[ExternalSystemsEntry()];
105  
106 coerce 'RepeatedExternalSystemsEntry',
107 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V2::Finding::Finding::ExternalSystemsEntry'->new($_) } @$_ ] };
108  
109 declare 'MapStringExternalSystemsEntry',
110 as HashRef[ExternalSystemsEntry()];
111  
112 declare 'ContactsEntry',
113 as InstanceOf['Google::Cloud::Securitycenter::V2::Finding::Finding::ContactsEntry'];
114  
115 coerce 'ContactsEntry',
116 from HashRef, via { 'Google::Cloud::Securitycenter::V2::Finding::Finding::ContactsEntry'->new($_) };
117  
118 declare 'RepeatedContactsEntry',
119 as ArrayRef[ContactsEntry()];
120  
121 coerce 'RepeatedContactsEntry',
122 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V2::Finding::Finding::ContactsEntry'->new($_) } @$_ ] };
123  
124 declare 'MapStringContactsEntry',
125 as HashRef[ContactsEntry()];
126  
127 1;
128  
129 __END__