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.



144
145
146
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 144

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

Instance Attribute Details

#include_osv_dataBoolean Also known as: include_osv_data?

[DEPRECATED] Whether to include OSV data in the scan. For backwards compatibility reasons, this field can be neither removed nor renamed. Corresponds to the JSON property includeOsvData

Returns:

  • (Boolean)


131
132
133
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 131

def include_osv_data
  @include_osv_data
end

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

The packages to analyze. Corresponds to the JSON property packages



137
138
139
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 137

def packages
  @packages
end

#resource_uriString

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

Returns:

  • (String)


142
143
144
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 142

def resource_uri
  @resource_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



149
150
151
152
153
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 149

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