Google Cloud OsConfig V1 Client - Class VulnerabilityReport (2.0.0)

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

This API resource represents the vulnerability report for a specified Compute Engine virtual machine (VM) instance at a given point in time.

For more information, see Vulnerability reports.

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

Namespace

Google \ Cloud \ OsConfig \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The vulnerabilityReport API resource name. Format: projects/{project_number}/locations/{location}/instances/{instance_id}/vulnerabilityReport

↳ vulnerabilities array<Google\Cloud\OsConfig\V1\VulnerabilityReport\Vulnerability>

Output only. List of vulnerabilities affecting the VM.

↳ update_time Google\Protobuf\Timestamp

Output only. The timestamp for when the last vulnerability report was generated for the VM.

getName

Output only. The vulnerabilityReport API resource name.

Format: projects/{project_number}/locations/{location}/instances/{instance_id}/vulnerabilityReport

Returns
Type Description
string

setName

Output only. The vulnerabilityReport API resource name.

Format: projects/{project_number}/locations/{location}/instances/{instance_id}/vulnerabilityReport

Parameter
Name Description
var string
Returns
Type Description
$this

getVulnerabilities

Output only. List of vulnerabilities affecting the VM.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setVulnerabilities

Output only. List of vulnerabilities affecting the VM.

Parameter
Name Description
var array<Google\Cloud\OsConfig\V1\VulnerabilityReport\Vulnerability>
Returns
Type Description
$this

getUpdateTime

Output only. The timestamp for when the last vulnerability report was generated for the VM.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The timestamp for when the last vulnerability report was generated for the VM.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this