Class: Google::Apis::TaskqueueV1beta1::TaskQueue::Acl

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

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



141
142
143
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 141

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


127
128
129
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 127

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


133
134
135
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 133

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


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