google-cloud-tasks-v2beta2 0.7.0 → 0.9.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/AUTHENTICATION.md +1 -1
- data/README.md +3 -3
- data/lib/google/cloud/tasks/v2beta2/cloud_tasks/client.rb +227 -202
- data/lib/google/cloud/tasks/v2beta2/cloud_tasks/rest/client.rb +2249 -0
- data/lib/google/cloud/tasks/v2beta2/cloud_tasks/rest/service_stub.rb +1242 -0
- data/lib/google/cloud/tasks/v2beta2/cloud_tasks/rest.rb +53 -0
- data/lib/google/cloud/tasks/v2beta2/cloud_tasks.rb +7 -1
- data/lib/google/cloud/tasks/v2beta2/cloudtasks_pb.rb +29 -87
- data/lib/google/cloud/tasks/v2beta2/cloudtasks_services_pb.rb +68 -56
- data/lib/google/cloud/tasks/v2beta2/queue_pb.rb +27 -44
- data/lib/google/cloud/tasks/v2beta2/rest.rb +37 -0
- data/lib/google/cloud/tasks/v2beta2/target_pb.rb +23 -32
- data/lib/google/cloud/tasks/v2beta2/task_pb.rb +27 -30
- data/lib/google/cloud/tasks/v2beta2/version.rb +1 -1
- data/lib/google/cloud/tasks/v2beta2.rb +7 -2
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/tasks/v2beta2/cloudtasks.rb +193 -159
- data/proto_docs/google/cloud/tasks/v2beta2/queue.rb +97 -73
- data/proto_docs/google/cloud/tasks/v2beta2/target.rb +88 -63
- data/proto_docs/google/cloud/tasks/v2beta2/task.rb +41 -24
- data/proto_docs/google/iam/v1/policy.rb +8 -4
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +14 -8
@@ -24,7 +24,8 @@ module Google
|
|
24
24
|
# A unit of scheduled work.
|
25
25
|
# @!attribute [rw] name
|
26
26
|
# @return [::String]
|
27
|
-
# Optionally caller-specified in
|
27
|
+
# Optionally caller-specified in
|
28
|
+
# {::Google::Cloud::Tasks::V2beta2::CloudTasks::Client#create_task CreateTask}.
|
28
29
|
#
|
29
30
|
# The task name.
|
30
31
|
#
|
@@ -48,16 +49,21 @@ module Google
|
|
48
49
|
# @return [::Google::Cloud::Tasks::V2beta2::AppEngineHttpRequest]
|
49
50
|
# App Engine HTTP request that is sent to the task's target. Can
|
50
51
|
# be set only if
|
51
|
-
# {::Google::Cloud::Tasks::V2beta2::Queue#app_engine_http_target app_engine_http_target}
|
52
|
-
# on the queue.
|
52
|
+
# {::Google::Cloud::Tasks::V2beta2::Queue#app_engine_http_target app_engine_http_target}
|
53
|
+
# is set on the queue.
|
53
54
|
#
|
54
|
-
# An App Engine task is a task that has
|
55
|
+
# An App Engine task is a task that has
|
56
|
+
# {::Google::Cloud::Tasks::V2beta2::AppEngineHttpRequest AppEngineHttpRequest}
|
57
|
+
# set.
|
55
58
|
# @!attribute [rw] pull_message
|
56
59
|
# @return [::Google::Cloud::Tasks::V2beta2::PullMessage]
|
57
|
-
# {::Google::Cloud::Tasks::V2beta2::CloudTasks::Client#lease_tasks LeaseTasks} to process
|
58
|
-
#
|
60
|
+
# {::Google::Cloud::Tasks::V2beta2::CloudTasks::Client#lease_tasks LeaseTasks} to process
|
61
|
+
# the task. Can be set only if
|
62
|
+
# {::Google::Cloud::Tasks::V2beta2::Queue#pull_target pull_target} is set on the
|
63
|
+
# queue.
|
59
64
|
#
|
60
|
-
# A pull task is a task that has
|
65
|
+
# A pull task is a task that has
|
66
|
+
# {::Google::Cloud::Tasks::V2beta2::PullMessage PullMessage} set.
|
61
67
|
# @!attribute [rw] schedule_time
|
62
68
|
# @return [::Google::Protobuf::Timestamp]
|
63
69
|
# The time when the task is scheduled to be attempted.
|
@@ -67,7 +73,8 @@ module Google
|
|
67
73
|
# For pull queues, this is the time when the task is available to
|
68
74
|
# be leased; if a task is currently leased, this is the time when
|
69
75
|
# the current lease expires, that is, the time that the task was
|
70
|
-
# leased plus the
|
76
|
+
# leased plus the
|
77
|
+
# {::Google::Cloud::Tasks::V2beta2::LeaseTasksRequest#lease_duration lease_duration}.
|
71
78
|
#
|
72
79
|
# `schedule_time` will be truncated to the nearest microsecond.
|
73
80
|
# @!attribute [rw] create_time
|
@@ -80,13 +87,14 @@ module Google
|
|
80
87
|
# Output only. The task status.
|
81
88
|
# @!attribute [rw] view
|
82
89
|
# @return [::Google::Cloud::Tasks::V2beta2::Task::View]
|
83
|
-
# Output only. The view specifies which subset of the
|
84
|
-
# been returned.
|
90
|
+
# Output only. The view specifies which subset of the
|
91
|
+
# {::Google::Cloud::Tasks::V2beta2::Task Task} has been returned.
|
85
92
|
class Task
|
86
93
|
include ::Google::Protobuf::MessageExts
|
87
94
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
88
95
|
|
89
|
-
# The view specifies a subset of {::Google::Cloud::Tasks::V2beta2::Task Task}
|
96
|
+
# The view specifies a subset of {::Google::Cloud::Tasks::V2beta2::Task Task}
|
97
|
+
# data.
|
90
98
|
#
|
91
99
|
# When a task is returned in a response, not all
|
92
100
|
# information is retrieved by default because some data, such as
|
@@ -101,18 +109,21 @@ module Google
|
|
101
109
|
# sensitive data.
|
102
110
|
#
|
103
111
|
# This view does not include the
|
104
|
-
# (
|
105
|
-
#
|
106
|
-
#
|
107
|
-
#
|
108
|
-
#
|
112
|
+
# ([payload in
|
113
|
+
# AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest]
|
114
|
+
# and [payload in
|
115
|
+
# PullMessage][google.cloud.tasks.v2beta2.PullMessage.payload]). These
|
116
|
+
# payloads are desirable to return only when needed, because they can be
|
117
|
+
# large and because of the sensitivity of the data that you choose to store
|
118
|
+
# in it.
|
109
119
|
BASIC = 1
|
110
120
|
|
111
121
|
# All information is returned.
|
112
122
|
#
|
113
|
-
# Authorization for {::Google::Cloud::Tasks::V2beta2::Task::View::FULL FULL}
|
114
|
-
# `cloudtasks.tasks.fullView` [Google
|
115
|
-
# permission on the
|
123
|
+
# Authorization for {::Google::Cloud::Tasks::V2beta2::Task::View::FULL FULL}
|
124
|
+
# requires `cloudtasks.tasks.fullView` [Google
|
125
|
+
# IAM](https://cloud.google.com/iam/) permission on the
|
126
|
+
# {::Google::Cloud::Tasks::V2beta2::Queue Queue} resource.
|
116
127
|
FULL = 2
|
117
128
|
end
|
118
129
|
end
|
@@ -128,20 +139,26 @@ module Google
|
|
128
139
|
# @return [::Integer]
|
129
140
|
# Output only. The number of attempts which have received a response.
|
130
141
|
#
|
131
|
-
# This field is not calculated for
|
142
|
+
# This field is not calculated for [pull
|
143
|
+
# tasks][google.cloud.tasks.v2beta2.PullMessage].
|
132
144
|
# @!attribute [rw] first_attempt_status
|
133
145
|
# @return [::Google::Cloud::Tasks::V2beta2::AttemptStatus]
|
134
146
|
# Output only. The status of the task's first attempt.
|
135
147
|
#
|
136
|
-
# Only
|
137
|
-
#
|
148
|
+
# Only
|
149
|
+
# {::Google::Cloud::Tasks::V2beta2::AttemptStatus#dispatch_time dispatch_time}
|
150
|
+
# will be set. The other
|
151
|
+
# {::Google::Cloud::Tasks::V2beta2::AttemptStatus AttemptStatus} information is
|
152
|
+
# not retained by Cloud Tasks.
|
138
153
|
#
|
139
|
-
# This field is not calculated for
|
154
|
+
# This field is not calculated for [pull
|
155
|
+
# tasks][google.cloud.tasks.v2beta2.PullMessage].
|
140
156
|
# @!attribute [rw] last_attempt_status
|
141
157
|
# @return [::Google::Cloud::Tasks::V2beta2::AttemptStatus]
|
142
158
|
# Output only. The status of the task's last attempt.
|
143
159
|
#
|
144
|
-
# This field is not calculated for
|
160
|
+
# This field is not calculated for [pull
|
161
|
+
# tasks][google.cloud.tasks.v2beta2.PullMessage].
|
145
162
|
class TaskStatus
|
146
163
|
include ::Google::Protobuf::MessageExts
|
147
164
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -35,7 +35,8 @@ module Google
|
|
35
35
|
# only if the expression evaluates to `true`. A condition can add constraints
|
36
36
|
# based on attributes of the request, the resource, or both. To learn which
|
37
37
|
# resources support conditions in their IAM policies, see the
|
38
|
-
# [IAM
|
38
|
+
# [IAM
|
39
|
+
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
39
40
|
#
|
40
41
|
# **JSON example:**
|
41
42
|
#
|
@@ -58,7 +59,8 @@ module Google
|
|
58
59
|
# "condition": {
|
59
60
|
# "title": "expirable access",
|
60
61
|
# "description": "Does not grant access after Sep 2020",
|
61
|
-
# "expression": "request.time <
|
62
|
+
# "expression": "request.time <
|
63
|
+
# timestamp('2020-10-01T00:00:00.000Z')",
|
62
64
|
# }
|
63
65
|
# }
|
64
66
|
# ],
|
@@ -112,7 +114,8 @@ module Google
|
|
112
114
|
# specify any valid version or leave the field unset.
|
113
115
|
#
|
114
116
|
# To learn which resources support conditions in their IAM policies, see the
|
115
|
-
# [IAM
|
117
|
+
# [IAM
|
118
|
+
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
116
119
|
# @!attribute [rw] bindings
|
117
120
|
# @return [::Array<::Google::Iam::V1::Binding>]
|
118
121
|
# Associates a list of `members`, or principals, with a `role`. Optionally,
|
@@ -305,7 +308,8 @@ module Google
|
|
305
308
|
# @return [::Array<::String>]
|
306
309
|
# Specifies the identities that do not cause logging for this type of
|
307
310
|
# permission.
|
308
|
-
# Follows the same format of
|
311
|
+
# Follows the same format of
|
312
|
+
# {::Google::Iam::V1::Binding#members Binding.members}.
|
309
313
|
class AuditLogConfig
|
310
314
|
include ::Google::Protobuf::MessageExts
|
311
315
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -43,8 +43,12 @@ module Google
|
|
43
43
|
# if (any.is(Foo.class)) {
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
|
+
# // or ...
|
47
|
+
# if (any.isSameTypeAs(Foo.getDefaultInstance())) {
|
48
|
+
# foo = any.unpack(Foo.getDefaultInstance());
|
49
|
+
# }
|
46
50
|
#
|
47
|
-
#
|
51
|
+
# Example 3: Pack and unpack a message in Python.
|
48
52
|
#
|
49
53
|
# foo = Foo(...)
|
50
54
|
# any = Any()
|
@@ -54,7 +58,7 @@ module Google
|
|
54
58
|
# any.Unpack(foo)
|
55
59
|
# ...
|
56
60
|
#
|
57
|
-
#
|
61
|
+
# Example 4: Pack and unpack a message in Go
|
58
62
|
#
|
59
63
|
# foo := &pb.Foo{...}
|
60
64
|
# any, err := anypb.New(foo)
|
@@ -73,9 +77,8 @@ module Google
|
|
73
77
|
# in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
74
78
|
# name "y.z".
|
75
79
|
#
|
76
|
-
#
|
77
80
|
# JSON
|
78
|
-
#
|
81
|
+
# ====
|
79
82
|
# The JSON representation of an `Any` value uses the regular
|
80
83
|
# representation of the deserialized, embedded message, with an
|
81
84
|
# additional field `@type` which contains the type URL. Example:
|
@@ -26,8 +26,6 @@ module Google
|
|
26
26
|
# service Foo {
|
27
27
|
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
28
28
|
# }
|
29
|
-
#
|
30
|
-
# The JSON representation for `Empty` is empty JSON object `{}`.
|
31
29
|
class Empty
|
32
30
|
include ::Google::Protobuf::MessageExts
|
33
31
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -69,7 +69,6 @@ module Google
|
|
69
69
|
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
71
71
|
#
|
72
|
-
#
|
73
72
|
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
74
73
|
#
|
75
74
|
# Instant now = Instant.now();
|
@@ -78,7 +77,6 @@ module Google
|
|
78
77
|
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
79
78
|
# .setNanos(now.getNano()).build();
|
80
79
|
#
|
81
|
-
#
|
82
80
|
# Example 6: Compute Timestamp from current time in Python.
|
83
81
|
#
|
84
82
|
# timestamp = Timestamp()
|
@@ -108,7 +106,7 @@ module Google
|
|
108
106
|
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
109
107
|
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
110
108
|
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
111
|
-
# http://
|
109
|
+
# http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
112
110
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
113
111
|
# @!attribute [rw] seconds
|
114
112
|
# @return [::Integer]
|
@@ -28,12 +28,14 @@ module Google
|
|
28
28
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
29
29
|
# @!attribute [rw] code
|
30
30
|
# @return [::Integer]
|
31
|
-
# The status code, which should be an enum value of
|
31
|
+
# The status code, which should be an enum value of
|
32
|
+
# [google.rpc.Code][google.rpc.Code].
|
32
33
|
# @!attribute [rw] message
|
33
34
|
# @return [::String]
|
34
35
|
# A developer-facing error message, which should be in English. Any
|
35
36
|
# user-facing error message should be localized and sent in the
|
36
|
-
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
37
|
+
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
38
|
+
# by the client.
|
37
39
|
# @!attribute [rw] details
|
38
40
|
# @return [::Array<::Google::Protobuf::Any>]
|
39
41
|
# A list of messages that carry the error details. There is a common set of
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-tasks-v2beta2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.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: 2023-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.19.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 0.19.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -64,14 +64,14 @@ dependencies:
|
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: 1.26.
|
67
|
+
version: 1.26.3
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: 1.26.
|
74
|
+
version: 1.26.3
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: minitest
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -191,14 +191,20 @@ files:
|
|
191
191
|
- lib/google/cloud/tasks/v2beta2/cloud_tasks/client.rb
|
192
192
|
- lib/google/cloud/tasks/v2beta2/cloud_tasks/credentials.rb
|
193
193
|
- lib/google/cloud/tasks/v2beta2/cloud_tasks/paths.rb
|
194
|
+
- lib/google/cloud/tasks/v2beta2/cloud_tasks/rest.rb
|
195
|
+
- lib/google/cloud/tasks/v2beta2/cloud_tasks/rest/client.rb
|
196
|
+
- lib/google/cloud/tasks/v2beta2/cloud_tasks/rest/service_stub.rb
|
194
197
|
- lib/google/cloud/tasks/v2beta2/cloudtasks_pb.rb
|
195
198
|
- lib/google/cloud/tasks/v2beta2/cloudtasks_services_pb.rb
|
196
199
|
- lib/google/cloud/tasks/v2beta2/queue_pb.rb
|
200
|
+
- lib/google/cloud/tasks/v2beta2/rest.rb
|
197
201
|
- lib/google/cloud/tasks/v2beta2/target_pb.rb
|
198
202
|
- lib/google/cloud/tasks/v2beta2/task_pb.rb
|
199
203
|
- lib/google/cloud/tasks/v2beta2/version.rb
|
200
204
|
- proto_docs/README.md
|
205
|
+
- proto_docs/google/api/client.rb
|
201
206
|
- proto_docs/google/api/field_behavior.rb
|
207
|
+
- proto_docs/google/api/launch_stage.rb
|
202
208
|
- proto_docs/google/api/resource.rb
|
203
209
|
- proto_docs/google/cloud/tasks/v2beta2/cloudtasks.rb
|
204
210
|
- proto_docs/google/cloud/tasks/v2beta2/queue.rb
|
@@ -233,8 +239,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
233
239
|
- !ruby/object:Gem::Version
|
234
240
|
version: '0'
|
235
241
|
requirements: []
|
236
|
-
rubygems_version: 3.
|
242
|
+
rubygems_version: 3.4.2
|
237
243
|
signing_key:
|
238
244
|
specification_version: 4
|
239
|
-
summary:
|
245
|
+
summary: Manages the execution of large numbers of distributed requests.
|
240
246
|
test_files: []
|