Google Cloud OsConfig V1 Client - Class VulnerabilityReport (1.1.1)

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
NameDescription
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
TypeDescription
string

setName

Output only. The vulnerabilityReport API resource name.

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getVulnerabilities

Output only. List of vulnerabilities affecting the VM.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setVulnerabilities

Output only. List of vulnerabilities affecting the VM.

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

getUpdateTime

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

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

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

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