Class: Google::Apis::SecuritycenterV1beta1::VulnerabilitySnapshot

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VulnerabilitySnapshot

Returns a new instance of VulnerabilitySnapshot.



12230
12231
12232
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 12230

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

Instance Attribute Details

#cloud_providerString

Corresponds to the JSON property cloudProvider

Returns:

  • (String)


12213
12214
12215
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 12213

def cloud_provider
  @cloud_provider
end

#finding_countGoogle::Apis::SecuritycenterV1beta1::VulnerabilityCountBySeverity

Corresponds to the JSON property findingCount



12218
12219
12220
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 12218

def finding_count
  @finding_count
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


12223
12224
12225
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 12223

def name
  @name
end

#snapshot_timeString

Corresponds to the JSON property snapshotTime

Returns:

  • (String)


12228
12229
12230
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 12228

def snapshot_time
  @snapshot_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12235
12236
12237
12238
12239
12240
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 12235

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