@@ -80,6 +80,8 @@ class Vulnerability(proto.Message):
80
80
update_time (google.protobuf.timestamp_pb2.Timestamp):
81
81
The timestamp for when the vulnerability was
82
82
last modified.
83
+ items (Sequence[google.cloud.osconfig_v1.types.VulnerabilityReport.Vulnerability.Item]):
84
+ List of items affected by the vulnerability.
83
85
"""
84
86
85
87
class Details (proto .Message ):
@@ -136,6 +138,40 @@ class Reference(proto.Message):
136
138
message = "VulnerabilityReport.Vulnerability.Details.Reference" ,
137
139
)
138
140
141
+ class Item (proto .Message ):
142
+ r"""OS inventory item that is affected by a vulnerability or
143
+ fixed as a result of a vulnerability.
144
+
145
+ Attributes:
146
+ installed_inventory_item_id (str):
147
+ Corresponds to the ``INSTALLED_PACKAGE`` inventory item on
148
+ the VM. This field displays the inventory items affected by
149
+ this vulnerability. If the vulnerability report was not
150
+ updated after the VM inventory update, these values might
151
+ not display in VM inventory. For some operating systems,
152
+ this field might be empty.
153
+ available_inventory_item_id (str):
154
+ Corresponds to the ``AVAILABLE_PACKAGE`` inventory item on
155
+ the VM. If the vulnerability report was not updated after
156
+ the VM inventory update, these values might not display in
157
+ VM inventory. If there is no available fix, the field is
158
+ empty. The ``inventory_item`` value specifies the latest
159
+ ``SoftwarePackage`` available to the VM that fixes the
160
+ vulnerability.
161
+ fixed_cpe_uri (str):
162
+ The recommended `CPE
163
+ URI <https://cpe.mitre.org/specification/>`__ update that
164
+ contains a fix for this vulnerability.
165
+ upstream_fix (str):
166
+ The upstream OS patch, packages or KB that
167
+ fixes the vulnerability.
168
+ """
169
+
170
+ installed_inventory_item_id = proto .Field (proto .STRING , number = 1 ,)
171
+ available_inventory_item_id = proto .Field (proto .STRING , number = 2 ,)
172
+ fixed_cpe_uri = proto .Field (proto .STRING , number = 3 ,)
173
+ upstream_fix = proto .Field (proto .STRING , number = 4 ,)
174
+
139
175
details = proto .Field (
140
176
proto .MESSAGE ,
141
177
number = 1 ,
@@ -149,6 +185,9 @@ class Reference(proto.Message):
149
185
update_time = proto .Field (
150
186
proto .MESSAGE , number = 5 , message = timestamp_pb2 .Timestamp ,
151
187
)
188
+ items = proto .RepeatedField (
189
+ proto .MESSAGE , number = 6 , message = "VulnerabilityReport.Vulnerability.Item" ,
190
+ )
152
191
153
192
name = proto .Field (proto .STRING , number = 1 ,)
154
193
vulnerabilities = proto .RepeatedField (
0 commit comments