google-cloud-tasks-v2beta2 0.2.5 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.md +188 -190
- data/README.md +66 -2
- data/lib/google/cloud/tasks/v2beta2.rb +3 -0
- data/lib/google/cloud/tasks/v2beta2/cloud_tasks/client.rb +87 -71
- data/lib/google/cloud/tasks/v2beta2/cloudtasks_pb.rb +2 -0
- data/lib/google/cloud/tasks/v2beta2/cloudtasks_services_pb.rb +22 -23
- data/lib/google/cloud/tasks/v2beta2/old_target_pb.rb +20 -0
- 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 +6 -0
- data/proto_docs/google/api/resource.rb +50 -14
- 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
- metadata +22 -13
@@ -0,0 +1,20 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/tasks/v2beta2/old_target.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/cloud/tasks/v2beta2/target_pb'
|
7
|
+
require 'google/api/annotations_pb'
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_file("google/cloud/tasks/v2beta2/old_target.proto", :syntax => :proto3) do
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
module Google
|
14
|
+
module Cloud
|
15
|
+
module Tasks
|
16
|
+
module V2beta2
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -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/v2beta2/target_pb'
|
8
9
|
require 'google/protobuf/duration_pb'
|
@@ -16,6 +17,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
16
17
|
optional :retry_config, :message, 6, "google.cloud.tasks.v2beta2.RetryConfig"
|
17
18
|
optional :state, :enum, 7, "google.cloud.tasks.v2beta2.Queue.State"
|
18
19
|
optional :purge_time, :message, 8, "google.protobuf.Timestamp"
|
20
|
+
optional :task_ttl, :message, 9, "google.protobuf.Duration"
|
21
|
+
optional :tombstone_ttl, :message, 10, "google.protobuf.Duration"
|
22
|
+
optional :stats, :message, 16, "google.cloud.tasks.v2beta2.QueueStats"
|
19
23
|
oneof :target_type do
|
20
24
|
optional :app_engine_http_target, :message, 3, "google.cloud.tasks.v2beta2.AppEngineHttpTarget"
|
21
25
|
optional :pull_target, :message, 4, "google.cloud.tasks.v2beta2.PullTarget"
|
@@ -42,6 +46,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
42
46
|
optional :unlimited_attempts, :bool, 2
|
43
47
|
end
|
44
48
|
end
|
49
|
+
add_message "google.cloud.tasks.v2beta2.QueueStats" do
|
50
|
+
optional :tasks_count, :int64, 1
|
51
|
+
optional :oldest_estimated_arrival_time, :message, 2, "google.protobuf.Timestamp"
|
52
|
+
optional :executed_last_minute_count, :int64, 3
|
53
|
+
optional :concurrent_dispatches_count, :int64, 4
|
54
|
+
optional :effective_execution_rate, :double, 5
|
55
|
+
end
|
45
56
|
end
|
46
57
|
end
|
47
58
|
|
@@ -53,6 +64,7 @@ module Google
|
|
53
64
|
Queue::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta2.Queue.State").enummodule
|
54
65
|
RateLimits = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta2.RateLimits").msgclass
|
55
66
|
RetryConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta2.RetryConfig").msgclass
|
67
|
+
QueueStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta2.QueueStats").msgclass
|
56
68
|
end
|
57
69
|
end
|
58
70
|
end
|
@@ -54,6 +54,12 @@ module Google
|
|
54
54
|
# This indicates that the field may be set once in a request to create a
|
55
55
|
# resource, but may not be changed thereafter.
|
56
56
|
IMMUTABLE = 5
|
57
|
+
|
58
|
+
# Denotes that a (repeated) field is an unordered list.
|
59
|
+
# This indicates that the service may provide the elements of the list
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
|
+
# provided. Additionally, the list's order may or may not be stable.
|
62
|
+
UNORDERED_LIST = 6
|
57
63
|
end
|
58
64
|
end
|
59
65
|
end
|
@@ -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::V2beta2::CloudTasks::Client#list_queues ListQueues}
|
59
59
|
# method. It is an error to switch the value of the
|
60
60
|
# {::Google::Cloud::Tasks::V2beta2::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
|
@@ -88,7 +88,7 @@ module Google
|
|
88
88
|
# @return [::Google::Cloud::Tasks::V2beta2::Queue::State]
|
89
89
|
# Output only. The state of the queue.
|
90
90
|
#
|
91
|
-
# `state` can only be changed by
|
91
|
+
# `state` can only be changed by calling
|
92
92
|
# {::Google::Cloud::Tasks::V2beta2::CloudTasks::Client#pause_queue PauseQueue},
|
93
93
|
# {::Google::Cloud::Tasks::V2beta2::CloudTasks::Client#resume_queue ResumeQueue}, or uploading
|
94
94
|
# [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
|
@@ -106,6 +106,37 @@ module Google
|
|
106
106
|
#
|
107
107
|
# Purge time will be truncated to the nearest microsecond. Purge
|
108
108
|
# time will be unset if the queue has never been purged.
|
109
|
+
# @!attribute [rw] task_ttl
|
110
|
+
# @return [::Google::Protobuf::Duration]
|
111
|
+
# The maximum amount of time that a task will be retained in
|
112
|
+
# this queue.
|
113
|
+
#
|
114
|
+
# Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
|
115
|
+
# After a task has lived for `task_ttl`, the task will be deleted
|
116
|
+
# regardless of whether it was dispatched or not.
|
117
|
+
#
|
118
|
+
# The `task_ttl` for queues created via queue.yaml/xml is equal to the
|
119
|
+
# maximum duration because there is a
|
120
|
+
# [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
|
121
|
+
# these queues. To view the maximum valid duration, see the documentation for
|
122
|
+
# {::Google::Protobuf::Duration Duration}.
|
123
|
+
# @!attribute [rw] tombstone_ttl
|
124
|
+
# @return [::Google::Protobuf::Duration]
|
125
|
+
# The task tombstone time to live (TTL).
|
126
|
+
#
|
127
|
+
# After a task is deleted or completed, the task's tombstone is
|
128
|
+
# retained for the length of time specified by `tombstone_ttl`.
|
129
|
+
# The tombstone is used by task de-duplication; another task with the same
|
130
|
+
# name can't be created until the tombstone has expired. For more information
|
131
|
+
# about task de-duplication, see the documentation for
|
132
|
+
# {::Google::Cloud::Tasks::V2beta2::CreateTaskRequest#task CreateTaskRequest}.
|
133
|
+
#
|
134
|
+
# Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
|
135
|
+
# @!attribute [r] stats
|
136
|
+
# @return [::Google::Cloud::Tasks::V2beta2::QueueStats]
|
137
|
+
# Output only. The realtime, informational statistics for a queue. In order
|
138
|
+
# to receive the statistics the caller should include this field in the
|
139
|
+
# FieldMask.
|
109
140
|
class Queue
|
110
141
|
include ::Google::Protobuf::MessageExts
|
111
142
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -178,7 +209,7 @@ module Google
|
|
178
209
|
# queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate).
|
179
210
|
# @!attribute [rw] max_burst_size
|
180
211
|
# @return [::Integer]
|
181
|
-
#
|
212
|
+
# The max burst size.
|
182
213
|
#
|
183
214
|
# Max burst size limits how fast tasks in queue are processed when
|
184
215
|
# many tasks are in the queue and the rate is high. This field
|
@@ -193,23 +224,23 @@ module Google
|
|
193
224
|
# token is removed from the bucket. Tasks will be dispatched until
|
194
225
|
# the queue's bucket runs out of tokens. The bucket will be
|
195
226
|
# continuously refilled with new tokens based on
|
196
|
-
#
|
227
|
+
# [max_dispatches_per_second][RateLimits.max_dispatches_per_second].
|
228
|
+
#
|
229
|
+
# The default value of `max_burst_size` is picked by Cloud Tasks
|
230
|
+
# based on the value of
|
231
|
+
# [max_dispatches_per_second][RateLimits.max_dispatches_per_second].
|
197
232
|
#
|
198
|
-
#
|
199
|
-
# value of
|
200
|
-
# {::Google::Cloud::Tasks::V2beta2::RateLimits#max_tasks_dispatched_per_second max_tasks_dispatched_per_second}.
|
233
|
+
# The maximum value of `max_burst_size` is 500.
|
201
234
|
#
|
202
235
|
# For App Engine queues that were created or updated using
|
203
236
|
# `queue.yaml/xml`, `max_burst_size` is equal to
|
204
237
|
# [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size).
|
205
|
-
#
|
206
|
-
# {::Google::Cloud::Tasks::V2beta2::CloudTasks::Client#update_queue UpdateQueue} is called on a queue
|
207
|
-
#
|
208
|
-
#
|
209
|
-
# {::Google::Cloud::Tasks::V2beta2::
|
210
|
-
#
|
211
|
-
# {::Google::Cloud::Tasks::V2beta2::RateLimits#max_tasks_dispatched_per_second max_tasks_dispatched_per_second}
|
212
|
-
# is updated.
|
238
|
+
# If
|
239
|
+
# {::Google::Cloud::Tasks::V2beta2::CloudTasks::Client#update_queue UpdateQueue} is called on a queue without
|
240
|
+
# explicitly setting a value for `max_burst_size`,
|
241
|
+
# `max_burst_size` value will get updated if
|
242
|
+
# {::Google::Cloud::Tasks::V2beta2::CloudTasks::Client#update_queue UpdateQueue} is updating
|
243
|
+
# [max_dispatches_per_second][RateLimits.max_dispatches_per_second].
|
213
244
|
# @!attribute [rw] max_concurrent_tasks
|
214
245
|
# @return [::Integer]
|
215
246
|
# The maximum number of concurrent tasks that Cloud Tasks allows
|
@@ -316,7 +347,7 @@ module Google
|
|
316
347
|
# A task's retry interval starts at
|
317
348
|
# {::Google::Cloud::Tasks::V2beta2::RetryConfig#min_backoff min_backoff}, then doubles
|
318
349
|
# `max_doublings` times, then increases linearly, and finally
|
319
|
-
# retries
|
350
|
+
# retries at intervals of
|
320
351
|
# {::Google::Cloud::Tasks::V2beta2::RetryConfig#max_backoff max_backoff} up to
|
321
352
|
# {::Google::Cloud::Tasks::V2beta2::RetryConfig#max_attempts max_attempts} times.
|
322
353
|
#
|
@@ -343,6 +374,37 @@ module Google
|
|
343
374
|
include ::Google::Protobuf::MessageExts
|
344
375
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
345
376
|
end
|
377
|
+
|
378
|
+
# Statistics for a queue.
|
379
|
+
# @!attribute [r] tasks_count
|
380
|
+
# @return [::Integer]
|
381
|
+
# Output only. An estimation of the number of tasks in the queue, that is, the tasks in
|
382
|
+
# the queue that haven't been executed, the tasks in the queue which the
|
383
|
+
# queue has dispatched but has not yet received a reply for, and the failed
|
384
|
+
# tasks that the queue is retrying.
|
385
|
+
# @!attribute [r] oldest_estimated_arrival_time
|
386
|
+
# @return [::Google::Protobuf::Timestamp]
|
387
|
+
# Output only. An estimation of the nearest time in the future where a task in the queue
|
388
|
+
# is scheduled to be executed.
|
389
|
+
# @!attribute [r] executed_last_minute_count
|
390
|
+
# @return [::Integer]
|
391
|
+
# Output only. The number of tasks that the queue has dispatched and received a reply for
|
392
|
+
# during the last minute. This variable counts both successful and
|
393
|
+
# non-successful executions.
|
394
|
+
# @!attribute [r] concurrent_dispatches_count
|
395
|
+
# @return [::Integer]
|
396
|
+
# Output only. The number of requests that the queue has dispatched but has not received
|
397
|
+
# a reply for yet.
|
398
|
+
# @!attribute [r] effective_execution_rate
|
399
|
+
# @return [::Float]
|
400
|
+
# Output only. The current maximum number of tasks per second executed by the queue.
|
401
|
+
# The maximum value of this variable is controlled by the RateLimits of the
|
402
|
+
# Queue. However, this value could be less to avoid overloading the endpoints
|
403
|
+
# tasks in the queue are targeting.
|
404
|
+
class QueueStats
|
405
|
+
include ::Google::Protobuf::MessageExts
|
406
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
407
|
+
end
|
346
408
|
end
|
347
409
|
end
|
348
410
|
end
|
@@ -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()
|
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.
|
4
|
+
version: 0.5.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:
|
11
|
+
date: 2021-06-17 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: []
|
@@ -191,6 +199,7 @@ files:
|
|
191
199
|
- lib/google/cloud/tasks/v2beta2/cloud_tasks/paths.rb
|
192
200
|
- lib/google/cloud/tasks/v2beta2/cloudtasks_pb.rb
|
193
201
|
- lib/google/cloud/tasks/v2beta2/cloudtasks_services_pb.rb
|
202
|
+
- lib/google/cloud/tasks/v2beta2/old_target_pb.rb
|
194
203
|
- lib/google/cloud/tasks/v2beta2/queue_pb.rb
|
195
204
|
- lib/google/cloud/tasks/v2beta2/target_pb.rb
|
196
205
|
- lib/google/cloud/tasks/v2beta2/task_pb.rb
|
@@ -224,14 +233,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
224
233
|
requirements:
|
225
234
|
- - ">="
|
226
235
|
- !ruby/object:Gem::Version
|
227
|
-
version: '2.
|
236
|
+
version: '2.5'
|
228
237
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
229
238
|
requirements:
|
230
239
|
- - ">="
|
231
240
|
- !ruby/object:Gem::Version
|
232
241
|
version: '0'
|
233
242
|
requirements: []
|
234
|
-
rubygems_version: 3.
|
243
|
+
rubygems_version: 3.2.17
|
235
244
|
signing_key:
|
236
245
|
specification_version: 4
|
237
246
|
summary: API Client library for the Cloud Tasks V2beta2 API
|