google-cloud-tasks-v2beta2 0.12.1 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +30 -20
- data/lib/google/cloud/tasks/v2beta2/cloud_tasks/client.rb +30 -22
- data/lib/google/cloud/tasks/v2beta2/cloud_tasks/rest/client.rb +30 -21
- data/lib/google/cloud/tasks/v2beta2/cloud_tasks/rest/service_stub.rb +174 -122
- data/lib/google/cloud/tasks/v2beta2/version.rb +1 -1
- data/proto_docs/google/api/client.rb +39 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: baa8e9db28eecbf3afcea14c0a0cf2d48881564108786427b58e0bed2694d669
|
4
|
+
data.tar.gz: 1497d6dbca25b657db8faf6d88f6d6a798d87a7547df3f5e1890df621238df4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b69d5c369ab6270afdb40bd9b7b3877da0d3bf1402488f7558a97cf16c92d8c9a02e27fdab45908eca6e726e9507ff72a2d95581293b311d87bad23d09a23c8
|
7
|
+
data.tar.gz: 2d9faaae9c2ee52561c2d0175b81f8a9d53a53b7be19e651145a6b8fde2f88f4dbcdfb022bdd86c45b6e6d84fb7e6fa876cac346213775325778604944cbe94b
|
data/README.md
CHANGED
@@ -43,33 +43,43 @@ for class and method documentation.
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/tasks)
|
44
44
|
for general usage information.
|
45
45
|
|
46
|
-
##
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
46
|
+
## Debug Logging
|
47
|
+
|
48
|
+
This library comes with opt-in Debug Logging that can help you troubleshoot
|
49
|
+
your application's integration with the API. When logging is activated, key
|
50
|
+
events such as requests and responses, along with data payloads and metadata
|
51
|
+
such as headers and client configuration, are logged to the standard error
|
52
|
+
stream.
|
53
|
+
|
54
|
+
**WARNING:** Client Library Debug Logging includes your data payloads in
|
55
|
+
plaintext, which could include sensitive data such as PII for yourself or your
|
56
|
+
customers, private keys, or other security data that could be compromising if
|
57
|
+
leaked. Always practice good data hygiene with your application logs, and follow
|
58
|
+
the principle of least access. Google also recommends that Client Library Debug
|
59
|
+
Logging be enabled only temporarily during active debugging, and not used
|
60
|
+
permanently in production.
|
61
|
+
|
62
|
+
To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
|
63
|
+
to the value `all`. Alternatively, you can set the value to a comma-delimited
|
64
|
+
list of client library gem names. This will select the default logging behavior,
|
65
|
+
which writes logs to the standard error stream. On a local workstation, this may
|
66
|
+
result in logs appearing on the console. When running on a Google Cloud hosting
|
67
|
+
service such as [Google Cloud Run](https://cloud.google.com/run), this generally
|
68
|
+
results in logs appearing alongside your application logs in the
|
69
|
+
[Google Cloud Logging](https://cloud.google.com/logging/) service.
|
70
|
+
|
71
|
+
You can customize logging by modifying the `logger` configuration when
|
72
|
+
constructing a client object. For example:
|
55
73
|
|
56
74
|
```ruby
|
75
|
+
require "google/cloud/tasks/v2beta2"
|
57
76
|
require "logger"
|
58
77
|
|
59
|
-
|
60
|
-
|
61
|
-
def logger
|
62
|
-
LOGGER
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
67
|
-
module GRPC
|
68
|
-
extend MyLogger
|
78
|
+
client = ::Google::Cloud::Tasks::V2beta2::CloudTasks::Client.new do |config|
|
79
|
+
config.logger = Logger.new "my-app.log"
|
69
80
|
end
|
70
81
|
```
|
71
82
|
|
72
|
-
|
73
83
|
## Google Cloud Samples
|
74
84
|
|
75
85
|
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
@@ -225,14 +225,26 @@ module Google
|
|
225
225
|
universe_domain: @config.universe_domain,
|
226
226
|
channel_args: @config.channel_args,
|
227
227
|
interceptors: @config.interceptors,
|
228
|
-
channel_pool_config: @config.channel_pool
|
228
|
+
channel_pool_config: @config.channel_pool,
|
229
|
+
logger: @config.logger
|
229
230
|
)
|
230
231
|
|
232
|
+
@cloud_tasks_stub.stub_logger&.info do |entry|
|
233
|
+
entry.set_system_name
|
234
|
+
entry.set_service
|
235
|
+
entry.message = "Created client for #{entry.service}"
|
236
|
+
entry.set_credentials_fields credentials
|
237
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
238
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
239
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
240
|
+
end
|
241
|
+
|
231
242
|
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
232
243
|
config.credentials = credentials
|
233
244
|
config.quota_project = @quota_project_id
|
234
245
|
config.endpoint = @cloud_tasks_stub.endpoint
|
235
246
|
config.universe_domain = @cloud_tasks_stub.universe_domain
|
247
|
+
config.logger = @cloud_tasks_stub.logger if config.respond_to? :logger=
|
236
248
|
end
|
237
249
|
end
|
238
250
|
|
@@ -243,6 +255,15 @@ module Google
|
|
243
255
|
#
|
244
256
|
attr_reader :location_client
|
245
257
|
|
258
|
+
##
|
259
|
+
# The logger used for request/response debug logging.
|
260
|
+
#
|
261
|
+
# @return [Logger]
|
262
|
+
#
|
263
|
+
def logger
|
264
|
+
@cloud_tasks_stub.logger
|
265
|
+
end
|
266
|
+
|
246
267
|
# Service calls
|
247
268
|
|
248
269
|
##
|
@@ -368,7 +389,7 @@ module Google
|
|
368
389
|
@cloud_tasks_stub.call_rpc :list_queues, request, options: options do |response, operation|
|
369
390
|
response = ::Gapic::PagedEnumerable.new @cloud_tasks_stub, :list_queues, request, response, operation, options
|
370
391
|
yield response, operation if block_given?
|
371
|
-
|
392
|
+
throw :response, response
|
372
393
|
end
|
373
394
|
rescue ::GRPC::BadStatus => e
|
374
395
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -460,7 +481,6 @@ module Google
|
|
460
481
|
|
461
482
|
@cloud_tasks_stub.call_rpc :get_queue, request, options: options do |response, operation|
|
462
483
|
yield response, operation if block_given?
|
463
|
-
return response
|
464
484
|
end
|
465
485
|
rescue ::GRPC::BadStatus => e
|
466
486
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -567,7 +587,6 @@ module Google
|
|
567
587
|
|
568
588
|
@cloud_tasks_stub.call_rpc :create_queue, request, options: options do |response, operation|
|
569
589
|
yield response, operation if block_given?
|
570
|
-
return response
|
571
590
|
end
|
572
591
|
rescue ::GRPC::BadStatus => e
|
573
592
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -679,7 +698,6 @@ module Google
|
|
679
698
|
|
680
699
|
@cloud_tasks_stub.call_rpc :update_queue, request, options: options do |response, operation|
|
681
700
|
yield response, operation if block_given?
|
682
|
-
return response
|
683
701
|
end
|
684
702
|
rescue ::GRPC::BadStatus => e
|
685
703
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -778,7 +796,6 @@ module Google
|
|
778
796
|
|
779
797
|
@cloud_tasks_stub.call_rpc :delete_queue, request, options: options do |response, operation|
|
780
798
|
yield response, operation if block_given?
|
781
|
-
return response
|
782
799
|
end
|
783
800
|
rescue ::GRPC::BadStatus => e
|
784
801
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -870,7 +887,6 @@ module Google
|
|
870
887
|
|
871
888
|
@cloud_tasks_stub.call_rpc :purge_queue, request, options: options do |response, operation|
|
872
889
|
yield response, operation if block_given?
|
873
|
-
return response
|
874
890
|
end
|
875
891
|
rescue ::GRPC::BadStatus => e
|
876
892
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -964,7 +980,6 @@ module Google
|
|
964
980
|
|
965
981
|
@cloud_tasks_stub.call_rpc :pause_queue, request, options: options do |response, operation|
|
966
982
|
yield response, operation if block_given?
|
967
|
-
return response
|
968
983
|
end
|
969
984
|
rescue ::GRPC::BadStatus => e
|
970
985
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1065,7 +1080,6 @@ module Google
|
|
1065
1080
|
|
1066
1081
|
@cloud_tasks_stub.call_rpc :resume_queue, request, options: options do |response, operation|
|
1067
1082
|
yield response, operation if block_given?
|
1068
|
-
return response
|
1069
1083
|
end
|
1070
1084
|
rescue ::GRPC::BadStatus => e
|
1071
1085
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1151,7 +1165,6 @@ module Google
|
|
1151
1165
|
|
1152
1166
|
@cloud_tasks_stub.call_rpc :upload_queue_yaml, request, options: options do |response, operation|
|
1153
1167
|
yield response, operation if block_given?
|
1154
|
-
return response
|
1155
1168
|
end
|
1156
1169
|
rescue ::GRPC::BadStatus => e
|
1157
1170
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1249,7 +1262,6 @@ module Google
|
|
1249
1262
|
|
1250
1263
|
@cloud_tasks_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
|
1251
1264
|
yield response, operation if block_given?
|
1252
|
-
return response
|
1253
1265
|
end
|
1254
1266
|
rescue ::GRPC::BadStatus => e
|
1255
1267
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1357,7 +1369,6 @@ module Google
|
|
1357
1369
|
|
1358
1370
|
@cloud_tasks_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
|
1359
1371
|
yield response, operation if block_given?
|
1360
|
-
return response
|
1361
1372
|
end
|
1362
1373
|
rescue ::GRPC::BadStatus => e
|
1363
1374
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1456,7 +1467,6 @@ module Google
|
|
1456
1467
|
|
1457
1468
|
@cloud_tasks_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
|
1458
1469
|
yield response, operation if block_given?
|
1459
|
-
return response
|
1460
1470
|
end
|
1461
1471
|
rescue ::GRPC::BadStatus => e
|
1462
1472
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1589,7 +1599,7 @@ module Google
|
|
1589
1599
|
@cloud_tasks_stub.call_rpc :list_tasks, request, options: options do |response, operation|
|
1590
1600
|
response = ::Gapic::PagedEnumerable.new @cloud_tasks_stub, :list_tasks, request, response, operation, options
|
1591
1601
|
yield response, operation if block_given?
|
1592
|
-
|
1602
|
+
throw :response, response
|
1593
1603
|
end
|
1594
1604
|
rescue ::GRPC::BadStatus => e
|
1595
1605
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1690,7 +1700,6 @@ module Google
|
|
1690
1700
|
|
1691
1701
|
@cloud_tasks_stub.call_rpc :get_task, request, options: options do |response, operation|
|
1692
1702
|
yield response, operation if block_given?
|
1693
|
-
return response
|
1694
1703
|
end
|
1695
1704
|
rescue ::GRPC::BadStatus => e
|
1696
1705
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1835,7 +1844,6 @@ module Google
|
|
1835
1844
|
|
1836
1845
|
@cloud_tasks_stub.call_rpc :create_task, request, options: options do |response, operation|
|
1837
1846
|
yield response, operation if block_given?
|
1838
|
-
return response
|
1839
1847
|
end
|
1840
1848
|
rescue ::GRPC::BadStatus => e
|
1841
1849
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1926,7 +1934,6 @@ module Google
|
|
1926
1934
|
|
1927
1935
|
@cloud_tasks_stub.call_rpc :delete_task, request, options: options do |response, operation|
|
1928
1936
|
yield response, operation if block_given?
|
1929
|
-
return response
|
1930
1937
|
end
|
1931
1938
|
rescue ::GRPC::BadStatus => e
|
1932
1939
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2116,7 +2123,6 @@ module Google
|
|
2116
2123
|
|
2117
2124
|
@cloud_tasks_stub.call_rpc :lease_tasks, request, options: options do |response, operation|
|
2118
2125
|
yield response, operation if block_given?
|
2119
|
-
return response
|
2120
2126
|
end
|
2121
2127
|
rescue ::GRPC::BadStatus => e
|
2122
2128
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2222,7 +2228,6 @@ module Google
|
|
2222
2228
|
|
2223
2229
|
@cloud_tasks_stub.call_rpc :acknowledge_task, request, options: options do |response, operation|
|
2224
2230
|
yield response, operation if block_given?
|
2225
|
-
return response
|
2226
2231
|
end
|
2227
2232
|
rescue ::GRPC::BadStatus => e
|
2228
2233
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2340,7 +2345,6 @@ module Google
|
|
2340
2345
|
|
2341
2346
|
@cloud_tasks_stub.call_rpc :renew_lease, request, options: options do |response, operation|
|
2342
2347
|
yield response, operation if block_given?
|
2343
|
-
return response
|
2344
2348
|
end
|
2345
2349
|
rescue ::GRPC::BadStatus => e
|
2346
2350
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2452,7 +2456,6 @@ module Google
|
|
2452
2456
|
|
2453
2457
|
@cloud_tasks_stub.call_rpc :cancel_lease, request, options: options do |response, operation|
|
2454
2458
|
yield response, operation if block_given?
|
2455
|
-
return response
|
2456
2459
|
end
|
2457
2460
|
rescue ::GRPC::BadStatus => e
|
2458
2461
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2582,7 +2585,6 @@ module Google
|
|
2582
2585
|
|
2583
2586
|
@cloud_tasks_stub.call_rpc :run_task, request, options: options do |response, operation|
|
2584
2587
|
yield response, operation if block_given?
|
2585
|
-
return response
|
2586
2588
|
end
|
2587
2589
|
rescue ::GRPC::BadStatus => e
|
2588
2590
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2671,6 +2673,11 @@ module Google
|
|
2671
2673
|
# default endpoint URL. The default value of nil uses the environment
|
2672
2674
|
# universe (usually the default "googleapis.com" universe).
|
2673
2675
|
# @return [::String,nil]
|
2676
|
+
# @!attribute [rw] logger
|
2677
|
+
# A custom logger to use for request/response debug logging, or the value
|
2678
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
2679
|
+
# explicitly disable logging.
|
2680
|
+
# @return [::Logger,:default,nil]
|
2674
2681
|
#
|
2675
2682
|
class Configuration
|
2676
2683
|
extend ::Gapic::Config
|
@@ -2695,6 +2702,7 @@ module Google
|
|
2695
2702
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
2696
2703
|
config_attr :quota_project, nil, ::String, nil
|
2697
2704
|
config_attr :universe_domain, nil, ::String, nil
|
2705
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
2698
2706
|
|
2699
2707
|
# @private
|
2700
2708
|
def initialize parent_config = nil
|
@@ -216,15 +216,27 @@ module Google
|
|
216
216
|
endpoint: @config.endpoint,
|
217
217
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
218
218
|
universe_domain: @config.universe_domain,
|
219
|
-
credentials: credentials
|
219
|
+
credentials: credentials,
|
220
|
+
logger: @config.logger
|
220
221
|
)
|
221
222
|
|
223
|
+
@cloud_tasks_stub.logger(stub: true)&.info do |entry|
|
224
|
+
entry.set_system_name
|
225
|
+
entry.set_service
|
226
|
+
entry.message = "Created client for #{entry.service}"
|
227
|
+
entry.set_credentials_fields credentials
|
228
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
229
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
230
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
231
|
+
end
|
232
|
+
|
222
233
|
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
223
234
|
config.credentials = credentials
|
224
235
|
config.quota_project = @quota_project_id
|
225
236
|
config.endpoint = @cloud_tasks_stub.endpoint
|
226
237
|
config.universe_domain = @cloud_tasks_stub.universe_domain
|
227
238
|
config.bindings_override = @config.bindings_override
|
239
|
+
config.logger = @cloud_tasks_stub.logger if config.respond_to? :logger=
|
228
240
|
end
|
229
241
|
end
|
230
242
|
|
@@ -235,6 +247,15 @@ module Google
|
|
235
247
|
#
|
236
248
|
attr_reader :location_client
|
237
249
|
|
250
|
+
##
|
251
|
+
# The logger used for request/response debug logging.
|
252
|
+
#
|
253
|
+
# @return [Logger]
|
254
|
+
#
|
255
|
+
def logger
|
256
|
+
@cloud_tasks_stub.logger
|
257
|
+
end
|
258
|
+
|
238
259
|
# Service calls
|
239
260
|
|
240
261
|
##
|
@@ -353,7 +374,7 @@ module Google
|
|
353
374
|
@cloud_tasks_stub.list_queues request, options do |result, operation|
|
354
375
|
result = ::Gapic::Rest::PagedEnumerable.new @cloud_tasks_stub, :list_queues, "queues", request, result, options
|
355
376
|
yield result, operation if block_given?
|
356
|
-
|
377
|
+
throw :response, result
|
357
378
|
end
|
358
379
|
rescue ::Gapic::Rest::Error => e
|
359
380
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -438,7 +459,6 @@ module Google
|
|
438
459
|
|
439
460
|
@cloud_tasks_stub.get_queue request, options do |result, operation|
|
440
461
|
yield result, operation if block_given?
|
441
|
-
return result
|
442
462
|
end
|
443
463
|
rescue ::Gapic::Rest::Error => e
|
444
464
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -538,7 +558,6 @@ module Google
|
|
538
558
|
|
539
559
|
@cloud_tasks_stub.create_queue request, options do |result, operation|
|
540
560
|
yield result, operation if block_given?
|
541
|
-
return result
|
542
561
|
end
|
543
562
|
rescue ::Gapic::Rest::Error => e
|
544
563
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -643,7 +662,6 @@ module Google
|
|
643
662
|
|
644
663
|
@cloud_tasks_stub.update_queue request, options do |result, operation|
|
645
664
|
yield result, operation if block_given?
|
646
|
-
return result
|
647
665
|
end
|
648
666
|
rescue ::Gapic::Rest::Error => e
|
649
667
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -735,7 +753,6 @@ module Google
|
|
735
753
|
|
736
754
|
@cloud_tasks_stub.delete_queue request, options do |result, operation|
|
737
755
|
yield result, operation if block_given?
|
738
|
-
return result
|
739
756
|
end
|
740
757
|
rescue ::Gapic::Rest::Error => e
|
741
758
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -820,7 +837,6 @@ module Google
|
|
820
837
|
|
821
838
|
@cloud_tasks_stub.purge_queue request, options do |result, operation|
|
822
839
|
yield result, operation if block_given?
|
823
|
-
return result
|
824
840
|
end
|
825
841
|
rescue ::Gapic::Rest::Error => e
|
826
842
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -907,7 +923,6 @@ module Google
|
|
907
923
|
|
908
924
|
@cloud_tasks_stub.pause_queue request, options do |result, operation|
|
909
925
|
yield result, operation if block_given?
|
910
|
-
return result
|
911
926
|
end
|
912
927
|
rescue ::Gapic::Rest::Error => e
|
913
928
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1001,7 +1016,6 @@ module Google
|
|
1001
1016
|
|
1002
1017
|
@cloud_tasks_stub.resume_queue request, options do |result, operation|
|
1003
1018
|
yield result, operation if block_given?
|
1004
|
-
return result
|
1005
1019
|
end
|
1006
1020
|
rescue ::Gapic::Rest::Error => e
|
1007
1021
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1092,7 +1106,6 @@ module Google
|
|
1092
1106
|
|
1093
1107
|
@cloud_tasks_stub.get_iam_policy request, options do |result, operation|
|
1094
1108
|
yield result, operation if block_given?
|
1095
|
-
return result
|
1096
1109
|
end
|
1097
1110
|
rescue ::Gapic::Rest::Error => e
|
1098
1111
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1193,7 +1206,6 @@ module Google
|
|
1193
1206
|
|
1194
1207
|
@cloud_tasks_stub.set_iam_policy request, options do |result, operation|
|
1195
1208
|
yield result, operation if block_given?
|
1196
|
-
return result
|
1197
1209
|
end
|
1198
1210
|
rescue ::Gapic::Rest::Error => e
|
1199
1211
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1285,7 +1297,6 @@ module Google
|
|
1285
1297
|
|
1286
1298
|
@cloud_tasks_stub.test_iam_permissions request, options do |result, operation|
|
1287
1299
|
yield result, operation if block_given?
|
1288
|
-
return result
|
1289
1300
|
end
|
1290
1301
|
rescue ::Gapic::Rest::Error => e
|
1291
1302
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1411,7 +1422,7 @@ module Google
|
|
1411
1422
|
@cloud_tasks_stub.list_tasks request, options do |result, operation|
|
1412
1423
|
result = ::Gapic::Rest::PagedEnumerable.new @cloud_tasks_stub, :list_tasks, "tasks", request, result, options
|
1413
1424
|
yield result, operation if block_given?
|
1414
|
-
|
1425
|
+
throw :response, result
|
1415
1426
|
end
|
1416
1427
|
rescue ::Gapic::Rest::Error => e
|
1417
1428
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1505,7 +1516,6 @@ module Google
|
|
1505
1516
|
|
1506
1517
|
@cloud_tasks_stub.get_task request, options do |result, operation|
|
1507
1518
|
yield result, operation if block_given?
|
1508
|
-
return result
|
1509
1519
|
end
|
1510
1520
|
rescue ::Gapic::Rest::Error => e
|
1511
1521
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1643,7 +1653,6 @@ module Google
|
|
1643
1653
|
|
1644
1654
|
@cloud_tasks_stub.create_task request, options do |result, operation|
|
1645
1655
|
yield result, operation if block_given?
|
1646
|
-
return result
|
1647
1656
|
end
|
1648
1657
|
rescue ::Gapic::Rest::Error => e
|
1649
1658
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1727,7 +1736,6 @@ module Google
|
|
1727
1736
|
|
1728
1737
|
@cloud_tasks_stub.delete_task request, options do |result, operation|
|
1729
1738
|
yield result, operation if block_given?
|
1730
|
-
return result
|
1731
1739
|
end
|
1732
1740
|
rescue ::Gapic::Rest::Error => e
|
1733
1741
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1910,7 +1918,6 @@ module Google
|
|
1910
1918
|
|
1911
1919
|
@cloud_tasks_stub.lease_tasks request, options do |result, operation|
|
1912
1920
|
yield result, operation if block_given?
|
1913
|
-
return result
|
1914
1921
|
end
|
1915
1922
|
rescue ::Gapic::Rest::Error => e
|
1916
1923
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2009,7 +2016,6 @@ module Google
|
|
2009
2016
|
|
2010
2017
|
@cloud_tasks_stub.acknowledge_task request, options do |result, operation|
|
2011
2018
|
yield result, operation if block_given?
|
2012
|
-
return result
|
2013
2019
|
end
|
2014
2020
|
rescue ::Gapic::Rest::Error => e
|
2015
2021
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2120,7 +2126,6 @@ module Google
|
|
2120
2126
|
|
2121
2127
|
@cloud_tasks_stub.renew_lease request, options do |result, operation|
|
2122
2128
|
yield result, operation if block_given?
|
2123
|
-
return result
|
2124
2129
|
end
|
2125
2130
|
rescue ::Gapic::Rest::Error => e
|
2126
2131
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2225,7 +2230,6 @@ module Google
|
|
2225
2230
|
|
2226
2231
|
@cloud_tasks_stub.cancel_lease request, options do |result, operation|
|
2227
2232
|
yield result, operation if block_given?
|
2228
|
-
return result
|
2229
2233
|
end
|
2230
2234
|
rescue ::Gapic::Rest::Error => e
|
2231
2235
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2348,7 +2352,6 @@ module Google
|
|
2348
2352
|
|
2349
2353
|
@cloud_tasks_stub.run_task request, options do |result, operation|
|
2350
2354
|
yield result, operation if block_given?
|
2351
|
-
return result
|
2352
2355
|
end
|
2353
2356
|
rescue ::Gapic::Rest::Error => e
|
2354
2357
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2428,6 +2431,11 @@ module Google
|
|
2428
2431
|
# default endpoint URL. The default value of nil uses the environment
|
2429
2432
|
# universe (usually the default "googleapis.com" universe).
|
2430
2433
|
# @return [::String,nil]
|
2434
|
+
# @!attribute [rw] logger
|
2435
|
+
# A custom logger to use for request/response debug logging, or the value
|
2436
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
2437
|
+
# explicitly disable logging.
|
2438
|
+
# @return [::Logger,:default,nil]
|
2431
2439
|
#
|
2432
2440
|
class Configuration
|
2433
2441
|
extend ::Gapic::Config
|
@@ -2456,6 +2464,7 @@ module Google
|
|
2456
2464
|
# by the host service.
|
2457
2465
|
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
2458
2466
|
config_attr :bindings_override, {}, ::Hash, nil
|
2467
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
2459
2468
|
|
2460
2469
|
# @private
|
2461
2470
|
def initialize parent_config = nil
|
@@ -30,7 +30,8 @@ module Google
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
|
-
|
33
|
+
# @private
|
34
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
34
35
|
# These require statements are intentionally placed here to initialize
|
35
36
|
# the REST modules only when it's required.
|
36
37
|
require "gapic/rest"
|
@@ -40,7 +41,9 @@ module Google
|
|
40
41
|
universe_domain: universe_domain,
|
41
42
|
credentials: credentials,
|
42
43
|
numeric_enums: true,
|
43
|
-
|
44
|
+
service_name: self.class,
|
45
|
+
raise_faraday_errors: false,
|
46
|
+
logger: logger
|
44
47
|
end
|
45
48
|
|
46
49
|
##
|
@@ -61,6 +64,15 @@ module Google
|
|
61
64
|
@client_stub.endpoint
|
62
65
|
end
|
63
66
|
|
67
|
+
##
|
68
|
+
# The logger used for request/response debug logging.
|
69
|
+
#
|
70
|
+
# @return [Logger]
|
71
|
+
#
|
72
|
+
def logger stub: false
|
73
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
74
|
+
end
|
75
|
+
|
64
76
|
##
|
65
77
|
# Baseline implementation for the list_queues REST call
|
66
78
|
#
|
@@ -87,16 +99,18 @@ module Google
|
|
87
99
|
|
88
100
|
response = @client_stub.make_http_request(
|
89
101
|
verb,
|
90
|
-
uri:
|
91
|
-
body:
|
92
|
-
params:
|
102
|
+
uri: uri,
|
103
|
+
body: body || "",
|
104
|
+
params: query_string_params,
|
105
|
+
method_name: "list_queues",
|
93
106
|
options: options
|
94
107
|
)
|
95
108
|
operation = ::Gapic::Rest::TransportOperation.new response
|
96
109
|
result = ::Google::Cloud::Tasks::V2beta2::ListQueuesResponse.decode_json response.body, ignore_unknown_fields: true
|
97
|
-
|
98
|
-
|
99
|
-
|
110
|
+
catch :response do
|
111
|
+
yield result, operation if block_given?
|
112
|
+
result
|
113
|
+
end
|
100
114
|
end
|
101
115
|
|
102
116
|
##
|
@@ -125,16 +139,18 @@ module Google
|
|
125
139
|
|
126
140
|
response = @client_stub.make_http_request(
|
127
141
|
verb,
|
128
|
-
uri:
|
129
|
-
body:
|
130
|
-
params:
|
142
|
+
uri: uri,
|
143
|
+
body: body || "",
|
144
|
+
params: query_string_params,
|
145
|
+
method_name: "get_queue",
|
131
146
|
options: options
|
132
147
|
)
|
133
148
|
operation = ::Gapic::Rest::TransportOperation.new response
|
134
149
|
result = ::Google::Cloud::Tasks::V2beta2::Queue.decode_json response.body, ignore_unknown_fields: true
|
135
|
-
|
136
|
-
|
137
|
-
|
150
|
+
catch :response do
|
151
|
+
yield result, operation if block_given?
|
152
|
+
result
|
153
|
+
end
|
138
154
|
end
|
139
155
|
|
140
156
|
##
|
@@ -163,16 +179,18 @@ module Google
|
|
163
179
|
|
164
180
|
response = @client_stub.make_http_request(
|
165
181
|
verb,
|
166
|
-
uri:
|
167
|
-
body:
|
168
|
-
params:
|
182
|
+
uri: uri,
|
183
|
+
body: body || "",
|
184
|
+
params: query_string_params,
|
185
|
+
method_name: "create_queue",
|
169
186
|
options: options
|
170
187
|
)
|
171
188
|
operation = ::Gapic::Rest::TransportOperation.new response
|
172
189
|
result = ::Google::Cloud::Tasks::V2beta2::Queue.decode_json response.body, ignore_unknown_fields: true
|
173
|
-
|
174
|
-
|
175
|
-
|
190
|
+
catch :response do
|
191
|
+
yield result, operation if block_given?
|
192
|
+
result
|
193
|
+
end
|
176
194
|
end
|
177
195
|
|
178
196
|
##
|
@@ -201,16 +219,18 @@ module Google
|
|
201
219
|
|
202
220
|
response = @client_stub.make_http_request(
|
203
221
|
verb,
|
204
|
-
uri:
|
205
|
-
body:
|
206
|
-
params:
|
222
|
+
uri: uri,
|
223
|
+
body: body || "",
|
224
|
+
params: query_string_params,
|
225
|
+
method_name: "update_queue",
|
207
226
|
options: options
|
208
227
|
)
|
209
228
|
operation = ::Gapic::Rest::TransportOperation.new response
|
210
229
|
result = ::Google::Cloud::Tasks::V2beta2::Queue.decode_json response.body, ignore_unknown_fields: true
|
211
|
-
|
212
|
-
|
213
|
-
|
230
|
+
catch :response do
|
231
|
+
yield result, operation if block_given?
|
232
|
+
result
|
233
|
+
end
|
214
234
|
end
|
215
235
|
|
216
236
|
##
|
@@ -239,16 +259,18 @@ module Google
|
|
239
259
|
|
240
260
|
response = @client_stub.make_http_request(
|
241
261
|
verb,
|
242
|
-
uri:
|
243
|
-
body:
|
244
|
-
params:
|
262
|
+
uri: uri,
|
263
|
+
body: body || "",
|
264
|
+
params: query_string_params,
|
265
|
+
method_name: "delete_queue",
|
245
266
|
options: options
|
246
267
|
)
|
247
268
|
operation = ::Gapic::Rest::TransportOperation.new response
|
248
269
|
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
249
|
-
|
250
|
-
|
251
|
-
|
270
|
+
catch :response do
|
271
|
+
yield result, operation if block_given?
|
272
|
+
result
|
273
|
+
end
|
252
274
|
end
|
253
275
|
|
254
276
|
##
|
@@ -277,16 +299,18 @@ module Google
|
|
277
299
|
|
278
300
|
response = @client_stub.make_http_request(
|
279
301
|
verb,
|
280
|
-
uri:
|
281
|
-
body:
|
282
|
-
params:
|
302
|
+
uri: uri,
|
303
|
+
body: body || "",
|
304
|
+
params: query_string_params,
|
305
|
+
method_name: "purge_queue",
|
283
306
|
options: options
|
284
307
|
)
|
285
308
|
operation = ::Gapic::Rest::TransportOperation.new response
|
286
309
|
result = ::Google::Cloud::Tasks::V2beta2::Queue.decode_json response.body, ignore_unknown_fields: true
|
287
|
-
|
288
|
-
|
289
|
-
|
310
|
+
catch :response do
|
311
|
+
yield result, operation if block_given?
|
312
|
+
result
|
313
|
+
end
|
290
314
|
end
|
291
315
|
|
292
316
|
##
|
@@ -315,16 +339,18 @@ module Google
|
|
315
339
|
|
316
340
|
response = @client_stub.make_http_request(
|
317
341
|
verb,
|
318
|
-
uri:
|
319
|
-
body:
|
320
|
-
params:
|
342
|
+
uri: uri,
|
343
|
+
body: body || "",
|
344
|
+
params: query_string_params,
|
345
|
+
method_name: "pause_queue",
|
321
346
|
options: options
|
322
347
|
)
|
323
348
|
operation = ::Gapic::Rest::TransportOperation.new response
|
324
349
|
result = ::Google::Cloud::Tasks::V2beta2::Queue.decode_json response.body, ignore_unknown_fields: true
|
325
|
-
|
326
|
-
|
327
|
-
|
350
|
+
catch :response do
|
351
|
+
yield result, operation if block_given?
|
352
|
+
result
|
353
|
+
end
|
328
354
|
end
|
329
355
|
|
330
356
|
##
|
@@ -353,16 +379,18 @@ module Google
|
|
353
379
|
|
354
380
|
response = @client_stub.make_http_request(
|
355
381
|
verb,
|
356
|
-
uri:
|
357
|
-
body:
|
358
|
-
params:
|
382
|
+
uri: uri,
|
383
|
+
body: body || "",
|
384
|
+
params: query_string_params,
|
385
|
+
method_name: "resume_queue",
|
359
386
|
options: options
|
360
387
|
)
|
361
388
|
operation = ::Gapic::Rest::TransportOperation.new response
|
362
389
|
result = ::Google::Cloud::Tasks::V2beta2::Queue.decode_json response.body, ignore_unknown_fields: true
|
363
|
-
|
364
|
-
|
365
|
-
|
390
|
+
catch :response do
|
391
|
+
yield result, operation if block_given?
|
392
|
+
result
|
393
|
+
end
|
366
394
|
end
|
367
395
|
|
368
396
|
##
|
@@ -391,16 +419,18 @@ module Google
|
|
391
419
|
|
392
420
|
response = @client_stub.make_http_request(
|
393
421
|
verb,
|
394
|
-
uri:
|
395
|
-
body:
|
396
|
-
params:
|
422
|
+
uri: uri,
|
423
|
+
body: body || "",
|
424
|
+
params: query_string_params,
|
425
|
+
method_name: "get_iam_policy",
|
397
426
|
options: options
|
398
427
|
)
|
399
428
|
operation = ::Gapic::Rest::TransportOperation.new response
|
400
429
|
result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true
|
401
|
-
|
402
|
-
|
403
|
-
|
430
|
+
catch :response do
|
431
|
+
yield result, operation if block_given?
|
432
|
+
result
|
433
|
+
end
|
404
434
|
end
|
405
435
|
|
406
436
|
##
|
@@ -429,16 +459,18 @@ module Google
|
|
429
459
|
|
430
460
|
response = @client_stub.make_http_request(
|
431
461
|
verb,
|
432
|
-
uri:
|
433
|
-
body:
|
434
|
-
params:
|
462
|
+
uri: uri,
|
463
|
+
body: body || "",
|
464
|
+
params: query_string_params,
|
465
|
+
method_name: "set_iam_policy",
|
435
466
|
options: options
|
436
467
|
)
|
437
468
|
operation = ::Gapic::Rest::TransportOperation.new response
|
438
469
|
result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true
|
439
|
-
|
440
|
-
|
441
|
-
|
470
|
+
catch :response do
|
471
|
+
yield result, operation if block_given?
|
472
|
+
result
|
473
|
+
end
|
442
474
|
end
|
443
475
|
|
444
476
|
##
|
@@ -467,16 +499,18 @@ module Google
|
|
467
499
|
|
468
500
|
response = @client_stub.make_http_request(
|
469
501
|
verb,
|
470
|
-
uri:
|
471
|
-
body:
|
472
|
-
params:
|
502
|
+
uri: uri,
|
503
|
+
body: body || "",
|
504
|
+
params: query_string_params,
|
505
|
+
method_name: "test_iam_permissions",
|
473
506
|
options: options
|
474
507
|
)
|
475
508
|
operation = ::Gapic::Rest::TransportOperation.new response
|
476
509
|
result = ::Google::Iam::V1::TestIamPermissionsResponse.decode_json response.body, ignore_unknown_fields: true
|
477
|
-
|
478
|
-
|
479
|
-
|
510
|
+
catch :response do
|
511
|
+
yield result, operation if block_given?
|
512
|
+
result
|
513
|
+
end
|
480
514
|
end
|
481
515
|
|
482
516
|
##
|
@@ -505,16 +539,18 @@ module Google
|
|
505
539
|
|
506
540
|
response = @client_stub.make_http_request(
|
507
541
|
verb,
|
508
|
-
uri:
|
509
|
-
body:
|
510
|
-
params:
|
542
|
+
uri: uri,
|
543
|
+
body: body || "",
|
544
|
+
params: query_string_params,
|
545
|
+
method_name: "list_tasks",
|
511
546
|
options: options
|
512
547
|
)
|
513
548
|
operation = ::Gapic::Rest::TransportOperation.new response
|
514
549
|
result = ::Google::Cloud::Tasks::V2beta2::ListTasksResponse.decode_json response.body, ignore_unknown_fields: true
|
515
|
-
|
516
|
-
|
517
|
-
|
550
|
+
catch :response do
|
551
|
+
yield result, operation if block_given?
|
552
|
+
result
|
553
|
+
end
|
518
554
|
end
|
519
555
|
|
520
556
|
##
|
@@ -543,16 +579,18 @@ module Google
|
|
543
579
|
|
544
580
|
response = @client_stub.make_http_request(
|
545
581
|
verb,
|
546
|
-
uri:
|
547
|
-
body:
|
548
|
-
params:
|
582
|
+
uri: uri,
|
583
|
+
body: body || "",
|
584
|
+
params: query_string_params,
|
585
|
+
method_name: "get_task",
|
549
586
|
options: options
|
550
587
|
)
|
551
588
|
operation = ::Gapic::Rest::TransportOperation.new response
|
552
589
|
result = ::Google::Cloud::Tasks::V2beta2::Task.decode_json response.body, ignore_unknown_fields: true
|
553
|
-
|
554
|
-
|
555
|
-
|
590
|
+
catch :response do
|
591
|
+
yield result, operation if block_given?
|
592
|
+
result
|
593
|
+
end
|
556
594
|
end
|
557
595
|
|
558
596
|
##
|
@@ -581,16 +619,18 @@ module Google
|
|
581
619
|
|
582
620
|
response = @client_stub.make_http_request(
|
583
621
|
verb,
|
584
|
-
uri:
|
585
|
-
body:
|
586
|
-
params:
|
622
|
+
uri: uri,
|
623
|
+
body: body || "",
|
624
|
+
params: query_string_params,
|
625
|
+
method_name: "create_task",
|
587
626
|
options: options
|
588
627
|
)
|
589
628
|
operation = ::Gapic::Rest::TransportOperation.new response
|
590
629
|
result = ::Google::Cloud::Tasks::V2beta2::Task.decode_json response.body, ignore_unknown_fields: true
|
591
|
-
|
592
|
-
|
593
|
-
|
630
|
+
catch :response do
|
631
|
+
yield result, operation if block_given?
|
632
|
+
result
|
633
|
+
end
|
594
634
|
end
|
595
635
|
|
596
636
|
##
|
@@ -619,16 +659,18 @@ module Google
|
|
619
659
|
|
620
660
|
response = @client_stub.make_http_request(
|
621
661
|
verb,
|
622
|
-
uri:
|
623
|
-
body:
|
624
|
-
params:
|
662
|
+
uri: uri,
|
663
|
+
body: body || "",
|
664
|
+
params: query_string_params,
|
665
|
+
method_name: "delete_task",
|
625
666
|
options: options
|
626
667
|
)
|
627
668
|
operation = ::Gapic::Rest::TransportOperation.new response
|
628
669
|
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
629
|
-
|
630
|
-
|
631
|
-
|
670
|
+
catch :response do
|
671
|
+
yield result, operation if block_given?
|
672
|
+
result
|
673
|
+
end
|
632
674
|
end
|
633
675
|
|
634
676
|
##
|
@@ -657,16 +699,18 @@ module Google
|
|
657
699
|
|
658
700
|
response = @client_stub.make_http_request(
|
659
701
|
verb,
|
660
|
-
uri:
|
661
|
-
body:
|
662
|
-
params:
|
702
|
+
uri: uri,
|
703
|
+
body: body || "",
|
704
|
+
params: query_string_params,
|
705
|
+
method_name: "lease_tasks",
|
663
706
|
options: options
|
664
707
|
)
|
665
708
|
operation = ::Gapic::Rest::TransportOperation.new response
|
666
709
|
result = ::Google::Cloud::Tasks::V2beta2::LeaseTasksResponse.decode_json response.body, ignore_unknown_fields: true
|
667
|
-
|
668
|
-
|
669
|
-
|
710
|
+
catch :response do
|
711
|
+
yield result, operation if block_given?
|
712
|
+
result
|
713
|
+
end
|
670
714
|
end
|
671
715
|
|
672
716
|
##
|
@@ -695,16 +739,18 @@ module Google
|
|
695
739
|
|
696
740
|
response = @client_stub.make_http_request(
|
697
741
|
verb,
|
698
|
-
uri:
|
699
|
-
body:
|
700
|
-
params:
|
742
|
+
uri: uri,
|
743
|
+
body: body || "",
|
744
|
+
params: query_string_params,
|
745
|
+
method_name: "acknowledge_task",
|
701
746
|
options: options
|
702
747
|
)
|
703
748
|
operation = ::Gapic::Rest::TransportOperation.new response
|
704
749
|
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
705
|
-
|
706
|
-
|
707
|
-
|
750
|
+
catch :response do
|
751
|
+
yield result, operation if block_given?
|
752
|
+
result
|
753
|
+
end
|
708
754
|
end
|
709
755
|
|
710
756
|
##
|
@@ -733,16 +779,18 @@ module Google
|
|
733
779
|
|
734
780
|
response = @client_stub.make_http_request(
|
735
781
|
verb,
|
736
|
-
uri:
|
737
|
-
body:
|
738
|
-
params:
|
782
|
+
uri: uri,
|
783
|
+
body: body || "",
|
784
|
+
params: query_string_params,
|
785
|
+
method_name: "renew_lease",
|
739
786
|
options: options
|
740
787
|
)
|
741
788
|
operation = ::Gapic::Rest::TransportOperation.new response
|
742
789
|
result = ::Google::Cloud::Tasks::V2beta2::Task.decode_json response.body, ignore_unknown_fields: true
|
743
|
-
|
744
|
-
|
745
|
-
|
790
|
+
catch :response do
|
791
|
+
yield result, operation if block_given?
|
792
|
+
result
|
793
|
+
end
|
746
794
|
end
|
747
795
|
|
748
796
|
##
|
@@ -771,16 +819,18 @@ module Google
|
|
771
819
|
|
772
820
|
response = @client_stub.make_http_request(
|
773
821
|
verb,
|
774
|
-
uri:
|
775
|
-
body:
|
776
|
-
params:
|
822
|
+
uri: uri,
|
823
|
+
body: body || "",
|
824
|
+
params: query_string_params,
|
825
|
+
method_name: "cancel_lease",
|
777
826
|
options: options
|
778
827
|
)
|
779
828
|
operation = ::Gapic::Rest::TransportOperation.new response
|
780
829
|
result = ::Google::Cloud::Tasks::V2beta2::Task.decode_json response.body, ignore_unknown_fields: true
|
781
|
-
|
782
|
-
|
783
|
-
|
830
|
+
catch :response do
|
831
|
+
yield result, operation if block_given?
|
832
|
+
result
|
833
|
+
end
|
784
834
|
end
|
785
835
|
|
786
836
|
##
|
@@ -809,16 +859,18 @@ module Google
|
|
809
859
|
|
810
860
|
response = @client_stub.make_http_request(
|
811
861
|
verb,
|
812
|
-
uri:
|
813
|
-
body:
|
814
|
-
params:
|
862
|
+
uri: uri,
|
863
|
+
body: body || "",
|
864
|
+
params: query_string_params,
|
865
|
+
method_name: "run_task",
|
815
866
|
options: options
|
816
867
|
)
|
817
868
|
operation = ::Gapic::Rest::TransportOperation.new response
|
818
869
|
result = ::Google::Cloud::Tasks::V2beta2::Task.decode_json response.body, ignore_unknown_fields: true
|
819
|
-
|
820
|
-
|
821
|
-
|
870
|
+
catch :response do
|
871
|
+
yield result, operation if block_given?
|
872
|
+
result
|
873
|
+
end
|
822
874
|
end
|
823
875
|
|
824
876
|
##
|
@@ -28,6 +28,9 @@ module Google
|
|
28
28
|
# @!attribute [rw] destinations
|
29
29
|
# @return [::Array<::Google::Api::ClientLibraryDestination>]
|
30
30
|
# The destination where API teams want this client library to be published.
|
31
|
+
# @!attribute [rw] selective_gapic_generation
|
32
|
+
# @return [::Google::Api::SelectiveGapicGeneration]
|
33
|
+
# Configuration for which RPCs should be generated in the GAPIC client.
|
31
34
|
class CommonLanguageSettings
|
32
35
|
include ::Google::Protobuf::MessageExts
|
33
36
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -212,6 +215,12 @@ module Google
|
|
212
215
|
# enabled. By default, asynchronous REST clients will not be generated.
|
213
216
|
# This feature will be enabled by default 1 month after launching the
|
214
217
|
# feature in preview packages.
|
218
|
+
# @!attribute [rw] protobuf_pythonic_types_enabled
|
219
|
+
# @return [::Boolean]
|
220
|
+
# Enables generation of protobuf code using new types that are more
|
221
|
+
# Pythonic which are included in `protobuf>=5.29.x`. This feature will be
|
222
|
+
# enabled by default 1 month after launching the feature in preview
|
223
|
+
# packages.
|
215
224
|
class ExperimentalFeatures
|
216
225
|
include ::Google::Protobuf::MessageExts
|
217
226
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -297,9 +306,28 @@ module Google
|
|
297
306
|
# @!attribute [rw] common
|
298
307
|
# @return [::Google::Api::CommonLanguageSettings]
|
299
308
|
# Some settings.
|
309
|
+
# @!attribute [rw] renamed_services
|
310
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
311
|
+
# Map of service names to renamed services. Keys are the package relative
|
312
|
+
# service names and values are the name to be used for the service client
|
313
|
+
# and call options.
|
314
|
+
#
|
315
|
+
# publishing:
|
316
|
+
# go_settings:
|
317
|
+
# renamed_services:
|
318
|
+
# Publisher: TopicAdmin
|
300
319
|
class GoSettings
|
301
320
|
include ::Google::Protobuf::MessageExts
|
302
321
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
322
|
+
|
323
|
+
# @!attribute [rw] key
|
324
|
+
# @return [::String]
|
325
|
+
# @!attribute [rw] value
|
326
|
+
# @return [::String]
|
327
|
+
class RenamedServicesEntry
|
328
|
+
include ::Google::Protobuf::MessageExts
|
329
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
330
|
+
end
|
303
331
|
end
|
304
332
|
|
305
333
|
# Describes the generator configuration for a method.
|
@@ -375,6 +403,17 @@ module Google
|
|
375
403
|
end
|
376
404
|
end
|
377
405
|
|
406
|
+
# This message is used to configure the generation of a subset of the RPCs in
|
407
|
+
# a service for client libraries.
|
408
|
+
# @!attribute [rw] methods
|
409
|
+
# @return [::Array<::String>]
|
410
|
+
# An allowlist of the fully qualified names of RPCs that should be included
|
411
|
+
# on public client surfaces.
|
412
|
+
class SelectiveGapicGeneration
|
413
|
+
include ::Google::Protobuf::MessageExts
|
414
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
415
|
+
end
|
416
|
+
|
378
417
|
# The organization for which the client libraries are being published.
|
379
418
|
# Affects the url where generated docs are published, etc.
|
380
419
|
module ClientLibraryOrganization
|
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.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-10 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.24.0
|
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.24.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
150
|
- !ruby/object:Gem::Version
|
151
151
|
version: '0'
|
152
152
|
requirements: []
|
153
|
-
rubygems_version: 3.5.
|
153
|
+
rubygems_version: 3.5.23
|
154
154
|
signing_key:
|
155
155
|
specification_version: 4
|
156
156
|
summary: Manages the execution of large numbers of distributed requests.
|