google-analytics-data-v1beta 0.6.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5134b98fc41b7d917e3fe80a3c6562725c1379ebb19dbd61ea9d76c5b85cd9f5
4
- data.tar.gz: 3df9c421232682bfd64758f0cb0a24922eef5aff90ef8f67f2f2bc0998da2da0
3
+ metadata.gz: '0216299e3a52f758f918d01a4e0c33ad953ea4d9a3c0fa01cbd96b3c453e3332'
4
+ data.tar.gz: b827ebeed2b1b11cb5ef153a45277c5b41471eb02bdf8ff3e6113332789c0f1d
5
5
  SHA512:
6
- metadata.gz: 854cd6373f7222ab12711fbc63af02e1888a766e0752f5e28de8050e70707dd46ced34be8b00c75764b4adc046d69eb7f1cc43f89ac55c7a8493a2a85907d28d
7
- data.tar.gz: 40b4ad526d172c8cbdaa85bfd46ec63400c9033f1509bc7d8510236010b077cf5053a2cf106322c5b8ca5362ac27f7424edf0121b4641650d70020e1ee235941
6
+ metadata.gz: e508d9f2536c3eea84045c0850c4a8fd4629a484915adf5fd894515453d74c3598ee18e84b1e70fc60e1cdbb22b0c93e8e8a8d4ab099f98339caab2da56bcb7c
7
+ data.tar.gz: 5812899ff083dd34e880c399b71125d4c4675f733e732002d1afbd47c39ab4b476bd07a4b94371fa9ea85c57372996c15dc865cf084f7e67f4317bafe32b65cc
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Google Analytics Data V1beta API
2
2
 
3
- API Client library for the Google Analytics Data V1beta API
3
+ Accesses report data in Google Analytics.
4
4
 
5
5
  The Google Analytics Data API provides programmatic methods to access report data in Google Analytics 4 (GA4) properties. Google Analytics 4 helps you understand how people use your web, iOS, or Android app.
6
6
 
@@ -37,7 +37,7 @@ request = ::Google::Analytics::Data::V1beta::RunReportRequest.new # (request fie
37
37
  response = client.run_report request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-analytics-data-v1beta/latest)
40
+ View the [Client Library Documentation](https://rubydoc.info/gems/google-analytics-data-v1beta)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://developers.google.com/analytics/devguides/reporting/data/v1)
@@ -46,8 +46,8 @@ for general usage information.
46
46
  ## Enabling Logging
47
47
 
48
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/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
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
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
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
53
 
@@ -142,7 +142,7 @@ module Google
142
142
  credentials = @config.credentials
143
143
  # Use self-signed JWT if the endpoint is unchanged from default,
144
144
  # but only if the default endpoint does not have a region prefix.
145
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
145
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
146
146
  !@config.endpoint.split(".").first.include?("-")
147
147
  credentials ||= Credentials.default scope: @config.scope,
148
148
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -1044,9 +1044,9 @@ module Google
1044
1044
  # * (`String`) The path to a service account key file in JSON format
1045
1045
  # * (`Hash`) A service account key as a Hash
1046
1046
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1047
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1047
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1048
1048
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1049
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1049
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1050
1050
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1051
1051
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1052
1052
  # * (`nil`) indicating no credentials
@@ -1088,7 +1088,9 @@ module Google
1088
1088
  class Configuration
1089
1089
  extend ::Gapic::Config
1090
1090
 
1091
- config_attr :endpoint, "analyticsdata.googleapis.com", ::String
1091
+ DEFAULT_ENDPOINT = "analyticsdata.googleapis.com"
1092
+
1093
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1092
1094
  config_attr :credentials, nil do |value|
1093
1095
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1094
1096
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC