google-cloud-tasks 1.5.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +2 -1
- data/AUTHENTICATION.md +51 -54
- data/LICENSE.md +203 -0
- data/MIGRATING.md +274 -0
- data/README.md +37 -24
- data/lib/{google/cloud/tasks/v2beta2/doc/google/protobuf/empty.rb → google-cloud-tasks.rb} +4 -14
- data/lib/google/cloud/tasks.rb +82 -117
- data/lib/google/cloud/tasks/version.rb +6 -2
- metadata +104 -113
- data/LICENSE +0 -201
- data/lib/google/cloud/tasks/v2.rb +0 -147
- data/lib/google/cloud/tasks/v2/cloud_tasks_client.rb +0 -1233
- data/lib/google/cloud/tasks/v2/cloud_tasks_client_config.json +0 -106
- data/lib/google/cloud/tasks/v2/cloudtasks_pb.rb +0 -100
- data/lib/google/cloud/tasks/v2/cloudtasks_services_pb.rb +0 -203
- data/lib/google/cloud/tasks/v2/credentials.rb +0 -41
- data/lib/google/cloud/tasks/v2/doc/google/cloud/tasks/v2/cloudtasks.rb +0 -312
- data/lib/google/cloud/tasks/v2/doc/google/cloud/tasks/v2/queue.rb +0 -348
- data/lib/google/cloud/tasks/v2/doc/google/cloud/tasks/v2/target.rb +0 -414
- data/lib/google/cloud/tasks/v2/doc/google/cloud/tasks/v2/task.rb +0 -175
- data/lib/google/cloud/tasks/v2/doc/google/iam/v1/iam_policy.rb +0 -64
- data/lib/google/cloud/tasks/v2/doc/google/iam/v1/options.rb +0 -33
- data/lib/google/cloud/tasks/v2/doc/google/iam/v1/policy.rb +0 -151
- data/lib/google/cloud/tasks/v2/doc/google/protobuf/any.rb +0 -131
- data/lib/google/cloud/tasks/v2/doc/google/protobuf/duration.rb +0 -91
- data/lib/google/cloud/tasks/v2/doc/google/protobuf/empty.rb +0 -29
- data/lib/google/cloud/tasks/v2/doc/google/protobuf/field_mask.rb +0 -222
- data/lib/google/cloud/tasks/v2/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/google/cloud/tasks/v2/doc/google/rpc/status.rb +0 -39
- data/lib/google/cloud/tasks/v2/doc/google/type/expr.rb +0 -45
- data/lib/google/cloud/tasks/v2/helpers.rb +0 -49
- data/lib/google/cloud/tasks/v2/queue_pb.rb +0 -56
- data/lib/google/cloud/tasks/v2/target_pb.rb +0 -66
- data/lib/google/cloud/tasks/v2/task_pb.rb +0 -51
- data/lib/google/cloud/tasks/v2beta2.rb +0 -147
- data/lib/google/cloud/tasks/v2beta2/cloud_tasks_client.rb +0 -1605
- data/lib/google/cloud/tasks/v2beta2/cloud_tasks_client_config.json +0 -126
- data/lib/google/cloud/tasks/v2beta2/cloudtasks_pb.rb +0 -133
- data/lib/google/cloud/tasks/v2beta2/cloudtasks_services_pb.rb +0 -258
- data/lib/google/cloud/tasks/v2beta2/credentials.rb +0 -41
- data/lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/cloudtasks.rb +0 -483
- data/lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/queue.rb +0 -336
- data/lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/target.rb +0 -377
- data/lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/task.rb +0 -166
- data/lib/google/cloud/tasks/v2beta2/doc/google/iam/v1/iam_policy.rb +0 -64
- data/lib/google/cloud/tasks/v2beta2/doc/google/iam/v1/options.rb +0 -33
- data/lib/google/cloud/tasks/v2beta2/doc/google/iam/v1/policy.rb +0 -151
- data/lib/google/cloud/tasks/v2beta2/doc/google/protobuf/any.rb +0 -131
- data/lib/google/cloud/tasks/v2beta2/doc/google/protobuf/duration.rb +0 -91
- data/lib/google/cloud/tasks/v2beta2/doc/google/protobuf/field_mask.rb +0 -222
- data/lib/google/cloud/tasks/v2beta2/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/google/cloud/tasks/v2beta2/doc/google/rpc/status.rb +0 -39
- data/lib/google/cloud/tasks/v2beta2/doc/google/type/expr.rb +0 -45
- data/lib/google/cloud/tasks/v2beta2/helpers.rb +0 -49
- data/lib/google/cloud/tasks/v2beta2/queue_pb.rb +0 -58
- data/lib/google/cloud/tasks/v2beta2/target_pb.rb +0 -54
- data/lib/google/cloud/tasks/v2beta2/task_pb.rb +0 -54
- data/lib/google/cloud/tasks/v2beta3.rb +0 -147
- data/lib/google/cloud/tasks/v2beta3/cloud_tasks_client.rb +0 -1233
- data/lib/google/cloud/tasks/v2beta3/cloud_tasks_client_config.json +0 -106
- data/lib/google/cloud/tasks/v2beta3/cloudtasks_pb.rb +0 -101
- data/lib/google/cloud/tasks/v2beta3/cloudtasks_services_pb.rb +0 -203
- data/lib/google/cloud/tasks/v2beta3/credentials.rb +0 -41
- data/lib/google/cloud/tasks/v2beta3/doc/google/cloud/tasks/v2beta3/cloudtasks.rb +0 -312
- data/lib/google/cloud/tasks/v2beta3/doc/google/cloud/tasks/v2beta3/queue.rb +0 -342
- data/lib/google/cloud/tasks/v2beta3/doc/google/cloud/tasks/v2beta3/target.rb +0 -431
- data/lib/google/cloud/tasks/v2beta3/doc/google/cloud/tasks/v2beta3/task.rb +0 -177
- data/lib/google/cloud/tasks/v2beta3/doc/google/iam/v1/iam_policy.rb +0 -64
- data/lib/google/cloud/tasks/v2beta3/doc/google/iam/v1/options.rb +0 -33
- data/lib/google/cloud/tasks/v2beta3/doc/google/iam/v1/policy.rb +0 -151
- data/lib/google/cloud/tasks/v2beta3/doc/google/protobuf/any.rb +0 -131
- data/lib/google/cloud/tasks/v2beta3/doc/google/protobuf/duration.rb +0 -91
- data/lib/google/cloud/tasks/v2beta3/doc/google/protobuf/empty.rb +0 -29
- data/lib/google/cloud/tasks/v2beta3/doc/google/protobuf/field_mask.rb +0 -222
- data/lib/google/cloud/tasks/v2beta3/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/google/cloud/tasks/v2beta3/doc/google/rpc/status.rb +0 -39
- data/lib/google/cloud/tasks/v2beta3/doc/google/type/expr.rb +0 -45
- data/lib/google/cloud/tasks/v2beta3/helpers.rb +0 -49
- data/lib/google/cloud/tasks/v2beta3/queue_pb.rb +0 -59
- data/lib/google/cloud/tasks/v2beta3/target_pb.rb +0 -69
- data/lib/google/cloud/tasks/v2beta3/task_pb.rb +0 -52
@@ -1,106 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"interfaces": {
|
3
|
-
"google.cloud.tasks.v2beta3.CloudTasks": {
|
4
|
-
"retry_codes": {
|
5
|
-
"idempotent": [
|
6
|
-
"DEADLINE_EXCEEDED",
|
7
|
-
"UNAVAILABLE"
|
8
|
-
],
|
9
|
-
"non_idempotent": []
|
10
|
-
},
|
11
|
-
"retry_params": {
|
12
|
-
"default": {
|
13
|
-
"initial_retry_delay_millis": 100,
|
14
|
-
"retry_delay_multiplier": 1.3,
|
15
|
-
"max_retry_delay_millis": 60000,
|
16
|
-
"initial_rpc_timeout_millis": 20000,
|
17
|
-
"rpc_timeout_multiplier": 1.0,
|
18
|
-
"max_rpc_timeout_millis": 20000,
|
19
|
-
"total_timeout_millis": 600000
|
20
|
-
}
|
21
|
-
},
|
22
|
-
"methods": {
|
23
|
-
"ListQueues": {
|
24
|
-
"timeout_millis": 15000,
|
25
|
-
"retry_codes_name": "idempotent",
|
26
|
-
"retry_params_name": "default"
|
27
|
-
},
|
28
|
-
"GetQueue": {
|
29
|
-
"timeout_millis": 10000,
|
30
|
-
"retry_codes_name": "idempotent",
|
31
|
-
"retry_params_name": "default"
|
32
|
-
},
|
33
|
-
"CreateQueue": {
|
34
|
-
"timeout_millis": 10000,
|
35
|
-
"retry_codes_name": "non_idempotent",
|
36
|
-
"retry_params_name": "default"
|
37
|
-
},
|
38
|
-
"UpdateQueue": {
|
39
|
-
"timeout_millis": 10000,
|
40
|
-
"retry_codes_name": "non_idempotent",
|
41
|
-
"retry_params_name": "default"
|
42
|
-
},
|
43
|
-
"DeleteQueue": {
|
44
|
-
"timeout_millis": 10000,
|
45
|
-
"retry_codes_name": "idempotent",
|
46
|
-
"retry_params_name": "default"
|
47
|
-
},
|
48
|
-
"PurgeQueue": {
|
49
|
-
"timeout_millis": 10000,
|
50
|
-
"retry_codes_name": "non_idempotent",
|
51
|
-
"retry_params_name": "default"
|
52
|
-
},
|
53
|
-
"PauseQueue": {
|
54
|
-
"timeout_millis": 10000,
|
55
|
-
"retry_codes_name": "non_idempotent",
|
56
|
-
"retry_params_name": "default"
|
57
|
-
},
|
58
|
-
"ResumeQueue": {
|
59
|
-
"timeout_millis": 10000,
|
60
|
-
"retry_codes_name": "non_idempotent",
|
61
|
-
"retry_params_name": "default"
|
62
|
-
},
|
63
|
-
"GetIamPolicy": {
|
64
|
-
"timeout_millis": 10000,
|
65
|
-
"retry_codes_name": "non_idempotent",
|
66
|
-
"retry_params_name": "default"
|
67
|
-
},
|
68
|
-
"SetIamPolicy": {
|
69
|
-
"timeout_millis": 10000,
|
70
|
-
"retry_codes_name": "non_idempotent",
|
71
|
-
"retry_params_name": "default"
|
72
|
-
},
|
73
|
-
"TestIamPermissions": {
|
74
|
-
"timeout_millis": 10000,
|
75
|
-
"retry_codes_name": "non_idempotent",
|
76
|
-
"retry_params_name": "default"
|
77
|
-
},
|
78
|
-
"ListTasks": {
|
79
|
-
"timeout_millis": 10000,
|
80
|
-
"retry_codes_name": "idempotent",
|
81
|
-
"retry_params_name": "default"
|
82
|
-
},
|
83
|
-
"GetTask": {
|
84
|
-
"timeout_millis": 10000,
|
85
|
-
"retry_codes_name": "idempotent",
|
86
|
-
"retry_params_name": "default"
|
87
|
-
},
|
88
|
-
"CreateTask": {
|
89
|
-
"timeout_millis": 10000,
|
90
|
-
"retry_codes_name": "non_idempotent",
|
91
|
-
"retry_params_name": "default"
|
92
|
-
},
|
93
|
-
"DeleteTask": {
|
94
|
-
"timeout_millis": 10000,
|
95
|
-
"retry_codes_name": "non_idempotent",
|
96
|
-
"retry_params_name": "default"
|
97
|
-
},
|
98
|
-
"RunTask": {
|
99
|
-
"timeout_millis": 10000,
|
100
|
-
"retry_codes_name": "non_idempotent",
|
101
|
-
"retry_params_name": "default"
|
102
|
-
}
|
103
|
-
}
|
104
|
-
}
|
105
|
-
}
|
106
|
-
}
|
@@ -1,101 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/cloud/tasks/v2beta3/cloudtasks.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/annotations_pb'
|
8
|
-
require 'google/api/client_pb'
|
9
|
-
require 'google/api/field_behavior_pb'
|
10
|
-
require 'google/api/resource_pb'
|
11
|
-
require 'google/cloud/tasks/v2beta3/queue_pb'
|
12
|
-
require 'google/cloud/tasks/v2beta3/task_pb'
|
13
|
-
require 'google/iam/v1/iam_policy_pb'
|
14
|
-
require 'google/iam/v1/policy_pb'
|
15
|
-
require 'google/protobuf/empty_pb'
|
16
|
-
require 'google/protobuf/field_mask_pb'
|
17
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
18
|
-
add_message "google.cloud.tasks.v2beta3.ListQueuesRequest" do
|
19
|
-
optional :parent, :string, 1
|
20
|
-
optional :filter, :string, 2
|
21
|
-
optional :page_size, :int32, 3
|
22
|
-
optional :page_token, :string, 4
|
23
|
-
end
|
24
|
-
add_message "google.cloud.tasks.v2beta3.ListQueuesResponse" do
|
25
|
-
repeated :queues, :message, 1, "google.cloud.tasks.v2beta3.Queue"
|
26
|
-
optional :next_page_token, :string, 2
|
27
|
-
end
|
28
|
-
add_message "google.cloud.tasks.v2beta3.GetQueueRequest" do
|
29
|
-
optional :name, :string, 1
|
30
|
-
end
|
31
|
-
add_message "google.cloud.tasks.v2beta3.CreateQueueRequest" do
|
32
|
-
optional :parent, :string, 1
|
33
|
-
optional :queue, :message, 2, "google.cloud.tasks.v2beta3.Queue"
|
34
|
-
end
|
35
|
-
add_message "google.cloud.tasks.v2beta3.UpdateQueueRequest" do
|
36
|
-
optional :queue, :message, 1, "google.cloud.tasks.v2beta3.Queue"
|
37
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
38
|
-
end
|
39
|
-
add_message "google.cloud.tasks.v2beta3.DeleteQueueRequest" do
|
40
|
-
optional :name, :string, 1
|
41
|
-
end
|
42
|
-
add_message "google.cloud.tasks.v2beta3.PurgeQueueRequest" do
|
43
|
-
optional :name, :string, 1
|
44
|
-
end
|
45
|
-
add_message "google.cloud.tasks.v2beta3.PauseQueueRequest" do
|
46
|
-
optional :name, :string, 1
|
47
|
-
end
|
48
|
-
add_message "google.cloud.tasks.v2beta3.ResumeQueueRequest" do
|
49
|
-
optional :name, :string, 1
|
50
|
-
end
|
51
|
-
add_message "google.cloud.tasks.v2beta3.ListTasksRequest" do
|
52
|
-
optional :parent, :string, 1
|
53
|
-
optional :response_view, :enum, 2, "google.cloud.tasks.v2beta3.Task.View"
|
54
|
-
optional :page_size, :int32, 3
|
55
|
-
optional :page_token, :string, 4
|
56
|
-
end
|
57
|
-
add_message "google.cloud.tasks.v2beta3.ListTasksResponse" do
|
58
|
-
repeated :tasks, :message, 1, "google.cloud.tasks.v2beta3.Task"
|
59
|
-
optional :next_page_token, :string, 2
|
60
|
-
end
|
61
|
-
add_message "google.cloud.tasks.v2beta3.GetTaskRequest" do
|
62
|
-
optional :name, :string, 1
|
63
|
-
optional :response_view, :enum, 2, "google.cloud.tasks.v2beta3.Task.View"
|
64
|
-
end
|
65
|
-
add_message "google.cloud.tasks.v2beta3.CreateTaskRequest" do
|
66
|
-
optional :parent, :string, 1
|
67
|
-
optional :task, :message, 2, "google.cloud.tasks.v2beta3.Task"
|
68
|
-
optional :response_view, :enum, 3, "google.cloud.tasks.v2beta3.Task.View"
|
69
|
-
end
|
70
|
-
add_message "google.cloud.tasks.v2beta3.DeleteTaskRequest" do
|
71
|
-
optional :name, :string, 1
|
72
|
-
end
|
73
|
-
add_message "google.cloud.tasks.v2beta3.RunTaskRequest" do
|
74
|
-
optional :name, :string, 1
|
75
|
-
optional :response_view, :enum, 2, "google.cloud.tasks.v2beta3.Task.View"
|
76
|
-
end
|
77
|
-
end
|
78
|
-
|
79
|
-
module Google
|
80
|
-
module Cloud
|
81
|
-
module Tasks
|
82
|
-
module V2beta3
|
83
|
-
ListQueuesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.ListQueuesRequest").msgclass
|
84
|
-
ListQueuesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.ListQueuesResponse").msgclass
|
85
|
-
GetQueueRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.GetQueueRequest").msgclass
|
86
|
-
CreateQueueRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.CreateQueueRequest").msgclass
|
87
|
-
UpdateQueueRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.UpdateQueueRequest").msgclass
|
88
|
-
DeleteQueueRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.DeleteQueueRequest").msgclass
|
89
|
-
PurgeQueueRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.PurgeQueueRequest").msgclass
|
90
|
-
PauseQueueRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.PauseQueueRequest").msgclass
|
91
|
-
ResumeQueueRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.ResumeQueueRequest").msgclass
|
92
|
-
ListTasksRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.ListTasksRequest").msgclass
|
93
|
-
ListTasksResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.ListTasksResponse").msgclass
|
94
|
-
GetTaskRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.GetTaskRequest").msgclass
|
95
|
-
CreateTaskRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.CreateTaskRequest").msgclass
|
96
|
-
DeleteTaskRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.DeleteTaskRequest").msgclass
|
97
|
-
RunTaskRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.RunTaskRequest").msgclass
|
98
|
-
end
|
99
|
-
end
|
100
|
-
end
|
101
|
-
end
|
@@ -1,203 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: google/cloud/tasks/v2beta3/cloudtasks.proto for package 'google.cloud.tasks.v2beta3'
|
3
|
-
# Original file comments:
|
4
|
-
# Copyright 2019 Google LLC.
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
#
|
18
|
-
#
|
19
|
-
|
20
|
-
|
21
|
-
require 'grpc'
|
22
|
-
require 'google/cloud/tasks/v2beta3/cloudtasks_pb'
|
23
|
-
|
24
|
-
module Google
|
25
|
-
module Cloud
|
26
|
-
module Tasks
|
27
|
-
module V2beta3
|
28
|
-
module CloudTasks
|
29
|
-
# Cloud Tasks allows developers to manage the execution of background
|
30
|
-
# work in their applications.
|
31
|
-
class Service
|
32
|
-
|
33
|
-
include GRPC::GenericService
|
34
|
-
|
35
|
-
self.marshal_class_method = :encode
|
36
|
-
self.unmarshal_class_method = :decode
|
37
|
-
self.service_name = 'google.cloud.tasks.v2beta3.CloudTasks'
|
38
|
-
|
39
|
-
# Lists queues.
|
40
|
-
#
|
41
|
-
# Queues are returned in lexicographical order.
|
42
|
-
rpc :ListQueues, ListQueuesRequest, ListQueuesResponse
|
43
|
-
# Gets a queue.
|
44
|
-
rpc :GetQueue, GetQueueRequest, Queue
|
45
|
-
# Creates a queue.
|
46
|
-
#
|
47
|
-
# Queues created with this method allow tasks to live for a maximum of 31
|
48
|
-
# days. After a task is 31 days old, the task will be deleted regardless of whether
|
49
|
-
# it was dispatched or not.
|
50
|
-
#
|
51
|
-
# WARNING: Using this method may have unintended side effects if you are
|
52
|
-
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
53
|
-
# Read
|
54
|
-
# [Overview of Queue Management and
|
55
|
-
# queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
|
56
|
-
# this method.
|
57
|
-
rpc :CreateQueue, CreateQueueRequest, Queue
|
58
|
-
# Updates a queue.
|
59
|
-
#
|
60
|
-
# This method creates the queue if it does not exist and updates
|
61
|
-
# the queue if it does exist.
|
62
|
-
#
|
63
|
-
# Queues created with this method allow tasks to live for a maximum of 31
|
64
|
-
# days. After a task is 31 days old, the task will be deleted regardless of whether
|
65
|
-
# it was dispatched or not.
|
66
|
-
#
|
67
|
-
# WARNING: Using this method may have unintended side effects if you are
|
68
|
-
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
69
|
-
# Read
|
70
|
-
# [Overview of Queue Management and
|
71
|
-
# queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
|
72
|
-
# this method.
|
73
|
-
rpc :UpdateQueue, UpdateQueueRequest, Queue
|
74
|
-
# Deletes a queue.
|
75
|
-
#
|
76
|
-
# This command will delete the queue even if it has tasks in it.
|
77
|
-
#
|
78
|
-
# Note: If you delete a queue, a queue with the same name can't be created
|
79
|
-
# for 7 days.
|
80
|
-
#
|
81
|
-
# WARNING: Using this method may have unintended side effects if you are
|
82
|
-
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
83
|
-
# Read
|
84
|
-
# [Overview of Queue Management and
|
85
|
-
# queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
|
86
|
-
# this method.
|
87
|
-
rpc :DeleteQueue, DeleteQueueRequest, Google::Protobuf::Empty
|
88
|
-
# Purges a queue by deleting all of its tasks.
|
89
|
-
#
|
90
|
-
# All tasks created before this method is called are permanently deleted.
|
91
|
-
#
|
92
|
-
# Purge operations can take up to one minute to take effect. Tasks
|
93
|
-
# might be dispatched before the purge takes effect. A purge is irreversible.
|
94
|
-
rpc :PurgeQueue, PurgeQueueRequest, Queue
|
95
|
-
# Pauses the queue.
|
96
|
-
#
|
97
|
-
# If a queue is paused then the system will stop dispatching tasks
|
98
|
-
# until the queue is resumed via
|
99
|
-
# [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue]. Tasks can still be added
|
100
|
-
# when the queue is paused. A queue is paused if its
|
101
|
-
# [state][google.cloud.tasks.v2beta3.Queue.state] is [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED].
|
102
|
-
rpc :PauseQueue, PauseQueueRequest, Queue
|
103
|
-
# Resume a queue.
|
104
|
-
#
|
105
|
-
# This method resumes a queue after it has been
|
106
|
-
# [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED] or
|
107
|
-
# [DISABLED][google.cloud.tasks.v2beta3.Queue.State.DISABLED]. The state of a queue is stored
|
108
|
-
# in the queue's [state][google.cloud.tasks.v2beta3.Queue.state]; after calling this method it
|
109
|
-
# will be set to [RUNNING][google.cloud.tasks.v2beta3.Queue.State.RUNNING].
|
110
|
-
#
|
111
|
-
# WARNING: Resuming many high-QPS queues at the same time can
|
112
|
-
# lead to target overloading. If you are resuming high-QPS
|
113
|
-
# queues, follow the 500/50/5 pattern described in
|
114
|
-
# [Managing Cloud Tasks Scaling
|
115
|
-
# Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
|
116
|
-
rpc :ResumeQueue, ResumeQueueRequest, Queue
|
117
|
-
# Gets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue].
|
118
|
-
# Returns an empty policy if the resource exists and does not have a policy
|
119
|
-
# set.
|
120
|
-
#
|
121
|
-
# Authorization requires the following
|
122
|
-
# [Google IAM](https://cloud.google.com/iam) permission on the specified
|
123
|
-
# resource parent:
|
124
|
-
#
|
125
|
-
# * `cloudtasks.queues.getIamPolicy`
|
126
|
-
rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
|
127
|
-
# Sets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. Replaces any existing
|
128
|
-
# policy.
|
129
|
-
#
|
130
|
-
# Note: The Cloud Console does not check queue-level IAM permissions yet.
|
131
|
-
# Project-level permissions are required to use the Cloud Console.
|
132
|
-
#
|
133
|
-
# Authorization requires the following
|
134
|
-
# [Google IAM](https://cloud.google.com/iam) permission on the specified
|
135
|
-
# resource parent:
|
136
|
-
#
|
137
|
-
# * `cloudtasks.queues.setIamPolicy`
|
138
|
-
rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
|
139
|
-
# Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta3.Queue].
|
140
|
-
# If the resource does not exist, this will return an empty set of
|
141
|
-
# permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error.
|
142
|
-
#
|
143
|
-
# Note: This operation is designed to be used for building permission-aware
|
144
|
-
# UIs and command-line tools, not for authorization checking. This operation
|
145
|
-
# may "fail open" without warning.
|
146
|
-
rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
|
147
|
-
# Lists the tasks in a queue.
|
148
|
-
#
|
149
|
-
# By default, only the [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC] view is retrieved
|
150
|
-
# due to performance considerations;
|
151
|
-
# [response_view][google.cloud.tasks.v2beta3.ListTasksRequest.response_view] controls the
|
152
|
-
# subset of information which is returned.
|
153
|
-
#
|
154
|
-
# The tasks may be returned in any order. The ordering may change at any
|
155
|
-
# time.
|
156
|
-
rpc :ListTasks, ListTasksRequest, ListTasksResponse
|
157
|
-
# Gets a task.
|
158
|
-
rpc :GetTask, GetTaskRequest, Task
|
159
|
-
# Creates a task and adds it to a queue.
|
160
|
-
#
|
161
|
-
# Tasks cannot be updated after creation; there is no UpdateTask command.
|
162
|
-
#
|
163
|
-
# * The maximum task size is 100KB.
|
164
|
-
rpc :CreateTask, CreateTaskRequest, Task
|
165
|
-
# Deletes a task.
|
166
|
-
#
|
167
|
-
# A task can be deleted if it is scheduled or dispatched. A task
|
168
|
-
# cannot be deleted if it has executed successfully or permanently
|
169
|
-
# failed.
|
170
|
-
rpc :DeleteTask, DeleteTaskRequest, Google::Protobuf::Empty
|
171
|
-
# Forces a task to run now.
|
172
|
-
#
|
173
|
-
# When this method is called, Cloud Tasks will dispatch the task, even if
|
174
|
-
# the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta3.RateLimits] or
|
175
|
-
# is [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED].
|
176
|
-
#
|
177
|
-
# This command is meant to be used for manual debugging. For
|
178
|
-
# example, [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] can be used to retry a failed
|
179
|
-
# task after a fix has been made or to manually force a task to be
|
180
|
-
# dispatched now.
|
181
|
-
#
|
182
|
-
# The dispatched task is returned. That is, the task that is returned
|
183
|
-
# contains the [status][Task.status] after the task is dispatched but
|
184
|
-
# before the task is received by its target.
|
185
|
-
#
|
186
|
-
# If Cloud Tasks receives a successful response from the task's
|
187
|
-
# target, then the task will be deleted; otherwise the task's
|
188
|
-
# [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] will be reset to the time that
|
189
|
-
# [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] was called plus the retry delay specified
|
190
|
-
# in the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig].
|
191
|
-
#
|
192
|
-
# [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] returns
|
193
|
-
# [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a
|
194
|
-
# task that has already succeeded or permanently failed.
|
195
|
-
rpc :RunTask, RunTaskRequest, Task
|
196
|
-
end
|
197
|
-
|
198
|
-
Stub = Service.rpc_stub_class
|
199
|
-
end
|
200
|
-
end
|
201
|
-
end
|
202
|
-
end
|
203
|
-
end
|
@@ -1,41 +0,0 @@
|
|
1
|
-
# Copyright 2020 Google LLC
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
|
16
|
-
require "googleauth"
|
17
|
-
|
18
|
-
module Google
|
19
|
-
module Cloud
|
20
|
-
module Tasks
|
21
|
-
module V2beta3
|
22
|
-
class Credentials < Google::Auth::Credentials
|
23
|
-
SCOPE = [
|
24
|
-
"https://www.googleapis.com/auth/cloud-platform"
|
25
|
-
].freeze
|
26
|
-
PATH_ENV_VARS = %w(TASKS_CREDENTIALS
|
27
|
-
TASKS_KEYFILE
|
28
|
-
GOOGLE_CLOUD_CREDENTIALS
|
29
|
-
GOOGLE_CLOUD_KEYFILE
|
30
|
-
GCLOUD_KEYFILE)
|
31
|
-
JSON_ENV_VARS = %w(TASKS_CREDENTIALS_JSON
|
32
|
-
TASKS_KEYFILE_JSON
|
33
|
-
GOOGLE_CLOUD_CREDENTIALS_JSON
|
34
|
-
GOOGLE_CLOUD_KEYFILE_JSON
|
35
|
-
GCLOUD_KEYFILE_JSON)
|
36
|
-
DEFAULT_PATHS = ["~/.config/gcloud/application_default_credentials.json"]
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|