class Google::Apis::OndemandscanningV1::PackageData

Attributes

cpe_uri[RW]

The cpe_uri in [cpe format] (cpe.mitre.org/specification/) in which the vulnerability may manifest. Examples include distro or storage location for vulnerable jar. Corresponds to the JSON property `cpeUri` @return [String]

os[RW]

The OS affected by a vulnerability This field is deprecated and the information is in cpe_uri Corresponds to the JSON property `os` @return [String]

os_version[RW]

The version of the OS This field is deprecated and the information is in cpe_uri Corresponds to the JSON property `osVersion` @return [String]

package[RW]

The package being analysed for vulnerabilities Corresponds to the JSON property `package` @return [String]

package_type[RW]

The type of package: os, maven, go, etc. Corresponds to the JSON property `packageType` @return [String]

unused[RW]

Corresponds to the JSON property `unused` @return [String]

version[RW]

The version of the package being analysed Corresponds to the JSON property `version` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/ondemandscanning_v1/classes.rb, line 1533
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/ondemandscanning_v1/classes.rb, line 1538
def update!(**args)
  @cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri)
  @os = args[:os] if args.key?(:os)
  @os_version = args[:os_version] if args.key?(:os_version)
  @package = args[:package] if args.key?(:package)
  @package_type = args[:package_type] if args.key?(:package_type)
  @unused = args[:unused] if args.key?(:unused)
  @version = args[:version] if args.key?(:version)
end