google-analytics-admin 0.23.6__py3-none-any.whl

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.
Files changed (51) hide show
  1. google/analytics/admin/__init__.py +615 -0
  2. google/analytics/admin/gapic_version.py +16 -0
  3. google/analytics/admin/py.typed +2 -0
  4. google/analytics/admin_v1alpha/__init__.py +613 -0
  5. google/analytics/admin_v1alpha/gapic_metadata.json +2278 -0
  6. google/analytics/admin_v1alpha/gapic_version.py +16 -0
  7. google/analytics/admin_v1alpha/py.typed +2 -0
  8. google/analytics/admin_v1alpha/services/__init__.py +15 -0
  9. google/analytics/admin_v1alpha/services/analytics_admin_service/__init__.py +22 -0
  10. google/analytics/admin_v1alpha/services/analytics_admin_service/async_client.py +14122 -0
  11. google/analytics/admin_v1alpha/services/analytics_admin_service/client.py +14680 -0
  12. google/analytics/admin_v1alpha/services/analytics_admin_service/pagers.py +4337 -0
  13. google/analytics/admin_v1alpha/services/analytics_admin_service/transports/__init__.py +41 -0
  14. google/analytics/admin_v1alpha/services/analytics_admin_service/transports/base.py +2494 -0
  15. google/analytics/admin_v1alpha/services/analytics_admin_service/transports/grpc.py +4797 -0
  16. google/analytics/admin_v1alpha/services/analytics_admin_service/transports/grpc_asyncio.py +5671 -0
  17. google/analytics/admin_v1alpha/services/analytics_admin_service/transports/rest.py +31875 -0
  18. google/analytics/admin_v1alpha/services/analytics_admin_service/transports/rest_base.py +7944 -0
  19. google/analytics/admin_v1alpha/types/__init__.py +602 -0
  20. google/analytics/admin_v1alpha/types/access_report.py +705 -0
  21. google/analytics/admin_v1alpha/types/analytics_admin.py +4997 -0
  22. google/analytics/admin_v1alpha/types/audience.py +781 -0
  23. google/analytics/admin_v1alpha/types/channel_group.py +309 -0
  24. google/analytics/admin_v1alpha/types/event_create_and_edit.py +298 -0
  25. google/analytics/admin_v1alpha/types/expanded_data_set.py +282 -0
  26. google/analytics/admin_v1alpha/types/resources.py +3289 -0
  27. google/analytics/admin_v1alpha/types/subproperty_event_filter.py +292 -0
  28. google/analytics/admin_v1beta/__init__.py +255 -0
  29. google/analytics/admin_v1beta/gapic_metadata.json +838 -0
  30. google/analytics/admin_v1beta/gapic_version.py +16 -0
  31. google/analytics/admin_v1beta/py.typed +2 -0
  32. google/analytics/admin_v1beta/services/__init__.py +15 -0
  33. google/analytics/admin_v1beta/services/analytics_admin_service/__init__.py +22 -0
  34. google/analytics/admin_v1beta/services/analytics_admin_service/async_client.py +6707 -0
  35. google/analytics/admin_v1beta/services/analytics_admin_service/client.py +7164 -0
  36. google/analytics/admin_v1beta/services/analytics_admin_service/pagers.py +1927 -0
  37. google/analytics/admin_v1beta/services/analytics_admin_service/transports/__init__.py +41 -0
  38. google/analytics/admin_v1beta/services/analytics_admin_service/transports/base.py +965 -0
  39. google/analytics/admin_v1beta/services/analytics_admin_service/transports/grpc.py +1917 -0
  40. google/analytics/admin_v1beta/services/analytics_admin_service/transports/grpc_asyncio.py +2251 -0
  41. google/analytics/admin_v1beta/services/analytics_admin_service/transports/rest.py +11423 -0
  42. google/analytics/admin_v1beta/services/analytics_admin_service/transports/rest_base.py +2857 -0
  43. google/analytics/admin_v1beta/types/__init__.py +244 -0
  44. google/analytics/admin_v1beta/types/access_report.py +705 -0
  45. google/analytics/admin_v1beta/types/analytics_admin.py +2006 -0
  46. google/analytics/admin_v1beta/types/resources.py +1677 -0
  47. google_analytics_admin-0.23.6.dist-info/LICENSE +202 -0
  48. google_analytics_admin-0.23.6.dist-info/METADATA +228 -0
  49. google_analytics_admin-0.23.6.dist-info/RECORD +51 -0
  50. google_analytics_admin-0.23.6.dist-info/WHEEL +5 -0
  51. google_analytics_admin-0.23.6.dist-info/top_level.txt +1 -0
@@ -0,0 +1,705 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2024 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ __protobuf__ = proto.module(
23
+ package="google.analytics.admin.v1beta",
24
+ manifest={
25
+ "AccessDimension",
26
+ "AccessMetric",
27
+ "AccessDateRange",
28
+ "AccessFilterExpression",
29
+ "AccessFilterExpressionList",
30
+ "AccessFilter",
31
+ "AccessStringFilter",
32
+ "AccessInListFilter",
33
+ "AccessNumericFilter",
34
+ "AccessBetweenFilter",
35
+ "NumericValue",
36
+ "AccessOrderBy",
37
+ "AccessDimensionHeader",
38
+ "AccessMetricHeader",
39
+ "AccessRow",
40
+ "AccessDimensionValue",
41
+ "AccessMetricValue",
42
+ "AccessQuota",
43
+ "AccessQuotaStatus",
44
+ },
45
+ )
46
+
47
+
48
+ class AccessDimension(proto.Message):
49
+ r"""Dimensions are attributes of your data. For example, the dimension
50
+ ``userEmail`` indicates the email of the user that accessed
51
+ reporting data. Dimension values in report responses are strings.
52
+
53
+ Attributes:
54
+ dimension_name (str):
55
+ The API name of the dimension. See `Data Access
56
+ Schema <https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema>`__
57
+ for the list of dimensions supported in this API.
58
+
59
+ Dimensions are referenced by name in ``dimensionFilter`` and
60
+ ``orderBys``.
61
+ """
62
+
63
+ dimension_name: str = proto.Field(
64
+ proto.STRING,
65
+ number=1,
66
+ )
67
+
68
+
69
+ class AccessMetric(proto.Message):
70
+ r"""The quantitative measurements of a report. For example, the metric
71
+ ``accessCount`` is the total number of data access records.
72
+
73
+ Attributes:
74
+ metric_name (str):
75
+ The API name of the metric. See `Data Access
76
+ Schema <https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema>`__
77
+ for the list of metrics supported in this API.
78
+
79
+ Metrics are referenced by name in ``metricFilter`` &
80
+ ``orderBys``.
81
+ """
82
+
83
+ metric_name: str = proto.Field(
84
+ proto.STRING,
85
+ number=1,
86
+ )
87
+
88
+
89
+ class AccessDateRange(proto.Message):
90
+ r"""A contiguous range of days: startDate, startDate + 1, ...,
91
+ endDate.
92
+
93
+ Attributes:
94
+ start_date (str):
95
+ The inclusive start date for the query in the format
96
+ ``YYYY-MM-DD``. Cannot be after ``endDate``. The format
97
+ ``NdaysAgo``, ``yesterday``, or ``today`` is also accepted,
98
+ and in that case, the date is inferred based on the current
99
+ time in the request's time zone.
100
+ end_date (str):
101
+ The inclusive end date for the query in the format
102
+ ``YYYY-MM-DD``. Cannot be before ``startDate``. The format
103
+ ``NdaysAgo``, ``yesterday``, or ``today`` is also accepted,
104
+ and in that case, the date is inferred based on the current
105
+ time in the request's time zone.
106
+ """
107
+
108
+ start_date: str = proto.Field(
109
+ proto.STRING,
110
+ number=1,
111
+ )
112
+ end_date: str = proto.Field(
113
+ proto.STRING,
114
+ number=2,
115
+ )
116
+
117
+
118
+ class AccessFilterExpression(proto.Message):
119
+ r"""Expresses dimension or metric filters. The fields in the same
120
+ expression need to be either all dimensions or all metrics.
121
+
122
+ This message has `oneof`_ fields (mutually exclusive fields).
123
+ For each oneof, at most one member field can be set at the same time.
124
+ Setting any member of the oneof automatically clears all other
125
+ members.
126
+
127
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
128
+
129
+ Attributes:
130
+ and_group (google.analytics.admin_v1beta.types.AccessFilterExpressionList):
131
+ Each of the FilterExpressions in the and_group has an AND
132
+ relationship.
133
+
134
+ This field is a member of `oneof`_ ``one_expression``.
135
+ or_group (google.analytics.admin_v1beta.types.AccessFilterExpressionList):
136
+ Each of the FilterExpressions in the or_group has an OR
137
+ relationship.
138
+
139
+ This field is a member of `oneof`_ ``one_expression``.
140
+ not_expression (google.analytics.admin_v1beta.types.AccessFilterExpression):
141
+ The FilterExpression is NOT of not_expression.
142
+
143
+ This field is a member of `oneof`_ ``one_expression``.
144
+ access_filter (google.analytics.admin_v1beta.types.AccessFilter):
145
+ A primitive filter. In the same
146
+ FilterExpression, all of the filter's field
147
+ names need to be either all dimensions or all
148
+ metrics.
149
+
150
+ This field is a member of `oneof`_ ``one_expression``.
151
+ """
152
+
153
+ and_group: "AccessFilterExpressionList" = proto.Field(
154
+ proto.MESSAGE,
155
+ number=1,
156
+ oneof="one_expression",
157
+ message="AccessFilterExpressionList",
158
+ )
159
+ or_group: "AccessFilterExpressionList" = proto.Field(
160
+ proto.MESSAGE,
161
+ number=2,
162
+ oneof="one_expression",
163
+ message="AccessFilterExpressionList",
164
+ )
165
+ not_expression: "AccessFilterExpression" = proto.Field(
166
+ proto.MESSAGE,
167
+ number=3,
168
+ oneof="one_expression",
169
+ message="AccessFilterExpression",
170
+ )
171
+ access_filter: "AccessFilter" = proto.Field(
172
+ proto.MESSAGE,
173
+ number=4,
174
+ oneof="one_expression",
175
+ message="AccessFilter",
176
+ )
177
+
178
+
179
+ class AccessFilterExpressionList(proto.Message):
180
+ r"""A list of filter expressions.
181
+
182
+ Attributes:
183
+ expressions (MutableSequence[google.analytics.admin_v1beta.types.AccessFilterExpression]):
184
+ A list of filter expressions.
185
+ """
186
+
187
+ expressions: MutableSequence["AccessFilterExpression"] = proto.RepeatedField(
188
+ proto.MESSAGE,
189
+ number=1,
190
+ message="AccessFilterExpression",
191
+ )
192
+
193
+
194
+ class AccessFilter(proto.Message):
195
+ r"""An expression to filter dimension or metric values.
196
+
197
+ This message has `oneof`_ fields (mutually exclusive fields).
198
+ For each oneof, at most one member field can be set at the same time.
199
+ Setting any member of the oneof automatically clears all other
200
+ members.
201
+
202
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
203
+
204
+ Attributes:
205
+ string_filter (google.analytics.admin_v1beta.types.AccessStringFilter):
206
+ Strings related filter.
207
+
208
+ This field is a member of `oneof`_ ``one_filter``.
209
+ in_list_filter (google.analytics.admin_v1beta.types.AccessInListFilter):
210
+ A filter for in list values.
211
+
212
+ This field is a member of `oneof`_ ``one_filter``.
213
+ numeric_filter (google.analytics.admin_v1beta.types.AccessNumericFilter):
214
+ A filter for numeric or date values.
215
+
216
+ This field is a member of `oneof`_ ``one_filter``.
217
+ between_filter (google.analytics.admin_v1beta.types.AccessBetweenFilter):
218
+ A filter for two values.
219
+
220
+ This field is a member of `oneof`_ ``one_filter``.
221
+ field_name (str):
222
+ The dimension name or metric name.
223
+ """
224
+
225
+ string_filter: "AccessStringFilter" = proto.Field(
226
+ proto.MESSAGE,
227
+ number=2,
228
+ oneof="one_filter",
229
+ message="AccessStringFilter",
230
+ )
231
+ in_list_filter: "AccessInListFilter" = proto.Field(
232
+ proto.MESSAGE,
233
+ number=3,
234
+ oneof="one_filter",
235
+ message="AccessInListFilter",
236
+ )
237
+ numeric_filter: "AccessNumericFilter" = proto.Field(
238
+ proto.MESSAGE,
239
+ number=4,
240
+ oneof="one_filter",
241
+ message="AccessNumericFilter",
242
+ )
243
+ between_filter: "AccessBetweenFilter" = proto.Field(
244
+ proto.MESSAGE,
245
+ number=5,
246
+ oneof="one_filter",
247
+ message="AccessBetweenFilter",
248
+ )
249
+ field_name: str = proto.Field(
250
+ proto.STRING,
251
+ number=1,
252
+ )
253
+
254
+
255
+ class AccessStringFilter(proto.Message):
256
+ r"""The filter for strings.
257
+
258
+ Attributes:
259
+ match_type (google.analytics.admin_v1beta.types.AccessStringFilter.MatchType):
260
+ The match type for this filter.
261
+ value (str):
262
+ The string value used for the matching.
263
+ case_sensitive (bool):
264
+ If true, the string value is case sensitive.
265
+ """
266
+
267
+ class MatchType(proto.Enum):
268
+ r"""The match type of a string filter.
269
+
270
+ Values:
271
+ MATCH_TYPE_UNSPECIFIED (0):
272
+ Unspecified
273
+ EXACT (1):
274
+ Exact match of the string value.
275
+ BEGINS_WITH (2):
276
+ Begins with the string value.
277
+ ENDS_WITH (3):
278
+ Ends with the string value.
279
+ CONTAINS (4):
280
+ Contains the string value.
281
+ FULL_REGEXP (5):
282
+ Full match for the regular expression with
283
+ the string value.
284
+ PARTIAL_REGEXP (6):
285
+ Partial match for the regular expression with
286
+ the string value.
287
+ """
288
+ MATCH_TYPE_UNSPECIFIED = 0
289
+ EXACT = 1
290
+ BEGINS_WITH = 2
291
+ ENDS_WITH = 3
292
+ CONTAINS = 4
293
+ FULL_REGEXP = 5
294
+ PARTIAL_REGEXP = 6
295
+
296
+ match_type: MatchType = proto.Field(
297
+ proto.ENUM,
298
+ number=1,
299
+ enum=MatchType,
300
+ )
301
+ value: str = proto.Field(
302
+ proto.STRING,
303
+ number=2,
304
+ )
305
+ case_sensitive: bool = proto.Field(
306
+ proto.BOOL,
307
+ number=3,
308
+ )
309
+
310
+
311
+ class AccessInListFilter(proto.Message):
312
+ r"""The result needs to be in a list of string values.
313
+
314
+ Attributes:
315
+ values (MutableSequence[str]):
316
+ The list of string values. Must be non-empty.
317
+ case_sensitive (bool):
318
+ If true, the string value is case sensitive.
319
+ """
320
+
321
+ values: MutableSequence[str] = proto.RepeatedField(
322
+ proto.STRING,
323
+ number=1,
324
+ )
325
+ case_sensitive: bool = proto.Field(
326
+ proto.BOOL,
327
+ number=2,
328
+ )
329
+
330
+
331
+ class AccessNumericFilter(proto.Message):
332
+ r"""Filters for numeric or date values.
333
+
334
+ Attributes:
335
+ operation (google.analytics.admin_v1beta.types.AccessNumericFilter.Operation):
336
+ The operation type for this filter.
337
+ value (google.analytics.admin_v1beta.types.NumericValue):
338
+ A numeric value or a date value.
339
+ """
340
+
341
+ class Operation(proto.Enum):
342
+ r"""The operation applied to a numeric filter.
343
+
344
+ Values:
345
+ OPERATION_UNSPECIFIED (0):
346
+ Unspecified.
347
+ EQUAL (1):
348
+ Equal
349
+ LESS_THAN (2):
350
+ Less than
351
+ LESS_THAN_OR_EQUAL (3):
352
+ Less than or equal
353
+ GREATER_THAN (4):
354
+ Greater than
355
+ GREATER_THAN_OR_EQUAL (5):
356
+ Greater than or equal
357
+ """
358
+ OPERATION_UNSPECIFIED = 0
359
+ EQUAL = 1
360
+ LESS_THAN = 2
361
+ LESS_THAN_OR_EQUAL = 3
362
+ GREATER_THAN = 4
363
+ GREATER_THAN_OR_EQUAL = 5
364
+
365
+ operation: Operation = proto.Field(
366
+ proto.ENUM,
367
+ number=1,
368
+ enum=Operation,
369
+ )
370
+ value: "NumericValue" = proto.Field(
371
+ proto.MESSAGE,
372
+ number=2,
373
+ message="NumericValue",
374
+ )
375
+
376
+
377
+ class AccessBetweenFilter(proto.Message):
378
+ r"""To express that the result needs to be between two numbers
379
+ (inclusive).
380
+
381
+ Attributes:
382
+ from_value (google.analytics.admin_v1beta.types.NumericValue):
383
+ Begins with this number.
384
+ to_value (google.analytics.admin_v1beta.types.NumericValue):
385
+ Ends with this number.
386
+ """
387
+
388
+ from_value: "NumericValue" = proto.Field(
389
+ proto.MESSAGE,
390
+ number=1,
391
+ message="NumericValue",
392
+ )
393
+ to_value: "NumericValue" = proto.Field(
394
+ proto.MESSAGE,
395
+ number=2,
396
+ message="NumericValue",
397
+ )
398
+
399
+
400
+ class NumericValue(proto.Message):
401
+ r"""To represent a number.
402
+
403
+ This message has `oneof`_ fields (mutually exclusive fields).
404
+ For each oneof, at most one member field can be set at the same time.
405
+ Setting any member of the oneof automatically clears all other
406
+ members.
407
+
408
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
409
+
410
+ Attributes:
411
+ int64_value (int):
412
+ Integer value
413
+
414
+ This field is a member of `oneof`_ ``one_value``.
415
+ double_value (float):
416
+ Double value
417
+
418
+ This field is a member of `oneof`_ ``one_value``.
419
+ """
420
+
421
+ int64_value: int = proto.Field(
422
+ proto.INT64,
423
+ number=1,
424
+ oneof="one_value",
425
+ )
426
+ double_value: float = proto.Field(
427
+ proto.DOUBLE,
428
+ number=2,
429
+ oneof="one_value",
430
+ )
431
+
432
+
433
+ class AccessOrderBy(proto.Message):
434
+ r"""Order bys define how rows will be sorted in the response. For
435
+ example, ordering rows by descending access count is one
436
+ ordering, and ordering rows by the country string is a different
437
+ ordering.
438
+
439
+ This message has `oneof`_ fields (mutually exclusive fields).
440
+ For each oneof, at most one member field can be set at the same time.
441
+ Setting any member of the oneof automatically clears all other
442
+ members.
443
+
444
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
445
+
446
+ Attributes:
447
+ metric (google.analytics.admin_v1beta.types.AccessOrderBy.MetricOrderBy):
448
+ Sorts results by a metric's values.
449
+
450
+ This field is a member of `oneof`_ ``one_order_by``.
451
+ dimension (google.analytics.admin_v1beta.types.AccessOrderBy.DimensionOrderBy):
452
+ Sorts results by a dimension's values.
453
+
454
+ This field is a member of `oneof`_ ``one_order_by``.
455
+ desc (bool):
456
+ If true, sorts by descending order. If false
457
+ or unspecified, sorts in ascending order.
458
+ """
459
+
460
+ class MetricOrderBy(proto.Message):
461
+ r"""Sorts by metric values.
462
+
463
+ Attributes:
464
+ metric_name (str):
465
+ A metric name in the request to order by.
466
+ """
467
+
468
+ metric_name: str = proto.Field(
469
+ proto.STRING,
470
+ number=1,
471
+ )
472
+
473
+ class DimensionOrderBy(proto.Message):
474
+ r"""Sorts by dimension values.
475
+
476
+ Attributes:
477
+ dimension_name (str):
478
+ A dimension name in the request to order by.
479
+ order_type (google.analytics.admin_v1beta.types.AccessOrderBy.DimensionOrderBy.OrderType):
480
+ Controls the rule for dimension value
481
+ ordering.
482
+ """
483
+
484
+ class OrderType(proto.Enum):
485
+ r"""Rule to order the string dimension values by.
486
+
487
+ Values:
488
+ ORDER_TYPE_UNSPECIFIED (0):
489
+ Unspecified.
490
+ ALPHANUMERIC (1):
491
+ Alphanumeric sort by Unicode code point. For
492
+ example, "2" < "A" < "X" < "b" < "z".
493
+ CASE_INSENSITIVE_ALPHANUMERIC (2):
494
+ Case insensitive alphanumeric sort by lower
495
+ case Unicode code point. For example, "2" < "A"
496
+ < "b" < "X" < "z".
497
+ NUMERIC (3):
498
+ Dimension values are converted to numbers before sorting.
499
+ For example in NUMERIC sort, "25" < "100", and in
500
+ ``ALPHANUMERIC`` sort, "100" < "25". Non-numeric dimension
501
+ values all have equal ordering value below all numeric
502
+ values.
503
+ """
504
+ ORDER_TYPE_UNSPECIFIED = 0
505
+ ALPHANUMERIC = 1
506
+ CASE_INSENSITIVE_ALPHANUMERIC = 2
507
+ NUMERIC = 3
508
+
509
+ dimension_name: str = proto.Field(
510
+ proto.STRING,
511
+ number=1,
512
+ )
513
+ order_type: "AccessOrderBy.DimensionOrderBy.OrderType" = proto.Field(
514
+ proto.ENUM,
515
+ number=2,
516
+ enum="AccessOrderBy.DimensionOrderBy.OrderType",
517
+ )
518
+
519
+ metric: MetricOrderBy = proto.Field(
520
+ proto.MESSAGE,
521
+ number=1,
522
+ oneof="one_order_by",
523
+ message=MetricOrderBy,
524
+ )
525
+ dimension: DimensionOrderBy = proto.Field(
526
+ proto.MESSAGE,
527
+ number=2,
528
+ oneof="one_order_by",
529
+ message=DimensionOrderBy,
530
+ )
531
+ desc: bool = proto.Field(
532
+ proto.BOOL,
533
+ number=3,
534
+ )
535
+
536
+
537
+ class AccessDimensionHeader(proto.Message):
538
+ r"""Describes a dimension column in the report. Dimensions
539
+ requested in a report produce column entries within rows and
540
+ DimensionHeaders. However, dimensions used exclusively within
541
+ filters or expressions do not produce columns in a report;
542
+ correspondingly, those dimensions do not produce headers.
543
+
544
+ Attributes:
545
+ dimension_name (str):
546
+ The dimension's name; for example
547
+ 'userEmail'.
548
+ """
549
+
550
+ dimension_name: str = proto.Field(
551
+ proto.STRING,
552
+ number=1,
553
+ )
554
+
555
+
556
+ class AccessMetricHeader(proto.Message):
557
+ r"""Describes a metric column in the report. Visible metrics
558
+ requested in a report produce column entries within rows and
559
+ MetricHeaders. However, metrics used exclusively within filters
560
+ or expressions do not produce columns in a report;
561
+ correspondingly, those metrics do not produce headers.
562
+
563
+ Attributes:
564
+ metric_name (str):
565
+ The metric's name; for example 'accessCount'.
566
+ """
567
+
568
+ metric_name: str = proto.Field(
569
+ proto.STRING,
570
+ number=1,
571
+ )
572
+
573
+
574
+ class AccessRow(proto.Message):
575
+ r"""Access report data for each row.
576
+
577
+ Attributes:
578
+ dimension_values (MutableSequence[google.analytics.admin_v1beta.types.AccessDimensionValue]):
579
+ List of dimension values. These values are in
580
+ the same order as specified in the request.
581
+ metric_values (MutableSequence[google.analytics.admin_v1beta.types.AccessMetricValue]):
582
+ List of metric values. These values are in
583
+ the same order as specified in the request.
584
+ """
585
+
586
+ dimension_values: MutableSequence["AccessDimensionValue"] = proto.RepeatedField(
587
+ proto.MESSAGE,
588
+ number=1,
589
+ message="AccessDimensionValue",
590
+ )
591
+ metric_values: MutableSequence["AccessMetricValue"] = proto.RepeatedField(
592
+ proto.MESSAGE,
593
+ number=2,
594
+ message="AccessMetricValue",
595
+ )
596
+
597
+
598
+ class AccessDimensionValue(proto.Message):
599
+ r"""The value of a dimension.
600
+
601
+ Attributes:
602
+ value (str):
603
+ The dimension value. For example, this value
604
+ may be 'France' for the 'country' dimension.
605
+ """
606
+
607
+ value: str = proto.Field(
608
+ proto.STRING,
609
+ number=1,
610
+ )
611
+
612
+
613
+ class AccessMetricValue(proto.Message):
614
+ r"""The value of a metric.
615
+
616
+ Attributes:
617
+ value (str):
618
+ The measurement value. For example, this
619
+ value may be '13'.
620
+ """
621
+
622
+ value: str = proto.Field(
623
+ proto.STRING,
624
+ number=1,
625
+ )
626
+
627
+
628
+ class AccessQuota(proto.Message):
629
+ r"""Current state of all quotas for this Analytics property. If
630
+ any quota for a property is exhausted, all requests to that
631
+ property will return Resource Exhausted errors.
632
+
633
+ Attributes:
634
+ tokens_per_day (google.analytics.admin_v1beta.types.AccessQuotaStatus):
635
+ Properties can use 250,000 tokens per day.
636
+ Most requests consume fewer than 10 tokens.
637
+ tokens_per_hour (google.analytics.admin_v1beta.types.AccessQuotaStatus):
638
+ Properties can use 50,000 tokens per hour. An
639
+ API request consumes a single number of tokens,
640
+ and that number is deducted from all of the
641
+ hourly, daily, and per project hourly quotas.
642
+ concurrent_requests (google.analytics.admin_v1beta.types.AccessQuotaStatus):
643
+ Properties can use up to 50 concurrent
644
+ requests.
645
+ server_errors_per_project_per_hour (google.analytics.admin_v1beta.types.AccessQuotaStatus):
646
+ Properties and cloud project pairs can have
647
+ up to 50 server errors per hour.
648
+ tokens_per_project_per_hour (google.analytics.admin_v1beta.types.AccessQuotaStatus):
649
+ Properties can use up to 25% of their tokens
650
+ per project per hour. This amounts to Analytics
651
+ 360 Properties can use 12,500 tokens per project
652
+ per hour. An API request consumes a single
653
+ number of tokens, and that number is deducted
654
+ from all of the hourly, daily, and per project
655
+ hourly quotas.
656
+ """
657
+
658
+ tokens_per_day: "AccessQuotaStatus" = proto.Field(
659
+ proto.MESSAGE,
660
+ number=1,
661
+ message="AccessQuotaStatus",
662
+ )
663
+ tokens_per_hour: "AccessQuotaStatus" = proto.Field(
664
+ proto.MESSAGE,
665
+ number=2,
666
+ message="AccessQuotaStatus",
667
+ )
668
+ concurrent_requests: "AccessQuotaStatus" = proto.Field(
669
+ proto.MESSAGE,
670
+ number=3,
671
+ message="AccessQuotaStatus",
672
+ )
673
+ server_errors_per_project_per_hour: "AccessQuotaStatus" = proto.Field(
674
+ proto.MESSAGE,
675
+ number=4,
676
+ message="AccessQuotaStatus",
677
+ )
678
+ tokens_per_project_per_hour: "AccessQuotaStatus" = proto.Field(
679
+ proto.MESSAGE,
680
+ number=5,
681
+ message="AccessQuotaStatus",
682
+ )
683
+
684
+
685
+ class AccessQuotaStatus(proto.Message):
686
+ r"""Current state for a particular quota group.
687
+
688
+ Attributes:
689
+ consumed (int):
690
+ Quota consumed by this request.
691
+ remaining (int):
692
+ Quota remaining after this request.
693
+ """
694
+
695
+ consumed: int = proto.Field(
696
+ proto.INT32,
697
+ number=1,
698
+ )
699
+ remaining: int = proto.Field(
700
+ proto.INT32,
701
+ number=2,
702
+ )
703
+
704
+
705
+ __all__ = tuple(sorted(__protobuf__.manifest))