Class: Google::Apis::OndemandscanningV1beta1::AnalyzePackagesRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/ondemandscanning_v1beta1/classes.rb,
lib/google/apis/ondemandscanning_v1beta1/representations.rb,
lib/google/apis/ondemandscanning_v1beta1/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) ⇒ AnalyzePackagesRequest

Returns a new instance of AnalyzePackagesRequest.



168
169
170
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 168

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

Instance Attribute Details

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

The packages to analyze. Corresponds to the JSON property packages



161
162
163
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 161

def packages
  @packages
end

#resource_uriString

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

Returns:

  • (String)


166
167
168
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 166

def resource_uri
  @resource_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



173
174
175
176
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 173

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