google-cloud-tasks-v2beta3 0.3.2 → 0.3.3
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 +1 -1
- data/lib/google/cloud/tasks/v2beta3/cloudtasks_services_pb.rb +16 -16
- data/lib/google/cloud/tasks/v2beta3/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +50 -14
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 877558468768c807f4647821f553ea218240715e11017d574e2524996b03c713
|
4
|
+
data.tar.gz: 80b23525292180f27dae12489473698d7c9185d38677a91a7ea408fbfe04951c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aeddcb3813130fe8283861ef72d2d77a70839ec276a19a4a6ab04de51bd8f97ea6681740aa2fb8b88162da59f46028bd407c01d1681c58c70a0c69e9d8d08967
|
7
|
+
data.tar.gz: 9ccb4b751e375c242b487de0f004aa520ee83d46fc2a6e6e880a0923f76d9e7af6f1349676f034429f15b64e649025f43da0a55866456e47bbc68b7b8de02066
|
@@ -1715,7 +1715,7 @@ module Google
|
|
1715
1715
|
# Each configuration object is of type `Gapic::Config::Method` and includes
|
1716
1716
|
# the following configuration fields:
|
1717
1717
|
#
|
1718
|
-
# * `timeout` (*type:* `Numeric`) - The call timeout in
|
1718
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
1719
1719
|
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
|
1720
1720
|
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
1721
1721
|
# include the following keys:
|
@@ -37,9 +37,9 @@ module Google
|
|
37
37
|
# Lists queues.
|
38
38
|
#
|
39
39
|
# Queues are returned in lexicographical order.
|
40
|
-
rpc :ListQueues, Google::Cloud::Tasks::V2beta3::ListQueuesRequest, Google::Cloud::Tasks::V2beta3::ListQueuesResponse
|
40
|
+
rpc :ListQueues, ::Google::Cloud::Tasks::V2beta3::ListQueuesRequest, ::Google::Cloud::Tasks::V2beta3::ListQueuesResponse
|
41
41
|
# Gets a queue.
|
42
|
-
rpc :GetQueue, Google::Cloud::Tasks::V2beta3::GetQueueRequest, Google::Cloud::Tasks::V2beta3::Queue
|
42
|
+
rpc :GetQueue, ::Google::Cloud::Tasks::V2beta3::GetQueueRequest, ::Google::Cloud::Tasks::V2beta3::Queue
|
43
43
|
# Creates a queue.
|
44
44
|
#
|
45
45
|
# Queues created with this method allow tasks to live for a maximum of 31
|
@@ -52,7 +52,7 @@ module Google
|
|
52
52
|
# [Overview of Queue Management and
|
53
53
|
# queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
|
54
54
|
# this method.
|
55
|
-
rpc :CreateQueue, Google::Cloud::Tasks::V2beta3::CreateQueueRequest, Google::Cloud::Tasks::V2beta3::Queue
|
55
|
+
rpc :CreateQueue, ::Google::Cloud::Tasks::V2beta3::CreateQueueRequest, ::Google::Cloud::Tasks::V2beta3::Queue
|
56
56
|
# Updates a queue.
|
57
57
|
#
|
58
58
|
# This method creates the queue if it does not exist and updates
|
@@ -68,7 +68,7 @@ module Google
|
|
68
68
|
# [Overview of Queue Management and
|
69
69
|
# queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
|
70
70
|
# this method.
|
71
|
-
rpc :UpdateQueue, Google::Cloud::Tasks::V2beta3::UpdateQueueRequest, Google::Cloud::Tasks::V2beta3::Queue
|
71
|
+
rpc :UpdateQueue, ::Google::Cloud::Tasks::V2beta3::UpdateQueueRequest, ::Google::Cloud::Tasks::V2beta3::Queue
|
72
72
|
# Deletes a queue.
|
73
73
|
#
|
74
74
|
# This command will delete the queue even if it has tasks in it.
|
@@ -82,14 +82,14 @@ module Google
|
|
82
82
|
# [Overview of Queue Management and
|
83
83
|
# queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
|
84
84
|
# this method.
|
85
|
-
rpc :DeleteQueue, Google::Cloud::Tasks::V2beta3::DeleteQueueRequest, Google::Protobuf::Empty
|
85
|
+
rpc :DeleteQueue, ::Google::Cloud::Tasks::V2beta3::DeleteQueueRequest, ::Google::Protobuf::Empty
|
86
86
|
# Purges a queue by deleting all of its tasks.
|
87
87
|
#
|
88
88
|
# All tasks created before this method is called are permanently deleted.
|
89
89
|
#
|
90
90
|
# Purge operations can take up to one minute to take effect. Tasks
|
91
91
|
# might be dispatched before the purge takes effect. A purge is irreversible.
|
92
|
-
rpc :PurgeQueue, Google::Cloud::Tasks::V2beta3::PurgeQueueRequest, Google::Cloud::Tasks::V2beta3::Queue
|
92
|
+
rpc :PurgeQueue, ::Google::Cloud::Tasks::V2beta3::PurgeQueueRequest, ::Google::Cloud::Tasks::V2beta3::Queue
|
93
93
|
# Pauses the queue.
|
94
94
|
#
|
95
95
|
# If a queue is paused then the system will stop dispatching tasks
|
@@ -97,7 +97,7 @@ module Google
|
|
97
97
|
# [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue]. Tasks can still be added
|
98
98
|
# when the queue is paused. A queue is paused if its
|
99
99
|
# [state][google.cloud.tasks.v2beta3.Queue.state] is [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED].
|
100
|
-
rpc :PauseQueue, Google::Cloud::Tasks::V2beta3::PauseQueueRequest, Google::Cloud::Tasks::V2beta3::Queue
|
100
|
+
rpc :PauseQueue, ::Google::Cloud::Tasks::V2beta3::PauseQueueRequest, ::Google::Cloud::Tasks::V2beta3::Queue
|
101
101
|
# Resume a queue.
|
102
102
|
#
|
103
103
|
# This method resumes a queue after it has been
|
@@ -111,7 +111,7 @@ module Google
|
|
111
111
|
# queues, follow the 500/50/5 pattern described in
|
112
112
|
# [Managing Cloud Tasks Scaling
|
113
113
|
# Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
|
114
|
-
rpc :ResumeQueue, Google::Cloud::Tasks::V2beta3::ResumeQueueRequest, Google::Cloud::Tasks::V2beta3::Queue
|
114
|
+
rpc :ResumeQueue, ::Google::Cloud::Tasks::V2beta3::ResumeQueueRequest, ::Google::Cloud::Tasks::V2beta3::Queue
|
115
115
|
# Gets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue].
|
116
116
|
# Returns an empty policy if the resource exists and does not have a policy
|
117
117
|
# set.
|
@@ -121,7 +121,7 @@ module Google
|
|
121
121
|
# resource parent:
|
122
122
|
#
|
123
123
|
# * `cloudtasks.queues.getIamPolicy`
|
124
|
-
rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
|
124
|
+
rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
|
125
125
|
# Sets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. Replaces any existing
|
126
126
|
# policy.
|
127
127
|
#
|
@@ -133,7 +133,7 @@ module Google
|
|
133
133
|
# resource parent:
|
134
134
|
#
|
135
135
|
# * `cloudtasks.queues.setIamPolicy`
|
136
|
-
rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
|
136
|
+
rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
|
137
137
|
# Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta3.Queue].
|
138
138
|
# If the resource does not exist, this will return an empty set of
|
139
139
|
# permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error.
|
@@ -141,7 +141,7 @@ module Google
|
|
141
141
|
# Note: This operation is designed to be used for building permission-aware
|
142
142
|
# UIs and command-line tools, not for authorization checking. This operation
|
143
143
|
# may "fail open" without warning.
|
144
|
-
rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
|
144
|
+
rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
|
145
145
|
# Lists the tasks in a queue.
|
146
146
|
#
|
147
147
|
# By default, only the [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC] view is retrieved
|
@@ -151,21 +151,21 @@ module Google
|
|
151
151
|
#
|
152
152
|
# The tasks may be returned in any order. The ordering may change at any
|
153
153
|
# time.
|
154
|
-
rpc :ListTasks, Google::Cloud::Tasks::V2beta3::ListTasksRequest, Google::Cloud::Tasks::V2beta3::ListTasksResponse
|
154
|
+
rpc :ListTasks, ::Google::Cloud::Tasks::V2beta3::ListTasksRequest, ::Google::Cloud::Tasks::V2beta3::ListTasksResponse
|
155
155
|
# Gets a task.
|
156
|
-
rpc :GetTask, Google::Cloud::Tasks::V2beta3::GetTaskRequest, Google::Cloud::Tasks::V2beta3::Task
|
156
|
+
rpc :GetTask, ::Google::Cloud::Tasks::V2beta3::GetTaskRequest, ::Google::Cloud::Tasks::V2beta3::Task
|
157
157
|
# Creates a task and adds it to a queue.
|
158
158
|
#
|
159
159
|
# Tasks cannot be updated after creation; there is no UpdateTask command.
|
160
160
|
#
|
161
161
|
# * The maximum task size is 100KB.
|
162
|
-
rpc :CreateTask, Google::Cloud::Tasks::V2beta3::CreateTaskRequest, Google::Cloud::Tasks::V2beta3::Task
|
162
|
+
rpc :CreateTask, ::Google::Cloud::Tasks::V2beta3::CreateTaskRequest, ::Google::Cloud::Tasks::V2beta3::Task
|
163
163
|
# Deletes a task.
|
164
164
|
#
|
165
165
|
# A task can be deleted if it is scheduled or dispatched. A task
|
166
166
|
# cannot be deleted if it has executed successfully or permanently
|
167
167
|
# failed.
|
168
|
-
rpc :DeleteTask, Google::Cloud::Tasks::V2beta3::DeleteTaskRequest, Google::Protobuf::Empty
|
168
|
+
rpc :DeleteTask, ::Google::Cloud::Tasks::V2beta3::DeleteTaskRequest, ::Google::Protobuf::Empty
|
169
169
|
# Forces a task to run now.
|
170
170
|
#
|
171
171
|
# When this method is called, Cloud Tasks will dispatch the task, even if
|
@@ -190,7 +190,7 @@ module Google
|
|
190
190
|
# [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] returns
|
191
191
|
# [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a
|
192
192
|
# task that has already succeeded or permanently failed.
|
193
|
-
rpc :RunTask, Google::Cloud::Tasks::V2beta3::RunTaskRequest, Google::Cloud::Tasks::V2beta3::Task
|
193
|
+
rpc :RunTask, ::Google::Cloud::Tasks::V2beta3::RunTaskRequest, ::Google::Cloud::Tasks::V2beta3::Task
|
194
194
|
end
|
195
195
|
|
196
196
|
Stub = Service.rpc_stub_class
|
@@ -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
|
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.3.
|
4
|
+
version: 0.3.3
|
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-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -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
|