Google Cloud OsConfig V1 Client - Class Item (1.2.2)

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
NameDescription
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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getFixedCpeUri

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

Returns
TypeDescription
string

setFixedCpeUri

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUpstreamFix

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

Returns
TypeDescription
string

setUpstreamFix

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this