google-analytics-admin-v1alpha 0.12.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +1 -1
- data/lib/google/analytics/admin/v1alpha/access_report_pb.rb +159 -0
- data/lib/google/analytics/admin/v1alpha/analytics_admin_pb.rb +122 -0
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/client.rb +1941 -163
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb +65 -0
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service.rb +1 -1
- data/lib/google/analytics/admin/v1alpha/analytics_admin_services_pb.rb +55 -1
- data/lib/google/analytics/admin/v1alpha/audience_pb.rb +164 -0
- data/lib/google/analytics/admin/v1alpha/expanded_data_set_pb.rb +69 -0
- data/lib/google/analytics/admin/v1alpha/resources_pb.rb +71 -0
- data/lib/google/analytics/admin/v1alpha/version.rb +1 -1
- data/lib/google/analytics/admin/v1alpha.rb +2 -2
- data/proto_docs/google/analytics/admin/v1alpha/access_report.rb +389 -0
- data/proto_docs/google/analytics/admin/v1alpha/analytics_admin.rb +445 -49
- data/proto_docs/google/analytics/admin/v1alpha/audience.rb +413 -0
- data/proto_docs/google/analytics/admin/v1alpha/expanded_data_set.rb +156 -0
- data/proto_docs/google/analytics/admin/v1alpha/resources.rb +294 -56
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +0 -2
- metadata +14 -5
@@ -0,0 +1,389 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Analytics
|
22
|
+
module Admin
|
23
|
+
module V1alpha
|
24
|
+
# Dimensions are attributes of your data. For example, the dimension
|
25
|
+
# `userEmail` indicates the email of the user that accessed reporting data.
|
26
|
+
# Dimension values in report responses are strings.
|
27
|
+
# @!attribute [rw] dimension_name
|
28
|
+
# @return [::String]
|
29
|
+
# The API name of the dimension. See [Data Access
|
30
|
+
# Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
|
31
|
+
# for the list of dimensions supported in this API.
|
32
|
+
#
|
33
|
+
# Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
|
34
|
+
class AccessDimension
|
35
|
+
include ::Google::Protobuf::MessageExts
|
36
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
37
|
+
end
|
38
|
+
|
39
|
+
# The quantitative measurements of a report. For example, the metric
|
40
|
+
# `accessCount` is the total number of data access records.
|
41
|
+
# @!attribute [rw] metric_name
|
42
|
+
# @return [::String]
|
43
|
+
# The API name of the metric. See [Data Access
|
44
|
+
# Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
|
45
|
+
# for the list of metrics supported in this API.
|
46
|
+
#
|
47
|
+
# Metrics are referenced by name in `metricFilter` & `orderBys`.
|
48
|
+
class AccessMetric
|
49
|
+
include ::Google::Protobuf::MessageExts
|
50
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
51
|
+
end
|
52
|
+
|
53
|
+
# A contiguous range of days: startDate, startDate + 1, ..., endDate.
|
54
|
+
# @!attribute [rw] start_date
|
55
|
+
# @return [::String]
|
56
|
+
# The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
|
57
|
+
# be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
|
58
|
+
# accepted, and in that case, the date is inferred based on the current time
|
59
|
+
# in the request's time zone.
|
60
|
+
# @!attribute [rw] end_date
|
61
|
+
# @return [::String]
|
62
|
+
# The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
|
63
|
+
# be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
|
64
|
+
# also accepted, and in that case, the date is inferred based on the current
|
65
|
+
# time in the request's time zone.
|
66
|
+
class AccessDateRange
|
67
|
+
include ::Google::Protobuf::MessageExts
|
68
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
69
|
+
end
|
70
|
+
|
71
|
+
# Expresses dimension or metric filters. The fields in the same expression need
|
72
|
+
# to be either all dimensions or all metrics.
|
73
|
+
# @!attribute [rw] and_group
|
74
|
+
# @return [::Google::Analytics::Admin::V1alpha::AccessFilterExpressionList]
|
75
|
+
# Each of the FilterExpressions in the and_group has an AND relationship.
|
76
|
+
# @!attribute [rw] or_group
|
77
|
+
# @return [::Google::Analytics::Admin::V1alpha::AccessFilterExpressionList]
|
78
|
+
# Each of the FilterExpressions in the or_group has an OR relationship.
|
79
|
+
# @!attribute [rw] not_expression
|
80
|
+
# @return [::Google::Analytics::Admin::V1alpha::AccessFilterExpression]
|
81
|
+
# The FilterExpression is NOT of not_expression.
|
82
|
+
# @!attribute [rw] access_filter
|
83
|
+
# @return [::Google::Analytics::Admin::V1alpha::AccessFilter]
|
84
|
+
# A primitive filter. In the same FilterExpression, all of the filter's
|
85
|
+
# field names need to be either all dimensions or all metrics.
|
86
|
+
class AccessFilterExpression
|
87
|
+
include ::Google::Protobuf::MessageExts
|
88
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
89
|
+
end
|
90
|
+
|
91
|
+
# A list of filter expressions.
|
92
|
+
# @!attribute [rw] expressions
|
93
|
+
# @return [::Array<::Google::Analytics::Admin::V1alpha::AccessFilterExpression>]
|
94
|
+
# A list of filter expressions.
|
95
|
+
class AccessFilterExpressionList
|
96
|
+
include ::Google::Protobuf::MessageExts
|
97
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
98
|
+
end
|
99
|
+
|
100
|
+
# An expression to filter dimension or metric values.
|
101
|
+
# @!attribute [rw] string_filter
|
102
|
+
# @return [::Google::Analytics::Admin::V1alpha::AccessStringFilter]
|
103
|
+
# Strings related filter.
|
104
|
+
# @!attribute [rw] in_list_filter
|
105
|
+
# @return [::Google::Analytics::Admin::V1alpha::AccessInListFilter]
|
106
|
+
# A filter for in list values.
|
107
|
+
# @!attribute [rw] numeric_filter
|
108
|
+
# @return [::Google::Analytics::Admin::V1alpha::AccessNumericFilter]
|
109
|
+
# A filter for numeric or date values.
|
110
|
+
# @!attribute [rw] between_filter
|
111
|
+
# @return [::Google::Analytics::Admin::V1alpha::AccessBetweenFilter]
|
112
|
+
# A filter for two values.
|
113
|
+
# @!attribute [rw] field_name
|
114
|
+
# @return [::String]
|
115
|
+
# The dimension name or metric name.
|
116
|
+
class AccessFilter
|
117
|
+
include ::Google::Protobuf::MessageExts
|
118
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
119
|
+
end
|
120
|
+
|
121
|
+
# The filter for strings.
|
122
|
+
# @!attribute [rw] match_type
|
123
|
+
# @return [::Google::Analytics::Admin::V1alpha::AccessStringFilter::MatchType]
|
124
|
+
# The match type for this filter.
|
125
|
+
# @!attribute [rw] value
|
126
|
+
# @return [::String]
|
127
|
+
# The string value used for the matching.
|
128
|
+
# @!attribute [rw] case_sensitive
|
129
|
+
# @return [::Boolean]
|
130
|
+
# If true, the string value is case sensitive.
|
131
|
+
class AccessStringFilter
|
132
|
+
include ::Google::Protobuf::MessageExts
|
133
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
134
|
+
|
135
|
+
# The match type of a string filter.
|
136
|
+
module MatchType
|
137
|
+
# Unspecified
|
138
|
+
MATCH_TYPE_UNSPECIFIED = 0
|
139
|
+
|
140
|
+
# Exact match of the string value.
|
141
|
+
EXACT = 1
|
142
|
+
|
143
|
+
# Begins with the string value.
|
144
|
+
BEGINS_WITH = 2
|
145
|
+
|
146
|
+
# Ends with the string value.
|
147
|
+
ENDS_WITH = 3
|
148
|
+
|
149
|
+
# Contains the string value.
|
150
|
+
CONTAINS = 4
|
151
|
+
|
152
|
+
# Full match for the regular expression with the string value.
|
153
|
+
FULL_REGEXP = 5
|
154
|
+
|
155
|
+
# Partial match for the regular expression with the string value.
|
156
|
+
PARTIAL_REGEXP = 6
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
# The result needs to be in a list of string values.
|
161
|
+
# @!attribute [rw] values
|
162
|
+
# @return [::Array<::String>]
|
163
|
+
# The list of string values. Must be non-empty.
|
164
|
+
# @!attribute [rw] case_sensitive
|
165
|
+
# @return [::Boolean]
|
166
|
+
# If true, the string value is case sensitive.
|
167
|
+
class AccessInListFilter
|
168
|
+
include ::Google::Protobuf::MessageExts
|
169
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
170
|
+
end
|
171
|
+
|
172
|
+
# Filters for numeric or date values.
|
173
|
+
# @!attribute [rw] operation
|
174
|
+
# @return [::Google::Analytics::Admin::V1alpha::AccessNumericFilter::Operation]
|
175
|
+
# The operation type for this filter.
|
176
|
+
# @!attribute [rw] value
|
177
|
+
# @return [::Google::Analytics::Admin::V1alpha::NumericValue]
|
178
|
+
# A numeric value or a date value.
|
179
|
+
class AccessNumericFilter
|
180
|
+
include ::Google::Protobuf::MessageExts
|
181
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
182
|
+
|
183
|
+
# The operation applied to a numeric filter.
|
184
|
+
module Operation
|
185
|
+
# Unspecified.
|
186
|
+
OPERATION_UNSPECIFIED = 0
|
187
|
+
|
188
|
+
# Equal
|
189
|
+
EQUAL = 1
|
190
|
+
|
191
|
+
# Less than
|
192
|
+
LESS_THAN = 2
|
193
|
+
|
194
|
+
# Less than or equal
|
195
|
+
LESS_THAN_OR_EQUAL = 3
|
196
|
+
|
197
|
+
# Greater than
|
198
|
+
GREATER_THAN = 4
|
199
|
+
|
200
|
+
# Greater than or equal
|
201
|
+
GREATER_THAN_OR_EQUAL = 5
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
205
|
+
# To express that the result needs to be between two numbers (inclusive).
|
206
|
+
# @!attribute [rw] from_value
|
207
|
+
# @return [::Google::Analytics::Admin::V1alpha::NumericValue]
|
208
|
+
# Begins with this number.
|
209
|
+
# @!attribute [rw] to_value
|
210
|
+
# @return [::Google::Analytics::Admin::V1alpha::NumericValue]
|
211
|
+
# Ends with this number.
|
212
|
+
class AccessBetweenFilter
|
213
|
+
include ::Google::Protobuf::MessageExts
|
214
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
215
|
+
end
|
216
|
+
|
217
|
+
# To represent a number.
|
218
|
+
# @!attribute [rw] int64_value
|
219
|
+
# @return [::Integer]
|
220
|
+
# Integer value
|
221
|
+
# @!attribute [rw] double_value
|
222
|
+
# @return [::Float]
|
223
|
+
# Double value
|
224
|
+
class NumericValue
|
225
|
+
include ::Google::Protobuf::MessageExts
|
226
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
227
|
+
end
|
228
|
+
|
229
|
+
# Order bys define how rows will be sorted in the response. For example,
|
230
|
+
# ordering rows by descending access count is one ordering, and ordering rows
|
231
|
+
# by the country string is a different ordering.
|
232
|
+
# @!attribute [rw] metric
|
233
|
+
# @return [::Google::Analytics::Admin::V1alpha::AccessOrderBy::MetricOrderBy]
|
234
|
+
# Sorts results by a metric's values.
|
235
|
+
# @!attribute [rw] dimension
|
236
|
+
# @return [::Google::Analytics::Admin::V1alpha::AccessOrderBy::DimensionOrderBy]
|
237
|
+
# Sorts results by a dimension's values.
|
238
|
+
# @!attribute [rw] desc
|
239
|
+
# @return [::Boolean]
|
240
|
+
# If true, sorts by descending order. If false or unspecified, sorts in
|
241
|
+
# ascending order.
|
242
|
+
class AccessOrderBy
|
243
|
+
include ::Google::Protobuf::MessageExts
|
244
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
245
|
+
|
246
|
+
# Sorts by metric values.
|
247
|
+
# @!attribute [rw] metric_name
|
248
|
+
# @return [::String]
|
249
|
+
# A metric name in the request to order by.
|
250
|
+
class MetricOrderBy
|
251
|
+
include ::Google::Protobuf::MessageExts
|
252
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
253
|
+
end
|
254
|
+
|
255
|
+
# Sorts by dimension values.
|
256
|
+
# @!attribute [rw] dimension_name
|
257
|
+
# @return [::String]
|
258
|
+
# A dimension name in the request to order by.
|
259
|
+
# @!attribute [rw] order_type
|
260
|
+
# @return [::Google::Analytics::Admin::V1alpha::AccessOrderBy::DimensionOrderBy::OrderType]
|
261
|
+
# Controls the rule for dimension value ordering.
|
262
|
+
class DimensionOrderBy
|
263
|
+
include ::Google::Protobuf::MessageExts
|
264
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
265
|
+
|
266
|
+
# Rule to order the string dimension values by.
|
267
|
+
module OrderType
|
268
|
+
# Unspecified.
|
269
|
+
ORDER_TYPE_UNSPECIFIED = 0
|
270
|
+
|
271
|
+
# Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" <
|
272
|
+
# "b" < "z".
|
273
|
+
ALPHANUMERIC = 1
|
274
|
+
|
275
|
+
# Case insensitive alphanumeric sort by lower case Unicode code point.
|
276
|
+
# For example, "2" < "A" < "b" < "X" < "z".
|
277
|
+
CASE_INSENSITIVE_ALPHANUMERIC = 2
|
278
|
+
|
279
|
+
# Dimension values are converted to numbers before sorting. For example
|
280
|
+
# in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" <
|
281
|
+
# "25". Non-numeric dimension values all have equal ordering value below
|
282
|
+
# all numeric values.
|
283
|
+
NUMERIC = 3
|
284
|
+
end
|
285
|
+
end
|
286
|
+
end
|
287
|
+
|
288
|
+
# Describes a dimension column in the report. Dimensions requested in a report
|
289
|
+
# produce column entries within rows and DimensionHeaders. However, dimensions
|
290
|
+
# used exclusively within filters or expressions do not produce columns in a
|
291
|
+
# report; correspondingly, those dimensions do not produce headers.
|
292
|
+
# @!attribute [rw] dimension_name
|
293
|
+
# @return [::String]
|
294
|
+
# The dimension's name; for example 'userEmail'.
|
295
|
+
class AccessDimensionHeader
|
296
|
+
include ::Google::Protobuf::MessageExts
|
297
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
298
|
+
end
|
299
|
+
|
300
|
+
# Describes a metric column in the report. Visible metrics requested in a
|
301
|
+
# report produce column entries within rows and MetricHeaders. However,
|
302
|
+
# metrics used exclusively within filters or expressions do not produce columns
|
303
|
+
# in a report; correspondingly, those metrics do not produce headers.
|
304
|
+
# @!attribute [rw] metric_name
|
305
|
+
# @return [::String]
|
306
|
+
# The metric's name; for example 'accessCount'.
|
307
|
+
class AccessMetricHeader
|
308
|
+
include ::Google::Protobuf::MessageExts
|
309
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
310
|
+
end
|
311
|
+
|
312
|
+
# Access report data for each row.
|
313
|
+
# @!attribute [rw] dimension_values
|
314
|
+
# @return [::Array<::Google::Analytics::Admin::V1alpha::AccessDimensionValue>]
|
315
|
+
# List of dimension values. These values are in the same order as specified
|
316
|
+
# in the request.
|
317
|
+
# @!attribute [rw] metric_values
|
318
|
+
# @return [::Array<::Google::Analytics::Admin::V1alpha::AccessMetricValue>]
|
319
|
+
# List of metric values. These values are in the same order as specified
|
320
|
+
# in the request.
|
321
|
+
class AccessRow
|
322
|
+
include ::Google::Protobuf::MessageExts
|
323
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
324
|
+
end
|
325
|
+
|
326
|
+
# The value of a dimension.
|
327
|
+
# @!attribute [rw] value
|
328
|
+
# @return [::String]
|
329
|
+
# The dimension value. For example, this value may be 'France' for the
|
330
|
+
# 'country' dimension.
|
331
|
+
class AccessDimensionValue
|
332
|
+
include ::Google::Protobuf::MessageExts
|
333
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
334
|
+
end
|
335
|
+
|
336
|
+
# The value of a metric.
|
337
|
+
# @!attribute [rw] value
|
338
|
+
# @return [::String]
|
339
|
+
# The measurement value. For example, this value may be '13'.
|
340
|
+
class AccessMetricValue
|
341
|
+
include ::Google::Protobuf::MessageExts
|
342
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
343
|
+
end
|
344
|
+
|
345
|
+
# Current state of all quotas for this Analytics property. If any quota for a
|
346
|
+
# property is exhausted, all requests to that property will return Resource
|
347
|
+
# Exhausted errors.
|
348
|
+
# @!attribute [rw] tokens_per_day
|
349
|
+
# @return [::Google::Analytics::Admin::V1alpha::AccessQuotaStatus]
|
350
|
+
# Properties can use 250,000 tokens per day. Most requests consume fewer than
|
351
|
+
# 10 tokens.
|
352
|
+
# @!attribute [rw] tokens_per_hour
|
353
|
+
# @return [::Google::Analytics::Admin::V1alpha::AccessQuotaStatus]
|
354
|
+
# Properties can use 50,000 tokens per hour. An API request consumes a single
|
355
|
+
# number of tokens, and that number is deducted from all of the hourly,
|
356
|
+
# daily, and per project hourly quotas.
|
357
|
+
# @!attribute [rw] concurrent_requests
|
358
|
+
# @return [::Google::Analytics::Admin::V1alpha::AccessQuotaStatus]
|
359
|
+
# Properties can use up to 50 concurrent requests.
|
360
|
+
# @!attribute [rw] server_errors_per_project_per_hour
|
361
|
+
# @return [::Google::Analytics::Admin::V1alpha::AccessQuotaStatus]
|
362
|
+
# Properties and cloud project pairs can have up to 50 server errors per
|
363
|
+
# hour.
|
364
|
+
# @!attribute [rw] tokens_per_project_per_hour
|
365
|
+
# @return [::Google::Analytics::Admin::V1alpha::AccessQuotaStatus]
|
366
|
+
# Properties can use up to 25% of their tokens per project per hour. This
|
367
|
+
# amounts to Analytics 360 Properties can use 12,500 tokens per project per
|
368
|
+
# hour. An API request consumes a single number of tokens, and that number is
|
369
|
+
# deducted from all of the hourly, daily, and per project hourly quotas.
|
370
|
+
class AccessQuota
|
371
|
+
include ::Google::Protobuf::MessageExts
|
372
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
373
|
+
end
|
374
|
+
|
375
|
+
# Current state for a particular quota group.
|
376
|
+
# @!attribute [rw] consumed
|
377
|
+
# @return [::Integer]
|
378
|
+
# Quota consumed by this request.
|
379
|
+
# @!attribute [rw] remaining
|
380
|
+
# @return [::Integer]
|
381
|
+
# Quota remaining after this request.
|
382
|
+
class AccessQuotaStatus
|
383
|
+
include ::Google::Protobuf::MessageExts
|
384
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
385
|
+
end
|
386
|
+
end
|
387
|
+
end
|
388
|
+
end
|
389
|
+
end
|