Class: Google::Apis::OndemandscanningV1beta1::AnalyzePackagesRequest
- Inherits:
-
Object
- Object
- Google::Apis::OndemandscanningV1beta1::AnalyzePackagesRequest
- 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
-
#packages ⇒ Array<Google::Apis::OndemandscanningV1beta1::PackageData>
The packages to analyze.
-
#resource_uri ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AnalyzePackagesRequest
constructor
A new instance of AnalyzePackagesRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AnalyzePackagesRequest
Returns a new instance of AnalyzePackagesRequest.
117 118 119 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 117 def initialize(**args) update!(**args) end |
Instance Attribute Details
#packages ⇒ Array<Google::Apis::OndemandscanningV1beta1::PackageData>
The packages to analyze.
Corresponds to the JSON property packages
110 111 112 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 110 def packages @packages end |
#resource_uri ⇒ String
Required. The resource URI of the container image being scanned.
Corresponds to the JSON property resourceUri
115 116 117 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 115 def resource_uri @resource_uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
122 123 124 125 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 122 def update!(**args) @packages = args[:packages] if args.key?(:packages) @resource_uri = args[:resource_uri] if args.key?(:resource_uri) end |