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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

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_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)


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