A vulnerability affecting the VM instance.
Fields
details
Contains metadata as per the upstream feed of the operating system and NVD.
installed_inventory_item_ids
Corresponds to the INSTALLED_PACKAGE inventory item on the VM.
This field displays the inventory items affected by this vulnerability.
If the vulnerability report was not updated after the VM inventory
update, these values might not display in VM inventory. For some distros,
this field may be empty.
available_inventory_item_ids
Corresponds to the AVAILABLE_PACKAGE inventory item on the VM.
If the vulnerability report was not updated after the VM inventory
update, these values might not display in VM inventory. If there is no
available fix, the field is empty. The inventory_item value specifies
the latest SoftwarePackage available to the VM that fixes the
vulnerability.
create_time
The timestamp for when the vulnerability was first detected.
update_time
The timestamp for when the vulnerability was last modified.
items
List of items affected by the vulnerability.
Implementations
new
fn new() -> Self
set_details
fn set_details<T>(self, v: T) -> Self
where
T: std::convert::Into<crate::model::vulnerability_report::vulnerability::Details>,
Sets the value of [details][crate::model::vulnerability_report::Vulnerability::details].
set_or_clear_details
fn set_or_clear_details<T>(self, v: std::option::Option<T>) -> Self
where
T: std::convert::Into<crate::model::vulnerability_report::vulnerability::Details>,
Sets or clears the value of [details][crate::model::vulnerability_report::Vulnerability::details].
set_installed_inventory_item_ids
fn set_installed_inventory_item_ids<T, V>(self, v: T) -> Self
where
T: std::iter::IntoIterator,
V: std::convert::Into<std::string::String>,
Sets the value of [installed_inventory_item_ids][crate::model::vulnerability_report::Vulnerability::installed_inventory_item_ids].
set_available_inventory_item_ids
fn set_available_inventory_item_ids<T, V>(self, v: T) -> Self
where
T: std::iter::IntoIterator,
V: std::convert::Into<std::string::String>,
Sets the value of [available_inventory_item_ids][crate::model::vulnerability_report::Vulnerability::available_inventory_item_ids].
set_create_time
fn set_create_time<T>(self, v: T) -> Self
where
T: std::convert::Into<wkt::Timestamp>,
Sets the value of [create_time][crate::model::vulnerability_report::Vulnerability::create_time].
set_or_clear_create_time
fn set_or_clear_create_time<T>(self, v: std::option::Option<T>) -> Self
where
T: std::convert::Into<wkt::Timestamp>,
Sets or clears the value of [create_time][crate::model::vulnerability_report::Vulnerability::create_time].
set_update_time
fn set_update_time<T>(self, v: T) -> Self
where
T: std::convert::Into<wkt::Timestamp>,
Sets the value of [update_time][crate::model::vulnerability_report::Vulnerability::update_time].
set_or_clear_update_time
fn set_or_clear_update_time<T>(self, v: std::option::Option<T>) -> Self
where
T: std::convert::Into<wkt::Timestamp>,
Sets or clears the value of [update_time][crate::model::vulnerability_report::Vulnerability::update_time].
set_items
fn set_items<T, V>(self, v: T) -> Self
where
T: std::iter::IntoIterator,
V: std::convert::Into<crate::model::vulnerability_report::vulnerability::Item>,
Sets the value of [items][crate::model::vulnerability_report::Vulnerability::items].