google-cloud-tasks-v2 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/tasks/v2/cloud_tasks/client.rb +77 -52
- data/lib/google/cloud/tasks/v2/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 239f39155487cbf7cc0f0ab14f4cf66085ef43d94a597d5c596f2ba708d5978e
|
4
|
+
data.tar.gz: 4aa2739ff0e50e3edcd5b7548cd7f966f31855b1c41aae8114c44d599f0e9097
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e1e3952aa1cb27fe33c6e2aea226b0203bab6d719942c4ca83bb4f7625aca977e2e7821126bbc0b1bbf8e302192d6c7dbf9c16d58a34088c29a7a147fc1495e
|
7
|
+
data.tar.gz: 6584245395e1a518f8a9f463c2056deeb01bb5c3236a4faa28fbe78283782eab2ef769ce1853c92a7f8efc79ef1a9de07a68415694fb71123f400b9d0ef4fd23
|
@@ -42,13 +42,12 @@ module Google
|
|
42
42
|
# See {::Google::Cloud::Tasks::V2::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::V2::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]
|
@@ -151,19 +150,15 @@ module Google
|
|
151
150
|
##
|
152
151
|
# Create a new CloudTasks client object.
|
153
152
|
#
|
154
|
-
#
|
155
|
-
#
|
156
|
-
# To create a new CloudTasks client with the default
|
157
|
-
# configuration:
|
158
|
-
#
|
159
|
-
# client = ::Google::Cloud::Tasks::V2::CloudTasks::Client.new
|
153
|
+
# @example
|
160
154
|
#
|
161
|
-
#
|
162
|
-
#
|
155
|
+
# # Create a client using the default configuration
|
156
|
+
# client = ::Google::Cloud::Tasks::V2::CloudTasks::Client.new
|
163
157
|
#
|
164
|
-
#
|
165
|
-
#
|
166
|
-
#
|
158
|
+
# # Create a client using a custom configuration
|
159
|
+
# client = ::Google::Cloud::Tasks::V2::CloudTasks::Client.new do |config|
|
160
|
+
# config.timeout = 10.0
|
161
|
+
# end
|
167
162
|
#
|
168
163
|
# @yield [config] Configure the CloudTasks client.
|
169
164
|
# @yieldparam config [Client::Configuration]
|
@@ -183,10 +178,9 @@ module Google
|
|
183
178
|
|
184
179
|
# Create credentials
|
185
180
|
credentials = @config.credentials
|
186
|
-
# Use self-signed JWT if the
|
181
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
187
182
|
# but only if the default endpoint does not have a region prefix.
|
188
|
-
enable_self_signed_jwt = @config.
|
189
|
-
@config.endpoint == Client.configure.endpoint &&
|
183
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
190
184
|
!@config.endpoint.split(".").first.include?("-")
|
191
185
|
credentials ||= Credentials.default scope: @config.scope,
|
192
186
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -294,7 +288,9 @@ module Google
|
|
294
288
|
options.apply_defaults timeout: @config.rpcs.list_queues.timeout,
|
295
289
|
metadata: metadata,
|
296
290
|
retry_policy: @config.rpcs.list_queues.retry_policy
|
297
|
-
|
291
|
+
|
292
|
+
options.apply_defaults timeout: @config.timeout,
|
293
|
+
metadata: @config.metadata,
|
298
294
|
retry_policy: @config.retry_policy
|
299
295
|
|
300
296
|
@cloud_tasks_stub.call_rpc :list_queues, request, options: options do |response, operation|
|
@@ -362,7 +358,9 @@ module Google
|
|
362
358
|
options.apply_defaults timeout: @config.rpcs.get_queue.timeout,
|
363
359
|
metadata: metadata,
|
364
360
|
retry_policy: @config.rpcs.get_queue.retry_policy
|
365
|
-
|
361
|
+
|
362
|
+
options.apply_defaults timeout: @config.timeout,
|
363
|
+
metadata: @config.metadata,
|
366
364
|
retry_policy: @config.retry_policy
|
367
365
|
|
368
366
|
@cloud_tasks_stub.call_rpc :get_queue, request, options: options do |response, operation|
|
@@ -448,7 +446,9 @@ module Google
|
|
448
446
|
options.apply_defaults timeout: @config.rpcs.create_queue.timeout,
|
449
447
|
metadata: metadata,
|
450
448
|
retry_policy: @config.rpcs.create_queue.retry_policy
|
451
|
-
|
449
|
+
|
450
|
+
options.apply_defaults timeout: @config.timeout,
|
451
|
+
metadata: @config.metadata,
|
452
452
|
retry_policy: @config.retry_policy
|
453
453
|
|
454
454
|
@cloud_tasks_stub.call_rpc :create_queue, request, options: options do |response, operation|
|
@@ -538,7 +538,9 @@ module Google
|
|
538
538
|
options.apply_defaults timeout: @config.rpcs.update_queue.timeout,
|
539
539
|
metadata: metadata,
|
540
540
|
retry_policy: @config.rpcs.update_queue.retry_policy
|
541
|
-
|
541
|
+
|
542
|
+
options.apply_defaults timeout: @config.timeout,
|
543
|
+
metadata: @config.metadata,
|
542
544
|
retry_policy: @config.retry_policy
|
543
545
|
|
544
546
|
@cloud_tasks_stub.call_rpc :update_queue, request, options: options do |response, operation|
|
@@ -617,7 +619,9 @@ module Google
|
|
617
619
|
options.apply_defaults timeout: @config.rpcs.delete_queue.timeout,
|
618
620
|
metadata: metadata,
|
619
621
|
retry_policy: @config.rpcs.delete_queue.retry_policy
|
620
|
-
|
622
|
+
|
623
|
+
options.apply_defaults timeout: @config.timeout,
|
624
|
+
metadata: @config.metadata,
|
621
625
|
retry_policy: @config.retry_policy
|
622
626
|
|
623
627
|
@cloud_tasks_stub.call_rpc :delete_queue, request, options: options do |response, operation|
|
@@ -689,7 +693,9 @@ module Google
|
|
689
693
|
options.apply_defaults timeout: @config.rpcs.purge_queue.timeout,
|
690
694
|
metadata: metadata,
|
691
695
|
retry_policy: @config.rpcs.purge_queue.retry_policy
|
692
|
-
|
696
|
+
|
697
|
+
options.apply_defaults timeout: @config.timeout,
|
698
|
+
metadata: @config.metadata,
|
693
699
|
retry_policy: @config.retry_policy
|
694
700
|
|
695
701
|
@cloud_tasks_stub.call_rpc :purge_queue, request, options: options do |response, operation|
|
@@ -762,7 +768,9 @@ module Google
|
|
762
768
|
options.apply_defaults timeout: @config.rpcs.pause_queue.timeout,
|
763
769
|
metadata: metadata,
|
764
770
|
retry_policy: @config.rpcs.pause_queue.retry_policy
|
765
|
-
|
771
|
+
|
772
|
+
options.apply_defaults timeout: @config.timeout,
|
773
|
+
metadata: @config.metadata,
|
766
774
|
retry_policy: @config.retry_policy
|
767
775
|
|
768
776
|
@cloud_tasks_stub.call_rpc :pause_queue, request, options: options do |response, operation|
|
@@ -841,7 +849,9 @@ module Google
|
|
841
849
|
options.apply_defaults timeout: @config.rpcs.resume_queue.timeout,
|
842
850
|
metadata: metadata,
|
843
851
|
retry_policy: @config.rpcs.resume_queue.retry_policy
|
844
|
-
|
852
|
+
|
853
|
+
options.apply_defaults timeout: @config.timeout,
|
854
|
+
metadata: @config.metadata,
|
845
855
|
retry_policy: @config.retry_policy
|
846
856
|
|
847
857
|
@cloud_tasks_stub.call_rpc :resume_queue, request, options: options do |response, operation|
|
@@ -919,7 +929,9 @@ module Google
|
|
919
929
|
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
920
930
|
metadata: metadata,
|
921
931
|
retry_policy: @config.rpcs.get_iam_policy.retry_policy
|
922
|
-
|
932
|
+
|
933
|
+
options.apply_defaults timeout: @config.timeout,
|
934
|
+
metadata: @config.metadata,
|
923
935
|
retry_policy: @config.retry_policy
|
924
936
|
|
925
937
|
@cloud_tasks_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
|
@@ -1001,7 +1013,9 @@ module Google
|
|
1001
1013
|
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
1002
1014
|
metadata: metadata,
|
1003
1015
|
retry_policy: @config.rpcs.set_iam_policy.retry_policy
|
1004
|
-
|
1016
|
+
|
1017
|
+
options.apply_defaults timeout: @config.timeout,
|
1018
|
+
metadata: @config.metadata,
|
1005
1019
|
retry_policy: @config.retry_policy
|
1006
1020
|
|
1007
1021
|
@cloud_tasks_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
|
@@ -1079,7 +1093,9 @@ module Google
|
|
1079
1093
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
1080
1094
|
metadata: metadata,
|
1081
1095
|
retry_policy: @config.rpcs.test_iam_permissions.retry_policy
|
1082
|
-
|
1096
|
+
|
1097
|
+
options.apply_defaults timeout: @config.timeout,
|
1098
|
+
metadata: @config.metadata,
|
1083
1099
|
retry_policy: @config.retry_policy
|
1084
1100
|
|
1085
1101
|
@cloud_tasks_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
|
@@ -1186,7 +1202,9 @@ module Google
|
|
1186
1202
|
options.apply_defaults timeout: @config.rpcs.list_tasks.timeout,
|
1187
1203
|
metadata: metadata,
|
1188
1204
|
retry_policy: @config.rpcs.list_tasks.retry_policy
|
1189
|
-
|
1205
|
+
|
1206
|
+
options.apply_defaults timeout: @config.timeout,
|
1207
|
+
metadata: @config.metadata,
|
1190
1208
|
retry_policy: @config.retry_policy
|
1191
1209
|
|
1192
1210
|
@cloud_tasks_stub.call_rpc :list_tasks, request, options: options do |response, operation|
|
@@ -1267,7 +1285,9 @@ module Google
|
|
1267
1285
|
options.apply_defaults timeout: @config.rpcs.get_task.timeout,
|
1268
1286
|
metadata: metadata,
|
1269
1287
|
retry_policy: @config.rpcs.get_task.retry_policy
|
1270
|
-
|
1288
|
+
|
1289
|
+
options.apply_defaults timeout: @config.timeout,
|
1290
|
+
metadata: @config.metadata,
|
1271
1291
|
retry_policy: @config.retry_policy
|
1272
1292
|
|
1273
1293
|
@cloud_tasks_stub.call_rpc :get_task, request, options: options do |response, operation|
|
@@ -1387,7 +1407,9 @@ module Google
|
|
1387
1407
|
options.apply_defaults timeout: @config.rpcs.create_task.timeout,
|
1388
1408
|
metadata: metadata,
|
1389
1409
|
retry_policy: @config.rpcs.create_task.retry_policy
|
1390
|
-
|
1410
|
+
|
1411
|
+
options.apply_defaults timeout: @config.timeout,
|
1412
|
+
metadata: @config.metadata,
|
1391
1413
|
retry_policy: @config.retry_policy
|
1392
1414
|
|
1393
1415
|
@cloud_tasks_stub.call_rpc :create_task, request, options: options do |response, operation|
|
@@ -1458,7 +1480,9 @@ module Google
|
|
1458
1480
|
options.apply_defaults timeout: @config.rpcs.delete_task.timeout,
|
1459
1481
|
metadata: metadata,
|
1460
1482
|
retry_policy: @config.rpcs.delete_task.retry_policy
|
1461
|
-
|
1483
|
+
|
1484
|
+
options.apply_defaults timeout: @config.timeout,
|
1485
|
+
metadata: @config.metadata,
|
1462
1486
|
retry_policy: @config.retry_policy
|
1463
1487
|
|
1464
1488
|
@cloud_tasks_stub.call_rpc :delete_task, request, options: options do |response, operation|
|
@@ -1561,7 +1585,9 @@ module Google
|
|
1561
1585
|
options.apply_defaults timeout: @config.rpcs.run_task.timeout,
|
1562
1586
|
metadata: metadata,
|
1563
1587
|
retry_policy: @config.rpcs.run_task.retry_policy
|
1564
|
-
|
1588
|
+
|
1589
|
+
options.apply_defaults timeout: @config.timeout,
|
1590
|
+
metadata: @config.metadata,
|
1565
1591
|
retry_policy: @config.retry_policy
|
1566
1592
|
|
1567
1593
|
@cloud_tasks_stub.call_rpc :run_task, request, options: options do |response, operation|
|
@@ -1585,22 +1611,21 @@ module Google
|
|
1585
1611
|
# Configuration can be applied globally to all clients, or to a single client
|
1586
1612
|
# on construction.
|
1587
1613
|
#
|
1588
|
-
#
|
1589
|
-
#
|
1590
|
-
#
|
1591
|
-
# to 20 seconds,
|
1592
|
-
#
|
1593
|
-
#
|
1594
|
-
#
|
1595
|
-
#
|
1596
|
-
#
|
1597
|
-
#
|
1598
|
-
#
|
1599
|
-
#
|
1600
|
-
#
|
1601
|
-
#
|
1602
|
-
#
|
1603
|
-
# end
|
1614
|
+
# @example
|
1615
|
+
#
|
1616
|
+
# # Modify the global config, setting the timeout for
|
1617
|
+
# # list_queues to 20 seconds,
|
1618
|
+
# # and all remaining timeouts to 10 seconds.
|
1619
|
+
# ::Google::Cloud::Tasks::V2::CloudTasks::Client.configure do |config|
|
1620
|
+
# config.timeout = 10.0
|
1621
|
+
# config.rpcs.list_queues.timeout = 20.0
|
1622
|
+
# end
|
1623
|
+
#
|
1624
|
+
# # Apply the above configuration only to a new client.
|
1625
|
+
# client = ::Google::Cloud::Tasks::V2::CloudTasks::Client.new do |config|
|
1626
|
+
# config.timeout = 10.0
|
1627
|
+
# config.rpcs.list_queues.timeout = 20.0
|
1628
|
+
# end
|
1604
1629
|
#
|
1605
1630
|
# @!attribute [rw] endpoint
|
1606
1631
|
# 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-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.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
|