Class: Google::Apis::JobsV4::BatchDeleteJobsRequest

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 delete a batch of jobs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BatchDeleteJobsRequest

Returns a new instance of BatchDeleteJobsRequest.



114
115
116
# File 'lib/google/apis/jobs_v4/classes.rb', line 114

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

Instance Attribute Details

#namesArray<String>

The names of the jobs to delete. The format is "projects/project_id/tenants/ tenant_id/jobs/job_id". For example, "projects/foo/tenants/bar/jobs/baz". A maximum of 200 jobs can be deleted in a batch. Corresponds to the JSON property names

Returns:

  • (Array<String>)


112
113
114
# File 'lib/google/apis/jobs_v4/classes.rb', line 112

def names
  @names
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



119
120
121
# File 'lib/google/apis/jobs_v4/classes.rb', line 119

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