Class: Google::Apis::SecuritycenterV1::VulnerabilitySnapshot

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1/classes.rb,
lib/google/apis/securitycenter_v1/representations.rb,
lib/google/apis/securitycenter_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VulnerabilitySnapshot

Returns a new instance of VulnerabilitySnapshot.



13908
13909
13910
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13908

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

Instance Attribute Details

#cloud_providerString

Corresponds to the JSON property cloudProvider

Returns:

  • (String)


13891
13892
13893
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13891

def cloud_provider
  @cloud_provider
end

#finding_countGoogle::Apis::SecuritycenterV1::VulnerabilityCountBySeverity

Corresponds to the JSON property findingCount



13896
13897
13898
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13896

def finding_count
  @finding_count
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


13901
13902
13903
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13901

def name
  @name
end

#snapshot_timeString

Corresponds to the JSON property snapshotTime

Returns:

  • (String)


13906
13907
13908
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13906

def snapshot_time
  @snapshot_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13913
13914
13915
13916
13917
13918
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13913

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