google-cloud-tasks-v2beta3 0.6.2 → 0.6.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: bc39261481083b518219621fb304281cc893c6450eec7cb4308a0934c4199aad
|
4
|
+
data.tar.gz: e72f3f5d8d02845ea42e2e2f66c67e8607c3039cf3acf76dae6aeed40198c058
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 238ce957ad0d20dd431b6fdc5590c7d8c3ae57be9b21216ee414d11a2d57fbdc7115bf1a6cd8ffedd8922d3b607adaa59f92bf9e950ac3c1f7213a61dbcfbc85
|
7
|
+
data.tar.gz: 7abb9f0ffd7b83cf6a26919abe291346d406f5634f8af2a0731861657d08d5e9a7bf915764a27626e428273662b3dd6ba80cb45805aac2160158e0bbfdd63f1b
|
@@ -42,13 +42,12 @@ module Google
|
|
42
42
|
# See {::Google::Cloud::Tasks::V2beta3::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::V2beta3::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::V2beta3::CloudTasks::Client.new
|
153
|
+
# @example
|
160
154
|
#
|
161
|
-
#
|
162
|
-
#
|
155
|
+
# # Create a client using the default configuration
|
156
|
+
# client = ::Google::Cloud::Tasks::V2beta3::CloudTasks::Client.new
|
163
157
|
#
|
164
|
-
#
|
165
|
-
#
|
166
|
-
#
|
158
|
+
# # Create a client using a custom configuration
|
159
|
+
# client = ::Google::Cloud::Tasks::V2beta3::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
|
@@ -299,7 +293,9 @@ module Google
|
|
299
293
|
options.apply_defaults timeout: @config.rpcs.list_queues.timeout,
|
300
294
|
metadata: metadata,
|
301
295
|
retry_policy: @config.rpcs.list_queues.retry_policy
|
302
|
-
|
296
|
+
|
297
|
+
options.apply_defaults timeout: @config.timeout,
|
298
|
+
metadata: @config.metadata,
|
303
299
|
retry_policy: @config.retry_policy
|
304
300
|
|
305
301
|
@cloud_tasks_stub.call_rpc :list_queues, request, options: options do |response, operation|
|
@@ -372,7 +368,9 @@ module Google
|
|
372
368
|
options.apply_defaults timeout: @config.rpcs.get_queue.timeout,
|
373
369
|
metadata: metadata,
|
374
370
|
retry_policy: @config.rpcs.get_queue.retry_policy
|
375
|
-
|
371
|
+
|
372
|
+
options.apply_defaults timeout: @config.timeout,
|
373
|
+
metadata: @config.metadata,
|
376
374
|
retry_policy: @config.retry_policy
|
377
375
|
|
378
376
|
@cloud_tasks_stub.call_rpc :get_queue, request, options: options do |response, operation|
|
@@ -458,7 +456,9 @@ module Google
|
|
458
456
|
options.apply_defaults timeout: @config.rpcs.create_queue.timeout,
|
459
457
|
metadata: metadata,
|
460
458
|
retry_policy: @config.rpcs.create_queue.retry_policy
|
461
|
-
|
459
|
+
|
460
|
+
options.apply_defaults timeout: @config.timeout,
|
461
|
+
metadata: @config.metadata,
|
462
462
|
retry_policy: @config.retry_policy
|
463
463
|
|
464
464
|
@cloud_tasks_stub.call_rpc :create_queue, request, options: options do |response, operation|
|
@@ -548,7 +548,9 @@ module Google
|
|
548
548
|
options.apply_defaults timeout: @config.rpcs.update_queue.timeout,
|
549
549
|
metadata: metadata,
|
550
550
|
retry_policy: @config.rpcs.update_queue.retry_policy
|
551
|
-
|
551
|
+
|
552
|
+
options.apply_defaults timeout: @config.timeout,
|
553
|
+
metadata: @config.metadata,
|
552
554
|
retry_policy: @config.retry_policy
|
553
555
|
|
554
556
|
@cloud_tasks_stub.call_rpc :update_queue, request, options: options do |response, operation|
|
@@ -627,7 +629,9 @@ module Google
|
|
627
629
|
options.apply_defaults timeout: @config.rpcs.delete_queue.timeout,
|
628
630
|
metadata: metadata,
|
629
631
|
retry_policy: @config.rpcs.delete_queue.retry_policy
|
630
|
-
|
632
|
+
|
633
|
+
options.apply_defaults timeout: @config.timeout,
|
634
|
+
metadata: @config.metadata,
|
631
635
|
retry_policy: @config.retry_policy
|
632
636
|
|
633
637
|
@cloud_tasks_stub.call_rpc :delete_queue, request, options: options do |response, operation|
|
@@ -699,7 +703,9 @@ module Google
|
|
699
703
|
options.apply_defaults timeout: @config.rpcs.purge_queue.timeout,
|
700
704
|
metadata: metadata,
|
701
705
|
retry_policy: @config.rpcs.purge_queue.retry_policy
|
702
|
-
|
706
|
+
|
707
|
+
options.apply_defaults timeout: @config.timeout,
|
708
|
+
metadata: @config.metadata,
|
703
709
|
retry_policy: @config.retry_policy
|
704
710
|
|
705
711
|
@cloud_tasks_stub.call_rpc :purge_queue, request, options: options do |response, operation|
|
@@ -772,7 +778,9 @@ module Google
|
|
772
778
|
options.apply_defaults timeout: @config.rpcs.pause_queue.timeout,
|
773
779
|
metadata: metadata,
|
774
780
|
retry_policy: @config.rpcs.pause_queue.retry_policy
|
775
|
-
|
781
|
+
|
782
|
+
options.apply_defaults timeout: @config.timeout,
|
783
|
+
metadata: @config.metadata,
|
776
784
|
retry_policy: @config.retry_policy
|
777
785
|
|
778
786
|
@cloud_tasks_stub.call_rpc :pause_queue, request, options: options do |response, operation|
|
@@ -851,7 +859,9 @@ module Google
|
|
851
859
|
options.apply_defaults timeout: @config.rpcs.resume_queue.timeout,
|
852
860
|
metadata: metadata,
|
853
861
|
retry_policy: @config.rpcs.resume_queue.retry_policy
|
854
|
-
|
862
|
+
|
863
|
+
options.apply_defaults timeout: @config.timeout,
|
864
|
+
metadata: @config.metadata,
|
855
865
|
retry_policy: @config.retry_policy
|
856
866
|
|
857
867
|
@cloud_tasks_stub.call_rpc :resume_queue, request, options: options do |response, operation|
|
@@ -929,7 +939,9 @@ module Google
|
|
929
939
|
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
930
940
|
metadata: metadata,
|
931
941
|
retry_policy: @config.rpcs.get_iam_policy.retry_policy
|
932
|
-
|
942
|
+
|
943
|
+
options.apply_defaults timeout: @config.timeout,
|
944
|
+
metadata: @config.metadata,
|
933
945
|
retry_policy: @config.retry_policy
|
934
946
|
|
935
947
|
@cloud_tasks_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
|
@@ -1011,7 +1023,9 @@ module Google
|
|
1011
1023
|
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
1012
1024
|
metadata: metadata,
|
1013
1025
|
retry_policy: @config.rpcs.set_iam_policy.retry_policy
|
1014
|
-
|
1026
|
+
|
1027
|
+
options.apply_defaults timeout: @config.timeout,
|
1028
|
+
metadata: @config.metadata,
|
1015
1029
|
retry_policy: @config.retry_policy
|
1016
1030
|
|
1017
1031
|
@cloud_tasks_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
|
@@ -1089,7 +1103,9 @@ module Google
|
|
1089
1103
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
1090
1104
|
metadata: metadata,
|
1091
1105
|
retry_policy: @config.rpcs.test_iam_permissions.retry_policy
|
1092
|
-
|
1106
|
+
|
1107
|
+
options.apply_defaults timeout: @config.timeout,
|
1108
|
+
metadata: @config.metadata,
|
1093
1109
|
retry_policy: @config.retry_policy
|
1094
1110
|
|
1095
1111
|
@cloud_tasks_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
|
@@ -1196,7 +1212,9 @@ module Google
|
|
1196
1212
|
options.apply_defaults timeout: @config.rpcs.list_tasks.timeout,
|
1197
1213
|
metadata: metadata,
|
1198
1214
|
retry_policy: @config.rpcs.list_tasks.retry_policy
|
1199
|
-
|
1215
|
+
|
1216
|
+
options.apply_defaults timeout: @config.timeout,
|
1217
|
+
metadata: @config.metadata,
|
1200
1218
|
retry_policy: @config.retry_policy
|
1201
1219
|
|
1202
1220
|
@cloud_tasks_stub.call_rpc :list_tasks, request, options: options do |response, operation|
|
@@ -1277,7 +1295,9 @@ module Google
|
|
1277
1295
|
options.apply_defaults timeout: @config.rpcs.get_task.timeout,
|
1278
1296
|
metadata: metadata,
|
1279
1297
|
retry_policy: @config.rpcs.get_task.retry_policy
|
1280
|
-
|
1298
|
+
|
1299
|
+
options.apply_defaults timeout: @config.timeout,
|
1300
|
+
metadata: @config.metadata,
|
1281
1301
|
retry_policy: @config.retry_policy
|
1282
1302
|
|
1283
1303
|
@cloud_tasks_stub.call_rpc :get_task, request, options: options do |response, operation|
|
@@ -1397,7 +1417,9 @@ module Google
|
|
1397
1417
|
options.apply_defaults timeout: @config.rpcs.create_task.timeout,
|
1398
1418
|
metadata: metadata,
|
1399
1419
|
retry_policy: @config.rpcs.create_task.retry_policy
|
1400
|
-
|
1420
|
+
|
1421
|
+
options.apply_defaults timeout: @config.timeout,
|
1422
|
+
metadata: @config.metadata,
|
1401
1423
|
retry_policy: @config.retry_policy
|
1402
1424
|
|
1403
1425
|
@cloud_tasks_stub.call_rpc :create_task, request, options: options do |response, operation|
|
@@ -1468,7 +1490,9 @@ module Google
|
|
1468
1490
|
options.apply_defaults timeout: @config.rpcs.delete_task.timeout,
|
1469
1491
|
metadata: metadata,
|
1470
1492
|
retry_policy: @config.rpcs.delete_task.retry_policy
|
1471
|
-
|
1493
|
+
|
1494
|
+
options.apply_defaults timeout: @config.timeout,
|
1495
|
+
metadata: @config.metadata,
|
1472
1496
|
retry_policy: @config.retry_policy
|
1473
1497
|
|
1474
1498
|
@cloud_tasks_stub.call_rpc :delete_task, request, options: options do |response, operation|
|
@@ -1571,7 +1595,9 @@ module Google
|
|
1571
1595
|
options.apply_defaults timeout: @config.rpcs.run_task.timeout,
|
1572
1596
|
metadata: metadata,
|
1573
1597
|
retry_policy: @config.rpcs.run_task.retry_policy
|
1574
|
-
|
1598
|
+
|
1599
|
+
options.apply_defaults timeout: @config.timeout,
|
1600
|
+
metadata: @config.metadata,
|
1575
1601
|
retry_policy: @config.retry_policy
|
1576
1602
|
|
1577
1603
|
@cloud_tasks_stub.call_rpc :run_task, request, options: options do |response, operation|
|
@@ -1595,22 +1621,21 @@ module Google
|
|
1595
1621
|
# Configuration can be applied globally to all clients, or to a single client
|
1596
1622
|
# on construction.
|
1597
1623
|
#
|
1598
|
-
#
|
1599
|
-
#
|
1600
|
-
#
|
1601
|
-
# to 20 seconds,
|
1602
|
-
#
|
1603
|
-
#
|
1604
|
-
#
|
1605
|
-
#
|
1606
|
-
#
|
1607
|
-
#
|
1608
|
-
#
|
1609
|
-
#
|
1610
|
-
#
|
1611
|
-
#
|
1612
|
-
#
|
1613
|
-
# end
|
1624
|
+
# @example
|
1625
|
+
#
|
1626
|
+
# # Modify the global config, setting the timeout for
|
1627
|
+
# # list_queues to 20 seconds,
|
1628
|
+
# # and all remaining timeouts to 10 seconds.
|
1629
|
+
# ::Google::Cloud::Tasks::V2beta3::CloudTasks::Client.configure do |config|
|
1630
|
+
# config.timeout = 10.0
|
1631
|
+
# config.rpcs.list_queues.timeout = 20.0
|
1632
|
+
# end
|
1633
|
+
#
|
1634
|
+
# # Apply the above configuration only to a new client.
|
1635
|
+
# client = ::Google::Cloud::Tasks::V2beta3::CloudTasks::Client.new do |config|
|
1636
|
+
# config.timeout = 10.0
|
1637
|
+
# config.rpcs.list_queues.timeout = 20.0
|
1638
|
+
# end
|
1614
1639
|
#
|
1615
1640
|
# @!attribute [rw] endpoint
|
1616
1641
|
# 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-v2beta3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.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
|