Class: Google::Apis::SecuritycenterV1beta2::VulnerabilitySnapshot

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VulnerabilitySnapshot

Returns a new instance of VulnerabilitySnapshot.



8523
8524
8525
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 8523

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

Instance Attribute Details

#cloud_providerString

The cloud provider for the vulnerability snapshot. Corresponds to the JSON property cloudProvider

Returns:

  • (String)


8505
8506
8507
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 8505

def cloud_provider
  @cloud_provider
end

#finding_countGoogle::Apis::SecuritycenterV1beta2::VulnerabilityCountBySeverity

Vulnerability count by severity. Corresponds to the JSON property findingCount



8510
8511
8512
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 8510

def finding_count
  @finding_count
end

#nameString

Identifier. The vulnerability snapshot name. Format: //locations// vulnerabilitySnapshots/ Corresponds to the JSON property name

Returns:

  • (String)


8516
8517
8518
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 8516

def name
  @name
end

#snapshot_timeString

The time that the snapshot was taken. Corresponds to the JSON property snapshotTime

Returns:

  • (String)


8521
8522
8523
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 8521

def snapshot_time
  @snapshot_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8528
8529
8530
8531
8532
8533
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 8528

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