Class: Google::Apis::TaskqueueV1beta1::Tasks2

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) ⇒ Tasks2

Returns a new instance of Tasks2



230
231
232
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 230

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

Instance Attribute Details

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

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



223
224
225
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 223

def items
  @items
end

#kindString

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

Returns:

  • (String)


228
229
230
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 228

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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