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.



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

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)


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

def include_osv_data
  @include_osv_data
end

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

The packages to analyze. Corresponds to the JSON property packages



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

def packages
  @packages
end

#resource_uriString

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

Returns:

  • (String)


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

def resource_uri
  @resource_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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