google-analytics-data-v1beta 0.2.0 → 0.2.1

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: c021234dd6f81ba0f39dbbb777517e6fab6c15dea6311094c80dd8447aa0531e
4
- data.tar.gz: db84e46a4f4f7685a998f618ec3111b21b5acf247718485807cbe024c2e2e82d
3
+ metadata.gz: 5d114d8fed5d58e2b0cb42f79eba9a85059277c39bd84bf9b7481115230d7dc2
4
+ data.tar.gz: dcc62abb49ac5f51735b1801929db4908cff339fc1a9ba2b080b7b9b595af059
5
5
  SHA512:
6
- metadata.gz: d1d8d6dbabc2913006e761cc2901de043317fafe472bb5feb8e8f9be540fa597fabebc33fc66045baf354ae8a414d53a01f0cd20a1f3f67323d1e1a7e04b53bc
7
- data.tar.gz: 2ccdcf5ff209db69140d5e7726f9beb2df795003ee8142430bbc5d571f6c68cef93c91133851b240e50209a965fa36069a0164529bb6fb555eac8e126c73c193
6
+ metadata.gz: 1505e1edb9255c9c0ec6b1d7678d65ce0ac261c0dae6c9f67f173e685e0e46ddf2a30ce026ca27889feeb94968a0254c174e659dfe661728efbc4b0e0dba8f9f
7
+ data.tar.gz: 78b98bd515ae9e69af162cb365e31c11080d4b802f130bc1cb31f895e10b5ce5cfe75027284b01791ca329e68c98c15e2cd0f44e17fb6f55b63a1b7b0de26566
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Analytics::Data::V1beta::AnalyticsData::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all AnalyticsData clients:
47
- #
48
- # ::Google::Analytics::Data::V1beta::AnalyticsData::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all AnalyticsData clients
47
+ # ::Google::Analytics::Data::V1beta::AnalyticsData::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -109,19 +108,15 @@ module Google
109
108
  ##
110
109
  # Create a new AnalyticsData client object.
111
110
  #
112
- # ## Examples
113
- #
114
- # To create a new AnalyticsData client with the default
115
- # configuration:
111
+ # @example
116
112
  #
117
- # client = ::Google::Analytics::Data::V1beta::AnalyticsData::Client.new
113
+ # # Create a client using the default configuration
114
+ # client = ::Google::Analytics::Data::V1beta::AnalyticsData::Client.new
118
115
  #
119
- # To create a new AnalyticsData client with a custom
120
- # configuration:
121
- #
122
- # client = ::Google::Analytics::Data::V1beta::AnalyticsData::Client.new do |config|
123
- # config.timeout = 10.0
124
- # end
116
+ # # Create a client using a custom configuration
117
+ # client = ::Google::Analytics::Data::V1beta::AnalyticsData::Client.new do |config|
118
+ # config.timeout = 10.0
119
+ # end
125
120
  #
126
121
  # @yield [config] Configure the AnalyticsData client.
127
122
  # @yieldparam config [Client::Configuration]
@@ -141,10 +136,9 @@ module Google
141
136
 
142
137
  # Create credentials
143
138
  credentials = @config.credentials
144
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
139
+ # Use self-signed JWT if the endpoint is unchanged from default,
145
140
  # but only if the default endpoint does not have a region prefix.
146
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
147
- @config.endpoint == Client.configure.endpoint &&
141
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
148
142
  !@config.endpoint.split(".").first.include?("-")
149
143
  credentials ||= Credentials.default scope: @config.scope,
150
144
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -291,7 +285,9 @@ module Google
291
285
  options.apply_defaults timeout: @config.rpcs.run_report.timeout,
292
286
  metadata: metadata,
293
287
  retry_policy: @config.rpcs.run_report.retry_policy
294
- options.apply_defaults metadata: @config.metadata,
288
+
289
+ options.apply_defaults timeout: @config.timeout,
290
+ metadata: @config.metadata,
295
291
  retry_policy: @config.retry_policy
296
292
 
297
293
  @analytics_data_stub.call_rpc :run_report, request, options: options do |response, operation|
@@ -406,7 +402,9 @@ module Google
406
402
  options.apply_defaults timeout: @config.rpcs.run_pivot_report.timeout,
407
403
  metadata: metadata,
408
404
  retry_policy: @config.rpcs.run_pivot_report.retry_policy
409
- options.apply_defaults metadata: @config.metadata,
405
+
406
+ options.apply_defaults timeout: @config.timeout,
407
+ metadata: @config.metadata,
410
408
  retry_policy: @config.retry_policy
411
409
 
412
410
  @analytics_data_stub.call_rpc :run_pivot_report, request, options: options do |response, operation|
@@ -484,7 +482,9 @@ module Google
484
482
  options.apply_defaults timeout: @config.rpcs.batch_run_reports.timeout,
485
483
  metadata: metadata,
486
484
  retry_policy: @config.rpcs.batch_run_reports.retry_policy
487
- options.apply_defaults metadata: @config.metadata,
485
+
486
+ options.apply_defaults timeout: @config.timeout,
487
+ metadata: @config.metadata,
488
488
  retry_policy: @config.retry_policy
489
489
 
490
490
  @analytics_data_stub.call_rpc :batch_run_reports, request, options: options do |response, operation|
@@ -562,7 +562,9 @@ module Google
562
562
  options.apply_defaults timeout: @config.rpcs.batch_run_pivot_reports.timeout,
563
563
  metadata: metadata,
564
564
  retry_policy: @config.rpcs.batch_run_pivot_reports.retry_policy
565
- options.apply_defaults metadata: @config.metadata,
565
+
566
+ options.apply_defaults timeout: @config.timeout,
567
+ metadata: @config.metadata,
566
568
  retry_policy: @config.retry_policy
567
569
 
568
570
  @analytics_data_stub.call_rpc :batch_run_pivot_reports, request, options: options do |response, operation|
@@ -647,7 +649,9 @@ module Google
647
649
  options.apply_defaults timeout: @config.rpcs.get_metadata.timeout,
648
650
  metadata: metadata,
649
651
  retry_policy: @config.rpcs.get_metadata.retry_policy
650
- options.apply_defaults metadata: @config.metadata,
652
+
653
+ options.apply_defaults timeout: @config.timeout,
654
+ metadata: @config.metadata,
651
655
  retry_policy: @config.retry_policy
652
656
 
653
657
  @analytics_data_stub.call_rpc :get_metadata, request, options: options do |response, operation|
@@ -755,7 +759,9 @@ module Google
755
759
  options.apply_defaults timeout: @config.rpcs.run_realtime_report.timeout,
756
760
  metadata: metadata,
757
761
  retry_policy: @config.rpcs.run_realtime_report.retry_policy
758
- options.apply_defaults metadata: @config.metadata,
762
+
763
+ options.apply_defaults timeout: @config.timeout,
764
+ metadata: @config.metadata,
759
765
  retry_policy: @config.retry_policy
760
766
 
761
767
  @analytics_data_stub.call_rpc :run_realtime_report, request, options: options do |response, operation|
@@ -779,22 +785,21 @@ module Google
779
785
  # Configuration can be applied globally to all clients, or to a single client
780
786
  # on construction.
781
787
  #
782
- # # Examples
783
- #
784
- # To modify the global config, setting the timeout for run_report
785
- # to 20 seconds, and all remaining timeouts to 10 seconds:
786
- #
787
- # ::Google::Analytics::Data::V1beta::AnalyticsData::Client.configure do |config|
788
- # config.timeout = 10.0
789
- # config.rpcs.run_report.timeout = 20.0
790
- # end
791
- #
792
- # To apply the above configuration only to a new client:
793
- #
794
- # client = ::Google::Analytics::Data::V1beta::AnalyticsData::Client.new do |config|
795
- # config.timeout = 10.0
796
- # config.rpcs.run_report.timeout = 20.0
797
- # end
788
+ # @example
789
+ #
790
+ # # Modify the global config, setting the timeout for
791
+ # # run_report to 20 seconds,
792
+ # # and all remaining timeouts to 10 seconds.
793
+ # ::Google::Analytics::Data::V1beta::AnalyticsData::Client.configure do |config|
794
+ # config.timeout = 10.0
795
+ # config.rpcs.run_report.timeout = 20.0
796
+ # end
797
+ #
798
+ # # Apply the above configuration only to a new client.
799
+ # client = ::Google::Analytics::Data::V1beta::AnalyticsData::Client.new do |config|
800
+ # config.timeout = 10.0
801
+ # config.rpcs.run_report.timeout = 20.0
802
+ # end
798
803
  #
799
804
  # @!attribute [rw] endpoint
800
805
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Analytics
22
22
  module Data
23
23
  module V1beta
24
- VERSION = "0.2.0"
24
+ VERSION = "0.2.1"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-analytics-data-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-12 00:00:00.000000000 Z
11
+ date: 2021-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a