Class: Google::Apis::ContaineranalysisV1::BatchCreateOccurrencesRequest

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

Overview

Request to create occurrences in batch.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BatchCreateOccurrencesRequest

Returns a new instance of BatchCreateOccurrencesRequest.



389
390
391
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 389

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

Instance Attribute Details

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

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



387
388
389
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 387

def occurrences
  @occurrences
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



394
395
396
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 394

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