google-analytics-admin-v1alpha 0.30.1 → 0.31.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -202,8 +202,28 @@ module Google
202
202
  universe_domain: @config.universe_domain,
203
203
  channel_args: @config.channel_args,
204
204
  interceptors: @config.interceptors,
205
- channel_pool_config: @config.channel_pool
205
+ channel_pool_config: @config.channel_pool,
206
+ logger: @config.logger
206
207
  )
208
+
209
+ @analytics_admin_service_stub.stub_logger&.info do |entry|
210
+ entry.set_system_name
211
+ entry.set_service
212
+ entry.message = "Created client for #{entry.service}"
213
+ entry.set_credentials_fields credentials
214
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
215
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
216
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
217
+ end
218
+ end
219
+
220
+ ##
221
+ # The logger used for request/response debug logging.
222
+ #
223
+ # @return [Logger]
224
+ #
225
+ def logger
226
+ @analytics_admin_service_stub.logger
207
227
  end
208
228
 
209
229
  # Service calls
@@ -290,7 +310,6 @@ module Google
290
310
 
291
311
  @analytics_admin_service_stub.call_rpc :get_account, request, options: options do |response, operation|
292
312
  yield response, operation if block_given?
293
- return response
294
313
  end
295
314
  rescue ::GRPC::BadStatus => e
296
315
  raise ::Google::Cloud::Error.from_error(e)
@@ -389,7 +408,7 @@ module Google
389
408
  @analytics_admin_service_stub.call_rpc :list_accounts, request, options: options do |response, operation|
390
409
  response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_accounts, request, response, operation, options
391
410
  yield response, operation if block_given?
392
- return response
411
+ throw :response, response
393
412
  end
394
413
  rescue ::GRPC::BadStatus => e
395
414
  raise ::Google::Cloud::Error.from_error(e)
@@ -487,7 +506,6 @@ module Google
487
506
 
488
507
  @analytics_admin_service_stub.call_rpc :delete_account, request, options: options do |response, operation|
489
508
  yield response, operation if block_given?
490
- return response
491
509
  end
492
510
  rescue ::GRPC::BadStatus => e
493
511
  raise ::Google::Cloud::Error.from_error(e)
@@ -579,7 +597,6 @@ module Google
579
597
 
580
598
  @analytics_admin_service_stub.call_rpc :update_account, request, options: options do |response, operation|
581
599
  yield response, operation if block_given?
582
- return response
583
600
  end
584
601
  rescue ::GRPC::BadStatus => e
585
602
  raise ::Google::Cloud::Error.from_error(e)
@@ -660,7 +677,6 @@ module Google
660
677
 
661
678
  @analytics_admin_service_stub.call_rpc :provision_account_ticket, request, options: options do |response, operation|
662
679
  yield response, operation if block_given?
663
- return response
664
680
  end
665
681
  rescue ::GRPC::BadStatus => e
666
682
  raise ::Google::Cloud::Error.from_error(e)
@@ -751,7 +767,7 @@ module Google
751
767
  @analytics_admin_service_stub.call_rpc :list_account_summaries, request, options: options do |response, operation|
752
768
  response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_account_summaries, request, response, operation, options
753
769
  yield response, operation if block_given?
754
- return response
770
+ throw :response, response
755
771
  end
756
772
  rescue ::GRPC::BadStatus => e
757
773
  raise ::Google::Cloud::Error.from_error(e)
@@ -839,7 +855,6 @@ module Google
839
855
 
840
856
  @analytics_admin_service_stub.call_rpc :get_property, request, options: options do |response, operation|
841
857
  yield response, operation if block_given?
842
- return response
843
858
  end
844
859
  rescue ::GRPC::BadStatus => e
845
860
  raise ::Google::Cloud::Error.from_error(e)
@@ -956,7 +971,7 @@ module Google
956
971
  @analytics_admin_service_stub.call_rpc :list_properties, request, options: options do |response, operation|
957
972
  response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_properties, request, response, operation, options
958
973
  yield response, operation if block_given?
959
- return response
974
+ throw :response, response
960
975
  end
961
976
  rescue ::GRPC::BadStatus => e
962
977
  raise ::Google::Cloud::Error.from_error(e)
@@ -1035,7 +1050,6 @@ module Google
1035
1050
 
1036
1051
  @analytics_admin_service_stub.call_rpc :create_property, request, options: options do |response, operation|
1037
1052
  yield response, operation if block_given?
1038
- return response
1039
1053
  end
1040
1054
  rescue ::GRPC::BadStatus => e
1041
1055
  raise ::Google::Cloud::Error.from_error(e)
@@ -1133,7 +1147,6 @@ module Google
1133
1147
 
1134
1148
  @analytics_admin_service_stub.call_rpc :delete_property, request, options: options do |response, operation|
1135
1149
  yield response, operation if block_given?
1136
- return response
1137
1150
  end
1138
1151
  rescue ::GRPC::BadStatus => e
1139
1152
  raise ::Google::Cloud::Error.from_error(e)
@@ -1226,7 +1239,6 @@ module Google
1226
1239
 
1227
1240
  @analytics_admin_service_stub.call_rpc :update_property, request, options: options do |response, operation|
1228
1241
  yield response, operation if block_given?
1229
- return response
1230
1242
  end
1231
1243
  rescue ::GRPC::BadStatus => e
1232
1244
  raise ::Google::Cloud::Error.from_error(e)
@@ -1318,7 +1330,6 @@ module Google
1318
1330
 
1319
1331
  @analytics_admin_service_stub.call_rpc :create_firebase_link, request, options: options do |response, operation|
1320
1332
  yield response, operation if block_given?
1321
- return response
1322
1333
  end
1323
1334
  rescue ::GRPC::BadStatus => e
1324
1335
  raise ::Google::Cloud::Error.from_error(e)
@@ -1406,7 +1417,6 @@ module Google
1406
1417
 
1407
1418
  @analytics_admin_service_stub.call_rpc :delete_firebase_link, request, options: options do |response, operation|
1408
1419
  yield response, operation if block_given?
1409
- return response
1410
1420
  end
1411
1421
  rescue ::GRPC::BadStatus => e
1412
1422
  raise ::Google::Cloud::Error.from_error(e)
@@ -1510,7 +1520,7 @@ module Google
1510
1520
  @analytics_admin_service_stub.call_rpc :list_firebase_links, request, options: options do |response, operation|
1511
1521
  response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_firebase_links, request, response, operation, options
1512
1522
  yield response, operation if block_given?
1513
- return response
1523
+ throw :response, response
1514
1524
  end
1515
1525
  rescue ::GRPC::BadStatus => e
1516
1526
  raise ::Google::Cloud::Error.from_error(e)
@@ -1601,7 +1611,6 @@ module Google
1601
1611
 
1602
1612
  @analytics_admin_service_stub.call_rpc :get_global_site_tag, request, options: options do |response, operation|
1603
1613
  yield response, operation if block_given?
1604
- return response
1605
1614
  end
1606
1615
  rescue ::GRPC::BadStatus => e
1607
1616
  raise ::Google::Cloud::Error.from_error(e)
@@ -1689,7 +1698,6 @@ module Google
1689
1698
 
1690
1699
  @analytics_admin_service_stub.call_rpc :create_google_ads_link, request, options: options do |response, operation|
1691
1700
  yield response, operation if block_given?
1692
- return response
1693
1701
  end
1694
1702
  rescue ::GRPC::BadStatus => e
1695
1703
  raise ::Google::Cloud::Error.from_error(e)
@@ -1780,7 +1788,6 @@ module Google
1780
1788
 
1781
1789
  @analytics_admin_service_stub.call_rpc :update_google_ads_link, request, options: options do |response, operation|
1782
1790
  yield response, operation if block_given?
1783
- return response
1784
1791
  end
1785
1792
  rescue ::GRPC::BadStatus => e
1786
1793
  raise ::Google::Cloud::Error.from_error(e)
@@ -1866,7 +1873,6 @@ module Google
1866
1873
 
1867
1874
  @analytics_admin_service_stub.call_rpc :delete_google_ads_link, request, options: options do |response, operation|
1868
1875
  yield response, operation if block_given?
1869
- return response
1870
1876
  end
1871
1877
  rescue ::GRPC::BadStatus => e
1872
1878
  raise ::Google::Cloud::Error.from_error(e)
@@ -1967,7 +1973,7 @@ module Google
1967
1973
  @analytics_admin_service_stub.call_rpc :list_google_ads_links, request, options: options do |response, operation|
1968
1974
  response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_google_ads_links, request, response, operation, options
1969
1975
  yield response, operation if block_given?
1970
- return response
1976
+ throw :response, response
1971
1977
  end
1972
1978
  rescue ::GRPC::BadStatus => e
1973
1979
  raise ::Google::Cloud::Error.from_error(e)
@@ -2057,7 +2063,6 @@ module Google
2057
2063
 
2058
2064
  @analytics_admin_service_stub.call_rpc :get_data_sharing_settings, request, options: options do |response, operation|
2059
2065
  yield response, operation if block_given?
2060
- return response
2061
2066
  end
2062
2067
  rescue ::GRPC::BadStatus => e
2063
2068
  raise ::Google::Cloud::Error.from_error(e)
@@ -2145,7 +2150,6 @@ module Google
2145
2150
 
2146
2151
  @analytics_admin_service_stub.call_rpc :get_measurement_protocol_secret, request, options: options do |response, operation|
2147
2152
  yield response, operation if block_given?
2148
- return response
2149
2153
  end
2150
2154
  rescue ::GRPC::BadStatus => e
2151
2155
  raise ::Google::Cloud::Error.from_error(e)
@@ -2248,7 +2252,7 @@ module Google
2248
2252
  @analytics_admin_service_stub.call_rpc :list_measurement_protocol_secrets, request, options: options do |response, operation|
2249
2253
  response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_measurement_protocol_secrets, request, response, operation, options
2250
2254
  yield response, operation if block_given?
2251
- return response
2255
+ throw :response, response
2252
2256
  end
2253
2257
  rescue ::GRPC::BadStatus => e
2254
2258
  raise ::Google::Cloud::Error.from_error(e)
@@ -2337,7 +2341,6 @@ module Google
2337
2341
 
2338
2342
  @analytics_admin_service_stub.call_rpc :create_measurement_protocol_secret, request, options: options do |response, operation|
2339
2343
  yield response, operation if block_given?
2340
- return response
2341
2344
  end
2342
2345
  rescue ::GRPC::BadStatus => e
2343
2346
  raise ::Google::Cloud::Error.from_error(e)
@@ -2425,7 +2428,6 @@ module Google
2425
2428
 
2426
2429
  @analytics_admin_service_stub.call_rpc :delete_measurement_protocol_secret, request, options: options do |response, operation|
2427
2430
  yield response, operation if block_given?
2428
- return response
2429
2431
  end
2430
2432
  rescue ::GRPC::BadStatus => e
2431
2433
  raise ::Google::Cloud::Error.from_error(e)
@@ -2514,7 +2516,6 @@ module Google
2514
2516
 
2515
2517
  @analytics_admin_service_stub.call_rpc :update_measurement_protocol_secret, request, options: options do |response, operation|
2516
2518
  yield response, operation if block_given?
2517
- return response
2518
2519
  end
2519
2520
  rescue ::GRPC::BadStatus => e
2520
2521
  raise ::Google::Cloud::Error.from_error(e)
@@ -2613,7 +2614,6 @@ module Google
2613
2614
 
2614
2615
  @analytics_admin_service_stub.call_rpc :acknowledge_user_data_collection, request, options: options do |response, operation|
2615
2616
  yield response, operation if block_given?
2616
- return response
2617
2617
  end
2618
2618
  rescue ::GRPC::BadStatus => e
2619
2619
  raise ::Google::Cloud::Error.from_error(e)
@@ -2701,7 +2701,6 @@ module Google
2701
2701
 
2702
2702
  @analytics_admin_service_stub.call_rpc :get_sk_ad_network_conversion_value_schema, request, options: options do |response, operation|
2703
2703
  yield response, operation if block_given?
2704
- return response
2705
2704
  end
2706
2705
  rescue ::GRPC::BadStatus => e
2707
2706
  raise ::Google::Cloud::Error.from_error(e)
@@ -2790,7 +2789,6 @@ module Google
2790
2789
 
2791
2790
  @analytics_admin_service_stub.call_rpc :create_sk_ad_network_conversion_value_schema, request, options: options do |response, operation|
2792
2791
  yield response, operation if block_given?
2793
- return response
2794
2792
  end
2795
2793
  rescue ::GRPC::BadStatus => e
2796
2794
  raise ::Google::Cloud::Error.from_error(e)
@@ -2878,7 +2876,6 @@ module Google
2878
2876
 
2879
2877
  @analytics_admin_service_stub.call_rpc :delete_sk_ad_network_conversion_value_schema, request, options: options do |response, operation|
2880
2878
  yield response, operation if block_given?
2881
- return response
2882
2879
  end
2883
2880
  rescue ::GRPC::BadStatus => e
2884
2881
  raise ::Google::Cloud::Error.from_error(e)
@@ -2967,7 +2964,6 @@ module Google
2967
2964
 
2968
2965
  @analytics_admin_service_stub.call_rpc :update_sk_ad_network_conversion_value_schema, request, options: options do |response, operation|
2969
2966
  yield response, operation if block_given?
2970
- return response
2971
2967
  end
2972
2968
  rescue ::GRPC::BadStatus => e
2973
2969
  raise ::Google::Cloud::Error.from_error(e)
@@ -3073,7 +3069,7 @@ module Google
3073
3069
  @analytics_admin_service_stub.call_rpc :list_sk_ad_network_conversion_value_schemas, request, options: options do |response, operation|
3074
3070
  response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_sk_ad_network_conversion_value_schemas, request, response, operation, options
3075
3071
  yield response, operation if block_given?
3076
- return response
3072
+ throw :response, response
3077
3073
  end
3078
3074
  rescue ::GRPC::BadStatus => e
3079
3075
  raise ::Google::Cloud::Error.from_error(e)
@@ -3198,7 +3194,7 @@ module Google
3198
3194
  @analytics_admin_service_stub.call_rpc :search_change_history_events, request, options: options do |response, operation|
3199
3195
  response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :search_change_history_events, request, response, operation, options
3200
3196
  yield response, operation if block_given?
3201
- return response
3197
+ throw :response, response
3202
3198
  end
3203
3199
  rescue ::GRPC::BadStatus => e
3204
3200
  raise ::Google::Cloud::Error.from_error(e)
@@ -3285,7 +3281,6 @@ module Google
3285
3281
 
3286
3282
  @analytics_admin_service_stub.call_rpc :get_google_signals_settings, request, options: options do |response, operation|
3287
3283
  yield response, operation if block_given?
3288
- return response
3289
3284
  end
3290
3285
  rescue ::GRPC::BadStatus => e
3291
3286
  raise ::Google::Cloud::Error.from_error(e)
@@ -3377,7 +3372,6 @@ module Google
3377
3372
 
3378
3373
  @analytics_admin_service_stub.call_rpc :update_google_signals_settings, request, options: options do |response, operation|
3379
3374
  yield response, operation if block_given?
3380
- return response
3381
3375
  end
3382
3376
  rescue ::GRPC::BadStatus => e
3383
3377
  raise ::Google::Cloud::Error.from_error(e)
@@ -3469,7 +3463,6 @@ module Google
3469
3463
 
3470
3464
  @analytics_admin_service_stub.call_rpc :create_conversion_event, request, options: options do |response, operation|
3471
3465
  yield response, operation if block_given?
3472
- return response
3473
3466
  end
3474
3467
  rescue ::GRPC::BadStatus => e
3475
3468
  raise ::Google::Cloud::Error.from_error(e)
@@ -3564,7 +3557,6 @@ module Google
3564
3557
 
3565
3558
  @analytics_admin_service_stub.call_rpc :update_conversion_event, request, options: options do |response, operation|
3566
3559
  yield response, operation if block_given?
3567
- return response
3568
3560
  end
3569
3561
  rescue ::GRPC::BadStatus => e
3570
3562
  raise ::Google::Cloud::Error.from_error(e)
@@ -3655,7 +3647,6 @@ module Google
3655
3647
 
3656
3648
  @analytics_admin_service_stub.call_rpc :get_conversion_event, request, options: options do |response, operation|
3657
3649
  yield response, operation if block_given?
3658
- return response
3659
3650
  end
3660
3651
  rescue ::GRPC::BadStatus => e
3661
3652
  raise ::Google::Cloud::Error.from_error(e)
@@ -3746,7 +3737,6 @@ module Google
3746
3737
 
3747
3738
  @analytics_admin_service_stub.call_rpc :delete_conversion_event, request, options: options do |response, operation|
3748
3739
  yield response, operation if block_given?
3749
- return response
3750
3740
  end
3751
3741
  rescue ::GRPC::BadStatus => e
3752
3742
  raise ::Google::Cloud::Error.from_error(e)
@@ -3852,7 +3842,7 @@ module Google
3852
3842
  @analytics_admin_service_stub.call_rpc :list_conversion_events, request, options: options do |response, operation|
3853
3843
  response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_conversion_events, request, response, operation, options
3854
3844
  yield response, operation if block_given?
3855
- return response
3845
+ throw :response, response
3856
3846
  end
3857
3847
  rescue ::GRPC::BadStatus => e
3858
3848
  raise ::Google::Cloud::Error.from_error(e)
@@ -3941,7 +3931,6 @@ module Google
3941
3931
 
3942
3932
  @analytics_admin_service_stub.call_rpc :create_key_event, request, options: options do |response, operation|
3943
3933
  yield response, operation if block_given?
3944
- return response
3945
3934
  end
3946
3935
  rescue ::GRPC::BadStatus => e
3947
3936
  raise ::Google::Cloud::Error.from_error(e)
@@ -4033,7 +4022,6 @@ module Google
4033
4022
 
4034
4023
  @analytics_admin_service_stub.call_rpc :update_key_event, request, options: options do |response, operation|
4035
4024
  yield response, operation if block_given?
4036
- return response
4037
4025
  end
4038
4026
  rescue ::GRPC::BadStatus => e
4039
4027
  raise ::Google::Cloud::Error.from_error(e)
@@ -4121,7 +4109,6 @@ module Google
4121
4109
 
4122
4110
  @analytics_admin_service_stub.call_rpc :get_key_event, request, options: options do |response, operation|
4123
4111
  yield response, operation if block_given?
4124
- return response
4125
4112
  end
4126
4113
  rescue ::GRPC::BadStatus => e
4127
4114
  raise ::Google::Cloud::Error.from_error(e)
@@ -4209,7 +4196,6 @@ module Google
4209
4196
 
4210
4197
  @analytics_admin_service_stub.call_rpc :delete_key_event, request, options: options do |response, operation|
4211
4198
  yield response, operation if block_given?
4212
- return response
4213
4199
  end
4214
4200
  rescue ::GRPC::BadStatus => e
4215
4201
  raise ::Google::Cloud::Error.from_error(e)
@@ -4311,7 +4297,7 @@ module Google
4311
4297
  @analytics_admin_service_stub.call_rpc :list_key_events, request, options: options do |response, operation|
4312
4298
  response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_key_events, request, response, operation, options
4313
4299
  yield response, operation if block_given?
4314
- return response
4300
+ throw :response, response
4315
4301
  end
4316
4302
  rescue ::GRPC::BadStatus => e
4317
4303
  raise ::Google::Cloud::Error.from_error(e)
@@ -4398,7 +4384,6 @@ module Google
4398
4384
 
4399
4385
  @analytics_admin_service_stub.call_rpc :get_display_video360_advertiser_link, request, options: options do |response, operation|
4400
4386
  yield response, operation if block_given?
4401
- return response
4402
4387
  end
4403
4388
  rescue ::GRPC::BadStatus => e
4404
4389
  raise ::Google::Cloud::Error.from_error(e)
@@ -4500,7 +4485,7 @@ module Google
4500
4485
  @analytics_admin_service_stub.call_rpc :list_display_video360_advertiser_links, request, options: options do |response, operation|
4501
4486
  response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_display_video360_advertiser_links, request, response, operation, options
4502
4487
  yield response, operation if block_given?
4503
- return response
4488
+ throw :response, response
4504
4489
  end
4505
4490
  rescue ::GRPC::BadStatus => e
4506
4491
  raise ::Google::Cloud::Error.from_error(e)
@@ -4592,7 +4577,6 @@ module Google
4592
4577
 
4593
4578
  @analytics_admin_service_stub.call_rpc :create_display_video360_advertiser_link, request, options: options do |response, operation|
4594
4579
  yield response, operation if block_given?
4595
- return response
4596
4580
  end
4597
4581
  rescue ::GRPC::BadStatus => e
4598
4582
  raise ::Google::Cloud::Error.from_error(e)
@@ -4679,7 +4663,6 @@ module Google
4679
4663
 
4680
4664
  @analytics_admin_service_stub.call_rpc :delete_display_video360_advertiser_link, request, options: options do |response, operation|
4681
4665
  yield response, operation if block_given?
4682
- return response
4683
4666
  end
4684
4667
  rescue ::GRPC::BadStatus => e
4685
4668
  raise ::Google::Cloud::Error.from_error(e)
@@ -4769,7 +4752,6 @@ module Google
4769
4752
 
4770
4753
  @analytics_admin_service_stub.call_rpc :update_display_video360_advertiser_link, request, options: options do |response, operation|
4771
4754
  yield response, operation if block_given?
4772
- return response
4773
4755
  end
4774
4756
  rescue ::GRPC::BadStatus => e
4775
4757
  raise ::Google::Cloud::Error.from_error(e)
@@ -4856,7 +4838,6 @@ module Google
4856
4838
 
4857
4839
  @analytics_admin_service_stub.call_rpc :get_display_video360_advertiser_link_proposal, request, options: options do |response, operation|
4858
4840
  yield response, operation if block_given?
4859
- return response
4860
4841
  end
4861
4842
  rescue ::GRPC::BadStatus => e
4862
4843
  raise ::Google::Cloud::Error.from_error(e)
@@ -4959,7 +4940,7 @@ module Google
4959
4940
  @analytics_admin_service_stub.call_rpc :list_display_video360_advertiser_link_proposals, request, options: options do |response, operation|
4960
4941
  response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_display_video360_advertiser_link_proposals, request, response, operation, options
4961
4942
  yield response, operation if block_given?
4962
- return response
4943
+ throw :response, response
4963
4944
  end
4964
4945
  rescue ::GRPC::BadStatus => e
4965
4946
  raise ::Google::Cloud::Error.from_error(e)
@@ -5047,7 +5028,6 @@ module Google
5047
5028
 
5048
5029
  @analytics_admin_service_stub.call_rpc :create_display_video360_advertiser_link_proposal, request, options: options do |response, operation|
5049
5030
  yield response, operation if block_given?
5050
- return response
5051
5031
  end
5052
5032
  rescue ::GRPC::BadStatus => e
5053
5033
  raise ::Google::Cloud::Error.from_error(e)
@@ -5135,7 +5115,6 @@ module Google
5135
5115
 
5136
5116
  @analytics_admin_service_stub.call_rpc :delete_display_video360_advertiser_link_proposal, request, options: options do |response, operation|
5137
5117
  yield response, operation if block_given?
5138
- return response
5139
5118
  end
5140
5119
  rescue ::GRPC::BadStatus => e
5141
5120
  raise ::Google::Cloud::Error.from_error(e)
@@ -5224,7 +5203,6 @@ module Google
5224
5203
 
5225
5204
  @analytics_admin_service_stub.call_rpc :approve_display_video360_advertiser_link_proposal, request, options: options do |response, operation|
5226
5205
  yield response, operation if block_given?
5227
- return response
5228
5206
  end
5229
5207
  rescue ::GRPC::BadStatus => e
5230
5208
  raise ::Google::Cloud::Error.from_error(e)
@@ -5315,7 +5293,6 @@ module Google
5315
5293
 
5316
5294
  @analytics_admin_service_stub.call_rpc :cancel_display_video360_advertiser_link_proposal, request, options: options do |response, operation|
5317
5295
  yield response, operation if block_given?
5318
- return response
5319
5296
  end
5320
5297
  rescue ::GRPC::BadStatus => e
5321
5298
  raise ::Google::Cloud::Error.from_error(e)
@@ -5403,7 +5380,6 @@ module Google
5403
5380
 
5404
5381
  @analytics_admin_service_stub.call_rpc :create_custom_dimension, request, options: options do |response, operation|
5405
5382
  yield response, operation if block_given?
5406
- return response
5407
5383
  end
5408
5384
  rescue ::GRPC::BadStatus => e
5409
5385
  raise ::Google::Cloud::Error.from_error(e)
@@ -5493,7 +5469,6 @@ module Google
5493
5469
 
5494
5470
  @analytics_admin_service_stub.call_rpc :update_custom_dimension, request, options: options do |response, operation|
5495
5471
  yield response, operation if block_given?
5496
- return response
5497
5472
  end
5498
5473
  rescue ::GRPC::BadStatus => e
5499
5474
  raise ::Google::Cloud::Error.from_error(e)
@@ -5594,7 +5569,7 @@ module Google
5594
5569
  @analytics_admin_service_stub.call_rpc :list_custom_dimensions, request, options: options do |response, operation|
5595
5570
  response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_custom_dimensions, request, response, operation, options
5596
5571
  yield response, operation if block_given?
5597
- return response
5572
+ throw :response, response
5598
5573
  end
5599
5574
  rescue ::GRPC::BadStatus => e
5600
5575
  raise ::Google::Cloud::Error.from_error(e)
@@ -5681,7 +5656,6 @@ module Google
5681
5656
 
5682
5657
  @analytics_admin_service_stub.call_rpc :archive_custom_dimension, request, options: options do |response, operation|
5683
5658
  yield response, operation if block_given?
5684
- return response
5685
5659
  end
5686
5660
  rescue ::GRPC::BadStatus => e
5687
5661
  raise ::Google::Cloud::Error.from_error(e)
@@ -5768,7 +5742,6 @@ module Google
5768
5742
 
5769
5743
  @analytics_admin_service_stub.call_rpc :get_custom_dimension, request, options: options do |response, operation|
5770
5744
  yield response, operation if block_given?
5771
- return response
5772
5745
  end
5773
5746
  rescue ::GRPC::BadStatus => e
5774
5747
  raise ::Google::Cloud::Error.from_error(e)
@@ -5856,7 +5829,6 @@ module Google
5856
5829
 
5857
5830
  @analytics_admin_service_stub.call_rpc :create_custom_metric, request, options: options do |response, operation|
5858
5831
  yield response, operation if block_given?
5859
- return response
5860
5832
  end
5861
5833
  rescue ::GRPC::BadStatus => e
5862
5834
  raise ::Google::Cloud::Error.from_error(e)
@@ -5946,7 +5918,6 @@ module Google
5946
5918
 
5947
5919
  @analytics_admin_service_stub.call_rpc :update_custom_metric, request, options: options do |response, operation|
5948
5920
  yield response, operation if block_given?
5949
- return response
5950
5921
  end
5951
5922
  rescue ::GRPC::BadStatus => e
5952
5923
  raise ::Google::Cloud::Error.from_error(e)
@@ -6047,7 +6018,7 @@ module Google
6047
6018
  @analytics_admin_service_stub.call_rpc :list_custom_metrics, request, options: options do |response, operation|
6048
6019
  response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_custom_metrics, request, response, operation, options
6049
6020
  yield response, operation if block_given?
6050
- return response
6021
+ throw :response, response
6051
6022
  end
6052
6023
  rescue ::GRPC::BadStatus => e
6053
6024
  raise ::Google::Cloud::Error.from_error(e)
@@ -6134,7 +6105,6 @@ module Google
6134
6105
 
6135
6106
  @analytics_admin_service_stub.call_rpc :archive_custom_metric, request, options: options do |response, operation|
6136
6107
  yield response, operation if block_given?
6137
- return response
6138
6108
  end
6139
6109
  rescue ::GRPC::BadStatus => e
6140
6110
  raise ::Google::Cloud::Error.from_error(e)
@@ -6221,7 +6191,6 @@ module Google
6221
6191
 
6222
6192
  @analytics_admin_service_stub.call_rpc :get_custom_metric, request, options: options do |response, operation|
6223
6193
  yield response, operation if block_given?
6224
- return response
6225
6194
  end
6226
6195
  rescue ::GRPC::BadStatus => e
6227
6196
  raise ::Google::Cloud::Error.from_error(e)
@@ -6310,7 +6279,6 @@ module Google
6310
6279
 
6311
6280
  @analytics_admin_service_stub.call_rpc :get_data_retention_settings, request, options: options do |response, operation|
6312
6281
  yield response, operation if block_given?
6313
- return response
6314
6282
  end
6315
6283
  rescue ::GRPC::BadStatus => e
6316
6284
  raise ::Google::Cloud::Error.from_error(e)
@@ -6402,7 +6370,6 @@ module Google
6402
6370
 
6403
6371
  @analytics_admin_service_stub.call_rpc :update_data_retention_settings, request, options: options do |response, operation|
6404
6372
  yield response, operation if block_given?
6405
- return response
6406
6373
  end
6407
6374
  rescue ::GRPC::BadStatus => e
6408
6375
  raise ::Google::Cloud::Error.from_error(e)
@@ -6490,7 +6457,6 @@ module Google
6490
6457
 
6491
6458
  @analytics_admin_service_stub.call_rpc :create_data_stream, request, options: options do |response, operation|
6492
6459
  yield response, operation if block_given?
6493
- return response
6494
6460
  end
6495
6461
  rescue ::GRPC::BadStatus => e
6496
6462
  raise ::Google::Cloud::Error.from_error(e)
@@ -6577,7 +6543,6 @@ module Google
6577
6543
 
6578
6544
  @analytics_admin_service_stub.call_rpc :delete_data_stream, request, options: options do |response, operation|
6579
6545
  yield response, operation if block_given?
6580
- return response
6581
6546
  end
6582
6547
  rescue ::GRPC::BadStatus => e
6583
6548
  raise ::Google::Cloud::Error.from_error(e)
@@ -6667,7 +6632,6 @@ module Google
6667
6632
 
6668
6633
  @analytics_admin_service_stub.call_rpc :update_data_stream, request, options: options do |response, operation|
6669
6634
  yield response, operation if block_given?
6670
- return response
6671
6635
  end
6672
6636
  rescue ::GRPC::BadStatus => e
6673
6637
  raise ::Google::Cloud::Error.from_error(e)
@@ -6768,7 +6732,7 @@ module Google
6768
6732
  @analytics_admin_service_stub.call_rpc :list_data_streams, request, options: options do |response, operation|
6769
6733
  response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_data_streams, request, response, operation, options
6770
6734
  yield response, operation if block_given?
6771
- return response
6735
+ throw :response, response
6772
6736
  end
6773
6737
  rescue ::GRPC::BadStatus => e
6774
6738
  raise ::Google::Cloud::Error.from_error(e)
@@ -6855,7 +6819,6 @@ module Google
6855
6819
 
6856
6820
  @analytics_admin_service_stub.call_rpc :get_data_stream, request, options: options do |response, operation|
6857
6821
  yield response, operation if block_given?
6858
- return response
6859
6822
  end
6860
6823
  rescue ::GRPC::BadStatus => e
6861
6824
  raise ::Google::Cloud::Error.from_error(e)
@@ -6944,7 +6907,6 @@ module Google
6944
6907
 
6945
6908
  @analytics_admin_service_stub.call_rpc :get_audience, request, options: options do |response, operation|
6946
6909
  yield response, operation if block_given?
6947
- return response
6948
6910
  end
6949
6911
  rescue ::GRPC::BadStatus => e
6950
6912
  raise ::Google::Cloud::Error.from_error(e)
@@ -7047,7 +7009,7 @@ module Google
7047
7009
  @analytics_admin_service_stub.call_rpc :list_audiences, request, options: options do |response, operation|
7048
7010
  response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_audiences, request, response, operation, options
7049
7011
  yield response, operation if block_given?
7050
- return response
7012
+ throw :response, response
7051
7013
  end
7052
7014
  rescue ::GRPC::BadStatus => e
7053
7015
  raise ::Google::Cloud::Error.from_error(e)
@@ -7135,7 +7097,6 @@ module Google
7135
7097
 
7136
7098
  @analytics_admin_service_stub.call_rpc :create_audience, request, options: options do |response, operation|
7137
7099
  yield response, operation if block_given?
7138
- return response
7139
7100
  end
7140
7101
  rescue ::GRPC::BadStatus => e
7141
7102
  raise ::Google::Cloud::Error.from_error(e)
@@ -7227,7 +7188,6 @@ module Google
7227
7188
 
7228
7189
  @analytics_admin_service_stub.call_rpc :update_audience, request, options: options do |response, operation|
7229
7190
  yield response, operation if block_given?
7230
- return response
7231
7191
  end
7232
7192
  rescue ::GRPC::BadStatus => e
7233
7193
  raise ::Google::Cloud::Error.from_error(e)
@@ -7313,7 +7273,6 @@ module Google
7313
7273
 
7314
7274
  @analytics_admin_service_stub.call_rpc :archive_audience, request, options: options do |response, operation|
7315
7275
  yield response, operation if block_given?
7316
- return response
7317
7276
  end
7318
7277
  rescue ::GRPC::BadStatus => e
7319
7278
  raise ::Google::Cloud::Error.from_error(e)
@@ -7400,7 +7359,6 @@ module Google
7400
7359
 
7401
7360
  @analytics_admin_service_stub.call_rpc :get_search_ads360_link, request, options: options do |response, operation|
7402
7361
  yield response, operation if block_given?
7403
- return response
7404
7362
  end
7405
7363
  rescue ::GRPC::BadStatus => e
7406
7364
  raise ::Google::Cloud::Error.from_error(e)
@@ -7502,7 +7460,7 @@ module Google
7502
7460
  @analytics_admin_service_stub.call_rpc :list_search_ads360_links, request, options: options do |response, operation|
7503
7461
  response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_search_ads360_links, request, response, operation, options
7504
7462
  yield response, operation if block_given?
7505
- return response
7463
+ throw :response, response
7506
7464
  end
7507
7465
  rescue ::GRPC::BadStatus => e
7508
7466
  raise ::Google::Cloud::Error.from_error(e)
@@ -7590,7 +7548,6 @@ module Google
7590
7548
 
7591
7549
  @analytics_admin_service_stub.call_rpc :create_search_ads360_link, request, options: options do |response, operation|
7592
7550
  yield response, operation if block_given?
7593
- return response
7594
7551
  end
7595
7552
  rescue ::GRPC::BadStatus => e
7596
7553
  raise ::Google::Cloud::Error.from_error(e)
@@ -7677,7 +7634,6 @@ module Google
7677
7634
 
7678
7635
  @analytics_admin_service_stub.call_rpc :delete_search_ads360_link, request, options: options do |response, operation|
7679
7636
  yield response, operation if block_given?
7680
- return response
7681
7637
  end
7682
7638
  rescue ::GRPC::BadStatus => e
7683
7639
  raise ::Google::Cloud::Error.from_error(e)
@@ -7767,7 +7723,6 @@ module Google
7767
7723
 
7768
7724
  @analytics_admin_service_stub.call_rpc :update_search_ads360_link, request, options: options do |response, operation|
7769
7725
  yield response, operation if block_given?
7770
- return response
7771
7726
  end
7772
7727
  rescue ::GRPC::BadStatus => e
7773
7728
  raise ::Google::Cloud::Error.from_error(e)
@@ -7854,7 +7809,6 @@ module Google
7854
7809
 
7855
7810
  @analytics_admin_service_stub.call_rpc :get_attribution_settings, request, options: options do |response, operation|
7856
7811
  yield response, operation if block_given?
7857
- return response
7858
7812
  end
7859
7813
  rescue ::GRPC::BadStatus => e
7860
7814
  raise ::Google::Cloud::Error.from_error(e)
@@ -7946,7 +7900,6 @@ module Google
7946
7900
 
7947
7901
  @analytics_admin_service_stub.call_rpc :update_attribution_settings, request, options: options do |response, operation|
7948
7902
  yield response, operation if block_given?
7949
- return response
7950
7903
  end
7951
7904
  rescue ::GRPC::BadStatus => e
7952
7905
  raise ::Google::Cloud::Error.from_error(e)
@@ -8121,7 +8074,6 @@ module Google
8121
8074
 
8122
8075
  @analytics_admin_service_stub.call_rpc :run_access_report, request, options: options do |response, operation|
8123
8076
  yield response, operation if block_given?
8124
- return response
8125
8077
  end
8126
8078
  rescue ::GRPC::BadStatus => e
8127
8079
  raise ::Google::Cloud::Error.from_error(e)
@@ -8211,7 +8163,6 @@ module Google
8211
8163
 
8212
8164
  @analytics_admin_service_stub.call_rpc :create_access_binding, request, options: options do |response, operation|
8213
8165
  yield response, operation if block_given?
8214
- return response
8215
8166
  end
8216
8167
  rescue ::GRPC::BadStatus => e
8217
8168
  raise ::Google::Cloud::Error.from_error(e)
@@ -8300,7 +8251,6 @@ module Google
8300
8251
 
8301
8252
  @analytics_admin_service_stub.call_rpc :get_access_binding, request, options: options do |response, operation|
8302
8253
  yield response, operation if block_given?
8303
- return response
8304
8254
  end
8305
8255
  rescue ::GRPC::BadStatus => e
8306
8256
  raise ::Google::Cloud::Error.from_error(e)
@@ -8386,7 +8336,6 @@ module Google
8386
8336
 
8387
8337
  @analytics_admin_service_stub.call_rpc :update_access_binding, request, options: options do |response, operation|
8388
8338
  yield response, operation if block_given?
8389
- return response
8390
8339
  end
8391
8340
  rescue ::GRPC::BadStatus => e
8392
8341
  raise ::Google::Cloud::Error.from_error(e)
@@ -8474,7 +8423,6 @@ module Google
8474
8423
 
8475
8424
  @analytics_admin_service_stub.call_rpc :delete_access_binding, request, options: options do |response, operation|
8476
8425
  yield response, operation if block_given?
8477
- return response
8478
8426
  end
8479
8427
  rescue ::GRPC::BadStatus => e
8480
8428
  raise ::Google::Cloud::Error.from_error(e)
@@ -8577,7 +8525,7 @@ module Google
8577
8525
  @analytics_admin_service_stub.call_rpc :list_access_bindings, request, options: options do |response, operation|
8578
8526
  response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_access_bindings, request, response, operation, options
8579
8527
  yield response, operation if block_given?
8580
- return response
8528
+ throw :response, response
8581
8529
  end
8582
8530
  rescue ::GRPC::BadStatus => e
8583
8531
  raise ::Google::Cloud::Error.from_error(e)
@@ -8674,7 +8622,6 @@ module Google
8674
8622
 
8675
8623
  @analytics_admin_service_stub.call_rpc :batch_create_access_bindings, request, options: options do |response, operation|
8676
8624
  yield response, operation if block_given?
8677
- return response
8678
8625
  end
8679
8626
  rescue ::GRPC::BadStatus => e
8680
8627
  raise ::Google::Cloud::Error.from_error(e)
@@ -8770,7 +8717,6 @@ module Google
8770
8717
 
8771
8718
  @analytics_admin_service_stub.call_rpc :batch_get_access_bindings, request, options: options do |response, operation|
8772
8719
  yield response, operation if block_given?
8773
- return response
8774
8720
  end
8775
8721
  rescue ::GRPC::BadStatus => e
8776
8722
  raise ::Google::Cloud::Error.from_error(e)
@@ -8865,7 +8811,6 @@ module Google
8865
8811
 
8866
8812
  @analytics_admin_service_stub.call_rpc :batch_update_access_bindings, request, options: options do |response, operation|
8867
8813
  yield response, operation if block_given?
8868
- return response
8869
8814
  end
8870
8815
  rescue ::GRPC::BadStatus => e
8871
8816
  raise ::Google::Cloud::Error.from_error(e)
@@ -8958,7 +8903,6 @@ module Google
8958
8903
 
8959
8904
  @analytics_admin_service_stub.call_rpc :batch_delete_access_bindings, request, options: options do |response, operation|
8960
8905
  yield response, operation if block_given?
8961
- return response
8962
8906
  end
8963
8907
  rescue ::GRPC::BadStatus => e
8964
8908
  raise ::Google::Cloud::Error.from_error(e)
@@ -9045,7 +8989,6 @@ module Google
9045
8989
 
9046
8990
  @analytics_admin_service_stub.call_rpc :get_expanded_data_set, request, options: options do |response, operation|
9047
8991
  yield response, operation if block_given?
9048
- return response
9049
8992
  end
9050
8993
  rescue ::GRPC::BadStatus => e
9051
8994
  raise ::Google::Cloud::Error.from_error(e)
@@ -9146,7 +9089,7 @@ module Google
9146
9089
  @analytics_admin_service_stub.call_rpc :list_expanded_data_sets, request, options: options do |response, operation|
9147
9090
  response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_expanded_data_sets, request, response, operation, options
9148
9091
  yield response, operation if block_given?
9149
- return response
9092
+ throw :response, response
9150
9093
  end
9151
9094
  rescue ::GRPC::BadStatus => e
9152
9095
  raise ::Google::Cloud::Error.from_error(e)
@@ -9234,7 +9177,6 @@ module Google
9234
9177
 
9235
9178
  @analytics_admin_service_stub.call_rpc :create_expanded_data_set, request, options: options do |response, operation|
9236
9179
  yield response, operation if block_given?
9237
- return response
9238
9180
  end
9239
9181
  rescue ::GRPC::BadStatus => e
9240
9182
  raise ::Google::Cloud::Error.from_error(e)
@@ -9327,7 +9269,6 @@ module Google
9327
9269
 
9328
9270
  @analytics_admin_service_stub.call_rpc :update_expanded_data_set, request, options: options do |response, operation|
9329
9271
  yield response, operation if block_given?
9330
- return response
9331
9272
  end
9332
9273
  rescue ::GRPC::BadStatus => e
9333
9274
  raise ::Google::Cloud::Error.from_error(e)
@@ -9413,7 +9354,6 @@ module Google
9413
9354
 
9414
9355
  @analytics_admin_service_stub.call_rpc :delete_expanded_data_set, request, options: options do |response, operation|
9415
9356
  yield response, operation if block_given?
9416
- return response
9417
9357
  end
9418
9358
  rescue ::GRPC::BadStatus => e
9419
9359
  raise ::Google::Cloud::Error.from_error(e)
@@ -9500,7 +9440,6 @@ module Google
9500
9440
 
9501
9441
  @analytics_admin_service_stub.call_rpc :get_channel_group, request, options: options do |response, operation|
9502
9442
  yield response, operation if block_given?
9503
- return response
9504
9443
  end
9505
9444
  rescue ::GRPC::BadStatus => e
9506
9445
  raise ::Google::Cloud::Error.from_error(e)
@@ -9602,7 +9541,7 @@ module Google
9602
9541
  @analytics_admin_service_stub.call_rpc :list_channel_groups, request, options: options do |response, operation|
9603
9542
  response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_channel_groups, request, response, operation, options
9604
9543
  yield response, operation if block_given?
9605
- return response
9544
+ throw :response, response
9606
9545
  end
9607
9546
  rescue ::GRPC::BadStatus => e
9608
9547
  raise ::Google::Cloud::Error.from_error(e)
@@ -9691,7 +9630,6 @@ module Google
9691
9630
 
9692
9631
  @analytics_admin_service_stub.call_rpc :create_channel_group, request, options: options do |response, operation|
9693
9632
  yield response, operation if block_given?
9694
- return response
9695
9633
  end
9696
9634
  rescue ::GRPC::BadStatus => e
9697
9635
  raise ::Google::Cloud::Error.from_error(e)
@@ -9784,7 +9722,6 @@ module Google
9784
9722
 
9785
9723
  @analytics_admin_service_stub.call_rpc :update_channel_group, request, options: options do |response, operation|
9786
9724
  yield response, operation if block_given?
9787
- return response
9788
9725
  end
9789
9726
  rescue ::GRPC::BadStatus => e
9790
9727
  raise ::Google::Cloud::Error.from_error(e)
@@ -9871,7 +9808,6 @@ module Google
9871
9808
 
9872
9809
  @analytics_admin_service_stub.call_rpc :delete_channel_group, request, options: options do |response, operation|
9873
9810
  yield response, operation if block_given?
9874
- return response
9875
9811
  end
9876
9812
  rescue ::GRPC::BadStatus => e
9877
9813
  raise ::Google::Cloud::Error.from_error(e)
@@ -9956,7 +9892,6 @@ module Google
9956
9892
 
9957
9893
  @analytics_admin_service_stub.call_rpc :set_automated_ga4_configuration_opt_out, request, options: options do |response, operation|
9958
9894
  yield response, operation if block_given?
9959
- return response
9960
9895
  end
9961
9896
  rescue ::GRPC::BadStatus => e
9962
9897
  raise ::Google::Cloud::Error.from_error(e)
@@ -10039,7 +9974,6 @@ module Google
10039
9974
 
10040
9975
  @analytics_admin_service_stub.call_rpc :fetch_automated_ga4_configuration_opt_out, request, options: options do |response, operation|
10041
9976
  yield response, operation if block_given?
10042
- return response
10043
9977
  end
10044
9978
  rescue ::GRPC::BadStatus => e
10045
9979
  raise ::Google::Cloud::Error.from_error(e)
@@ -10127,7 +10061,6 @@ module Google
10127
10061
 
10128
10062
  @analytics_admin_service_stub.call_rpc :create_big_query_link, request, options: options do |response, operation|
10129
10063
  yield response, operation if block_given?
10130
- return response
10131
10064
  end
10132
10065
  rescue ::GRPC::BadStatus => e
10133
10066
  raise ::Google::Cloud::Error.from_error(e)
@@ -10215,7 +10148,6 @@ module Google
10215
10148
 
10216
10149
  @analytics_admin_service_stub.call_rpc :get_big_query_link, request, options: options do |response, operation|
10217
10150
  yield response, operation if block_given?
10218
- return response
10219
10151
  end
10220
10152
  rescue ::GRPC::BadStatus => e
10221
10153
  raise ::Google::Cloud::Error.from_error(e)
@@ -10318,7 +10250,7 @@ module Google
10318
10250
  @analytics_admin_service_stub.call_rpc :list_big_query_links, request, options: options do |response, operation|
10319
10251
  response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_big_query_links, request, response, operation, options
10320
10252
  yield response, operation if block_given?
10321
- return response
10253
+ throw :response, response
10322
10254
  end
10323
10255
  rescue ::GRPC::BadStatus => e
10324
10256
  raise ::Google::Cloud::Error.from_error(e)
@@ -10405,7 +10337,6 @@ module Google
10405
10337
 
10406
10338
  @analytics_admin_service_stub.call_rpc :delete_big_query_link, request, options: options do |response, operation|
10407
10339
  yield response, operation if block_given?
10408
- return response
10409
10340
  end
10410
10341
  rescue ::GRPC::BadStatus => e
10411
10342
  raise ::Google::Cloud::Error.from_error(e)
@@ -10497,7 +10428,6 @@ module Google
10497
10428
 
10498
10429
  @analytics_admin_service_stub.call_rpc :update_big_query_link, request, options: options do |response, operation|
10499
10430
  yield response, operation if block_given?
10500
- return response
10501
10431
  end
10502
10432
  rescue ::GRPC::BadStatus => e
10503
10433
  raise ::Google::Cloud::Error.from_error(e)
@@ -10588,7 +10518,6 @@ module Google
10588
10518
 
10589
10519
  @analytics_admin_service_stub.call_rpc :get_enhanced_measurement_settings, request, options: options do |response, operation|
10590
10520
  yield response, operation if block_given?
10591
- return response
10592
10521
  end
10593
10522
  rescue ::GRPC::BadStatus => e
10594
10523
  raise ::Google::Cloud::Error.from_error(e)
@@ -10682,7 +10611,6 @@ module Google
10682
10611
 
10683
10612
  @analytics_admin_service_stub.call_rpc :update_enhanced_measurement_settings, request, options: options do |response, operation|
10684
10613
  yield response, operation if block_given?
10685
- return response
10686
10614
  end
10687
10615
  rescue ::GRPC::BadStatus => e
10688
10616
  raise ::Google::Cloud::Error.from_error(e)
@@ -10767,7 +10695,6 @@ module Google
10767
10695
 
10768
10696
  @analytics_admin_service_stub.call_rpc :create_connected_site_tag, request, options: options do |response, operation|
10769
10697
  yield response, operation if block_given?
10770
- return response
10771
10698
  end
10772
10699
  rescue ::GRPC::BadStatus => e
10773
10700
  raise ::Google::Cloud::Error.from_error(e)
@@ -10852,7 +10779,6 @@ module Google
10852
10779
 
10853
10780
  @analytics_admin_service_stub.call_rpc :delete_connected_site_tag, request, options: options do |response, operation|
10854
10781
  yield response, operation if block_given?
10855
- return response
10856
10782
  end
10857
10783
  rescue ::GRPC::BadStatus => e
10858
10784
  raise ::Google::Cloud::Error.from_error(e)
@@ -10935,7 +10861,6 @@ module Google
10935
10861
 
10936
10862
  @analytics_admin_service_stub.call_rpc :list_connected_site_tags, request, options: options do |response, operation|
10937
10863
  yield response, operation if block_given?
10938
- return response
10939
10864
  end
10940
10865
  rescue ::GRPC::BadStatus => e
10941
10866
  raise ::Google::Cloud::Error.from_error(e)
@@ -11018,7 +10943,6 @@ module Google
11018
10943
 
11019
10944
  @analytics_admin_service_stub.call_rpc :fetch_connected_ga4_property, request, options: options do |response, operation|
11020
10945
  yield response, operation if block_given?
11021
- return response
11022
10946
  end
11023
10947
  rescue ::GRPC::BadStatus => e
11024
10948
  raise ::Google::Cloud::Error.from_error(e)
@@ -11106,7 +11030,6 @@ module Google
11106
11030
 
11107
11031
  @analytics_admin_service_stub.call_rpc :get_ad_sense_link, request, options: options do |response, operation|
11108
11032
  yield response, operation if block_given?
11109
- return response
11110
11033
  end
11111
11034
  rescue ::GRPC::BadStatus => e
11112
11035
  raise ::Google::Cloud::Error.from_error(e)
@@ -11196,7 +11119,6 @@ module Google
11196
11119
 
11197
11120
  @analytics_admin_service_stub.call_rpc :create_ad_sense_link, request, options: options do |response, operation|
11198
11121
  yield response, operation if block_given?
11199
- return response
11200
11122
  end
11201
11123
  rescue ::GRPC::BadStatus => e
11202
11124
  raise ::Google::Cloud::Error.from_error(e)
@@ -11284,7 +11206,6 @@ module Google
11284
11206
 
11285
11207
  @analytics_admin_service_stub.call_rpc :delete_ad_sense_link, request, options: options do |response, operation|
11286
11208
  yield response, operation if block_given?
11287
- return response
11288
11209
  end
11289
11210
  rescue ::GRPC::BadStatus => e
11290
11211
  raise ::Google::Cloud::Error.from_error(e)
@@ -11387,7 +11308,7 @@ module Google
11387
11308
  @analytics_admin_service_stub.call_rpc :list_ad_sense_links, request, options: options do |response, operation|
11388
11309
  response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_ad_sense_links, request, response, operation, options
11389
11310
  yield response, operation if block_given?
11390
- return response
11311
+ throw :response, response
11391
11312
  end
11392
11313
  rescue ::GRPC::BadStatus => e
11393
11314
  raise ::Google::Cloud::Error.from_error(e)
@@ -11474,7 +11395,6 @@ module Google
11474
11395
 
11475
11396
  @analytics_admin_service_stub.call_rpc :get_event_create_rule, request, options: options do |response, operation|
11476
11397
  yield response, operation if block_given?
11477
- return response
11478
11398
  end
11479
11399
  rescue ::GRPC::BadStatus => e
11480
11400
  raise ::Google::Cloud::Error.from_error(e)
@@ -11575,7 +11495,7 @@ module Google
11575
11495
  @analytics_admin_service_stub.call_rpc :list_event_create_rules, request, options: options do |response, operation|
11576
11496
  response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_event_create_rules, request, response, operation, options
11577
11497
  yield response, operation if block_given?
11578
- return response
11498
+ throw :response, response
11579
11499
  end
11580
11500
  rescue ::GRPC::BadStatus => e
11581
11501
  raise ::Google::Cloud::Error.from_error(e)
@@ -11663,7 +11583,6 @@ module Google
11663
11583
 
11664
11584
  @analytics_admin_service_stub.call_rpc :create_event_create_rule, request, options: options do |response, operation|
11665
11585
  yield response, operation if block_given?
11666
- return response
11667
11586
  end
11668
11587
  rescue ::GRPC::BadStatus => e
11669
11588
  raise ::Google::Cloud::Error.from_error(e)
@@ -11756,7 +11675,6 @@ module Google
11756
11675
 
11757
11676
  @analytics_admin_service_stub.call_rpc :update_event_create_rule, request, options: options do |response, operation|
11758
11677
  yield response, operation if block_given?
11759
- return response
11760
11678
  end
11761
11679
  rescue ::GRPC::BadStatus => e
11762
11680
  raise ::Google::Cloud::Error.from_error(e)
@@ -11843,7 +11761,6 @@ module Google
11843
11761
 
11844
11762
  @analytics_admin_service_stub.call_rpc :delete_event_create_rule, request, options: options do |response, operation|
11845
11763
  yield response, operation if block_given?
11846
- return response
11847
11764
  end
11848
11765
  rescue ::GRPC::BadStatus => e
11849
11766
  raise ::Google::Cloud::Error.from_error(e)
@@ -11930,7 +11847,6 @@ module Google
11930
11847
 
11931
11848
  @analytics_admin_service_stub.call_rpc :get_event_edit_rule, request, options: options do |response, operation|
11932
11849
  yield response, operation if block_given?
11933
- return response
11934
11850
  end
11935
11851
  rescue ::GRPC::BadStatus => e
11936
11852
  raise ::Google::Cloud::Error.from_error(e)
@@ -12031,7 +11947,7 @@ module Google
12031
11947
  @analytics_admin_service_stub.call_rpc :list_event_edit_rules, request, options: options do |response, operation|
12032
11948
  response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_event_edit_rules, request, response, operation, options
12033
11949
  yield response, operation if block_given?
12034
- return response
11950
+ throw :response, response
12035
11951
  end
12036
11952
  rescue ::GRPC::BadStatus => e
12037
11953
  raise ::Google::Cloud::Error.from_error(e)
@@ -12119,7 +12035,6 @@ module Google
12119
12035
 
12120
12036
  @analytics_admin_service_stub.call_rpc :create_event_edit_rule, request, options: options do |response, operation|
12121
12037
  yield response, operation if block_given?
12122
- return response
12123
12038
  end
12124
12039
  rescue ::GRPC::BadStatus => e
12125
12040
  raise ::Google::Cloud::Error.from_error(e)
@@ -12212,7 +12127,6 @@ module Google
12212
12127
 
12213
12128
  @analytics_admin_service_stub.call_rpc :update_event_edit_rule, request, options: options do |response, operation|
12214
12129
  yield response, operation if block_given?
12215
- return response
12216
12130
  end
12217
12131
  rescue ::GRPC::BadStatus => e
12218
12132
  raise ::Google::Cloud::Error.from_error(e)
@@ -12298,7 +12212,6 @@ module Google
12298
12212
 
12299
12213
  @analytics_admin_service_stub.call_rpc :delete_event_edit_rule, request, options: options do |response, operation|
12300
12214
  yield response, operation if block_given?
12301
- return response
12302
12215
  end
12303
12216
  rescue ::GRPC::BadStatus => e
12304
12217
  raise ::Google::Cloud::Error.from_error(e)
@@ -12388,7 +12301,6 @@ module Google
12388
12301
 
12389
12302
  @analytics_admin_service_stub.call_rpc :reorder_event_edit_rules, request, options: options do |response, operation|
12390
12303
  yield response, operation if block_given?
12391
- return response
12392
12304
  end
12393
12305
  rescue ::GRPC::BadStatus => e
12394
12306
  raise ::Google::Cloud::Error.from_error(e)
@@ -12480,7 +12392,6 @@ module Google
12480
12392
 
12481
12393
  @analytics_admin_service_stub.call_rpc :update_data_redaction_settings, request, options: options do |response, operation|
12482
12394
  yield response, operation if block_given?
12483
- return response
12484
12395
  end
12485
12396
  rescue ::GRPC::BadStatus => e
12486
12397
  raise ::Google::Cloud::Error.from_error(e)
@@ -12569,7 +12480,6 @@ module Google
12569
12480
 
12570
12481
  @analytics_admin_service_stub.call_rpc :get_data_redaction_settings, request, options: options do |response, operation|
12571
12482
  yield response, operation if block_given?
12572
- return response
12573
12483
  end
12574
12484
  rescue ::GRPC::BadStatus => e
12575
12485
  raise ::Google::Cloud::Error.from_error(e)
@@ -12657,7 +12567,6 @@ module Google
12657
12567
 
12658
12568
  @analytics_admin_service_stub.call_rpc :get_calculated_metric, request, options: options do |response, operation|
12659
12569
  yield response, operation if block_given?
12660
- return response
12661
12570
  end
12662
12571
  rescue ::GRPC::BadStatus => e
12663
12572
  raise ::Google::Cloud::Error.from_error(e)
@@ -12755,7 +12664,6 @@ module Google
12755
12664
 
12756
12665
  @analytics_admin_service_stub.call_rpc :create_calculated_metric, request, options: options do |response, operation|
12757
12666
  yield response, operation if block_given?
12758
- return response
12759
12667
  end
12760
12668
  rescue ::GRPC::BadStatus => e
12761
12669
  raise ::Google::Cloud::Error.from_error(e)
@@ -12856,7 +12764,7 @@ module Google
12856
12764
  @analytics_admin_service_stub.call_rpc :list_calculated_metrics, request, options: options do |response, operation|
12857
12765
  response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_calculated_metrics, request, response, operation, options
12858
12766
  yield response, operation if block_given?
12859
- return response
12767
+ throw :response, response
12860
12768
  end
12861
12769
  rescue ::GRPC::BadStatus => e
12862
12770
  raise ::Google::Cloud::Error.from_error(e)
@@ -12946,7 +12854,6 @@ module Google
12946
12854
 
12947
12855
  @analytics_admin_service_stub.call_rpc :update_calculated_metric, request, options: options do |response, operation|
12948
12856
  yield response, operation if block_given?
12949
- return response
12950
12857
  end
12951
12858
  rescue ::GRPC::BadStatus => e
12952
12859
  raise ::Google::Cloud::Error.from_error(e)
@@ -13034,7 +12941,6 @@ module Google
13034
12941
 
13035
12942
  @analytics_admin_service_stub.call_rpc :delete_calculated_metric, request, options: options do |response, operation|
13036
12943
  yield response, operation if block_given?
13037
- return response
13038
12944
  end
13039
12945
  rescue ::GRPC::BadStatus => e
13040
12946
  raise ::Google::Cloud::Error.from_error(e)
@@ -13115,7 +13021,6 @@ module Google
13115
13021
 
13116
13022
  @analytics_admin_service_stub.call_rpc :create_rollup_property, request, options: options do |response, operation|
13117
13023
  yield response, operation if block_given?
13118
- return response
13119
13024
  end
13120
13025
  rescue ::GRPC::BadStatus => e
13121
13026
  raise ::Google::Cloud::Error.from_error(e)
@@ -13206,7 +13111,6 @@ module Google
13206
13111
 
13207
13112
  @analytics_admin_service_stub.call_rpc :get_rollup_property_source_link, request, options: options do |response, operation|
13208
13113
  yield response, operation if block_given?
13209
- return response
13210
13114
  end
13211
13115
  rescue ::GRPC::BadStatus => e
13212
13116
  raise ::Google::Cloud::Error.from_error(e)
@@ -13311,7 +13215,7 @@ module Google
13311
13215
  @analytics_admin_service_stub.call_rpc :list_rollup_property_source_links, request, options: options do |response, operation|
13312
13216
  response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_rollup_property_source_links, request, response, operation, options
13313
13217
  yield response, operation if block_given?
13314
- return response
13218
+ throw :response, response
13315
13219
  end
13316
13220
  rescue ::GRPC::BadStatus => e
13317
13221
  raise ::Google::Cloud::Error.from_error(e)
@@ -13402,7 +13306,6 @@ module Google
13402
13306
 
13403
13307
  @analytics_admin_service_stub.call_rpc :create_rollup_property_source_link, request, options: options do |response, operation|
13404
13308
  yield response, operation if block_given?
13405
- return response
13406
13309
  end
13407
13310
  rescue ::GRPC::BadStatus => e
13408
13311
  raise ::Google::Cloud::Error.from_error(e)
@@ -13492,7 +13395,6 @@ module Google
13492
13395
 
13493
13396
  @analytics_admin_service_stub.call_rpc :delete_rollup_property_source_link, request, options: options do |response, operation|
13494
13397
  yield response, operation if block_given?
13495
- return response
13496
13398
  end
13497
13399
  rescue ::GRPC::BadStatus => e
13498
13400
  raise ::Google::Cloud::Error.from_error(e)
@@ -13573,7 +13475,6 @@ module Google
13573
13475
 
13574
13476
  @analytics_admin_service_stub.call_rpc :provision_subproperty, request, options: options do |response, operation|
13575
13477
  yield response, operation if block_given?
13576
- return response
13577
13478
  end
13578
13479
  rescue ::GRPC::BadStatus => e
13579
13480
  raise ::Google::Cloud::Error.from_error(e)
@@ -13662,7 +13563,6 @@ module Google
13662
13563
 
13663
13564
  @analytics_admin_service_stub.call_rpc :create_subproperty_event_filter, request, options: options do |response, operation|
13664
13565
  yield response, operation if block_given?
13665
- return response
13666
13566
  end
13667
13567
  rescue ::GRPC::BadStatus => e
13668
13568
  raise ::Google::Cloud::Error.from_error(e)
@@ -13751,7 +13651,6 @@ module Google
13751
13651
 
13752
13652
  @analytics_admin_service_stub.call_rpc :get_subproperty_event_filter, request, options: options do |response, operation|
13753
13653
  yield response, operation if block_given?
13754
- return response
13755
13654
  end
13756
13655
  rescue ::GRPC::BadStatus => e
13757
13656
  raise ::Google::Cloud::Error.from_error(e)
@@ -13855,7 +13754,7 @@ module Google
13855
13754
  @analytics_admin_service_stub.call_rpc :list_subproperty_event_filters, request, options: options do |response, operation|
13856
13755
  response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_subproperty_event_filters, request, response, operation, options
13857
13756
  yield response, operation if block_given?
13858
- return response
13757
+ throw :response, response
13859
13758
  end
13860
13759
  rescue ::GRPC::BadStatus => e
13861
13760
  raise ::Google::Cloud::Error.from_error(e)
@@ -13946,7 +13845,6 @@ module Google
13946
13845
 
13947
13846
  @analytics_admin_service_stub.call_rpc :update_subproperty_event_filter, request, options: options do |response, operation|
13948
13847
  yield response, operation if block_given?
13949
- return response
13950
13848
  end
13951
13849
  rescue ::GRPC::BadStatus => e
13952
13850
  raise ::Google::Cloud::Error.from_error(e)
@@ -14035,7 +13933,6 @@ module Google
14035
13933
 
14036
13934
  @analytics_admin_service_stub.call_rpc :delete_subproperty_event_filter, request, options: options do |response, operation|
14037
13935
  yield response, operation if block_given?
14038
- return response
14039
13936
  end
14040
13937
  rescue ::GRPC::BadStatus => e
14041
13938
  raise ::Google::Cloud::Error.from_error(e)
@@ -14124,6 +14021,11 @@ module Google
14124
14021
  # default endpoint URL. The default value of nil uses the environment
14125
14022
  # universe (usually the default "googleapis.com" universe).
14126
14023
  # @return [::String,nil]
14024
+ # @!attribute [rw] logger
14025
+ # A custom logger to use for request/response debug logging, or the value
14026
+ # `:default` (the default) to construct a default logger, or `nil` to
14027
+ # explicitly disable logging.
14028
+ # @return [::Logger,:default,nil]
14127
14029
  #
14128
14030
  class Configuration
14129
14031
  extend ::Gapic::Config
@@ -14148,6 +14050,7 @@ module Google
14148
14050
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
14149
14051
  config_attr :quota_project, nil, ::String, nil
14150
14052
  config_attr :universe_domain, nil, ::String, nil
14053
+ config_attr :logger, :default, ::Logger, nil, :default
14151
14054
 
14152
14055
  # @private
14153
14056
  def initialize parent_config = nil