Class: Google::Apis::OndemandscanningV1::AnalyzePackagesRequestV1

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

Overview

AnalyzePackagesRequest is the request to analyze a list of packages and create Vulnerability Occurrences for it.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AnalyzePackagesRequestV1

Returns a new instance of AnalyzePackagesRequestV1.



123
124
125
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 123

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

Instance Attribute Details

#include_osv_dataBoolean Also known as: include_osv_data?

Whether to include OSV data in the scan. Corresponds to the JSON property includeOsvData

Returns:

  • (Boolean)


110
111
112
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 110

def include_osv_data
  @include_osv_data
end

#packagesArray<Google::Apis::OndemandscanningV1::PackageData>

The packages to analyze. Corresponds to the JSON property packages



116
117
118
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 116

def packages
  @packages
end

#resource_uriString

Required. The resource URI of the container image being scanned. Corresponds to the JSON property resourceUri

Returns:

  • (String)


121
122
123
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 121

def resource_uri
  @resource_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



128
129
130
131
132
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 128

def update!(**args)
  @include_osv_data = args[:include_osv_data] if args.key?(:include_osv_data)
  @packages = args[:packages] if args.key?(:packages)
  @resource_uri = args[:resource_uri] if args.key?(:resource_uri)
end