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

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

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



106
107
108
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 106

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

Instance Attribute Details

#aclGoogle::Apis::TaskqueueV1beta1::TaskQueue::Acl

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



83
84
85
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 83

def acl
  @acl
end

#idString

Name of the taskqueue. Corresponds to the JSON property id

Returns:

  • (String)


88
89
90
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 88

def id
  @id
end

#kindString

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

Returns:

  • (String)


93
94
95
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 93

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)


99
100
101
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 99

def max_leases
  @max_leases
end

#statsGoogle::Apis::TaskqueueV1beta1::TaskQueue::Stats

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



104
105
106
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 104

def stats
  @stats
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



111
112
113
114
115
116
117
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 111

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