Class: Google::Apis::JobsV3::UpdateJobRequest

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

Overview

Input only. Update job request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UpdateJobRequest

Returns a new instance of UpdateJobRequest



2724
2725
2726
# File 'generated/google/apis/jobs_v3/classes.rb', line 2724

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

Instance Attribute Details

#jobGoogle::Apis::JobsV3::Job

A Job resource represents a job posting (also referred to as a "job listing" or "job requisition"). A job belongs to a Company, which is the hiring entity responsible for the job. Corresponds to the JSON property job



2712
2713
2714
# File 'generated/google/apis/jobs_v3/classes.rb', line 2712

def job
  @job
end

#update_maskString

Optional but strongly recommended to be provided for the best service experience. If update_mask is provided, only the specified fields in job are updated. Otherwise all the fields are updated. A field mask to restrict the fields that are updated. Only top level fields of Job are supported. Corresponds to the JSON property updateMask

Returns:

  • (String)


2722
2723
2724
# File 'generated/google/apis/jobs_v3/classes.rb', line 2722

def update_mask
  @update_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2729
2730
2731
2732
# File 'generated/google/apis/jobs_v3/classes.rb', line 2729

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