google-apis-analyticsdata_v1beta 0.7.0 → 0.11.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f056cec158ac73ff355c4cf2278d365bd1ad1760e0ab0399d498df563275fb8c
|
4
|
+
data.tar.gz: 3614d539f03d0bb7cee3246f5ff9c832abe79f9e0feae0288864fd3a4790f6b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c57284ce23445112f53d7c03d5e12c65675aa4ecd7e07417b0b740ef4708be2fbbe3e4b7b325b41e8debcf61a02958ef440f2ba9f80ad524a8e8fe4d2da61ed
|
7
|
+
data.tar.gz: 9a00e2a099e943c0235bfa99bea7552a75189e2ab02f9905de218c44b348df4fcfce581d0b144a092e76aba8d04537e0b702a3b61f990468effc83a3fcb1ab0d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-analyticsdata_v1beta
|
2
2
|
|
3
|
+
### v0.11.0 (2022-01-05)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20211230
|
6
|
+
|
7
|
+
### v0.10.0 (2021-12-08)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20211203
|
10
|
+
|
11
|
+
### v0.9.0 (2021-11-11)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20211108
|
14
|
+
|
15
|
+
### v0.8.0 (2021-10-22)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20211020
|
18
|
+
* Unspecified changes
|
19
|
+
|
3
20
|
### v0.7.0 (2021-08-31)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20210827
|
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/analyticsdata_v1beta"
|
|
51
51
|
client = Google::Apis::AnalyticsdataV1beta::AnalyticsDataService.new
|
52
52
|
|
53
53
|
# Authenticate calls
|
54
|
-
client.
|
54
|
+
client.authorization = # ... use the googleauth gem to create credentials
|
55
55
|
```
|
56
56
|
|
57
57
|
See the class reference docs for information on the methods you can call from a client.
|
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Analyticsdata service in particular.)
|
67
67
|
|
@@ -22,6 +22,31 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module AnalyticsdataV1beta
|
24
24
|
|
25
|
+
# A metric actively restricted in creating the report.
|
26
|
+
class ActiveMetricRestriction
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# The name of the restricted metric.
|
30
|
+
# Corresponds to the JSON property `metricName`
|
31
|
+
# @return [String]
|
32
|
+
attr_accessor :metric_name
|
33
|
+
|
34
|
+
# The reason for this metric's restriction.
|
35
|
+
# Corresponds to the JSON property `restrictedMetricTypes`
|
36
|
+
# @return [Array<String>]
|
37
|
+
attr_accessor :restricted_metric_types
|
38
|
+
|
39
|
+
def initialize(**args)
|
40
|
+
update!(**args)
|
41
|
+
end
|
42
|
+
|
43
|
+
# Update properties of this object
|
44
|
+
def update!(**args)
|
45
|
+
@metric_name = args[:metric_name] if args.key?(:metric_name)
|
46
|
+
@restricted_metric_types = args[:restricted_metric_types] if args.key?(:restricted_metric_types)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
25
50
|
# The batch request containing multiple pivot report requests.
|
26
51
|
class BatchRunPivotReportsRequest
|
27
52
|
include Google::Apis::Core::Hashable
|
@@ -463,7 +488,7 @@ module Google
|
|
463
488
|
|
464
489
|
# Dimensions are attributes of your data. For example, the dimension city
|
465
490
|
# indicates the city from which an event originates. Dimension values in report
|
466
|
-
# responses are strings; for example, city could be "Paris" or "New York".
|
491
|
+
# responses are strings; for example, the city could be "Paris" or "New York".
|
467
492
|
# Requests are allowed up to 9 dimensions.
|
468
493
|
class Dimension
|
469
494
|
include Google::Apis::Core::Hashable
|
@@ -481,7 +506,7 @@ module Google
|
|
481
506
|
# string that you would like within the allowed character set. For example if a `
|
482
507
|
# dimensionExpression` concatenates `country` and `city`, you could call that
|
483
508
|
# dimension `countryAndCity`. Dimension names that you choose must match the
|
484
|
-
# regular expression
|
509
|
+
# regular expression `^[a-zA-Z0-9_]$`. Dimensions are referenced by `name` in `
|
485
510
|
# dimensionFilter`, `orderBys`, `dimensionExpression`, and `pivots`.
|
486
511
|
# Corresponds to the JSON property `name`
|
487
512
|
# @return [String]
|
@@ -863,7 +888,7 @@ module Google
|
|
863
888
|
# would like within the allowed character set. For example if `expression` is `
|
864
889
|
# screenPageViews/sessions`, you could call that metric's name = `
|
865
890
|
# viewsPerSession`. Metric names that you choose must match the regular
|
866
|
-
# expression
|
891
|
+
# expression `^[a-zA-Z0-9_]$`. Metrics are referenced by `name` in `metricFilter`
|
867
892
|
# , `orderBys`, and metric `expression`.
|
868
893
|
# Corresponds to the JSON property `name`
|
869
894
|
# @return [String]
|
@@ -945,6 +970,16 @@ module Google
|
|
945
970
|
# @return [String]
|
946
971
|
attr_accessor :api_name
|
947
972
|
|
973
|
+
# If reasons are specified, your access is blocked to this metric for this
|
974
|
+
# property. API requests from you to this property for this metric will succeed;
|
975
|
+
# however, the report will contain only zeros for this metric. API requests with
|
976
|
+
# metric filters on blocked metrics will fail. If reasons are empty, you have
|
977
|
+
# access to this metric. To learn more, see [Access and data-restriction
|
978
|
+
# management](https://support.google.com/analytics/answer/10851388).
|
979
|
+
# Corresponds to the JSON property `blockedReasons`
|
980
|
+
# @return [Array<String>]
|
981
|
+
attr_accessor :blocked_reasons
|
982
|
+
|
948
983
|
# The display name of the category that this metrics belongs to. Similar
|
949
984
|
# dimensions and metrics are categorized together.
|
950
985
|
# Corresponds to the JSON property `category`
|
@@ -995,6 +1030,7 @@ module Google
|
|
995
1030
|
# Update properties of this object
|
996
1031
|
def update!(**args)
|
997
1032
|
@api_name = args[:api_name] if args.key?(:api_name)
|
1033
|
+
@blocked_reasons = args[:blocked_reasons] if args.key?(:blocked_reasons)
|
998
1034
|
@category = args[:category] if args.key?(:category)
|
999
1035
|
@custom_definition = args[:custom_definition] if args.key?(:custom_definition)
|
1000
1036
|
@deprecated_api_names = args[:deprecated_api_names] if args.key?(:deprecated_api_names)
|
@@ -1435,6 +1471,30 @@ module Google
|
|
1435
1471
|
attr_accessor :data_loss_from_other_row
|
1436
1472
|
alias_method :data_loss_from_other_row?, :data_loss_from_other_row
|
1437
1473
|
|
1474
|
+
# If empty reason is specified, the report is empty for this reason.
|
1475
|
+
# Corresponds to the JSON property `emptyReason`
|
1476
|
+
# @return [String]
|
1477
|
+
attr_accessor :empty_reason
|
1478
|
+
|
1479
|
+
# The schema restrictions actively enforced in creating this report. To learn
|
1480
|
+
# more, see [Access and data-restriction management](https://support.google.com/
|
1481
|
+
# analytics/answer/10851388).
|
1482
|
+
# Corresponds to the JSON property `schemaRestrictionResponse`
|
1483
|
+
# @return [Google::Apis::AnalyticsdataV1beta::SchemaRestrictionResponse]
|
1484
|
+
attr_accessor :schema_restriction_response
|
1485
|
+
|
1486
|
+
# If `subjectToThresholding` is true, this report is subject to thresholding and
|
1487
|
+
# only returns data that meets the minimum aggregation thresholds. It is
|
1488
|
+
# possible for a request to be subject to thresholding thresholding and no data
|
1489
|
+
# is absent from the report, and this happens when all data is above the
|
1490
|
+
# thresholds. To learn more, see [Data thresholds](https://support.google.com/
|
1491
|
+
# analytics/answer/9383630) and [About Demographics and Interests](https://
|
1492
|
+
# support.google.com/analytics/answer/2799357).
|
1493
|
+
# Corresponds to the JSON property `subjectToThresholding`
|
1494
|
+
# @return [Boolean]
|
1495
|
+
attr_accessor :subject_to_thresholding
|
1496
|
+
alias_method :subject_to_thresholding?, :subject_to_thresholding
|
1497
|
+
|
1438
1498
|
# The property's current timezone. Intended to be used to interpret time-based
|
1439
1499
|
# dimensions like `hour` and `minute`. Formatted as strings from the IANA Time
|
1440
1500
|
# Zone database (https://www.iana.org/time-zones); for example "America/New_York"
|
@@ -1451,6 +1511,9 @@ module Google
|
|
1451
1511
|
def update!(**args)
|
1452
1512
|
@currency_code = args[:currency_code] if args.key?(:currency_code)
|
1453
1513
|
@data_loss_from_other_row = args[:data_loss_from_other_row] if args.key?(:data_loss_from_other_row)
|
1514
|
+
@empty_reason = args[:empty_reason] if args.key?(:empty_reason)
|
1515
|
+
@schema_restriction_response = args[:schema_restriction_response] if args.key?(:schema_restriction_response)
|
1516
|
+
@subject_to_thresholding = args[:subject_to_thresholding] if args.key?(:subject_to_thresholding)
|
1454
1517
|
@time_zone = args[:time_zone] if args.key?(:time_zone)
|
1455
1518
|
end
|
1456
1519
|
end
|
@@ -2059,6 +2122,30 @@ module Google
|
|
2059
2122
|
end
|
2060
2123
|
end
|
2061
2124
|
|
2125
|
+
# The schema restrictions actively enforced in creating this report. To learn
|
2126
|
+
# more, see [Access and data-restriction management](https://support.google.com/
|
2127
|
+
# analytics/answer/10851388).
|
2128
|
+
class SchemaRestrictionResponse
|
2129
|
+
include Google::Apis::Core::Hashable
|
2130
|
+
|
2131
|
+
# All restrictions actively enforced in creating the report. For example, `
|
2132
|
+
# purchaseRevenue` always has the restriction type `REVENUE_DATA`. However, this
|
2133
|
+
# active response restriction is only populated if the user's custom role
|
2134
|
+
# disallows access to `REVENUE_DATA`.
|
2135
|
+
# Corresponds to the JSON property `activeMetricRestrictions`
|
2136
|
+
# @return [Array<Google::Apis::AnalyticsdataV1beta::ActiveMetricRestriction>]
|
2137
|
+
attr_accessor :active_metric_restrictions
|
2138
|
+
|
2139
|
+
def initialize(**args)
|
2140
|
+
update!(**args)
|
2141
|
+
end
|
2142
|
+
|
2143
|
+
# Update properties of this object
|
2144
|
+
def update!(**args)
|
2145
|
+
@active_metric_restrictions = args[:active_metric_restrictions] if args.key?(:active_metric_restrictions)
|
2146
|
+
end
|
2147
|
+
end
|
2148
|
+
|
2062
2149
|
# The filter for string
|
2063
2150
|
class StringFilter
|
2064
2151
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module AnalyticsdataV1beta
|
18
18
|
# Version of the google-apis-analyticsdata_v1beta gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.11.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20211230"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -22,6 +22,12 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module AnalyticsdataV1beta
|
24
24
|
|
25
|
+
class ActiveMetricRestriction
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
25
31
|
class BatchRunPivotReportsRequest
|
26
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
33
|
|
@@ -328,12 +334,26 @@ module Google
|
|
328
334
|
include Google::Apis::Core::JsonObjectSupport
|
329
335
|
end
|
330
336
|
|
337
|
+
class SchemaRestrictionResponse
|
338
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
339
|
+
|
340
|
+
include Google::Apis::Core::JsonObjectSupport
|
341
|
+
end
|
342
|
+
|
331
343
|
class StringFilter
|
332
344
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
333
345
|
|
334
346
|
include Google::Apis::Core::JsonObjectSupport
|
335
347
|
end
|
336
348
|
|
349
|
+
class ActiveMetricRestriction
|
350
|
+
# @private
|
351
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
352
|
+
property :metric_name, as: 'metricName'
|
353
|
+
collection :restricted_metric_types, as: 'restrictedMetricTypes'
|
354
|
+
end
|
355
|
+
end
|
356
|
+
|
337
357
|
class BatchRunPivotReportsRequest
|
338
358
|
# @private
|
339
359
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -615,6 +635,7 @@ module Google
|
|
615
635
|
# @private
|
616
636
|
class Representation < Google::Apis::Core::JsonRepresentation
|
617
637
|
property :api_name, as: 'apiName'
|
638
|
+
collection :blocked_reasons, as: 'blockedReasons'
|
618
639
|
property :category, as: 'category'
|
619
640
|
property :custom_definition, as: 'customDefinition'
|
620
641
|
collection :deprecated_api_names, as: 'deprecatedApiNames'
|
@@ -753,6 +774,10 @@ module Google
|
|
753
774
|
class Representation < Google::Apis::Core::JsonRepresentation
|
754
775
|
property :currency_code, as: 'currencyCode'
|
755
776
|
property :data_loss_from_other_row, as: 'dataLossFromOtherRow'
|
777
|
+
property :empty_reason, as: 'emptyReason'
|
778
|
+
property :schema_restriction_response, as: 'schemaRestrictionResponse', class: Google::Apis::AnalyticsdataV1beta::SchemaRestrictionResponse, decorator: Google::Apis::AnalyticsdataV1beta::SchemaRestrictionResponse::Representation
|
779
|
+
|
780
|
+
property :subject_to_thresholding, as: 'subjectToThresholding'
|
756
781
|
property :time_zone, as: 'timeZone'
|
757
782
|
end
|
758
783
|
end
|
@@ -906,6 +931,14 @@ module Google
|
|
906
931
|
end
|
907
932
|
end
|
908
933
|
|
934
|
+
class SchemaRestrictionResponse
|
935
|
+
# @private
|
936
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
937
|
+
collection :active_metric_restrictions, as: 'activeMetricRestrictions', class: Google::Apis::AnalyticsdataV1beta::ActiveMetricRestriction, decorator: Google::Apis::AnalyticsdataV1beta::ActiveMetricRestriction::Representation
|
938
|
+
|
939
|
+
end
|
940
|
+
end
|
941
|
+
|
909
942
|
class StringFilter
|
910
943
|
# @private
|
911
944
|
class Representation < Google::Apis::Core::JsonRepresentation
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-analyticsdata_v1beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.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:
|
11
|
+
date: 2022-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-analyticsdata_v1beta/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
60
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-analyticsdata_v1beta/CHANGELOG.md
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-analyticsdata_v1beta/v0.11.0
|
62
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-analyticsdata_v1beta
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
65
65
|
require_paths:
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.3.4
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Google Analytics Data API V1beta
|