Class: Google::Apis::SecuritycenterV1beta2::VulnerabilitySnapshot
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta2::VulnerabilitySnapshot
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1beta2/classes.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb
Overview
Result containing the properties and count of a VulnerabilitySnapshot request.
Instance Attribute Summary collapse
-
#cloud_provider ⇒ String
The cloud provider for the vulnerability snapshot.
-
#finding_count ⇒ Google::Apis::SecuritycenterV1beta2::VulnerabilityCountBySeverity
Vulnerability count by severity.
-
#name ⇒ String
Identifier.
-
#snapshot_time ⇒ String
The time that the snapshot was taken.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VulnerabilitySnapshot
constructor
A new instance of VulnerabilitySnapshot.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VulnerabilitySnapshot
Returns a new instance of VulnerabilitySnapshot.
9710 9711 9712 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9710 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cloud_provider ⇒ String
The cloud provider for the vulnerability snapshot.
Corresponds to the JSON property cloudProvider
9692 9693 9694 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9692 def cloud_provider @cloud_provider end |
#finding_count ⇒ Google::Apis::SecuritycenterV1beta2::VulnerabilityCountBySeverity
Vulnerability count by severity.
Corresponds to the JSON property findingCount
9697 9698 9699 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9697 def finding_count @finding_count end |
#name ⇒ String
Identifier. The vulnerability snapshot name. Format: //locations//
vulnerabilitySnapshots/
Corresponds to the JSON property name
9703 9704 9705 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9703 def name @name end |
#snapshot_time ⇒ String
The time that the snapshot was taken.
Corresponds to the JSON property snapshotTime
9708 9709 9710 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9708 def snapshot_time @snapshot_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9715 9716 9717 9718 9719 9720 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9715 def update!(**args) @cloud_provider = args[:cloud_provider] if args.key?(:cloud_provider) @finding_count = args[:finding_count] if args.key?(:finding_count) @name = args[:name] if args.key?(:name) @snapshot_time = args[:snapshot_time] if args.key?(:snapshot_time) end |