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

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

Defined Under Namespace

Classes: Acl, Stats

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

Returns a new instance of TaskQueue



118
119
120
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 118

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#aclGoogle::Apis::TaskqueueV1beta2::TaskQueue::Acl

ACLs that are applicable to this TaskQueue object. Corresponds to the JSON property acl



95
96
97
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 95

def acl
  @acl
end

#idString

Name of the taskqueue. Corresponds to the JSON property id

Returns:

  • (String)


100
101
102
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 100

def id
  @id
end

#kindString

The kind of REST object returned, in this case taskqueue. Corresponds to the JSON property kind

Returns:

  • (String)


105
106
107
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 105

def kind
  @kind
end

#max_leasesFixnum

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

Returns:

  • (Fixnum)


111
112
113
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 111

def max_leases
  @max_leases
end

#statsGoogle::Apis::TaskqueueV1beta2::TaskQueue::Stats

Statistics for the TaskQueue object in question. Corresponds to the JSON property stats



116
117
118
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 116

def stats
  @stats
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



123
124
125
126
127
128
129
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 123

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