Class: Google::Apis::SecuritycenterV1beta1::Cve

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

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.



344
345
346
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 344

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

Instance Attribute Details

#cvssv3Google::Apis::SecuritycenterV1beta1::Cvssv3

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



325
326
327
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 325

def cvssv3
  @cvssv3
end

#idString

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

Returns:

  • (String)


330
331
332
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 330

def id
  @id
end

#referencesArray<Google::Apis::SecuritycenterV1beta1::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



336
337
338
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 336

def references
  @references
end

#upstream_fix_availableBoolean Also known as: upstream_fix_available?

Whether upstream fix is available for the CVE. Corresponds to the JSON property upstreamFixAvailable

Returns:

  • (Boolean)


341
342
343
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 341

def upstream_fix_available
  @upstream_fix_available
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



349
350
351
352
353
354
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 349

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