Class: Google::Apis::TaskqueueV1beta2::TaskQueue
- Inherits:
-
Object
- Object
- Google::Apis::TaskqueueV1beta2::TaskQueue
- 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
Defined Under Namespace
Instance Attribute Summary collapse
-
#acl ⇒ Google::Apis::TaskqueueV1beta2::TaskQueue::Acl
ACLs that are applicable to this TaskQueue object.
-
#id ⇒ String
Name of the taskqueue.
-
#kind ⇒ String
The kind of REST object returned, in this case taskqueue.
-
#max_leases ⇒ Fixnum
The number of times we should lease out tasks before giving up on them.
-
#stats ⇒ Google::Apis::TaskqueueV1beta2::TaskQueue::Stats
Statistics for the TaskQueue object in question.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TaskQueue
constructor
A new instance of TaskQueue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TaskQueue
Returns a new instance of TaskQueue
118 119 120 |
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 118 def initialize(**args) update!(**args) end |
Instance Attribute Details
#acl ⇒ Google::Apis::TaskqueueV1beta2::TaskQueue::Acl
ACLs that are applicable to this TaskQueue object.
Corresponds to the JSON property acl
95 96 97 |
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 95 def acl @acl end |
#id ⇒ String
Name of the taskqueue.
Corresponds to the JSON property id
100 101 102 |
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 100 def id @id end |
#kind ⇒ String
The kind of REST object returned, in this case taskqueue.
Corresponds to the JSON property kind
105 106 107 |
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 105 def kind @kind end |
#max_leases ⇒ Fixnum
The number of times we should lease out tasks before giving up on them. If
unset we lease them out forever until a worker deletes the task.
Corresponds to the JSON property maxLeases
111 112 113 |
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 111 def max_leases @max_leases end |
#stats ⇒ Google::Apis::TaskqueueV1beta2::TaskQueue::Stats
Statistics for the TaskQueue object in question.
Corresponds to the JSON property stats
116 117 118 |
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 116 def stats @stats end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
123 124 125 126 127 128 129 |
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 123 def update!(**args) @acl = args[:acl] if args.key?(:acl) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @max_leases = args[:max_leases] if args.key?(:max_leases) @stats = args[:stats] if args.key?(:stats) end |