google-cloud-tasks 1.3.1 → 1.3.3
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/lib/google/cloud/tasks/v2/cloud_tasks_client.rb +12 -21
- data/lib/google/cloud/tasks/v2/cloud_tasks_client_config.json +3 -3
- data/lib/google/cloud/tasks/v2/doc/google/cloud/tasks/v2/target.rb +3 -3
- data/lib/google/cloud/tasks/v2/helpers.rb +0 -7
- data/lib/google/cloud/tasks/v2beta2/cloud_tasks_client.rb +12 -21
- data/lib/google/cloud/tasks/v2beta2/cloud_tasks_client_config.json +3 -3
- data/lib/google/cloud/tasks/v2beta2/helpers.rb +0 -7
- data/lib/google/cloud/tasks/v2beta3/cloud_tasks_client.rb +12 -21
- data/lib/google/cloud/tasks/v2beta3/cloud_tasks_client_config.json +3 -3
- data/lib/google/cloud/tasks/v2beta3/doc/google/cloud/tasks/v2beta3/target.rb +3 -3
- data/lib/google/cloud/tasks/v2beta3/helpers.rb +0 -7
- data/lib/google/cloud/tasks/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd45b8a8b84def932e181e0d27468b8ba42bd277291625178e7b99359811bdf4
|
4
|
+
data.tar.gz: 180bdda70d1d9be3150e8581f15d42fe9af63ad696893cc5b9025090d6ac4e44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eff16dfa251604dc86d18a3f0697af284fb8baae950a48a34f95910623de0800b81c6fc209561c05882ffcbbf102d1ac7b96f195e8bcb6bcfba019bd7199a8be
|
7
|
+
data.tar.gz: 78126fe0cbc834d598b52798f253d20986df7a61013a26c753d04f26cb5988938851e98c69c2925903305ce5021d1962aa294f1f56084d524a53c9143f0bac89
|
@@ -79,12 +79,6 @@ module Google
|
|
79
79
|
|
80
80
|
private_constant :LOCATION_PATH_TEMPLATE
|
81
81
|
|
82
|
-
PROJECT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
83
|
-
"projects/{project}"
|
84
|
-
)
|
85
|
-
|
86
|
-
private_constant :PROJECT_PATH_TEMPLATE
|
87
|
-
|
88
82
|
QUEUE_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
89
83
|
"projects/{project}/locations/{location}/queues/{queue}"
|
90
84
|
)
|
@@ -108,15 +102,6 @@ module Google
|
|
108
102
|
)
|
109
103
|
end
|
110
104
|
|
111
|
-
# Returns a fully-qualified project resource name string.
|
112
|
-
# @param project [String]
|
113
|
-
# @return [String]
|
114
|
-
def self.project_path project
|
115
|
-
PROJECT_PATH_TEMPLATE.render(
|
116
|
-
:"project" => project
|
117
|
-
)
|
118
|
-
end
|
119
|
-
|
120
105
|
# Returns a fully-qualified queue resource name string.
|
121
106
|
# @param project [String]
|
122
107
|
# @param location [String]
|
@@ -796,8 +781,10 @@ module Google
|
|
796
781
|
# require "google/cloud/tasks"
|
797
782
|
#
|
798
783
|
# cloud_tasks_client = Google::Cloud::Tasks.new(version: :v2)
|
799
|
-
#
|
800
|
-
#
|
784
|
+
#
|
785
|
+
# # TODO: Initialize `resource`:
|
786
|
+
# resource = ''
|
787
|
+
# response = cloud_tasks_client.get_iam_policy(resource)
|
801
788
|
|
802
789
|
def get_iam_policy \
|
803
790
|
resource,
|
@@ -846,11 +833,13 @@ module Google
|
|
846
833
|
# require "google/cloud/tasks"
|
847
834
|
#
|
848
835
|
# cloud_tasks_client = Google::Cloud::Tasks.new(version: :v2)
|
849
|
-
#
|
836
|
+
#
|
837
|
+
# # TODO: Initialize `resource`:
|
838
|
+
# resource = ''
|
850
839
|
#
|
851
840
|
# # TODO: Initialize `policy`:
|
852
841
|
# policy = {}
|
853
|
-
# response = cloud_tasks_client.set_iam_policy(
|
842
|
+
# response = cloud_tasks_client.set_iam_policy(resource, policy)
|
854
843
|
|
855
844
|
def set_iam_policy \
|
856
845
|
resource,
|
@@ -893,11 +882,13 @@ module Google
|
|
893
882
|
# require "google/cloud/tasks"
|
894
883
|
#
|
895
884
|
# cloud_tasks_client = Google::Cloud::Tasks.new(version: :v2)
|
896
|
-
#
|
885
|
+
#
|
886
|
+
# # TODO: Initialize `resource`:
|
887
|
+
# resource = ''
|
897
888
|
#
|
898
889
|
# # TODO: Initialize `permissions`:
|
899
890
|
# permissions = []
|
900
|
-
# response = cloud_tasks_client.test_iam_permissions(
|
891
|
+
# response = cloud_tasks_client.test_iam_permissions(resource, permissions)
|
901
892
|
|
902
893
|
def test_iam_permissions \
|
903
894
|
resource,
|
@@ -62,7 +62,7 @@
|
|
62
62
|
},
|
63
63
|
"GetIamPolicy": {
|
64
64
|
"timeout_millis": 10000,
|
65
|
-
"retry_codes_name": "
|
65
|
+
"retry_codes_name": "non_idempotent",
|
66
66
|
"retry_params_name": "default"
|
67
67
|
},
|
68
68
|
"SetIamPolicy": {
|
@@ -72,7 +72,7 @@
|
|
72
72
|
},
|
73
73
|
"TestIamPermissions": {
|
74
74
|
"timeout_millis": 10000,
|
75
|
-
"retry_codes_name": "
|
75
|
+
"retry_codes_name": "non_idempotent",
|
76
76
|
"retry_params_name": "default"
|
77
77
|
},
|
78
78
|
"ListTasks": {
|
@@ -92,7 +92,7 @@
|
|
92
92
|
},
|
93
93
|
"DeleteTask": {
|
94
94
|
"timeout_millis": 10000,
|
95
|
-
"retry_codes_name": "
|
95
|
+
"retry_codes_name": "non_idempotent",
|
96
96
|
"retry_params_name": "default"
|
97
97
|
},
|
98
98
|
"RunTask": {
|
@@ -21,7 +21,7 @@ module Google
|
|
21
21
|
#
|
22
22
|
# The task will be pushed to the worker as an HTTP request. If the worker
|
23
23
|
# or the redirected worker acknowledges the task by returning a successful HTTP
|
24
|
-
# response code ([`200` - `299`]), the task will removed from the queue. If
|
24
|
+
# response code ([`200` - `299`]), the task will be removed from the queue. If
|
25
25
|
# any other HTTP response code is returned or no response is received, the
|
26
26
|
# task will be retried according to the following:
|
27
27
|
#
|
@@ -40,7 +40,7 @@ module Google
|
|
40
40
|
# errors is high, Cloud Tasks will use a higher backoff rate. The retry
|
41
41
|
# specified in the `Retry-After` HTTP response header is considered.
|
42
42
|
#
|
43
|
-
# * To prevent traffic spikes and to smooth sudden
|
43
|
+
# * To prevent traffic spikes and to smooth sudden increases in traffic,
|
44
44
|
# dispatches ramp up slowly when the queue is newly created or idle and
|
45
45
|
# if large numbers of tasks suddenly become available to dispatch (due to
|
46
46
|
# spikes in create task rates, the queue being unpaused, or many tasks
|
@@ -243,7 +243,7 @@ module Google
|
|
243
243
|
# In addition, Cloud Tasks sets some headers when the task is dispatched,
|
244
244
|
# such as headers containing information about the task; see
|
245
245
|
# [request
|
246
|
-
# headers](https://cloud.google.com/
|
246
|
+
# headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
|
247
247
|
# These headers are set only when the task is dispatched, so they are not
|
248
248
|
# visible when the task is returned in a Cloud Tasks response.
|
249
249
|
#
|
@@ -24,13 +24,6 @@
|
|
24
24
|
self.class.location_path project, location
|
25
25
|
end
|
26
26
|
|
27
|
-
# Alias for Google::Cloud::Tasks::V2::CloudTasksClient.project_path.
|
28
|
-
# @param project [String]
|
29
|
-
# @return [String]
|
30
|
-
def project_path project
|
31
|
-
self.class.project_path project
|
32
|
-
end
|
33
|
-
|
34
27
|
# Alias for Google::Cloud::Tasks::V2::CloudTasksClient.queue_path.
|
35
28
|
# @param project [String]
|
36
29
|
# @param location [String]
|
@@ -79,12 +79,6 @@ module Google
|
|
79
79
|
|
80
80
|
private_constant :LOCATION_PATH_TEMPLATE
|
81
81
|
|
82
|
-
PROJECT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
83
|
-
"projects/{project}"
|
84
|
-
)
|
85
|
-
|
86
|
-
private_constant :PROJECT_PATH_TEMPLATE
|
87
|
-
|
88
82
|
QUEUE_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
89
83
|
"projects/{project}/locations/{location}/queues/{queue}"
|
90
84
|
)
|
@@ -108,15 +102,6 @@ module Google
|
|
108
102
|
)
|
109
103
|
end
|
110
104
|
|
111
|
-
# Returns a fully-qualified project resource name string.
|
112
|
-
# @param project [String]
|
113
|
-
# @return [String]
|
114
|
-
def self.project_path project
|
115
|
-
PROJECT_PATH_TEMPLATE.render(
|
116
|
-
:"project" => project
|
117
|
-
)
|
118
|
-
end
|
119
|
-
|
120
105
|
# Returns a fully-qualified queue resource name string.
|
121
106
|
# @param project [String]
|
122
107
|
# @param location [String]
|
@@ -828,8 +813,10 @@ module Google
|
|
828
813
|
# require "google/cloud/tasks"
|
829
814
|
#
|
830
815
|
# cloud_tasks_client = Google::Cloud::Tasks.new(version: :v2beta2)
|
831
|
-
#
|
832
|
-
#
|
816
|
+
#
|
817
|
+
# # TODO: Initialize `resource`:
|
818
|
+
# resource = ''
|
819
|
+
# response = cloud_tasks_client.get_iam_policy(resource)
|
833
820
|
|
834
821
|
def get_iam_policy \
|
835
822
|
resource,
|
@@ -878,11 +865,13 @@ module Google
|
|
878
865
|
# require "google/cloud/tasks"
|
879
866
|
#
|
880
867
|
# cloud_tasks_client = Google::Cloud::Tasks.new(version: :v2beta2)
|
881
|
-
#
|
868
|
+
#
|
869
|
+
# # TODO: Initialize `resource`:
|
870
|
+
# resource = ''
|
882
871
|
#
|
883
872
|
# # TODO: Initialize `policy`:
|
884
873
|
# policy = {}
|
885
|
-
# response = cloud_tasks_client.set_iam_policy(
|
874
|
+
# response = cloud_tasks_client.set_iam_policy(resource, policy)
|
886
875
|
|
887
876
|
def set_iam_policy \
|
888
877
|
resource,
|
@@ -925,11 +914,13 @@ module Google
|
|
925
914
|
# require "google/cloud/tasks"
|
926
915
|
#
|
927
916
|
# cloud_tasks_client = Google::Cloud::Tasks.new(version: :v2beta2)
|
928
|
-
#
|
917
|
+
#
|
918
|
+
# # TODO: Initialize `resource`:
|
919
|
+
# resource = ''
|
929
920
|
#
|
930
921
|
# # TODO: Initialize `permissions`:
|
931
922
|
# permissions = []
|
932
|
-
# response = cloud_tasks_client.test_iam_permissions(
|
923
|
+
# response = cloud_tasks_client.test_iam_permissions(resource, permissions)
|
933
924
|
|
934
925
|
def test_iam_permissions \
|
935
926
|
resource,
|
@@ -62,7 +62,7 @@
|
|
62
62
|
},
|
63
63
|
"GetIamPolicy": {
|
64
64
|
"timeout_millis": 10000,
|
65
|
-
"retry_codes_name": "
|
65
|
+
"retry_codes_name": "non_idempotent",
|
66
66
|
"retry_params_name": "default"
|
67
67
|
},
|
68
68
|
"SetIamPolicy": {
|
@@ -72,7 +72,7 @@
|
|
72
72
|
},
|
73
73
|
"TestIamPermissions": {
|
74
74
|
"timeout_millis": 10000,
|
75
|
-
"retry_codes_name": "
|
75
|
+
"retry_codes_name": "non_idempotent",
|
76
76
|
"retry_params_name": "default"
|
77
77
|
},
|
78
78
|
"ListTasks": {
|
@@ -92,7 +92,7 @@
|
|
92
92
|
},
|
93
93
|
"DeleteTask": {
|
94
94
|
"timeout_millis": 10000,
|
95
|
-
"retry_codes_name": "
|
95
|
+
"retry_codes_name": "non_idempotent",
|
96
96
|
"retry_params_name": "default"
|
97
97
|
},
|
98
98
|
"LeaseTasks": {
|
@@ -24,13 +24,6 @@
|
|
24
24
|
self.class.location_path project, location
|
25
25
|
end
|
26
26
|
|
27
|
-
# Alias for Google::Cloud::Tasks::V2beta2::CloudTasksClient.project_path.
|
28
|
-
# @param project [String]
|
29
|
-
# @return [String]
|
30
|
-
def project_path project
|
31
|
-
self.class.project_path project
|
32
|
-
end
|
33
|
-
|
34
27
|
# Alias for Google::Cloud::Tasks::V2beta2::CloudTasksClient.queue_path.
|
35
28
|
# @param project [String]
|
36
29
|
# @param location [String]
|
@@ -79,12 +79,6 @@ module Google
|
|
79
79
|
|
80
80
|
private_constant :LOCATION_PATH_TEMPLATE
|
81
81
|
|
82
|
-
PROJECT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
83
|
-
"projects/{project}"
|
84
|
-
)
|
85
|
-
|
86
|
-
private_constant :PROJECT_PATH_TEMPLATE
|
87
|
-
|
88
82
|
QUEUE_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
89
83
|
"projects/{project}/locations/{location}/queues/{queue}"
|
90
84
|
)
|
@@ -108,15 +102,6 @@ module Google
|
|
108
102
|
)
|
109
103
|
end
|
110
104
|
|
111
|
-
# Returns a fully-qualified project resource name string.
|
112
|
-
# @param project [String]
|
113
|
-
# @return [String]
|
114
|
-
def self.project_path project
|
115
|
-
PROJECT_PATH_TEMPLATE.render(
|
116
|
-
:"project" => project
|
117
|
-
)
|
118
|
-
end
|
119
|
-
|
120
105
|
# Returns a fully-qualified queue resource name string.
|
121
106
|
# @param project [String]
|
122
107
|
# @param location [String]
|
@@ -796,8 +781,10 @@ module Google
|
|
796
781
|
# require "google/cloud/tasks"
|
797
782
|
#
|
798
783
|
# cloud_tasks_client = Google::Cloud::Tasks.new(version: :v2beta3)
|
799
|
-
#
|
800
|
-
#
|
784
|
+
#
|
785
|
+
# # TODO: Initialize `resource`:
|
786
|
+
# resource = ''
|
787
|
+
# response = cloud_tasks_client.get_iam_policy(resource)
|
801
788
|
|
802
789
|
def get_iam_policy \
|
803
790
|
resource,
|
@@ -846,11 +833,13 @@ module Google
|
|
846
833
|
# require "google/cloud/tasks"
|
847
834
|
#
|
848
835
|
# cloud_tasks_client = Google::Cloud::Tasks.new(version: :v2beta3)
|
849
|
-
#
|
836
|
+
#
|
837
|
+
# # TODO: Initialize `resource`:
|
838
|
+
# resource = ''
|
850
839
|
#
|
851
840
|
# # TODO: Initialize `policy`:
|
852
841
|
# policy = {}
|
853
|
-
# response = cloud_tasks_client.set_iam_policy(
|
842
|
+
# response = cloud_tasks_client.set_iam_policy(resource, policy)
|
854
843
|
|
855
844
|
def set_iam_policy \
|
856
845
|
resource,
|
@@ -893,11 +882,13 @@ module Google
|
|
893
882
|
# require "google/cloud/tasks"
|
894
883
|
#
|
895
884
|
# cloud_tasks_client = Google::Cloud::Tasks.new(version: :v2beta3)
|
896
|
-
#
|
885
|
+
#
|
886
|
+
# # TODO: Initialize `resource`:
|
887
|
+
# resource = ''
|
897
888
|
#
|
898
889
|
# # TODO: Initialize `permissions`:
|
899
890
|
# permissions = []
|
900
|
-
# response = cloud_tasks_client.test_iam_permissions(
|
891
|
+
# response = cloud_tasks_client.test_iam_permissions(resource, permissions)
|
901
892
|
|
902
893
|
def test_iam_permissions \
|
903
894
|
resource,
|
@@ -62,7 +62,7 @@
|
|
62
62
|
},
|
63
63
|
"GetIamPolicy": {
|
64
64
|
"timeout_millis": 10000,
|
65
|
-
"retry_codes_name": "
|
65
|
+
"retry_codes_name": "non_idempotent",
|
66
66
|
"retry_params_name": "default"
|
67
67
|
},
|
68
68
|
"SetIamPolicy": {
|
@@ -72,7 +72,7 @@
|
|
72
72
|
},
|
73
73
|
"TestIamPermissions": {
|
74
74
|
"timeout_millis": 10000,
|
75
|
-
"retry_codes_name": "
|
75
|
+
"retry_codes_name": "non_idempotent",
|
76
76
|
"retry_params_name": "default"
|
77
77
|
},
|
78
78
|
"ListTasks": {
|
@@ -92,7 +92,7 @@
|
|
92
92
|
},
|
93
93
|
"DeleteTask": {
|
94
94
|
"timeout_millis": 10000,
|
95
|
-
"retry_codes_name": "
|
95
|
+
"retry_codes_name": "non_idempotent",
|
96
96
|
"retry_params_name": "default"
|
97
97
|
},
|
98
98
|
"RunTask": {
|
@@ -21,7 +21,7 @@ module Google
|
|
21
21
|
#
|
22
22
|
# The task will be pushed to the worker as an HTTP request. If the worker
|
23
23
|
# or the redirected worker acknowledges the task by returning a successful HTTP
|
24
|
-
# response code ([`200` - `299`]), the task will removed from the queue. If
|
24
|
+
# response code ([`200` - `299`]), the task will be removed from the queue. If
|
25
25
|
# any other HTTP response code is returned or no response is received, the
|
26
26
|
# task will be retried according to the following:
|
27
27
|
#
|
@@ -40,7 +40,7 @@ module Google
|
|
40
40
|
# errors is high, Cloud Tasks will use a higher backoff rate. The retry
|
41
41
|
# specified in the `Retry-After` HTTP response header is considered.
|
42
42
|
#
|
43
|
-
# * To prevent traffic spikes and to smooth sudden
|
43
|
+
# * To prevent traffic spikes and to smooth sudden increases in traffic,
|
44
44
|
# dispatches ramp up slowly when the queue is newly created or idle and
|
45
45
|
# if large numbers of tasks suddenly become available to dispatch (due to
|
46
46
|
# spikes in create task rates, the queue being unpaused, or many tasks
|
@@ -267,7 +267,7 @@ module Google
|
|
267
267
|
# In addition, Cloud Tasks sets some headers when the task is dispatched,
|
268
268
|
# such as headers containing information about the task; see
|
269
269
|
# [request
|
270
|
-
# headers](https://cloud.google.com/
|
270
|
+
# headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
|
271
271
|
# These headers are set only when the task is dispatched, so they are not
|
272
272
|
# visible when the task is returned in a Cloud Tasks response.
|
273
273
|
#
|
@@ -24,13 +24,6 @@
|
|
24
24
|
self.class.location_path project, location
|
25
25
|
end
|
26
26
|
|
27
|
-
# Alias for Google::Cloud::Tasks::V2beta3::CloudTasksClient.project_path.
|
28
|
-
# @param project [String]
|
29
|
-
# @return [String]
|
30
|
-
def project_path project
|
31
|
-
self.class.project_path project
|
32
|
-
end
|
33
|
-
|
34
27
|
# Alias for Google::Cloud::Tasks::V2beta3::CloudTasksClient.queue_path.
|
35
28
|
# @param project [String]
|
36
29
|
# @param location [String]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|