Class: Google::Apis::TaskqueueV1beta2::Tasks2

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/taskqueue_v1beta2/classes.rb,
generated/google/apis/taskqueue_v1beta2/representations.rb,
generated/google/apis/taskqueue_v1beta2/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) ⇒ Tasks2

Returns a new instance of Tasks2



242
243
244
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 242

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

Instance Attribute Details

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

The actual list of tasks currently active in the TaskQueue. Corresponds to the JSON property items



235
236
237
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 235

def items
  @items
end

#kindString

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

Returns:

  • (String)


240
241
242
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 240

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



247
248
249
250
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 247

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