Class: Google::Apis::CloudtasksV2beta2::BufferQueueResponse

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudtasks_v2beta2/classes.rb,
lib/google/apis/cloudtasks_v2beta2/representations.rb,
lib/google/apis/cloudtasks_v2beta2/representations.rb

Overview

Response message for BufferQueue.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BufferQueueResponse

Returns a new instance of BufferQueueResponse.



445
446
447
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 445

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

Instance Attribute Details

#taskString

The name of the created task. For example: projects/PROJECT_ID/locations/ LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID. TASK_ID is randomly generated and is unique within the queue. Corresponds to the JSON property task

Returns:

  • (String)


443
444
445
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 443

def task
  @task
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



450
451
452
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 450

def update!(**args)
  @task = args[:task] if args.key?(:task)
end