Class: Google::Apis::TaskqueueV1beta2::TaskQueue::Acl
- Inherits:
-
Object
- Object
- Google::Apis::TaskqueueV1beta2::TaskQueue::Acl
- 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
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
153 154 155 |
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 153 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
139 140 141 |
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 139 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
145 146 147 |
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 145 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
151 152 153 |
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 151 def producer_emails @producer_emails end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
158 159 160 161 162 |
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 158 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 |