class Google::Apis::TaskqueueV1beta2::Task
Attributes
Time (in seconds since the epoch) at which the task was enqueued. Corresponds to the JSON property `enqueueTimestamp` @return [String]
Name of the task. Corresponds to the JSON property `id` @return [String]
The kind of object returned, in this case set to task. Corresponds to the JSON property `kind` @return [String]
Time (in seconds since the epoch) at which the task lease will expire. This value is 0 if the task isnt currently leased out to a worker. Corresponds to the JSON property `leaseTimestamp` @return [String]
A bag of bytes which is the task payload. The payload on the JSON side is always Base64 encoded. Corresponds to the JSON property `payloadBase64` @return [String]
Name of the queue that the task is in. Corresponds to the JSON property `queueName` @return [String]
The number of leases applied to this task. Corresponds to the JSON property `retry_count` @return [Fixnum]
Tag for the task, could be used later to lease tasks grouped by a specific tag. Corresponds to the JSON property `tag` @return [String]
Public Class Methods
# File generated/google/apis/taskqueue_v1beta2/classes.rb, line 71 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/taskqueue_v1beta2/classes.rb, line 76 def update!(**args) @enqueue_timestamp = args[:enqueue_timestamp] if args.key?(:enqueue_timestamp) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @lease_timestamp = args[:lease_timestamp] if args.key?(:lease_timestamp) @payload_base64 = args[:payload_base64] if args.key?(:payload_base64) @queue_name = args[:queue_name] if args.key?(:queue_name) @retry_count = args[:retry_count] if args.key?(:retry_count) @tag = args[:tag] if args.key?(:tag) end