google-cloud-tasks-v2beta2 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +3 -3
- data/lib/google/cloud/tasks/v2beta2/cloud_tasks/client.rb +227 -202
- data/lib/google/cloud/tasks/v2beta2/cloud_tasks/rest/client.rb +2249 -0
- data/lib/google/cloud/tasks/v2beta2/cloud_tasks/rest/service_stub.rb +1242 -0
- data/lib/google/cloud/tasks/v2beta2/cloud_tasks/rest.rb +53 -0
- data/lib/google/cloud/tasks/v2beta2/cloud_tasks.rb +7 -1
- data/lib/google/cloud/tasks/v2beta2/cloudtasks_pb.rb +29 -87
- data/lib/google/cloud/tasks/v2beta2/cloudtasks_services_pb.rb +68 -56
- data/lib/google/cloud/tasks/v2beta2/queue_pb.rb +27 -44
- data/lib/google/cloud/tasks/v2beta2/rest.rb +37 -0
- data/lib/google/cloud/tasks/v2beta2/target_pb.rb +23 -32
- data/lib/google/cloud/tasks/v2beta2/task_pb.rb +27 -30
- data/lib/google/cloud/tasks/v2beta2/version.rb +1 -1
- data/lib/google/cloud/tasks/v2beta2.rb +7 -2
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/tasks/v2beta2/cloudtasks.rb +193 -159
- data/proto_docs/google/cloud/tasks/v2beta2/queue.rb +97 -73
- data/proto_docs/google/cloud/tasks/v2beta2/target.rb +88 -63
- data/proto_docs/google/cloud/tasks/v2beta2/task.rb +41 -24
- data/proto_docs/google/iam/v1/policy.rb +8 -4
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +14 -8
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/rest"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/tasks/v2beta2/version"
|
24
|
+
|
25
|
+
require "google/cloud/tasks/v2beta2/cloud_tasks/credentials"
|
26
|
+
require "google/cloud/tasks/v2beta2/cloud_tasks/paths"
|
27
|
+
require "google/cloud/tasks/v2beta2/cloud_tasks/rest/client"
|
28
|
+
|
29
|
+
module Google
|
30
|
+
module Cloud
|
31
|
+
module Tasks
|
32
|
+
module V2beta2
|
33
|
+
##
|
34
|
+
# Cloud Tasks allows developers to manage the execution of background
|
35
|
+
# work in their applications.
|
36
|
+
#
|
37
|
+
# To load this service and instantiate a REST client:
|
38
|
+
#
|
39
|
+
# require "google/cloud/tasks/v2beta2/cloud_tasks/rest"
|
40
|
+
# client = ::Google::Cloud::Tasks::V2beta2::CloudTasks::Rest::Client.new
|
41
|
+
#
|
42
|
+
module CloudTasks
|
43
|
+
# Client for the REST transport
|
44
|
+
module Rest
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
53
|
+
require "google/cloud/tasks/v2beta2/cloud_tasks/rest/helpers" if ::File.file? helper_path
|
@@ -25,6 +25,7 @@ require "google/cloud/tasks/v2beta2/version"
|
|
25
25
|
require "google/cloud/tasks/v2beta2/cloud_tasks/credentials"
|
26
26
|
require "google/cloud/tasks/v2beta2/cloud_tasks/paths"
|
27
27
|
require "google/cloud/tasks/v2beta2/cloud_tasks/client"
|
28
|
+
require "google/cloud/tasks/v2beta2/cloud_tasks/rest"
|
28
29
|
|
29
30
|
module Google
|
30
31
|
module Cloud
|
@@ -34,11 +35,16 @@ module Google
|
|
34
35
|
# Cloud Tasks allows developers to manage the execution of background
|
35
36
|
# work in their applications.
|
36
37
|
#
|
37
|
-
#
|
38
|
+
# @example Load this service and instantiate a gRPC client
|
38
39
|
#
|
39
40
|
# require "google/cloud/tasks/v2beta2/cloud_tasks"
|
40
41
|
# client = ::Google::Cloud::Tasks::V2beta2::CloudTasks::Client.new
|
41
42
|
#
|
43
|
+
# @example Load this service and instantiate a REST client
|
44
|
+
#
|
45
|
+
# require "google/cloud/tasks/v2beta2/cloud_tasks/rest"
|
46
|
+
# client = ::Google::Cloud::Tasks::V2beta2::CloudTasks::Rest::Client.new
|
47
|
+
#
|
42
48
|
module CloudTasks
|
43
49
|
end
|
44
50
|
end
|
@@ -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/v2beta2/cloudtasks.proto
|
3
4
|
|
@@ -16,95 +17,36 @@ require 'google/protobuf/empty_pb'
|
|
16
17
|
require 'google/protobuf/field_mask_pb'
|
17
18
|
require 'google/protobuf/timestamp_pb'
|
18
19
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
optional :name, :string, 1
|
46
|
-
end
|
47
|
-
add_message "google.cloud.tasks.v2beta2.PurgeQueueRequest" do
|
48
|
-
optional :name, :string, 1
|
49
|
-
end
|
50
|
-
add_message "google.cloud.tasks.v2beta2.PauseQueueRequest" do
|
51
|
-
optional :name, :string, 1
|
52
|
-
end
|
53
|
-
add_message "google.cloud.tasks.v2beta2.ResumeQueueRequest" do
|
54
|
-
optional :name, :string, 1
|
55
|
-
end
|
56
|
-
add_message "google.cloud.tasks.v2beta2.ListTasksRequest" do
|
57
|
-
optional :parent, :string, 1
|
58
|
-
optional :response_view, :enum, 2, "google.cloud.tasks.v2beta2.Task.View"
|
59
|
-
optional :page_size, :int32, 4
|
60
|
-
optional :page_token, :string, 5
|
61
|
-
end
|
62
|
-
add_message "google.cloud.tasks.v2beta2.ListTasksResponse" do
|
63
|
-
repeated :tasks, :message, 1, "google.cloud.tasks.v2beta2.Task"
|
64
|
-
optional :next_page_token, :string, 2
|
65
|
-
end
|
66
|
-
add_message "google.cloud.tasks.v2beta2.GetTaskRequest" do
|
67
|
-
optional :name, :string, 1
|
68
|
-
optional :response_view, :enum, 2, "google.cloud.tasks.v2beta2.Task.View"
|
69
|
-
end
|
70
|
-
add_message "google.cloud.tasks.v2beta2.CreateTaskRequest" do
|
71
|
-
optional :parent, :string, 1
|
72
|
-
optional :task, :message, 2, "google.cloud.tasks.v2beta2.Task"
|
73
|
-
optional :response_view, :enum, 3, "google.cloud.tasks.v2beta2.Task.View"
|
74
|
-
end
|
75
|
-
add_message "google.cloud.tasks.v2beta2.DeleteTaskRequest" do
|
76
|
-
optional :name, :string, 1
|
77
|
-
end
|
78
|
-
add_message "google.cloud.tasks.v2beta2.LeaseTasksRequest" do
|
79
|
-
optional :parent, :string, 1
|
80
|
-
optional :max_tasks, :int32, 2
|
81
|
-
optional :lease_duration, :message, 3, "google.protobuf.Duration"
|
82
|
-
optional :response_view, :enum, 4, "google.cloud.tasks.v2beta2.Task.View"
|
83
|
-
optional :filter, :string, 5
|
84
|
-
end
|
85
|
-
add_message "google.cloud.tasks.v2beta2.LeaseTasksResponse" do
|
86
|
-
repeated :tasks, :message, 1, "google.cloud.tasks.v2beta2.Task"
|
87
|
-
end
|
88
|
-
add_message "google.cloud.tasks.v2beta2.AcknowledgeTaskRequest" do
|
89
|
-
optional :name, :string, 1
|
90
|
-
optional :schedule_time, :message, 2, "google.protobuf.Timestamp"
|
91
|
-
end
|
92
|
-
add_message "google.cloud.tasks.v2beta2.RenewLeaseRequest" do
|
93
|
-
optional :name, :string, 1
|
94
|
-
optional :schedule_time, :message, 2, "google.protobuf.Timestamp"
|
95
|
-
optional :lease_duration, :message, 3, "google.protobuf.Duration"
|
96
|
-
optional :response_view, :enum, 4, "google.cloud.tasks.v2beta2.Task.View"
|
97
|
-
end
|
98
|
-
add_message "google.cloud.tasks.v2beta2.CancelLeaseRequest" do
|
99
|
-
optional :name, :string, 1
|
100
|
-
optional :schedule_time, :message, 2, "google.protobuf.Timestamp"
|
101
|
-
optional :response_view, :enum, 3, "google.cloud.tasks.v2beta2.Task.View"
|
102
|
-
end
|
103
|
-
add_message "google.cloud.tasks.v2beta2.RunTaskRequest" do
|
104
|
-
optional :name, :string, 1
|
105
|
-
optional :response_view, :enum, 2, "google.cloud.tasks.v2beta2.Task.View"
|
20
|
+
|
21
|
+
descriptor_data = "\n+google/cloud/tasks/v2beta2/cloudtasks.proto\x12\x1agoogle.cloud.tasks.v2beta2\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/v2beta2/queue.proto\x1a%google/cloud/tasks/v2beta2/task.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb7\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\x12\x32\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"`\n\x12ListQueuesResponse\x12\x31\n\x06queues\x18\x01 \x03(\x0b\x32!.google.cloud.tasks.v2beta2.Queue\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"|\n\x0fGetQueueRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63loudtasks.googleapis.com/Queue\x12\x32\n\tread_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\x84\x01\n\x12\x43reateQueueRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x63loudtasks.googleapis.com/Queue\x12\x35\n\x05queue\x18\x02 \x01(\x0b\x32!.google.cloud.tasks.v2beta2.QueueB\x03\xe0\x41\x02\"|\n\x12UpdateQueueRequest\x12\x35\n\x05queue\x18\x01 \x01(\x0b\x32!.google.cloud.tasks.v2beta2.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\"\xaf\x01\n\x10ListTasksRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x63loudtasks.googleapis.com/Task\x12<\n\rresponse_view\x18\x02 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\"]\n\x11ListTasksResponse\x12/\n\x05tasks\x18\x01 \x03(\x0b\x32 .google.cloud.tasks.v2beta2.Task\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x84\x01\n\x0eGetTaskRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63loudtasks.googleapis.com/Task\x12<\n\rresponse_view\x18\x02 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View\"\xbe\x01\n\x11\x43reateTaskRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x63loudtasks.googleapis.com/Task\x12\x33\n\x04task\x18\x02 \x01(\x0b\x32 .google.cloud.tasks.v2beta2.TaskB\x03\xe0\x41\x02\x12<\n\rresponse_view\x18\x03 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.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\"\xe4\x01\n\x11LeaseTasksRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x63loudtasks.googleapis.com/Task\x12\x11\n\tmax_tasks\x18\x02 \x01(\x05\x12\x36\n\x0elease_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\x12<\n\rresponse_view\x18\x04 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\"E\n\x12LeaseTasksResponse\x12/\n\x05tasks\x18\x01 \x03(\x0b\x32 .google.cloud.tasks.v2beta2.Task\"\x86\x01\n\x16\x41\x63knowledgeTaskRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63loudtasks.googleapis.com/Task\x12\x36\n\rschedule_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\"\xf7\x01\n\x11RenewLeaseRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63loudtasks.googleapis.com/Task\x12\x36\n\rschedule_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x36\n\x0elease_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\x12<\n\rresponse_view\x18\x04 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View\"\xc0\x01\n\x12\x43\x61ncelLeaseRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63loudtasks.googleapis.com/Task\x12\x36\n\rschedule_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12<\n\rresponse_view\x18\x03 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View\"\x84\x01\n\x0eRunTaskRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63loudtasks.googleapis.com/Task\x12<\n\rresponse_view\x18\x02 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View2\xd4\x1c\n\nCloudTasks\x12\xad\x01\n\nListQueues\x12-.google.cloud.tasks.v2beta2.ListQueuesRequest\x1a..google.cloud.tasks.v2beta2.ListQueuesResponse\"@\x82\xd3\xe4\x93\x02\x31\x12//v2beta2/{parent=projects/*/locations/*}/queues\xda\x41\x06parent\x12\x9a\x01\n\x08GetQueue\x12+.google.cloud.tasks.v2beta2.GetQueueRequest\x1a!.google.cloud.tasks.v2beta2.Queue\">\x82\xd3\xe4\x93\x02\x31\x12//v2beta2/{name=projects/*/locations/*/queues/*}\xda\x41\x04name\x12\xaf\x01\n\x0b\x43reateQueue\x12..google.cloud.tasks.v2beta2.CreateQueueRequest\x1a!.google.cloud.tasks.v2beta2.Queue\"M\x82\xd3\xe4\x93\x02\x38\"//v2beta2/{parent=projects/*/locations/*}/queues:\x05queue\xda\x41\x0cparent,queue\x12\xba\x01\n\x0bUpdateQueue\x12..google.cloud.tasks.v2beta2.UpdateQueueRequest\x1a!.google.cloud.tasks.v2beta2.Queue\"X\x82\xd3\xe4\x93\x02>25/v2beta2/{queue.name=projects/*/locations/*/queues/*}:\x05queue\xda\x41\x11queue,update_mask\x12\x95\x01\n\x0b\x44\x65leteQueue\x12..google.cloud.tasks.v2beta2.DeleteQueueRequest\x1a\x16.google.protobuf.Empty\">\x82\xd3\xe4\x93\x02\x31*//v2beta2/{name=projects/*/locations/*/queues/*}\xda\x41\x04name\x12\xa7\x01\n\nPurgeQueue\x12-.google.cloud.tasks.v2beta2.PurgeQueueRequest\x1a!.google.cloud.tasks.v2beta2.Queue\"G\x82\xd3\xe4\x93\x02:\"5/v2beta2/{name=projects/*/locations/*/queues/*}:purge:\x01*\xda\x41\x04name\x12\xa7\x01\n\nPauseQueue\x12-.google.cloud.tasks.v2beta2.PauseQueueRequest\x1a!.google.cloud.tasks.v2beta2.Queue\"G\x82\xd3\xe4\x93\x02:\"5/v2beta2/{name=projects/*/locations/*/queues/*}:pause:\x01*\xda\x41\x04name\x12\xaa\x01\n\x0bResumeQueue\x12..google.cloud.tasks.v2beta2.ResumeQueueRequest\x1a!.google.cloud.tasks.v2beta2.Queue\"H\x82\xd3\xe4\x93\x02;\"6/v2beta2/{name=projects/*/locations/*/queues/*}:resume:\x01*\xda\x41\x04name\x12\xa1\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"V\x82\xd3\xe4\x93\x02\x45\"@/v2beta2/{resource=projects/*/locations/*/queues/*}:getIamPolicy:\x01*\xda\x41\x08resource\x12\xa8\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"]\x82\xd3\xe4\x93\x02\x45\"@/v2beta2/{resource=projects/*/locations/*/queues/*}:setIamPolicy:\x01*\xda\x41\x0fresource,policy\x12\xd3\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"h\x82\xd3\xe4\x93\x02K\"F/v2beta2/{resource=projects/*/locations/*/queues/*}:testIamPermissions:\x01*\xda\x41\x14resource,permissions\x12\xb2\x01\n\tListTasks\x12,.google.cloud.tasks.v2beta2.ListTasksRequest\x1a-.google.cloud.tasks.v2beta2.ListTasksResponse\"H\x82\xd3\xe4\x93\x02\x39\x12\x37/v2beta2/{parent=projects/*/locations/*/queues/*}/tasks\xda\x41\x06parent\x12\x9f\x01\n\x07GetTask\x12*.google.cloud.tasks.v2beta2.GetTaskRequest\x1a .google.cloud.tasks.v2beta2.Task\"F\x82\xd3\xe4\x93\x02\x39\x12\x37/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}\xda\x41\x04name\x12\xaf\x01\n\nCreateTask\x12-.google.cloud.tasks.v2beta2.CreateTaskRequest\x1a .google.cloud.tasks.v2beta2.Task\"P\x82\xd3\xe4\x93\x02<\"7/v2beta2/{parent=projects/*/locations/*/queues/*}/tasks:\x01*\xda\x41\x0bparent,task\x12\x9b\x01\n\nDeleteTask\x12-.google.cloud.tasks.v2beta2.DeleteTaskRequest\x1a\x16.google.protobuf.Empty\"F\x82\xd3\xe4\x93\x02\x39*7/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}\xda\x41\x04name\x12\xcd\x01\n\nLeaseTasks\x12-.google.cloud.tasks.v2beta2.LeaseTasksRequest\x1a..google.cloud.tasks.v2beta2.LeaseTasksResponse\"`\x82\xd3\xe4\x93\x02\x42\"=/v2beta2/{parent=projects/*/locations/*/queues/*}/tasks:lease:\x01*\xda\x41\x15parent,lease_duration\x12\xc2\x01\n\x0f\x41\x63knowledgeTask\x12\x32.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest\x1a\x16.google.protobuf.Empty\"c\x82\xd3\xe4\x93\x02H\"C/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:acknowledge:\x01*\xda\x41\x12name,schedule_time\x12\xd0\x01\n\nRenewLease\x12-.google.cloud.tasks.v2beta2.RenewLeaseRequest\x1a .google.cloud.tasks.v2beta2.Task\"q\x82\xd3\xe4\x93\x02G\"B/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:renewLease:\x01*\xda\x41!name,schedule_time,lease_duration\x12\xc4\x01\n\x0b\x43\x61ncelLease\x12..google.cloud.tasks.v2beta2.CancelLeaseRequest\x1a .google.cloud.tasks.v2beta2.Task\"c\x82\xd3\xe4\x93\x02H\"C/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:cancelLease:\x01*\xda\x41\x12name,schedule_time\x12\xa6\x01\n\x07RunTask\x12*.google.cloud.tasks.v2beta2.RunTaskRequest\x1a .google.cloud.tasks.v2beta2.Task\"M\x82\xd3\xe4\x93\x02@\";/v2beta2/{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-platformB\x80\x01\n\x1e\x63om.google.cloud.tasks.v2beta2B\x0f\x43loudTasksProtoP\x01ZCcloud.google.com/go/cloudtasks/apiv2beta2/cloudtaskspb;cloudtaskspb\xa2\x02\x05TASKSb\x06proto3"
|
22
|
+
|
23
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
24
|
+
|
25
|
+
begin
|
26
|
+
pool.add_serialized_file(descriptor_data)
|
27
|
+
rescue TypeError => e
|
28
|
+
# Compatibility code: will be removed in the next major version.
|
29
|
+
require 'google/protobuf/descriptor_pb'
|
30
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
31
|
+
parsed.clear_dependency
|
32
|
+
serialized = parsed.class.encode(parsed)
|
33
|
+
file = pool.add_serialized_file(serialized)
|
34
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
35
|
+
imports = [
|
36
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
37
|
+
["google.cloud.tasks.v2beta2.Queue", "google/cloud/tasks/v2beta2/queue.proto"],
|
38
|
+
["google.cloud.tasks.v2beta2.Task", "google/cloud/tasks/v2beta2/task.proto"],
|
39
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
40
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
41
|
+
]
|
42
|
+
imports.each do |type_name, expected_filename|
|
43
|
+
import_file = pool.lookup(type_name).file_descriptor
|
44
|
+
if import_file.name != expected_filename
|
45
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
106
46
|
end
|
107
47
|
end
|
48
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
49
|
+
warn "This will become an error in the next major version."
|
108
50
|
end
|
109
51
|
|
110
52
|
module Google
|
@@ -43,8 +43,8 @@ module Google
|
|
43
43
|
# Creates a queue.
|
44
44
|
#
|
45
45
|
# Queues created with this method allow tasks to live for a maximum of 31
|
46
|
-
# days. After a task is 31 days old, the task will be deleted regardless of
|
47
|
-
# it was dispatched or not.
|
46
|
+
# days. After a task is 31 days old, the task will be deleted regardless of
|
47
|
+
# whether it was dispatched or not.
|
48
48
|
#
|
49
49
|
# WARNING: Using this method may have unintended side effects if you are
|
50
50
|
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
@@ -59,8 +59,8 @@ module Google
|
|
59
59
|
# the queue if it does exist.
|
60
60
|
#
|
61
61
|
# Queues created with this method allow tasks to live for a maximum of 31
|
62
|
-
# days. After a task is 31 days old, the task will be deleted regardless of
|
63
|
-
# it was dispatched or not.
|
62
|
+
# days. After a task is 31 days old, the task will be deleted regardless of
|
63
|
+
# whether it was dispatched or not.
|
64
64
|
#
|
65
65
|
# WARNING: Using this method may have unintended side effects if you are
|
66
66
|
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
@@ -94,17 +94,20 @@ module Google
|
|
94
94
|
#
|
95
95
|
# If a queue is paused then the system will stop dispatching tasks
|
96
96
|
# until the queue is resumed via
|
97
|
-
# [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue]. Tasks can
|
98
|
-
# when the queue is paused. A queue is paused if its
|
99
|
-
# [state][google.cloud.tasks.v2beta2.Queue.state] is
|
97
|
+
# [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue]. Tasks can
|
98
|
+
# still be added when the queue is paused. A queue is paused if its
|
99
|
+
# [state][google.cloud.tasks.v2beta2.Queue.state] is
|
100
|
+
# [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED].
|
100
101
|
rpc :PauseQueue, ::Google::Cloud::Tasks::V2beta2::PauseQueueRequest, ::Google::Cloud::Tasks::V2beta2::Queue
|
101
102
|
# Resume a queue.
|
102
103
|
#
|
103
104
|
# This method resumes a queue after it has been
|
104
105
|
# [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED] or
|
105
|
-
# [DISABLED][google.cloud.tasks.v2beta2.Queue.State.DISABLED]. The state of a
|
106
|
-
# in the queue's
|
107
|
-
#
|
106
|
+
# [DISABLED][google.cloud.tasks.v2beta2.Queue.State.DISABLED]. The state of a
|
107
|
+
# queue is stored in the queue's
|
108
|
+
# [state][google.cloud.tasks.v2beta2.Queue.state]; after calling this method
|
109
|
+
# it will be set to
|
110
|
+
# [RUNNING][google.cloud.tasks.v2beta2.Queue.State.RUNNING].
|
108
111
|
#
|
109
112
|
# WARNING: Resuming many high-QPS queues at the same time can
|
110
113
|
# lead to target overloading. If you are resuming high-QPS
|
@@ -112,9 +115,9 @@ module Google
|
|
112
115
|
# [Managing Cloud Tasks Scaling
|
113
116
|
# Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
|
114
117
|
rpc :ResumeQueue, ::Google::Cloud::Tasks::V2beta2::ResumeQueueRequest, ::Google::Cloud::Tasks::V2beta2::Queue
|
115
|
-
# Gets the access control policy for a
|
116
|
-
# Returns an empty policy if the
|
117
|
-
# set.
|
118
|
+
# Gets the access control policy for a
|
119
|
+
# [Queue][google.cloud.tasks.v2beta2.Queue]. Returns an empty policy if the
|
120
|
+
# resource exists and does not have a policy set.
|
118
121
|
#
|
119
122
|
# Authorization requires the following
|
120
123
|
# [Google IAM](https://cloud.google.com/iam) permission on the specified
|
@@ -122,8 +125,8 @@ module Google
|
|
122
125
|
#
|
123
126
|
# * `cloudtasks.queues.getIamPolicy`
|
124
127
|
rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
|
125
|
-
# Sets the access control policy for a
|
126
|
-
# policy.
|
128
|
+
# Sets the access control policy for a
|
129
|
+
# [Queue][google.cloud.tasks.v2beta2.Queue]. Replaces any existing policy.
|
127
130
|
#
|
128
131
|
# Note: The Cloud Console does not check queue-level IAM permissions yet.
|
129
132
|
# Project-level permissions are required to use the Cloud Console.
|
@@ -134,9 +137,10 @@ module Google
|
|
134
137
|
#
|
135
138
|
# * `cloudtasks.queues.setIamPolicy`
|
136
139
|
rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
|
137
|
-
# Returns permissions that a caller has on a
|
138
|
-
# If the resource does not exist,
|
139
|
-
# permissions, not a
|
140
|
+
# Returns permissions that a caller has on a
|
141
|
+
# [Queue][google.cloud.tasks.v2beta2.Queue]. If the resource does not exist,
|
142
|
+
# this will return an empty set of permissions, not a
|
143
|
+
# [NOT_FOUND][google.rpc.Code.NOT_FOUND] error.
|
140
144
|
#
|
141
145
|
# Note: This operation is designed to be used for building permission-aware
|
142
146
|
# UIs and command-line tools, not for authorization checking. This operation
|
@@ -144,10 +148,10 @@ module Google
|
|
144
148
|
rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
|
145
149
|
# Lists the tasks in a queue.
|
146
150
|
#
|
147
|
-
# By default, only the [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]
|
148
|
-
# due to performance considerations;
|
149
|
-
# [response_view][google.cloud.tasks.v2beta2.ListTasksRequest.response_view]
|
150
|
-
# subset of information which is returned.
|
151
|
+
# By default, only the [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]
|
152
|
+
# view is retrieved due to performance considerations;
|
153
|
+
# [response_view][google.cloud.tasks.v2beta2.ListTasksRequest.response_view]
|
154
|
+
# controls the subset of information which is returned.
|
151
155
|
#
|
152
156
|
# The tasks may be returned in any order. The ordering may change at any
|
153
157
|
# time.
|
@@ -158,9 +162,11 @@ module Google
|
|
158
162
|
#
|
159
163
|
# Tasks cannot be updated after creation; there is no UpdateTask command.
|
160
164
|
#
|
161
|
-
# * For [App Engine queues][google.cloud.tasks.v2beta2.AppEngineHttpTarget],
|
165
|
+
# * For [App Engine queues][google.cloud.tasks.v2beta2.AppEngineHttpTarget],
|
166
|
+
# the maximum task size is
|
162
167
|
# 100KB.
|
163
|
-
# * For [pull queues][google.cloud.tasks.v2beta2.PullTarget], the maximum
|
168
|
+
# * For [pull queues][google.cloud.tasks.v2beta2.PullTarget], the maximum
|
169
|
+
# task size is 1MB.
|
164
170
|
rpc :CreateTask, ::Google::Cloud::Tasks::V2beta2::CreateTaskRequest, ::Google::Cloud::Tasks::V2beta2::Task
|
165
171
|
# Deletes a task.
|
166
172
|
#
|
@@ -173,18 +179,19 @@ module Google
|
|
173
179
|
#
|
174
180
|
# This method is invoked by the worker to obtain a lease. The
|
175
181
|
# worker must acknowledge the task via
|
176
|
-
# [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask]
|
177
|
-
# performed the work associated with the task.
|
178
|
-
#
|
179
|
-
# The [payload][google.cloud.tasks.v2beta2.PullMessage.payload] is intended
|
180
|
-
# the worker needs to perform the work associated with the
|
181
|
-
# return the payloads in the
|
182
|
-
# [
|
183
|
-
# [
|
184
|
-
#
|
185
|
-
#
|
186
|
-
#
|
187
|
-
#
|
182
|
+
# [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask]
|
183
|
+
# after they have performed the work associated with the task.
|
184
|
+
#
|
185
|
+
# The [payload][google.cloud.tasks.v2beta2.PullMessage.payload] is intended
|
186
|
+
# to store data that the worker needs to perform the work associated with the
|
187
|
+
# task. To return the payloads in the
|
188
|
+
# [response][google.cloud.tasks.v2beta2.LeaseTasksResponse], set
|
189
|
+
# [response_view][google.cloud.tasks.v2beta2.LeaseTasksRequest.response_view]
|
190
|
+
# to [FULL][google.cloud.tasks.v2beta2.Task.View.FULL].
|
191
|
+
#
|
192
|
+
# A maximum of 10 qps of
|
193
|
+
# [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] requests are
|
194
|
+
# allowed per queue. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED]
|
188
195
|
# is returned when this limit is
|
189
196
|
# exceeded. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED]
|
190
197
|
# is also returned when
|
@@ -194,12 +201,13 @@ module Google
|
|
194
201
|
# Acknowledges a pull task.
|
195
202
|
#
|
196
203
|
# The worker, that is, the entity that
|
197
|
-
# [leased][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] this task must
|
198
|
-
# to indicate that the work associated with the task has
|
204
|
+
# [leased][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] this task must
|
205
|
+
# call this method to indicate that the work associated with the task has
|
206
|
+
# finished.
|
199
207
|
#
|
200
208
|
# The worker must acknowledge a task within the
|
201
|
-
# [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration]
|
202
|
-
# will expire and the task will become available to be leased
|
209
|
+
# [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration]
|
210
|
+
# or the lease will expire and the task will become available to be leased
|
203
211
|
# again. After the task is acknowledged, it will not be returned
|
204
212
|
# by a later [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks],
|
205
213
|
# [GetTask][google.cloud.tasks.v2beta2.CloudTasks.GetTask], or
|
@@ -209,42 +217,46 @@ module Google
|
|
209
217
|
#
|
210
218
|
# The worker can use this method to extend the lease by a new
|
211
219
|
# duration, starting from now. The new task lease will be
|
212
|
-
# returned in the task's
|
220
|
+
# returned in the task's
|
221
|
+
# [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time].
|
213
222
|
rpc :RenewLease, ::Google::Cloud::Tasks::V2beta2::RenewLeaseRequest, ::Google::Cloud::Tasks::V2beta2::Task
|
214
223
|
# Cancel a pull task's lease.
|
215
224
|
#
|
216
225
|
# The worker can use this method to cancel a task's lease by
|
217
|
-
# setting its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]
|
218
|
-
# make the task available to be leased to the next caller
|
219
|
-
# [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks].
|
226
|
+
# setting its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]
|
227
|
+
# to now. This will make the task available to be leased to the next caller
|
228
|
+
# of [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks].
|
220
229
|
rpc :CancelLease, ::Google::Cloud::Tasks::V2beta2::CancelLeaseRequest, ::Google::Cloud::Tasks::V2beta2::Task
|
221
230
|
# Forces a task to run now.
|
222
231
|
#
|
223
232
|
# When this method is called, Cloud Tasks will dispatch the task, even if
|
224
|
-
# the task is already running, the queue has reached its
|
225
|
-
#
|
233
|
+
# the task is already running, the queue has reached its
|
234
|
+
# [RateLimits][google.cloud.tasks.v2beta2.RateLimits] or is
|
235
|
+
# [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED].
|
226
236
|
#
|
227
237
|
# This command is meant to be used for manual debugging. For
|
228
|
-
# example, [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] can be
|
229
|
-
# task after a fix has been made or to manually force
|
230
|
-
# dispatched now.
|
238
|
+
# example, [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] can be
|
239
|
+
# used to retry a failed task after a fix has been made or to manually force
|
240
|
+
# a task to be dispatched now.
|
231
241
|
#
|
232
242
|
# The dispatched task is returned. That is, the task that is returned
|
233
|
-
# contains the [status][google.cloud.tasks.v2beta2.Task.status] after the
|
234
|
-
# before the task is received by its target.
|
243
|
+
# contains the [status][google.cloud.tasks.v2beta2.Task.status] after the
|
244
|
+
# task is dispatched but before the task is received by its target.
|
235
245
|
#
|
236
246
|
# If Cloud Tasks receives a successful response from the task's
|
237
247
|
# target, then the task will be deleted; otherwise the task's
|
238
|
-
# [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] will be
|
239
|
-
#
|
240
|
-
#
|
248
|
+
# [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] will be
|
249
|
+
# reset to the time that
|
250
|
+
# [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] was called plus
|
251
|
+
# the retry delay specified in the queue's
|
252
|
+
# [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig].
|
241
253
|
#
|
242
254
|
# [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] returns
|
243
255
|
# [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a
|
244
256
|
# task that has already succeeded or permanently failed.
|
245
257
|
#
|
246
|
-
# [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] cannot be called
|
247
|
-
# [pull task][google.cloud.tasks.v2beta2.PullMessage].
|
258
|
+
# [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] cannot be called
|
259
|
+
# on a [pull task][google.cloud.tasks.v2beta2.PullMessage].
|
248
260
|
rpc :RunTask, ::Google::Cloud::Tasks::V2beta2::RunTaskRequest, ::Google::Cloud::Tasks::V2beta2::Task
|
249
261
|
end
|
250
262
|
|
@@ -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/v2beta2/queue.proto
|
3
4
|
|
@@ -8,53 +9,35 @@ require 'google/api/resource_pb'
|
|
8
9
|
require 'google/cloud/tasks/v2beta2/target_pb'
|
9
10
|
require 'google/protobuf/duration_pb'
|
10
11
|
require 'google/protobuf/timestamp_pb'
|
11
|
-
require 'google/api/annotations_pb'
|
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 :max_burst_size, :int32, 2
|
38
|
-
optional :max_concurrent_tasks, :int32, 3
|
39
|
-
end
|
40
|
-
add_message "google.cloud.tasks.v2beta2.RetryConfig" do
|
41
|
-
optional :max_retry_duration, :message, 3, "google.protobuf.Duration"
|
42
|
-
optional :min_backoff, :message, 4, "google.protobuf.Duration"
|
43
|
-
optional :max_backoff, :message, 5, "google.protobuf.Duration"
|
44
|
-
optional :max_doublings, :int32, 6
|
45
|
-
oneof :num_attempts do
|
46
|
-
optional :max_attempts, :int32, 1
|
47
|
-
optional :unlimited_attempts, :bool, 2
|
48
|
-
end
|
49
|
-
end
|
50
|
-
add_message "google.cloud.tasks.v2beta2.QueueStats" do
|
51
|
-
optional :tasks_count, :int64, 1
|
52
|
-
optional :oldest_estimated_arrival_time, :message, 2, "google.protobuf.Timestamp"
|
53
|
-
optional :executed_last_minute_count, :int64, 3
|
54
|
-
optional :concurrent_dispatches_count, :int64, 4
|
55
|
-
optional :effective_execution_rate, :double, 5
|
13
|
+
|
14
|
+
descriptor_data = "\n&google/cloud/tasks/v2beta2/queue.proto\x12\x1agoogle.cloud.tasks.v2beta2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\'google/cloud/tasks/v2beta2/target.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xda\x05\n\x05Queue\x12\x0c\n\x04name\x18\x01 \x01(\t\x12Q\n\x16\x61pp_engine_http_target\x18\x03 \x01(\x0b\x32/.google.cloud.tasks.v2beta2.AppEngineHttpTargetH\x00\x12=\n\x0bpull_target\x18\x04 \x01(\x0b\x32&.google.cloud.tasks.v2beta2.PullTargetH\x00\x12;\n\x0brate_limits\x18\x05 \x01(\x0b\x32&.google.cloud.tasks.v2beta2.RateLimits\x12=\n\x0cretry_config\x18\x06 \x01(\x0b\x32\'.google.cloud.tasks.v2beta2.RetryConfig\x12\x36\n\x05state\x18\x07 \x01(\x0e\x32\'.google.cloud.tasks.v2beta2.Queue.State\x12.\n\npurge_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x08task_ttl\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x30\n\rtombstone_ttl\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12:\n\x05stats\x18\x10 \x01(\x0b\x32&.google.cloud.tasks.v2beta2.QueueStatsB\x03\xe0\x41\x03\"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}B\r\n\x0btarget_type\"k\n\nRateLimits\x12\'\n\x1fmax_tasks_dispatched_per_second\x18\x01 \x01(\x01\x12\x16\n\x0emax_burst_size\x18\x02 \x01(\x05\x12\x1c\n\x14max_concurrent_tasks\x18\x03 \x01(\x05\"\x81\x02\n\x0bRetryConfig\x12\x16\n\x0cmax_attempts\x18\x01 \x01(\x05H\x00\x12\x1c\n\x12unlimited_attempts\x18\x02 \x01(\x08H\x00\x12\x35\n\x12max_retry_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12.\n\x0bmin_backoff\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12.\n\x0bmax_backoff\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\rmax_doublings\x18\x06 \x01(\x05\x42\x0e\n\x0cnum_attempts\"\xe8\x01\n\nQueueStats\x12\x18\n\x0btasks_count\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12\x46\n\x1doldest_estimated_arrival_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\'\n\x1a\x65xecuted_last_minute_count\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12(\n\x1b\x63oncurrent_dispatches_count\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03\x12%\n\x18\x65\x66\x66\x65\x63tive_execution_rate\x18\x05 \x01(\x01\x42\x03\xe0\x41\x03\x42s\n\x1e\x63om.google.cloud.tasks.v2beta2B\nQueueProtoP\x01ZCcloud.google.com/go/cloudtasks/apiv2beta2/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.v2beta2.AppEngineHttpTarget", "google/cloud/tasks/v2beta2/target.proto"],
|
30
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
31
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
32
|
+
]
|
33
|
+
imports.each do |type_name, expected_filename|
|
34
|
+
import_file = pool.lookup(type_name).file_descriptor
|
35
|
+
if import_file.name != expected_filename
|
36
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
56
37
|
end
|
57
38
|
end
|
39
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
40
|
+
warn "This will become an error in the next major version."
|
58
41
|
end
|
59
42
|
|
60
43
|
module Google
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/tasks/v2beta2/cloud_tasks/rest"
|
20
|
+
require "google/cloud/tasks/v2beta2/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Tasks
|
25
|
+
##
|
26
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
#
|
30
|
+
# require "google/cloud/tasks/v2beta2/rest"
|
31
|
+
# client = ::Google::Cloud::Tasks::V2beta2::CloudTasks::Rest::Client.new
|
32
|
+
#
|
33
|
+
module V2beta2
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|