Google Cloud OsConfig V1 Client - Class Item (2.0.0)

Reference documentation and code samples for the Google Cloud OsConfig V1 Client class Item.

OS inventory item that is affected by a vulnerability or fixed as a result of a vulnerability.

Generated from protobuf message google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item

Namespace

Google \ Cloud \ OsConfig \ V1 \ VulnerabilityReport \ Vulnerability

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ installed_inventory_item_id string

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 operating systems, this field might be empty.

↳ available_inventory_item_id string

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.

↳ fixed_cpe_uri string

The recommended CPE URI update that contains a fix for this vulnerability.

↳ upstream_fix string

The upstream OS patch, packages or KB that fixes the vulnerability.

getInstalledInventoryItemId

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 operating systems, this field might be empty.

Returns
Type Description
string

setInstalledInventoryItemId

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 operating systems, this field might be empty.

Parameter
Name Description
var string
Returns
Type Description
$this

getAvailableInventoryItemId

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
string

setAvailableInventoryItemId

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

getFixedCpeUri

The recommended CPE URI update that contains a fix for this vulnerability.

Returns
Type Description
string

setFixedCpeUri

The recommended CPE URI update that contains a fix for this vulnerability.

Parameter
Name Description
var string
Returns
Type Description
$this

getUpstreamFix

The upstream OS patch, packages or KB that fixes the vulnerability.

Returns
Type Description
string

setUpstreamFix

The upstream OS patch, packages or KB that fixes the vulnerability.

Parameter
Name Description
var string
Returns
Type Description
$this