google-apis-analyticsdata_v1beta 0.6.0 → 0.10.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: aebbab886c0e4d17faf9b94cba17139b5664973e852365d1d458a566d4d1da37
4
- data.tar.gz: f542ea9bf8630ceb54ecb22a5839ef6b31a11622d65f700336af11b0f2181248
3
+ metadata.gz: 8161a68dacdecb39659fa2424218e74edde6ba2989e26b9f8de154f78195d9c6
4
+ data.tar.gz: 89b02d11526f136c8458f653f12f15d55dffa76bfc027fbc8bf0ecb369e4e609
5
5
  SHA512:
6
- metadata.gz: 9f5745d90be012abe2a7b42574396d9d2f977c81c4836514796e07e84f9da85a0e7c5b32a79b48fcf63d2d69fc743089b42c0fbeb26c8dc79a4821cbb613d99a
7
- data.tar.gz: 5607c47f1063b0698197a2283da9ab2fd564b3adf35dd10345445f3d7dd664dbe44c29462d32d6e01b0859e2fbb5dfce9a8df9216ecc7d02ef3177d9a1f88995
6
+ metadata.gz: 952b5e72783d4c9be55aa864a9d65fe4eef1fe09a734fbdbbe529dd60a1b76070da7bfb3c3e221aa94ed8d58ad45a733aa1934eb9d79e32f0f3e7a9a0ade1869
7
+ data.tar.gz: a630ca4945c5d665eb859d758c47d1adeb64636d0a4c0b56e284ba0c7734f85b8a0f9583ce2b582088ae239e34fe608d3422dfb7a30bab46daccc120514f334e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-analyticsdata_v1beta
2
2
 
3
+ ### v0.10.0 (2021-12-08)
4
+
5
+ * Regenerated from discovery document revision 20211203
6
+
7
+ ### v0.9.0 (2021-11-11)
8
+
9
+ * Regenerated from discovery document revision 20211108
10
+
11
+ ### v0.8.0 (2021-10-22)
12
+
13
+ * Regenerated from discovery document revision 20211020
14
+ * Unspecified changes
15
+
16
+ ### v0.7.0 (2021-08-31)
17
+
18
+ * Regenerated from discovery document revision 20210827
19
+
3
20
  ### v0.6.0 (2021-08-26)
4
21
 
5
22
  * Regenerated from discovery document revision 20210824
data/OVERVIEW.md CHANGED
@@ -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/master/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/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
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
@@ -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 "^[a-zA-Z0-9_]$". Dimensions are referenced by `name` in `
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 "^[a-zA-Z0-9_]$". Metrics are referenced by `name` in `metricFilter`
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)
@@ -1416,6 +1452,18 @@ module Google
1416
1452
  class ResponseMetaData
1417
1453
  include Google::Apis::Core::Hashable
1418
1454
 
1455
+ # The currency code used in this report. Intended to be used in formatting
1456
+ # currency metrics like `purchaseRevenue` for visualization. If currency_code
1457
+ # was specified in the request, this response parameter will echo the request
1458
+ # parameter; otherwise, this response parameter is the property's current
1459
+ # currency_code. Currency codes are string encodings of currency types from the
1460
+ # ISO 4217 standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD",
1461
+ # "EUR", "JPY". To learn more, see https://support.google.com/analytics/answer/
1462
+ # 9796179.
1463
+ # Corresponds to the JSON property `currencyCode`
1464
+ # @return [String]
1465
+ attr_accessor :currency_code
1466
+
1419
1467
  # If true, indicates some buckets of dimension combinations are rolled into "(
1420
1468
  # other)" row. This can happen for high cardinality reports.
1421
1469
  # Corresponds to the JSON property `dataLossFromOtherRow`
@@ -1423,13 +1471,50 @@ module Google
1423
1471
  attr_accessor :data_loss_from_other_row
1424
1472
  alias_method :data_loss_from_other_row?, :data_loss_from_other_row
1425
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 `thresholdingApplied` is true, this report has thresholding applied and
1487
+ # only returns data that meets the minimum aggregation thresholds. This boolean
1488
+ # only indicates if thresholding was applied. It is possible for thresholding to
1489
+ # be applied and no data is absent from the report, and this happens when all
1490
+ # data is above the thresholds. To learn more, see [Data thresholds](https://
1491
+ # support.google.com/analytics/answer/9383630) and [About Demographics and
1492
+ # Interests](https://support.google.com/analytics/answer/2799357).
1493
+ # Corresponds to the JSON property `thresholdingApplied`
1494
+ # @return [Boolean]
1495
+ attr_accessor :thresholding_applied
1496
+ alias_method :thresholding_applied?, :thresholding_applied
1497
+
1498
+ # The property's current timezone. Intended to be used to interpret time-based
1499
+ # dimensions like `hour` and `minute`. Formatted as strings from the IANA Time
1500
+ # Zone database (https://www.iana.org/time-zones); for example "America/New_York"
1501
+ # or "Asia/Tokyo".
1502
+ # Corresponds to the JSON property `timeZone`
1503
+ # @return [String]
1504
+ attr_accessor :time_zone
1505
+
1426
1506
  def initialize(**args)
1427
1507
  update!(**args)
1428
1508
  end
1429
1509
 
1430
1510
  # Update properties of this object
1431
1511
  def update!(**args)
1512
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
1432
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
+ @thresholding_applied = args[:thresholding_applied] if args.key?(:thresholding_applied)
1517
+ @time_zone = args[:time_zone] if args.key?(:time_zone)
1433
1518
  end
1434
1519
  end
1435
1520
 
@@ -2037,6 +2122,30 @@ module Google
2037
2122
  end
2038
2123
  end
2039
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
+
2040
2149
  # The filter for string
2041
2150
  class StringFilter
2042
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.6.0"
19
+ GEM_VERSION = "0.10.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 = "20210824"
25
+ REVISION = "20211203"
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'
@@ -751,7 +772,13 @@ module Google
751
772
  class ResponseMetaData
752
773
  # @private
753
774
  class Representation < Google::Apis::Core::JsonRepresentation
775
+ property :currency_code, as: 'currencyCode'
754
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 :thresholding_applied, as: 'thresholdingApplied'
781
+ property :time_zone, as: 'timeZone'
755
782
  end
756
783
  end
757
784
 
@@ -904,6 +931,14 @@ module Google
904
931
  end
905
932
  end
906
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
+
907
942
  class StringFilter
908
943
  # @private
909
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.6.0
4
+ version: 0.10.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: 2021-08-30 00:00:00.000000000 Z
11
+ date: 2021-12-13 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/master/generated/google-apis-analyticsdata_v1beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-analyticsdata_v1beta/v0.6.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-analyticsdata_v1beta
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.10.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: