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
Instance Attribute Summary collapse
-
#cloud_provider ⇒ String
Corresponds to the JSON property
cloudProvider. -
#finding_count ⇒ Google::Apis::SecuritycenterV1beta2::VulnerabilityCountBySeverity
Corresponds to the JSON property
findingCount. -
#name ⇒ String
Corresponds to the JSON property
name. -
#snapshot_time ⇒ String
Corresponds to the JSON property
snapshotTime.
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.
11580 11581 11582 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11580 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cloud_provider ⇒ String
Corresponds to the JSON property cloudProvider
11563 11564 11565 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11563 def cloud_provider @cloud_provider end |
#finding_count ⇒ Google::Apis::SecuritycenterV1beta2::VulnerabilityCountBySeverity
Corresponds to the JSON property findingCount
11568 11569 11570 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11568 def finding_count @finding_count end |
#name ⇒ String
Corresponds to the JSON property name
11573 11574 11575 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11573 def name @name end |
#snapshot_time ⇒ String
Corresponds to the JSON property snapshotTime
11578 11579 11580 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11578 def snapshot_time @snapshot_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11585 11586 11587 11588 11589 11590 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11585 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 |