google-cloud-dataform-v1beta1 0.7.1 → 0.9.0

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: 6ca19d535d9a7ea736fcf11d04bc3bd1cdf8bcf095af1ea2e95b92967fec68b8
4
- data.tar.gz: 671104e6af5719be659f7d2537c0b7a8c4faf72a08c01e76c263cba2a01f42c5
3
+ metadata.gz: a2305409e433cd7631b121561bb93fd29c5c5e0058d4854d96e0a76228169681
4
+ data.tar.gz: 10e9ba5cad5b8ee07c75e19d34a592764a9d6a35ea850f7341dc95068618c305
5
5
  SHA512:
6
- metadata.gz: 8e524b6dd2b41730e116312577db59982cf8a2c2a182cbbfe4fbd822604b84f6bafa08fe76532c9016731f2b3eb9f56f6ca12881ace961a1b3ac3e335e8506f7
7
- data.tar.gz: fcccf62f08cc0aec9656f7e7e777a87afad0603e834632c7464aad28e9c587319f3c9eee649b74a336c65df804bfba7cee897423e930ec7451bb408d8af67d70
6
+ metadata.gz: 8c2f8b7d71c6077ee49a9c4b04f51159bd292d3ab5f38d97f4ad974211606f9aeabe4ca1083d411f9d15fdba8fe848d63b7ef75c33fa110a5f01f0131c7036b2
7
+ data.tar.gz: 66b36fcba3bca3691268dc012e66bf113cb980835b829d322231bc7e3612b6bfb6cccc1510c43ce4f47013ab7bdc3ae4e9c82e9e4e00de88d5f59f5bd4285d9e
data/README.md CHANGED
@@ -43,40 +43,50 @@ for class and method documentation.
43
43
  See also the [Product Documentation](https://cloud.google.com/dataform)
44
44
  for general usage information.
45
45
 
46
- ## Enabling Logging
47
-
48
- To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
- that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
- and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
-
54
- Configuring a Ruby stdlib logger:
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/dataform/v1beta1"
57
76
  require "logger"
58
77
 
59
- module MyLogger
60
- LOGGER = Logger.new $stderr, level: Logger::WARN
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::Dataform::V1beta1::Dataform::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).
76
86
 
77
87
  ## Supported Ruby Versions
78
88
 
79
- This library is supported on Ruby 2.7+.
89
+ This library is supported on Ruby 3.0+.
80
90
 
81
91
  Google provides official support for Ruby versions that are actively supported
82
92
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -160,14 +160,26 @@ module Google
160
160
  universe_domain: @config.universe_domain,
161
161
  channel_args: @config.channel_args,
162
162
  interceptors: @config.interceptors,
163
- channel_pool_config: @config.channel_pool
163
+ channel_pool_config: @config.channel_pool,
164
+ logger: @config.logger
164
165
  )
165
166
 
167
+ @dataform_stub.stub_logger&.info do |entry|
168
+ entry.set_system_name
169
+ entry.set_service
170
+ entry.message = "Created client for #{entry.service}"
171
+ entry.set_credentials_fields credentials
172
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
173
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
174
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
175
+ end
176
+
166
177
  @location_client = Google::Cloud::Location::Locations::Client.new do |config|
167
178
  config.credentials = credentials
168
179
  config.quota_project = @quota_project_id
169
180
  config.endpoint = @dataform_stub.endpoint
170
181
  config.universe_domain = @dataform_stub.universe_domain
182
+ config.logger = @dataform_stub.logger if config.respond_to? :logger=
171
183
  end
172
184
 
173
185
  @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
@@ -175,6 +187,7 @@ module Google
175
187
  config.quota_project = @quota_project_id
176
188
  config.endpoint = @dataform_stub.endpoint
177
189
  config.universe_domain = @dataform_stub.universe_domain
190
+ config.logger = @dataform_stub.logger if config.respond_to? :logger=
178
191
  end
179
192
  end
180
193
 
@@ -192,6 +205,15 @@ module Google
192
205
  #
193
206
  attr_reader :iam_policy_client
194
207
 
208
+ ##
209
+ # The logger used for request/response debug logging.
210
+ #
211
+ # @return [Logger]
212
+ #
213
+ def logger
214
+ @dataform_stub.logger
215
+ end
216
+
195
217
  # Service calls
196
218
 
197
219
  ##
@@ -296,7 +318,7 @@ module Google
296
318
  @dataform_stub.call_rpc :list_repositories, request, options: options do |response, operation|
297
319
  response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_repositories, request, response, operation, options
298
320
  yield response, operation if block_given?
299
- return response
321
+ throw :response, response
300
322
  end
301
323
  rescue ::GRPC::BadStatus => e
302
324
  raise ::Google::Cloud::Error.from_error(e)
@@ -382,7 +404,6 @@ module Google
382
404
 
383
405
  @dataform_stub.call_rpc :get_repository, request, options: options do |response, operation|
384
406
  yield response, operation if block_given?
385
- return response
386
407
  end
387
408
  rescue ::GRPC::BadStatus => e
388
409
  raise ::Google::Cloud::Error.from_error(e)
@@ -474,7 +495,6 @@ module Google
474
495
 
475
496
  @dataform_stub.call_rpc :create_repository, request, options: options do |response, operation|
476
497
  yield response, operation if block_given?
477
- return response
478
498
  end
479
499
  rescue ::GRPC::BadStatus => e
480
500
  raise ::Google::Cloud::Error.from_error(e)
@@ -563,7 +583,6 @@ module Google
563
583
 
564
584
  @dataform_stub.call_rpc :update_repository, request, options: options do |response, operation|
565
585
  yield response, operation if block_given?
566
- return response
567
586
  end
568
587
  rescue ::GRPC::BadStatus => e
569
588
  raise ::Google::Cloud::Error.from_error(e)
@@ -653,7 +672,6 @@ module Google
653
672
 
654
673
  @dataform_stub.call_rpc :delete_repository, request, options: options do |response, operation|
655
674
  yield response, operation if block_given?
656
- return response
657
675
  end
658
676
  rescue ::GRPC::BadStatus => e
659
677
  raise ::Google::Cloud::Error.from_error(e)
@@ -749,7 +767,6 @@ module Google
749
767
 
750
768
  @dataform_stub.call_rpc :commit_repository_changes, request, options: options do |response, operation|
751
769
  yield response, operation if block_given?
752
- return response
753
770
  end
754
771
  rescue ::GRPC::BadStatus => e
755
772
  raise ::Google::Cloud::Error.from_error(e)
@@ -841,7 +858,6 @@ module Google
841
858
 
842
859
  @dataform_stub.call_rpc :read_repository_file, request, options: options do |response, operation|
843
860
  yield response, operation if block_given?
844
- return response
845
861
  end
846
862
  rescue ::GRPC::BadStatus => e
847
863
  raise ::Google::Cloud::Error.from_error(e)
@@ -951,7 +967,7 @@ module Google
951
967
  @dataform_stub.call_rpc :query_repository_directory_contents, request, options: options do |response, operation|
952
968
  response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_repository_directory_contents, request, response, operation, options
953
969
  yield response, operation if block_given?
954
- return response
970
+ throw :response, response
955
971
  end
956
972
  rescue ::GRPC::BadStatus => e
957
973
  raise ::Google::Cloud::Error.from_error(e)
@@ -1053,7 +1069,7 @@ module Google
1053
1069
  @dataform_stub.call_rpc :fetch_repository_history, request, options: options do |response, operation|
1054
1070
  response = ::Gapic::PagedEnumerable.new @dataform_stub, :fetch_repository_history, request, response, operation, options
1055
1071
  yield response, operation if block_given?
1056
- return response
1072
+ throw :response, response
1057
1073
  end
1058
1074
  rescue ::GRPC::BadStatus => e
1059
1075
  raise ::Google::Cloud::Error.from_error(e)
@@ -1139,7 +1155,6 @@ module Google
1139
1155
 
1140
1156
  @dataform_stub.call_rpc :compute_repository_access_token_status, request, options: options do |response, operation|
1141
1157
  yield response, operation if block_given?
1142
- return response
1143
1158
  end
1144
1159
  rescue ::GRPC::BadStatus => e
1145
1160
  raise ::Google::Cloud::Error.from_error(e)
@@ -1225,7 +1240,6 @@ module Google
1225
1240
 
1226
1241
  @dataform_stub.call_rpc :fetch_remote_branches, request, options: options do |response, operation|
1227
1242
  yield response, operation if block_given?
1228
- return response
1229
1243
  end
1230
1244
  rescue ::GRPC::BadStatus => e
1231
1245
  raise ::Google::Cloud::Error.from_error(e)
@@ -1333,7 +1347,7 @@ module Google
1333
1347
  @dataform_stub.call_rpc :list_workspaces, request, options: options do |response, operation|
1334
1348
  response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workspaces, request, response, operation, options
1335
1349
  yield response, operation if block_given?
1336
- return response
1350
+ throw :response, response
1337
1351
  end
1338
1352
  rescue ::GRPC::BadStatus => e
1339
1353
  raise ::Google::Cloud::Error.from_error(e)
@@ -1419,7 +1433,6 @@ module Google
1419
1433
 
1420
1434
  @dataform_stub.call_rpc :get_workspace, request, options: options do |response, operation|
1421
1435
  yield response, operation if block_given?
1422
- return response
1423
1436
  end
1424
1437
  rescue ::GRPC::BadStatus => e
1425
1438
  raise ::Google::Cloud::Error.from_error(e)
@@ -1511,7 +1524,6 @@ module Google
1511
1524
 
1512
1525
  @dataform_stub.call_rpc :create_workspace, request, options: options do |response, operation|
1513
1526
  yield response, operation if block_given?
1514
- return response
1515
1527
  end
1516
1528
  rescue ::GRPC::BadStatus => e
1517
1529
  raise ::Google::Cloud::Error.from_error(e)
@@ -1597,7 +1609,6 @@ module Google
1597
1609
 
1598
1610
  @dataform_stub.call_rpc :delete_workspace, request, options: options do |response, operation|
1599
1611
  yield response, operation if block_given?
1600
- return response
1601
1612
  end
1602
1613
  rescue ::GRPC::BadStatus => e
1603
1614
  raise ::Google::Cloud::Error.from_error(e)
@@ -1683,7 +1694,6 @@ module Google
1683
1694
 
1684
1695
  @dataform_stub.call_rpc :install_npm_packages, request, options: options do |response, operation|
1685
1696
  yield response, operation if block_given?
1686
- return response
1687
1697
  end
1688
1698
  rescue ::GRPC::BadStatus => e
1689
1699
  raise ::Google::Cloud::Error.from_error(e)
@@ -1775,7 +1785,6 @@ module Google
1775
1785
 
1776
1786
  @dataform_stub.call_rpc :pull_git_commits, request, options: options do |response, operation|
1777
1787
  yield response, operation if block_given?
1778
- return response
1779
1788
  end
1780
1789
  rescue ::GRPC::BadStatus => e
1781
1790
  raise ::Google::Cloud::Error.from_error(e)
@@ -1865,7 +1874,6 @@ module Google
1865
1874
 
1866
1875
  @dataform_stub.call_rpc :push_git_commits, request, options: options do |response, operation|
1867
1876
  yield response, operation if block_given?
1868
- return response
1869
1877
  end
1870
1878
  rescue ::GRPC::BadStatus => e
1871
1879
  raise ::Google::Cloud::Error.from_error(e)
@@ -1951,7 +1959,6 @@ module Google
1951
1959
 
1952
1960
  @dataform_stub.call_rpc :fetch_file_git_statuses, request, options: options do |response, operation|
1953
1961
  yield response, operation if block_given?
1954
- return response
1955
1962
  end
1956
1963
  rescue ::GRPC::BadStatus => e
1957
1964
  raise ::Google::Cloud::Error.from_error(e)
@@ -2041,7 +2048,6 @@ module Google
2041
2048
 
2042
2049
  @dataform_stub.call_rpc :fetch_git_ahead_behind, request, options: options do |response, operation|
2043
2050
  yield response, operation if block_given?
2044
- return response
2045
2051
  end
2046
2052
  rescue ::GRPC::BadStatus => e
2047
2053
  raise ::Google::Cloud::Error.from_error(e)
@@ -2134,7 +2140,6 @@ module Google
2134
2140
 
2135
2141
  @dataform_stub.call_rpc :commit_workspace_changes, request, options: options do |response, operation|
2136
2142
  yield response, operation if block_given?
2137
- return response
2138
2143
  end
2139
2144
  rescue ::GRPC::BadStatus => e
2140
2145
  raise ::Google::Cloud::Error.from_error(e)
@@ -2225,7 +2230,6 @@ module Google
2225
2230
 
2226
2231
  @dataform_stub.call_rpc :reset_workspace_changes, request, options: options do |response, operation|
2227
2232
  yield response, operation if block_given?
2228
- return response
2229
2233
  end
2230
2234
  rescue ::GRPC::BadStatus => e
2231
2235
  raise ::Google::Cloud::Error.from_error(e)
@@ -2314,7 +2318,6 @@ module Google
2314
2318
 
2315
2319
  @dataform_stub.call_rpc :fetch_file_diff, request, options: options do |response, operation|
2316
2320
  yield response, operation if block_given?
2317
- return response
2318
2321
  end
2319
2322
  rescue ::GRPC::BadStatus => e
2320
2323
  raise ::Google::Cloud::Error.from_error(e)
@@ -2419,7 +2422,7 @@ module Google
2419
2422
  @dataform_stub.call_rpc :query_directory_contents, request, options: options do |response, operation|
2420
2423
  response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_directory_contents, request, response, operation, options
2421
2424
  yield response, operation if block_given?
2422
- return response
2425
+ throw :response, response
2423
2426
  end
2424
2427
  rescue ::GRPC::BadStatus => e
2425
2428
  raise ::Google::Cloud::Error.from_error(e)
@@ -2508,7 +2511,6 @@ module Google
2508
2511
 
2509
2512
  @dataform_stub.call_rpc :make_directory, request, options: options do |response, operation|
2510
2513
  yield response, operation if block_given?
2511
- return response
2512
2514
  end
2513
2515
  rescue ::GRPC::BadStatus => e
2514
2516
  raise ::Google::Cloud::Error.from_error(e)
@@ -2597,7 +2599,6 @@ module Google
2597
2599
 
2598
2600
  @dataform_stub.call_rpc :remove_directory, request, options: options do |response, operation|
2599
2601
  yield response, operation if block_given?
2600
- return response
2601
2602
  end
2602
2603
  rescue ::GRPC::BadStatus => e
2603
2604
  raise ::Google::Cloud::Error.from_error(e)
@@ -2690,7 +2691,6 @@ module Google
2690
2691
 
2691
2692
  @dataform_stub.call_rpc :move_directory, request, options: options do |response, operation|
2692
2693
  yield response, operation if block_given?
2693
- return response
2694
2694
  end
2695
2695
  rescue ::GRPC::BadStatus => e
2696
2696
  raise ::Google::Cloud::Error.from_error(e)
@@ -2779,7 +2779,6 @@ module Google
2779
2779
 
2780
2780
  @dataform_stub.call_rpc :read_file, request, options: options do |response, operation|
2781
2781
  yield response, operation if block_given?
2782
- return response
2783
2782
  end
2784
2783
  rescue ::GRPC::BadStatus => e
2785
2784
  raise ::Google::Cloud::Error.from_error(e)
@@ -2868,7 +2867,6 @@ module Google
2868
2867
 
2869
2868
  @dataform_stub.call_rpc :remove_file, request, options: options do |response, operation|
2870
2869
  yield response, operation if block_given?
2871
- return response
2872
2870
  end
2873
2871
  rescue ::GRPC::BadStatus => e
2874
2872
  raise ::Google::Cloud::Error.from_error(e)
@@ -2960,7 +2958,6 @@ module Google
2960
2958
 
2961
2959
  @dataform_stub.call_rpc :move_file, request, options: options do |response, operation|
2962
2960
  yield response, operation if block_given?
2963
- return response
2964
2961
  end
2965
2962
  rescue ::GRPC::BadStatus => e
2966
2963
  raise ::Google::Cloud::Error.from_error(e)
@@ -3050,7 +3047,6 @@ module Google
3050
3047
 
3051
3048
  @dataform_stub.call_rpc :write_file, request, options: options do |response, operation|
3052
3049
  yield response, operation if block_given?
3053
- return response
3054
3050
  end
3055
3051
  rescue ::GRPC::BadStatus => e
3056
3052
  raise ::Google::Cloud::Error.from_error(e)
@@ -3152,7 +3148,7 @@ module Google
3152
3148
  @dataform_stub.call_rpc :list_release_configs, request, options: options do |response, operation|
3153
3149
  response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_release_configs, request, response, operation, options
3154
3150
  yield response, operation if block_given?
3155
- return response
3151
+ throw :response, response
3156
3152
  end
3157
3153
  rescue ::GRPC::BadStatus => e
3158
3154
  raise ::Google::Cloud::Error.from_error(e)
@@ -3238,7 +3234,6 @@ module Google
3238
3234
 
3239
3235
  @dataform_stub.call_rpc :get_release_config, request, options: options do |response, operation|
3240
3236
  yield response, operation if block_given?
3241
- return response
3242
3237
  end
3243
3238
  rescue ::GRPC::BadStatus => e
3244
3239
  raise ::Google::Cloud::Error.from_error(e)
@@ -3330,7 +3325,6 @@ module Google
3330
3325
 
3331
3326
  @dataform_stub.call_rpc :create_release_config, request, options: options do |response, operation|
3332
3327
  yield response, operation if block_given?
3333
- return response
3334
3328
  end
3335
3329
  rescue ::GRPC::BadStatus => e
3336
3330
  raise ::Google::Cloud::Error.from_error(e)
@@ -3419,7 +3413,6 @@ module Google
3419
3413
 
3420
3414
  @dataform_stub.call_rpc :update_release_config, request, options: options do |response, operation|
3421
3415
  yield response, operation if block_given?
3422
- return response
3423
3416
  end
3424
3417
  rescue ::GRPC::BadStatus => e
3425
3418
  raise ::Google::Cloud::Error.from_error(e)
@@ -3505,7 +3498,6 @@ module Google
3505
3498
 
3506
3499
  @dataform_stub.call_rpc :delete_release_config, request, options: options do |response, operation|
3507
3500
  yield response, operation if block_given?
3508
- return response
3509
3501
  end
3510
3502
  rescue ::GRPC::BadStatus => e
3511
3503
  raise ::Google::Cloud::Error.from_error(e)
@@ -3607,7 +3599,7 @@ module Google
3607
3599
  @dataform_stub.call_rpc :list_compilation_results, request, options: options do |response, operation|
3608
3600
  response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_compilation_results, request, response, operation, options
3609
3601
  yield response, operation if block_given?
3610
- return response
3602
+ throw :response, response
3611
3603
  end
3612
3604
  rescue ::GRPC::BadStatus => e
3613
3605
  raise ::Google::Cloud::Error.from_error(e)
@@ -3693,7 +3685,6 @@ module Google
3693
3685
 
3694
3686
  @dataform_stub.call_rpc :get_compilation_result, request, options: options do |response, operation|
3695
3687
  yield response, operation if block_given?
3696
- return response
3697
3688
  end
3698
3689
  rescue ::GRPC::BadStatus => e
3699
3690
  raise ::Google::Cloud::Error.from_error(e)
@@ -3782,7 +3773,6 @@ module Google
3782
3773
 
3783
3774
  @dataform_stub.call_rpc :create_compilation_result, request, options: options do |response, operation|
3784
3775
  yield response, operation if block_given?
3785
- return response
3786
3776
  end
3787
3777
  rescue ::GRPC::BadStatus => e
3788
3778
  raise ::Google::Cloud::Error.from_error(e)
@@ -3888,7 +3878,7 @@ module Google
3888
3878
  @dataform_stub.call_rpc :query_compilation_result_actions, request, options: options do |response, operation|
3889
3879
  response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_compilation_result_actions, request, response, operation, options
3890
3880
  yield response, operation if block_given?
3891
- return response
3881
+ throw :response, response
3892
3882
  end
3893
3883
  rescue ::GRPC::BadStatus => e
3894
3884
  raise ::Google::Cloud::Error.from_error(e)
@@ -3990,7 +3980,7 @@ module Google
3990
3980
  @dataform_stub.call_rpc :list_workflow_configs, request, options: options do |response, operation|
3991
3981
  response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workflow_configs, request, response, operation, options
3992
3982
  yield response, operation if block_given?
3993
- return response
3983
+ throw :response, response
3994
3984
  end
3995
3985
  rescue ::GRPC::BadStatus => e
3996
3986
  raise ::Google::Cloud::Error.from_error(e)
@@ -4076,7 +4066,6 @@ module Google
4076
4066
 
4077
4067
  @dataform_stub.call_rpc :get_workflow_config, request, options: options do |response, operation|
4078
4068
  yield response, operation if block_given?
4079
- return response
4080
4069
  end
4081
4070
  rescue ::GRPC::BadStatus => e
4082
4071
  raise ::Google::Cloud::Error.from_error(e)
@@ -4168,7 +4157,6 @@ module Google
4168
4157
 
4169
4158
  @dataform_stub.call_rpc :create_workflow_config, request, options: options do |response, operation|
4170
4159
  yield response, operation if block_given?
4171
- return response
4172
4160
  end
4173
4161
  rescue ::GRPC::BadStatus => e
4174
4162
  raise ::Google::Cloud::Error.from_error(e)
@@ -4257,7 +4245,6 @@ module Google
4257
4245
 
4258
4246
  @dataform_stub.call_rpc :update_workflow_config, request, options: options do |response, operation|
4259
4247
  yield response, operation if block_given?
4260
- return response
4261
4248
  end
4262
4249
  rescue ::GRPC::BadStatus => e
4263
4250
  raise ::Google::Cloud::Error.from_error(e)
@@ -4343,7 +4330,6 @@ module Google
4343
4330
 
4344
4331
  @dataform_stub.call_rpc :delete_workflow_config, request, options: options do |response, operation|
4345
4332
  yield response, operation if block_given?
4346
- return response
4347
4333
  end
4348
4334
  rescue ::GRPC::BadStatus => e
4349
4335
  raise ::Google::Cloud::Error.from_error(e)
@@ -4451,7 +4437,7 @@ module Google
4451
4437
  @dataform_stub.call_rpc :list_workflow_invocations, request, options: options do |response, operation|
4452
4438
  response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workflow_invocations, request, response, operation, options
4453
4439
  yield response, operation if block_given?
4454
- return response
4440
+ throw :response, response
4455
4441
  end
4456
4442
  rescue ::GRPC::BadStatus => e
4457
4443
  raise ::Google::Cloud::Error.from_error(e)
@@ -4537,7 +4523,6 @@ module Google
4537
4523
 
4538
4524
  @dataform_stub.call_rpc :get_workflow_invocation, request, options: options do |response, operation|
4539
4525
  yield response, operation if block_given?
4540
- return response
4541
4526
  end
4542
4527
  rescue ::GRPC::BadStatus => e
4543
4528
  raise ::Google::Cloud::Error.from_error(e)
@@ -4626,7 +4611,6 @@ module Google
4626
4611
 
4627
4612
  @dataform_stub.call_rpc :create_workflow_invocation, request, options: options do |response, operation|
4628
4613
  yield response, operation if block_given?
4629
- return response
4630
4614
  end
4631
4615
  rescue ::GRPC::BadStatus => e
4632
4616
  raise ::Google::Cloud::Error.from_error(e)
@@ -4712,7 +4696,6 @@ module Google
4712
4696
 
4713
4697
  @dataform_stub.call_rpc :delete_workflow_invocation, request, options: options do |response, operation|
4714
4698
  yield response, operation if block_given?
4715
- return response
4716
4699
  end
4717
4700
  rescue ::GRPC::BadStatus => e
4718
4701
  raise ::Google::Cloud::Error.from_error(e)
@@ -4798,7 +4781,6 @@ module Google
4798
4781
 
4799
4782
  @dataform_stub.call_rpc :cancel_workflow_invocation, request, options: options do |response, operation|
4800
4783
  yield response, operation if block_given?
4801
- return response
4802
4784
  end
4803
4785
  rescue ::GRPC::BadStatus => e
4804
4786
  raise ::Google::Cloud::Error.from_error(e)
@@ -4901,7 +4883,7 @@ module Google
4901
4883
  @dataform_stub.call_rpc :query_workflow_invocation_actions, request, options: options do |response, operation|
4902
4884
  response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_workflow_invocation_actions, request, response, operation, options
4903
4885
  yield response, operation if block_given?
4904
- return response
4886
+ throw :response, response
4905
4887
  end
4906
4888
  rescue ::GRPC::BadStatus => e
4907
4889
  raise ::Google::Cloud::Error.from_error(e)
@@ -4951,6 +4933,13 @@ module Google
4951
4933
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
4952
4934
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
4953
4935
  # * (`nil`) indicating no credentials
4936
+ #
4937
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
4938
+ # external source for authentication to Google Cloud, you must validate it before
4939
+ # providing it to a Google API client library. Providing an unvalidated credential
4940
+ # configuration to Google APIs can compromise the security of your systems and data.
4941
+ # For more information, refer to [Validate credential configurations from external
4942
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
4954
4943
  # @return [::Object]
4955
4944
  # @!attribute [rw] scope
4956
4945
  # The OAuth scopes
@@ -4990,6 +4979,11 @@ module Google
4990
4979
  # default endpoint URL. The default value of nil uses the environment
4991
4980
  # universe (usually the default "googleapis.com" universe).
4992
4981
  # @return [::String,nil]
4982
+ # @!attribute [rw] logger
4983
+ # A custom logger to use for request/response debug logging, or the value
4984
+ # `:default` (the default) to construct a default logger, or `nil` to
4985
+ # explicitly disable logging.
4986
+ # @return [::Logger,:default,nil]
4993
4987
  #
4994
4988
  class Configuration
4995
4989
  extend ::Gapic::Config
@@ -5014,6 +5008,7 @@ module Google
5014
5008
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
5015
5009
  config_attr :quota_project, nil, ::String, nil
5016
5010
  config_attr :universe_domain, nil, ::String, nil
5011
+ config_attr :logger, :default, ::Logger, nil, :default
5017
5012
 
5018
5013
  # @private
5019
5014
  def initialize parent_config = nil