Class: Google::Apis::OndemandscanningV1::AnalyzePackagesRequestV1
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::OndemandscanningV1::AnalyzePackagesRequestV1
 
 
- 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
- 
  
    
      #include_osv_data  ⇒ Boolean 
    
    
      (also: #include_osv_data?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    
[DEPRECATED] Whether to include OSV data in the scan.
 - 
  
    
      #packages  ⇒ Array<Google::Apis::OndemandscanningV1::PackageData> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The packages to analyze.
 - 
  
    
      #resource_uri  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AnalyzePackagesRequestV1 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of AnalyzePackagesRequestV1.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
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_data ⇒ Boolean 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
      131 132 133  | 
    
      # File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 131 def include_osv_data @include_osv_data end  | 
  
#packages ⇒ Array<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_uri ⇒ String
Required. The resource URI of the container image being scanned.
Corresponds to the JSON property resourceUri
      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  |