Class: Google::Apis::JobsV4::JobResult
- Inherits:
-
Object
- Object
- Google::Apis::JobsV4::JobResult
- 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
Mutation result of a job from a batch operation.
Instance Attribute Summary collapse
-
#job ⇒ Google::Apis::JobsV4::Job
A Job resource represents a job posting (also referred to as a "job listing" or "job requisition").
-
#status ⇒ Google::Apis::JobsV4::Status
The
Status
type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ JobResult
constructor
A new instance of JobResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ JobResult
Returns a new instance of JobResult.
1449 1450 1451 |
# File 'lib/google/apis/jobs_v4/classes.rb', line 1449 def initialize(**args) update!(**args) end |
Instance Attribute Details
#job ⇒ Google::Apis::JobsV4::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
1437 1438 1439 |
# File 'lib/google/apis/jobs_v4/classes.rb', line 1437 def job @job end |
#status ⇒ Google::Apis::JobsV4::Status
The Status
type defines a logical error model that is suitable for different
programming environments, including REST APIs and RPC APIs. It is used by
gRPC. Each Status
message contains three pieces of
data: error code, error message, and error details. You can find out more
about this error model and how to work with it in the API Design Guide.
Corresponds to the JSON property status
1447 1448 1449 |
# File 'lib/google/apis/jobs_v4/classes.rb', line 1447 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1454 1455 1456 1457 |
# File 'lib/google/apis/jobs_v4/classes.rb', line 1454 def update!(**args) @job = args[:job] if args.key?(:job) @status = args[:status] if args.key?(:status) end |