Class: Google::Apis::CloudtasksV2beta2::AcknowledgeTaskRequest
- Inherits:
-
Object
- Object
- Google::Apis::CloudtasksV2beta2::AcknowledgeTaskRequest
- Defined in:
- generated/google/apis/cloudtasks_v2beta2/classes.rb,
generated/google/apis/cloudtasks_v2beta2/representations.rb,
generated/google/apis/cloudtasks_v2beta2/representations.rb
Overview
Request message for acknowledging a task using AcknowledgeTask.
Instance Attribute Summary collapse
-
#schedule_time ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AcknowledgeTaskRequest
constructor
A new instance of AcknowledgeTaskRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ AcknowledgeTaskRequest
Returns a new instance of AcknowledgeTaskRequest
40 41 42 |
# File 'generated/google/apis/cloudtasks_v2beta2/classes.rb', line 40 def initialize(**args) update!(**args) end |
Instance Attribute Details
#schedule_time ⇒ String
Required.
The task's current schedule time, available in the
schedule_time returned by
LeaseTasks response or
RenewLease response. This restriction is
to ensure that your worker currently holds the lease.
Corresponds to the JSON property scheduleTime
38 39 40 |
# File 'generated/google/apis/cloudtasks_v2beta2/classes.rb', line 38 def schedule_time @schedule_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
45 46 47 |
# File 'generated/google/apis/cloudtasks_v2beta2/classes.rb', line 45 def update!(**args) @schedule_time = args[:schedule_time] if args.key?(:schedule_time) end |