google-analytics-data-v1alpha 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/analytics/data/v1alpha/analytics_data/client.rb +14 -66
- data/lib/google/analytics/data/v1alpha/analytics_data_api_pb.rb +0 -8
- data/lib/google/analytics/data/v1alpha/analytics_data_api_services_pb.rb +1 -8
- data/lib/google/analytics/data/v1alpha/version.rb +1 -1
- data/proto_docs/google/analytics/data/v1alpha/analytics_data_api.rb +16 -19
- data/proto_docs/google/analytics/data/v1alpha/data.rb +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46a4a35fe96d97d0e55469823d63d565fad0d23c91ec695e4900dd026dac33c2
|
4
|
+
data.tar.gz: 4fb8b75aa1d11f18617f9667010111ac548a77cd304e1d9e4522e9f3e395138d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88e10c1f978a46c7e3417bc54941af2a6dc1d8c04b01ec296dc0b868f01b606dfa7c37206a2ce71a12051364c43650e78e47e7863042d88552ccf375a0683771
|
7
|
+
data.tar.gz: ae84293ce9806270947f602b06f98b16cfae7435ad075a7672ef7de96e111cda55793e309971c7c79c5a4bb9e2aad2af593625f59691d4356b31f7e3d37a1ccc
|
@@ -199,9 +199,15 @@ module Google
|
|
199
199
|
# must be unspecified.
|
200
200
|
# @param offset [::Integer]
|
201
201
|
# The row count of the start row. The first row is counted as row 0.
|
202
|
+
#
|
203
|
+
# To learn more about this pagination parameter, see
|
204
|
+
# [Pagination](basics#pagination).
|
202
205
|
# @param limit [::Integer]
|
203
206
|
# The number of rows to return. If unspecified, 10 rows are returned. If
|
204
207
|
# -1, all rows are returned.
|
208
|
+
#
|
209
|
+
# To learn more about this pagination parameter, see
|
210
|
+
# [Pagination](basics#pagination).
|
205
211
|
# @param metric_aggregations [::Array<::Google::Analytics::Data::V1alpha::MetricAggregation>]
|
206
212
|
# Aggregation of metrics. Aggregated metric values will be shown in rows
|
207
213
|
# where the dimension_values are set to "RESERVED_(MetricAggregation)".
|
@@ -502,67 +508,10 @@ module Google
|
|
502
508
|
raise ::Google::Cloud::Error.from_error(e)
|
503
509
|
end
|
504
510
|
|
505
|
-
##
|
506
|
-
# Returns metadata for dimensions and metrics available in reporting methods.
|
507
|
-
# Used to explore the dimensions and metrics. Dimensions and metrics will be
|
508
|
-
# mostly added over time, but renames and deletions may occur.
|
509
|
-
#
|
510
|
-
# This method returns Universal Metadata. Universal Metadata are dimensions
|
511
|
-
# and metrics applicable to any property such as `country` and `totalUsers`.
|
512
|
-
#
|
513
|
-
# @overload get_universal_metadata(request, options = nil)
|
514
|
-
# Pass arguments to `get_universal_metadata` via a request object, either of type
|
515
|
-
# {::Google::Analytics::Data::V1alpha::GetUniversalMetadataRequest} or an equivalent Hash.
|
516
|
-
#
|
517
|
-
# @param request [::Google::Analytics::Data::V1alpha::GetUniversalMetadataRequest, ::Hash]
|
518
|
-
# A request object representing the call parameters. Required. To specify no
|
519
|
-
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
520
|
-
# @param options [::Gapic::CallOptions, ::Hash]
|
521
|
-
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
522
|
-
#
|
523
|
-
# @yield [response, operation] Access the result along with the RPC operation
|
524
|
-
# @yieldparam response [::Google::Analytics::Data::V1alpha::UniversalMetadata]
|
525
|
-
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
526
|
-
#
|
527
|
-
# @return [::Google::Analytics::Data::V1alpha::UniversalMetadata]
|
528
|
-
#
|
529
|
-
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
530
|
-
#
|
531
|
-
def get_universal_metadata request, options = nil
|
532
|
-
raise ::ArgumentError, "request must be provided" if request.nil?
|
533
|
-
|
534
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Data::V1alpha::GetUniversalMetadataRequest
|
535
|
-
|
536
|
-
# Converts hash and nil to an options object
|
537
|
-
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
538
|
-
|
539
|
-
# Customize the options with defaults
|
540
|
-
metadata = @config.rpcs.get_universal_metadata.metadata.to_h
|
541
|
-
|
542
|
-
# Set x-goog-api-client and x-goog-user-project headers
|
543
|
-
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
544
|
-
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
545
|
-
gapic_version: ::Google::Analytics::Data::V1alpha::VERSION
|
546
|
-
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
547
|
-
|
548
|
-
options.apply_defaults timeout: @config.rpcs.get_universal_metadata.timeout,
|
549
|
-
metadata: metadata,
|
550
|
-
retry_policy: @config.rpcs.get_universal_metadata.retry_policy
|
551
|
-
options.apply_defaults metadata: @config.metadata,
|
552
|
-
retry_policy: @config.retry_policy
|
553
|
-
|
554
|
-
@analytics_data_stub.call_rpc :get_universal_metadata, request, options: options do |response, operation|
|
555
|
-
yield response, operation if block_given?
|
556
|
-
return response
|
557
|
-
end
|
558
|
-
rescue ::GRPC::BadStatus => e
|
559
|
-
raise ::Google::Cloud::Error.from_error(e)
|
560
|
-
end
|
561
|
-
|
562
511
|
##
|
563
512
|
# Returns metadata for dimensions and metrics available in reporting methods.
|
564
513
|
# Used to explore the dimensions and metrics. In this method, a Google
|
565
|
-
# Analytics
|
514
|
+
# Analytics GA4 Property Identifier is specified in the request, and
|
566
515
|
# the metadata response includes Custom dimensions and metrics as well as
|
567
516
|
# Universal metadata.
|
568
517
|
#
|
@@ -589,10 +538,16 @@ module Google
|
|
589
538
|
# @param name [::String]
|
590
539
|
# Required. The resource name of the metadata to retrieve. This name field is
|
591
540
|
# specified in the URL path and not URL parameters. Property is a numeric
|
592
|
-
# Google Analytics
|
541
|
+
# Google Analytics GA4 Property identifier. To learn more, see [where to find
|
542
|
+
# your Property
|
543
|
+
# ID](https://developers.google.com/analytics/trusted-testing/analytics-data/property-id).
|
593
544
|
#
|
594
545
|
# Example: properties/1234/metadata
|
595
546
|
#
|
547
|
+
# Set the Property ID to 0 for dimensions and metrics common to all
|
548
|
+
# properties. In this special mode, this method will not return custom
|
549
|
+
# dimensions and metrics.
|
550
|
+
#
|
596
551
|
# @yield [response, operation] Access the result along with the RPC operation
|
597
552
|
# @yieldparam response [::Google::Analytics::Data::V1alpha::Metadata]
|
598
553
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
@@ -890,11 +845,6 @@ module Google
|
|
890
845
|
#
|
891
846
|
attr_reader :batch_run_pivot_reports
|
892
847
|
##
|
893
|
-
# RPC-specific configuration for `get_universal_metadata`
|
894
|
-
# @return [::Gapic::Config::Method]
|
895
|
-
#
|
896
|
-
attr_reader :get_universal_metadata
|
897
|
-
##
|
898
848
|
# RPC-specific configuration for `get_metadata`
|
899
849
|
# @return [::Gapic::Config::Method]
|
900
850
|
#
|
@@ -915,8 +865,6 @@ module Google
|
|
915
865
|
@batch_run_reports = ::Gapic::Config::Method.new batch_run_reports_config
|
916
866
|
batch_run_pivot_reports_config = parent_rpcs&.batch_run_pivot_reports if parent_rpcs&.respond_to? :batch_run_pivot_reports
|
917
867
|
@batch_run_pivot_reports = ::Gapic::Config::Method.new batch_run_pivot_reports_config
|
918
|
-
get_universal_metadata_config = parent_rpcs&.get_universal_metadata if parent_rpcs&.respond_to? :get_universal_metadata
|
919
|
-
@get_universal_metadata = ::Gapic::Config::Method.new get_universal_metadata_config
|
920
868
|
get_metadata_config = parent_rpcs&.get_metadata if parent_rpcs&.respond_to? :get_metadata
|
921
869
|
@get_metadata = ::Gapic::Config::Method.new get_metadata_config
|
922
870
|
run_realtime_report_config = parent_rpcs&.run_realtime_report if parent_rpcs&.respond_to? :run_realtime_report
|
@@ -78,12 +78,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
78
78
|
add_message "google.analytics.data.v1alpha.BatchRunPivotReportsResponse" do
|
79
79
|
repeated :pivot_reports, :message, 1, "google.analytics.data.v1alpha.RunPivotReportResponse"
|
80
80
|
end
|
81
|
-
add_message "google.analytics.data.v1alpha.GetUniversalMetadataRequest" do
|
82
|
-
end
|
83
|
-
add_message "google.analytics.data.v1alpha.UniversalMetadata" do
|
84
|
-
repeated :dimensions, :message, 1, "google.analytics.data.v1alpha.DimensionMetadata"
|
85
|
-
repeated :metrics, :message, 2, "google.analytics.data.v1alpha.MetricMetadata"
|
86
|
-
end
|
87
81
|
add_message "google.analytics.data.v1alpha.GetMetadataRequest" do
|
88
82
|
optional :name, :string, 1
|
89
83
|
end
|
@@ -124,8 +118,6 @@ module Google
|
|
124
118
|
BatchRunReportsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.BatchRunReportsResponse").msgclass
|
125
119
|
BatchRunPivotReportsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.BatchRunPivotReportsRequest").msgclass
|
126
120
|
BatchRunPivotReportsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.BatchRunPivotReportsResponse").msgclass
|
127
|
-
GetUniversalMetadataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.GetUniversalMetadataRequest").msgclass
|
128
|
-
UniversalMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.UniversalMetadata").msgclass
|
129
121
|
GetMetadataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.GetMetadataRequest").msgclass
|
130
122
|
RunRealtimeReportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.RunRealtimeReportRequest").msgclass
|
131
123
|
RunRealtimeReportResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.RunRealtimeReportResponse").msgclass
|
@@ -54,15 +54,8 @@ module Google
|
|
54
54
|
# Entity.
|
55
55
|
rpc :BatchRunPivotReports, ::Google::Analytics::Data::V1alpha::BatchRunPivotReportsRequest, ::Google::Analytics::Data::V1alpha::BatchRunPivotReportsResponse
|
56
56
|
# Returns metadata for dimensions and metrics available in reporting methods.
|
57
|
-
# Used to explore the dimensions and metrics. Dimensions and metrics will be
|
58
|
-
# mostly added over time, but renames and deletions may occur.
|
59
|
-
#
|
60
|
-
# This method returns Universal Metadata. Universal Metadata are dimensions
|
61
|
-
# and metrics applicable to any property such as `country` and `totalUsers`.
|
62
|
-
rpc :GetUniversalMetadata, ::Google::Analytics::Data::V1alpha::GetUniversalMetadataRequest, ::Google::Analytics::Data::V1alpha::UniversalMetadata
|
63
|
-
# Returns metadata for dimensions and metrics available in reporting methods.
|
64
57
|
# Used to explore the dimensions and metrics. In this method, a Google
|
65
|
-
# Analytics
|
58
|
+
# Analytics GA4 Property Identifier is specified in the request, and
|
66
59
|
# the metadata response includes Custom dimensions and metrics as well as
|
67
60
|
# Universal metadata.
|
68
61
|
#
|
@@ -57,10 +57,16 @@ module Google
|
|
57
57
|
# @!attribute [rw] offset
|
58
58
|
# @return [::Integer]
|
59
59
|
# The row count of the start row. The first row is counted as row 0.
|
60
|
+
#
|
61
|
+
# To learn more about this pagination parameter, see
|
62
|
+
# [Pagination](basics#pagination).
|
60
63
|
# @!attribute [rw] limit
|
61
64
|
# @return [::Integer]
|
62
65
|
# The number of rows to return. If unspecified, 10 rows are returned. If
|
63
66
|
# -1, all rows are returned.
|
67
|
+
#
|
68
|
+
# To learn more about this pagination parameter, see
|
69
|
+
# [Pagination](basics#pagination).
|
64
70
|
# @!attribute [rw] metric_aggregations
|
65
71
|
# @return [::Array<::Google::Analytics::Data::V1alpha::MetricAggregation>]
|
66
72
|
# Aggregation of metrics. Aggregated metric values will be shown in rows
|
@@ -126,6 +132,9 @@ module Google
|
|
126
132
|
# rows returned in the response. For example if a query returns 175 rows and
|
127
133
|
# includes limit = 50 in the API request, the response will contain row_count
|
128
134
|
# = 175 but only 50 rows.
|
135
|
+
#
|
136
|
+
# To learn more about this pagination parameter, see
|
137
|
+
# [Pagination](basics#pagination).
|
129
138
|
# @!attribute [rw] metadata
|
130
139
|
# @return [::Google::Analytics::Data::V1alpha::ResponseMetaData]
|
131
140
|
# Metadata for the report.
|
@@ -310,32 +319,20 @@ module Google
|
|
310
319
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
311
320
|
end
|
312
321
|
|
313
|
-
# Request for the universal dimension and metric metadata.
|
314
|
-
class GetUniversalMetadataRequest
|
315
|
-
include ::Google::Protobuf::MessageExts
|
316
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
317
|
-
end
|
318
|
-
|
319
|
-
# The dimensions and metrics currently accepted in reporting methods.
|
320
|
-
# @!attribute [rw] dimensions
|
321
|
-
# @return [::Array<::Google::Analytics::Data::V1alpha::DimensionMetadata>]
|
322
|
-
# The dimensions descriptions.
|
323
|
-
# @!attribute [rw] metrics
|
324
|
-
# @return [::Array<::Google::Analytics::Data::V1alpha::MetricMetadata>]
|
325
|
-
# The metric descriptions.
|
326
|
-
class UniversalMetadata
|
327
|
-
include ::Google::Protobuf::MessageExts
|
328
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
329
|
-
end
|
330
|
-
|
331
322
|
# Request for a property's dimension and metric metadata.
|
332
323
|
# @!attribute [rw] name
|
333
324
|
# @return [::String]
|
334
325
|
# Required. The resource name of the metadata to retrieve. This name field is
|
335
326
|
# specified in the URL path and not URL parameters. Property is a numeric
|
336
|
-
# Google Analytics
|
327
|
+
# Google Analytics GA4 Property identifier. To learn more, see [where to find
|
328
|
+
# your Property
|
329
|
+
# ID](https://developers.google.com/analytics/trusted-testing/analytics-data/property-id).
|
337
330
|
#
|
338
331
|
# Example: properties/1234/metadata
|
332
|
+
#
|
333
|
+
# Set the Property ID to 0 for dimensions and metrics common to all
|
334
|
+
# properties. In this special mode, this method will not return custom
|
335
|
+
# dimensions and metrics.
|
339
336
|
class GetMetadataRequest
|
340
337
|
include ::Google::Protobuf::MessageExts
|
341
338
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -22,8 +22,7 @@ module Google
|
|
22
22
|
module Data
|
23
23
|
module V1alpha
|
24
24
|
# A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests
|
25
|
-
# are allowed up to 4 date ranges
|
26
|
-
# 1 year.
|
25
|
+
# are allowed up to 4 date ranges.
|
27
26
|
# @!attribute [rw] start_date
|
28
27
|
# @return [::String]
|
29
28
|
# The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-analytics-data-v1alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|