google-cloud-tasks-v2beta2 0.2.6 → 0.5.2
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 +8 -8
- data/LICENSE.md +188 -190
- data/README.md +67 -3
- data/lib/google/cloud/tasks/v2beta2/cloud_tasks/client.rb +71 -79
- data/lib/google/cloud/tasks/v2beta2/cloudtasks_pb.rb +2 -0
- data/lib/google/cloud/tasks/v2beta2/cloudtasks_services_pb.rb +1 -2
- data/lib/google/cloud/tasks/v2beta2/queue_pb.rb +12 -0
- data/lib/google/cloud/tasks/v2beta2/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +12 -0
- data/proto_docs/google/cloud/tasks/v2beta2/cloudtasks.rb +12 -0
- data/proto_docs/google/cloud/tasks/v2beta2/queue.rb +77 -15
- data/proto_docs/google/cloud/tasks/v2beta2/target.rb +8 -11
- data/proto_docs/google/protobuf/any.rb +5 -2
- data/proto_docs/google/protobuf/timestamp.rb +10 -1
- data/proto_docs/google/type/expr.rb +35 -12
- metadata +21 -13
@@ -119,10 +119,10 @@ module Google
|
|
119
119
|
# delivered to can be set at the queue-level or task-level:
|
120
120
|
#
|
121
121
|
# * If set,
|
122
|
-
#
|
123
|
-
#
|
124
|
-
#
|
125
|
-
#
|
122
|
+
# {::Google::Cloud::Tasks::V2beta2::AppEngineHttpTarget#app_engine_routing_override app_engine_routing_override}
|
123
|
+
# is used for all tasks in the queue, no matter what the setting
|
124
|
+
# is for the
|
125
|
+
# {::Google::Cloud::Tasks::V2beta2::AppEngineHttpRequest#app_engine_routing task-level app_engine_routing}.
|
126
126
|
#
|
127
127
|
#
|
128
128
|
# The `url` that the task will be sent to is:
|
@@ -156,14 +156,11 @@ module Google
|
|
156
156
|
# The HTTP method to use for the request. The default is POST.
|
157
157
|
#
|
158
158
|
# The app's request handler for the task's target URL must be able to handle
|
159
|
-
# HTTP requests with this http_method, otherwise the task attempt
|
160
|
-
#
|
161
|
-
# [Writing a push task request
|
159
|
+
# HTTP requests with this http_method, otherwise the task attempt fails with
|
160
|
+
# error code 405 (Method Not Allowed). See [Writing a push task request
|
162
161
|
# handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
|
163
|
-
# and the documentation for
|
164
|
-
#
|
165
|
-
# [Python Request
|
166
|
-
# Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/requesthandlerclass).
|
162
|
+
# and the App Engine documentation for your runtime on [How Requests are
|
163
|
+
# Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled).
|
167
164
|
# @!attribute [rw] app_engine_routing
|
168
165
|
# @return [::Google::Cloud::Tasks::V2beta2::AppEngineRouting]
|
169
166
|
# Task-level setting for App Engine routing.
|
@@ -57,10 +57,13 @@ module Google
|
|
57
57
|
# Example 4: Pack and unpack a message in Go
|
58
58
|
#
|
59
59
|
# foo := &pb.Foo{...}
|
60
|
-
# any, err :=
|
60
|
+
# any, err := anypb.New(foo)
|
61
|
+
# if err != nil {
|
62
|
+
# ...
|
63
|
+
# }
|
61
64
|
# ...
|
62
65
|
# foo := &pb.Foo{}
|
63
|
-
# if err :=
|
66
|
+
# if err := any.UnmarshalTo(foo); err != nil {
|
64
67
|
# ...
|
65
68
|
# }
|
66
69
|
#
|
@@ -70,7 +70,16 @@ module Google
|
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
71
71
|
#
|
72
72
|
#
|
73
|
-
# Example 5: Compute Timestamp from
|
73
|
+
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
74
|
+
#
|
75
|
+
# Instant now = Instant.now();
|
76
|
+
#
|
77
|
+
# Timestamp timestamp =
|
78
|
+
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
79
|
+
# .setNanos(now.getNano()).build();
|
80
|
+
#
|
81
|
+
#
|
82
|
+
# Example 6: Compute Timestamp from current time in Python.
|
74
83
|
#
|
75
84
|
# timestamp = Timestamp()
|
76
85
|
# timestamp.GetCurrentTime()
|
@@ -19,30 +19,53 @@
|
|
19
19
|
|
20
20
|
module Google
|
21
21
|
module Type
|
22
|
-
# Represents
|
22
|
+
# Represents a textual expression in the Common Expression Language (CEL)
|
23
|
+
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL
|
24
|
+
# are documented at https://github.com/google/cel-spec.
|
23
25
|
#
|
24
|
-
#
|
25
|
-
#
|
26
|
-
#
|
26
|
+
# Example (Comparison):
|
27
|
+
#
|
28
|
+
# title: "Summary size limit"
|
29
|
+
# description: "Determines if a summary is less than 100 chars"
|
30
|
+
# expression: "document.summary.size() < 100"
|
31
|
+
#
|
32
|
+
# Example (Equality):
|
33
|
+
#
|
34
|
+
# title: "Requestor is owner"
|
35
|
+
# description: "Determines if requestor is the document owner"
|
36
|
+
# expression: "document.owner == request.auth.claims.email"
|
37
|
+
#
|
38
|
+
# Example (Logic):
|
39
|
+
#
|
40
|
+
# title: "Public documents"
|
41
|
+
# description: "Determine whether the document should be publicly visible"
|
42
|
+
# expression: "document.type != 'private' && document.type != 'internal'"
|
43
|
+
#
|
44
|
+
# Example (Data Manipulation):
|
45
|
+
#
|
46
|
+
# title: "Notification string"
|
47
|
+
# description: "Create a notification string with a timestamp."
|
48
|
+
# expression: "'New message received at ' + string(document.create_time)"
|
49
|
+
#
|
50
|
+
# The exact variables and functions that may be referenced within an expression
|
51
|
+
# are determined by the service that evaluates it. See the service
|
52
|
+
# documentation for additional information.
|
27
53
|
# @!attribute [rw] expression
|
28
54
|
# @return [::String]
|
29
|
-
# Textual representation of an expression in
|
30
|
-
#
|
31
|
-
#
|
32
|
-
# The application context of the containing message determines which
|
33
|
-
# well-known feature set of CEL is supported.
|
55
|
+
# Textual representation of an expression in Common Expression Language
|
56
|
+
# syntax.
|
34
57
|
# @!attribute [rw] title
|
35
58
|
# @return [::String]
|
36
|
-
#
|
59
|
+
# Optional. Title for the expression, i.e. a short string describing
|
37
60
|
# its purpose. This can be used e.g. in UIs which allow to enter the
|
38
61
|
# expression.
|
39
62
|
# @!attribute [rw] description
|
40
63
|
# @return [::String]
|
41
|
-
#
|
64
|
+
# Optional. Description of the expression. This is a longer text which
|
42
65
|
# describes the expression, e.g. when hovered over it in a UI.
|
43
66
|
# @!attribute [rw] location
|
44
67
|
# @return [::String]
|
45
|
-
#
|
68
|
+
# Optional. String indicating the location of the expression for error
|
46
69
|
# reporting, e.g. a file name and a position in the file.
|
47
70
|
class Expr
|
48
71
|
include ::Google::Protobuf::MessageExts
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-tasks-v2beta2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.5'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.5'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: google-cloud-errors
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -47,7 +53,7 @@ dependencies:
|
|
47
53
|
version: 0.6.10
|
48
54
|
- - "<"
|
49
55
|
- !ruby/object:Gem::Version
|
50
|
-
version:
|
56
|
+
version: 2.a
|
51
57
|
type: :runtime
|
52
58
|
prerelease: false
|
53
59
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -57,21 +63,21 @@ dependencies:
|
|
57
63
|
version: 0.6.10
|
58
64
|
- - "<"
|
59
65
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
66
|
+
version: 2.a
|
61
67
|
- !ruby/object:Gem::Dependency
|
62
68
|
name: google-style
|
63
69
|
requirement: !ruby/object:Gem::Requirement
|
64
70
|
requirements:
|
65
71
|
- - "~>"
|
66
72
|
- !ruby/object:Gem::Version
|
67
|
-
version: 1.
|
73
|
+
version: 1.25.1
|
68
74
|
type: :development
|
69
75
|
prerelease: false
|
70
76
|
version_requirements: !ruby/object:Gem::Requirement
|
71
77
|
requirements:
|
72
78
|
- - "~>"
|
73
79
|
- !ruby/object:Gem::Version
|
74
|
-
version: 1.
|
80
|
+
version: 1.25.1
|
75
81
|
- !ruby/object:Gem::Dependency
|
76
82
|
name: minitest
|
77
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -173,7 +179,9 @@ dependencies:
|
|
173
179
|
description: Cloud Tasks is a fully managed service that allows you to manage the
|
174
180
|
execution, dispatch and delivery of a large number of distributed tasks. You can
|
175
181
|
asynchronously perform work outside of a user request. Your tasks can be executed
|
176
|
-
on App Engine or any arbitrary HTTP endpoint.
|
182
|
+
on App Engine or any arbitrary HTTP endpoint. Note that google-cloud-tasks-v2beta2
|
183
|
+
is a version-specific client library. For most uses, we recommend installing the
|
184
|
+
main client library google-cloud-tasks instead. See the readme for more details.
|
177
185
|
email: googleapis-packages@google.com
|
178
186
|
executables: []
|
179
187
|
extensions: []
|
@@ -224,14 +232,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
224
232
|
requirements:
|
225
233
|
- - ">="
|
226
234
|
- !ruby/object:Gem::Version
|
227
|
-
version: '2.
|
235
|
+
version: '2.5'
|
228
236
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
229
237
|
requirements:
|
230
238
|
- - ">="
|
231
239
|
- !ruby/object:Gem::Version
|
232
240
|
version: '0'
|
233
241
|
requirements: []
|
234
|
-
rubygems_version: 3.2.
|
242
|
+
rubygems_version: 3.2.17
|
235
243
|
signing_key:
|
236
244
|
specification_version: 4
|
237
245
|
summary: API Client library for the Cloud Tasks V2beta2 API
|