Class: Google::Apis::SecuritycenterV1beta1::VulnerabilitySnapshot
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta1::VulnerabilitySnapshot
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1beta1/classes.rb,
lib/google/apis/securitycenter_v1beta1/representations.rb,
lib/google/apis/securitycenter_v1beta1/representations.rb
Instance Attribute Summary collapse
-
#cloud_provider ⇒ String
Corresponds to the JSON property
cloudProvider. -
#finding_count ⇒ Google::Apis::SecuritycenterV1beta1::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.
12640 12641 12642 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 12640 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cloud_provider ⇒ String
Corresponds to the JSON property cloudProvider
12623 12624 12625 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 12623 def cloud_provider @cloud_provider end |
#finding_count ⇒ Google::Apis::SecuritycenterV1beta1::VulnerabilityCountBySeverity
Corresponds to the JSON property findingCount
12628 12629 12630 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 12628 def finding_count @finding_count end |
#name ⇒ String
Corresponds to the JSON property name
12633 12634 12635 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 12633 def name @name end |
#snapshot_time ⇒ String
Corresponds to the JSON property snapshotTime
12638 12639 12640 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 12638 def snapshot_time @snapshot_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12645 12646 12647 12648 12649 12650 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 12645 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 |