Class: Google::Apis::ContaineranalysisV1beta1::BatchCreateOccurrencesRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/containeranalysis_v1beta1/classes.rb,
generated/google/apis/containeranalysis_v1beta1/representations.rb,
generated/google/apis/containeranalysis_v1beta1/representations.rb

Overview

Request to create occurrences in batch.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BatchCreateOccurrencesRequest

Returns a new instance of BatchCreateOccurrencesRequest.


267
268
269
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 267

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

Instance Attribute Details

#occurrencesArray<Google::Apis::ContaineranalysisV1beta1::Occurrence>

Required. The occurrences to create. Max allowed length is 1000. Corresponds to the JSON property occurrences


265
266
267
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 265

def occurrences
  @occurrences
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


272
273
274
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 272

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