Class: Google::Apis::JobsV4::BatchCreateJobsRequest

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

Overview

Request to create a batch of jobs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BatchCreateJobsRequest

Returns a new instance of BatchCreateJobsRequest.



72
73
74
# File 'lib/google/apis/jobs_v4/classes.rb', line 72

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

Instance Attribute Details

#jobsArray<Google::Apis::JobsV4::Job>

Required. The jobs to be created. A maximum of 200 jobs can be created in a batch. Corresponds to the JSON property jobs

Returns:



70
71
72
# File 'lib/google/apis/jobs_v4/classes.rb', line 70

def jobs
  @jobs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



77
78
79
# File 'lib/google/apis/jobs_v4/classes.rb', line 77

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