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.
@@ -195,8 +195,28 @@ module Google
195
195
  endpoint: @config.endpoint,
196
196
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
197
197
  universe_domain: @config.universe_domain,
198
- credentials: credentials
198
+ credentials: credentials,
199
+ logger: @config.logger
199
200
  )
201
+
202
+ @analytics_admin_service_stub.logger(stub: true)&.info do |entry|
203
+ entry.set_system_name
204
+ entry.set_service
205
+ entry.message = "Created client for #{entry.service}"
206
+ entry.set_credentials_fields credentials
207
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
208
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
209
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
210
+ end
211
+ end
212
+
213
+ ##
214
+ # The logger used for request/response debug logging.
215
+ #
216
+ # @return [Logger]
217
+ #
218
+ def logger
219
+ @analytics_admin_service_stub.logger
200
220
  end
201
221
 
202
222
  # Service calls
@@ -276,7 +296,6 @@ module Google
276
296
 
277
297
  @analytics_admin_service_stub.get_account request, options do |result, operation|
278
298
  yield result, operation if block_given?
279
- return result
280
299
  end
281
300
  rescue ::Gapic::Rest::Error => e
282
301
  raise ::Google::Cloud::Error.from_error(e)
@@ -376,7 +395,7 @@ module Google
376
395
  @analytics_admin_service_stub.list_accounts request, options do |result, operation|
377
396
  result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_accounts, "accounts", request, result, options
378
397
  yield result, operation if block_given?
379
- return result
398
+ throw :response, result
380
399
  end
381
400
  rescue ::Gapic::Rest::Error => e
382
401
  raise ::Google::Cloud::Error.from_error(e)
@@ -467,7 +486,6 @@ module Google
467
486
 
468
487
  @analytics_admin_service_stub.delete_account request, options do |result, operation|
469
488
  yield result, operation if block_given?
470
- return result
471
489
  end
472
490
  rescue ::Gapic::Rest::Error => e
473
491
  raise ::Google::Cloud::Error.from_error(e)
@@ -552,7 +570,6 @@ module Google
552
570
 
553
571
  @analytics_admin_service_stub.update_account request, options do |result, operation|
554
572
  yield result, operation if block_given?
555
- return result
556
573
  end
557
574
  rescue ::Gapic::Rest::Error => e
558
575
  raise ::Google::Cloud::Error.from_error(e)
@@ -634,7 +651,6 @@ module Google
634
651
 
635
652
  @analytics_admin_service_stub.provision_account_ticket request, options do |result, operation|
636
653
  yield result, operation if block_given?
637
- return result
638
654
  end
639
655
  rescue ::Gapic::Rest::Error => e
640
656
  raise ::Google::Cloud::Error.from_error(e)
@@ -726,7 +742,7 @@ module Google
726
742
  @analytics_admin_service_stub.list_account_summaries request, options do |result, operation|
727
743
  result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_account_summaries, "account_summaries", request, result, options
728
744
  yield result, operation if block_given?
729
- return result
745
+ throw :response, result
730
746
  end
731
747
  rescue ::Gapic::Rest::Error => e
732
748
  raise ::Google::Cloud::Error.from_error(e)
@@ -807,7 +823,6 @@ module Google
807
823
 
808
824
  @analytics_admin_service_stub.get_property request, options do |result, operation|
809
825
  yield result, operation if block_given?
810
- return result
811
826
  end
812
827
  rescue ::Gapic::Rest::Error => e
813
828
  raise ::Google::Cloud::Error.from_error(e)
@@ -925,7 +940,7 @@ module Google
925
940
  @analytics_admin_service_stub.list_properties request, options do |result, operation|
926
941
  result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_properties, "properties", request, result, options
927
942
  yield result, operation if block_given?
928
- return result
943
+ throw :response, result
929
944
  end
930
945
  rescue ::Gapic::Rest::Error => e
931
946
  raise ::Google::Cloud::Error.from_error(e)
@@ -1005,7 +1020,6 @@ module Google
1005
1020
 
1006
1021
  @analytics_admin_service_stub.create_property request, options do |result, operation|
1007
1022
  yield result, operation if block_given?
1008
- return result
1009
1023
  end
1010
1024
  rescue ::Gapic::Rest::Error => e
1011
1025
  raise ::Google::Cloud::Error.from_error(e)
@@ -1096,7 +1110,6 @@ module Google
1096
1110
 
1097
1111
  @analytics_admin_service_stub.delete_property request, options do |result, operation|
1098
1112
  yield result, operation if block_given?
1099
- return result
1100
1113
  end
1101
1114
  rescue ::Gapic::Rest::Error => e
1102
1115
  raise ::Google::Cloud::Error.from_error(e)
@@ -1182,7 +1195,6 @@ module Google
1182
1195
 
1183
1196
  @analytics_admin_service_stub.update_property request, options do |result, operation|
1184
1197
  yield result, operation if block_given?
1185
- return result
1186
1198
  end
1187
1199
  rescue ::Gapic::Rest::Error => e
1188
1200
  raise ::Google::Cloud::Error.from_error(e)
@@ -1267,7 +1279,6 @@ module Google
1267
1279
 
1268
1280
  @analytics_admin_service_stub.create_firebase_link request, options do |result, operation|
1269
1281
  yield result, operation if block_given?
1270
- return result
1271
1282
  end
1272
1283
  rescue ::Gapic::Rest::Error => e
1273
1284
  raise ::Google::Cloud::Error.from_error(e)
@@ -1348,7 +1359,6 @@ module Google
1348
1359
 
1349
1360
  @analytics_admin_service_stub.delete_firebase_link request, options do |result, operation|
1350
1361
  yield result, operation if block_given?
1351
- return result
1352
1362
  end
1353
1363
  rescue ::Gapic::Rest::Error => e
1354
1364
  raise ::Google::Cloud::Error.from_error(e)
@@ -1445,7 +1455,7 @@ module Google
1445
1455
  @analytics_admin_service_stub.list_firebase_links request, options do |result, operation|
1446
1456
  result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_firebase_links, "firebase_links", request, result, options
1447
1457
  yield result, operation if block_given?
1448
- return result
1458
+ throw :response, result
1449
1459
  end
1450
1460
  rescue ::Gapic::Rest::Error => e
1451
1461
  raise ::Google::Cloud::Error.from_error(e)
@@ -1529,7 +1539,6 @@ module Google
1529
1539
 
1530
1540
  @analytics_admin_service_stub.get_global_site_tag request, options do |result, operation|
1531
1541
  yield result, operation if block_given?
1532
- return result
1533
1542
  end
1534
1543
  rescue ::Gapic::Rest::Error => e
1535
1544
  raise ::Google::Cloud::Error.from_error(e)
@@ -1610,7 +1619,6 @@ module Google
1610
1619
 
1611
1620
  @analytics_admin_service_stub.create_google_ads_link request, options do |result, operation|
1612
1621
  yield result, operation if block_given?
1613
- return result
1614
1622
  end
1615
1623
  rescue ::Gapic::Rest::Error => e
1616
1624
  raise ::Google::Cloud::Error.from_error(e)
@@ -1694,7 +1702,6 @@ module Google
1694
1702
 
1695
1703
  @analytics_admin_service_stub.update_google_ads_link request, options do |result, operation|
1696
1704
  yield result, operation if block_given?
1697
- return result
1698
1705
  end
1699
1706
  rescue ::Gapic::Rest::Error => e
1700
1707
  raise ::Google::Cloud::Error.from_error(e)
@@ -1773,7 +1780,6 @@ module Google
1773
1780
 
1774
1781
  @analytics_admin_service_stub.delete_google_ads_link request, options do |result, operation|
1775
1782
  yield result, operation if block_given?
1776
- return result
1777
1783
  end
1778
1784
  rescue ::Gapic::Rest::Error => e
1779
1785
  raise ::Google::Cloud::Error.from_error(e)
@@ -1867,7 +1873,7 @@ module Google
1867
1873
  @analytics_admin_service_stub.list_google_ads_links request, options do |result, operation|
1868
1874
  result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_google_ads_links, "google_ads_links", request, result, options
1869
1875
  yield result, operation if block_given?
1870
- return result
1876
+ throw :response, result
1871
1877
  end
1872
1878
  rescue ::Gapic::Rest::Error => e
1873
1879
  raise ::Google::Cloud::Error.from_error(e)
@@ -1950,7 +1956,6 @@ module Google
1950
1956
 
1951
1957
  @analytics_admin_service_stub.get_data_sharing_settings request, options do |result, operation|
1952
1958
  yield result, operation if block_given?
1953
- return result
1954
1959
  end
1955
1960
  rescue ::Gapic::Rest::Error => e
1956
1961
  raise ::Google::Cloud::Error.from_error(e)
@@ -2031,7 +2036,6 @@ module Google
2031
2036
 
2032
2037
  @analytics_admin_service_stub.get_measurement_protocol_secret request, options do |result, operation|
2033
2038
  yield result, operation if block_given?
2034
- return result
2035
2039
  end
2036
2040
  rescue ::Gapic::Rest::Error => e
2037
2041
  raise ::Google::Cloud::Error.from_error(e)
@@ -2127,7 +2131,7 @@ module Google
2127
2131
  @analytics_admin_service_stub.list_measurement_protocol_secrets request, options do |result, operation|
2128
2132
  result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_measurement_protocol_secrets, "measurement_protocol_secrets", request, result, options
2129
2133
  yield result, operation if block_given?
2130
- return result
2134
+ throw :response, result
2131
2135
  end
2132
2136
  rescue ::Gapic::Rest::Error => e
2133
2137
  raise ::Google::Cloud::Error.from_error(e)
@@ -2209,7 +2213,6 @@ module Google
2209
2213
 
2210
2214
  @analytics_admin_service_stub.create_measurement_protocol_secret request, options do |result, operation|
2211
2215
  yield result, operation if block_given?
2212
- return result
2213
2216
  end
2214
2217
  rescue ::Gapic::Rest::Error => e
2215
2218
  raise ::Google::Cloud::Error.from_error(e)
@@ -2290,7 +2293,6 @@ module Google
2290
2293
 
2291
2294
  @analytics_admin_service_stub.delete_measurement_protocol_secret request, options do |result, operation|
2292
2295
  yield result, operation if block_given?
2293
- return result
2294
2296
  end
2295
2297
  rescue ::Gapic::Rest::Error => e
2296
2298
  raise ::Google::Cloud::Error.from_error(e)
@@ -2372,7 +2374,6 @@ module Google
2372
2374
 
2373
2375
  @analytics_admin_service_stub.update_measurement_protocol_secret request, options do |result, operation|
2374
2376
  yield result, operation if block_given?
2375
- return result
2376
2377
  end
2377
2378
  rescue ::Gapic::Rest::Error => e
2378
2379
  raise ::Google::Cloud::Error.from_error(e)
@@ -2464,7 +2465,6 @@ module Google
2464
2465
 
2465
2466
  @analytics_admin_service_stub.acknowledge_user_data_collection request, options do |result, operation|
2466
2467
  yield result, operation if block_given?
2467
- return result
2468
2468
  end
2469
2469
  rescue ::Gapic::Rest::Error => e
2470
2470
  raise ::Google::Cloud::Error.from_error(e)
@@ -2545,7 +2545,6 @@ module Google
2545
2545
 
2546
2546
  @analytics_admin_service_stub.get_sk_ad_network_conversion_value_schema request, options do |result, operation|
2547
2547
  yield result, operation if block_given?
2548
- return result
2549
2548
  end
2550
2549
  rescue ::Gapic::Rest::Error => e
2551
2550
  raise ::Google::Cloud::Error.from_error(e)
@@ -2627,7 +2626,6 @@ module Google
2627
2626
 
2628
2627
  @analytics_admin_service_stub.create_sk_ad_network_conversion_value_schema request, options do |result, operation|
2629
2628
  yield result, operation if block_given?
2630
- return result
2631
2629
  end
2632
2630
  rescue ::Gapic::Rest::Error => e
2633
2631
  raise ::Google::Cloud::Error.from_error(e)
@@ -2708,7 +2706,6 @@ module Google
2708
2706
 
2709
2707
  @analytics_admin_service_stub.delete_sk_ad_network_conversion_value_schema request, options do |result, operation|
2710
2708
  yield result, operation if block_given?
2711
- return result
2712
2709
  end
2713
2710
  rescue ::Gapic::Rest::Error => e
2714
2711
  raise ::Google::Cloud::Error.from_error(e)
@@ -2790,7 +2787,6 @@ module Google
2790
2787
 
2791
2788
  @analytics_admin_service_stub.update_sk_ad_network_conversion_value_schema request, options do |result, operation|
2792
2789
  yield result, operation if block_given?
2793
- return result
2794
2790
  end
2795
2791
  rescue ::Gapic::Rest::Error => e
2796
2792
  raise ::Google::Cloud::Error.from_error(e)
@@ -2889,7 +2885,7 @@ module Google
2889
2885
  @analytics_admin_service_stub.list_sk_ad_network_conversion_value_schemas request, options do |result, operation|
2890
2886
  result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_sk_ad_network_conversion_value_schemas, "skadnetwork_conversion_value_schemas", request, result, options
2891
2887
  yield result, operation if block_given?
2892
- return result
2888
+ throw :response, result
2893
2889
  end
2894
2890
  rescue ::Gapic::Rest::Error => e
2895
2891
  raise ::Google::Cloud::Error.from_error(e)
@@ -3007,7 +3003,7 @@ module Google
3007
3003
  @analytics_admin_service_stub.search_change_history_events request, options do |result, operation|
3008
3004
  result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :search_change_history_events, "change_history_events", request, result, options
3009
3005
  yield result, operation if block_given?
3010
- return result
3006
+ throw :response, result
3011
3007
  end
3012
3008
  rescue ::Gapic::Rest::Error => e
3013
3009
  raise ::Google::Cloud::Error.from_error(e)
@@ -3087,7 +3083,6 @@ module Google
3087
3083
 
3088
3084
  @analytics_admin_service_stub.get_google_signals_settings request, options do |result, operation|
3089
3085
  yield result, operation if block_given?
3090
- return result
3091
3086
  end
3092
3087
  rescue ::Gapic::Rest::Error => e
3093
3088
  raise ::Google::Cloud::Error.from_error(e)
@@ -3172,7 +3167,6 @@ module Google
3172
3167
 
3173
3168
  @analytics_admin_service_stub.update_google_signals_settings request, options do |result, operation|
3174
3169
  yield result, operation if block_given?
3175
- return result
3176
3170
  end
3177
3171
  rescue ::Gapic::Rest::Error => e
3178
3172
  raise ::Google::Cloud::Error.from_error(e)
@@ -3255,7 +3249,6 @@ module Google
3255
3249
 
3256
3250
  @analytics_admin_service_stub.create_conversion_event request, options do |result, operation|
3257
3251
  yield result, operation if block_given?
3258
- return result
3259
3252
  end
3260
3253
  rescue ::Gapic::Rest::Error => e
3261
3254
  raise ::Google::Cloud::Error.from_error(e)
@@ -3341,7 +3334,6 @@ module Google
3341
3334
 
3342
3335
  @analytics_admin_service_stub.update_conversion_event request, options do |result, operation|
3343
3336
  yield result, operation if block_given?
3344
- return result
3345
3337
  end
3346
3338
  rescue ::Gapic::Rest::Error => e
3347
3339
  raise ::Google::Cloud::Error.from_error(e)
@@ -3423,7 +3415,6 @@ module Google
3423
3415
 
3424
3416
  @analytics_admin_service_stub.get_conversion_event request, options do |result, operation|
3425
3417
  yield result, operation if block_given?
3426
- return result
3427
3418
  end
3428
3419
  rescue ::Gapic::Rest::Error => e
3429
3420
  raise ::Google::Cloud::Error.from_error(e)
@@ -3505,7 +3496,6 @@ module Google
3505
3496
 
3506
3497
  @analytics_admin_service_stub.delete_conversion_event request, options do |result, operation|
3507
3498
  yield result, operation if block_given?
3508
- return result
3509
3499
  end
3510
3500
  rescue ::Gapic::Rest::Error => e
3511
3501
  raise ::Google::Cloud::Error.from_error(e)
@@ -3602,7 +3592,7 @@ module Google
3602
3592
  @analytics_admin_service_stub.list_conversion_events request, options do |result, operation|
3603
3593
  result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_conversion_events, "conversion_events", request, result, options
3604
3594
  yield result, operation if block_given?
3605
- return result
3595
+ throw :response, result
3606
3596
  end
3607
3597
  rescue ::Gapic::Rest::Error => e
3608
3598
  raise ::Google::Cloud::Error.from_error(e)
@@ -3684,7 +3674,6 @@ module Google
3684
3674
 
3685
3675
  @analytics_admin_service_stub.create_key_event request, options do |result, operation|
3686
3676
  yield result, operation if block_given?
3687
- return result
3688
3677
  end
3689
3678
  rescue ::Gapic::Rest::Error => e
3690
3679
  raise ::Google::Cloud::Error.from_error(e)
@@ -3769,7 +3758,6 @@ module Google
3769
3758
 
3770
3759
  @analytics_admin_service_stub.update_key_event request, options do |result, operation|
3771
3760
  yield result, operation if block_given?
3772
- return result
3773
3761
  end
3774
3762
  rescue ::Gapic::Rest::Error => e
3775
3763
  raise ::Google::Cloud::Error.from_error(e)
@@ -3850,7 +3838,6 @@ module Google
3850
3838
 
3851
3839
  @analytics_admin_service_stub.get_key_event request, options do |result, operation|
3852
3840
  yield result, operation if block_given?
3853
- return result
3854
3841
  end
3855
3842
  rescue ::Gapic::Rest::Error => e
3856
3843
  raise ::Google::Cloud::Error.from_error(e)
@@ -3931,7 +3918,6 @@ module Google
3931
3918
 
3932
3919
  @analytics_admin_service_stub.delete_key_event request, options do |result, operation|
3933
3920
  yield result, operation if block_given?
3934
- return result
3935
3921
  end
3936
3922
  rescue ::Gapic::Rest::Error => e
3937
3923
  raise ::Google::Cloud::Error.from_error(e)
@@ -4026,7 +4012,7 @@ module Google
4026
4012
  @analytics_admin_service_stub.list_key_events request, options do |result, operation|
4027
4013
  result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_key_events, "key_events", request, result, options
4028
4014
  yield result, operation if block_given?
4029
- return result
4015
+ throw :response, result
4030
4016
  end
4031
4017
  rescue ::Gapic::Rest::Error => e
4032
4018
  raise ::Google::Cloud::Error.from_error(e)
@@ -4106,7 +4092,6 @@ module Google
4106
4092
 
4107
4093
  @analytics_admin_service_stub.get_display_video360_advertiser_link request, options do |result, operation|
4108
4094
  yield result, operation if block_given?
4109
- return result
4110
4095
  end
4111
4096
  rescue ::Gapic::Rest::Error => e
4112
4097
  raise ::Google::Cloud::Error.from_error(e)
@@ -4201,7 +4186,7 @@ module Google
4201
4186
  @analytics_admin_service_stub.list_display_video360_advertiser_links request, options do |result, operation|
4202
4187
  result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_display_video360_advertiser_links, "display_video_360_advertiser_links", request, result, options
4203
4188
  yield result, operation if block_given?
4204
- return result
4189
+ throw :response, result
4205
4190
  end
4206
4191
  rescue ::Gapic::Rest::Error => e
4207
4192
  raise ::Google::Cloud::Error.from_error(e)
@@ -4286,7 +4271,6 @@ module Google
4286
4271
 
4287
4272
  @analytics_admin_service_stub.create_display_video360_advertiser_link request, options do |result, operation|
4288
4273
  yield result, operation if block_given?
4289
- return result
4290
4274
  end
4291
4275
  rescue ::Gapic::Rest::Error => e
4292
4276
  raise ::Google::Cloud::Error.from_error(e)
@@ -4366,7 +4350,6 @@ module Google
4366
4350
 
4367
4351
  @analytics_admin_service_stub.delete_display_video360_advertiser_link request, options do |result, operation|
4368
4352
  yield result, operation if block_given?
4369
- return result
4370
4353
  end
4371
4354
  rescue ::Gapic::Rest::Error => e
4372
4355
  raise ::Google::Cloud::Error.from_error(e)
@@ -4449,7 +4432,6 @@ module Google
4449
4432
 
4450
4433
  @analytics_admin_service_stub.update_display_video360_advertiser_link request, options do |result, operation|
4451
4434
  yield result, operation if block_given?
4452
- return result
4453
4435
  end
4454
4436
  rescue ::Gapic::Rest::Error => e
4455
4437
  raise ::Google::Cloud::Error.from_error(e)
@@ -4529,7 +4511,6 @@ module Google
4529
4511
 
4530
4512
  @analytics_admin_service_stub.get_display_video360_advertiser_link_proposal request, options do |result, operation|
4531
4513
  yield result, operation if block_given?
4532
- return result
4533
4514
  end
4534
4515
  rescue ::Gapic::Rest::Error => e
4535
4516
  raise ::Google::Cloud::Error.from_error(e)
@@ -4625,7 +4606,7 @@ module Google
4625
4606
  @analytics_admin_service_stub.list_display_video360_advertiser_link_proposals request, options do |result, operation|
4626
4607
  result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_display_video360_advertiser_link_proposals, "display_video_360_advertiser_link_proposals", request, result, options
4627
4608
  yield result, operation if block_given?
4628
- return result
4609
+ throw :response, result
4629
4610
  end
4630
4611
  rescue ::Gapic::Rest::Error => e
4631
4612
  raise ::Google::Cloud::Error.from_error(e)
@@ -4706,7 +4687,6 @@ module Google
4706
4687
 
4707
4688
  @analytics_admin_service_stub.create_display_video360_advertiser_link_proposal request, options do |result, operation|
4708
4689
  yield result, operation if block_given?
4709
- return result
4710
4690
  end
4711
4691
  rescue ::Gapic::Rest::Error => e
4712
4692
  raise ::Google::Cloud::Error.from_error(e)
@@ -4787,7 +4767,6 @@ module Google
4787
4767
 
4788
4768
  @analytics_admin_service_stub.delete_display_video360_advertiser_link_proposal request, options do |result, operation|
4789
4769
  yield result, operation if block_given?
4790
- return result
4791
4770
  end
4792
4771
  rescue ::Gapic::Rest::Error => e
4793
4772
  raise ::Google::Cloud::Error.from_error(e)
@@ -4869,7 +4848,6 @@ module Google
4869
4848
 
4870
4849
  @analytics_admin_service_stub.approve_display_video360_advertiser_link_proposal request, options do |result, operation|
4871
4850
  yield result, operation if block_given?
4872
- return result
4873
4851
  end
4874
4852
  rescue ::Gapic::Rest::Error => e
4875
4853
  raise ::Google::Cloud::Error.from_error(e)
@@ -4953,7 +4931,6 @@ module Google
4953
4931
 
4954
4932
  @analytics_admin_service_stub.cancel_display_video360_advertiser_link_proposal request, options do |result, operation|
4955
4933
  yield result, operation if block_given?
4956
- return result
4957
4934
  end
4958
4935
  rescue ::Gapic::Rest::Error => e
4959
4936
  raise ::Google::Cloud::Error.from_error(e)
@@ -5034,7 +5011,6 @@ module Google
5034
5011
 
5035
5012
  @analytics_admin_service_stub.create_custom_dimension request, options do |result, operation|
5036
5013
  yield result, operation if block_given?
5037
- return result
5038
5014
  end
5039
5015
  rescue ::Gapic::Rest::Error => e
5040
5016
  raise ::Google::Cloud::Error.from_error(e)
@@ -5117,7 +5093,6 @@ module Google
5117
5093
 
5118
5094
  @analytics_admin_service_stub.update_custom_dimension request, options do |result, operation|
5119
5095
  yield result, operation if block_given?
5120
- return result
5121
5096
  end
5122
5097
  rescue ::Gapic::Rest::Error => e
5123
5098
  raise ::Google::Cloud::Error.from_error(e)
@@ -5211,7 +5186,7 @@ module Google
5211
5186
  @analytics_admin_service_stub.list_custom_dimensions request, options do |result, operation|
5212
5187
  result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_custom_dimensions, "custom_dimensions", request, result, options
5213
5188
  yield result, operation if block_given?
5214
- return result
5189
+ throw :response, result
5215
5190
  end
5216
5191
  rescue ::Gapic::Rest::Error => e
5217
5192
  raise ::Google::Cloud::Error.from_error(e)
@@ -5291,7 +5266,6 @@ module Google
5291
5266
 
5292
5267
  @analytics_admin_service_stub.archive_custom_dimension request, options do |result, operation|
5293
5268
  yield result, operation if block_given?
5294
- return result
5295
5269
  end
5296
5270
  rescue ::Gapic::Rest::Error => e
5297
5271
  raise ::Google::Cloud::Error.from_error(e)
@@ -5371,7 +5345,6 @@ module Google
5371
5345
 
5372
5346
  @analytics_admin_service_stub.get_custom_dimension request, options do |result, operation|
5373
5347
  yield result, operation if block_given?
5374
- return result
5375
5348
  end
5376
5349
  rescue ::Gapic::Rest::Error => e
5377
5350
  raise ::Google::Cloud::Error.from_error(e)
@@ -5452,7 +5425,6 @@ module Google
5452
5425
 
5453
5426
  @analytics_admin_service_stub.create_custom_metric request, options do |result, operation|
5454
5427
  yield result, operation if block_given?
5455
- return result
5456
5428
  end
5457
5429
  rescue ::Gapic::Rest::Error => e
5458
5430
  raise ::Google::Cloud::Error.from_error(e)
@@ -5535,7 +5507,6 @@ module Google
5535
5507
 
5536
5508
  @analytics_admin_service_stub.update_custom_metric request, options do |result, operation|
5537
5509
  yield result, operation if block_given?
5538
- return result
5539
5510
  end
5540
5511
  rescue ::Gapic::Rest::Error => e
5541
5512
  raise ::Google::Cloud::Error.from_error(e)
@@ -5629,7 +5600,7 @@ module Google
5629
5600
  @analytics_admin_service_stub.list_custom_metrics request, options do |result, operation|
5630
5601
  result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_custom_metrics, "custom_metrics", request, result, options
5631
5602
  yield result, operation if block_given?
5632
- return result
5603
+ throw :response, result
5633
5604
  end
5634
5605
  rescue ::Gapic::Rest::Error => e
5635
5606
  raise ::Google::Cloud::Error.from_error(e)
@@ -5709,7 +5680,6 @@ module Google
5709
5680
 
5710
5681
  @analytics_admin_service_stub.archive_custom_metric request, options do |result, operation|
5711
5682
  yield result, operation if block_given?
5712
- return result
5713
5683
  end
5714
5684
  rescue ::Gapic::Rest::Error => e
5715
5685
  raise ::Google::Cloud::Error.from_error(e)
@@ -5789,7 +5759,6 @@ module Google
5789
5759
 
5790
5760
  @analytics_admin_service_stub.get_custom_metric request, options do |result, operation|
5791
5761
  yield result, operation if block_given?
5792
- return result
5793
5762
  end
5794
5763
  rescue ::Gapic::Rest::Error => e
5795
5764
  raise ::Google::Cloud::Error.from_error(e)
@@ -5871,7 +5840,6 @@ module Google
5871
5840
 
5872
5841
  @analytics_admin_service_stub.get_data_retention_settings request, options do |result, operation|
5873
5842
  yield result, operation if block_given?
5874
- return result
5875
5843
  end
5876
5844
  rescue ::Gapic::Rest::Error => e
5877
5845
  raise ::Google::Cloud::Error.from_error(e)
@@ -5956,7 +5924,6 @@ module Google
5956
5924
 
5957
5925
  @analytics_admin_service_stub.update_data_retention_settings request, options do |result, operation|
5958
5926
  yield result, operation if block_given?
5959
- return result
5960
5927
  end
5961
5928
  rescue ::Gapic::Rest::Error => e
5962
5929
  raise ::Google::Cloud::Error.from_error(e)
@@ -6037,7 +6004,6 @@ module Google
6037
6004
 
6038
6005
  @analytics_admin_service_stub.create_data_stream request, options do |result, operation|
6039
6006
  yield result, operation if block_given?
6040
- return result
6041
6007
  end
6042
6008
  rescue ::Gapic::Rest::Error => e
6043
6009
  raise ::Google::Cloud::Error.from_error(e)
@@ -6117,7 +6083,6 @@ module Google
6117
6083
 
6118
6084
  @analytics_admin_service_stub.delete_data_stream request, options do |result, operation|
6119
6085
  yield result, operation if block_given?
6120
- return result
6121
6086
  end
6122
6087
  rescue ::Gapic::Rest::Error => e
6123
6088
  raise ::Google::Cloud::Error.from_error(e)
@@ -6200,7 +6165,6 @@ module Google
6200
6165
 
6201
6166
  @analytics_admin_service_stub.update_data_stream request, options do |result, operation|
6202
6167
  yield result, operation if block_given?
6203
- return result
6204
6168
  end
6205
6169
  rescue ::Gapic::Rest::Error => e
6206
6170
  raise ::Google::Cloud::Error.from_error(e)
@@ -6294,7 +6258,7 @@ module Google
6294
6258
  @analytics_admin_service_stub.list_data_streams request, options do |result, operation|
6295
6259
  result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_data_streams, "data_streams", request, result, options
6296
6260
  yield result, operation if block_given?
6297
- return result
6261
+ throw :response, result
6298
6262
  end
6299
6263
  rescue ::Gapic::Rest::Error => e
6300
6264
  raise ::Google::Cloud::Error.from_error(e)
@@ -6374,7 +6338,6 @@ module Google
6374
6338
 
6375
6339
  @analytics_admin_service_stub.get_data_stream request, options do |result, operation|
6376
6340
  yield result, operation if block_given?
6377
- return result
6378
6341
  end
6379
6342
  rescue ::Gapic::Rest::Error => e
6380
6343
  raise ::Google::Cloud::Error.from_error(e)
@@ -6456,7 +6419,6 @@ module Google
6456
6419
 
6457
6420
  @analytics_admin_service_stub.get_audience request, options do |result, operation|
6458
6421
  yield result, operation if block_given?
6459
- return result
6460
6422
  end
6461
6423
  rescue ::Gapic::Rest::Error => e
6462
6424
  raise ::Google::Cloud::Error.from_error(e)
@@ -6552,7 +6514,7 @@ module Google
6552
6514
  @analytics_admin_service_stub.list_audiences request, options do |result, operation|
6553
6515
  result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_audiences, "audiences", request, result, options
6554
6516
  yield result, operation if block_given?
6555
- return result
6517
+ throw :response, result
6556
6518
  end
6557
6519
  rescue ::Gapic::Rest::Error => e
6558
6520
  raise ::Google::Cloud::Error.from_error(e)
@@ -6633,7 +6595,6 @@ module Google
6633
6595
 
6634
6596
  @analytics_admin_service_stub.create_audience request, options do |result, operation|
6635
6597
  yield result, operation if block_given?
6636
- return result
6637
6598
  end
6638
6599
  rescue ::Gapic::Rest::Error => e
6639
6600
  raise ::Google::Cloud::Error.from_error(e)
@@ -6718,7 +6679,6 @@ module Google
6718
6679
 
6719
6680
  @analytics_admin_service_stub.update_audience request, options do |result, operation|
6720
6681
  yield result, operation if block_given?
6721
- return result
6722
6682
  end
6723
6683
  rescue ::Gapic::Rest::Error => e
6724
6684
  raise ::Google::Cloud::Error.from_error(e)
@@ -6797,7 +6757,6 @@ module Google
6797
6757
 
6798
6758
  @analytics_admin_service_stub.archive_audience request, options do |result, operation|
6799
6759
  yield result, operation if block_given?
6800
- return result
6801
6760
  end
6802
6761
  rescue ::Gapic::Rest::Error => e
6803
6762
  raise ::Google::Cloud::Error.from_error(e)
@@ -6877,7 +6836,6 @@ module Google
6877
6836
 
6878
6837
  @analytics_admin_service_stub.get_search_ads360_link request, options do |result, operation|
6879
6838
  yield result, operation if block_given?
6880
- return result
6881
6839
  end
6882
6840
  rescue ::Gapic::Rest::Error => e
6883
6841
  raise ::Google::Cloud::Error.from_error(e)
@@ -6972,7 +6930,7 @@ module Google
6972
6930
  @analytics_admin_service_stub.list_search_ads360_links request, options do |result, operation|
6973
6931
  result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_search_ads360_links, "search_ads_360_links", request, result, options
6974
6932
  yield result, operation if block_given?
6975
- return result
6933
+ throw :response, result
6976
6934
  end
6977
6935
  rescue ::Gapic::Rest::Error => e
6978
6936
  raise ::Google::Cloud::Error.from_error(e)
@@ -7053,7 +7011,6 @@ module Google
7053
7011
 
7054
7012
  @analytics_admin_service_stub.create_search_ads360_link request, options do |result, operation|
7055
7013
  yield result, operation if block_given?
7056
- return result
7057
7014
  end
7058
7015
  rescue ::Gapic::Rest::Error => e
7059
7016
  raise ::Google::Cloud::Error.from_error(e)
@@ -7133,7 +7090,6 @@ module Google
7133
7090
 
7134
7091
  @analytics_admin_service_stub.delete_search_ads360_link request, options do |result, operation|
7135
7092
  yield result, operation if block_given?
7136
- return result
7137
7093
  end
7138
7094
  rescue ::Gapic::Rest::Error => e
7139
7095
  raise ::Google::Cloud::Error.from_error(e)
@@ -7216,7 +7172,6 @@ module Google
7216
7172
 
7217
7173
  @analytics_admin_service_stub.update_search_ads360_link request, options do |result, operation|
7218
7174
  yield result, operation if block_given?
7219
- return result
7220
7175
  end
7221
7176
  rescue ::Gapic::Rest::Error => e
7222
7177
  raise ::Google::Cloud::Error.from_error(e)
@@ -7296,7 +7251,6 @@ module Google
7296
7251
 
7297
7252
  @analytics_admin_service_stub.get_attribution_settings request, options do |result, operation|
7298
7253
  yield result, operation if block_given?
7299
- return result
7300
7254
  end
7301
7255
  rescue ::Gapic::Rest::Error => e
7302
7256
  raise ::Google::Cloud::Error.from_error(e)
@@ -7381,7 +7335,6 @@ module Google
7381
7335
 
7382
7336
  @analytics_admin_service_stub.update_attribution_settings request, options do |result, operation|
7383
7337
  yield result, operation if block_given?
7384
- return result
7385
7338
  end
7386
7339
  rescue ::Gapic::Rest::Error => e
7387
7340
  raise ::Google::Cloud::Error.from_error(e)
@@ -7549,7 +7502,6 @@ module Google
7549
7502
 
7550
7503
  @analytics_admin_service_stub.run_access_report request, options do |result, operation|
7551
7504
  yield result, operation if block_given?
7552
- return result
7553
7505
  end
7554
7506
  rescue ::Gapic::Rest::Error => e
7555
7507
  raise ::Google::Cloud::Error.from_error(e)
@@ -7632,7 +7584,6 @@ module Google
7632
7584
 
7633
7585
  @analytics_admin_service_stub.create_access_binding request, options do |result, operation|
7634
7586
  yield result, operation if block_given?
7635
- return result
7636
7587
  end
7637
7588
  rescue ::Gapic::Rest::Error => e
7638
7589
  raise ::Google::Cloud::Error.from_error(e)
@@ -7714,7 +7665,6 @@ module Google
7714
7665
 
7715
7666
  @analytics_admin_service_stub.get_access_binding request, options do |result, operation|
7716
7667
  yield result, operation if block_given?
7717
- return result
7718
7668
  end
7719
7669
  rescue ::Gapic::Rest::Error => e
7720
7670
  raise ::Google::Cloud::Error.from_error(e)
@@ -7793,7 +7743,6 @@ module Google
7793
7743
 
7794
7744
  @analytics_admin_service_stub.update_access_binding request, options do |result, operation|
7795
7745
  yield result, operation if block_given?
7796
- return result
7797
7746
  end
7798
7747
  rescue ::Gapic::Rest::Error => e
7799
7748
  raise ::Google::Cloud::Error.from_error(e)
@@ -7874,7 +7823,6 @@ module Google
7874
7823
 
7875
7824
  @analytics_admin_service_stub.delete_access_binding request, options do |result, operation|
7876
7825
  yield result, operation if block_given?
7877
- return result
7878
7826
  end
7879
7827
  rescue ::Gapic::Rest::Error => e
7880
7828
  raise ::Google::Cloud::Error.from_error(e)
@@ -7970,7 +7918,7 @@ module Google
7970
7918
  @analytics_admin_service_stub.list_access_bindings request, options do |result, operation|
7971
7919
  result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_access_bindings, "access_bindings", request, result, options
7972
7920
  yield result, operation if block_given?
7973
- return result
7921
+ throw :response, result
7974
7922
  end
7975
7923
  rescue ::Gapic::Rest::Error => e
7976
7924
  raise ::Google::Cloud::Error.from_error(e)
@@ -8060,7 +8008,6 @@ module Google
8060
8008
 
8061
8009
  @analytics_admin_service_stub.batch_create_access_bindings request, options do |result, operation|
8062
8010
  yield result, operation if block_given?
8063
- return result
8064
8011
  end
8065
8012
  rescue ::Gapic::Rest::Error => e
8066
8013
  raise ::Google::Cloud::Error.from_error(e)
@@ -8149,7 +8096,6 @@ module Google
8149
8096
 
8150
8097
  @analytics_admin_service_stub.batch_get_access_bindings request, options do |result, operation|
8151
8098
  yield result, operation if block_given?
8152
- return result
8153
8099
  end
8154
8100
  rescue ::Gapic::Rest::Error => e
8155
8101
  raise ::Google::Cloud::Error.from_error(e)
@@ -8237,7 +8183,6 @@ module Google
8237
8183
 
8238
8184
  @analytics_admin_service_stub.batch_update_access_bindings request, options do |result, operation|
8239
8185
  yield result, operation if block_given?
8240
- return result
8241
8186
  end
8242
8187
  rescue ::Gapic::Rest::Error => e
8243
8188
  raise ::Google::Cloud::Error.from_error(e)
@@ -8323,7 +8268,6 @@ module Google
8323
8268
 
8324
8269
  @analytics_admin_service_stub.batch_delete_access_bindings request, options do |result, operation|
8325
8270
  yield result, operation if block_given?
8326
- return result
8327
8271
  end
8328
8272
  rescue ::Gapic::Rest::Error => e
8329
8273
  raise ::Google::Cloud::Error.from_error(e)
@@ -8403,7 +8347,6 @@ module Google
8403
8347
 
8404
8348
  @analytics_admin_service_stub.get_expanded_data_set request, options do |result, operation|
8405
8349
  yield result, operation if block_given?
8406
- return result
8407
8350
  end
8408
8351
  rescue ::Gapic::Rest::Error => e
8409
8352
  raise ::Google::Cloud::Error.from_error(e)
@@ -8497,7 +8440,7 @@ module Google
8497
8440
  @analytics_admin_service_stub.list_expanded_data_sets request, options do |result, operation|
8498
8441
  result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_expanded_data_sets, "expanded_data_sets", request, result, options
8499
8442
  yield result, operation if block_given?
8500
- return result
8443
+ throw :response, result
8501
8444
  end
8502
8445
  rescue ::Gapic::Rest::Error => e
8503
8446
  raise ::Google::Cloud::Error.from_error(e)
@@ -8578,7 +8521,6 @@ module Google
8578
8521
 
8579
8522
  @analytics_admin_service_stub.create_expanded_data_set request, options do |result, operation|
8580
8523
  yield result, operation if block_given?
8581
- return result
8582
8524
  end
8583
8525
  rescue ::Gapic::Rest::Error => e
8584
8526
  raise ::Google::Cloud::Error.from_error(e)
@@ -8664,7 +8606,6 @@ module Google
8664
8606
 
8665
8607
  @analytics_admin_service_stub.update_expanded_data_set request, options do |result, operation|
8666
8608
  yield result, operation if block_given?
8667
- return result
8668
8609
  end
8669
8610
  rescue ::Gapic::Rest::Error => e
8670
8611
  raise ::Google::Cloud::Error.from_error(e)
@@ -8743,7 +8684,6 @@ module Google
8743
8684
 
8744
8685
  @analytics_admin_service_stub.delete_expanded_data_set request, options do |result, operation|
8745
8686
  yield result, operation if block_given?
8746
- return result
8747
8687
  end
8748
8688
  rescue ::Gapic::Rest::Error => e
8749
8689
  raise ::Google::Cloud::Error.from_error(e)
@@ -8823,7 +8763,6 @@ module Google
8823
8763
 
8824
8764
  @analytics_admin_service_stub.get_channel_group request, options do |result, operation|
8825
8765
  yield result, operation if block_given?
8826
- return result
8827
8766
  end
8828
8767
  rescue ::Gapic::Rest::Error => e
8829
8768
  raise ::Google::Cloud::Error.from_error(e)
@@ -8918,7 +8857,7 @@ module Google
8918
8857
  @analytics_admin_service_stub.list_channel_groups request, options do |result, operation|
8919
8858
  result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_channel_groups, "channel_groups", request, result, options
8920
8859
  yield result, operation if block_given?
8921
- return result
8860
+ throw :response, result
8922
8861
  end
8923
8862
  rescue ::Gapic::Rest::Error => e
8924
8863
  raise ::Google::Cloud::Error.from_error(e)
@@ -9000,7 +8939,6 @@ module Google
9000
8939
 
9001
8940
  @analytics_admin_service_stub.create_channel_group request, options do |result, operation|
9002
8941
  yield result, operation if block_given?
9003
- return result
9004
8942
  end
9005
8943
  rescue ::Gapic::Rest::Error => e
9006
8944
  raise ::Google::Cloud::Error.from_error(e)
@@ -9086,7 +9024,6 @@ module Google
9086
9024
 
9087
9025
  @analytics_admin_service_stub.update_channel_group request, options do |result, operation|
9088
9026
  yield result, operation if block_given?
9089
- return result
9090
9027
  end
9091
9028
  rescue ::Gapic::Rest::Error => e
9092
9029
  raise ::Google::Cloud::Error.from_error(e)
@@ -9166,7 +9103,6 @@ module Google
9166
9103
 
9167
9104
  @analytics_admin_service_stub.delete_channel_group request, options do |result, operation|
9168
9105
  yield result, operation if block_given?
9169
- return result
9170
9106
  end
9171
9107
  rescue ::Gapic::Rest::Error => e
9172
9108
  raise ::Google::Cloud::Error.from_error(e)
@@ -9252,7 +9188,6 @@ module Google
9252
9188
 
9253
9189
  @analytics_admin_service_stub.set_automated_ga4_configuration_opt_out request, options do |result, operation|
9254
9190
  yield result, operation if block_given?
9255
- return result
9256
9191
  end
9257
9192
  rescue ::Gapic::Rest::Error => e
9258
9193
  raise ::Google::Cloud::Error.from_error(e)
@@ -9336,7 +9271,6 @@ module Google
9336
9271
 
9337
9272
  @analytics_admin_service_stub.fetch_automated_ga4_configuration_opt_out request, options do |result, operation|
9338
9273
  yield result, operation if block_given?
9339
- return result
9340
9274
  end
9341
9275
  rescue ::Gapic::Rest::Error => e
9342
9276
  raise ::Google::Cloud::Error.from_error(e)
@@ -9417,7 +9351,6 @@ module Google
9417
9351
 
9418
9352
  @analytics_admin_service_stub.create_big_query_link request, options do |result, operation|
9419
9353
  yield result, operation if block_given?
9420
- return result
9421
9354
  end
9422
9355
  rescue ::Gapic::Rest::Error => e
9423
9356
  raise ::Google::Cloud::Error.from_error(e)
@@ -9498,7 +9431,6 @@ module Google
9498
9431
 
9499
9432
  @analytics_admin_service_stub.get_big_query_link request, options do |result, operation|
9500
9433
  yield result, operation if block_given?
9501
- return result
9502
9434
  end
9503
9435
  rescue ::Gapic::Rest::Error => e
9504
9436
  raise ::Google::Cloud::Error.from_error(e)
@@ -9594,7 +9526,7 @@ module Google
9594
9526
  @analytics_admin_service_stub.list_big_query_links request, options do |result, operation|
9595
9527
  result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_big_query_links, "bigquery_links", request, result, options
9596
9528
  yield result, operation if block_given?
9597
- return result
9529
+ throw :response, result
9598
9530
  end
9599
9531
  rescue ::Gapic::Rest::Error => e
9600
9532
  raise ::Google::Cloud::Error.from_error(e)
@@ -9674,7 +9606,6 @@ module Google
9674
9606
 
9675
9607
  @analytics_admin_service_stub.delete_big_query_link request, options do |result, operation|
9676
9608
  yield result, operation if block_given?
9677
- return result
9678
9609
  end
9679
9610
  rescue ::Gapic::Rest::Error => e
9680
9611
  raise ::Google::Cloud::Error.from_error(e)
@@ -9759,7 +9690,6 @@ module Google
9759
9690
 
9760
9691
  @analytics_admin_service_stub.update_big_query_link request, options do |result, operation|
9761
9692
  yield result, operation if block_given?
9762
- return result
9763
9693
  end
9764
9694
  rescue ::Gapic::Rest::Error => e
9765
9695
  raise ::Google::Cloud::Error.from_error(e)
@@ -9843,7 +9773,6 @@ module Google
9843
9773
 
9844
9774
  @analytics_admin_service_stub.get_enhanced_measurement_settings request, options do |result, operation|
9845
9775
  yield result, operation if block_given?
9846
- return result
9847
9776
  end
9848
9777
  rescue ::Gapic::Rest::Error => e
9849
9778
  raise ::Google::Cloud::Error.from_error(e)
@@ -9930,7 +9859,6 @@ module Google
9930
9859
 
9931
9860
  @analytics_admin_service_stub.update_enhanced_measurement_settings request, options do |result, operation|
9932
9861
  yield result, operation if block_given?
9933
- return result
9934
9862
  end
9935
9863
  rescue ::Gapic::Rest::Error => e
9936
9864
  raise ::Google::Cloud::Error.from_error(e)
@@ -10016,7 +9944,6 @@ module Google
10016
9944
 
10017
9945
  @analytics_admin_service_stub.create_connected_site_tag request, options do |result, operation|
10018
9946
  yield result, operation if block_given?
10019
- return result
10020
9947
  end
10021
9948
  rescue ::Gapic::Rest::Error => e
10022
9949
  raise ::Google::Cloud::Error.from_error(e)
@@ -10102,7 +10029,6 @@ module Google
10102
10029
 
10103
10030
  @analytics_admin_service_stub.delete_connected_site_tag request, options do |result, operation|
10104
10031
  yield result, operation if block_given?
10105
- return result
10106
10032
  end
10107
10033
  rescue ::Gapic::Rest::Error => e
10108
10034
  raise ::Google::Cloud::Error.from_error(e)
@@ -10186,7 +10112,6 @@ module Google
10186
10112
 
10187
10113
  @analytics_admin_service_stub.list_connected_site_tags request, options do |result, operation|
10188
10114
  yield result, operation if block_given?
10189
- return result
10190
10115
  end
10191
10116
  rescue ::Gapic::Rest::Error => e
10192
10117
  raise ::Google::Cloud::Error.from_error(e)
@@ -10270,7 +10195,6 @@ module Google
10270
10195
 
10271
10196
  @analytics_admin_service_stub.fetch_connected_ga4_property request, options do |result, operation|
10272
10197
  yield result, operation if block_given?
10273
- return result
10274
10198
  end
10275
10199
  rescue ::Gapic::Rest::Error => e
10276
10200
  raise ::Google::Cloud::Error.from_error(e)
@@ -10351,7 +10275,6 @@ module Google
10351
10275
 
10352
10276
  @analytics_admin_service_stub.get_ad_sense_link request, options do |result, operation|
10353
10277
  yield result, operation if block_given?
10354
- return result
10355
10278
  end
10356
10279
  rescue ::Gapic::Rest::Error => e
10357
10280
  raise ::Google::Cloud::Error.from_error(e)
@@ -10434,7 +10357,6 @@ module Google
10434
10357
 
10435
10358
  @analytics_admin_service_stub.create_ad_sense_link request, options do |result, operation|
10436
10359
  yield result, operation if block_given?
10437
- return result
10438
10360
  end
10439
10361
  rescue ::Gapic::Rest::Error => e
10440
10362
  raise ::Google::Cloud::Error.from_error(e)
@@ -10515,7 +10437,6 @@ module Google
10515
10437
 
10516
10438
  @analytics_admin_service_stub.delete_ad_sense_link request, options do |result, operation|
10517
10439
  yield result, operation if block_given?
10518
- return result
10519
10440
  end
10520
10441
  rescue ::Gapic::Rest::Error => e
10521
10442
  raise ::Google::Cloud::Error.from_error(e)
@@ -10611,7 +10532,7 @@ module Google
10611
10532
  @analytics_admin_service_stub.list_ad_sense_links request, options do |result, operation|
10612
10533
  result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_ad_sense_links, "adsense_links", request, result, options
10613
10534
  yield result, operation if block_given?
10614
- return result
10535
+ throw :response, result
10615
10536
  end
10616
10537
  rescue ::Gapic::Rest::Error => e
10617
10538
  raise ::Google::Cloud::Error.from_error(e)
@@ -10691,7 +10612,6 @@ module Google
10691
10612
 
10692
10613
  @analytics_admin_service_stub.get_event_create_rule request, options do |result, operation|
10693
10614
  yield result, operation if block_given?
10694
- return result
10695
10615
  end
10696
10616
  rescue ::Gapic::Rest::Error => e
10697
10617
  raise ::Google::Cloud::Error.from_error(e)
@@ -10785,7 +10705,7 @@ module Google
10785
10705
  @analytics_admin_service_stub.list_event_create_rules request, options do |result, operation|
10786
10706
  result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_event_create_rules, "event_create_rules", request, result, options
10787
10707
  yield result, operation if block_given?
10788
- return result
10708
+ throw :response, result
10789
10709
  end
10790
10710
  rescue ::Gapic::Rest::Error => e
10791
10711
  raise ::Google::Cloud::Error.from_error(e)
@@ -10866,7 +10786,6 @@ module Google
10866
10786
 
10867
10787
  @analytics_admin_service_stub.create_event_create_rule request, options do |result, operation|
10868
10788
  yield result, operation if block_given?
10869
- return result
10870
10789
  end
10871
10790
  rescue ::Gapic::Rest::Error => e
10872
10791
  raise ::Google::Cloud::Error.from_error(e)
@@ -10952,7 +10871,6 @@ module Google
10952
10871
 
10953
10872
  @analytics_admin_service_stub.update_event_create_rule request, options do |result, operation|
10954
10873
  yield result, operation if block_given?
10955
- return result
10956
10874
  end
10957
10875
  rescue ::Gapic::Rest::Error => e
10958
10876
  raise ::Google::Cloud::Error.from_error(e)
@@ -11032,7 +10950,6 @@ module Google
11032
10950
 
11033
10951
  @analytics_admin_service_stub.delete_event_create_rule request, options do |result, operation|
11034
10952
  yield result, operation if block_given?
11035
- return result
11036
10953
  end
11037
10954
  rescue ::Gapic::Rest::Error => e
11038
10955
  raise ::Google::Cloud::Error.from_error(e)
@@ -11112,7 +11029,6 @@ module Google
11112
11029
 
11113
11030
  @analytics_admin_service_stub.get_event_edit_rule request, options do |result, operation|
11114
11031
  yield result, operation if block_given?
11115
- return result
11116
11032
  end
11117
11033
  rescue ::Gapic::Rest::Error => e
11118
11034
  raise ::Google::Cloud::Error.from_error(e)
@@ -11206,7 +11122,7 @@ module Google
11206
11122
  @analytics_admin_service_stub.list_event_edit_rules request, options do |result, operation|
11207
11123
  result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_event_edit_rules, "event_edit_rules", request, result, options
11208
11124
  yield result, operation if block_given?
11209
- return result
11125
+ throw :response, result
11210
11126
  end
11211
11127
  rescue ::Gapic::Rest::Error => e
11212
11128
  raise ::Google::Cloud::Error.from_error(e)
@@ -11287,7 +11203,6 @@ module Google
11287
11203
 
11288
11204
  @analytics_admin_service_stub.create_event_edit_rule request, options do |result, operation|
11289
11205
  yield result, operation if block_given?
11290
- return result
11291
11206
  end
11292
11207
  rescue ::Gapic::Rest::Error => e
11293
11208
  raise ::Google::Cloud::Error.from_error(e)
@@ -11373,7 +11288,6 @@ module Google
11373
11288
 
11374
11289
  @analytics_admin_service_stub.update_event_edit_rule request, options do |result, operation|
11375
11290
  yield result, operation if block_given?
11376
- return result
11377
11291
  end
11378
11292
  rescue ::Gapic::Rest::Error => e
11379
11293
  raise ::Google::Cloud::Error.from_error(e)
@@ -11452,7 +11366,6 @@ module Google
11452
11366
 
11453
11367
  @analytics_admin_service_stub.delete_event_edit_rule request, options do |result, operation|
11454
11368
  yield result, operation if block_given?
11455
- return result
11456
11369
  end
11457
11370
  rescue ::Gapic::Rest::Error => e
11458
11371
  raise ::Google::Cloud::Error.from_error(e)
@@ -11535,7 +11448,6 @@ module Google
11535
11448
 
11536
11449
  @analytics_admin_service_stub.reorder_event_edit_rules request, options do |result, operation|
11537
11450
  yield result, operation if block_given?
11538
- return result
11539
11451
  end
11540
11452
  rescue ::Gapic::Rest::Error => e
11541
11453
  raise ::Google::Cloud::Error.from_error(e)
@@ -11620,7 +11532,6 @@ module Google
11620
11532
 
11621
11533
  @analytics_admin_service_stub.update_data_redaction_settings request, options do |result, operation|
11622
11534
  yield result, operation if block_given?
11623
- return result
11624
11535
  end
11625
11536
  rescue ::Gapic::Rest::Error => e
11626
11537
  raise ::Google::Cloud::Error.from_error(e)
@@ -11702,7 +11613,6 @@ module Google
11702
11613
 
11703
11614
  @analytics_admin_service_stub.get_data_redaction_settings request, options do |result, operation|
11704
11615
  yield result, operation if block_given?
11705
- return result
11706
11616
  end
11707
11617
  rescue ::Gapic::Rest::Error => e
11708
11618
  raise ::Google::Cloud::Error.from_error(e)
@@ -11783,7 +11693,6 @@ module Google
11783
11693
 
11784
11694
  @analytics_admin_service_stub.get_calculated_metric request, options do |result, operation|
11785
11695
  yield result, operation if block_given?
11786
- return result
11787
11696
  end
11788
11697
  rescue ::Gapic::Rest::Error => e
11789
11698
  raise ::Google::Cloud::Error.from_error(e)
@@ -11874,7 +11783,6 @@ module Google
11874
11783
 
11875
11784
  @analytics_admin_service_stub.create_calculated_metric request, options do |result, operation|
11876
11785
  yield result, operation if block_given?
11877
- return result
11878
11786
  end
11879
11787
  rescue ::Gapic::Rest::Error => e
11880
11788
  raise ::Google::Cloud::Error.from_error(e)
@@ -11968,7 +11876,7 @@ module Google
11968
11876
  @analytics_admin_service_stub.list_calculated_metrics request, options do |result, operation|
11969
11877
  result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_calculated_metrics, "calculated_metrics", request, result, options
11970
11878
  yield result, operation if block_given?
11971
- return result
11879
+ throw :response, result
11972
11880
  end
11973
11881
  rescue ::Gapic::Rest::Error => e
11974
11882
  raise ::Google::Cloud::Error.from_error(e)
@@ -12051,7 +11959,6 @@ module Google
12051
11959
 
12052
11960
  @analytics_admin_service_stub.update_calculated_metric request, options do |result, operation|
12053
11961
  yield result, operation if block_given?
12054
- return result
12055
11962
  end
12056
11963
  rescue ::Gapic::Rest::Error => e
12057
11964
  raise ::Google::Cloud::Error.from_error(e)
@@ -12132,7 +12039,6 @@ module Google
12132
12039
 
12133
12040
  @analytics_admin_service_stub.delete_calculated_metric request, options do |result, operation|
12134
12041
  yield result, operation if block_given?
12135
- return result
12136
12042
  end
12137
12043
  rescue ::Gapic::Rest::Error => e
12138
12044
  raise ::Google::Cloud::Error.from_error(e)
@@ -12214,7 +12120,6 @@ module Google
12214
12120
 
12215
12121
  @analytics_admin_service_stub.create_rollup_property request, options do |result, operation|
12216
12122
  yield result, operation if block_given?
12217
- return result
12218
12123
  end
12219
12124
  rescue ::Gapic::Rest::Error => e
12220
12125
  raise ::Google::Cloud::Error.from_error(e)
@@ -12298,7 +12203,6 @@ module Google
12298
12203
 
12299
12204
  @analytics_admin_service_stub.get_rollup_property_source_link request, options do |result, operation|
12300
12205
  yield result, operation if block_given?
12301
- return result
12302
12206
  end
12303
12207
  rescue ::Gapic::Rest::Error => e
12304
12208
  raise ::Google::Cloud::Error.from_error(e)
@@ -12396,7 +12300,7 @@ module Google
12396
12300
  @analytics_admin_service_stub.list_rollup_property_source_links request, options do |result, operation|
12397
12301
  result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_rollup_property_source_links, "rollup_property_source_links", request, result, options
12398
12302
  yield result, operation if block_given?
12399
- return result
12303
+ throw :response, result
12400
12304
  end
12401
12305
  rescue ::Gapic::Rest::Error => e
12402
12306
  raise ::Google::Cloud::Error.from_error(e)
@@ -12480,7 +12384,6 @@ module Google
12480
12384
 
12481
12385
  @analytics_admin_service_stub.create_rollup_property_source_link request, options do |result, operation|
12482
12386
  yield result, operation if block_given?
12483
- return result
12484
12387
  end
12485
12388
  rescue ::Gapic::Rest::Error => e
12486
12389
  raise ::Google::Cloud::Error.from_error(e)
@@ -12563,7 +12466,6 @@ module Google
12563
12466
 
12564
12467
  @analytics_admin_service_stub.delete_rollup_property_source_link request, options do |result, operation|
12565
12468
  yield result, operation if block_given?
12566
- return result
12567
12469
  end
12568
12470
  rescue ::Gapic::Rest::Error => e
12569
12471
  raise ::Google::Cloud::Error.from_error(e)
@@ -12645,7 +12547,6 @@ module Google
12645
12547
 
12646
12548
  @analytics_admin_service_stub.provision_subproperty request, options do |result, operation|
12647
12549
  yield result, operation if block_given?
12648
- return result
12649
12550
  end
12650
12551
  rescue ::Gapic::Rest::Error => e
12651
12552
  raise ::Google::Cloud::Error.from_error(e)
@@ -12727,7 +12628,6 @@ module Google
12727
12628
 
12728
12629
  @analytics_admin_service_stub.create_subproperty_event_filter request, options do |result, operation|
12729
12630
  yield result, operation if block_given?
12730
- return result
12731
12631
  end
12732
12632
  rescue ::Gapic::Rest::Error => e
12733
12633
  raise ::Google::Cloud::Error.from_error(e)
@@ -12809,7 +12709,6 @@ module Google
12809
12709
 
12810
12710
  @analytics_admin_service_stub.get_subproperty_event_filter request, options do |result, operation|
12811
12711
  yield result, operation if block_given?
12812
- return result
12813
12712
  end
12814
12713
  rescue ::Gapic::Rest::Error => e
12815
12714
  raise ::Google::Cloud::Error.from_error(e)
@@ -12906,7 +12805,7 @@ module Google
12906
12805
  @analytics_admin_service_stub.list_subproperty_event_filters request, options do |result, operation|
12907
12806
  result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_subproperty_event_filters, "subproperty_event_filters", request, result, options
12908
12807
  yield result, operation if block_given?
12909
- return result
12808
+ throw :response, result
12910
12809
  end
12911
12810
  rescue ::Gapic::Rest::Error => e
12912
12811
  raise ::Google::Cloud::Error.from_error(e)
@@ -12990,7 +12889,6 @@ module Google
12990
12889
 
12991
12890
  @analytics_admin_service_stub.update_subproperty_event_filter request, options do |result, operation|
12992
12891
  yield result, operation if block_given?
12993
- return result
12994
12892
  end
12995
12893
  rescue ::Gapic::Rest::Error => e
12996
12894
  raise ::Google::Cloud::Error.from_error(e)
@@ -13072,7 +12970,6 @@ module Google
13072
12970
 
13073
12971
  @analytics_admin_service_stub.delete_subproperty_event_filter request, options do |result, operation|
13074
12972
  yield result, operation if block_given?
13075
- return result
13076
12973
  end
13077
12974
  rescue ::Gapic::Rest::Error => e
13078
12975
  raise ::Google::Cloud::Error.from_error(e)
@@ -13152,6 +13049,11 @@ module Google
13152
13049
  # default endpoint URL. The default value of nil uses the environment
13153
13050
  # universe (usually the default "googleapis.com" universe).
13154
13051
  # @return [::String,nil]
13052
+ # @!attribute [rw] logger
13053
+ # A custom logger to use for request/response debug logging, or the value
13054
+ # `:default` (the default) to construct a default logger, or `nil` to
13055
+ # explicitly disable logging.
13056
+ # @return [::Logger,:default,nil]
13155
13057
  #
13156
13058
  class Configuration
13157
13059
  extend ::Gapic::Config
@@ -13173,6 +13075,7 @@ module Google
13173
13075
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
13174
13076
  config_attr :quota_project, nil, ::String, nil
13175
13077
  config_attr :universe_domain, nil, ::String, nil
13078
+ config_attr :logger, :default, ::Logger, nil, :default
13176
13079
 
13177
13080
  # @private
13178
13081
  def initialize parent_config = nil