Reference documentation and code samples for the Google Cloud OsConfig V1 Client class Vulnerability.
A vulnerability affecting the VM instance.
Generated from protobuf message google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability
Namespace
Google \ Cloud \ OsConfig \ V1 \ VulnerabilityReportMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ details |
Vulnerability\Details
Contains metadata as per the upstream feed of the operating system and NVD. |
↳ installed_inventory_item_ids |
array
Corresponds to the |
↳ available_inventory_item_ids |
array
Corresponds to the |
↳ create_time |
Google\Protobuf\Timestamp
The timestamp for when the vulnerability was first detected. |
↳ update_time |
Google\Protobuf\Timestamp
The timestamp for when the vulnerability was last modified. |
↳ items |
array<Vulnerability\Item>
List of items affected by the vulnerability. |
getDetails
Contains metadata as per the upstream feed of the operating system and NVD.
Returns | |
---|---|
Type | Description |
Vulnerability\Details|null |
hasDetails
clearDetails
setDetails
Contains metadata as per the upstream feed of the operating system and NVD.
Parameter | |
---|---|
Name | Description |
var |
Vulnerability\Details
|
Returns | |
---|---|
Type | Description |
$this |
getInstalledInventoryItemIds
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.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setInstalledInventoryItemIds
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.
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |
getAvailableInventoryItemIds
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.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setAvailableInventoryItemIds
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.
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |
getCreateTime
The timestamp for when the vulnerability was first detected.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasCreateTime
clearCreateTime
setCreateTime
The timestamp for when the vulnerability was first detected.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getUpdateTime
The timestamp for when the vulnerability was last modified.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasUpdateTime
clearUpdateTime
setUpdateTime
The timestamp for when the vulnerability was last modified.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getItems
List of items affected by the vulnerability.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setItems
List of items affected by the vulnerability.
Parameter | |
---|---|
Name | Description |
var |
array<Vulnerability\Item>
|
Returns | |
---|---|
Type | Description |
$this |