Class: Google::Apis::TaskqueueV1beta2::Tasks
- Inherits:
-
Object
- Object
- Google::Apis::TaskqueueV1beta2::Tasks
- 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
-
#items ⇒ Array<Google::Apis::TaskqueueV1beta2::Task>
The actual list of tasks returned as a result of the lease operation.
-
#kind ⇒ String
The kind of object returned, a list of tasks.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Tasks
constructor
A new instance of Tasks.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Tasks
Returns a new instance of Tasks
217 218 219 |
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 217 def initialize(**args) update!(**args) end |
Instance Attribute Details
#items ⇒ Array<Google::Apis::TaskqueueV1beta2::Task>
The actual list of tasks returned as a result of the lease operation.
Corresponds to the JSON property items
210 211 212 |
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 210 def items @items end |
#kind ⇒ String
The kind of object returned, a list of tasks.
Corresponds to the JSON property kind
215 216 217 |
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 215 def kind @kind end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
222 223 224 225 |
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 222 def update!(**args) @items = args[:items] if args.key?(:items) @kind = args[:kind] if args.key?(:kind) end |