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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VulnerabilitySnapshot

Returns a new instance of VulnerabilitySnapshot.



11592
11593
11594
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11592

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

Instance Attribute Details

#cloud_providerString

Corresponds to the JSON property cloudProvider

Returns:

  • (String)


11575
11576
11577
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11575

def cloud_provider
  @cloud_provider
end

#finding_countGoogle::Apis::SecuritycenterV1beta2::VulnerabilityCountBySeverity

Corresponds to the JSON property findingCount



11580
11581
11582
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11580

def finding_count
  @finding_count
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


11585
11586
11587
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11585

def name
  @name
end

#snapshot_timeString

Corresponds to the JSON property snapshotTime

Returns:

  • (String)


11590
11591
11592
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11590

def snapshot_time
  @snapshot_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11597
11598
11599
11600
11601
11602
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11597

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