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.
- google/analytics/admin/__init__.py +615 -0
- google/analytics/admin/gapic_version.py +16 -0
- google/analytics/admin/py.typed +2 -0
- google/analytics/admin_v1alpha/__init__.py +613 -0
- google/analytics/admin_v1alpha/gapic_metadata.json +2278 -0
- google/analytics/admin_v1alpha/gapic_version.py +16 -0
- google/analytics/admin_v1alpha/py.typed +2 -0
- google/analytics/admin_v1alpha/services/__init__.py +15 -0
- google/analytics/admin_v1alpha/services/analytics_admin_service/__init__.py +22 -0
- google/analytics/admin_v1alpha/services/analytics_admin_service/async_client.py +14122 -0
- google/analytics/admin_v1alpha/services/analytics_admin_service/client.py +14680 -0
- google/analytics/admin_v1alpha/services/analytics_admin_service/pagers.py +4337 -0
- google/analytics/admin_v1alpha/services/analytics_admin_service/transports/__init__.py +41 -0
- google/analytics/admin_v1alpha/services/analytics_admin_service/transports/base.py +2494 -0
- google/analytics/admin_v1alpha/services/analytics_admin_service/transports/grpc.py +4797 -0
- google/analytics/admin_v1alpha/services/analytics_admin_service/transports/grpc_asyncio.py +5671 -0
- google/analytics/admin_v1alpha/services/analytics_admin_service/transports/rest.py +31875 -0
- google/analytics/admin_v1alpha/services/analytics_admin_service/transports/rest_base.py +7944 -0
- google/analytics/admin_v1alpha/types/__init__.py +602 -0
- google/analytics/admin_v1alpha/types/access_report.py +705 -0
- google/analytics/admin_v1alpha/types/analytics_admin.py +4997 -0
- google/analytics/admin_v1alpha/types/audience.py +781 -0
- google/analytics/admin_v1alpha/types/channel_group.py +309 -0
- google/analytics/admin_v1alpha/types/event_create_and_edit.py +298 -0
- google/analytics/admin_v1alpha/types/expanded_data_set.py +282 -0
- google/analytics/admin_v1alpha/types/resources.py +3289 -0
- google/analytics/admin_v1alpha/types/subproperty_event_filter.py +292 -0
- google/analytics/admin_v1beta/__init__.py +255 -0
- google/analytics/admin_v1beta/gapic_metadata.json +838 -0
- google/analytics/admin_v1beta/gapic_version.py +16 -0
- google/analytics/admin_v1beta/py.typed +2 -0
- google/analytics/admin_v1beta/services/__init__.py +15 -0
- google/analytics/admin_v1beta/services/analytics_admin_service/__init__.py +22 -0
- google/analytics/admin_v1beta/services/analytics_admin_service/async_client.py +6707 -0
- google/analytics/admin_v1beta/services/analytics_admin_service/client.py +7164 -0
- google/analytics/admin_v1beta/services/analytics_admin_service/pagers.py +1927 -0
- google/analytics/admin_v1beta/services/analytics_admin_service/transports/__init__.py +41 -0
- google/analytics/admin_v1beta/services/analytics_admin_service/transports/base.py +965 -0
- google/analytics/admin_v1beta/services/analytics_admin_service/transports/grpc.py +1917 -0
- google/analytics/admin_v1beta/services/analytics_admin_service/transports/grpc_asyncio.py +2251 -0
- google/analytics/admin_v1beta/services/analytics_admin_service/transports/rest.py +11423 -0
- google/analytics/admin_v1beta/services/analytics_admin_service/transports/rest_base.py +2857 -0
- google/analytics/admin_v1beta/types/__init__.py +244 -0
- google/analytics/admin_v1beta/types/access_report.py +705 -0
- google/analytics/admin_v1beta/types/analytics_admin.py +2006 -0
- google/analytics/admin_v1beta/types/resources.py +1677 -0
- google_analytics_admin-0.23.6.dist-info/LICENSE +202 -0
- google_analytics_admin-0.23.6.dist-info/METADATA +228 -0
- google_analytics_admin-0.23.6.dist-info/RECORD +51 -0
- google_analytics_admin-0.23.6.dist-info/WHEEL +5 -0
- google_analytics_admin-0.23.6.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,282 @@
|
|
|
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
|
+
from google.protobuf import timestamp_pb2 # type: ignore
|
|
21
|
+
import proto # type: ignore
|
|
22
|
+
|
|
23
|
+
__protobuf__ = proto.module(
|
|
24
|
+
package="google.analytics.admin.v1alpha",
|
|
25
|
+
manifest={
|
|
26
|
+
"ExpandedDataSetFilter",
|
|
27
|
+
"ExpandedDataSetFilterExpression",
|
|
28
|
+
"ExpandedDataSetFilterExpressionList",
|
|
29
|
+
"ExpandedDataSet",
|
|
30
|
+
},
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class ExpandedDataSetFilter(proto.Message):
|
|
35
|
+
r"""A specific filter for a single dimension
|
|
36
|
+
|
|
37
|
+
This message has `oneof`_ fields (mutually exclusive fields).
|
|
38
|
+
For each oneof, at most one member field can be set at the same time.
|
|
39
|
+
Setting any member of the oneof automatically clears all other
|
|
40
|
+
members.
|
|
41
|
+
|
|
42
|
+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
|
|
43
|
+
|
|
44
|
+
Attributes:
|
|
45
|
+
string_filter (google.analytics.admin_v1alpha.types.ExpandedDataSetFilter.StringFilter):
|
|
46
|
+
A filter for a string-type dimension that
|
|
47
|
+
matches a particular pattern.
|
|
48
|
+
|
|
49
|
+
This field is a member of `oneof`_ ``one_filter``.
|
|
50
|
+
in_list_filter (google.analytics.admin_v1alpha.types.ExpandedDataSetFilter.InListFilter):
|
|
51
|
+
A filter for a string dimension that matches
|
|
52
|
+
a particular list of options.
|
|
53
|
+
|
|
54
|
+
This field is a member of `oneof`_ ``one_filter``.
|
|
55
|
+
field_name (str):
|
|
56
|
+
Required. The dimension name to filter.
|
|
57
|
+
"""
|
|
58
|
+
|
|
59
|
+
class StringFilter(proto.Message):
|
|
60
|
+
r"""A filter for a string-type dimension that matches a
|
|
61
|
+
particular pattern.
|
|
62
|
+
|
|
63
|
+
Attributes:
|
|
64
|
+
match_type (google.analytics.admin_v1alpha.types.ExpandedDataSetFilter.StringFilter.MatchType):
|
|
65
|
+
Required. The match type for the string
|
|
66
|
+
filter.
|
|
67
|
+
value (str):
|
|
68
|
+
Required. The string value to be matched
|
|
69
|
+
against.
|
|
70
|
+
case_sensitive (bool):
|
|
71
|
+
Optional. If true, the match is case-sensitive. If false,
|
|
72
|
+
the match is case-insensitive. Must be true when match_type
|
|
73
|
+
is EXACT. Must be false when match_type is CONTAINS.
|
|
74
|
+
"""
|
|
75
|
+
|
|
76
|
+
class MatchType(proto.Enum):
|
|
77
|
+
r"""The match type for the string filter.
|
|
78
|
+
|
|
79
|
+
Values:
|
|
80
|
+
MATCH_TYPE_UNSPECIFIED (0):
|
|
81
|
+
Unspecified
|
|
82
|
+
EXACT (1):
|
|
83
|
+
Exact match of the string value.
|
|
84
|
+
CONTAINS (2):
|
|
85
|
+
Contains the string value.
|
|
86
|
+
"""
|
|
87
|
+
MATCH_TYPE_UNSPECIFIED = 0
|
|
88
|
+
EXACT = 1
|
|
89
|
+
CONTAINS = 2
|
|
90
|
+
|
|
91
|
+
match_type: "ExpandedDataSetFilter.StringFilter.MatchType" = proto.Field(
|
|
92
|
+
proto.ENUM,
|
|
93
|
+
number=1,
|
|
94
|
+
enum="ExpandedDataSetFilter.StringFilter.MatchType",
|
|
95
|
+
)
|
|
96
|
+
value: str = proto.Field(
|
|
97
|
+
proto.STRING,
|
|
98
|
+
number=2,
|
|
99
|
+
)
|
|
100
|
+
case_sensitive: bool = proto.Field(
|
|
101
|
+
proto.BOOL,
|
|
102
|
+
number=3,
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
class InListFilter(proto.Message):
|
|
106
|
+
r"""A filter for a string dimension that matches a particular
|
|
107
|
+
list of options.
|
|
108
|
+
|
|
109
|
+
Attributes:
|
|
110
|
+
values (MutableSequence[str]):
|
|
111
|
+
Required. The list of possible string values
|
|
112
|
+
to match against. Must be non-empty.
|
|
113
|
+
case_sensitive (bool):
|
|
114
|
+
Optional. If true, the match is
|
|
115
|
+
case-sensitive. If false, the match is
|
|
116
|
+
case-insensitive. Must be true.
|
|
117
|
+
"""
|
|
118
|
+
|
|
119
|
+
values: MutableSequence[str] = proto.RepeatedField(
|
|
120
|
+
proto.STRING,
|
|
121
|
+
number=1,
|
|
122
|
+
)
|
|
123
|
+
case_sensitive: bool = proto.Field(
|
|
124
|
+
proto.BOOL,
|
|
125
|
+
number=2,
|
|
126
|
+
)
|
|
127
|
+
|
|
128
|
+
string_filter: StringFilter = proto.Field(
|
|
129
|
+
proto.MESSAGE,
|
|
130
|
+
number=2,
|
|
131
|
+
oneof="one_filter",
|
|
132
|
+
message=StringFilter,
|
|
133
|
+
)
|
|
134
|
+
in_list_filter: InListFilter = proto.Field(
|
|
135
|
+
proto.MESSAGE,
|
|
136
|
+
number=3,
|
|
137
|
+
oneof="one_filter",
|
|
138
|
+
message=InListFilter,
|
|
139
|
+
)
|
|
140
|
+
field_name: str = proto.Field(
|
|
141
|
+
proto.STRING,
|
|
142
|
+
number=1,
|
|
143
|
+
)
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
class ExpandedDataSetFilterExpression(proto.Message):
|
|
147
|
+
r"""A logical expression of EnhancedDataSet dimension filters.
|
|
148
|
+
|
|
149
|
+
This message has `oneof`_ fields (mutually exclusive fields).
|
|
150
|
+
For each oneof, at most one member field can be set at the same time.
|
|
151
|
+
Setting any member of the oneof automatically clears all other
|
|
152
|
+
members.
|
|
153
|
+
|
|
154
|
+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
|
|
155
|
+
|
|
156
|
+
Attributes:
|
|
157
|
+
and_group (google.analytics.admin_v1alpha.types.ExpandedDataSetFilterExpressionList):
|
|
158
|
+
A list of expressions to be AND’ed together. It must contain
|
|
159
|
+
a ExpandedDataSetFilterExpression with either not_expression
|
|
160
|
+
or dimension_filter. This must be set for the top level
|
|
161
|
+
ExpandedDataSetFilterExpression.
|
|
162
|
+
|
|
163
|
+
This field is a member of `oneof`_ ``expr``.
|
|
164
|
+
not_expression (google.analytics.admin_v1alpha.types.ExpandedDataSetFilterExpression):
|
|
165
|
+
A filter expression to be NOT'ed (that is, inverted,
|
|
166
|
+
complemented). It must include a dimension_filter. This
|
|
167
|
+
cannot be set on the top level
|
|
168
|
+
ExpandedDataSetFilterExpression.
|
|
169
|
+
|
|
170
|
+
This field is a member of `oneof`_ ``expr``.
|
|
171
|
+
filter (google.analytics.admin_v1alpha.types.ExpandedDataSetFilter):
|
|
172
|
+
A filter on a single dimension. This cannot
|
|
173
|
+
be set on the top level
|
|
174
|
+
ExpandedDataSetFilterExpression.
|
|
175
|
+
|
|
176
|
+
This field is a member of `oneof`_ ``expr``.
|
|
177
|
+
"""
|
|
178
|
+
|
|
179
|
+
and_group: "ExpandedDataSetFilterExpressionList" = proto.Field(
|
|
180
|
+
proto.MESSAGE,
|
|
181
|
+
number=1,
|
|
182
|
+
oneof="expr",
|
|
183
|
+
message="ExpandedDataSetFilterExpressionList",
|
|
184
|
+
)
|
|
185
|
+
not_expression: "ExpandedDataSetFilterExpression" = proto.Field(
|
|
186
|
+
proto.MESSAGE,
|
|
187
|
+
number=2,
|
|
188
|
+
oneof="expr",
|
|
189
|
+
message="ExpandedDataSetFilterExpression",
|
|
190
|
+
)
|
|
191
|
+
filter: "ExpandedDataSetFilter" = proto.Field(
|
|
192
|
+
proto.MESSAGE,
|
|
193
|
+
number=3,
|
|
194
|
+
oneof="expr",
|
|
195
|
+
message="ExpandedDataSetFilter",
|
|
196
|
+
)
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
class ExpandedDataSetFilterExpressionList(proto.Message):
|
|
200
|
+
r"""A list of ExpandedDataSet filter expressions.
|
|
201
|
+
|
|
202
|
+
Attributes:
|
|
203
|
+
filter_expressions (MutableSequence[google.analytics.admin_v1alpha.types.ExpandedDataSetFilterExpression]):
|
|
204
|
+
A list of ExpandedDataSet filter expressions.
|
|
205
|
+
"""
|
|
206
|
+
|
|
207
|
+
filter_expressions: MutableSequence[
|
|
208
|
+
"ExpandedDataSetFilterExpression"
|
|
209
|
+
] = proto.RepeatedField(
|
|
210
|
+
proto.MESSAGE,
|
|
211
|
+
number=1,
|
|
212
|
+
message="ExpandedDataSetFilterExpression",
|
|
213
|
+
)
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
class ExpandedDataSet(proto.Message):
|
|
217
|
+
r"""A resource message representing an ``ExpandedDataSet``.
|
|
218
|
+
|
|
219
|
+
Attributes:
|
|
220
|
+
name (str):
|
|
221
|
+
Output only. The resource name for this ExpandedDataSet
|
|
222
|
+
resource. Format:
|
|
223
|
+
properties/{property_id}/expandedDataSets/{expanded_data_set}
|
|
224
|
+
display_name (str):
|
|
225
|
+
Required. The display name of the
|
|
226
|
+
ExpandedDataSet. Max 200 chars.
|
|
227
|
+
description (str):
|
|
228
|
+
Optional. The description of the
|
|
229
|
+
ExpandedDataSet. Max 50 chars.
|
|
230
|
+
dimension_names (MutableSequence[str]):
|
|
231
|
+
Immutable. The list of dimensions included in the
|
|
232
|
+
ExpandedDataSet. See the `API
|
|
233
|
+
Dimensions <https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions>`__
|
|
234
|
+
for the list of dimension names.
|
|
235
|
+
metric_names (MutableSequence[str]):
|
|
236
|
+
Immutable. The list of metrics included in the
|
|
237
|
+
ExpandedDataSet. See the `API
|
|
238
|
+
Metrics <https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics>`__
|
|
239
|
+
for the list of dimension names.
|
|
240
|
+
dimension_filter_expression (google.analytics.admin_v1alpha.types.ExpandedDataSetFilterExpression):
|
|
241
|
+
Immutable. A logical expression of ExpandedDataSet filters
|
|
242
|
+
applied to dimension included in the ExpandedDataSet. This
|
|
243
|
+
filter is used to reduce the number of rows and thus the
|
|
244
|
+
chance of encountering ``other`` row.
|
|
245
|
+
data_collection_start_time (google.protobuf.timestamp_pb2.Timestamp):
|
|
246
|
+
Output only. Time when expanded data set
|
|
247
|
+
began (or will begin) collecing data.
|
|
248
|
+
"""
|
|
249
|
+
|
|
250
|
+
name: str = proto.Field(
|
|
251
|
+
proto.STRING,
|
|
252
|
+
number=1,
|
|
253
|
+
)
|
|
254
|
+
display_name: str = proto.Field(
|
|
255
|
+
proto.STRING,
|
|
256
|
+
number=2,
|
|
257
|
+
)
|
|
258
|
+
description: str = proto.Field(
|
|
259
|
+
proto.STRING,
|
|
260
|
+
number=3,
|
|
261
|
+
)
|
|
262
|
+
dimension_names: MutableSequence[str] = proto.RepeatedField(
|
|
263
|
+
proto.STRING,
|
|
264
|
+
number=4,
|
|
265
|
+
)
|
|
266
|
+
metric_names: MutableSequence[str] = proto.RepeatedField(
|
|
267
|
+
proto.STRING,
|
|
268
|
+
number=5,
|
|
269
|
+
)
|
|
270
|
+
dimension_filter_expression: "ExpandedDataSetFilterExpression" = proto.Field(
|
|
271
|
+
proto.MESSAGE,
|
|
272
|
+
number=6,
|
|
273
|
+
message="ExpandedDataSetFilterExpression",
|
|
274
|
+
)
|
|
275
|
+
data_collection_start_time: timestamp_pb2.Timestamp = proto.Field(
|
|
276
|
+
proto.MESSAGE,
|
|
277
|
+
number=7,
|
|
278
|
+
message=timestamp_pb2.Timestamp,
|
|
279
|
+
)
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
__all__ = tuple(sorted(__protobuf__.manifest))
|