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,309 @@
|
|
|
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.v1alpha",
|
|
24
|
+
manifest={
|
|
25
|
+
"ChannelGroupFilter",
|
|
26
|
+
"ChannelGroupFilterExpression",
|
|
27
|
+
"ChannelGroupFilterExpressionList",
|
|
28
|
+
"GroupingRule",
|
|
29
|
+
"ChannelGroup",
|
|
30
|
+
},
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class ChannelGroupFilter(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.ChannelGroupFilter.StringFilter):
|
|
46
|
+
A filter for a string-type dimension that
|
|
47
|
+
matches a particular pattern.
|
|
48
|
+
|
|
49
|
+
This field is a member of `oneof`_ ``value_filter``.
|
|
50
|
+
in_list_filter (google.analytics.admin_v1alpha.types.ChannelGroupFilter.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`_ ``value_filter``.
|
|
55
|
+
field_name (str):
|
|
56
|
+
Required. Immutable. The dimension name to
|
|
57
|
+
filter.
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
class StringFilter(proto.Message):
|
|
61
|
+
r"""Filter where the field value is a String. The match is case
|
|
62
|
+
insensitive.
|
|
63
|
+
|
|
64
|
+
Attributes:
|
|
65
|
+
match_type (google.analytics.admin_v1alpha.types.ChannelGroupFilter.StringFilter.MatchType):
|
|
66
|
+
Required. The match type for the string
|
|
67
|
+
filter.
|
|
68
|
+
value (str):
|
|
69
|
+
Required. The string value to be matched
|
|
70
|
+
against.
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
class MatchType(proto.Enum):
|
|
74
|
+
r"""How the filter will be used to determine a match.
|
|
75
|
+
|
|
76
|
+
Values:
|
|
77
|
+
MATCH_TYPE_UNSPECIFIED (0):
|
|
78
|
+
Default match type.
|
|
79
|
+
EXACT (1):
|
|
80
|
+
Exact match of the string value.
|
|
81
|
+
BEGINS_WITH (2):
|
|
82
|
+
Begins with the string value.
|
|
83
|
+
ENDS_WITH (3):
|
|
84
|
+
Ends with the string value.
|
|
85
|
+
CONTAINS (4):
|
|
86
|
+
Contains the string value.
|
|
87
|
+
FULL_REGEXP (5):
|
|
88
|
+
Full regular expression match with the string
|
|
89
|
+
value.
|
|
90
|
+
PARTIAL_REGEXP (6):
|
|
91
|
+
Partial regular expression match with the
|
|
92
|
+
string value.
|
|
93
|
+
"""
|
|
94
|
+
MATCH_TYPE_UNSPECIFIED = 0
|
|
95
|
+
EXACT = 1
|
|
96
|
+
BEGINS_WITH = 2
|
|
97
|
+
ENDS_WITH = 3
|
|
98
|
+
CONTAINS = 4
|
|
99
|
+
FULL_REGEXP = 5
|
|
100
|
+
PARTIAL_REGEXP = 6
|
|
101
|
+
|
|
102
|
+
match_type: "ChannelGroupFilter.StringFilter.MatchType" = proto.Field(
|
|
103
|
+
proto.ENUM,
|
|
104
|
+
number=1,
|
|
105
|
+
enum="ChannelGroupFilter.StringFilter.MatchType",
|
|
106
|
+
)
|
|
107
|
+
value: str = proto.Field(
|
|
108
|
+
proto.STRING,
|
|
109
|
+
number=2,
|
|
110
|
+
)
|
|
111
|
+
|
|
112
|
+
class InListFilter(proto.Message):
|
|
113
|
+
r"""A filter for a string dimension that matches a particular
|
|
114
|
+
list of options. The match is case insensitive.
|
|
115
|
+
|
|
116
|
+
Attributes:
|
|
117
|
+
values (MutableSequence[str]):
|
|
118
|
+
Required. The list of possible string values
|
|
119
|
+
to match against. Must be non-empty.
|
|
120
|
+
"""
|
|
121
|
+
|
|
122
|
+
values: MutableSequence[str] = proto.RepeatedField(
|
|
123
|
+
proto.STRING,
|
|
124
|
+
number=1,
|
|
125
|
+
)
|
|
126
|
+
|
|
127
|
+
string_filter: StringFilter = proto.Field(
|
|
128
|
+
proto.MESSAGE,
|
|
129
|
+
number=2,
|
|
130
|
+
oneof="value_filter",
|
|
131
|
+
message=StringFilter,
|
|
132
|
+
)
|
|
133
|
+
in_list_filter: InListFilter = proto.Field(
|
|
134
|
+
proto.MESSAGE,
|
|
135
|
+
number=3,
|
|
136
|
+
oneof="value_filter",
|
|
137
|
+
message=InListFilter,
|
|
138
|
+
)
|
|
139
|
+
field_name: str = proto.Field(
|
|
140
|
+
proto.STRING,
|
|
141
|
+
number=1,
|
|
142
|
+
)
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
class ChannelGroupFilterExpression(proto.Message):
|
|
146
|
+
r"""A logical expression of Channel Group dimension filters.
|
|
147
|
+
|
|
148
|
+
This message has `oneof`_ fields (mutually exclusive fields).
|
|
149
|
+
For each oneof, at most one member field can be set at the same time.
|
|
150
|
+
Setting any member of the oneof automatically clears all other
|
|
151
|
+
members.
|
|
152
|
+
|
|
153
|
+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
|
|
154
|
+
|
|
155
|
+
Attributes:
|
|
156
|
+
and_group (google.analytics.admin_v1alpha.types.ChannelGroupFilterExpressionList):
|
|
157
|
+
A list of expressions to be AND’ed together. It can only
|
|
158
|
+
contain ChannelGroupFilterExpressions with or_group. This
|
|
159
|
+
must be set for the top level ChannelGroupFilterExpression.
|
|
160
|
+
|
|
161
|
+
This field is a member of `oneof`_ ``expr``.
|
|
162
|
+
or_group (google.analytics.admin_v1alpha.types.ChannelGroupFilterExpressionList):
|
|
163
|
+
A list of expressions to OR’ed together. It cannot contain
|
|
164
|
+
ChannelGroupFilterExpressions with and_group or or_group.
|
|
165
|
+
|
|
166
|
+
This field is a member of `oneof`_ ``expr``.
|
|
167
|
+
not_expression (google.analytics.admin_v1alpha.types.ChannelGroupFilterExpression):
|
|
168
|
+
A filter expression to be NOT'ed (that is inverted,
|
|
169
|
+
complemented). It can only include a
|
|
170
|
+
dimension_or_metric_filter. This cannot be set on the top
|
|
171
|
+
level ChannelGroupFilterExpression.
|
|
172
|
+
|
|
173
|
+
This field is a member of `oneof`_ ``expr``.
|
|
174
|
+
filter (google.analytics.admin_v1alpha.types.ChannelGroupFilter):
|
|
175
|
+
A filter on a single dimension. This cannot
|
|
176
|
+
be set on the top level
|
|
177
|
+
ChannelGroupFilterExpression.
|
|
178
|
+
|
|
179
|
+
This field is a member of `oneof`_ ``expr``.
|
|
180
|
+
"""
|
|
181
|
+
|
|
182
|
+
and_group: "ChannelGroupFilterExpressionList" = proto.Field(
|
|
183
|
+
proto.MESSAGE,
|
|
184
|
+
number=1,
|
|
185
|
+
oneof="expr",
|
|
186
|
+
message="ChannelGroupFilterExpressionList",
|
|
187
|
+
)
|
|
188
|
+
or_group: "ChannelGroupFilterExpressionList" = proto.Field(
|
|
189
|
+
proto.MESSAGE,
|
|
190
|
+
number=2,
|
|
191
|
+
oneof="expr",
|
|
192
|
+
message="ChannelGroupFilterExpressionList",
|
|
193
|
+
)
|
|
194
|
+
not_expression: "ChannelGroupFilterExpression" = proto.Field(
|
|
195
|
+
proto.MESSAGE,
|
|
196
|
+
number=3,
|
|
197
|
+
oneof="expr",
|
|
198
|
+
message="ChannelGroupFilterExpression",
|
|
199
|
+
)
|
|
200
|
+
filter: "ChannelGroupFilter" = proto.Field(
|
|
201
|
+
proto.MESSAGE,
|
|
202
|
+
number=4,
|
|
203
|
+
oneof="expr",
|
|
204
|
+
message="ChannelGroupFilter",
|
|
205
|
+
)
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
class ChannelGroupFilterExpressionList(proto.Message):
|
|
209
|
+
r"""A list of Channel Group filter expressions.
|
|
210
|
+
|
|
211
|
+
Attributes:
|
|
212
|
+
filter_expressions (MutableSequence[google.analytics.admin_v1alpha.types.ChannelGroupFilterExpression]):
|
|
213
|
+
A list of Channel Group filter expressions.
|
|
214
|
+
"""
|
|
215
|
+
|
|
216
|
+
filter_expressions: MutableSequence[
|
|
217
|
+
"ChannelGroupFilterExpression"
|
|
218
|
+
] = proto.RepeatedField(
|
|
219
|
+
proto.MESSAGE,
|
|
220
|
+
number=1,
|
|
221
|
+
message="ChannelGroupFilterExpression",
|
|
222
|
+
)
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
class GroupingRule(proto.Message):
|
|
226
|
+
r"""The rules that govern how traffic is grouped into one
|
|
227
|
+
channel.
|
|
228
|
+
|
|
229
|
+
Attributes:
|
|
230
|
+
display_name (str):
|
|
231
|
+
Required. Customer defined display name for
|
|
232
|
+
the channel.
|
|
233
|
+
expression (google.analytics.admin_v1alpha.types.ChannelGroupFilterExpression):
|
|
234
|
+
Required. The Filter Expression that defines
|
|
235
|
+
the Grouping Rule.
|
|
236
|
+
"""
|
|
237
|
+
|
|
238
|
+
display_name: str = proto.Field(
|
|
239
|
+
proto.STRING,
|
|
240
|
+
number=1,
|
|
241
|
+
)
|
|
242
|
+
expression: "ChannelGroupFilterExpression" = proto.Field(
|
|
243
|
+
proto.MESSAGE,
|
|
244
|
+
number=2,
|
|
245
|
+
message="ChannelGroupFilterExpression",
|
|
246
|
+
)
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
class ChannelGroup(proto.Message):
|
|
250
|
+
r"""A resource message representing a Channel Group.
|
|
251
|
+
|
|
252
|
+
Attributes:
|
|
253
|
+
name (str):
|
|
254
|
+
Output only. The resource name for this Channel Group
|
|
255
|
+
resource. Format:
|
|
256
|
+
properties/{property}/channelGroups/{channel_group}
|
|
257
|
+
display_name (str):
|
|
258
|
+
Required. The display name of the Channel
|
|
259
|
+
Group. Max length of 80 characters.
|
|
260
|
+
description (str):
|
|
261
|
+
The description of the Channel Group. Max
|
|
262
|
+
length of 256 characters.
|
|
263
|
+
grouping_rule (MutableSequence[google.analytics.admin_v1alpha.types.GroupingRule]):
|
|
264
|
+
Required. The grouping rules of channels.
|
|
265
|
+
Maximum number of rules is 50.
|
|
266
|
+
system_defined (bool):
|
|
267
|
+
Output only. If true, then this channel group
|
|
268
|
+
is the Default Channel Group predefined by
|
|
269
|
+
Google Analytics. Display name and grouping
|
|
270
|
+
rules cannot be updated for this channel group.
|
|
271
|
+
primary (bool):
|
|
272
|
+
Optional. If true, this channel group will be used as the
|
|
273
|
+
default channel group for reports. Only one channel group
|
|
274
|
+
can be set as ``primary`` at any time. If the ``primary``
|
|
275
|
+
field gets set on a channel group, it will get unset on the
|
|
276
|
+
previous primary channel group.
|
|
277
|
+
|
|
278
|
+
The Google Analytics predefined channel group is the primary
|
|
279
|
+
by default.
|
|
280
|
+
"""
|
|
281
|
+
|
|
282
|
+
name: str = proto.Field(
|
|
283
|
+
proto.STRING,
|
|
284
|
+
number=1,
|
|
285
|
+
)
|
|
286
|
+
display_name: str = proto.Field(
|
|
287
|
+
proto.STRING,
|
|
288
|
+
number=2,
|
|
289
|
+
)
|
|
290
|
+
description: str = proto.Field(
|
|
291
|
+
proto.STRING,
|
|
292
|
+
number=3,
|
|
293
|
+
)
|
|
294
|
+
grouping_rule: MutableSequence["GroupingRule"] = proto.RepeatedField(
|
|
295
|
+
proto.MESSAGE,
|
|
296
|
+
number=4,
|
|
297
|
+
message="GroupingRule",
|
|
298
|
+
)
|
|
299
|
+
system_defined: bool = proto.Field(
|
|
300
|
+
proto.BOOL,
|
|
301
|
+
number=5,
|
|
302
|
+
)
|
|
303
|
+
primary: bool = proto.Field(
|
|
304
|
+
proto.BOOL,
|
|
305
|
+
number=6,
|
|
306
|
+
)
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
__all__ = tuple(sorted(__protobuf__.manifest))
|
|
@@ -0,0 +1,298 @@
|
|
|
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.v1alpha",
|
|
24
|
+
manifest={
|
|
25
|
+
"ParameterMutation",
|
|
26
|
+
"EventCreateRule",
|
|
27
|
+
"EventEditRule",
|
|
28
|
+
"MatchingCondition",
|
|
29
|
+
},
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class ParameterMutation(proto.Message):
|
|
34
|
+
r"""Defines an event parameter to mutate.
|
|
35
|
+
|
|
36
|
+
Attributes:
|
|
37
|
+
parameter (str):
|
|
38
|
+
Required. The name of the parameter to mutate. This value
|
|
39
|
+
must:
|
|
40
|
+
|
|
41
|
+
- be less than 40 characters.
|
|
42
|
+
- be unique across across all mutations within the rule
|
|
43
|
+
- consist only of letters, digits or \_ (underscores) For
|
|
44
|
+
event edit rules, the name may also be set to
|
|
45
|
+
'event_name' to modify the event_name in place.
|
|
46
|
+
parameter_value (str):
|
|
47
|
+
Required. The value mutation to perform.
|
|
48
|
+
|
|
49
|
+
- Must be less than 100 characters.
|
|
50
|
+
- To specify a constant value for the param, use the
|
|
51
|
+
value's string.
|
|
52
|
+
- To copy value from another parameter, use syntax like
|
|
53
|
+
"[[other_parameter]]" For more details, see this `help
|
|
54
|
+
center
|
|
55
|
+
article <https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters>`__.
|
|
56
|
+
"""
|
|
57
|
+
|
|
58
|
+
parameter: str = proto.Field(
|
|
59
|
+
proto.STRING,
|
|
60
|
+
number=1,
|
|
61
|
+
)
|
|
62
|
+
parameter_value: str = proto.Field(
|
|
63
|
+
proto.STRING,
|
|
64
|
+
number=2,
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
class EventCreateRule(proto.Message):
|
|
69
|
+
r"""An Event Create Rule defines conditions that will trigger the
|
|
70
|
+
creation of an entirely new event based upon matched criteria of
|
|
71
|
+
a source event. Additional mutations of the parameters from the
|
|
72
|
+
source event can be defined.
|
|
73
|
+
|
|
74
|
+
Unlike Event Edit rules, Event Creation Rules have no defined
|
|
75
|
+
order. They will all be run independently.
|
|
76
|
+
|
|
77
|
+
Event Edit and Event Create rules can't be used to modify an
|
|
78
|
+
event created from an Event Create rule.
|
|
79
|
+
|
|
80
|
+
Attributes:
|
|
81
|
+
name (str):
|
|
82
|
+
Output only. Resource name for this EventCreateRule
|
|
83
|
+
resource. Format:
|
|
84
|
+
properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}
|
|
85
|
+
destination_event (str):
|
|
86
|
+
Required. The name of the new event to be created.
|
|
87
|
+
|
|
88
|
+
This value must:
|
|
89
|
+
|
|
90
|
+
- be less than 40 characters
|
|
91
|
+
- consist only of letters, digits or \_ (underscores)
|
|
92
|
+
- start with a letter
|
|
93
|
+
event_conditions (MutableSequence[google.analytics.admin_v1alpha.types.MatchingCondition]):
|
|
94
|
+
Required. Must have at least one condition,
|
|
95
|
+
and can have up to 10 max. Conditions on the
|
|
96
|
+
source event must match for this rule to be
|
|
97
|
+
applied.
|
|
98
|
+
source_copy_parameters (bool):
|
|
99
|
+
If true, the source parameters are copied to
|
|
100
|
+
the new event. If false, or unset, all
|
|
101
|
+
non-internal parameters are not copied from the
|
|
102
|
+
source event. Parameter mutations are applied
|
|
103
|
+
after the parameters have been copied.
|
|
104
|
+
parameter_mutations (MutableSequence[google.analytics.admin_v1alpha.types.ParameterMutation]):
|
|
105
|
+
Parameter mutations define parameter behavior
|
|
106
|
+
on the new event, and are applied in order.
|
|
107
|
+
A maximum of 20 mutations can be applied.
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
name: str = proto.Field(
|
|
111
|
+
proto.STRING,
|
|
112
|
+
number=1,
|
|
113
|
+
)
|
|
114
|
+
destination_event: str = proto.Field(
|
|
115
|
+
proto.STRING,
|
|
116
|
+
number=2,
|
|
117
|
+
)
|
|
118
|
+
event_conditions: MutableSequence["MatchingCondition"] = proto.RepeatedField(
|
|
119
|
+
proto.MESSAGE,
|
|
120
|
+
number=3,
|
|
121
|
+
message="MatchingCondition",
|
|
122
|
+
)
|
|
123
|
+
source_copy_parameters: bool = proto.Field(
|
|
124
|
+
proto.BOOL,
|
|
125
|
+
number=4,
|
|
126
|
+
)
|
|
127
|
+
parameter_mutations: MutableSequence["ParameterMutation"] = proto.RepeatedField(
|
|
128
|
+
proto.MESSAGE,
|
|
129
|
+
number=5,
|
|
130
|
+
message="ParameterMutation",
|
|
131
|
+
)
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
class EventEditRule(proto.Message):
|
|
135
|
+
r"""An Event Edit Rule defines conditions that will trigger the
|
|
136
|
+
creation of an entirely new event based upon matched criteria of
|
|
137
|
+
a source event. Additional mutations of the parameters from the
|
|
138
|
+
source event can be defined.
|
|
139
|
+
|
|
140
|
+
Unlike Event Create rules, Event Edit Rules are applied in their
|
|
141
|
+
defined order.
|
|
142
|
+
|
|
143
|
+
Event Edit rules can't be used to modify an event created from
|
|
144
|
+
an Event Create rule.
|
|
145
|
+
|
|
146
|
+
Attributes:
|
|
147
|
+
name (str):
|
|
148
|
+
Identifier. Resource name for this EventEditRule resource.
|
|
149
|
+
Format:
|
|
150
|
+
properties/{property}/dataStreams/{data_stream}/eventEditRules/{event_edit_rule}
|
|
151
|
+
display_name (str):
|
|
152
|
+
Required. The display name of this event edit
|
|
153
|
+
rule. Maximum of 255 characters.
|
|
154
|
+
event_conditions (MutableSequence[google.analytics.admin_v1alpha.types.MatchingCondition]):
|
|
155
|
+
Required. Conditions on the source event must
|
|
156
|
+
match for this rule to be applied. Must have at
|
|
157
|
+
least one condition, and can have up to 10 max.
|
|
158
|
+
parameter_mutations (MutableSequence[google.analytics.admin_v1alpha.types.ParameterMutation]):
|
|
159
|
+
Required. Parameter mutations define
|
|
160
|
+
parameter behavior on the new event, and are
|
|
161
|
+
applied in order. A maximum of 20 mutations can
|
|
162
|
+
be applied.
|
|
163
|
+
processing_order (int):
|
|
164
|
+
Output only. The order for which this rule
|
|
165
|
+
will be processed. Rules with an order value
|
|
166
|
+
lower than this will be processed before this
|
|
167
|
+
rule, rules with an order value higher than this
|
|
168
|
+
will be processed after this rule. New event
|
|
169
|
+
edit rules will be assigned an order value at
|
|
170
|
+
the end of the order.
|
|
171
|
+
|
|
172
|
+
This value does not apply to event create rules.
|
|
173
|
+
"""
|
|
174
|
+
|
|
175
|
+
name: str = proto.Field(
|
|
176
|
+
proto.STRING,
|
|
177
|
+
number=1,
|
|
178
|
+
)
|
|
179
|
+
display_name: str = proto.Field(
|
|
180
|
+
proto.STRING,
|
|
181
|
+
number=2,
|
|
182
|
+
)
|
|
183
|
+
event_conditions: MutableSequence["MatchingCondition"] = proto.RepeatedField(
|
|
184
|
+
proto.MESSAGE,
|
|
185
|
+
number=3,
|
|
186
|
+
message="MatchingCondition",
|
|
187
|
+
)
|
|
188
|
+
parameter_mutations: MutableSequence["ParameterMutation"] = proto.RepeatedField(
|
|
189
|
+
proto.MESSAGE,
|
|
190
|
+
number=4,
|
|
191
|
+
message="ParameterMutation",
|
|
192
|
+
)
|
|
193
|
+
processing_order: int = proto.Field(
|
|
194
|
+
proto.INT64,
|
|
195
|
+
number=5,
|
|
196
|
+
)
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
class MatchingCondition(proto.Message):
|
|
200
|
+
r"""Defines a condition for when an Event Edit or Event Creation
|
|
201
|
+
rule applies to an event.
|
|
202
|
+
|
|
203
|
+
Attributes:
|
|
204
|
+
field (str):
|
|
205
|
+
Required. The name of the field that is compared against for
|
|
206
|
+
the condition. If 'event_name' is specified this condition
|
|
207
|
+
will apply to the name of the event. Otherwise the condition
|
|
208
|
+
will apply to a parameter with the specified name.
|
|
209
|
+
|
|
210
|
+
This value cannot contain spaces.
|
|
211
|
+
comparison_type (google.analytics.admin_v1alpha.types.MatchingCondition.ComparisonType):
|
|
212
|
+
Required. The type of comparison to be
|
|
213
|
+
applied to the value.
|
|
214
|
+
value (str):
|
|
215
|
+
Required. The value being compared against
|
|
216
|
+
for this condition. The runtime implementation
|
|
217
|
+
may perform type coercion of this value to
|
|
218
|
+
evaluate this condition based on the type of the
|
|
219
|
+
parameter value.
|
|
220
|
+
negated (bool):
|
|
221
|
+
Whether or not the result of the comparison should be
|
|
222
|
+
negated. For example, if ``negated`` is true, then 'equals'
|
|
223
|
+
comparisons would function as 'not equals'.
|
|
224
|
+
"""
|
|
225
|
+
|
|
226
|
+
class ComparisonType(proto.Enum):
|
|
227
|
+
r"""Comparison type for matching condition
|
|
228
|
+
|
|
229
|
+
Values:
|
|
230
|
+
COMPARISON_TYPE_UNSPECIFIED (0):
|
|
231
|
+
Unknown
|
|
232
|
+
EQUALS (1):
|
|
233
|
+
Equals, case sensitive
|
|
234
|
+
EQUALS_CASE_INSENSITIVE (2):
|
|
235
|
+
Equals, case insensitive
|
|
236
|
+
CONTAINS (3):
|
|
237
|
+
Contains, case sensitive
|
|
238
|
+
CONTAINS_CASE_INSENSITIVE (4):
|
|
239
|
+
Contains, case insensitive
|
|
240
|
+
STARTS_WITH (5):
|
|
241
|
+
Starts with, case sensitive
|
|
242
|
+
STARTS_WITH_CASE_INSENSITIVE (6):
|
|
243
|
+
Starts with, case insensitive
|
|
244
|
+
ENDS_WITH (7):
|
|
245
|
+
Ends with, case sensitive
|
|
246
|
+
ENDS_WITH_CASE_INSENSITIVE (8):
|
|
247
|
+
Ends with, case insensitive
|
|
248
|
+
GREATER_THAN (9):
|
|
249
|
+
Greater than
|
|
250
|
+
GREATER_THAN_OR_EQUAL (10):
|
|
251
|
+
Greater than or equal
|
|
252
|
+
LESS_THAN (11):
|
|
253
|
+
Less than
|
|
254
|
+
LESS_THAN_OR_EQUAL (12):
|
|
255
|
+
Less than or equal
|
|
256
|
+
REGULAR_EXPRESSION (13):
|
|
257
|
+
regular expression. Only supported for web
|
|
258
|
+
streams.
|
|
259
|
+
REGULAR_EXPRESSION_CASE_INSENSITIVE (14):
|
|
260
|
+
regular expression, case insensitive. Only
|
|
261
|
+
supported for web streams.
|
|
262
|
+
"""
|
|
263
|
+
COMPARISON_TYPE_UNSPECIFIED = 0
|
|
264
|
+
EQUALS = 1
|
|
265
|
+
EQUALS_CASE_INSENSITIVE = 2
|
|
266
|
+
CONTAINS = 3
|
|
267
|
+
CONTAINS_CASE_INSENSITIVE = 4
|
|
268
|
+
STARTS_WITH = 5
|
|
269
|
+
STARTS_WITH_CASE_INSENSITIVE = 6
|
|
270
|
+
ENDS_WITH = 7
|
|
271
|
+
ENDS_WITH_CASE_INSENSITIVE = 8
|
|
272
|
+
GREATER_THAN = 9
|
|
273
|
+
GREATER_THAN_OR_EQUAL = 10
|
|
274
|
+
LESS_THAN = 11
|
|
275
|
+
LESS_THAN_OR_EQUAL = 12
|
|
276
|
+
REGULAR_EXPRESSION = 13
|
|
277
|
+
REGULAR_EXPRESSION_CASE_INSENSITIVE = 14
|
|
278
|
+
|
|
279
|
+
field: str = proto.Field(
|
|
280
|
+
proto.STRING,
|
|
281
|
+
number=1,
|
|
282
|
+
)
|
|
283
|
+
comparison_type: ComparisonType = proto.Field(
|
|
284
|
+
proto.ENUM,
|
|
285
|
+
number=2,
|
|
286
|
+
enum=ComparisonType,
|
|
287
|
+
)
|
|
288
|
+
value: str = proto.Field(
|
|
289
|
+
proto.STRING,
|
|
290
|
+
number=3,
|
|
291
|
+
)
|
|
292
|
+
negated: bool = proto.Field(
|
|
293
|
+
proto.BOOL,
|
|
294
|
+
number=4,
|
|
295
|
+
)
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
__all__ = tuple(sorted(__protobuf__.manifest))
|