V1/Vulnerability/Types.pm untested

filter: Statementstmt 0.0% 0 / 140 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 145 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::Osconfig::V1::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 'VulnerabilityReport',
11 as InstanceOf['Google::Cloud::Osconfig::V1::Vulnerability::VulnerabilityReport'];
12  
13 coerce 'VulnerabilityReport',
14 from HashRef, via { 'Google::Cloud::Osconfig::V1::Vulnerability::VulnerabilityReport'->new($_) };
15  
16 declare 'RepeatedVulnerabilityReport',
17 as ArrayRef[VulnerabilityReport()];
18  
19 coerce 'RepeatedVulnerabilityReport',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::V1::Vulnerability::VulnerabilityReport'->new($_) } @$_ ] };
21  
22 declare 'MapStringVulnerabilityReport',
23 as HashRef[VulnerabilityReport()];
24  
25 declare 'VulnerabilitySeverityLevel',
26 as (Int | Str);
27  
28 declare 'Vulnerability',
29 as InstanceOf['Google::Cloud::Osconfig::V1::Vulnerability::VulnerabilityReport::Vulnerability'];
30  
31 coerce 'Vulnerability',
32 from HashRef, via { 'Google::Cloud::Osconfig::V1::Vulnerability::VulnerabilityReport::Vulnerability'->new($_) };
33  
34 declare 'RepeatedVulnerability',
35 as ArrayRef[Vulnerability()];
36  
37 coerce 'RepeatedVulnerability',
38 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::V1::Vulnerability::VulnerabilityReport::Vulnerability'->new($_) } @$_ ] };
39  
40 declare 'MapStringVulnerability',
41 as HashRef[Vulnerability()];
42  
43 declare 'Details',
44 as InstanceOf['Google::Cloud::Osconfig::V1::Vulnerability::VulnerabilityReport::Vulnerability::Details'];
45  
46 coerce 'Details',
47 from HashRef, via { 'Google::Cloud::Osconfig::V1::Vulnerability::VulnerabilityReport::Vulnerability::Details'->new($_) };
48  
49 declare 'RepeatedDetails',
50 as ArrayRef[Details()];
51  
52 coerce 'RepeatedDetails',
53 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::V1::Vulnerability::VulnerabilityReport::Vulnerability::Details'->new($_) } @$_ ] };
54  
55 declare 'MapStringDetails',
56 as HashRef[Details()];
57  
58 declare 'Reference',
59 as InstanceOf['Google::Cloud::Osconfig::V1::Vulnerability::VulnerabilityReport::Vulnerability::Details::Reference'];
60  
61 coerce 'Reference',
62 from HashRef, via { 'Google::Cloud::Osconfig::V1::Vulnerability::VulnerabilityReport::Vulnerability::Details::Reference'->new($_) };
63  
64 declare 'RepeatedReference',
65 as ArrayRef[Reference()];
66  
67 coerce 'RepeatedReference',
68 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::V1::Vulnerability::VulnerabilityReport::Vulnerability::Details::Reference'->new($_) } @$_ ] };
69  
70 declare 'MapStringReference',
71 as HashRef[Reference()];
72  
73 declare 'Item',
74 as InstanceOf['Google::Cloud::Osconfig::V1::Vulnerability::VulnerabilityReport::Vulnerability::Item'];
75  
76 coerce 'Item',
77 from HashRef, via { 'Google::Cloud::Osconfig::V1::Vulnerability::VulnerabilityReport::Vulnerability::Item'->new($_) };
78  
79 declare 'RepeatedItem',
80 as ArrayRef[Item()];
81  
82 coerce 'RepeatedItem',
83 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::V1::Vulnerability::VulnerabilityReport::Vulnerability::Item'->new($_) } @$_ ] };
84  
85 declare 'MapStringItem',
86 as HashRef[Item()];
87  
88 declare 'GetVulnerabilityReportRequest',
89 as InstanceOf['Google::Cloud::Osconfig::V1::Vulnerability::GetVulnerabilityReportRequest'];
90  
91 coerce 'GetVulnerabilityReportRequest',
92 from HashRef, via { 'Google::Cloud::Osconfig::V1::Vulnerability::GetVulnerabilityReportRequest'->new($_) };
93  
94 declare 'RepeatedGetVulnerabilityReportRequest',
95 as ArrayRef[GetVulnerabilityReportRequest()];
96  
97 coerce 'RepeatedGetVulnerabilityReportRequest',
98 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::V1::Vulnerability::GetVulnerabilityReportRequest'->new($_) } @$_ ] };
99  
100 declare 'MapStringGetVulnerabilityReportRequest',
101 as HashRef[GetVulnerabilityReportRequest()];
102  
103 declare 'ListVulnerabilityReportsRequest',
104 as InstanceOf['Google::Cloud::Osconfig::V1::Vulnerability::ListVulnerabilityReportsRequest'];
105  
106 coerce 'ListVulnerabilityReportsRequest',
107 from HashRef, via { 'Google::Cloud::Osconfig::V1::Vulnerability::ListVulnerabilityReportsRequest'->new($_) };
108  
109 declare 'RepeatedListVulnerabilityReportsRequest',
110 as ArrayRef[ListVulnerabilityReportsRequest()];
111  
112 coerce 'RepeatedListVulnerabilityReportsRequest',
113 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::V1::Vulnerability::ListVulnerabilityReportsRequest'->new($_) } @$_ ] };
114  
115 declare 'MapStringListVulnerabilityReportsRequest',
116 as HashRef[ListVulnerabilityReportsRequest()];
117  
118 declare 'ListVulnerabilityReportsResponse',
119 as InstanceOf['Google::Cloud::Osconfig::V1::Vulnerability::ListVulnerabilityReportsResponse'];
120  
121 coerce 'ListVulnerabilityReportsResponse',
122 from HashRef, via { 'Google::Cloud::Osconfig::V1::Vulnerability::ListVulnerabilityReportsResponse'->new($_) };
123  
124 declare 'RepeatedListVulnerabilityReportsResponse',
125 as ArrayRef[ListVulnerabilityReportsResponse()];
126  
127 coerce 'RepeatedListVulnerabilityReportsResponse',
128 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::V1::Vulnerability::ListVulnerabilityReportsResponse'->new($_) } @$_ ] };
129  
130 declare 'MapStringListVulnerabilityReportsResponse',
131 as HashRef[ListVulnerabilityReportsResponse()];
132  
133 declare 'CVSSv3',
134 as InstanceOf['Google::Cloud::Osconfig::V1::Vulnerability::CVSSv3'];
135  
136 coerce 'CVSSv3',
137 from HashRef, via { 'Google::Cloud::Osconfig::V1::Vulnerability::CVSSv3'->new($_) };
138  
139 declare 'RepeatedCVSSv3',
140 as ArrayRef[CVSSv3()];
141  
142 coerce 'RepeatedCVSSv3',
143 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::V1::Vulnerability::CVSSv3'->new($_) } @$_ ] };
144  
145 declare 'MapStringCVSSv3',
146 as HashRef[CVSSv3()];
147  
148 declare 'AttackVector',
149 as (Int | Str);
150  
151 declare 'AttackComplexity',
152 as (Int | Str);
153  
154 declare 'PrivilegesRequired',
155 as (Int | Str);
156  
157 declare 'UserInteraction',
158 as (Int | Str);
159  
160 declare 'Scope',
161 as (Int | Str);
162  
163 declare 'Impact',
164 as (Int | Str);
165  
166 1;
167  
168 __END__