google-cloud-tasks-v2beta3 0.9.0 → 0.10.1
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/README.md +1 -1
- data/lib/google/cloud/tasks/v2beta3/cloud_tasks/client.rb +6 -4
- data/lib/google/cloud/tasks/v2beta3/cloud_tasks/rest/client.rb +6 -4
- data/lib/google/cloud/tasks/v2beta3/cloud_tasks/rest/service_stub.rb +16 -16
- data/lib/google/cloud/tasks/v2beta3/cloudtasks_pb.rb +27 -62
- data/lib/google/cloud/tasks/v2beta3/queue_pb.rb +27 -49
- data/lib/google/cloud/tasks/v2beta3/target_pb.rb +24 -49
- data/lib/google/cloud/tasks/v2beta3/task_pb.rb +28 -28
- data/lib/google/cloud/tasks/v2beta3/version.rb +1 -1
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/cloud/tasks/v2beta3/queue.rb +83 -63
- data/proto_docs/google/cloud/tasks/v2beta3/target.rb +80 -54
- data/proto_docs/google/cloud/tasks/v2beta3/task.rb +30 -19
- data/proto_docs/google/iam/v1/policy.rb +8 -4
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
@@ -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::V2beta3::CloudTasks::Client#create_task CreateTask}.
|
28
29
|
#
|
29
30
|
# The task name.
|
30
31
|
#
|
@@ -48,18 +49,21 @@ module Google
|
|
48
49
|
# @return [::Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest]
|
49
50
|
# HTTP request that is sent to the App Engine app handler.
|
50
51
|
#
|
51
|
-
# An App Engine task is a task that has
|
52
|
+
# An App Engine task is a task that has
|
53
|
+
# {::Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest AppEngineHttpRequest}
|
54
|
+
# set.
|
52
55
|
# @!attribute [rw] http_request
|
53
56
|
# @return [::Google::Cloud::Tasks::V2beta3::HttpRequest]
|
54
57
|
# HTTP request that is sent to the task's target.
|
55
58
|
#
|
56
|
-
# An HTTP task is a task that has
|
59
|
+
# An HTTP task is a task that has
|
60
|
+
# {::Google::Cloud::Tasks::V2beta3::HttpRequest HttpRequest} set.
|
57
61
|
# @!attribute [rw] pull_message
|
58
62
|
# @return [::Google::Cloud::Tasks::V2beta3::PullMessage]
|
59
|
-
# Pull Message contained in a task in a
|
60
|
-
#
|
61
|
-
#
|
62
|
-
# Task Queue
|
63
|
+
# Pull Message contained in a task in a
|
64
|
+
# {::Google::Cloud::Tasks::V2beta3::Queue#type PULL} queue type. This payload
|
65
|
+
# type cannot be explicitly set through Cloud Tasks API. Its purpose,
|
66
|
+
# currently is to provide backward compatibility with App Engine Task Queue
|
63
67
|
# [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/)
|
64
68
|
# queues to provide a way to inspect contents of pull tasks through the
|
65
69
|
# {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client#get_task CloudTasks.GetTask}.
|
@@ -80,7 +84,8 @@ module Google
|
|
80
84
|
# The deadline for requests sent to the worker. If the worker does not
|
81
85
|
# respond by this deadline then the request is cancelled and the attempt
|
82
86
|
# is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
|
83
|
-
# task according to the
|
87
|
+
# task according to the
|
88
|
+
# {::Google::Cloud::Tasks::V2beta3::RetryConfig RetryConfig}.
|
84
89
|
#
|
85
90
|
# Note that when the request is cancelled, Cloud Tasks will stop listening
|
86
91
|
# for the response, but whether the worker stops processing depends on the
|
@@ -89,10 +94,12 @@ module Google
|
|
89
94
|
#
|
90
95
|
# The default and maximum values depend on the type of request:
|
91
96
|
#
|
92
|
-
# * For {::Google::Cloud::Tasks::V2beta3::HttpRequest HTTP tasks}, the default is
|
97
|
+
# * For {::Google::Cloud::Tasks::V2beta3::HttpRequest HTTP tasks}, the default is
|
98
|
+
# 10 minutes. The deadline
|
93
99
|
# must be in the interval [15 seconds, 30 minutes].
|
94
100
|
#
|
95
|
-
# * For {::Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest App Engine tasks},
|
101
|
+
# * For {::Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest App Engine tasks},
|
102
|
+
# 0 indicates that the
|
96
103
|
# request has the default deadline. The default deadline depends on the
|
97
104
|
# [scaling
|
98
105
|
# type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
|
@@ -121,20 +128,22 @@ module Google
|
|
121
128
|
# @return [::Google::Cloud::Tasks::V2beta3::Attempt]
|
122
129
|
# Output only. The status of the task's first attempt.
|
123
130
|
#
|
124
|
-
# Only {::Google::Cloud::Tasks::V2beta3::Attempt#dispatch_time dispatch_time} will
|
125
|
-
# The other {::Google::Cloud::Tasks::V2beta3::Attempt Attempt} information
|
131
|
+
# Only {::Google::Cloud::Tasks::V2beta3::Attempt#dispatch_time dispatch_time} will
|
132
|
+
# be set. The other {::Google::Cloud::Tasks::V2beta3::Attempt Attempt} information
|
133
|
+
# is not retained by Cloud Tasks.
|
126
134
|
# @!attribute [rw] last_attempt
|
127
135
|
# @return [::Google::Cloud::Tasks::V2beta3::Attempt]
|
128
136
|
# Output only. The status of the task's last attempt.
|
129
137
|
# @!attribute [rw] view
|
130
138
|
# @return [::Google::Cloud::Tasks::V2beta3::Task::View]
|
131
|
-
# Output only. The view specifies which subset of the
|
132
|
-
# been returned.
|
139
|
+
# Output only. The view specifies which subset of the
|
140
|
+
# {::Google::Cloud::Tasks::V2beta3::Task Task} has been returned.
|
133
141
|
class Task
|
134
142
|
include ::Google::Protobuf::MessageExts
|
135
143
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
136
144
|
|
137
|
-
# The view specifies a subset of {::Google::Cloud::Tasks::V2beta3::Task Task}
|
145
|
+
# The view specifies a subset of {::Google::Cloud::Tasks::V2beta3::Task Task}
|
146
|
+
# data.
|
138
147
|
#
|
139
148
|
# When a task is returned in a response, not all
|
140
149
|
# information is retrieved by default because some data, such as
|
@@ -149,7 +158,8 @@ module Google
|
|
149
158
|
# sensitive data.
|
150
159
|
#
|
151
160
|
# This view does not include the
|
152
|
-
#
|
161
|
+
# [body in
|
162
|
+
# AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest.body].
|
153
163
|
# Bodies are desirable to return only when needed, because they
|
154
164
|
# can be large and because of the sensitivity of the data that you
|
155
165
|
# choose to store in it.
|
@@ -157,9 +167,10 @@ module Google
|
|
157
167
|
|
158
168
|
# All information is returned.
|
159
169
|
#
|
160
|
-
# Authorization for {::Google::Cloud::Tasks::V2beta3::Task::View::FULL FULL}
|
161
|
-
# `cloudtasks.tasks.fullView` [Google
|
162
|
-
# permission on the
|
170
|
+
# Authorization for {::Google::Cloud::Tasks::V2beta3::Task::View::FULL FULL}
|
171
|
+
# requires `cloudtasks.tasks.fullView` [Google
|
172
|
+
# IAM](https://cloud.google.com/iam/) permission on the
|
173
|
+
# {::Google::Cloud::Tasks::V2beta3::Queue Queue} resource.
|
163
174
|
FULL = 2
|
164
175
|
end
|
165
176
|
end
|
@@ -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:
|
@@ -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]
|
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.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-06 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: 0.
|
19
|
+
version: 0.19.1
|
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: 0.
|
29
|
+
version: 0.19.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|