google-cloud-tasks 1.3.1 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f2a588ca726f8e5776dabfe2a0b551a92959b4a680d72cd6c28e24c176109ee
4
- data.tar.gz: 410cc2d316a08622a5cb4b6ee600373842e5e7c080e01b16c2572f4060a40fa9
3
+ metadata.gz: fd45b8a8b84def932e181e0d27468b8ba42bd277291625178e7b99359811bdf4
4
+ data.tar.gz: 180bdda70d1d9be3150e8581f15d42fe9af63ad696893cc5b9025090d6ac4e44
5
5
  SHA512:
6
- metadata.gz: 9009bf910c59dd37918f0aa9396ed280f5935ad0d2f2715ed4585661041cd1ed06dec470e50a1b88f0dbd5efe0f2d80c6e3c702bfc69401c4e27703b2f70344a
7
- data.tar.gz: 39594e6c620f8d6f608bb171c23c873f24816ac6e99836c7266a1ecaa0fc97436a34a14c0ca2eb3ef61c10e70673fd9097c8c4b6760b452cd4e38b6dcc4fb88a
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
- # formatted_resource = Google::Cloud::Tasks::V2::CloudTasksClient.queue_path("[PROJECT]", "[LOCATION]", "[QUEUE]")
800
- # response = cloud_tasks_client.get_iam_policy(formatted_resource)
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
- # formatted_resource = Google::Cloud::Tasks::V2::CloudTasksClient.queue_path("[PROJECT]", "[LOCATION]", "[QUEUE]")
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(formatted_resource, 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
- # formatted_resource = Google::Cloud::Tasks::V2::CloudTasksClient.queue_path("[PROJECT]", "[LOCATION]", "[QUEUE]")
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(formatted_resource, 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": "idempotent",
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": "idempotent",
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": "idempotent",
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 large traffic spikes,
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/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers).
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
- # formatted_resource = Google::Cloud::Tasks::V2beta2::CloudTasksClient.queue_path("[PROJECT]", "[LOCATION]", "[QUEUE]")
832
- # response = cloud_tasks_client.get_iam_policy(formatted_resource)
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
- # formatted_resource = Google::Cloud::Tasks::V2beta2::CloudTasksClient.queue_path("[PROJECT]", "[LOCATION]", "[QUEUE]")
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(formatted_resource, 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
- # formatted_resource = Google::Cloud::Tasks::V2beta2::CloudTasksClient.queue_path("[PROJECT]", "[LOCATION]", "[QUEUE]")
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(formatted_resource, 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": "idempotent",
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": "idempotent",
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": "idempotent",
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
- # formatted_resource = Google::Cloud::Tasks::V2beta3::CloudTasksClient.queue_path("[PROJECT]", "[LOCATION]", "[QUEUE]")
800
- # response = cloud_tasks_client.get_iam_policy(formatted_resource)
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
- # formatted_resource = Google::Cloud::Tasks::V2beta3::CloudTasksClient.queue_path("[PROJECT]", "[LOCATION]", "[QUEUE]")
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(formatted_resource, 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
- # formatted_resource = Google::Cloud::Tasks::V2beta3::CloudTasksClient.queue_path("[PROJECT]", "[LOCATION]", "[QUEUE]")
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(formatted_resource, 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": "idempotent",
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": "idempotent",
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": "idempotent",
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 large traffic spikes,
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/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers).
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]
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Tasks
19
- VERSION = "1.3.1".freeze
19
+ VERSION = "1.3.3".freeze
20
20
  end
21
21
  end
22
22
  end
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.1
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: 2019-11-20 00:00:00.000000000 Z
11
+ date: 2020-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax