class Google::Apis::TaskqueueV1beta2::Task

Attributes

enqueue_timestamp[RW]

Time (in seconds since the epoch) at which the task was enqueued. Corresponds to the JSON property `enqueueTimestamp` @return [String]

id[RW]

Name of the task. Corresponds to the JSON property `id` @return [String]

kind[RW]

The kind of object returned, in this case set to task. Corresponds to the JSON property `kind` @return [String]

lease_timestamp[RW]

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]

payload_base64[RW]

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]

queue_name[RW]

Name of the queue that the task is in. Corresponds to the JSON property `queueName` @return [String]

retry_count[RW]

The number of leases applied to this task. Corresponds to the JSON property `retry_count` @return [Fixnum]

tag[RW]

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

new(**args) click to toggle source
# File generated/google/apis/taskqueue_v1beta2/classes.rb, line 71
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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