Class: Google::Apis::OsconfigV1::VulnerabilityReport

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/osconfig_v1/classes.rb,
lib/google/apis/osconfig_v1/representations.rb,
lib/google/apis/osconfig_v1/representations.rb

Overview

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VulnerabilityReport

Returns a new instance of VulnerabilityReport.



3510
3511
3512
# File 'lib/google/apis/osconfig_v1/classes.rb', line 3510

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

Output only. The vulnerabilityReport API resource name. Format: projects/ project_number/locations/location/instances/instance_id/ vulnerabilityReport Corresponds to the JSON property name

Returns:

  • (String)


3497
3498
3499
# File 'lib/google/apis/osconfig_v1/classes.rb', line 3497

def name
  @name
end

#update_timeString

Output only. The timestamp for when the last vulnerability report was generated for the VM. Corresponds to the JSON property updateTime

Returns:

  • (String)


3503
3504
3505
# File 'lib/google/apis/osconfig_v1/classes.rb', line 3503

def update_time
  @update_time
end

#vulnerabilitiesArray<Google::Apis::OsconfigV1::VulnerabilityReportVulnerability>

Output only. List of vulnerabilities affecting the VM. Corresponds to the JSON property vulnerabilities



3508
3509
3510
# File 'lib/google/apis/osconfig_v1/classes.rb', line 3508

def vulnerabilities
  @vulnerabilities
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3515
3516
3517
3518
3519
# File 'lib/google/apis/osconfig_v1/classes.rb', line 3515

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @update_time = args[:update_time] if args.key?(:update_time)
  @vulnerabilities = args[:vulnerabilities] if args.key?(:vulnerabilities)
end