Class: Google::Apis::CloudtasksV2beta2::AcknowledgeTaskRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_timeString

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

Returns:

  • (String)


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