Class: Google::Apis::TaskqueueV1beta1::TaskQueue
- Inherits:
-
Object
- Object
- Google::Apis::TaskqueueV1beta1::TaskQueue
- 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
Defined Under Namespace
Instance Attribute Summary collapse
-
#acl ⇒ Google::Apis::TaskqueueV1beta1::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::TaskqueueV1beta1::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
106 107 108 |
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 106 def initialize(**args) update!(**args) end |
Instance Attribute Details
#acl ⇒ Google::Apis::TaskqueueV1beta1::TaskQueue::Acl
ACLs that are applicable to this TaskQueue object.
Corresponds to the JSON property acl
83 84 85 |
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 83 def acl @acl end |
#id ⇒ String
Name of the taskqueue.
Corresponds to the JSON property id
88 89 90 |
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 88 def id @id end |
#kind ⇒ String
The kind of REST object returned, in this case taskqueue.
Corresponds to the JSON property kind
93 94 95 |
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 93 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
99 100 101 |
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 99 def max_leases @max_leases end |
#stats ⇒ Google::Apis::TaskqueueV1beta1::TaskQueue::Stats
Statistics for the TaskQueue object in question.
Corresponds to the JSON property stats
104 105 106 |
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 104 def stats @stats end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
111 112 113 114 115 116 117 |
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 111 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 |