Class: Google::Apis::TaskqueueV1beta2::TaskQueue::Acl

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_emailsArray<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

Returns:

  • (Array<String>)


139
140
141
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 139

def admin_emails
  @admin_emails
end

#consumer_emailsArray<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

Returns:

  • (Array<String>)


145
146
147
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 145

def consumer_emails
  @consumer_emails
end

#producer_emailsArray<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

Returns:

  • (Array<String>)


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