Class: Google::Apis::OsconfigV1::VulnerabilityReport
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1::VulnerabilityReport
- 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
-
#name ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
-
#vulnerabilities ⇒ Array<Google::Apis::OsconfigV1::VulnerabilityReportVulnerability>
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VulnerabilityReport
constructor
A new instance of VulnerabilityReport.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VulnerabilityReport
Returns a new instance of VulnerabilityReport.
3378 3379 3380 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 3378 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Output only. The vulnerabilityReport API resource name. Format: projects/
project_number/locations/location/instances/instance_id/
vulnerabilityReport
Corresponds to the JSON property name
3365 3366 3367 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 3365 def name @name end |
#update_time ⇒ String
Output only. The timestamp for when the last vulnerability report was
generated for the VM.
Corresponds to the JSON property updateTime
3371 3372 3373 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 3371 def update_time @update_time end |
#vulnerabilities ⇒ Array<Google::Apis::OsconfigV1::VulnerabilityReportVulnerability>
Output only. List of vulnerabilities affecting the VM.
Corresponds to the JSON property vulnerabilities
3376 3377 3378 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 3376 def vulnerabilities @vulnerabilities end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3383 3384 3385 3386 3387 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 3383 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 |