Class: Google::Apis::CloudtasksV2beta2::AcknowledgeTaskRequest
- Inherits:
-
Object
- Object
- Google::Apis::CloudtasksV2beta2::AcknowledgeTaskRequest
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudtasks_v2beta2/classes.rb,
lib/google/apis/cloudtasks_v2beta2/representations.rb,
lib/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.
Constructor Details
#initialize(**args) ⇒ AcknowledgeTaskRequest
Returns a new instance of AcknowledgeTaskRequest.
36 37 38 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 36 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
34 35 36 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 34 def schedule_time @schedule_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
41 42 43 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 41 def update!(**args) @schedule_time = args[:schedule_time] if args.key?(:schedule_time) end |