Class: Google::Apis::SecuritycenterV1::Cve

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

Overview

CVE stands for Common Vulnerabilities and Exposures. More information: https:// cve.mitre.org

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Cve

Returns a new instance of Cve.



297
298
299
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 297

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

Instance Attribute Details

#cvssv3Google::Apis::SecuritycenterV1::Cvssv3

Common Vulnerability Scoring System version 3. Corresponds to the JSON property cvssv3



284
285
286
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 284

def cvssv3
  @cvssv3
end

#idString

The unique identifier for the vulnerability. e.g. CVE-2021-34527 Corresponds to the JSON property id

Returns:

  • (String)


289
290
291
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 289

def id
  @id
end

#referencesArray<Google::Apis::SecuritycenterV1::Reference>

Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/ cvename.cgi?name=CVE-2021-34527 Corresponds to the JSON property references



295
296
297
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 295

def references
  @references
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



302
303
304
305
306
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 302

def update!(**args)
  @cvssv3 = args[:cvssv3] if args.key?(:cvssv3)
  @id = args[:id] if args.key?(:id)
  @references = args[:references] if args.key?(:references)
end