Class: Google::Apis::JobsV4::BatchCreateJobsRequest
- Inherits:
-
Object
- Object
- Google::Apis::JobsV4::BatchCreateJobsRequest
- 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
-
#jobs ⇒ Array<Google::Apis::JobsV4::Job>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BatchCreateJobsRequest
constructor
A new instance of BatchCreateJobsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#jobs ⇒ Array<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
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 |