Class: Google::Apis::TaskqueueV1beta1::TaskQueue::Acl
- Inherits:
-
Object
- Object
- Google::Apis::TaskqueueV1beta1::TaskQueue::Acl
- 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
Overview
ACLs that are applicable to this TaskQueue object.
Instance Attribute Summary collapse
-
#admin_emails ⇒ Array<String>
Email addresses of users who are "admins" of the TaskQueue.
-
#consumer_emails ⇒ Array<String>
Email addresses of users who can "consume" tasks from the TaskQueue.
-
#producer_emails ⇒ Array<String>
Email addresses of users who can "produce" tasks into the TaskQueue.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Acl
constructor
A new instance of Acl.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Acl
Returns a new instance of Acl
141 142 143 |
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 141 def initialize(**args) update!(**args) end |
Instance Attribute Details
#admin_emails ⇒ Array<String>
Email addresses of users who are "admins" of the TaskQueue. This means they
can control the queue, eg set ACLs for the queue.
Corresponds to the JSON property adminEmails
127 128 129 |
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 127 def admin_emails @admin_emails end |
#consumer_emails ⇒ Array<String>
Email addresses of users who can "consume" tasks from the TaskQueue. This
means they can Dequeue and Delete tasks from the queue.
Corresponds to the JSON property consumerEmails
133 134 135 |
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 133 def consumer_emails @consumer_emails end |
#producer_emails ⇒ Array<String>
Email addresses of users who can "produce" tasks into the TaskQueue. This
means they can Insert tasks into the queue.
Corresponds to the JSON property producerEmails
139 140 141 |
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 139 def producer_emails @producer_emails end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
146 147 148 149 150 |
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 146 def update!(**args) @admin_emails = args[:admin_emails] if args.key?(:admin_emails) @consumer_emails = args[:consumer_emails] if args.key?(:consumer_emails) @producer_emails = args[:producer_emails] if args.key?(:producer_emails) end |