google-cloud-tasks-v2beta2 0.5.2 → 0.5.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fbc40d7feeb6e0253a84779ea50ac4040ff668826d284f7e0ba79cc703c8e85
|
4
|
+
data.tar.gz: 5ce694deba62c02c9643e3b0b47bd5c11705cddc4a598355cf2d990a2b84d1b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 282710a336180ca60c287b78a4bc47d3a2d16e9b8b0c40ebbb645509d6f49d8760530c24194bd4712fd52c64d5d04d25452c14cda544dbabf589f11835a3d089
|
7
|
+
data.tar.gz: b2f755e42bd2b063fece9d3e4c45089760068a9be4a16f9f56938031537d777596156d9b915bd236dbfe3df14a2b84a3246f5ac9025c56e3aba8f94ebc583f08
|
@@ -42,13 +42,12 @@ module Google
|
|
42
42
|
# See {::Google::Cloud::Tasks::V2beta2::CloudTasks::Client::Configuration}
|
43
43
|
# for a description of the configuration fields.
|
44
44
|
#
|
45
|
-
#
|
45
|
+
# @example
|
46
46
|
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
# end
|
47
|
+
# # Modify the configuration for all CloudTasks clients
|
48
|
+
# ::Google::Cloud::Tasks::V2beta2::CloudTasks::Client.configure do |config|
|
49
|
+
# config.timeout = 10.0
|
50
|
+
# end
|
52
51
|
#
|
53
52
|
# @yield [config] Configure the Client client.
|
54
53
|
# @yieldparam config [Client::Configuration]
|
@@ -159,19 +158,15 @@ module Google
|
|
159
158
|
##
|
160
159
|
# Create a new CloudTasks client object.
|
161
160
|
#
|
162
|
-
#
|
163
|
-
#
|
164
|
-
# To create a new CloudTasks client with the default
|
165
|
-
# configuration:
|
161
|
+
# @example
|
166
162
|
#
|
167
|
-
#
|
163
|
+
# # Create a client using the default configuration
|
164
|
+
# client = ::Google::Cloud::Tasks::V2beta2::CloudTasks::Client.new
|
168
165
|
#
|
169
|
-
#
|
170
|
-
#
|
171
|
-
#
|
172
|
-
#
|
173
|
-
# config.timeout = 10.0
|
174
|
-
# end
|
166
|
+
# # Create a client using a custom configuration
|
167
|
+
# client = ::Google::Cloud::Tasks::V2beta2::CloudTasks::Client.new do |config|
|
168
|
+
# config.timeout = 10.0
|
169
|
+
# end
|
175
170
|
#
|
176
171
|
# @yield [config] Configure the CloudTasks client.
|
177
172
|
# @yieldparam config [Client::Configuration]
|
@@ -191,10 +186,9 @@ module Google
|
|
191
186
|
|
192
187
|
# Create credentials
|
193
188
|
credentials = @config.credentials
|
194
|
-
# Use self-signed JWT if the
|
189
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
195
190
|
# but only if the default endpoint does not have a region prefix.
|
196
|
-
enable_self_signed_jwt = @config.
|
197
|
-
@config.endpoint == Client.configure.endpoint &&
|
191
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
198
192
|
!@config.endpoint.split(".").first.include?("-")
|
199
193
|
credentials ||= Credentials.default scope: @config.scope,
|
200
194
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -307,7 +301,9 @@ module Google
|
|
307
301
|
options.apply_defaults timeout: @config.rpcs.list_queues.timeout,
|
308
302
|
metadata: metadata,
|
309
303
|
retry_policy: @config.rpcs.list_queues.retry_policy
|
310
|
-
|
304
|
+
|
305
|
+
options.apply_defaults timeout: @config.timeout,
|
306
|
+
metadata: @config.metadata,
|
311
307
|
retry_policy: @config.retry_policy
|
312
308
|
|
313
309
|
@cloud_tasks_stub.call_rpc :list_queues, request, options: options do |response, operation|
|
@@ -380,7 +376,9 @@ module Google
|
|
380
376
|
options.apply_defaults timeout: @config.rpcs.get_queue.timeout,
|
381
377
|
metadata: metadata,
|
382
378
|
retry_policy: @config.rpcs.get_queue.retry_policy
|
383
|
-
|
379
|
+
|
380
|
+
options.apply_defaults timeout: @config.timeout,
|
381
|
+
metadata: @config.metadata,
|
384
382
|
retry_policy: @config.retry_policy
|
385
383
|
|
386
384
|
@cloud_tasks_stub.call_rpc :get_queue, request, options: options do |response, operation|
|
@@ -466,7 +464,9 @@ module Google
|
|
466
464
|
options.apply_defaults timeout: @config.rpcs.create_queue.timeout,
|
467
465
|
metadata: metadata,
|
468
466
|
retry_policy: @config.rpcs.create_queue.retry_policy
|
469
|
-
|
467
|
+
|
468
|
+
options.apply_defaults timeout: @config.timeout,
|
469
|
+
metadata: @config.metadata,
|
470
470
|
retry_policy: @config.retry_policy
|
471
471
|
|
472
472
|
@cloud_tasks_stub.call_rpc :create_queue, request, options: options do |response, operation|
|
@@ -556,7 +556,9 @@ module Google
|
|
556
556
|
options.apply_defaults timeout: @config.rpcs.update_queue.timeout,
|
557
557
|
metadata: metadata,
|
558
558
|
retry_policy: @config.rpcs.update_queue.retry_policy
|
559
|
-
|
559
|
+
|
560
|
+
options.apply_defaults timeout: @config.timeout,
|
561
|
+
metadata: @config.metadata,
|
560
562
|
retry_policy: @config.retry_policy
|
561
563
|
|
562
564
|
@cloud_tasks_stub.call_rpc :update_queue, request, options: options do |response, operation|
|
@@ -635,7 +637,9 @@ module Google
|
|
635
637
|
options.apply_defaults timeout: @config.rpcs.delete_queue.timeout,
|
636
638
|
metadata: metadata,
|
637
639
|
retry_policy: @config.rpcs.delete_queue.retry_policy
|
638
|
-
|
640
|
+
|
641
|
+
options.apply_defaults timeout: @config.timeout,
|
642
|
+
metadata: @config.metadata,
|
639
643
|
retry_policy: @config.retry_policy
|
640
644
|
|
641
645
|
@cloud_tasks_stub.call_rpc :delete_queue, request, options: options do |response, operation|
|
@@ -707,7 +711,9 @@ module Google
|
|
707
711
|
options.apply_defaults timeout: @config.rpcs.purge_queue.timeout,
|
708
712
|
metadata: metadata,
|
709
713
|
retry_policy: @config.rpcs.purge_queue.retry_policy
|
710
|
-
|
714
|
+
|
715
|
+
options.apply_defaults timeout: @config.timeout,
|
716
|
+
metadata: @config.metadata,
|
711
717
|
retry_policy: @config.retry_policy
|
712
718
|
|
713
719
|
@cloud_tasks_stub.call_rpc :purge_queue, request, options: options do |response, operation|
|
@@ -780,7 +786,9 @@ module Google
|
|
780
786
|
options.apply_defaults timeout: @config.rpcs.pause_queue.timeout,
|
781
787
|
metadata: metadata,
|
782
788
|
retry_policy: @config.rpcs.pause_queue.retry_policy
|
783
|
-
|
789
|
+
|
790
|
+
options.apply_defaults timeout: @config.timeout,
|
791
|
+
metadata: @config.metadata,
|
784
792
|
retry_policy: @config.retry_policy
|
785
793
|
|
786
794
|
@cloud_tasks_stub.call_rpc :pause_queue, request, options: options do |response, operation|
|
@@ -859,7 +867,9 @@ module Google
|
|
859
867
|
options.apply_defaults timeout: @config.rpcs.resume_queue.timeout,
|
860
868
|
metadata: metadata,
|
861
869
|
retry_policy: @config.rpcs.resume_queue.retry_policy
|
862
|
-
|
870
|
+
|
871
|
+
options.apply_defaults timeout: @config.timeout,
|
872
|
+
metadata: @config.metadata,
|
863
873
|
retry_policy: @config.retry_policy
|
864
874
|
|
865
875
|
@cloud_tasks_stub.call_rpc :resume_queue, request, options: options do |response, operation|
|
@@ -937,7 +947,9 @@ module Google
|
|
937
947
|
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
938
948
|
metadata: metadata,
|
939
949
|
retry_policy: @config.rpcs.get_iam_policy.retry_policy
|
940
|
-
|
950
|
+
|
951
|
+
options.apply_defaults timeout: @config.timeout,
|
952
|
+
metadata: @config.metadata,
|
941
953
|
retry_policy: @config.retry_policy
|
942
954
|
|
943
955
|
@cloud_tasks_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
|
@@ -1019,7 +1031,9 @@ module Google
|
|
1019
1031
|
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
1020
1032
|
metadata: metadata,
|
1021
1033
|
retry_policy: @config.rpcs.set_iam_policy.retry_policy
|
1022
|
-
|
1034
|
+
|
1035
|
+
options.apply_defaults timeout: @config.timeout,
|
1036
|
+
metadata: @config.metadata,
|
1023
1037
|
retry_policy: @config.retry_policy
|
1024
1038
|
|
1025
1039
|
@cloud_tasks_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
|
@@ -1097,7 +1111,9 @@ module Google
|
|
1097
1111
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
1098
1112
|
metadata: metadata,
|
1099
1113
|
retry_policy: @config.rpcs.test_iam_permissions.retry_policy
|
1100
|
-
|
1114
|
+
|
1115
|
+
options.apply_defaults timeout: @config.timeout,
|
1116
|
+
metadata: @config.metadata,
|
1101
1117
|
retry_policy: @config.retry_policy
|
1102
1118
|
|
1103
1119
|
@cloud_tasks_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
|
@@ -1204,7 +1220,9 @@ module Google
|
|
1204
1220
|
options.apply_defaults timeout: @config.rpcs.list_tasks.timeout,
|
1205
1221
|
metadata: metadata,
|
1206
1222
|
retry_policy: @config.rpcs.list_tasks.retry_policy
|
1207
|
-
|
1223
|
+
|
1224
|
+
options.apply_defaults timeout: @config.timeout,
|
1225
|
+
metadata: @config.metadata,
|
1208
1226
|
retry_policy: @config.retry_policy
|
1209
1227
|
|
1210
1228
|
@cloud_tasks_stub.call_rpc :list_tasks, request, options: options do |response, operation|
|
@@ -1285,7 +1303,9 @@ module Google
|
|
1285
1303
|
options.apply_defaults timeout: @config.rpcs.get_task.timeout,
|
1286
1304
|
metadata: metadata,
|
1287
1305
|
retry_policy: @config.rpcs.get_task.retry_policy
|
1288
|
-
|
1306
|
+
|
1307
|
+
options.apply_defaults timeout: @config.timeout,
|
1308
|
+
metadata: @config.metadata,
|
1289
1309
|
retry_policy: @config.retry_policy
|
1290
1310
|
|
1291
1311
|
@cloud_tasks_stub.call_rpc :get_task, request, options: options do |response, operation|
|
@@ -1407,7 +1427,9 @@ module Google
|
|
1407
1427
|
options.apply_defaults timeout: @config.rpcs.create_task.timeout,
|
1408
1428
|
metadata: metadata,
|
1409
1429
|
retry_policy: @config.rpcs.create_task.retry_policy
|
1410
|
-
|
1430
|
+
|
1431
|
+
options.apply_defaults timeout: @config.timeout,
|
1432
|
+
metadata: @config.metadata,
|
1411
1433
|
retry_policy: @config.retry_policy
|
1412
1434
|
|
1413
1435
|
@cloud_tasks_stub.call_rpc :create_task, request, options: options do |response, operation|
|
@@ -1478,7 +1500,9 @@ module Google
|
|
1478
1500
|
options.apply_defaults timeout: @config.rpcs.delete_task.timeout,
|
1479
1501
|
metadata: metadata,
|
1480
1502
|
retry_policy: @config.rpcs.delete_task.retry_policy
|
1481
|
-
|
1503
|
+
|
1504
|
+
options.apply_defaults timeout: @config.timeout,
|
1505
|
+
metadata: @config.metadata,
|
1482
1506
|
retry_policy: @config.retry_policy
|
1483
1507
|
|
1484
1508
|
@cloud_tasks_stub.call_rpc :delete_task, request, options: options do |response, operation|
|
@@ -1640,7 +1664,9 @@ module Google
|
|
1640
1664
|
options.apply_defaults timeout: @config.rpcs.lease_tasks.timeout,
|
1641
1665
|
metadata: metadata,
|
1642
1666
|
retry_policy: @config.rpcs.lease_tasks.retry_policy
|
1643
|
-
|
1667
|
+
|
1668
|
+
options.apply_defaults timeout: @config.timeout,
|
1669
|
+
metadata: @config.metadata,
|
1644
1670
|
retry_policy: @config.retry_policy
|
1645
1671
|
|
1646
1672
|
@cloud_tasks_stub.call_rpc :lease_tasks, request, options: options do |response, operation|
|
@@ -1725,7 +1751,9 @@ module Google
|
|
1725
1751
|
options.apply_defaults timeout: @config.rpcs.acknowledge_task.timeout,
|
1726
1752
|
metadata: metadata,
|
1727
1753
|
retry_policy: @config.rpcs.acknowledge_task.retry_policy
|
1728
|
-
|
1754
|
+
|
1755
|
+
options.apply_defaults timeout: @config.timeout,
|
1756
|
+
metadata: @config.metadata,
|
1729
1757
|
retry_policy: @config.retry_policy
|
1730
1758
|
|
1731
1759
|
@cloud_tasks_stub.call_rpc :acknowledge_task, request, options: options do |response, operation|
|
@@ -1821,7 +1849,9 @@ module Google
|
|
1821
1849
|
options.apply_defaults timeout: @config.rpcs.renew_lease.timeout,
|
1822
1850
|
metadata: metadata,
|
1823
1851
|
retry_policy: @config.rpcs.renew_lease.retry_policy
|
1824
|
-
|
1852
|
+
|
1853
|
+
options.apply_defaults timeout: @config.timeout,
|
1854
|
+
metadata: @config.metadata,
|
1825
1855
|
retry_policy: @config.retry_policy
|
1826
1856
|
|
1827
1857
|
@cloud_tasks_stub.call_rpc :renew_lease, request, options: options do |response, operation|
|
@@ -1912,7 +1942,9 @@ module Google
|
|
1912
1942
|
options.apply_defaults timeout: @config.rpcs.cancel_lease.timeout,
|
1913
1943
|
metadata: metadata,
|
1914
1944
|
retry_policy: @config.rpcs.cancel_lease.retry_policy
|
1915
|
-
|
1945
|
+
|
1946
|
+
options.apply_defaults timeout: @config.timeout,
|
1947
|
+
metadata: @config.metadata,
|
1916
1948
|
retry_policy: @config.retry_policy
|
1917
1949
|
|
1918
1950
|
@cloud_tasks_stub.call_rpc :cancel_lease, request, options: options do |response, operation|
|
@@ -2018,7 +2050,9 @@ module Google
|
|
2018
2050
|
options.apply_defaults timeout: @config.rpcs.run_task.timeout,
|
2019
2051
|
metadata: metadata,
|
2020
2052
|
retry_policy: @config.rpcs.run_task.retry_policy
|
2021
|
-
|
2053
|
+
|
2054
|
+
options.apply_defaults timeout: @config.timeout,
|
2055
|
+
metadata: @config.metadata,
|
2022
2056
|
retry_policy: @config.retry_policy
|
2023
2057
|
|
2024
2058
|
@cloud_tasks_stub.call_rpc :run_task, request, options: options do |response, operation|
|
@@ -2042,22 +2076,21 @@ module Google
|
|
2042
2076
|
# Configuration can be applied globally to all clients, or to a single client
|
2043
2077
|
# on construction.
|
2044
2078
|
#
|
2045
|
-
#
|
2046
|
-
#
|
2047
|
-
#
|
2048
|
-
# to 20 seconds,
|
2049
|
-
#
|
2050
|
-
#
|
2051
|
-
#
|
2052
|
-
#
|
2053
|
-
#
|
2054
|
-
#
|
2055
|
-
#
|
2056
|
-
#
|
2057
|
-
#
|
2058
|
-
#
|
2059
|
-
#
|
2060
|
-
# end
|
2079
|
+
# @example
|
2080
|
+
#
|
2081
|
+
# # Modify the global config, setting the timeout for
|
2082
|
+
# # list_queues to 20 seconds,
|
2083
|
+
# # and all remaining timeouts to 10 seconds.
|
2084
|
+
# ::Google::Cloud::Tasks::V2beta2::CloudTasks::Client.configure do |config|
|
2085
|
+
# config.timeout = 10.0
|
2086
|
+
# config.rpcs.list_queues.timeout = 20.0
|
2087
|
+
# end
|
2088
|
+
#
|
2089
|
+
# # Apply the above configuration only to a new client.
|
2090
|
+
# client = ::Google::Cloud::Tasks::V2beta2::CloudTasks::Client.new do |config|
|
2091
|
+
# config.timeout = 10.0
|
2092
|
+
# config.rpcs.list_queues.timeout = 20.0
|
2093
|
+
# end
|
2061
2094
|
#
|
2062
2095
|
# @!attribute [rw] endpoint
|
2063
2096
|
# The hostname or hostname:port of the service endpoint.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-tasks-v2beta2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.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: 2021-
|
11
|
+
date: 2021-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|