Class: Google::Apis::TaskqueueV1beta1::Tasks

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/taskqueue_v1beta1/classes.rb,
generated/google/apis/taskqueue_v1beta1/representations.rb,
generated/google/apis/taskqueue_v1beta1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Tasks

Returns a new instance of Tasks



205
206
207
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 205

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#itemsArray<Google::Apis::TaskqueueV1beta1::Task>

The actual list of tasks returned as a result of the lease operation. Corresponds to the JSON property items



198
199
200
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 198

def items
  @items
end

#kindString

The kind of object returned, a list of tasks. Corresponds to the JSON property kind

Returns:

  • (String)


203
204
205
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 203

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



210
211
212
213
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 210

def update!(**args)
  @items = args[:items] if args.key?(:items)
  @kind = args[:kind] if args.key?(:kind)
end