Class: Google::Apis::CloudtasksV2beta2::Queue
- Inherits:
-
Object
- Object
- Google::Apis::CloudtasksV2beta2::Queue
- Defined in:
- generated/google/apis/cloudtasks_v2beta2/classes.rb,
generated/google/apis/cloudtasks_v2beta2/representations.rb,
generated/google/apis/cloudtasks_v2beta2/representations.rb
Overview
A queue is a container of related tasks. Queues are configured to manage how those tasks are dispatched. Configurable properties include rate limits, retry options, target types, and others.
Instance Attribute Summary collapse
-
#app_engine_http_target ⇒ Google::Apis::CloudtasksV2beta2::AppEngineHttpTarget
App Engine HTTP target.
-
#name ⇒ String
The queue name.
-
#pull_target ⇒ Google::Apis::CloudtasksV2beta2::PullTarget
Pull target.
-
#purge_time ⇒ String
Output only.
-
#rate_limits ⇒ Google::Apis::CloudtasksV2beta2::RateLimits
Rate limits.
-
#retry_config ⇒ Google::Apis::CloudtasksV2beta2::RetryConfig
Retry config.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Queue
constructor
A new instance of Queue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Queue
Returns a new instance of Queue
994 995 996 |
# File 'generated/google/apis/cloudtasks_v2beta2/classes.rb', line 994 def initialize(**args) update!(**args) end |
Instance Attribute Details
#app_engine_http_target ⇒ Google::Apis::CloudtasksV2beta2::AppEngineHttpTarget
App Engine HTTP target.
The task will be delivered to the App Engine application hostname
specified by its AppEngineHttpTarget and AppEngineHttpRequest.
The documentation for AppEngineHttpRequest explains how the
task's host URL is constructed.
Using AppEngineHttpTarget requires
appengine.applications.get
Google IAM permission for the project
and the following scope:
https://www.googleapis.com/auth/cloud-platform
Corresponds to the JSON property appEngineHttpTarget
932 933 934 |
# File 'generated/google/apis/cloudtasks_v2beta2/classes.rb', line 932 def app_engine_http_target @app_engine_http_target end |
#name ⇒ String
The queue name.
The queue name must have the following format:
projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID
PROJECT_IDcan contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see Identifying projectsLOCATION_IDis the canonical ID for the queue's location. The list of available locations can be obtained by calling google.cloud.location.Locations.ListLocations. For more information, see https://cloud.google.com/about/locations/.QUEUE_IDcan contain letters ([A-Za-z]), numbers ([0-9]), or hyphens (-). The maximum length is 100 characters. Caller-specified and required in CreateQueueRequest, after which it becomes output only. Corresponds to the JSON propertyname
952 953 954 |
# File 'generated/google/apis/cloudtasks_v2beta2/classes.rb', line 952 def name @name end |
#pull_target ⇒ Google::Apis::CloudtasksV2beta2::PullTarget
Pull target.
Corresponds to the JSON property pullTarget
957 958 959 |
# File 'generated/google/apis/cloudtasks_v2beta2/classes.rb', line 957 def pull_target @pull_target end |
#purge_time ⇒ String
Output only. The last time this queue was purged.
All tasks that were created before this time
were purged.
A queue can be purged using CloudTasks.PurgeQueue, the
App Engine Task Queue SDK, or the Cloud Console
.
Purge time will be truncated to the nearest microsecond. Purge
time will be zero if the queue has never been purged.
Corresponds to the JSON property purgeTime
970 971 972 |
# File 'generated/google/apis/cloudtasks_v2beta2/classes.rb', line 970 def purge_time @purge_time end |
#rate_limits ⇒ Google::Apis::CloudtasksV2beta2::RateLimits
Rate limits.
This message determines the maximum rate that tasks can be dispatched by a
queue, regardless of whether the dispatch is a first task attempt or a retry.
Corresponds to the JSON property rateLimits
977 978 979 |
# File 'generated/google/apis/cloudtasks_v2beta2/classes.rb', line 977 def rate_limits @rate_limits end |
#retry_config ⇒ Google::Apis::CloudtasksV2beta2::RetryConfig
Retry config.
These settings determine how a failed task attempt is retried.
Corresponds to the JSON property retryConfig
983 984 985 |
# File 'generated/google/apis/cloudtasks_v2beta2/classes.rb', line 983 def retry_config @retry_config end |
#state ⇒ String
Output only. The state of the queue.
state can only be changed by called
CloudTasks.PauseQueue, CloudTasks.ResumeQueue, or uploading
queue.yaml.
CloudTasks.UpdateQueue cannot be used to change state.
Corresponds to the JSON property state
992 993 994 |
# File 'generated/google/apis/cloudtasks_v2beta2/classes.rb', line 992 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
999 1000 1001 1002 1003 1004 1005 1006 1007 |
# File 'generated/google/apis/cloudtasks_v2beta2/classes.rb', line 999 def update!(**args) @app_engine_http_target = args[:app_engine_http_target] if args.key?(:app_engine_http_target) @name = args[:name] if args.key?(:name) @pull_target = args[:pull_target] if args.key?(:pull_target) @purge_time = args[:purge_time] if args.key?(:purge_time) @rate_limits = args[:rate_limits] if args.key?(:rate_limits) @retry_config = args[:retry_config] if args.key?(:retry_config) @state = args[:state] if args.key?(:state) end |