V2/Vulnerability/Types.pm untested

filter: Statementstmt 0.0% 0 / 115 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 120 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::Vulnerability::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 'Vulnerability',
11 as InstanceOf['Google::Cloud::Securitycenter::V2::Vulnerability::Vulnerability'];
12  
13 coerce 'Vulnerability',
14 from HashRef, via { 'Google::Cloud::Securitycenter::V2::Vulnerability::Vulnerability'->new($_) };
15  
16 declare 'RepeatedVulnerability',
17 as ArrayRef[Vulnerability()];
18  
19 coerce 'RepeatedVulnerability',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V2::Vulnerability::Vulnerability'->new($_) } @$_ ] };
21  
22 declare 'MapStringVulnerability',
23 as HashRef[Vulnerability()];
24  
25 declare 'Cve',
26 as InstanceOf['Google::Cloud::Securitycenter::V2::Vulnerability::Cve'];
27  
28 coerce 'Cve',
29 from HashRef, via { 'Google::Cloud::Securitycenter::V2::Vulnerability::Cve'->new($_) };
30  
31 declare 'RepeatedCve',
32 as ArrayRef[Cve()];
33  
34 coerce 'RepeatedCve',
35 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V2::Vulnerability::Cve'->new($_) } @$_ ] };
36  
37 declare 'MapStringCve',
38 as HashRef[Cve()];
39  
40 declare 'RiskRating',
41 as (Int | Str);
42  
43 declare 'ExploitationActivity',
44 as (Int | Str);
45  
46 declare 'Reference',
47 as InstanceOf['Google::Cloud::Securitycenter::V2::Vulnerability::Reference'];
48  
49 coerce 'Reference',
50 from HashRef, via { 'Google::Cloud::Securitycenter::V2::Vulnerability::Reference'->new($_) };
51  
52 declare 'RepeatedReference',
53 as ArrayRef[Reference()];
54  
55 coerce 'RepeatedReference',
56 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V2::Vulnerability::Reference'->new($_) } @$_ ] };
57  
58 declare 'MapStringReference',
59 as HashRef[Reference()];
60  
61 declare 'Cvssv3',
62 as InstanceOf['Google::Cloud::Securitycenter::V2::Vulnerability::Cvssv3'];
63  
64 coerce 'Cvssv3',
65 from HashRef, via { 'Google::Cloud::Securitycenter::V2::Vulnerability::Cvssv3'->new($_) };
66  
67 declare 'RepeatedCvssv3',
68 as ArrayRef[Cvssv3()];
69  
70 coerce 'RepeatedCvssv3',
71 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V2::Vulnerability::Cvssv3'->new($_) } @$_ ] };
72  
73 declare 'MapStringCvssv3',
74 as HashRef[Cvssv3()];
75  
76 declare 'AttackVector',
77 as (Int | Str);
78  
79 declare 'AttackComplexity',
80 as (Int | Str);
81  
82 declare 'PrivilegesRequired',
83 as (Int | Str);
84  
85 declare 'UserInteraction',
86 as (Int | Str);
87  
88 declare 'Scope',
89 as (Int | Str);
90  
91 declare 'Impact',
92 as (Int | Str);
93  
94 declare 'Package',
95 as InstanceOf['Google::Cloud::Securitycenter::V2::Vulnerability::Package'];
96  
97 coerce 'Package',
98 from HashRef, via { 'Google::Cloud::Securitycenter::V2::Vulnerability::Package'->new($_) };
99  
100 declare 'RepeatedPackage',
101 as ArrayRef[Package()];
102  
103 coerce 'RepeatedPackage',
104 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V2::Vulnerability::Package'->new($_) } @$_ ] };
105  
106 declare 'MapStringPackage',
107 as HashRef[Package()];
108  
109 declare 'SecurityBulletin',
110 as InstanceOf['Google::Cloud::Securitycenter::V2::Vulnerability::SecurityBulletin'];
111  
112 coerce 'SecurityBulletin',
113 from HashRef, via { 'Google::Cloud::Securitycenter::V2::Vulnerability::SecurityBulletin'->new($_) };
114  
115 declare 'RepeatedSecurityBulletin',
116 as ArrayRef[SecurityBulletin()];
117  
118 coerce 'RepeatedSecurityBulletin',
119 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V2::Vulnerability::SecurityBulletin'->new($_) } @$_ ] };
120  
121 declare 'MapStringSecurityBulletin',
122 as HashRef[SecurityBulletin()];
123  
124 declare 'Cwe',
125 as InstanceOf['Google::Cloud::Securitycenter::V2::Vulnerability::Cwe'];
126  
127 coerce 'Cwe',
128 from HashRef, via { 'Google::Cloud::Securitycenter::V2::Vulnerability::Cwe'->new($_) };
129  
130 declare 'RepeatedCwe',
131 as ArrayRef[Cwe()];
132  
133 coerce 'RepeatedCwe',
134 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V2::Vulnerability::Cwe'->new($_) } @$_ ] };
135  
136 declare 'MapStringCwe',
137 as HashRef[Cwe()];
138  
139 1;
140  
141 __END__