google-analytics-data-v1beta 0.14.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ef576e347f3d530bb2ac67a9c5bdae88cf3200436599cb43b7e460a678e9dfa
4
- data.tar.gz: 353c27184997952629510a79516eb942db1118b967581c96e328d97e5ff600bf
3
+ metadata.gz: 7add186e1fd63d6753eb37a0ace27c0a1ec922a9e73b53d71b22f382e5c0b24c
4
+ data.tar.gz: 53717f3676a98f692b51231321e33037c17cadd3135c3d9fe5e5cfd4e7628c1c
5
5
  SHA512:
6
- metadata.gz: 11efcf074e943437b9dfed215fe50463bbc4101f1a8f48cd40f85599d127ceedf2eb1b73e948206eae3d46e7155423267d710a4820b0735f61570a21bddd0837
7
- data.tar.gz: 8e51711acaaa3bd981b78e9fc22ea510190c6723430a71f98f9aaa6e353b535189b8ff5b9a735a914c70a5b79108f8c6404b885a1ce57b49409a4cc56f83d730
6
+ metadata.gz: 238f675f258b98fdb8042bc94399e8b4e54fef23111cf326b36bb0a7cc43ac685e67d4a804e0f60359c2a8b1148d7147fb0d7efd80c8df38fb2d01723bde8555
7
+ data.tar.gz: 52eb8ce3a9d4ec21856f5d32391365f6ac845e289332119674934cca5710d0d6c90e4c653273cab18106938313d11da633640156559a1332aa9f1a28f2d14a51
data/README.md CHANGED
@@ -43,40 +43,50 @@ for class and method documentation.
43
43
  See also the [Product Documentation](https://developers.google.com/analytics/devguides/reporting/data/v1)
44
44
  for general usage information.
45
45
 
46
- ## Enabling Logging
47
-
48
- To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
- that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
- and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
-
54
- Configuring a Ruby stdlib logger:
46
+ ## Debug Logging
47
+
48
+ This library comes with opt-in Debug Logging that can help you troubleshoot
49
+ your application's integration with the API. When logging is activated, key
50
+ events such as requests and responses, along with data payloads and metadata
51
+ such as headers and client configuration, are logged to the standard error
52
+ stream.
53
+
54
+ **WARNING:** Client Library Debug Logging includes your data payloads in
55
+ plaintext, which could include sensitive data such as PII for yourself or your
56
+ customers, private keys, or other security data that could be compromising if
57
+ leaked. Always practice good data hygiene with your application logs, and follow
58
+ the principle of least access. Google also recommends that Client Library Debug
59
+ Logging be enabled only temporarily during active debugging, and not used
60
+ permanently in production.
61
+
62
+ To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
63
+ to the value `all`. Alternatively, you can set the value to a comma-delimited
64
+ list of client library gem names. This will select the default logging behavior,
65
+ which writes logs to the standard error stream. On a local workstation, this may
66
+ result in logs appearing on the console. When running on a Google Cloud hosting
67
+ service such as [Google Cloud Run](https://cloud.google.com/run), this generally
68
+ results in logs appearing alongside your application logs in the
69
+ [Google Cloud Logging](https://cloud.google.com/logging/) service.
70
+
71
+ You can customize logging by modifying the `logger` configuration when
72
+ constructing a client object. For example:
55
73
 
56
74
  ```ruby
75
+ require "google/analytics/data/v1beta"
57
76
  require "logger"
58
77
 
59
- module MyLogger
60
- LOGGER = Logger.new $stderr, level: Logger::WARN
61
- def logger
62
- LOGGER
63
- end
64
- end
65
-
66
- # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
67
- module GRPC
68
- extend MyLogger
78
+ client = ::Google::Analytics::Data::V1beta::AnalyticsData::Client.new do |config|
79
+ config.logger = Logger.new "my-app.log"
69
80
  end
70
81
  ```
71
82
 
72
-
73
83
  ## Google Cloud Samples
74
84
 
75
85
  To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
86
 
77
87
  ## Supported Ruby Versions
78
88
 
79
- This library is supported on Ruby 2.7+.
89
+ This library is supported on Ruby 3.0+.
80
90
 
81
91
  Google provides official support for Ruby versions that are actively supported
82
92
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -183,8 +183,19 @@ module Google
183
183
  universe_domain: @config.universe_domain,
184
184
  channel_args: @config.channel_args,
185
185
  interceptors: @config.interceptors,
186
- channel_pool_config: @config.channel_pool
186
+ channel_pool_config: @config.channel_pool,
187
+ logger: @config.logger
187
188
  )
189
+
190
+ @analytics_data_stub.stub_logger&.info do |entry|
191
+ entry.set_system_name
192
+ entry.set_service
193
+ entry.message = "Created client for #{entry.service}"
194
+ entry.set_credentials_fields credentials
195
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
196
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
197
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
198
+ end
188
199
  end
189
200
 
190
201
  ##
@@ -194,6 +205,15 @@ module Google
194
205
  #
195
206
  attr_reader :operations_client
196
207
 
208
+ ##
209
+ # The logger used for request/response debug logging.
210
+ #
211
+ # @return [Logger]
212
+ #
213
+ def logger
214
+ @analytics_data_stub.logger
215
+ end
216
+
197
217
  # Service calls
198
218
 
199
219
  ##
@@ -367,7 +387,6 @@ module Google
367
387
 
368
388
  @analytics_data_stub.call_rpc :run_report, request, options: options do |response, operation|
369
389
  yield response, operation if block_given?
370
- return response
371
390
  end
372
391
  rescue ::GRPC::BadStatus => e
373
392
  raise ::Google::Cloud::Error.from_error(e)
@@ -513,7 +532,6 @@ module Google
513
532
 
514
533
  @analytics_data_stub.call_rpc :run_pivot_report, request, options: options do |response, operation|
515
534
  yield response, operation if block_given?
516
- return response
517
535
  end
518
536
  rescue ::GRPC::BadStatus => e
519
537
  raise ::Google::Cloud::Error.from_error(e)
@@ -611,7 +629,6 @@ module Google
611
629
 
612
630
  @analytics_data_stub.call_rpc :batch_run_reports, request, options: options do |response, operation|
613
631
  yield response, operation if block_given?
614
- return response
615
632
  end
616
633
  rescue ::GRPC::BadStatus => e
617
634
  raise ::Google::Cloud::Error.from_error(e)
@@ -709,7 +726,6 @@ module Google
709
726
 
710
727
  @analytics_data_stub.call_rpc :batch_run_pivot_reports, request, options: options do |response, operation|
711
728
  yield response, operation if block_given?
712
- return response
713
729
  end
714
730
  rescue ::GRPC::BadStatus => e
715
731
  raise ::Google::Cloud::Error.from_error(e)
@@ -814,7 +830,6 @@ module Google
814
830
 
815
831
  @analytics_data_stub.call_rpc :get_metadata, request, options: options do |response, operation|
816
832
  yield response, operation if block_given?
817
- return response
818
833
  end
819
834
  rescue ::GRPC::BadStatus => e
820
835
  raise ::Google::Cloud::Error.from_error(e)
@@ -947,7 +962,6 @@ module Google
947
962
 
948
963
  @analytics_data_stub.call_rpc :run_realtime_report, request, options: options do |response, operation|
949
964
  yield response, operation if block_given?
950
- return response
951
965
  end
952
966
  rescue ::GRPC::BadStatus => e
953
967
  raise ::Google::Cloud::Error.from_error(e)
@@ -1063,7 +1077,6 @@ module Google
1063
1077
 
1064
1078
  @analytics_data_stub.call_rpc :check_compatibility, request, options: options do |response, operation|
1065
1079
  yield response, operation if block_given?
1066
- return response
1067
1080
  end
1068
1081
  rescue ::GRPC::BadStatus => e
1069
1082
  raise ::Google::Cloud::Error.from_error(e)
@@ -1184,7 +1197,7 @@ module Google
1184
1197
  @analytics_data_stub.call_rpc :create_audience_export, request, options: options do |response, operation|
1185
1198
  response = ::Gapic::Operation.new response, @operations_client, options: options
1186
1199
  yield response, operation if block_given?
1187
- return response
1200
+ throw :response, response
1188
1201
  end
1189
1202
  rescue ::GRPC::BadStatus => e
1190
1203
  raise ::Google::Cloud::Error.from_error(e)
@@ -1310,7 +1323,6 @@ module Google
1310
1323
 
1311
1324
  @analytics_data_stub.call_rpc :query_audience_export, request, options: options do |response, operation|
1312
1325
  yield response, operation if block_given?
1313
- return response
1314
1326
  end
1315
1327
  rescue ::GRPC::BadStatus => e
1316
1328
  raise ::Google::Cloud::Error.from_error(e)
@@ -1408,7 +1420,6 @@ module Google
1408
1420
 
1409
1421
  @analytics_data_stub.call_rpc :get_audience_export, request, options: options do |response, operation|
1410
1422
  yield response, operation if block_given?
1411
- return response
1412
1423
  end
1413
1424
  rescue ::GRPC::BadStatus => e
1414
1425
  raise ::Google::Cloud::Error.from_error(e)
@@ -1525,7 +1536,7 @@ module Google
1525
1536
  @analytics_data_stub.call_rpc :list_audience_exports, request, options: options do |response, operation|
1526
1537
  response = ::Gapic::PagedEnumerable.new @analytics_data_stub, :list_audience_exports, request, response, operation, options
1527
1538
  yield response, operation if block_given?
1528
- return response
1539
+ throw :response, response
1529
1540
  end
1530
1541
  rescue ::GRPC::BadStatus => e
1531
1542
  raise ::Google::Cloud::Error.from_error(e)
@@ -1575,6 +1586,13 @@ module Google
1575
1586
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1576
1587
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1577
1588
  # * (`nil`) indicating no credentials
1589
+ #
1590
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
1591
+ # external source for authentication to Google Cloud, you must validate it before
1592
+ # providing it to a Google API client library. Providing an unvalidated credential
1593
+ # configuration to Google APIs can compromise the security of your systems and data.
1594
+ # For more information, refer to [Validate credential configurations from external
1595
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
1578
1596
  # @return [::Object]
1579
1597
  # @!attribute [rw] scope
1580
1598
  # The OAuth scopes
@@ -1614,6 +1632,11 @@ module Google
1614
1632
  # default endpoint URL. The default value of nil uses the environment
1615
1633
  # universe (usually the default "googleapis.com" universe).
1616
1634
  # @return [::String,nil]
1635
+ # @!attribute [rw] logger
1636
+ # A custom logger to use for request/response debug logging, or the value
1637
+ # `:default` (the default) to construct a default logger, or `nil` to
1638
+ # explicitly disable logging.
1639
+ # @return [::Logger,:default,nil]
1617
1640
  #
1618
1641
  class Configuration
1619
1642
  extend ::Gapic::Config
@@ -1638,6 +1661,7 @@ module Google
1638
1661
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1639
1662
  config_attr :quota_project, nil, ::String, nil
1640
1663
  config_attr :universe_domain, nil, ::String, nil
1664
+ config_attr :logger, :default, ::Logger, nil, :default
1641
1665
 
1642
1666
  # @private
1643
1667
  def initialize parent_config = nil
@@ -213,7 +213,7 @@ module Google
213
213
  wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client }
214
214
  response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation
215
215
  yield response, operation if block_given?
216
- return response
216
+ throw :response, response
217
217
  end
218
218
  rescue ::GRPC::BadStatus => e
219
219
  raise ::Google::Cloud::Error.from_error(e)
@@ -309,7 +309,7 @@ module Google
309
309
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
310
310
  response = ::Gapic::Operation.new response, @operations_client, options: options
311
311
  yield response, operation if block_given?
312
- return response
312
+ throw :response, response
313
313
  end
314
314
  rescue ::GRPC::BadStatus => e
315
315
  raise ::Google::Cloud::Error.from_error(e)
@@ -398,7 +398,6 @@ module Google
398
398
 
399
399
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
400
400
  yield response, operation if block_given?
401
- return response
402
401
  end
403
402
  rescue ::GRPC::BadStatus => e
404
403
  raise ::Google::Cloud::Error.from_error(e)
@@ -494,7 +493,6 @@ module Google
494
493
 
495
494
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
496
495
  yield response, operation if block_given?
497
- return response
498
496
  end
499
497
  rescue ::GRPC::BadStatus => e
500
498
  raise ::Google::Cloud::Error.from_error(e)
@@ -592,7 +590,7 @@ module Google
592
590
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
593
591
  response = ::Gapic::Operation.new response, @operations_client, options: options
594
592
  yield response, operation if block_given?
595
- return response
593
+ throw :response, response
596
594
  end
597
595
  rescue ::GRPC::BadStatus => e
598
596
  raise ::Google::Cloud::Error.from_error(e)
@@ -642,6 +640,13 @@ module Google
642
640
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
643
641
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
644
642
  # * (`nil`) indicating no credentials
643
+ #
644
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
645
+ # external source for authentication to Google Cloud, you must validate it before
646
+ # providing it to a Google API client library. Providing an unvalidated credential
647
+ # configuration to Google APIs can compromise the security of your systems and data.
648
+ # For more information, refer to [Validate credential configurations from external
649
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
645
650
  # @return [::Object]
646
651
  # @!attribute [rw] scope
647
652
  # The OAuth scopes
@@ -681,6 +686,11 @@ module Google
681
686
  # default endpoint URL. The default value of nil uses the environment
682
687
  # universe (usually the default "googleapis.com" universe).
683
688
  # @return [::String,nil]
689
+ # @!attribute [rw] logger
690
+ # A custom logger to use for request/response debug logging, or the value
691
+ # `:default` (the default) to construct a default logger, or `nil` to
692
+ # explicitly disable logging.
693
+ # @return [::Logger,:default,nil]
684
694
  #
685
695
  class Configuration
686
696
  extend ::Gapic::Config
@@ -705,6 +715,7 @@ module Google
705
715
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
706
716
  config_attr :quota_project, nil, ::String, nil
707
717
  config_attr :universe_domain, nil, ::String, nil
718
+ config_attr :logger, :default, ::Logger, nil, :default
708
719
 
709
720
  # @private
710
721
  def initialize parent_config = nil
@@ -176,8 +176,19 @@ module Google
176
176
  endpoint: @config.endpoint,
177
177
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
178
178
  universe_domain: @config.universe_domain,
179
- credentials: credentials
179
+ credentials: credentials,
180
+ logger: @config.logger
180
181
  )
182
+
183
+ @analytics_data_stub.logger(stub: true)&.info do |entry|
184
+ entry.set_system_name
185
+ entry.set_service
186
+ entry.message = "Created client for #{entry.service}"
187
+ entry.set_credentials_fields credentials
188
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
189
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
190
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
191
+ end
181
192
  end
182
193
 
183
194
  ##
@@ -187,6 +198,15 @@ module Google
187
198
  #
188
199
  attr_reader :operations_client
189
200
 
201
+ ##
202
+ # The logger used for request/response debug logging.
203
+ #
204
+ # @return [Logger]
205
+ #
206
+ def logger
207
+ @analytics_data_stub.logger
208
+ end
209
+
190
210
  # Service calls
191
211
 
192
212
  ##
@@ -353,7 +373,6 @@ module Google
353
373
 
354
374
  @analytics_data_stub.run_report request, options do |result, operation|
355
375
  yield result, operation if block_given?
356
- return result
357
376
  end
358
377
  rescue ::Gapic::Rest::Error => e
359
378
  raise ::Google::Cloud::Error.from_error(e)
@@ -492,7 +511,6 @@ module Google
492
511
 
493
512
  @analytics_data_stub.run_pivot_report request, options do |result, operation|
494
513
  yield result, operation if block_given?
495
- return result
496
514
  end
497
515
  rescue ::Gapic::Rest::Error => e
498
516
  raise ::Google::Cloud::Error.from_error(e)
@@ -583,7 +601,6 @@ module Google
583
601
 
584
602
  @analytics_data_stub.batch_run_reports request, options do |result, operation|
585
603
  yield result, operation if block_given?
586
- return result
587
604
  end
588
605
  rescue ::Gapic::Rest::Error => e
589
606
  raise ::Google::Cloud::Error.from_error(e)
@@ -674,7 +691,6 @@ module Google
674
691
 
675
692
  @analytics_data_stub.batch_run_pivot_reports request, options do |result, operation|
676
693
  yield result, operation if block_given?
677
- return result
678
694
  end
679
695
  rescue ::Gapic::Rest::Error => e
680
696
  raise ::Google::Cloud::Error.from_error(e)
@@ -772,7 +788,6 @@ module Google
772
788
 
773
789
  @analytics_data_stub.get_metadata request, options do |result, operation|
774
790
  yield result, operation if block_given?
775
- return result
776
791
  end
777
792
  rescue ::Gapic::Rest::Error => e
778
793
  raise ::Google::Cloud::Error.from_error(e)
@@ -898,7 +913,6 @@ module Google
898
913
 
899
914
  @analytics_data_stub.run_realtime_report request, options do |result, operation|
900
915
  yield result, operation if block_given?
901
- return result
902
916
  end
903
917
  rescue ::Gapic::Rest::Error => e
904
918
  raise ::Google::Cloud::Error.from_error(e)
@@ -1007,7 +1021,6 @@ module Google
1007
1021
 
1008
1022
  @analytics_data_stub.check_compatibility request, options do |result, operation|
1009
1023
  yield result, operation if block_given?
1010
- return result
1011
1024
  end
1012
1025
  rescue ::Gapic::Rest::Error => e
1013
1026
  raise ::Google::Cloud::Error.from_error(e)
@@ -1121,7 +1134,7 @@ module Google
1121
1134
  @analytics_data_stub.create_audience_export request, options do |result, operation|
1122
1135
  result = ::Gapic::Operation.new result, @operations_client, options: options
1123
1136
  yield result, operation if block_given?
1124
- return result
1137
+ throw :response, result
1125
1138
  end
1126
1139
  rescue ::Gapic::Rest::Error => e
1127
1140
  raise ::Google::Cloud::Error.from_error(e)
@@ -1240,7 +1253,6 @@ module Google
1240
1253
 
1241
1254
  @analytics_data_stub.query_audience_export request, options do |result, operation|
1242
1255
  yield result, operation if block_given?
1243
- return result
1244
1256
  end
1245
1257
  rescue ::Gapic::Rest::Error => e
1246
1258
  raise ::Google::Cloud::Error.from_error(e)
@@ -1331,7 +1343,6 @@ module Google
1331
1343
 
1332
1344
  @analytics_data_stub.get_audience_export request, options do |result, operation|
1333
1345
  yield result, operation if block_given?
1334
- return result
1335
1346
  end
1336
1347
  rescue ::Gapic::Rest::Error => e
1337
1348
  raise ::Google::Cloud::Error.from_error(e)
@@ -1441,7 +1452,7 @@ module Google
1441
1452
  @analytics_data_stub.list_audience_exports request, options do |result, operation|
1442
1453
  result = ::Gapic::Rest::PagedEnumerable.new @analytics_data_stub, :list_audience_exports, "audience_exports", request, result, options
1443
1454
  yield result, operation if block_given?
1444
- return result
1455
+ throw :response, result
1445
1456
  end
1446
1457
  rescue ::Gapic::Rest::Error => e
1447
1458
  raise ::Google::Cloud::Error.from_error(e)
@@ -1489,6 +1500,13 @@ module Google
1489
1500
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1490
1501
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1491
1502
  # * (`nil`) indicating no credentials
1503
+ #
1504
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
1505
+ # external source for authentication to Google Cloud, you must validate it before
1506
+ # providing it to a Google API client library. Providing an unvalidated credential
1507
+ # configuration to Google APIs can compromise the security of your systems and data.
1508
+ # For more information, refer to [Validate credential configurations from external
1509
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
1492
1510
  # @return [::Object]
1493
1511
  # @!attribute [rw] scope
1494
1512
  # The OAuth scopes
@@ -1521,6 +1539,11 @@ module Google
1521
1539
  # default endpoint URL. The default value of nil uses the environment
1522
1540
  # universe (usually the default "googleapis.com" universe).
1523
1541
  # @return [::String,nil]
1542
+ # @!attribute [rw] logger
1543
+ # A custom logger to use for request/response debug logging, or the value
1544
+ # `:default` (the default) to construct a default logger, or `nil` to
1545
+ # explicitly disable logging.
1546
+ # @return [::Logger,:default,nil]
1524
1547
  #
1525
1548
  class Configuration
1526
1549
  extend ::Gapic::Config
@@ -1542,6 +1565,7 @@ module Google
1542
1565
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1543
1566
  config_attr :quota_project, nil, ::String, nil
1544
1567
  config_attr :universe_domain, nil, ::String, nil
1568
+ config_attr :logger, :default, ::Logger, nil, :default
1545
1569
 
1546
1570
  # @private
1547
1571
  def initialize parent_config = nil
@@ -196,7 +196,7 @@ module Google
196
196
  @operations_stub.list_operations request, options do |result, operation|
197
197
  result = ::Gapic::Rest::PagedEnumerable.new @operations_stub, :list_operations, "operations", request, result, options
198
198
  yield result, operation if block_given?
199
- return result
199
+ throw :response, result
200
200
  end
201
201
  rescue ::Gapic::Rest::Error => e
202
202
  raise ::Google::Cloud::Error.from_error(e)
@@ -285,7 +285,7 @@ module Google
285
285
  @operations_stub.get_operation request, options do |result, operation|
286
286
  result = ::Gapic::Operation.new result, @operations_client, options: options
287
287
  yield result, operation if block_given?
288
- return result
288
+ throw :response, result
289
289
  end
290
290
  rescue ::Gapic::Rest::Error => e
291
291
  raise ::Google::Cloud::Error.from_error(e)
@@ -367,7 +367,6 @@ module Google
367
367
 
368
368
  @operations_stub.delete_operation request, options do |result, operation|
369
369
  yield result, operation if block_given?
370
- return result
371
370
  end
372
371
  rescue ::Gapic::Rest::Error => e
373
372
  raise ::Google::Cloud::Error.from_error(e)
@@ -456,7 +455,6 @@ module Google
456
455
 
457
456
  @operations_stub.cancel_operation request, options do |result, operation|
458
457
  yield result, operation if block_given?
459
- return result
460
458
  end
461
459
  rescue ::Gapic::Rest::Error => e
462
460
  raise ::Google::Cloud::Error.from_error(e)
@@ -504,6 +502,13 @@ module Google
504
502
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
505
503
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
506
504
  # * (`nil`) indicating no credentials
505
+ #
506
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
507
+ # external source for authentication to Google Cloud, you must validate it before
508
+ # providing it to a Google API client library. Providing an unvalidated credential
509
+ # configuration to Google APIs can compromise the security of your systems and data.
510
+ # For more information, refer to [Validate credential configurations from external
511
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
507
512
  # @return [::Object]
508
513
  # @!attribute [rw] scope
509
514
  # The OAuth scopes
@@ -536,6 +541,11 @@ module Google
536
541
  # default endpoint URL. The default value of nil uses the environment
537
542
  # universe (usually the default "googleapis.com" universe).
538
543
  # @return [::String,nil]
544
+ # @!attribute [rw] logger
545
+ # A custom logger to use for request/response debug logging, or the value
546
+ # `:default` (the default) to construct a default logger, or `nil` to
547
+ # explicitly disable logging.
548
+ # @return [::Logger,:default,nil]
539
549
  #
540
550
  class Configuration
541
551
  extend ::Gapic::Config
@@ -557,6 +567,7 @@ module Google
557
567
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
558
568
  config_attr :quota_project, nil, ::String, nil
559
569
  config_attr :universe_domain, nil, ::String, nil
570
+ config_attr :logger, :default, ::Logger, nil, :default
560
571
 
561
572
  # @private
562
573
  def initialize parent_config = nil
@@ -676,16 +687,18 @@ module Google
676
687
 
677
688
  response = @client_stub.make_http_request(
678
689
  verb,
679
- uri: uri,
680
- body: body || "",
681
- params: query_string_params,
690
+ uri: uri,
691
+ body: body || "",
692
+ params: query_string_params,
693
+ method_name: "list_operations",
682
694
  options: options
683
695
  )
684
696
  operation = ::Gapic::Rest::TransportOperation.new response
685
697
  result = ::Google::Longrunning::ListOperationsResponse.decode_json response.body, ignore_unknown_fields: true
686
-
687
- yield result, operation if block_given?
688
- result
698
+ catch :response do
699
+ yield result, operation if block_given?
700
+ result
701
+ end
689
702
  end
690
703
 
691
704
  ##
@@ -714,16 +727,18 @@ module Google
714
727
 
715
728
  response = @client_stub.make_http_request(
716
729
  verb,
717
- uri: uri,
718
- body: body || "",
719
- params: query_string_params,
730
+ uri: uri,
731
+ body: body || "",
732
+ params: query_string_params,
733
+ method_name: "get_operation",
720
734
  options: options
721
735
  )
722
736
  operation = ::Gapic::Rest::TransportOperation.new response
723
737
  result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
724
-
725
- yield result, operation if block_given?
726
- result
738
+ catch :response do
739
+ yield result, operation if block_given?
740
+ result
741
+ end
727
742
  end
728
743
 
729
744
  ##
@@ -752,16 +767,18 @@ module Google
752
767
 
753
768
  response = @client_stub.make_http_request(
754
769
  verb,
755
- uri: uri,
756
- body: body || "",
757
- params: query_string_params,
770
+ uri: uri,
771
+ body: body || "",
772
+ params: query_string_params,
773
+ method_name: "delete_operation",
758
774
  options: options
759
775
  )
760
776
  operation = ::Gapic::Rest::TransportOperation.new response
761
777
  result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
762
-
763
- yield result, operation if block_given?
764
- result
778
+ catch :response do
779
+ yield result, operation if block_given?
780
+ result
781
+ end
765
782
  end
766
783
 
767
784
  ##
@@ -790,16 +807,18 @@ module Google
790
807
 
791
808
  response = @client_stub.make_http_request(
792
809
  verb,
793
- uri: uri,
794
- body: body || "",
795
- params: query_string_params,
810
+ uri: uri,
811
+ body: body || "",
812
+ params: query_string_params,
813
+ method_name: "cancel_operation",
796
814
  options: options
797
815
  )
798
816
  operation = ::Gapic::Rest::TransportOperation.new response
799
817
  result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
800
-
801
- yield result, operation if block_given?
802
- result
818
+ catch :response do
819
+ yield result, operation if block_given?
820
+ result
821
+ end
803
822
  end
804
823
 
805
824
  ##
@@ -30,7 +30,8 @@ module Google
30
30
  # including transcoding, making the REST call, and deserialing the response.
31
31
  #
32
32
  class ServiceStub
33
- def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
33
+ # @private
34
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
34
35
  # These require statements are intentionally placed here to initialize
35
36
  # the REST modules only when it's required.
36
37
  require "gapic/rest"
@@ -40,7 +41,9 @@ module Google
40
41
  universe_domain: universe_domain,
41
42
  credentials: credentials,
42
43
  numeric_enums: true,
43
- raise_faraday_errors: false
44
+ service_name: self.class,
45
+ raise_faraday_errors: false,
46
+ logger: logger
44
47
  end
45
48
 
46
49
  ##
@@ -61,6 +64,15 @@ module Google
61
64
  @client_stub.endpoint
62
65
  end
63
66
 
67
+ ##
68
+ # The logger used for request/response debug logging.
69
+ #
70
+ # @return [Logger]
71
+ #
72
+ def logger stub: false
73
+ stub ? @client_stub.stub_logger : @client_stub.logger
74
+ end
75
+
64
76
  ##
65
77
  # Baseline implementation for the run_report REST call
66
78
  #
@@ -87,16 +99,18 @@ module Google
87
99
 
88
100
  response = @client_stub.make_http_request(
89
101
  verb,
90
- uri: uri,
91
- body: body || "",
92
- params: query_string_params,
102
+ uri: uri,
103
+ body: body || "",
104
+ params: query_string_params,
105
+ method_name: "run_report",
93
106
  options: options
94
107
  )
95
108
  operation = ::Gapic::Rest::TransportOperation.new response
96
109
  result = ::Google::Analytics::Data::V1beta::RunReportResponse.decode_json response.body, ignore_unknown_fields: true
97
-
98
- yield result, operation if block_given?
99
- result
110
+ catch :response do
111
+ yield result, operation if block_given?
112
+ result
113
+ end
100
114
  end
101
115
 
102
116
  ##
@@ -125,16 +139,18 @@ module Google
125
139
 
126
140
  response = @client_stub.make_http_request(
127
141
  verb,
128
- uri: uri,
129
- body: body || "",
130
- params: query_string_params,
142
+ uri: uri,
143
+ body: body || "",
144
+ params: query_string_params,
145
+ method_name: "run_pivot_report",
131
146
  options: options
132
147
  )
133
148
  operation = ::Gapic::Rest::TransportOperation.new response
134
149
  result = ::Google::Analytics::Data::V1beta::RunPivotReportResponse.decode_json response.body, ignore_unknown_fields: true
135
-
136
- yield result, operation if block_given?
137
- result
150
+ catch :response do
151
+ yield result, operation if block_given?
152
+ result
153
+ end
138
154
  end
139
155
 
140
156
  ##
@@ -163,16 +179,18 @@ module Google
163
179
 
164
180
  response = @client_stub.make_http_request(
165
181
  verb,
166
- uri: uri,
167
- body: body || "",
168
- params: query_string_params,
182
+ uri: uri,
183
+ body: body || "",
184
+ params: query_string_params,
185
+ method_name: "batch_run_reports",
169
186
  options: options
170
187
  )
171
188
  operation = ::Gapic::Rest::TransportOperation.new response
172
189
  result = ::Google::Analytics::Data::V1beta::BatchRunReportsResponse.decode_json response.body, ignore_unknown_fields: true
173
-
174
- yield result, operation if block_given?
175
- result
190
+ catch :response do
191
+ yield result, operation if block_given?
192
+ result
193
+ end
176
194
  end
177
195
 
178
196
  ##
@@ -201,16 +219,18 @@ module Google
201
219
 
202
220
  response = @client_stub.make_http_request(
203
221
  verb,
204
- uri: uri,
205
- body: body || "",
206
- params: query_string_params,
222
+ uri: uri,
223
+ body: body || "",
224
+ params: query_string_params,
225
+ method_name: "batch_run_pivot_reports",
207
226
  options: options
208
227
  )
209
228
  operation = ::Gapic::Rest::TransportOperation.new response
210
229
  result = ::Google::Analytics::Data::V1beta::BatchRunPivotReportsResponse.decode_json response.body, ignore_unknown_fields: true
211
-
212
- yield result, operation if block_given?
213
- result
230
+ catch :response do
231
+ yield result, operation if block_given?
232
+ result
233
+ end
214
234
  end
215
235
 
216
236
  ##
@@ -239,16 +259,18 @@ module Google
239
259
 
240
260
  response = @client_stub.make_http_request(
241
261
  verb,
242
- uri: uri,
243
- body: body || "",
244
- params: query_string_params,
262
+ uri: uri,
263
+ body: body || "",
264
+ params: query_string_params,
265
+ method_name: "get_metadata",
245
266
  options: options
246
267
  )
247
268
  operation = ::Gapic::Rest::TransportOperation.new response
248
269
  result = ::Google::Analytics::Data::V1beta::Metadata.decode_json response.body, ignore_unknown_fields: true
249
-
250
- yield result, operation if block_given?
251
- result
270
+ catch :response do
271
+ yield result, operation if block_given?
272
+ result
273
+ end
252
274
  end
253
275
 
254
276
  ##
@@ -277,16 +299,18 @@ module Google
277
299
 
278
300
  response = @client_stub.make_http_request(
279
301
  verb,
280
- uri: uri,
281
- body: body || "",
282
- params: query_string_params,
302
+ uri: uri,
303
+ body: body || "",
304
+ params: query_string_params,
305
+ method_name: "run_realtime_report",
283
306
  options: options
284
307
  )
285
308
  operation = ::Gapic::Rest::TransportOperation.new response
286
309
  result = ::Google::Analytics::Data::V1beta::RunRealtimeReportResponse.decode_json response.body, ignore_unknown_fields: true
287
-
288
- yield result, operation if block_given?
289
- result
310
+ catch :response do
311
+ yield result, operation if block_given?
312
+ result
313
+ end
290
314
  end
291
315
 
292
316
  ##
@@ -315,16 +339,18 @@ module Google
315
339
 
316
340
  response = @client_stub.make_http_request(
317
341
  verb,
318
- uri: uri,
319
- body: body || "",
320
- params: query_string_params,
342
+ uri: uri,
343
+ body: body || "",
344
+ params: query_string_params,
345
+ method_name: "check_compatibility",
321
346
  options: options
322
347
  )
323
348
  operation = ::Gapic::Rest::TransportOperation.new response
324
349
  result = ::Google::Analytics::Data::V1beta::CheckCompatibilityResponse.decode_json response.body, ignore_unknown_fields: true
325
-
326
- yield result, operation if block_given?
327
- result
350
+ catch :response do
351
+ yield result, operation if block_given?
352
+ result
353
+ end
328
354
  end
329
355
 
330
356
  ##
@@ -353,16 +379,18 @@ module Google
353
379
 
354
380
  response = @client_stub.make_http_request(
355
381
  verb,
356
- uri: uri,
357
- body: body || "",
358
- params: query_string_params,
382
+ uri: uri,
383
+ body: body || "",
384
+ params: query_string_params,
385
+ method_name: "create_audience_export",
359
386
  options: options
360
387
  )
361
388
  operation = ::Gapic::Rest::TransportOperation.new response
362
389
  result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
363
-
364
- yield result, operation if block_given?
365
- result
390
+ catch :response do
391
+ yield result, operation if block_given?
392
+ result
393
+ end
366
394
  end
367
395
 
368
396
  ##
@@ -391,16 +419,18 @@ module Google
391
419
 
392
420
  response = @client_stub.make_http_request(
393
421
  verb,
394
- uri: uri,
395
- body: body || "",
396
- params: query_string_params,
422
+ uri: uri,
423
+ body: body || "",
424
+ params: query_string_params,
425
+ method_name: "query_audience_export",
397
426
  options: options
398
427
  )
399
428
  operation = ::Gapic::Rest::TransportOperation.new response
400
429
  result = ::Google::Analytics::Data::V1beta::QueryAudienceExportResponse.decode_json response.body, ignore_unknown_fields: true
401
-
402
- yield result, operation if block_given?
403
- result
430
+ catch :response do
431
+ yield result, operation if block_given?
432
+ result
433
+ end
404
434
  end
405
435
 
406
436
  ##
@@ -429,16 +459,18 @@ module Google
429
459
 
430
460
  response = @client_stub.make_http_request(
431
461
  verb,
432
- uri: uri,
433
- body: body || "",
434
- params: query_string_params,
462
+ uri: uri,
463
+ body: body || "",
464
+ params: query_string_params,
465
+ method_name: "get_audience_export",
435
466
  options: options
436
467
  )
437
468
  operation = ::Gapic::Rest::TransportOperation.new response
438
469
  result = ::Google::Analytics::Data::V1beta::AudienceExport.decode_json response.body, ignore_unknown_fields: true
439
-
440
- yield result, operation if block_given?
441
- result
470
+ catch :response do
471
+ yield result, operation if block_given?
472
+ result
473
+ end
442
474
  end
443
475
 
444
476
  ##
@@ -467,16 +499,18 @@ module Google
467
499
 
468
500
  response = @client_stub.make_http_request(
469
501
  verb,
470
- uri: uri,
471
- body: body || "",
472
- params: query_string_params,
502
+ uri: uri,
503
+ body: body || "",
504
+ params: query_string_params,
505
+ method_name: "list_audience_exports",
473
506
  options: options
474
507
  )
475
508
  operation = ::Gapic::Rest::TransportOperation.new response
476
509
  result = ::Google::Analytics::Data::V1beta::ListAudienceExportsResponse.decode_json response.body, ignore_unknown_fields: true
477
-
478
- yield result, operation if block_given?
479
- result
510
+ catch :response do
511
+ yield result, operation if block_given?
512
+ result
513
+ end
480
514
  end
481
515
 
482
516
  ##
@@ -21,7 +21,7 @@ module Google
21
21
  module Analytics
22
22
  module Data
23
23
  module V1beta
24
- VERSION = "0.14.0"
24
+ VERSION = "0.16.0"
25
25
  end
26
26
  end
27
27
  end
@@ -123,13 +123,19 @@ module Google
123
123
  # @!attribute [rw] lower_case
124
124
  # @return [::Google::Analytics::Data::V1beta::DimensionExpression::CaseExpression]
125
125
  # Used to convert a dimension value to lower case.
126
+ #
127
+ # Note: The following fields are mutually exclusive: `lower_case`, `upper_case`, `concatenate`. If a field in that set is populated, all other fields in the set will automatically be cleared.
126
128
  # @!attribute [rw] upper_case
127
129
  # @return [::Google::Analytics::Data::V1beta::DimensionExpression::CaseExpression]
128
130
  # Used to convert a dimension value to upper case.
131
+ #
132
+ # Note: The following fields are mutually exclusive: `upper_case`, `lower_case`, `concatenate`. If a field in that set is populated, all other fields in the set will automatically be cleared.
129
133
  # @!attribute [rw] concatenate
130
134
  # @return [::Google::Analytics::Data::V1beta::DimensionExpression::ConcatenateExpression]
131
135
  # Used to combine dimension values to a single dimension.
132
136
  # For example, dimension "country, city": concatenate(country, ", ", city).
137
+ #
138
+ # Note: The following fields are mutually exclusive: `concatenate`, `lower_case`, `upper_case`. If a field in that set is populated, all other fields in the set will automatically be cleared.
133
139
  class DimensionExpression
134
140
  include ::Google::Protobuf::MessageExts
135
141
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -214,10 +220,14 @@ module Google
214
220
  # @!attribute [rw] dimension_filter
215
221
  # @return [::Google::Analytics::Data::V1beta::FilterExpression]
216
222
  # A basic comparison.
223
+ #
224
+ # Note: The following fields are mutually exclusive: `dimension_filter`, `comparison`. If a field in that set is populated, all other fields in the set will automatically be cleared.
217
225
  # @!attribute [rw] comparison
218
226
  # @return [::String]
219
227
  # A saved comparison identified by the comparison's resource name.
220
228
  # For example, 'comparisons/1234'.
229
+ #
230
+ # Note: The following fields are mutually exclusive: `comparison`, `dimension_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared.
221
231
  class Comparison
222
232
  include ::Google::Protobuf::MessageExts
223
233
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -228,16 +238,24 @@ module Google
228
238
  # @!attribute [rw] and_group
229
239
  # @return [::Google::Analytics::Data::V1beta::FilterExpressionList]
230
240
  # The FilterExpressions in and_group have an AND relationship.
241
+ #
242
+ # Note: The following fields are mutually exclusive: `and_group`, `or_group`, `not_expression`, `filter`. If a field in that set is populated, all other fields in the set will automatically be cleared.
231
243
  # @!attribute [rw] or_group
232
244
  # @return [::Google::Analytics::Data::V1beta::FilterExpressionList]
233
245
  # The FilterExpressions in or_group have an OR relationship.
246
+ #
247
+ # Note: The following fields are mutually exclusive: `or_group`, `and_group`, `not_expression`, `filter`. If a field in that set is populated, all other fields in the set will automatically be cleared.
234
248
  # @!attribute [rw] not_expression
235
249
  # @return [::Google::Analytics::Data::V1beta::FilterExpression]
236
250
  # The FilterExpression is NOT of not_expression.
251
+ #
252
+ # Note: The following fields are mutually exclusive: `not_expression`, `and_group`, `or_group`, `filter`. If a field in that set is populated, all other fields in the set will automatically be cleared.
237
253
  # @!attribute [rw] filter
238
254
  # @return [::Google::Analytics::Data::V1beta::Filter]
239
255
  # A primitive filter. In the same FilterExpression, all of the filter's
240
256
  # field names need to be either all dimensions or all metrics.
257
+ #
258
+ # Note: The following fields are mutually exclusive: `filter`, `and_group`, `or_group`, `not_expression`. If a field in that set is populated, all other fields in the set will automatically be cleared.
241
259
  class FilterExpression
242
260
  include ::Google::Protobuf::MessageExts
243
261
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -264,18 +282,28 @@ module Google
264
282
  # @!attribute [rw] string_filter
265
283
  # @return [::Google::Analytics::Data::V1beta::Filter::StringFilter]
266
284
  # Strings related filter.
285
+ #
286
+ # Note: The following fields are mutually exclusive: `string_filter`, `in_list_filter`, `numeric_filter`, `between_filter`, `empty_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared.
267
287
  # @!attribute [rw] in_list_filter
268
288
  # @return [::Google::Analytics::Data::V1beta::Filter::InListFilter]
269
289
  # A filter for in list values.
290
+ #
291
+ # Note: The following fields are mutually exclusive: `in_list_filter`, `string_filter`, `numeric_filter`, `between_filter`, `empty_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared.
270
292
  # @!attribute [rw] numeric_filter
271
293
  # @return [::Google::Analytics::Data::V1beta::Filter::NumericFilter]
272
294
  # A filter for numeric or date values.
295
+ #
296
+ # Note: The following fields are mutually exclusive: `numeric_filter`, `string_filter`, `in_list_filter`, `between_filter`, `empty_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared.
273
297
  # @!attribute [rw] between_filter
274
298
  # @return [::Google::Analytics::Data::V1beta::Filter::BetweenFilter]
275
299
  # A filter for two values.
300
+ #
301
+ # Note: The following fields are mutually exclusive: `between_filter`, `string_filter`, `in_list_filter`, `numeric_filter`, `empty_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared.
276
302
  # @!attribute [rw] empty_filter
277
303
  # @return [::Google::Analytics::Data::V1beta::Filter::EmptyFilter]
278
304
  # A filter for empty values such as "(not set)" and "" values.
305
+ #
306
+ # Note: The following fields are mutually exclusive: `empty_filter`, `string_filter`, `in_list_filter`, `numeric_filter`, `between_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared.
279
307
  class Filter
280
308
  include ::Google::Protobuf::MessageExts
281
309
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -390,12 +418,18 @@ module Google
390
418
  # @!attribute [rw] metric
391
419
  # @return [::Google::Analytics::Data::V1beta::OrderBy::MetricOrderBy]
392
420
  # Sorts results by a metric's values.
421
+ #
422
+ # Note: The following fields are mutually exclusive: `metric`, `dimension`, `pivot`. If a field in that set is populated, all other fields in the set will automatically be cleared.
393
423
  # @!attribute [rw] dimension
394
424
  # @return [::Google::Analytics::Data::V1beta::OrderBy::DimensionOrderBy]
395
425
  # Sorts results by a dimension's values.
426
+ #
427
+ # Note: The following fields are mutually exclusive: `dimension`, `metric`, `pivot`. If a field in that set is populated, all other fields in the set will automatically be cleared.
396
428
  # @!attribute [rw] pivot
397
429
  # @return [::Google::Analytics::Data::V1beta::OrderBy::PivotOrderBy]
398
430
  # Sorts results by a metric's values within a pivot column group.
431
+ #
432
+ # Note: The following fields are mutually exclusive: `pivot`, `metric`, `dimension`. If a field in that set is populated, all other fields in the set will automatically be cleared.
399
433
  # @!attribute [rw] desc
400
434
  # @return [::Boolean]
401
435
  # If true, sorts by descending order.
@@ -901,9 +935,13 @@ module Google
901
935
  # @!attribute [rw] int64_value
902
936
  # @return [::Integer]
903
937
  # Integer value
938
+ #
939
+ # Note: The following fields are mutually exclusive: `int64_value`, `double_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
904
940
  # @!attribute [rw] double_value
905
941
  # @return [::Float]
906
942
  # Double value
943
+ #
944
+ # Note: The following fields are mutually exclusive: `double_value`, `int64_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
907
945
  class NumericValue
908
946
  include ::Google::Protobuf::MessageExts
909
947
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -306,9 +306,28 @@ module Google
306
306
  # @!attribute [rw] common
307
307
  # @return [::Google::Api::CommonLanguageSettings]
308
308
  # Some settings.
309
+ # @!attribute [rw] renamed_services
310
+ # @return [::Google::Protobuf::Map{::String => ::String}]
311
+ # Map of service names to renamed services. Keys are the package relative
312
+ # service names and values are the name to be used for the service client
313
+ # and call options.
314
+ #
315
+ # publishing:
316
+ # go_settings:
317
+ # renamed_services:
318
+ # Publisher: TopicAdmin
309
319
  class GoSettings
310
320
  include ::Google::Protobuf::MessageExts
311
321
  extend ::Google::Protobuf::MessageExts::ClassMethods
322
+
323
+ # @!attribute [rw] key
324
+ # @return [::String]
325
+ # @!attribute [rw] value
326
+ # @return [::String]
327
+ class RenamedServicesEntry
328
+ include ::Google::Protobuf::MessageExts
329
+ extend ::Google::Protobuf::MessageExts::ClassMethods
330
+ end
312
331
  end
313
332
 
314
333
  # Describes the generator configuration for a method.
@@ -40,6 +40,8 @@ module Google
40
40
  # @!attribute [rw] error
41
41
  # @return [::Google::Rpc::Status]
42
42
  # The error result of the operation in case of failure or cancellation.
43
+ #
44
+ # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared.
43
45
  # @!attribute [rw] response
44
46
  # @return [::Google::Protobuf::Any]
45
47
  # The normal, successful response of the operation. If the original
@@ -50,6 +52,8 @@ module Google
50
52
  # is the original method name. For example, if the original method name
51
53
  # is `TakeSnapshot()`, the inferred response type is
52
54
  # `TakeSnapshotResponse`.
55
+ #
56
+ # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
53
57
  class Operation
54
58
  include ::Google::Protobuf::MessageExts
55
59
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-analytics-data-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-04 00:00:00.000000000 Z
10
+ date: 2025-01-29 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: gapic-common
@@ -16,7 +15,7 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: 0.21.1
18
+ version: 0.25.0
20
19
  - - "<"
21
20
  - !ruby/object:Gem::Version
22
21
  version: 2.a
@@ -26,7 +25,7 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- version: 0.21.1
28
+ version: 0.25.0
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
31
  version: 2.a
@@ -91,7 +90,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
91
90
  licenses:
92
91
  - Apache-2.0
93
92
  metadata: {}
94
- post_install_message:
95
93
  rdoc_options: []
96
94
  require_paths:
97
95
  - lib
@@ -99,15 +97,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
99
97
  requirements:
100
98
  - - ">="
101
99
  - !ruby/object:Gem::Version
102
- version: '2.7'
100
+ version: '3.0'
103
101
  required_rubygems_version: !ruby/object:Gem::Requirement
104
102
  requirements:
105
103
  - - ">="
106
104
  - !ruby/object:Gem::Version
107
105
  version: '0'
108
106
  requirements: []
109
- rubygems_version: 3.5.22
110
- signing_key:
107
+ rubygems_version: 3.6.2
111
108
  specification_version: 4
112
109
  summary: 'Accesses report data in Google Analytics. Warning: Creating multiple Customer
113
110
  Applications, Accounts, or Projects to simulate or act as a single Customer Application,