google-cloud-tasks-v2beta3 0.2.3 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/tasks/v2beta3.rb +3 -0
- data/lib/google/cloud/tasks/v2beta3/cloud_tasks/client.rb +38 -28
- data/lib/google/cloud/tasks/v2beta3/cloudtasks_pb.rb +2 -0
- data/lib/google/cloud/tasks/v2beta3/cloudtasks_services_pb.rb +17 -18
- data/lib/google/cloud/tasks/v2beta3/queue_pb.rb +19 -0
- data/lib/google/cloud/tasks/v2beta3/target_pb.rb +5 -0
- data/lib/google/cloud/tasks/v2beta3/task_pb.rb +1 -0
- data/lib/google/cloud/tasks/v2beta3/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +50 -14
- data/proto_docs/google/cloud/tasks/v2beta3/cloudtasks.rb +12 -0
- data/proto_docs/google/cloud/tasks/v2beta3/queue.rb +93 -12
- data/proto_docs/google/cloud/tasks/v2beta3/target.rb +35 -11
- data/proto_docs/google/cloud/tasks/v2beta3/task.rb +11 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 218f6f6482128cfdb99cf28948105290faf31433caed0d6f0ad86ba6fcc67439
|
4
|
+
data.tar.gz: 7cc1c020e6b43402806e76eeb09e79e04ae8db91d66a37da5207e71eb256d1e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19d6aa078dafb8a2d2c7b3a15fb859e744535be0db60d5d4aa2525d7a5faa3fc297d0f90fec8c6aec5cecb90c40bd628d8474aef7f22faee5a8e5515a93cb41c
|
7
|
+
data.tar.gz: 627342ede054496516e6c0b01fb257a9a2f3049f39f323b546f71372fafea02992e082ec294eb1f5e49d78ca84622993e712435f22cac916bd68ed89794e2b8a
|
@@ -66,85 +66,85 @@ module Google
|
|
66
66
|
end
|
67
67
|
default_config = Client::Configuration.new parent_config
|
68
68
|
|
69
|
-
default_config.rpcs.list_queues.timeout =
|
69
|
+
default_config.rpcs.list_queues.timeout = 20.0
|
70
70
|
default_config.rpcs.list_queues.retry_policy = {
|
71
71
|
initial_delay: 0.1,
|
72
72
|
max_delay: 10.0,
|
73
73
|
multiplier: 1.3,
|
74
|
-
retry_codes: [
|
74
|
+
retry_codes: [4, 14]
|
75
75
|
}
|
76
76
|
|
77
|
-
default_config.rpcs.get_queue.timeout =
|
77
|
+
default_config.rpcs.get_queue.timeout = 20.0
|
78
78
|
default_config.rpcs.get_queue.retry_policy = {
|
79
79
|
initial_delay: 0.1,
|
80
80
|
max_delay: 10.0,
|
81
81
|
multiplier: 1.3,
|
82
|
-
retry_codes: [
|
82
|
+
retry_codes: [4, 14]
|
83
83
|
}
|
84
84
|
|
85
|
-
default_config.rpcs.create_queue.timeout =
|
85
|
+
default_config.rpcs.create_queue.timeout = 20.0
|
86
86
|
|
87
|
-
default_config.rpcs.update_queue.timeout =
|
87
|
+
default_config.rpcs.update_queue.timeout = 20.0
|
88
88
|
|
89
|
-
default_config.rpcs.delete_queue.timeout =
|
89
|
+
default_config.rpcs.delete_queue.timeout = 20.0
|
90
90
|
default_config.rpcs.delete_queue.retry_policy = {
|
91
91
|
initial_delay: 0.1,
|
92
92
|
max_delay: 10.0,
|
93
93
|
multiplier: 1.3,
|
94
|
-
retry_codes: [
|
94
|
+
retry_codes: [4, 14]
|
95
95
|
}
|
96
96
|
|
97
|
-
default_config.rpcs.purge_queue.timeout =
|
97
|
+
default_config.rpcs.purge_queue.timeout = 20.0
|
98
98
|
|
99
|
-
default_config.rpcs.pause_queue.timeout =
|
99
|
+
default_config.rpcs.pause_queue.timeout = 20.0
|
100
100
|
|
101
|
-
default_config.rpcs.resume_queue.timeout =
|
101
|
+
default_config.rpcs.resume_queue.timeout = 20.0
|
102
102
|
|
103
|
-
default_config.rpcs.get_iam_policy.timeout =
|
103
|
+
default_config.rpcs.get_iam_policy.timeout = 20.0
|
104
104
|
default_config.rpcs.get_iam_policy.retry_policy = {
|
105
105
|
initial_delay: 0.1,
|
106
106
|
max_delay: 10.0,
|
107
107
|
multiplier: 1.3,
|
108
|
-
retry_codes: [
|
108
|
+
retry_codes: [4, 14]
|
109
109
|
}
|
110
110
|
|
111
|
-
default_config.rpcs.set_iam_policy.timeout =
|
111
|
+
default_config.rpcs.set_iam_policy.timeout = 20.0
|
112
112
|
|
113
|
-
default_config.rpcs.test_iam_permissions.timeout =
|
113
|
+
default_config.rpcs.test_iam_permissions.timeout = 20.0
|
114
114
|
default_config.rpcs.test_iam_permissions.retry_policy = {
|
115
115
|
initial_delay: 0.1,
|
116
116
|
max_delay: 10.0,
|
117
117
|
multiplier: 1.3,
|
118
|
-
retry_codes: [
|
118
|
+
retry_codes: [4, 14]
|
119
119
|
}
|
120
120
|
|
121
|
-
default_config.rpcs.list_tasks.timeout =
|
121
|
+
default_config.rpcs.list_tasks.timeout = 20.0
|
122
122
|
default_config.rpcs.list_tasks.retry_policy = {
|
123
123
|
initial_delay: 0.1,
|
124
124
|
max_delay: 10.0,
|
125
125
|
multiplier: 1.3,
|
126
|
-
retry_codes: [
|
126
|
+
retry_codes: [4, 14]
|
127
127
|
}
|
128
128
|
|
129
|
-
default_config.rpcs.get_task.timeout =
|
129
|
+
default_config.rpcs.get_task.timeout = 20.0
|
130
130
|
default_config.rpcs.get_task.retry_policy = {
|
131
131
|
initial_delay: 0.1,
|
132
132
|
max_delay: 10.0,
|
133
133
|
multiplier: 1.3,
|
134
|
-
retry_codes: [
|
134
|
+
retry_codes: [4, 14]
|
135
135
|
}
|
136
136
|
|
137
|
-
default_config.rpcs.create_task.timeout =
|
137
|
+
default_config.rpcs.create_task.timeout = 20.0
|
138
138
|
|
139
|
-
default_config.rpcs.delete_task.timeout =
|
139
|
+
default_config.rpcs.delete_task.timeout = 20.0
|
140
140
|
default_config.rpcs.delete_task.retry_policy = {
|
141
141
|
initial_delay: 0.1,
|
142
142
|
max_delay: 10.0,
|
143
143
|
multiplier: 1.3,
|
144
|
-
retry_codes: [
|
144
|
+
retry_codes: [4, 14]
|
145
145
|
}
|
146
146
|
|
147
|
-
default_config.rpcs.run_task.timeout =
|
147
|
+
default_config.rpcs.run_task.timeout = 20.0
|
148
148
|
|
149
149
|
default_config
|
150
150
|
end
|
@@ -240,7 +240,7 @@ module Google
|
|
240
240
|
# @param options [::Gapic::CallOptions, ::Hash]
|
241
241
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
242
242
|
#
|
243
|
-
# @overload list_queues(parent: nil, filter: nil, page_size: nil, page_token: nil)
|
243
|
+
# @overload list_queues(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil)
|
244
244
|
# Pass arguments to `list_queues` via keyword arguments. Note that at
|
245
245
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
246
246
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -277,6 +277,11 @@ module Google
|
|
277
277
|
# from the previous call to {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client#list_queues ListQueues}
|
278
278
|
# method. It is an error to switch the value of the
|
279
279
|
# {::Google::Cloud::Tasks::V2beta3::ListQueuesRequest#filter filter} while iterating through pages.
|
280
|
+
# @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
|
281
|
+
# Optional. Read mask is used for a more granular control over what the API returns.
|
282
|
+
# If the mask is not present all fields will be returned except
|
283
|
+
# [Queue.stats]. [Queue.stats] will be returned only if it was explicitly
|
284
|
+
# specified in the mask.
|
280
285
|
#
|
281
286
|
# @yield [response, operation] Access the result along with the RPC operation
|
282
287
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Tasks::V2beta3::Queue>]
|
@@ -337,7 +342,7 @@ module Google
|
|
337
342
|
# @param options [::Gapic::CallOptions, ::Hash]
|
338
343
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
339
344
|
#
|
340
|
-
# @overload get_queue(name: nil)
|
345
|
+
# @overload get_queue(name: nil, read_mask: nil)
|
341
346
|
# Pass arguments to `get_queue` via keyword arguments. Note that at
|
342
347
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
343
348
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -345,6 +350,11 @@ module Google
|
|
345
350
|
# @param name [::String]
|
346
351
|
# Required. The resource name of the queue. For example:
|
347
352
|
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
|
353
|
+
# @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
|
354
|
+
# Optional. Read mask is used for a more granular control over what the API returns.
|
355
|
+
# If the mask is not present all fields will be returned except
|
356
|
+
# [Queue.stats]. [Queue.stats] will be returned only if it was explicitly
|
357
|
+
# specified in the mask.
|
348
358
|
#
|
349
359
|
# @yield [response, operation] Access the result along with the RPC operation
|
350
360
|
# @yieldparam response [::Google::Cloud::Tasks::V2beta3::Queue]
|
@@ -1675,7 +1685,7 @@ module Google
|
|
1675
1685
|
|
1676
1686
|
config_attr :endpoint, "cloudtasks.googleapis.com", ::String
|
1677
1687
|
config_attr :credentials, nil do |value|
|
1678
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1688
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1679
1689
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
1680
1690
|
allowed.any? { |klass| klass === value }
|
1681
1691
|
end
|
@@ -1715,7 +1725,7 @@ module Google
|
|
1715
1725
|
# Each configuration object is of type `Gapic::Config::Method` and includes
|
1716
1726
|
# the following configuration fields:
|
1717
1727
|
#
|
1718
|
-
# * `timeout` (*type:* `Numeric`) - The call timeout in
|
1728
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
1719
1729
|
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
|
1720
1730
|
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
1721
1731
|
# include the following keys:
|
@@ -20,6 +20,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
20
20
|
optional :filter, :string, 2
|
21
21
|
optional :page_size, :int32, 3
|
22
22
|
optional :page_token, :string, 4
|
23
|
+
optional :read_mask, :message, 5, "google.protobuf.FieldMask"
|
23
24
|
end
|
24
25
|
add_message "google.cloud.tasks.v2beta3.ListQueuesResponse" do
|
25
26
|
repeated :queues, :message, 1, "google.cloud.tasks.v2beta3.Queue"
|
@@ -27,6 +28,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
27
28
|
end
|
28
29
|
add_message "google.cloud.tasks.v2beta3.GetQueueRequest" do
|
29
30
|
optional :name, :string, 1
|
31
|
+
optional :read_mask, :message, 2, "google.protobuf.FieldMask"
|
30
32
|
end
|
31
33
|
add_message "google.cloud.tasks.v2beta3.CreateQueueRequest" do
|
32
34
|
optional :parent, :string, 1
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/cloud/tasks/v2beta3/cloudtasks.proto for package 'google.cloud.tasks.v2beta3'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2020 Google LLC
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -15,7 +15,6 @@
|
|
15
15
|
# See the License for the specific language governing permissions and
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
|
-
#
|
19
18
|
|
20
19
|
require 'grpc'
|
21
20
|
require 'google/cloud/tasks/v2beta3/cloudtasks_pb'
|
@@ -38,9 +37,9 @@ module Google
|
|
38
37
|
# Lists queues.
|
39
38
|
#
|
40
39
|
# Queues are returned in lexicographical order.
|
41
|
-
rpc :ListQueues, ListQueuesRequest, ListQueuesResponse
|
40
|
+
rpc :ListQueues, ::Google::Cloud::Tasks::V2beta3::ListQueuesRequest, ::Google::Cloud::Tasks::V2beta3::ListQueuesResponse
|
42
41
|
# Gets a queue.
|
43
|
-
rpc :GetQueue, GetQueueRequest, Queue
|
42
|
+
rpc :GetQueue, ::Google::Cloud::Tasks::V2beta3::GetQueueRequest, ::Google::Cloud::Tasks::V2beta3::Queue
|
44
43
|
# Creates a queue.
|
45
44
|
#
|
46
45
|
# Queues created with this method allow tasks to live for a maximum of 31
|
@@ -53,7 +52,7 @@ module Google
|
|
53
52
|
# [Overview of Queue Management and
|
54
53
|
# queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
|
55
54
|
# this method.
|
56
|
-
rpc :CreateQueue, CreateQueueRequest, Queue
|
55
|
+
rpc :CreateQueue, ::Google::Cloud::Tasks::V2beta3::CreateQueueRequest, ::Google::Cloud::Tasks::V2beta3::Queue
|
57
56
|
# Updates a queue.
|
58
57
|
#
|
59
58
|
# This method creates the queue if it does not exist and updates
|
@@ -69,7 +68,7 @@ module Google
|
|
69
68
|
# [Overview of Queue Management and
|
70
69
|
# queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
|
71
70
|
# this method.
|
72
|
-
rpc :UpdateQueue, UpdateQueueRequest, Queue
|
71
|
+
rpc :UpdateQueue, ::Google::Cloud::Tasks::V2beta3::UpdateQueueRequest, ::Google::Cloud::Tasks::V2beta3::Queue
|
73
72
|
# Deletes a queue.
|
74
73
|
#
|
75
74
|
# This command will delete the queue even if it has tasks in it.
|
@@ -83,14 +82,14 @@ module Google
|
|
83
82
|
# [Overview of Queue Management and
|
84
83
|
# queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
|
85
84
|
# this method.
|
86
|
-
rpc :DeleteQueue, DeleteQueueRequest, Google::Protobuf::Empty
|
85
|
+
rpc :DeleteQueue, ::Google::Cloud::Tasks::V2beta3::DeleteQueueRequest, ::Google::Protobuf::Empty
|
87
86
|
# Purges a queue by deleting all of its tasks.
|
88
87
|
#
|
89
88
|
# All tasks created before this method is called are permanently deleted.
|
90
89
|
#
|
91
90
|
# Purge operations can take up to one minute to take effect. Tasks
|
92
91
|
# might be dispatched before the purge takes effect. A purge is irreversible.
|
93
|
-
rpc :PurgeQueue, PurgeQueueRequest, Queue
|
92
|
+
rpc :PurgeQueue, ::Google::Cloud::Tasks::V2beta3::PurgeQueueRequest, ::Google::Cloud::Tasks::V2beta3::Queue
|
94
93
|
# Pauses the queue.
|
95
94
|
#
|
96
95
|
# If a queue is paused then the system will stop dispatching tasks
|
@@ -98,7 +97,7 @@ module Google
|
|
98
97
|
# [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue]. Tasks can still be added
|
99
98
|
# when the queue is paused. A queue is paused if its
|
100
99
|
# [state][google.cloud.tasks.v2beta3.Queue.state] is [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED].
|
101
|
-
rpc :PauseQueue, PauseQueueRequest, Queue
|
100
|
+
rpc :PauseQueue, ::Google::Cloud::Tasks::V2beta3::PauseQueueRequest, ::Google::Cloud::Tasks::V2beta3::Queue
|
102
101
|
# Resume a queue.
|
103
102
|
#
|
104
103
|
# This method resumes a queue after it has been
|
@@ -112,7 +111,7 @@ module Google
|
|
112
111
|
# queues, follow the 500/50/5 pattern described in
|
113
112
|
# [Managing Cloud Tasks Scaling
|
114
113
|
# Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
|
115
|
-
rpc :ResumeQueue, ResumeQueueRequest, Queue
|
114
|
+
rpc :ResumeQueue, ::Google::Cloud::Tasks::V2beta3::ResumeQueueRequest, ::Google::Cloud::Tasks::V2beta3::Queue
|
116
115
|
# Gets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue].
|
117
116
|
# Returns an empty policy if the resource exists and does not have a policy
|
118
117
|
# set.
|
@@ -122,7 +121,7 @@ module Google
|
|
122
121
|
# resource parent:
|
123
122
|
#
|
124
123
|
# * `cloudtasks.queues.getIamPolicy`
|
125
|
-
rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
|
124
|
+
rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
|
126
125
|
# Sets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. Replaces any existing
|
127
126
|
# policy.
|
128
127
|
#
|
@@ -134,7 +133,7 @@ module Google
|
|
134
133
|
# resource parent:
|
135
134
|
#
|
136
135
|
# * `cloudtasks.queues.setIamPolicy`
|
137
|
-
rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
|
136
|
+
rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
|
138
137
|
# Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta3.Queue].
|
139
138
|
# If the resource does not exist, this will return an empty set of
|
140
139
|
# permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error.
|
@@ -142,7 +141,7 @@ module Google
|
|
142
141
|
# Note: This operation is designed to be used for building permission-aware
|
143
142
|
# UIs and command-line tools, not for authorization checking. This operation
|
144
143
|
# may "fail open" without warning.
|
145
|
-
rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
|
144
|
+
rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
|
146
145
|
# Lists the tasks in a queue.
|
147
146
|
#
|
148
147
|
# By default, only the [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC] view is retrieved
|
@@ -152,21 +151,21 @@ module Google
|
|
152
151
|
#
|
153
152
|
# The tasks may be returned in any order. The ordering may change at any
|
154
153
|
# time.
|
155
|
-
rpc :ListTasks, ListTasksRequest, ListTasksResponse
|
154
|
+
rpc :ListTasks, ::Google::Cloud::Tasks::V2beta3::ListTasksRequest, ::Google::Cloud::Tasks::V2beta3::ListTasksResponse
|
156
155
|
# Gets a task.
|
157
|
-
rpc :GetTask, GetTaskRequest, Task
|
156
|
+
rpc :GetTask, ::Google::Cloud::Tasks::V2beta3::GetTaskRequest, ::Google::Cloud::Tasks::V2beta3::Task
|
158
157
|
# Creates a task and adds it to a queue.
|
159
158
|
#
|
160
159
|
# Tasks cannot be updated after creation; there is no UpdateTask command.
|
161
160
|
#
|
162
161
|
# * The maximum task size is 100KB.
|
163
|
-
rpc :CreateTask, CreateTaskRequest, Task
|
162
|
+
rpc :CreateTask, ::Google::Cloud::Tasks::V2beta3::CreateTaskRequest, ::Google::Cloud::Tasks::V2beta3::Task
|
164
163
|
# Deletes a task.
|
165
164
|
#
|
166
165
|
# A task can be deleted if it is scheduled or dispatched. A task
|
167
166
|
# cannot be deleted if it has executed successfully or permanently
|
168
167
|
# failed.
|
169
|
-
rpc :DeleteTask, DeleteTaskRequest, Google::Protobuf::Empty
|
168
|
+
rpc :DeleteTask, ::Google::Cloud::Tasks::V2beta3::DeleteTaskRequest, ::Google::Protobuf::Empty
|
170
169
|
# Forces a task to run now.
|
171
170
|
#
|
172
171
|
# When this method is called, Cloud Tasks will dispatch the task, even if
|
@@ -191,7 +190,7 @@ module Google
|
|
191
190
|
# [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] returns
|
192
191
|
# [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a
|
193
192
|
# task that has already succeeded or permanently failed.
|
194
|
-
rpc :RunTask, RunTaskRequest, Task
|
193
|
+
rpc :RunTask, ::Google::Cloud::Tasks::V2beta3::RunTaskRequest, ::Google::Cloud::Tasks::V2beta3::Task
|
195
194
|
end
|
196
195
|
|
197
196
|
Stub = Service.rpc_stub_class
|
@@ -3,6 +3,7 @@
|
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
+
require 'google/api/field_behavior_pb'
|
6
7
|
require 'google/api/resource_pb'
|
7
8
|
require 'google/cloud/tasks/v2beta3/target_pb'
|
8
9
|
require 'google/protobuf/duration_pb'
|
@@ -16,7 +17,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
16
17
|
optional :retry_config, :message, 5, "google.cloud.tasks.v2beta3.RetryConfig"
|
17
18
|
optional :state, :enum, 6, "google.cloud.tasks.v2beta3.Queue.State"
|
18
19
|
optional :purge_time, :message, 7, "google.protobuf.Timestamp"
|
20
|
+
optional :task_ttl, :message, 8, "google.protobuf.Duration"
|
21
|
+
optional :tombstone_ttl, :message, 9, "google.protobuf.Duration"
|
19
22
|
optional :stackdriver_logging_config, :message, 10, "google.cloud.tasks.v2beta3.StackdriverLoggingConfig"
|
23
|
+
optional :type, :enum, 11, "google.cloud.tasks.v2beta3.Queue.Type"
|
24
|
+
optional :stats, :message, 12, "google.cloud.tasks.v2beta3.QueueStats"
|
20
25
|
oneof :queue_type do
|
21
26
|
optional :app_engine_http_queue, :message, 3, "google.cloud.tasks.v2beta3.AppEngineHttpQueue"
|
22
27
|
end
|
@@ -27,6 +32,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
27
32
|
value :PAUSED, 2
|
28
33
|
value :DISABLED, 3
|
29
34
|
end
|
35
|
+
add_enum "google.cloud.tasks.v2beta3.Queue.Type" do
|
36
|
+
value :TYPE_UNSPECIFIED, 0
|
37
|
+
value :PULL, 1
|
38
|
+
value :PUSH, 2
|
39
|
+
end
|
30
40
|
add_message "google.cloud.tasks.v2beta3.RateLimits" do
|
31
41
|
optional :max_dispatches_per_second, :double, 1
|
32
42
|
optional :max_burst_size, :int32, 2
|
@@ -42,6 +52,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
42
52
|
add_message "google.cloud.tasks.v2beta3.StackdriverLoggingConfig" do
|
43
53
|
optional :sampling_ratio, :double, 1
|
44
54
|
end
|
55
|
+
add_message "google.cloud.tasks.v2beta3.QueueStats" do
|
56
|
+
optional :tasks_count, :int64, 1
|
57
|
+
optional :oldest_estimated_arrival_time, :message, 2, "google.protobuf.Timestamp"
|
58
|
+
optional :executed_last_minute_count, :int64, 3
|
59
|
+
optional :concurrent_dispatches_count, :int64, 4
|
60
|
+
optional :effective_execution_rate, :double, 5
|
61
|
+
end
|
45
62
|
end
|
46
63
|
end
|
47
64
|
|
@@ -51,9 +68,11 @@ module Google
|
|
51
68
|
module V2beta3
|
52
69
|
Queue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.Queue").msgclass
|
53
70
|
Queue::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.Queue.State").enummodule
|
71
|
+
Queue::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.Queue.Type").enummodule
|
54
72
|
RateLimits = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.RateLimits").msgclass
|
55
73
|
RetryConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.RetryConfig").msgclass
|
56
74
|
StackdriverLoggingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.StackdriverLoggingConfig").msgclass
|
75
|
+
QueueStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.QueueStats").msgclass
|
57
76
|
end
|
58
77
|
end
|
59
78
|
end
|
@@ -6,6 +6,10 @@ require 'google/protobuf'
|
|
6
6
|
require 'google/api/annotations_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("google/cloud/tasks/v2beta3/target.proto", :syntax => :proto3) do
|
9
|
+
add_message "google.cloud.tasks.v2beta3.PullMessage" do
|
10
|
+
optional :payload, :bytes, 1
|
11
|
+
optional :tag, :string, 2
|
12
|
+
end
|
9
13
|
add_message "google.cloud.tasks.v2beta3.HttpRequest" do
|
10
14
|
optional :url, :string, 1
|
11
15
|
optional :http_method, :enum, 2, "google.cloud.tasks.v2beta3.HttpMethod"
|
@@ -57,6 +61,7 @@ module Google
|
|
57
61
|
module Cloud
|
58
62
|
module Tasks
|
59
63
|
module V2beta3
|
64
|
+
PullMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.PullMessage").msgclass
|
60
65
|
HttpRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.HttpRequest").msgclass
|
61
66
|
AppEngineHttpQueue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.AppEngineHttpQueue").msgclass
|
62
67
|
AppEngineHttpRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.AppEngineHttpRequest").msgclass
|
@@ -24,6 +24,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
24
24
|
oneof :payload_type do
|
25
25
|
optional :app_engine_http_request, :message, 3, "google.cloud.tasks.v2beta3.AppEngineHttpRequest"
|
26
26
|
optional :http_request, :message, 11, "google.cloud.tasks.v2beta3.HttpRequest"
|
27
|
+
optional :pull_message, :message, 13, "google.cloud.tasks.v2beta3.PullMessage"
|
27
28
|
end
|
28
29
|
end
|
29
30
|
add_enum "google.cloud.tasks.v2beta3.Task.View" do
|
@@ -43,12 +43,12 @@ module Google
|
|
43
43
|
#
|
44
44
|
# The ResourceDescriptor Yaml config will look like:
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
46
|
+
# resources:
|
47
|
+
# - type: "pubsub.googleapis.com/Topic"
|
48
|
+
# name_descriptor:
|
49
|
+
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
+
# parent_name_extractor: "projects/{project}"
|
52
52
|
#
|
53
53
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
54
|
# live under multiple parents.
|
@@ -183,15 +183,24 @@ module Google
|
|
183
183
|
# }
|
184
184
|
# @!attribute [rw] plural
|
185
185
|
# @return [::String]
|
186
|
-
# The plural name used in the resource name, such as
|
187
|
-
# the name of 'projects/\\{project}'
|
188
|
-
#
|
186
|
+
# The plural name used in the resource name and permission names, such as
|
187
|
+
# 'projects' for the resource name of 'projects/\\{project}' and the permission
|
188
|
+
# name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
|
189
|
+
# concept of the `plural` field in k8s CRD spec
|
189
190
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
191
|
+
#
|
192
|
+
# Note: The plural form is required even for singleton resources. See
|
193
|
+
# https://aip.dev/156
|
190
194
|
# @!attribute [rw] singular
|
191
195
|
# @return [::String]
|
192
196
|
# The same concept of the `singular` field in k8s CRD spec
|
193
197
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
194
198
|
# Such as "project" for the `resourcemanager.googleapis.com/Project` type.
|
199
|
+
# @!attribute [rw] style
|
200
|
+
# @return [::Array<::Google::Api::ResourceDescriptor::Style>]
|
201
|
+
# Style flag(s) for this resource.
|
202
|
+
# These indicate that a resource is expected to conform to a given
|
203
|
+
# style. See the specific style flags for additional information.
|
195
204
|
class ResourceDescriptor
|
196
205
|
include ::Google::Protobuf::MessageExts
|
197
206
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -211,6 +220,22 @@ module Google
|
|
211
220
|
# that from being necessary once there are multiple patterns.)
|
212
221
|
FUTURE_MULTI_PATTERN = 2
|
213
222
|
end
|
223
|
+
|
224
|
+
# A flag representing a specific style that a resource claims to conform to.
|
225
|
+
module Style
|
226
|
+
# The unspecified value. Do not use.
|
227
|
+
STYLE_UNSPECIFIED = 0
|
228
|
+
|
229
|
+
# This resource is intended to be "declarative-friendly".
|
230
|
+
#
|
231
|
+
# Declarative-friendly resources must be more strictly consistent, and
|
232
|
+
# setting this to true communicates to tools that this resource should
|
233
|
+
# adhere to declarative-friendly expectations.
|
234
|
+
#
|
235
|
+
# Note: This is used by the API linter (linter.aip.dev) to enable
|
236
|
+
# additional checks.
|
237
|
+
DECLARATIVE_FRIENDLY = 1
|
238
|
+
end
|
214
239
|
end
|
215
240
|
|
216
241
|
# Defines a proto annotation that describes a string field that refers to
|
@@ -226,6 +251,17 @@ module Google
|
|
226
251
|
# type: "pubsub.googleapis.com/Topic"
|
227
252
|
# }];
|
228
253
|
# }
|
254
|
+
#
|
255
|
+
# Occasionally, a field may reference an arbitrary resource. In this case,
|
256
|
+
# APIs use the special value * in their resource reference.
|
257
|
+
#
|
258
|
+
# Example:
|
259
|
+
#
|
260
|
+
# message GetIamPolicyRequest {
|
261
|
+
# string resource = 2 [(google.api.resource_reference) = {
|
262
|
+
# type: "*"
|
263
|
+
# }];
|
264
|
+
# }
|
229
265
|
# @!attribute [rw] child_type
|
230
266
|
# @return [::String]
|
231
267
|
# The resource type of a child collection that the annotated field
|
@@ -234,11 +270,11 @@ module Google
|
|
234
270
|
#
|
235
271
|
# Example:
|
236
272
|
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
#
|
241
|
-
#
|
273
|
+
# message ListLogEntriesRequest {
|
274
|
+
# string parent = 1 [(google.api.resource_reference) = {
|
275
|
+
# child_type: "logging.googleapis.com/LogEntry"
|
276
|
+
# };
|
277
|
+
# }
|
242
278
|
class ResourceReference
|
243
279
|
include ::Google::Protobuf::MessageExts
|
244
280
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -58,6 +58,12 @@ module Google
|
|
58
58
|
# from the previous call to {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client#list_queues ListQueues}
|
59
59
|
# method. It is an error to switch the value of the
|
60
60
|
# {::Google::Cloud::Tasks::V2beta3::ListQueuesRequest#filter filter} while iterating through pages.
|
61
|
+
# @!attribute [rw] read_mask
|
62
|
+
# @return [::Google::Protobuf::FieldMask]
|
63
|
+
# Optional. Read mask is used for a more granular control over what the API returns.
|
64
|
+
# If the mask is not present all fields will be returned except
|
65
|
+
# [Queue.stats]. [Queue.stats] will be returned only if it was explicitly
|
66
|
+
# specified in the mask.
|
61
67
|
class ListQueuesRequest
|
62
68
|
include ::Google::Protobuf::MessageExts
|
63
69
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -88,6 +94,12 @@ module Google
|
|
88
94
|
# @return [::String]
|
89
95
|
# Required. The resource name of the queue. For example:
|
90
96
|
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
|
97
|
+
# @!attribute [rw] read_mask
|
98
|
+
# @return [::Google::Protobuf::FieldMask]
|
99
|
+
# Optional. Read mask is used for a more granular control over what the API returns.
|
100
|
+
# If the mask is not present all fields will be returned except
|
101
|
+
# [Queue.stats]. [Queue.stats] will be returned only if it was explicitly
|
102
|
+
# specified in the mask.
|
91
103
|
class GetQueueRequest
|
92
104
|
include ::Google::Protobuf::MessageExts
|
93
105
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -110,11 +110,49 @@ module Google
|
|
110
110
|
#
|
111
111
|
# Purge time will be truncated to the nearest microsecond. Purge
|
112
112
|
# time will be unset if the queue has never been purged.
|
113
|
+
# @!attribute [rw] task_ttl
|
114
|
+
# @return [::Google::Protobuf::Duration]
|
115
|
+
# The maximum amount of time that a task will be retained in
|
116
|
+
# this queue.
|
117
|
+
#
|
118
|
+
# Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
|
119
|
+
# After a task has lived for `task_ttl`, the task will be deleted
|
120
|
+
# regardless of whether it was dispatched or not.
|
121
|
+
#
|
122
|
+
# The `task_ttl` for queues created via queue.yaml/xml is equal to the
|
123
|
+
# maximum duration because there is a
|
124
|
+
# [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
|
125
|
+
# these queues. To view the maximum valid duration, see the documentation for
|
126
|
+
# {::Google::Protobuf::Duration Duration}.
|
127
|
+
# @!attribute [rw] tombstone_ttl
|
128
|
+
# @return [::Google::Protobuf::Duration]
|
129
|
+
# The task tombstone time to live (TTL).
|
130
|
+
#
|
131
|
+
# After a task is deleted or executed, the task's tombstone is
|
132
|
+
# retained for the length of time specified by `tombstone_ttl`.
|
133
|
+
# The tombstone is used by task de-duplication; another task with the same
|
134
|
+
# name can't be created until the tombstone has expired. For more information
|
135
|
+
# about task de-duplication, see the documentation for
|
136
|
+
# {::Google::Cloud::Tasks::V2beta3::CreateTaskRequest#task CreateTaskRequest}.
|
137
|
+
#
|
138
|
+
# Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
|
113
139
|
# @!attribute [rw] stackdriver_logging_config
|
114
140
|
# @return [::Google::Cloud::Tasks::V2beta3::StackdriverLoggingConfig]
|
115
141
|
# Configuration options for writing logs to
|
116
142
|
# [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
|
117
143
|
# field is unset, then no logs are written.
|
144
|
+
# @!attribute [rw] type
|
145
|
+
# @return [::Google::Cloud::Tasks::V2beta3::Queue::Type]
|
146
|
+
# Immutable. The type of a queue (push or pull).
|
147
|
+
#
|
148
|
+
# `Queue.type` is an immutable property of the queue that is set at the queue
|
149
|
+
# creation time. When left unspecified, the default value of `PUSH` is
|
150
|
+
# selected.
|
151
|
+
# @!attribute [r] stats
|
152
|
+
# @return [::Google::Cloud::Tasks::V2beta3::QueueStats]
|
153
|
+
# Output only. The realtime, informational statistics for a queue. In order
|
154
|
+
# to receive the statistics the caller should include this field in the
|
155
|
+
# FieldMask.
|
118
156
|
class Queue
|
119
157
|
include ::Google::Protobuf::MessageExts
|
120
158
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -155,6 +193,18 @@ module Google
|
|
155
193
|
# {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client#delete_queue DeleteQueue}.
|
156
194
|
DISABLED = 3
|
157
195
|
end
|
196
|
+
|
197
|
+
# The type of the queue.
|
198
|
+
module Type
|
199
|
+
# Default value.
|
200
|
+
TYPE_UNSPECIFIED = 0
|
201
|
+
|
202
|
+
# A pull queue.
|
203
|
+
PULL = 1
|
204
|
+
|
205
|
+
# A push queue.
|
206
|
+
PUSH = 2
|
207
|
+
end
|
158
208
|
end
|
159
209
|
|
160
210
|
# Rate limits.
|
@@ -180,7 +230,7 @@ module Google
|
|
180
230
|
# queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate).
|
181
231
|
# @!attribute [rw] max_burst_size
|
182
232
|
# @return [::Integer]
|
183
|
-
#
|
233
|
+
# The max burst size.
|
184
234
|
#
|
185
235
|
# Max burst size limits how fast tasks in queue are processed when
|
186
236
|
# many tasks are in the queue and the rate is high. This field
|
@@ -197,21 +247,21 @@ module Google
|
|
197
247
|
# continuously refilled with new tokens based on
|
198
248
|
# {::Google::Cloud::Tasks::V2beta3::RateLimits#max_dispatches_per_second max_dispatches_per_second}.
|
199
249
|
#
|
200
|
-
#
|
201
|
-
# value of
|
250
|
+
# The default value of `max_burst_size` is picked by Cloud Tasks
|
251
|
+
# based on the value of
|
202
252
|
# {::Google::Cloud::Tasks::V2beta3::RateLimits#max_dispatches_per_second max_dispatches_per_second}.
|
203
253
|
#
|
254
|
+
# The maximum value of `max_burst_size` is 500.
|
255
|
+
#
|
204
256
|
# For App Engine queues that were created or updated using
|
205
257
|
# `queue.yaml/xml`, `max_burst_size` is equal to
|
206
258
|
# [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size).
|
207
|
-
#
|
208
|
-
# {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client#update_queue UpdateQueue} is called on a queue
|
209
|
-
#
|
210
|
-
#
|
211
|
-
# {::Google::Cloud::Tasks::V2beta3::
|
212
|
-
#
|
213
|
-
# {::Google::Cloud::Tasks::V2beta3::RateLimits#max_dispatches_per_second max_dispatches_per_second}
|
214
|
-
# is updated.
|
259
|
+
# If
|
260
|
+
# {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client#update_queue UpdateQueue} is called on a queue without
|
261
|
+
# explicitly setting a value for `max_burst_size`,
|
262
|
+
# `max_burst_size` value will get updated if
|
263
|
+
# {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client#update_queue UpdateQueue} is updating
|
264
|
+
# {::Google::Cloud::Tasks::V2beta3::RateLimits#max_dispatches_per_second max_dispatches_per_second}.
|
215
265
|
# @!attribute [rw] max_concurrent_dispatches
|
216
266
|
# @return [::Integer]
|
217
267
|
# The maximum number of concurrent tasks that Cloud Tasks allows
|
@@ -314,7 +364,7 @@ module Google
|
|
314
364
|
# A task's retry interval starts at
|
315
365
|
# {::Google::Cloud::Tasks::V2beta3::RetryConfig#min_backoff min_backoff}, then doubles
|
316
366
|
# `max_doublings` times, then increases linearly, and finally
|
317
|
-
# retries
|
367
|
+
# retries at intervals of
|
318
368
|
# {::Google::Cloud::Tasks::V2beta3::RetryConfig#max_backoff max_backoff} up to
|
319
369
|
# {::Google::Cloud::Tasks::V2beta3::RetryConfig#max_attempts max_attempts} times.
|
320
370
|
#
|
@@ -352,6 +402,37 @@ module Google
|
|
352
402
|
include ::Google::Protobuf::MessageExts
|
353
403
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
354
404
|
end
|
405
|
+
|
406
|
+
# Statistics for a queue.
|
407
|
+
# @!attribute [r] tasks_count
|
408
|
+
# @return [::Integer]
|
409
|
+
# Output only. An estimation of the number of tasks in the queue, that is, the tasks in
|
410
|
+
# the queue that haven't been executed, the tasks in the queue which the
|
411
|
+
# queue has dispatched but has not yet received a reply for, and the failed
|
412
|
+
# tasks that the queue is retrying.
|
413
|
+
# @!attribute [r] oldest_estimated_arrival_time
|
414
|
+
# @return [::Google::Protobuf::Timestamp]
|
415
|
+
# Output only. An estimation of the nearest time in the future where a task in the queue
|
416
|
+
# is scheduled to be executed.
|
417
|
+
# @!attribute [r] executed_last_minute_count
|
418
|
+
# @return [::Integer]
|
419
|
+
# Output only. The number of tasks that the queue has dispatched and received a reply for
|
420
|
+
# during the last minute. This variable counts both successful and
|
421
|
+
# non-successful executions.
|
422
|
+
# @!attribute [r] concurrent_dispatches_count
|
423
|
+
# @return [::Integer]
|
424
|
+
# Output only. The number of requests that the queue has dispatched but has not received
|
425
|
+
# a reply for yet.
|
426
|
+
# @!attribute [r] effective_execution_rate
|
427
|
+
# @return [::Float]
|
428
|
+
# Output only. The current maximum number of tasks per second executed by the queue.
|
429
|
+
# The maximum value of this variable is controlled by the RateLimits of the
|
430
|
+
# Queue. However, this value could be less to avoid overloading the endpoints
|
431
|
+
# tasks in the queue are targeting.
|
432
|
+
class QueueStats
|
433
|
+
include ::Google::Protobuf::MessageExts
|
434
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
435
|
+
end
|
355
436
|
end
|
356
437
|
end
|
357
438
|
end
|
@@ -21,6 +21,33 @@ module Google
|
|
21
21
|
module Cloud
|
22
22
|
module Tasks
|
23
23
|
module V2beta3
|
24
|
+
# Pull Message.
|
25
|
+
#
|
26
|
+
# This proto can only be used for tasks in a queue which has
|
27
|
+
# {::Google::Cloud::Tasks::V2beta3::Queue#type PULL} type. It currently exists for backwards compatibility with
|
28
|
+
# the App Engine Task Queue SDK. This message type maybe returned with methods
|
29
|
+
# [list][google.cloud.tasks.v2beta3.CloudTask.ListTasks] and
|
30
|
+
# [get][google.cloud.tasks.v2beta3.CloudTask.ListTasks], when the response view
|
31
|
+
# is [FULL][google.cloud.tasks.v2beta3.Task.View.Full].
|
32
|
+
# @!attribute [rw] payload
|
33
|
+
# @return [::String]
|
34
|
+
# A data payload consumed by the worker to execute the task.
|
35
|
+
# @!attribute [rw] tag
|
36
|
+
# @return [::String]
|
37
|
+
# The tasks's tag.
|
38
|
+
#
|
39
|
+
# The tag is less than 500 characters.
|
40
|
+
#
|
41
|
+
# SDK compatibility: Although the SDK allows tags to be either
|
42
|
+
# string or
|
43
|
+
# [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
|
44
|
+
# only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8
|
45
|
+
# encoded, the tag will be empty when the task is returned by Cloud Tasks.
|
46
|
+
class PullMessage
|
47
|
+
include ::Google::Protobuf::MessageExts
|
48
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
49
|
+
end
|
50
|
+
|
24
51
|
# HTTP request.
|
25
52
|
#
|
26
53
|
# The task will be pushed to the worker as an HTTP request. If the worker
|
@@ -188,10 +215,10 @@ module Google
|
|
188
215
|
# delivered to can be set at the queue-level or task-level:
|
189
216
|
#
|
190
217
|
# * If set,
|
191
|
-
#
|
192
|
-
#
|
193
|
-
#
|
194
|
-
#
|
218
|
+
# {::Google::Cloud::Tasks::V2beta3::AppEngineHttpQueue#app_engine_routing_override app_engine_routing_override}
|
219
|
+
# is used for all tasks in the queue, no matter what the setting
|
220
|
+
# is for the
|
221
|
+
# {::Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest#app_engine_routing task-level app_engine_routing}.
|
195
222
|
#
|
196
223
|
#
|
197
224
|
# The `url` that the task will be sent to is:
|
@@ -225,14 +252,11 @@ module Google
|
|
225
252
|
# The HTTP method to use for the request. The default is POST.
|
226
253
|
#
|
227
254
|
# The app's request handler for the task's target URL must be able to handle
|
228
|
-
# HTTP requests with this http_method, otherwise the task attempt
|
229
|
-
#
|
230
|
-
# [Writing a push task request
|
255
|
+
# HTTP requests with this http_method, otherwise the task attempt fails with
|
256
|
+
# error code 405 (Method Not Allowed). See [Writing a push task request
|
231
257
|
# handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
|
232
|
-
# and the documentation for
|
233
|
-
#
|
234
|
-
# [Python Request
|
235
|
-
# Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/requesthandlerclass).
|
258
|
+
# and the App Engine documentation for your runtime on [How Requests are
|
259
|
+
# Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled).
|
236
260
|
# @!attribute [rw] app_engine_routing
|
237
261
|
# @return [::Google::Cloud::Tasks::V2beta3::AppEngineRouting]
|
238
262
|
# Task-level setting for App Engine routing.
|
@@ -54,6 +54,15 @@ module Google
|
|
54
54
|
# HTTP request that is sent to the task's target.
|
55
55
|
#
|
56
56
|
# An HTTP task is a task that has {::Google::Cloud::Tasks::V2beta3::HttpRequest HttpRequest} set.
|
57
|
+
# @!attribute [rw] pull_message
|
58
|
+
# @return [::Google::Cloud::Tasks::V2beta3::PullMessage]
|
59
|
+
# Pull Message contained in a task in a {::Google::Cloud::Tasks::V2beta3::Queue#type PULL} queue type. This
|
60
|
+
# payload type cannot be explicitly set through Cloud Tasks API. Its
|
61
|
+
# purpose, currently is to provide backward compatibility with App Engine
|
62
|
+
# Task Queue
|
63
|
+
# [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/)
|
64
|
+
# queues to provide a way to inspect contents of pull tasks through the
|
65
|
+
# {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client#get_task CloudTasks.GetTask}.
|
57
66
|
# @!attribute [rw] schedule_time
|
58
67
|
# @return [::Google::Protobuf::Timestamp]
|
59
68
|
# The time when the task is scheduled to be attempted.
|
@@ -73,8 +82,8 @@ module Google
|
|
73
82
|
# is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
|
74
83
|
# task according to the {::Google::Cloud::Tasks::V2beta3::RetryConfig RetryConfig}.
|
75
84
|
#
|
76
|
-
# Note that when the request is cancelled, Cloud Tasks will stop
|
77
|
-
# the response, but whether the worker stops processing depends on the
|
85
|
+
# Note that when the request is cancelled, Cloud Tasks will stop listening
|
86
|
+
# for the response, but whether the worker stops processing depends on the
|
78
87
|
# worker. For example, if the worker is stuck, it may not react to cancelled
|
79
88
|
# requests.
|
80
89
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-tasks-v2beta3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: google-cloud-errors
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -231,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
231
231
|
- !ruby/object:Gem::Version
|
232
232
|
version: '0'
|
233
233
|
requirements: []
|
234
|
-
rubygems_version: 3.
|
234
|
+
rubygems_version: 3.2.6
|
235
235
|
signing_key:
|
236
236
|
specification_version: 4
|
237
237
|
summary: API Client library for the Cloud Tasks V2beta3 API
|