google-cloud-tasks-v2 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/tasks/v2/cloud_tasks/client.rb +2 -2
- data/lib/google/cloud/tasks/v2/cloud_tasks/rest/client.rb +2 -2
- data/lib/google/cloud/tasks/v2/cloudtasks_pb.rb +27 -60
- data/lib/google/cloud/tasks/v2/queue_pb.rb +27 -31
- data/lib/google/cloud/tasks/v2/target_pb.rb +24 -42
- data/lib/google/cloud/tasks/v2/task_pb.rb +28 -27
- data/lib/google/cloud/tasks/v2/version.rb +1 -1
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/cloud/tasks/v2/queue.rb +56 -44
- data/proto_docs/google/cloud/tasks/v2/target.rb +49 -37
- data/proto_docs/google/cloud/tasks/v2/task.rb +17 -10
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 064c681abcc996474534d0eb75e5e7439f3951ee6117c4d711633a430347f16c
|
4
|
+
data.tar.gz: e86008b03f3a05f17afca6782b02ce57b5b640d54ffb77fea1952d3bc454c917
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1a14695f17cbbb5c9506b19a0d139470fa24371ed86c9ca8b3caf2ece08912cbfbcf176ba5ffca71de4451b266b764a5d7fc625c2faa09d7cf3b1619de16f42
|
7
|
+
data.tar.gz: 51cfb55f2070950d4d15cdf4a107fbdf46ee006853d8ff77980d7fa58fdb3dea70b6dabf150c5148bb0ac35958004c5f1459b9d0f92e56dbc271f76f14c8c107
|
data/README.md
CHANGED
@@ -47,7 +47,7 @@ for general usage information.
|
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
49
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
53
53
|
|
@@ -1922,9 +1922,9 @@ module Google
|
|
1922
1922
|
# * (`String`) The path to a service account key file in JSON format
|
1923
1923
|
# * (`Hash`) A service account key as a Hash
|
1924
1924
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1925
|
-
# (see the [googleauth docs](https://
|
1925
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1926
1926
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1927
|
-
# (see the [signet docs](https://
|
1927
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1928
1928
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1929
1929
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1930
1930
|
# * (`nil`) indicating no credentials
|
@@ -1537,9 +1537,9 @@ module Google
|
|
1537
1537
|
# * (`String`) The path to a service account key file in JSON format
|
1538
1538
|
# * (`Hash`) A service account key as a Hash
|
1539
1539
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1540
|
-
# (see the [googleauth docs](https://
|
1540
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1541
1541
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1542
|
-
# (see the [signet docs](https://
|
1542
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1543
1543
|
# * (`nil`) indicating no credentials
|
1544
1544
|
# @return [::Object]
|
1545
1545
|
# @!attribute [rw] scope
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/tasks/v2/cloudtasks.proto
|
3
4
|
|
@@ -14,68 +15,34 @@ require 'google/iam/v1/policy_pb'
|
|
14
15
|
require 'google/protobuf/empty_pb'
|
15
16
|
require 'google/protobuf/field_mask_pb'
|
16
17
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
optional :name, :string, 1
|
42
|
-
end
|
43
|
-
add_message "google.cloud.tasks.v2.PurgeQueueRequest" do
|
44
|
-
optional :name, :string, 1
|
45
|
-
end
|
46
|
-
add_message "google.cloud.tasks.v2.PauseQueueRequest" do
|
47
|
-
optional :name, :string, 1
|
48
|
-
end
|
49
|
-
add_message "google.cloud.tasks.v2.ResumeQueueRequest" do
|
50
|
-
optional :name, :string, 1
|
51
|
-
end
|
52
|
-
add_message "google.cloud.tasks.v2.ListTasksRequest" do
|
53
|
-
optional :parent, :string, 1
|
54
|
-
optional :response_view, :enum, 2, "google.cloud.tasks.v2.Task.View"
|
55
|
-
optional :page_size, :int32, 3
|
56
|
-
optional :page_token, :string, 4
|
57
|
-
end
|
58
|
-
add_message "google.cloud.tasks.v2.ListTasksResponse" do
|
59
|
-
repeated :tasks, :message, 1, "google.cloud.tasks.v2.Task"
|
60
|
-
optional :next_page_token, :string, 2
|
61
|
-
end
|
62
|
-
add_message "google.cloud.tasks.v2.GetTaskRequest" do
|
63
|
-
optional :name, :string, 1
|
64
|
-
optional :response_view, :enum, 2, "google.cloud.tasks.v2.Task.View"
|
65
|
-
end
|
66
|
-
add_message "google.cloud.tasks.v2.CreateTaskRequest" do
|
67
|
-
optional :parent, :string, 1
|
68
|
-
optional :task, :message, 2, "google.cloud.tasks.v2.Task"
|
69
|
-
optional :response_view, :enum, 3, "google.cloud.tasks.v2.Task.View"
|
70
|
-
end
|
71
|
-
add_message "google.cloud.tasks.v2.DeleteTaskRequest" do
|
72
|
-
optional :name, :string, 1
|
73
|
-
end
|
74
|
-
add_message "google.cloud.tasks.v2.RunTaskRequest" do
|
75
|
-
optional :name, :string, 1
|
76
|
-
optional :response_view, :enum, 2, "google.cloud.tasks.v2.Task.View"
|
18
|
+
|
19
|
+
descriptor_data = "\n&google/cloud/tasks/v2/cloudtasks.proto\x12\x15google.cloud.tasks.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a!google/cloud/tasks/v2/queue.proto\x1a google/cloud/tasks/v2/task.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x83\x01\n\x11ListQueuesRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x63loudtasks.googleapis.com/Queue\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"[\n\x12ListQueuesResponse\x12,\n\x06queues\x18\x01 \x03(\x0b\x32\x1c.google.cloud.tasks.v2.Queue\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"H\n\x0fGetQueueRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63loudtasks.googleapis.com/Queue\"\x7f\n\x12\x43reateQueueRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x63loudtasks.googleapis.com/Queue\x12\x30\n\x05queue\x18\x02 \x01(\x0b\x32\x1c.google.cloud.tasks.v2.QueueB\x03\xe0\x41\x02\"w\n\x12UpdateQueueRequest\x12\x30\n\x05queue\x18\x01 \x01(\x0b\x32\x1c.google.cloud.tasks.v2.QueueB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"K\n\x12\x44\x65leteQueueRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63loudtasks.googleapis.com/Queue\"J\n\x11PurgeQueueRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63loudtasks.googleapis.com/Queue\"J\n\x11PauseQueueRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63loudtasks.googleapis.com/Queue\"K\n\x12ResumeQueueRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63loudtasks.googleapis.com/Queue\"\xaa\x01\n\x10ListTasksRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x63loudtasks.googleapis.com/Task\x12\x37\n\rresponse_view\x18\x02 \x01(\x0e\x32 .google.cloud.tasks.v2.Task.View\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"X\n\x11ListTasksResponse\x12*\n\x05tasks\x18\x01 \x03(\x0b\x32\x1b.google.cloud.tasks.v2.Task\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x7f\n\x0eGetTaskRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63loudtasks.googleapis.com/Task\x12\x37\n\rresponse_view\x18\x02 \x01(\x0e\x32 .google.cloud.tasks.v2.Task.View\"\xb4\x01\n\x11\x43reateTaskRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x63loudtasks.googleapis.com/Task\x12.\n\x04task\x18\x02 \x01(\x0b\x32\x1b.google.cloud.tasks.v2.TaskB\x03\xe0\x41\x02\x12\x37\n\rresponse_view\x18\x03 \x01(\x0e\x32 .google.cloud.tasks.v2.Task.View\"I\n\x11\x44\x65leteTaskRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63loudtasks.googleapis.com/Task\"\x7f\n\x0eRunTaskRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63loudtasks.googleapis.com/Task\x12\x37\n\rresponse_view\x18\x02 \x01(\x0e\x32 .google.cloud.tasks.v2.Task.View2\xdd\x14\n\nCloudTasks\x12\x9e\x01\n\nListQueues\x12(.google.cloud.tasks.v2.ListQueuesRequest\x1a).google.cloud.tasks.v2.ListQueuesResponse\";\x82\xd3\xe4\x93\x02,\x12*/v2/{parent=projects/*/locations/*}/queues\xda\x41\x06parent\x12\x8b\x01\n\x08GetQueue\x12&.google.cloud.tasks.v2.GetQueueRequest\x1a\x1c.google.cloud.tasks.v2.Queue\"9\x82\xd3\xe4\x93\x02,\x12*/v2/{name=projects/*/locations/*/queues/*}\xda\x41\x04name\x12\xa0\x01\n\x0b\x43reateQueue\x12).google.cloud.tasks.v2.CreateQueueRequest\x1a\x1c.google.cloud.tasks.v2.Queue\"H\x82\xd3\xe4\x93\x02\x33\"*/v2/{parent=projects/*/locations/*}/queues:\x05queue\xda\x41\x0cparent,queue\x12\xab\x01\n\x0bUpdateQueue\x12).google.cloud.tasks.v2.UpdateQueueRequest\x1a\x1c.google.cloud.tasks.v2.Queue\"S\x82\xd3\xe4\x93\x02\x39\x32\x30/v2/{queue.name=projects/*/locations/*/queues/*}:\x05queue\xda\x41\x11queue,update_mask\x12\x8b\x01\n\x0b\x44\x65leteQueue\x12).google.cloud.tasks.v2.DeleteQueueRequest\x1a\x16.google.protobuf.Empty\"9\x82\xd3\xe4\x93\x02,**/v2/{name=projects/*/locations/*/queues/*}\xda\x41\x04name\x12\x98\x01\n\nPurgeQueue\x12(.google.cloud.tasks.v2.PurgeQueueRequest\x1a\x1c.google.cloud.tasks.v2.Queue\"B\x82\xd3\xe4\x93\x02\x35\"0/v2/{name=projects/*/locations/*/queues/*}:purge:\x01*\xda\x41\x04name\x12\x98\x01\n\nPauseQueue\x12(.google.cloud.tasks.v2.PauseQueueRequest\x1a\x1c.google.cloud.tasks.v2.Queue\"B\x82\xd3\xe4\x93\x02\x35\"0/v2/{name=projects/*/locations/*/queues/*}:pause:\x01*\xda\x41\x04name\x12\x9b\x01\n\x0bResumeQueue\x12).google.cloud.tasks.v2.ResumeQueueRequest\x1a\x1c.google.cloud.tasks.v2.Queue\"C\x82\xd3\xe4\x93\x02\x36\"1/v2/{name=projects/*/locations/*/queues/*}:resume:\x01*\xda\x41\x04name\x12\x9c\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"Q\x82\xd3\xe4\x93\x02@\";/v2/{resource=projects/*/locations/*/queues/*}:getIamPolicy:\x01*\xda\x41\x08resource\x12\xa3\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"X\x82\xd3\xe4\x93\x02@\";/v2/{resource=projects/*/locations/*/queues/*}:setIamPolicy:\x01*\xda\x41\x0fresource,policy\x12\xce\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"c\x82\xd3\xe4\x93\x02\x46\"A/v2/{resource=projects/*/locations/*/queues/*}:testIamPermissions:\x01*\xda\x41\x14resource,permissions\x12\xa3\x01\n\tListTasks\x12\'.google.cloud.tasks.v2.ListTasksRequest\x1a(.google.cloud.tasks.v2.ListTasksResponse\"C\x82\xd3\xe4\x93\x02\x34\x12\x32/v2/{parent=projects/*/locations/*/queues/*}/tasks\xda\x41\x06parent\x12\x90\x01\n\x07GetTask\x12%.google.cloud.tasks.v2.GetTaskRequest\x1a\x1b.google.cloud.tasks.v2.Task\"A\x82\xd3\xe4\x93\x02\x34\x12\x32/v2/{name=projects/*/locations/*/queues/*/tasks/*}\xda\x41\x04name\x12\xa0\x01\n\nCreateTask\x12(.google.cloud.tasks.v2.CreateTaskRequest\x1a\x1b.google.cloud.tasks.v2.Task\"K\x82\xd3\xe4\x93\x02\x37\"2/v2/{parent=projects/*/locations/*/queues/*}/tasks:\x01*\xda\x41\x0bparent,task\x12\x91\x01\n\nDeleteTask\x12(.google.cloud.tasks.v2.DeleteTaskRequest\x1a\x16.google.protobuf.Empty\"A\x82\xd3\xe4\x93\x02\x34*2/v2/{name=projects/*/locations/*/queues/*/tasks/*}\xda\x41\x04name\x12\x97\x01\n\x07RunTask\x12%.google.cloud.tasks.v2.RunTaskRequest\x1a\x1b.google.cloud.tasks.v2.Task\"H\x82\xd3\xe4\x93\x02;\"6/v2/{name=projects/*/locations/*/queues/*/tasks/*}:run:\x01*\xda\x41\x04name\x1aM\xca\x41\x19\x63loudtasks.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBv\n\x19\x63om.google.cloud.tasks.v2B\x0f\x43loudTasksProtoP\x01Z>cloud.google.com/go/cloudtasks/apiv2/cloudtaskspb;cloudtaskspb\xa2\x02\x05TASKSb\x06proto3"
|
20
|
+
|
21
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
22
|
+
|
23
|
+
begin
|
24
|
+
pool.add_serialized_file(descriptor_data)
|
25
|
+
rescue TypeError => e
|
26
|
+
# Compatibility code: will be removed in the next major version.
|
27
|
+
require 'google/protobuf/descriptor_pb'
|
28
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
29
|
+
parsed.clear_dependency
|
30
|
+
serialized = parsed.class.encode(parsed)
|
31
|
+
file = pool.add_serialized_file(serialized)
|
32
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
33
|
+
imports = [
|
34
|
+
["google.cloud.tasks.v2.Queue", "google/cloud/tasks/v2/queue.proto"],
|
35
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
36
|
+
["google.cloud.tasks.v2.Task", "google/cloud/tasks/v2/task.proto"],
|
37
|
+
]
|
38
|
+
imports.each do |type_name, expected_filename|
|
39
|
+
import_file = pool.lookup(type_name).file_descriptor
|
40
|
+
if import_file.name != expected_filename
|
41
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
77
42
|
end
|
78
43
|
end
|
44
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
45
|
+
warn "This will become an error in the next major version."
|
79
46
|
end
|
80
47
|
|
81
48
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/tasks/v2/queue.proto
|
3
4
|
|
@@ -8,39 +9,34 @@ require 'google/cloud/tasks/v2/target_pb'
|
|
8
9
|
require 'google/protobuf/duration_pb'
|
9
10
|
require 'google/protobuf/timestamp_pb'
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
optional :max_retry_duration, :message, 2, "google.protobuf.Duration"
|
36
|
-
optional :min_backoff, :message, 3, "google.protobuf.Duration"
|
37
|
-
optional :max_backoff, :message, 4, "google.protobuf.Duration"
|
38
|
-
optional :max_doublings, :int32, 5
|
39
|
-
end
|
40
|
-
add_message "google.cloud.tasks.v2.StackdriverLoggingConfig" do
|
41
|
-
optional :sampling_ratio, :double, 1
|
12
|
+
|
13
|
+
descriptor_data = "\n!google/cloud/tasks/v2/queue.proto\x12\x15google.cloud.tasks.v2\x1a\x19google/api/resource.proto\x1a\"google/cloud/tasks/v2/target.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb2\x04\n\x05Queue\x12\x0c\n\x04name\x18\x01 \x01(\t\x12L\n\x1b\x61pp_engine_routing_override\x18\x02 \x01(\x0b\x32\'.google.cloud.tasks.v2.AppEngineRouting\x12\x36\n\x0brate_limits\x18\x03 \x01(\x0b\x32!.google.cloud.tasks.v2.RateLimits\x12\x38\n\x0cretry_config\x18\x04 \x01(\x0b\x32\".google.cloud.tasks.v2.RetryConfig\x12\x31\n\x05state\x18\x05 \x01(\x0e\x32\".google.cloud.tasks.v2.Queue.State\x12.\n\npurge_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12S\n\x1astackdriver_logging_config\x18\t \x01(\x0b\x32/.google.cloud.tasks.v2.StackdriverLoggingConfig\"E\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\n\n\x06PAUSED\x10\x02\x12\x0c\n\x08\x44ISABLED\x10\x03:\\\xea\x41Y\n\x1f\x63loudtasks.googleapis.com/Queue\x12\x36projects/{project}/locations/{location}/queues/{queue}\"j\n\nRateLimits\x12!\n\x19max_dispatches_per_second\x18\x01 \x01(\x01\x12\x16\n\x0emax_burst_size\x18\x02 \x01(\x05\x12!\n\x19max_concurrent_dispatches\x18\x03 \x01(\x05\"\xd1\x01\n\x0bRetryConfig\x12\x14\n\x0cmax_attempts\x18\x01 \x01(\x05\x12\x35\n\x12max_retry_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12.\n\x0bmin_backoff\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12.\n\x0bmax_backoff\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\rmax_doublings\x18\x05 \x01(\x05\"2\n\x18StackdriverLoggingConfig\x12\x16\n\x0esampling_ratio\x18\x01 \x01(\x01\x42i\n\x19\x63om.google.cloud.tasks.v2B\nQueueProtoP\x01Z>cloud.google.com/go/cloudtasks/apiv2/cloudtaskspb;cloudtaskspbb\x06proto3"
|
14
|
+
|
15
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
|
+
|
17
|
+
begin
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
19
|
+
rescue TypeError => e
|
20
|
+
# Compatibility code: will be removed in the next major version.
|
21
|
+
require 'google/protobuf/descriptor_pb'
|
22
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
23
|
+
parsed.clear_dependency
|
24
|
+
serialized = parsed.class.encode(parsed)
|
25
|
+
file = pool.add_serialized_file(serialized)
|
26
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
27
|
+
imports = [
|
28
|
+
["google.cloud.tasks.v2.AppEngineRouting", "google/cloud/tasks/v2/target.proto"],
|
29
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
30
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
31
|
+
]
|
32
|
+
imports.each do |type_name, expected_filename|
|
33
|
+
import_file = pool.lookup(type_name).file_descriptor
|
34
|
+
if import_file.name != expected_filename
|
35
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
42
36
|
end
|
43
37
|
end
|
38
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
39
|
+
warn "This will become an error in the next major version."
|
44
40
|
end
|
45
41
|
|
46
42
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/tasks/v2/target.proto
|
3
4
|
|
@@ -5,50 +6,31 @@ require 'google/protobuf'
|
|
5
6
|
|
6
7
|
require 'google/api/field_behavior_pb'
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
optional :version, :string, 2
|
30
|
-
optional :instance, :string, 3
|
31
|
-
optional :host, :string, 4
|
32
|
-
end
|
33
|
-
add_message "google.cloud.tasks.v2.OAuthToken" do
|
34
|
-
optional :service_account_email, :string, 1
|
35
|
-
optional :scope, :string, 2
|
36
|
-
end
|
37
|
-
add_message "google.cloud.tasks.v2.OidcToken" do
|
38
|
-
optional :service_account_email, :string, 1
|
39
|
-
optional :audience, :string, 2
|
40
|
-
end
|
41
|
-
add_enum "google.cloud.tasks.v2.HttpMethod" do
|
42
|
-
value :HTTP_METHOD_UNSPECIFIED, 0
|
43
|
-
value :POST, 1
|
44
|
-
value :GET, 2
|
45
|
-
value :HEAD, 3
|
46
|
-
value :PUT, 4
|
47
|
-
value :DELETE, 5
|
48
|
-
value :PATCH, 6
|
49
|
-
value :OPTIONS, 7
|
9
|
+
|
10
|
+
descriptor_data = "\n\"google/cloud/tasks/v2/target.proto\x12\x15google.cloud.tasks.v2\x1a\x1fgoogle/api/field_behavior.proto\"\xe1\x02\n\x0bHttpRequest\x12\x10\n\x03url\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x36\n\x0bhttp_method\x18\x02 \x01(\x0e\x32!.google.cloud.tasks.v2.HttpMethod\x12@\n\x07headers\x18\x03 \x03(\x0b\x32/.google.cloud.tasks.v2.HttpRequest.HeadersEntry\x12\x0c\n\x04\x62ody\x18\x04 \x01(\x0c\x12\x38\n\x0boauth_token\x18\x05 \x01(\x0b\x32!.google.cloud.tasks.v2.OAuthTokenH\x00\x12\x36\n\noidc_token\x18\x06 \x01(\x0b\x32 .google.cloud.tasks.v2.OidcTokenH\x00\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x16\n\x14\x61uthorization_header\"\xb2\x02\n\x14\x41ppEngineHttpRequest\x12\x36\n\x0bhttp_method\x18\x01 \x01(\x0e\x32!.google.cloud.tasks.v2.HttpMethod\x12\x43\n\x12\x61pp_engine_routing\x18\x02 \x01(\x0b\x32\'.google.cloud.tasks.v2.AppEngineRouting\x12\x14\n\x0crelative_uri\x18\x03 \x01(\t\x12I\n\x07headers\x18\x04 \x03(\x0b\x32\x38.google.cloud.tasks.v2.AppEngineHttpRequest.HeadersEntry\x12\x0c\n\x04\x62ody\x18\x05 \x01(\x0c\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"T\n\x10\x41ppEngineRouting\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x10\n\x08instance\x18\x03 \x01(\t\x12\x0c\n\x04host\x18\x04 \x01(\t\":\n\nOAuthToken\x12\x1d\n\x15service_account_email\x18\x01 \x01(\t\x12\r\n\x05scope\x18\x02 \x01(\t\"<\n\tOidcToken\x12\x1d\n\x15service_account_email\x18\x01 \x01(\t\x12\x10\n\x08\x61udience\x18\x02 \x01(\t*s\n\nHttpMethod\x12\x1b\n\x17HTTP_METHOD_UNSPECIFIED\x10\x00\x12\x08\n\x04POST\x10\x01\x12\x07\n\x03GET\x10\x02\x12\x08\n\x04HEAD\x10\x03\x12\x07\n\x03PUT\x10\x04\x12\n\n\x06\x44\x45LETE\x10\x05\x12\t\n\x05PATCH\x10\x06\x12\x0b\n\x07OPTIONS\x10\x07\x42j\n\x19\x63om.google.cloud.tasks.v2B\x0bTargetProtoP\x01Z>cloud.google.com/go/cloudtasks/apiv2/cloudtaskspb;cloudtaskspbb\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
|
14
|
+
begin
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
16
|
+
rescue TypeError => e
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
20
|
+
parsed.clear_dependency
|
21
|
+
serialized = parsed.class.encode(parsed)
|
22
|
+
file = pool.add_serialized_file(serialized)
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
24
|
+
imports = [
|
25
|
+
]
|
26
|
+
imports.each do |type_name, expected_filename|
|
27
|
+
import_file = pool.lookup(type_name).file_descriptor
|
28
|
+
if import_file.name != expected_filename
|
29
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
50
30
|
end
|
51
31
|
end
|
32
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
33
|
+
warn "This will become an error in the next major version."
|
52
34
|
end
|
53
35
|
|
54
36
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/tasks/v2/task.proto
|
3
4
|
|
@@ -9,35 +10,35 @@ require 'google/protobuf/duration_pb'
|
|
9
10
|
require 'google/protobuf/timestamp_pb'
|
10
11
|
require 'google/rpc/status_pb'
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
optional :response_time, :message, 3, "google.protobuf.Timestamp"
|
38
|
-
optional :response_status, :message, 4, "google.rpc.Status"
|
13
|
+
|
14
|
+
descriptor_data = "\n google/cloud/tasks/v2/task.proto\x12\x15google.cloud.tasks.v2\x1a\x19google/api/resource.proto\x1a\"google/cloud/tasks/v2/target.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xb4\x05\n\x04Task\x12\x0c\n\x04name\x18\x01 \x01(\t\x12N\n\x17\x61pp_engine_http_request\x18\x02 \x01(\x0b\x32+.google.cloud.tasks.v2.AppEngineHttpRequestH\x00\x12:\n\x0chttp_request\x18\x03 \x01(\x0b\x32\".google.cloud.tasks.v2.HttpRequestH\x00\x12\x31\n\rschedule_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x11\x64ispatch_deadline\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x16\n\x0e\x64ispatch_count\x18\x07 \x01(\x05\x12\x16\n\x0eresponse_count\x18\x08 \x01(\x05\x12\x35\n\rfirst_attempt\x18\t \x01(\x0b\x32\x1e.google.cloud.tasks.v2.Attempt\x12\x34\n\x0clast_attempt\x18\n \x01(\x0b\x32\x1e.google.cloud.tasks.v2.Attempt\x12.\n\x04view\x18\x0b \x01(\x0e\x32 .google.cloud.tasks.v2.Task.View\"1\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x08\n\x04\x46ULL\x10\x02:h\xea\x41\x65\n\x1e\x63loudtasks.googleapis.com/Task\x12\x43projects/{project}/locations/{location}/queues/{queue}/tasks/{task}B\x0e\n\x0cmessage_type\"\xcf\x01\n\x07\x41ttempt\x12\x31\n\rschedule_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rdispatch_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rresponse_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x0fresponse_status\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusBh\n\x19\x63om.google.cloud.tasks.v2B\tTaskProtoP\x01Z>cloud.google.com/go/cloudtasks/apiv2/cloudtaskspb;cloudtaskspbb\x06proto3"
|
15
|
+
|
16
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
|
+
|
18
|
+
begin
|
19
|
+
pool.add_serialized_file(descriptor_data)
|
20
|
+
rescue TypeError => e
|
21
|
+
# Compatibility code: will be removed in the next major version.
|
22
|
+
require 'google/protobuf/descriptor_pb'
|
23
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
24
|
+
parsed.clear_dependency
|
25
|
+
serialized = parsed.class.encode(parsed)
|
26
|
+
file = pool.add_serialized_file(serialized)
|
27
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
28
|
+
imports = [
|
29
|
+
["google.cloud.tasks.v2.AppEngineHttpRequest", "google/cloud/tasks/v2/target.proto"],
|
30
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
31
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
32
|
+
["google.rpc.Status", "google/rpc/status.proto"],
|
33
|
+
]
|
34
|
+
imports.each do |type_name, expected_filename|
|
35
|
+
import_file = pool.lookup(type_name).file_descriptor
|
36
|
+
if import_file.name != expected_filename
|
37
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
39
38
|
end
|
40
39
|
end
|
40
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
41
|
+
warn "This will become an error in the next major version."
|
41
42
|
end
|
42
43
|
|
43
44
|
module Google
|
@@ -35,7 +35,9 @@ module Google
|
|
35
35
|
# Details about how and where to publish client libraries.
|
36
36
|
# @!attribute [rw] version
|
37
37
|
# @return [::String]
|
38
|
-
# Version of the API to apply these settings to.
|
38
|
+
# Version of the API to apply these settings to. This is the full protobuf
|
39
|
+
# package for the API, ending in the version element.
|
40
|
+
# Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
|
39
41
|
# @!attribute [rw] launch_stage
|
40
42
|
# @return [::Google::Api::LaunchStage]
|
41
43
|
# Launch stage of this version of the API.
|
@@ -81,7 +83,7 @@ module Google
|
|
81
83
|
# long-running operation pattern.
|
82
84
|
# @!attribute [rw] new_issue_uri
|
83
85
|
# @return [::String]
|
84
|
-
# Link to a
|
86
|
+
# Link to a *public* URI where users can report issues. Example:
|
85
87
|
# https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
86
88
|
# @!attribute [rw] documentation_uri
|
87
89
|
# @return [::String]
|
@@ -111,6 +113,10 @@ module Google
|
|
111
113
|
# Client library settings. If the same version string appears multiple
|
112
114
|
# times in this list, then the last one wins. Settings from earlier
|
113
115
|
# settings with the same version string are discarded.
|
116
|
+
# @!attribute [rw] proto_reference_documentation_uri
|
117
|
+
# @return [::String]
|
118
|
+
# Optional link to proto reference documentation. Example:
|
119
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
114
120
|
class Publishing
|
115
121
|
include ::Google::Protobuf::MessageExts
|
116
122
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -203,9 +209,57 @@ module Google
|
|
203
209
|
# @!attribute [rw] common
|
204
210
|
# @return [::Google::Api::CommonLanguageSettings]
|
205
211
|
# Some settings.
|
212
|
+
# @!attribute [rw] renamed_services
|
213
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
214
|
+
# Map from original service names to renamed versions.
|
215
|
+
# This is used when the default generated types
|
216
|
+
# would cause a naming conflict. (Neither name is
|
217
|
+
# fully-qualified.)
|
218
|
+
# Example: Subscriber to SubscriberServiceApi.
|
219
|
+
# @!attribute [rw] renamed_resources
|
220
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
221
|
+
# Map from full resource types to the effective short name
|
222
|
+
# for the resource. This is used when otherwise resource
|
223
|
+
# named from different services would cause naming collisions.
|
224
|
+
# Example entry:
|
225
|
+
# "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
|
226
|
+
# @!attribute [rw] ignored_resources
|
227
|
+
# @return [::Array<::String>]
|
228
|
+
# List of full resource types to ignore during generation.
|
229
|
+
# This is typically used for API-specific Location resources,
|
230
|
+
# which should be handled by the generator as if they were actually
|
231
|
+
# the common Location resources.
|
232
|
+
# Example entry: "documentai.googleapis.com/Location"
|
233
|
+
# @!attribute [rw] forced_namespace_aliases
|
234
|
+
# @return [::Array<::String>]
|
235
|
+
# Namespaces which must be aliased in snippets due to
|
236
|
+
# a known (but non-generator-predictable) naming collision
|
237
|
+
# @!attribute [rw] handwritten_signatures
|
238
|
+
# @return [::Array<::String>]
|
239
|
+
# Method signatures (in the form "service.method(signature)")
|
240
|
+
# which are provided separately, so shouldn't be generated.
|
241
|
+
# Snippets *calling* these methods are still generated, however.
|
206
242
|
class DotnetSettings
|
207
243
|
include ::Google::Protobuf::MessageExts
|
208
244
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
245
|
+
|
246
|
+
# @!attribute [rw] key
|
247
|
+
# @return [::String]
|
248
|
+
# @!attribute [rw] value
|
249
|
+
# @return [::String]
|
250
|
+
class RenamedServicesEntry
|
251
|
+
include ::Google::Protobuf::MessageExts
|
252
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
253
|
+
end
|
254
|
+
|
255
|
+
# @!attribute [rw] key
|
256
|
+
# @return [::String]
|
257
|
+
# @!attribute [rw] value
|
258
|
+
# @return [::String]
|
259
|
+
class RenamedResourcesEntry
|
260
|
+
include ::Google::Protobuf::MessageExts
|
261
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
262
|
+
end
|
209
263
|
end
|
210
264
|
|
211
265
|
# Settings for Ruby client libraries.
|
@@ -240,8 +294,8 @@ module Google
|
|
240
294
|
# Example of a YAML configuration::
|
241
295
|
#
|
242
296
|
# publishing:
|
243
|
-
#
|
244
|
-
# - selector:
|
297
|
+
# method_settings:
|
298
|
+
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
245
299
|
# long_running:
|
246
300
|
# initial_poll_delay:
|
247
301
|
# seconds: 60 # 1 minute
|
@@ -299,6 +353,15 @@ module Google
|
|
299
353
|
|
300
354
|
# Street View Org.
|
301
355
|
STREET_VIEW = 4
|
356
|
+
|
357
|
+
# Shopping Org.
|
358
|
+
SHOPPING = 5
|
359
|
+
|
360
|
+
# Geo Org.
|
361
|
+
GEO = 6
|
362
|
+
|
363
|
+
# Generative AI - https://developers.generativeai.google
|
364
|
+
GENERATIVE_AI = 7
|
302
365
|
end
|
303
366
|
|
304
367
|
# To where should client libraries be published?
|
@@ -26,8 +26,9 @@ module Google
|
|
26
26
|
# retry options, queue types, and others.
|
27
27
|
# @!attribute [rw] name
|
28
28
|
# @return [::String]
|
29
|
-
# Caller-specified and required in
|
30
|
-
# after which it
|
29
|
+
# Caller-specified and required in
|
30
|
+
# {::Google::Cloud::Tasks::V2::CloudTasks::Client#create_queue CreateQueue}, after which it
|
31
|
+
# becomes output only.
|
31
32
|
#
|
32
33
|
# The queue name.
|
33
34
|
#
|
@@ -48,36 +49,41 @@ module Google
|
|
48
49
|
# @!attribute [rw] app_engine_routing_override
|
49
50
|
# @return [::Google::Cloud::Tasks::V2::AppEngineRouting]
|
50
51
|
# Overrides for
|
51
|
-
#
|
52
|
+
# [task-level
|
53
|
+
# app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
|
52
54
|
# These settings apply only to
|
53
|
-
# {::Google::Cloud::Tasks::V2::AppEngineHttpRequest App Engine tasks} in this
|
54
|
-
# {::Google::Cloud::Tasks::V2::HttpRequest Http tasks} are not affected.
|
55
|
+
# {::Google::Cloud::Tasks::V2::AppEngineHttpRequest App Engine tasks} in this
|
56
|
+
# queue. {::Google::Cloud::Tasks::V2::HttpRequest Http tasks} are not affected.
|
55
57
|
#
|
56
58
|
# If set, `app_engine_routing_override` is used for all
|
57
|
-
# {::Google::Cloud::Tasks::V2::AppEngineHttpRequest App Engine tasks} in the
|
58
|
-
# setting is for the
|
59
|
-
#
|
59
|
+
# {::Google::Cloud::Tasks::V2::AppEngineHttpRequest App Engine tasks} in the
|
60
|
+
# queue, no matter what the setting is for the [task-level
|
61
|
+
# app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
|
60
62
|
# @!attribute [rw] rate_limits
|
61
63
|
# @return [::Google::Cloud::Tasks::V2::RateLimits]
|
62
64
|
# Rate limits for task dispatches.
|
63
65
|
#
|
64
|
-
# {::Google::Cloud::Tasks::V2::Queue#rate_limits rate_limits} and
|
65
|
-
#
|
66
|
-
# attempts
|
66
|
+
# {::Google::Cloud::Tasks::V2::Queue#rate_limits rate_limits} and
|
67
|
+
# {::Google::Cloud::Tasks::V2::Queue#retry_config retry_config} are related
|
68
|
+
# because they both control task attempts. However they control task attempts
|
69
|
+
# in different ways:
|
67
70
|
#
|
68
|
-
# * {::Google::Cloud::Tasks::V2::Queue#rate_limits rate_limits} controls the total
|
71
|
+
# * {::Google::Cloud::Tasks::V2::Queue#rate_limits rate_limits} controls the total
|
72
|
+
# rate of
|
69
73
|
# dispatches from a queue (i.e. all traffic dispatched from the
|
70
74
|
# queue, regardless of whether the dispatch is from a first
|
71
75
|
# attempt or a retry).
|
72
|
-
# * {::Google::Cloud::Tasks::V2::Queue#retry_config retry_config} controls what
|
76
|
+
# * {::Google::Cloud::Tasks::V2::Queue#retry_config retry_config} controls what
|
77
|
+
# happens to
|
73
78
|
# particular a task after its first attempt fails. That is,
|
74
|
-
# {::Google::Cloud::Tasks::V2::Queue#retry_config retry_config} controls task
|
75
|
-
# second attempt, third attempt, etc).
|
79
|
+
# {::Google::Cloud::Tasks::V2::Queue#retry_config retry_config} controls task
|
80
|
+
# retries (the second attempt, third attempt, etc).
|
76
81
|
#
|
77
82
|
# The queue's actual dispatch rate is the result of:
|
78
83
|
#
|
79
84
|
# * Number of tasks in the queue
|
80
|
-
# * User-specified throttling:
|
85
|
+
# * User-specified throttling:
|
86
|
+
# {::Google::Cloud::Tasks::V2::Queue#rate_limits rate_limits},
|
81
87
|
# {::Google::Cloud::Tasks::V2::Queue#retry_config retry_config}, and the
|
82
88
|
# [queue's state][google.cloud.tasks.v2.Queue.state].
|
83
89
|
# * System throttling due to `429` (Too Many Requests) or `503` (Service
|
@@ -103,16 +109,18 @@ module Google
|
|
103
109
|
# {::Google::Cloud::Tasks::V2::CloudTasks::Client#pause_queue PauseQueue},
|
104
110
|
# {::Google::Cloud::Tasks::V2::CloudTasks::Client#resume_queue ResumeQueue}, or uploading
|
105
111
|
# [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
|
106
|
-
# {::Google::Cloud::Tasks::V2::CloudTasks::Client#update_queue UpdateQueue} cannot be used
|
112
|
+
# {::Google::Cloud::Tasks::V2::CloudTasks::Client#update_queue UpdateQueue} cannot be used
|
113
|
+
# to change `state`.
|
107
114
|
# @!attribute [rw] purge_time
|
108
115
|
# @return [::Google::Protobuf::Timestamp]
|
109
116
|
# Output only. The last time this queue was purged.
|
110
117
|
#
|
111
|
-
# All tasks that were {::Google::Cloud::Tasks::V2::Task#create_time created}
|
112
|
-
# were purged.
|
118
|
+
# All tasks that were {::Google::Cloud::Tasks::V2::Task#create_time created}
|
119
|
+
# before this time were purged.
|
113
120
|
#
|
114
|
-
# A queue can be purged using
|
115
|
-
#
|
121
|
+
# A queue can be purged using
|
122
|
+
# {::Google::Cloud::Tasks::V2::CloudTasks::Client#purge_queue PurgeQueue}, the [App Engine
|
123
|
+
# Task Queue SDK, or the Cloud
|
116
124
|
# Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
|
117
125
|
#
|
118
126
|
# Purge time will be truncated to the nearest microsecond. Purge
|
@@ -169,8 +177,9 @@ module Google
|
|
169
177
|
# This message determines the maximum rate that tasks can be dispatched by a
|
170
178
|
# queue, regardless of whether the dispatch is a first task attempt or a retry.
|
171
179
|
#
|
172
|
-
# Note: The debugging command,
|
173
|
-
#
|
180
|
+
# Note: The debugging command,
|
181
|
+
# {::Google::Cloud::Tasks::V2::CloudTasks::Client#run_task RunTask}, will run a task even if
|
182
|
+
# the queue has reached its {::Google::Cloud::Tasks::V2::RateLimits RateLimits}.
|
174
183
|
# @!attribute [rw] max_dispatches_per_second
|
175
184
|
# @return [::Float]
|
176
185
|
# The maximum rate at which tasks are dispatched from this queue.
|
@@ -211,9 +220,9 @@ module Google
|
|
211
220
|
# `queue.yaml/xml`, `max_burst_size` is equal to
|
212
221
|
# [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size).
|
213
222
|
# Since `max_burst_size` is output only, if
|
214
|
-
# {::Google::Cloud::Tasks::V2::CloudTasks::Client#update_queue UpdateQueue} is called on a
|
215
|
-
# created by `queue.yaml/xml`, `max_burst_size` will be reset based
|
216
|
-
#
|
223
|
+
# {::Google::Cloud::Tasks::V2::CloudTasks::Client#update_queue UpdateQueue} is called on a
|
224
|
+
# queue created by `queue.yaml/xml`, `max_burst_size` will be reset based on
|
225
|
+
# the value of
|
217
226
|
# {::Google::Cloud::Tasks::V2::RateLimits#max_dispatches_per_second max_dispatches_per_second},
|
218
227
|
# regardless of whether
|
219
228
|
# {::Google::Cloud::Tasks::V2::RateLimits#max_dispatches_per_second max_dispatches_per_second}
|
@@ -264,9 +273,9 @@ module Google
|
|
264
273
|
# If positive, `max_retry_duration` specifies the time limit for
|
265
274
|
# retrying a failed task, measured from when the task was first
|
266
275
|
# attempted. Once `max_retry_duration` time has passed *and* the
|
267
|
-
# task has been attempted
|
268
|
-
# times, no
|
269
|
-
# deleted.
|
276
|
+
# task has been attempted
|
277
|
+
# {::Google::Cloud::Tasks::V2::RetryConfig#max_attempts max_attempts} times, no
|
278
|
+
# further attempts will be made and the task will be deleted.
|
270
279
|
#
|
271
280
|
# If zero, then the task age is unlimited.
|
272
281
|
#
|
@@ -281,11 +290,12 @@ module Google
|
|
281
290
|
# queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
|
282
291
|
# @!attribute [rw] min_backoff
|
283
292
|
# @return [::Google::Protobuf::Duration]
|
284
|
-
# A task will be {::Google::Cloud::Tasks::V2::Task#schedule_time scheduled} for
|
285
|
-
# {::Google::Cloud::Tasks::V2::RetryConfig#min_backoff min_backoff}
|
286
|
-
# {::Google::Cloud::Tasks::V2::RetryConfig#max_backoff max_backoff} duration
|
287
|
-
# if the queue's
|
288
|
-
#
|
293
|
+
# A task will be {::Google::Cloud::Tasks::V2::Task#schedule_time scheduled} for
|
294
|
+
# retry between {::Google::Cloud::Tasks::V2::RetryConfig#min_backoff min_backoff}
|
295
|
+
# and {::Google::Cloud::Tasks::V2::RetryConfig#max_backoff max_backoff} duration
|
296
|
+
# after it fails, if the queue's
|
297
|
+
# {::Google::Cloud::Tasks::V2::RetryConfig RetryConfig} specifies that the task
|
298
|
+
# should be retried.
|
289
299
|
#
|
290
300
|
# If unspecified when the queue is created, Cloud Tasks will pick the
|
291
301
|
# default.
|
@@ -298,11 +308,12 @@ module Google
|
|
298
308
|
# queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
|
299
309
|
# @!attribute [rw] max_backoff
|
300
310
|
# @return [::Google::Protobuf::Duration]
|
301
|
-
# A task will be {::Google::Cloud::Tasks::V2::Task#schedule_time scheduled} for
|
302
|
-
# {::Google::Cloud::Tasks::V2::RetryConfig#min_backoff min_backoff}
|
303
|
-
# {::Google::Cloud::Tasks::V2::RetryConfig#max_backoff max_backoff} duration
|
304
|
-
# if the queue's
|
305
|
-
#
|
311
|
+
# A task will be {::Google::Cloud::Tasks::V2::Task#schedule_time scheduled} for
|
312
|
+
# retry between {::Google::Cloud::Tasks::V2::RetryConfig#min_backoff min_backoff}
|
313
|
+
# and {::Google::Cloud::Tasks::V2::RetryConfig#max_backoff max_backoff} duration
|
314
|
+
# after it fails, if the queue's
|
315
|
+
# {::Google::Cloud::Tasks::V2::RetryConfig RetryConfig} specifies that the task
|
316
|
+
# should be retried.
|
306
317
|
#
|
307
318
|
# If unspecified when the queue is created, Cloud Tasks will pick the
|
308
319
|
# default.
|
@@ -324,15 +335,16 @@ module Google
|
|
324
335
|
# {::Google::Cloud::Tasks::V2::RetryConfig#max_backoff max_backoff} up to
|
325
336
|
# {::Google::Cloud::Tasks::V2::RetryConfig#max_attempts max_attempts} times.
|
326
337
|
#
|
327
|
-
# For example, if
|
338
|
+
# For example, if
|
339
|
+
# {::Google::Cloud::Tasks::V2::RetryConfig#min_backoff min_backoff} is 10s,
|
328
340
|
# {::Google::Cloud::Tasks::V2::RetryConfig#max_backoff max_backoff} is 300s, and
|
329
341
|
# `max_doublings` is 3, then the a task will first be retried in
|
330
342
|
# 10s. The retry interval will double three times, and then
|
331
343
|
# increase linearly by 2^3 * 10s. Finally, the task will retry at
|
332
|
-
# intervals of {::Google::Cloud::Tasks::V2::RetryConfig#max_backoff max_backoff}
|
333
|
-
# task has been attempted
|
334
|
-
# times. Thus,
|
335
|
-
# 240s, 300s, 300s, ....
|
344
|
+
# intervals of {::Google::Cloud::Tasks::V2::RetryConfig#max_backoff max_backoff}
|
345
|
+
# until the task has been attempted
|
346
|
+
# {::Google::Cloud::Tasks::V2::RetryConfig#max_attempts max_attempts} times. Thus,
|
347
|
+
# the requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, ....
|
336
348
|
#
|
337
349
|
# If unspecified when the queue is created, Cloud Tasks will pick the
|
338
350
|
# default.
|
@@ -29,8 +29,10 @@ module Google
|
|
29
29
|
# any other HTTP response code is returned or no response is received, the
|
30
30
|
# task will be retried according to the following:
|
31
31
|
#
|
32
|
-
# * User-specified throttling:
|
33
|
-
#
|
32
|
+
# * User-specified throttling: [retry
|
33
|
+
# configuration][google.cloud.tasks.v2.Queue.retry_config],
|
34
|
+
# {::Google::Cloud::Tasks::V2::Queue#rate_limits rate limits}, and the [queue's
|
35
|
+
# state][google.cloud.tasks.v2.Queue.state].
|
34
36
|
#
|
35
37
|
# * System throttling: To prevent the worker from overloading, Cloud Tasks may
|
36
38
|
# temporarily reduce the queue's effective rate. User-specified settings
|
@@ -39,10 +41,11 @@ module Google
|
|
39
41
|
# System throttling happens because:
|
40
42
|
#
|
41
43
|
# * Cloud Tasks backs off on all errors. Normally the backoff specified in
|
42
|
-
# {::Google::Cloud::Tasks::V2::Queue#rate_limits rate limits} will be used. But
|
43
|
-
# `429` (Too Many Requests), `503` (Service
|
44
|
-
# errors is high, Cloud Tasks will use a
|
45
|
-
# specified in the `Retry-After` HTTP
|
44
|
+
# {::Google::Cloud::Tasks::V2::Queue#rate_limits rate limits} will be used. But
|
45
|
+
# if the worker returns `429` (Too Many Requests), `503` (Service
|
46
|
+
# Unavailable), or the rate of errors is high, Cloud Tasks will use a
|
47
|
+
# higher backoff rate. The retry specified in the `Retry-After` HTTP
|
48
|
+
# response header is considered.
|
46
49
|
#
|
47
50
|
# * To prevent traffic spikes and to smooth sudden increases in traffic,
|
48
51
|
# dispatches ramp up slowly when the queue is newly created or idle and
|
@@ -98,8 +101,9 @@ module Google
|
|
98
101
|
# HTTP request body.
|
99
102
|
#
|
100
103
|
# A request body is allowed only if the
|
101
|
-
# {::Google::Cloud::Tasks::V2::HttpRequest#http_method HTTP method} is POST, PUT,
|
102
|
-
# error to set body on a task with an incompatible
|
104
|
+
# {::Google::Cloud::Tasks::V2::HttpRequest#http_method HTTP method} is POST, PUT,
|
105
|
+
# or PATCH. It is an error to set body on a task with an incompatible
|
106
|
+
# {::Google::Cloud::Tasks::V2::HttpMethod HttpMethod}.
|
103
107
|
# @!attribute [rw] oauth_token
|
104
108
|
# @return [::Google::Cloud::Tasks::V2::OAuthToken]
|
105
109
|
# If specified, an
|
@@ -138,7 +142,8 @@ module Google
|
|
138
142
|
# The message defines the HTTP request that is sent to an App Engine app when
|
139
143
|
# the task is dispatched.
|
140
144
|
#
|
141
|
-
# Using {::Google::Cloud::Tasks::V2::AppEngineHttpRequest AppEngineHttpRequest}
|
145
|
+
# Using {::Google::Cloud::Tasks::V2::AppEngineHttpRequest AppEngineHttpRequest}
|
146
|
+
# requires
|
142
147
|
# [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control)
|
143
148
|
# Google IAM permission for the project
|
144
149
|
# and the following scope:
|
@@ -158,8 +163,9 @@ module Google
|
|
158
163
|
# The request to the handler, however, will appear to have used the HTTP
|
159
164
|
# protocol.
|
160
165
|
#
|
161
|
-
# The {::Google::Cloud::Tasks::V2::AppEngineRouting AppEngineRouting} used to
|
162
|
-
# delivered to can be set at the queue-level
|
166
|
+
# The {::Google::Cloud::Tasks::V2::AppEngineRouting AppEngineRouting} used to
|
167
|
+
# construct the URL that the task is delivered to can be set at the queue-level
|
168
|
+
# or task-level:
|
163
169
|
#
|
164
170
|
# * If [app_engine_routing_override is set on the
|
165
171
|
# queue][Queue.app_engine_routing_override], this value is used for all
|
@@ -185,14 +191,15 @@ module Google
|
|
185
191
|
# The task attempt has succeeded if the app's request handler returns an HTTP
|
186
192
|
# response code in the range [`200` - `299`]. The task attempt has failed if
|
187
193
|
# the app's handler returns a non-2xx response code or Cloud Tasks does
|
188
|
-
# not receive response before the
|
189
|
-
#
|
190
|
-
#
|
191
|
-
#
|
192
|
-
#
|
193
|
-
#
|
194
|
-
#
|
195
|
-
#
|
194
|
+
# not receive response before the
|
195
|
+
# {::Google::Cloud::Tasks::V2::Task#dispatch_deadline deadline}. Failed tasks will
|
196
|
+
# be retried according to the [retry
|
197
|
+
# configuration][google.cloud.tasks.v2.Queue.retry_config]. `503` (Service
|
198
|
+
# Unavailable) is considered an App Engine system error instead of an
|
199
|
+
# application error and will cause Cloud Tasks' traffic congestion control to
|
200
|
+
# temporarily throttle the queue's dispatches. Unlike other types of task
|
201
|
+
# targets, a `429` (Too Many Requests) response from an app handler does not
|
202
|
+
# cause traffic congestion control to throttle the queue.
|
196
203
|
# @!attribute [rw] http_method
|
197
204
|
# @return [::Google::Cloud::Tasks::V2::HttpMethod]
|
198
205
|
# The HTTP method to use for the request. The default is POST.
|
@@ -239,8 +246,8 @@ module Google
|
|
239
246
|
# `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
|
240
247
|
# modified `User-Agent`.
|
241
248
|
#
|
242
|
-
# If the task has a {::Google::Cloud::Tasks::V2::AppEngineHttpRequest#body body},
|
243
|
-
# Tasks sets the following headers:
|
249
|
+
# If the task has a {::Google::Cloud::Tasks::V2::AppEngineHttpRequest#body body},
|
250
|
+
# Cloud Tasks sets the following headers:
|
244
251
|
#
|
245
252
|
# * `Content-Type`: By default, the `Content-Type` header is set to
|
246
253
|
# `"application/octet-stream"`. The default can be overridden by explicitly
|
@@ -264,14 +271,16 @@ module Google
|
|
264
271
|
# visible when the task is returned in a Cloud Tasks response.
|
265
272
|
#
|
266
273
|
# Although there is no specific limit for the maximum number of headers or
|
267
|
-
# the size, there is a limit on the maximum size of the
|
268
|
-
#
|
274
|
+
# the size, there is a limit on the maximum size of the
|
275
|
+
# {::Google::Cloud::Tasks::V2::Task Task}. For more information, see the
|
276
|
+
# {::Google::Cloud::Tasks::V2::CloudTasks::Client#create_task CreateTask} documentation.
|
269
277
|
# @!attribute [rw] body
|
270
278
|
# @return [::String]
|
271
279
|
# HTTP request body.
|
272
280
|
#
|
273
281
|
# A request body is allowed only if the HTTP method is POST or PUT. It is
|
274
|
-
# an error to set a body on a task with an incompatible
|
282
|
+
# an error to set a body on a task with an incompatible
|
283
|
+
# {::Google::Cloud::Tasks::V2::HttpMethod HttpMethod}.
|
275
284
|
class AppEngineHttpRequest
|
276
285
|
include ::Google::Protobuf::MessageExts
|
277
286
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -315,16 +324,17 @@ module Google
|
|
315
324
|
# service when the task is attempted.
|
316
325
|
#
|
317
326
|
# For some queues or tasks which were created using the App Engine
|
318
|
-
# Task Queue API, {::Google::Cloud::Tasks::V2::AppEngineRouting#host host} is not
|
319
|
-
# into {::Google::Cloud::Tasks::V2::AppEngineRouting#service service},
|
327
|
+
# Task Queue API, {::Google::Cloud::Tasks::V2::AppEngineRouting#host host} is not
|
328
|
+
# parsable into {::Google::Cloud::Tasks::V2::AppEngineRouting#service service},
|
320
329
|
# {::Google::Cloud::Tasks::V2::AppEngineRouting#version version}, and
|
321
|
-
# {::Google::Cloud::Tasks::V2::AppEngineRouting#instance instance}. For example,
|
322
|
-
# which were created using the App Engine SDK use a custom domain
|
330
|
+
# {::Google::Cloud::Tasks::V2::AppEngineRouting#instance instance}. For example,
|
331
|
+
# some tasks which were created using the App Engine SDK use a custom domain
|
323
332
|
# name; custom domains are not parsed by Cloud Tasks. If
|
324
333
|
# {::Google::Cloud::Tasks::V2::AppEngineRouting#host host} is not parsable, then
|
325
334
|
# {::Google::Cloud::Tasks::V2::AppEngineRouting#service service},
|
326
335
|
# {::Google::Cloud::Tasks::V2::AppEngineRouting#version version}, and
|
327
|
-
# {::Google::Cloud::Tasks::V2::AppEngineRouting#instance instance} are the empty
|
336
|
+
# {::Google::Cloud::Tasks::V2::AppEngineRouting#instance instance} are the empty
|
337
|
+
# string.
|
328
338
|
# @!attribute [rw] version
|
329
339
|
# @return [::String]
|
330
340
|
# App version.
|
@@ -333,16 +343,17 @@ module Google
|
|
333
343
|
# version when the task is attempted.
|
334
344
|
#
|
335
345
|
# For some queues or tasks which were created using the App Engine
|
336
|
-
# Task Queue API, {::Google::Cloud::Tasks::V2::AppEngineRouting#host host} is not
|
337
|
-
# into {::Google::Cloud::Tasks::V2::AppEngineRouting#service service},
|
346
|
+
# Task Queue API, {::Google::Cloud::Tasks::V2::AppEngineRouting#host host} is not
|
347
|
+
# parsable into {::Google::Cloud::Tasks::V2::AppEngineRouting#service service},
|
338
348
|
# {::Google::Cloud::Tasks::V2::AppEngineRouting#version version}, and
|
339
|
-
# {::Google::Cloud::Tasks::V2::AppEngineRouting#instance instance}. For example,
|
340
|
-
# which were created using the App Engine SDK use a custom domain
|
349
|
+
# {::Google::Cloud::Tasks::V2::AppEngineRouting#instance instance}. For example,
|
350
|
+
# some tasks which were created using the App Engine SDK use a custom domain
|
341
351
|
# name; custom domains are not parsed by Cloud Tasks. If
|
342
352
|
# {::Google::Cloud::Tasks::V2::AppEngineRouting#host host} is not parsable, then
|
343
353
|
# {::Google::Cloud::Tasks::V2::AppEngineRouting#service service},
|
344
354
|
# {::Google::Cloud::Tasks::V2::AppEngineRouting#version version}, and
|
345
|
-
# {::Google::Cloud::Tasks::V2::AppEngineRouting#instance instance} are the empty
|
355
|
+
# {::Google::Cloud::Tasks::V2::AppEngineRouting#instance instance} are the empty
|
356
|
+
# string.
|
346
357
|
# @!attribute [rw] instance
|
347
358
|
# @return [::String]
|
348
359
|
# App instance.
|
@@ -364,9 +375,10 @@ module Google
|
|
364
375
|
#
|
365
376
|
# The host is constructed from the domain name of the app associated with
|
366
377
|
# the queue's project ID (for example <app-id>.appspot.com), and the
|
367
|
-
# {::Google::Cloud::Tasks::V2::AppEngineRouting#service service},
|
368
|
-
#
|
369
|
-
#
|
378
|
+
# {::Google::Cloud::Tasks::V2::AppEngineRouting#service service},
|
379
|
+
# {::Google::Cloud::Tasks::V2::AppEngineRouting#version version}, and
|
380
|
+
# {::Google::Cloud::Tasks::V2::AppEngineRouting#instance instance}. Tasks which
|
381
|
+
# were created using the App Engine SDK might have a custom domain name.
|
370
382
|
#
|
371
383
|
# For more information, see
|
372
384
|
# [How Requests are
|
@@ -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::V2::CloudTasks::Client#create_task CreateTask}.
|
28
29
|
#
|
29
30
|
# The task name.
|
30
31
|
#
|
@@ -48,12 +49,14 @@ module Google
|
|
48
49
|
# @return [::Google::Cloud::Tasks::V2::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::V2::AppEngineHttpRequest AppEngineHttpRequest} set.
|
52
54
|
# @!attribute [rw] http_request
|
53
55
|
# @return [::Google::Cloud::Tasks::V2::HttpRequest]
|
54
56
|
# HTTP request that is sent to the worker.
|
55
57
|
#
|
56
|
-
# An HTTP task is a task that has
|
58
|
+
# An HTTP task is a task that has
|
59
|
+
# {::Google::Cloud::Tasks::V2::HttpRequest HttpRequest} set.
|
57
60
|
# @!attribute [rw] schedule_time
|
58
61
|
# @return [::Google::Protobuf::Timestamp]
|
59
62
|
# The time when the task is scheduled to be attempted or retried.
|
@@ -78,10 +81,12 @@ module Google
|
|
78
81
|
#
|
79
82
|
# The default and maximum values depend on the type of request:
|
80
83
|
#
|
81
|
-
# * For {::Google::Cloud::Tasks::V2::HttpRequest HTTP tasks}, the default is 10
|
84
|
+
# * For {::Google::Cloud::Tasks::V2::HttpRequest HTTP tasks}, the default is 10
|
85
|
+
# minutes. The deadline
|
82
86
|
# must be in the interval [15 seconds, 30 minutes].
|
83
87
|
#
|
84
|
-
# * For {::Google::Cloud::Tasks::V2::AppEngineHttpRequest App Engine tasks}, 0
|
88
|
+
# * For {::Google::Cloud::Tasks::V2::AppEngineHttpRequest App Engine tasks}, 0
|
89
|
+
# indicates that the
|
85
90
|
# request has the default deadline. The default deadline depends on the
|
86
91
|
# [scaling
|
87
92
|
# type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
|
@@ -110,15 +115,16 @@ module Google
|
|
110
115
|
# @return [::Google::Cloud::Tasks::V2::Attempt]
|
111
116
|
# Output only. The status of the task's first attempt.
|
112
117
|
#
|
113
|
-
# Only {::Google::Cloud::Tasks::V2::Attempt#dispatch_time dispatch_time} will be
|
114
|
-
# The other {::Google::Cloud::Tasks::V2::Attempt Attempt} information is not
|
118
|
+
# Only {::Google::Cloud::Tasks::V2::Attempt#dispatch_time dispatch_time} will be
|
119
|
+
# set. The other {::Google::Cloud::Tasks::V2::Attempt Attempt} information is not
|
120
|
+
# retained by Cloud Tasks.
|
115
121
|
# @!attribute [rw] last_attempt
|
116
122
|
# @return [::Google::Cloud::Tasks::V2::Attempt]
|
117
123
|
# Output only. The status of the task's last attempt.
|
118
124
|
# @!attribute [rw] view
|
119
125
|
# @return [::Google::Cloud::Tasks::V2::Task::View]
|
120
|
-
# Output only. The view specifies which subset of the
|
121
|
-
# been returned.
|
126
|
+
# Output only. The view specifies which subset of the
|
127
|
+
# {::Google::Cloud::Tasks::V2::Task Task} has been returned.
|
122
128
|
class Task
|
123
129
|
include ::Google::Protobuf::MessageExts
|
124
130
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -138,7 +144,8 @@ module Google
|
|
138
144
|
# sensitive data.
|
139
145
|
#
|
140
146
|
# This view does not include the
|
141
|
-
#
|
147
|
+
# [body in
|
148
|
+
# AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest.body].
|
142
149
|
# Bodies are desirable to return only when needed, because they
|
143
150
|
# can be large and because of the sensitivity of the data that you
|
144
151
|
# choose to store in it.
|
@@ -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-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.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: 2023-
|
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: 0.
|
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: 0.
|
29
|
+
version: 0.19.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|