Class: Google::Apis::CloudtasksV2::Queue
- Inherits:
-
Object
- Object
- Google::Apis::CloudtasksV2::Queue
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudtasks_v2/classes.rb,
lib/google/apis/cloudtasks_v2/representations.rb,
lib/google/apis/cloudtasks_v2/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, queue types, and others.
Instance Attribute Summary collapse
-
#app_engine_routing_override ⇒ Google::Apis::CloudtasksV2::AppEngineRouting
App Engine Routing.
-
#name ⇒ String
Caller-specified and required in CreateQueue, after which it becomes output only.
-
#purge_time ⇒ String
Output only.
-
#rate_limits ⇒ Google::Apis::CloudtasksV2::RateLimits
Rate limits.
-
#retry_config ⇒ Google::Apis::CloudtasksV2::RetryConfig
Retry config.
-
#stackdriver_logging_config ⇒ Google::Apis::CloudtasksV2::StackdriverLoggingConfig
Configuration options for writing logs to Stackdriver Logging.
-
#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.
Constructor Details
#initialize(**args) ⇒ Queue
Returns a new instance of Queue.
950 951 952 |
# File 'lib/google/apis/cloudtasks_v2/classes.rb', line 950 def initialize(**args) update!(**args) end |
Instance Attribute Details
#app_engine_routing_override ⇒ Google::Apis::CloudtasksV2::AppEngineRouting
App Engine Routing. Defines routing characteristics specific to App Engine -
service, version, and instance. For more information about services, versions,
and instances see An Overview of App Engine, Microservices Architecture
on Google App Engine, App Engine Standard request routing, and
App Engine Flex request routing. Using AppEngineRouting 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 appEngineRoutingOverride
896 897 898 |
# File 'lib/google/apis/cloudtasks_v2/classes.rb', line 896 def app_engine_routing_override @app_engine_routing_override end |
#name ⇒ String
Caller-specified and required in CreateQueue, after which it becomes output
only. The queue name. The queue name must have the following format: projects/
PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID * PROJECT_ID can contain
letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.).
For more information, see Identifying projects *
LOCATION_ID is the canonical ID for the queue's location. The list of
available locations can be obtained by calling ListLocations. For more
information, see https://cloud.google.com/about/locations/. * QUEUE_ID can
contain letters ([A-Za-z]), numbers ([0-9]), or hyphens (-). The maximum
length is 100 characters.
Corresponds to the JSON property name
911 912 913 |
# File 'lib/google/apis/cloudtasks_v2/classes.rb', line 911 def name @name 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 PurgeQueue, the App
Engine Task Queue SDK, or the Cloud Console. Purge time will be truncated to the nearest
microsecond. Purge time will be unset if the queue has never been purged.
Corresponds to the JSON property purgeTime
921 922 923 |
# File 'lib/google/apis/cloudtasks_v2/classes.rb', line 921 def purge_time @purge_time end |
#rate_limits ⇒ Google::Apis::CloudtasksV2::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. Note: The debugging command, RunTask, will run a task even
if the queue has reached its RateLimits.
Corresponds to the JSON property rateLimits
929 930 931 |
# File 'lib/google/apis/cloudtasks_v2/classes.rb', line 929 def rate_limits @rate_limits end |
#retry_config ⇒ Google::Apis::CloudtasksV2::RetryConfig
Retry config. These settings determine when a failed task attempt is retried.
Corresponds to the JSON property retryConfig
934 935 936 |
# File 'lib/google/apis/cloudtasks_v2/classes.rb', line 934 def retry_config @retry_config end |
#stackdriver_logging_config ⇒ Google::Apis::CloudtasksV2::StackdriverLoggingConfig
Configuration options for writing logs to Stackdriver Logging.
Corresponds to the JSON property stackdriverLoggingConfig
940 941 942 |
# File 'lib/google/apis/cloudtasks_v2/classes.rb', line 940 def stackdriver_logging_config @stackdriver_logging_config end |
#state ⇒ String
Output only. The state of the queue. state can only be changed by calling
PauseQueue, ResumeQueue, or uploading queue.yaml/xml. UpdateQueue cannot be used to
change state.
Corresponds to the JSON property state
948 949 950 |
# File 'lib/google/apis/cloudtasks_v2/classes.rb', line 948 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
955 956 957 958 959 960 961 962 963 |
# File 'lib/google/apis/cloudtasks_v2/classes.rb', line 955 def update!(**args) @app_engine_routing_override = args[:app_engine_routing_override] if args.key?(:app_engine_routing_override) @name = args[:name] if args.key?(:name) @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) @stackdriver_logging_config = args[:stackdriver_logging_config] if args.key?(:stackdriver_logging_config) @state = args[:state] if args.key?(:state) end |