Google Cloud OsConfig V1 Client - Class Vulnerability (1.1.1)

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 \ VulnerabilityReport

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ details Google\Cloud\OsConfig\V1\VulnerabilityReport\Vulnerability\Details

Contains metadata as per the upstream feed of the operating system and NVD.

↳ installed_inventory_item_ids array

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 array

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 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<Google\Cloud\OsConfig\V1\VulnerabilityReport\Vulnerability\Item>

List of items affected by the vulnerability.

getDetails

Contains metadata as per the upstream feed of the operating system and NVD.

Returns
TypeDescription
Google\Cloud\OsConfig\V1\VulnerabilityReport\Vulnerability\Details|null

hasDetails

clearDetails

setDetails

Contains metadata as per the upstream feed of the operating system and NVD.

Parameter
NameDescription
var Google\Cloud\OsConfig\V1\VulnerabilityReport\Vulnerability\Details
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string[]
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string[]
Returns
TypeDescription
$this

getCreateTime

The timestamp for when the vulnerability was first detected.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

The timestamp for when the vulnerability was first detected.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

The timestamp for when the vulnerability was last modified.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

The timestamp for when the vulnerability was last modified.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getItems

List of items affected by the vulnerability.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setItems

List of items affected by the vulnerability.

Parameter
NameDescription
var array<Google\Cloud\OsConfig\V1\VulnerabilityReport\Vulnerability\Item>
Returns
TypeDescription
$this