Class: Google::Apis::SecuritycenterV1beta2::Vulnerability

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

Overview

Refers to common vulnerability fields e.g. cve, cvss, cwe etc.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Vulnerability

Returns a new instance of Vulnerability.



12350
12351
12352
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 12350

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

Instance Attribute Details

#cveGoogle::Apis::SecuritycenterV1beta2::Cve

CVE stands for Common Vulnerabilities and Exposures. Information from the CVE record that describes this vulnerability. Corresponds to the JSON property cve



12314
12315
12316
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 12314

def cve
  @cve
end

#cwesArray<Google::Apis::SecuritycenterV1beta2::Cwe>

Represents one or more Common Weakness Enumeration (CWE) information on this vulnerability. Corresponds to the JSON property cwes



12320
12321
12322
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 12320

def cwes
  @cwes
end

#fixed_packageGoogle::Apis::SecuritycenterV1beta2::Package

Package is a generic definition of a package. Corresponds to the JSON property fixedPackage



12325
12326
12327
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 12325

def fixed_package
  @fixed_package
end

#offending_packageGoogle::Apis::SecuritycenterV1beta2::Package

Package is a generic definition of a package. Corresponds to the JSON property offendingPackage



12330
12331
12332
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 12330

def offending_package
  @offending_package
end

#provider_risk_scoreFixnum

Provider provided risk_score based on multiple factors. The higher the risk score, the more risky the vulnerability is. Corresponds to the JSON property providerRiskScore

Returns:

  • (Fixnum)


12336
12337
12338
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 12336

def provider_risk_score
  @provider_risk_score
end

#reachableBoolean Also known as: reachable?

Represents whether the vulnerability is reachable (detected via static analysis) Corresponds to the JSON property reachable

Returns:

  • (Boolean)


12342
12343
12344
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 12342

def reachable
  @reachable
end

#security_bulletinGoogle::Apis::SecuritycenterV1beta2::SecurityBulletin

SecurityBulletin are notifications of vulnerabilities of Google products. Corresponds to the JSON property securityBulletin



12348
12349
12350
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 12348

def security_bulletin
  @security_bulletin
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12355
12356
12357
12358
12359
12360
12361
12362
12363
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 12355

def update!(**args)
  @cve = args[:cve] if args.key?(:cve)
  @cwes = args[:cwes] if args.key?(:cwes)
  @fixed_package = args[:fixed_package] if args.key?(:fixed_package)
  @offending_package = args[:offending_package] if args.key?(:offending_package)
  @provider_risk_score = args[:provider_risk_score] if args.key?(:provider_risk_score)
  @reachable = args[:reachable] if args.key?(:reachable)
  @security_bulletin = args[:security_bulletin] if args.key?(:security_bulletin)
end