google-analytics-admin 0.22.1rc0__tar.gz → 0.22.2__tar.gz
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-0.22.1rc0/google_analytics_admin.egg-info → google-analytics-admin-0.22.2}/PKG-INFO +1 -1
- google-analytics-admin-0.22.2/google/analytics/admin/gapic_version.py +16 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1alpha/gapic_metadata.json +45 -0
- google-analytics-admin-0.22.2/google/analytics/admin_v1alpha/gapic_version.py +16 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1alpha/services/analytics_admin_service/async_client.py +303 -32
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1alpha/services/analytics_admin_service/client.py +313 -36
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1alpha/services/analytics_admin_service/pagers.py +135 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/base.py +61 -9
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/grpc.py +119 -25
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/grpc_asyncio.py +120 -26
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/rest.py +420 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1alpha/types/channel_group.py +5 -3
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1alpha/types/resources.py +47 -44
- google-analytics-admin-0.22.2/google/analytics/admin_v1beta/gapic_version.py +16 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2/google_analytics_admin.egg-info}/PKG-INFO +1 -1
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/setup.py +1 -1
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/tests/unit/gapic/admin_v1alpha/test_analytics_admin_service.py +3857 -1817
- google-analytics-admin-0.22.1rc0/google/analytics/admin/gapic_version.py +0 -16
- google-analytics-admin-0.22.1rc0/google/analytics/admin_v1alpha/gapic_version.py +0 -16
- google-analytics-admin-0.22.1rc0/google/analytics/admin_v1beta/gapic_version.py +0 -16
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/LICENSE +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/MANIFEST.in +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/README.rst +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin/__init__.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin/py.typed +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1alpha/__init__.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1alpha/py.typed +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1alpha/services/__init__.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1alpha/services/analytics_admin_service/__init__.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/__init__.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1alpha/types/__init__.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1alpha/types/access_report.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1alpha/types/analytics_admin.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1alpha/types/audience.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1alpha/types/event_create_and_edit.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1alpha/types/expanded_data_set.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1alpha/types/subproperty_event_filter.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1beta/__init__.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1beta/gapic_metadata.json +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1beta/py.typed +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1beta/services/__init__.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1beta/services/analytics_admin_service/__init__.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1beta/services/analytics_admin_service/async_client.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1beta/services/analytics_admin_service/client.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1beta/services/analytics_admin_service/pagers.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/__init__.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/base.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/grpc.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/grpc_asyncio.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/rest.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1beta/types/__init__.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1beta/types/access_report.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1beta/types/analytics_admin.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google/analytics/admin_v1beta/types/resources.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google_analytics_admin.egg-info/SOURCES.txt +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google_analytics_admin.egg-info/dependency_links.txt +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google_analytics_admin.egg-info/not-zip-safe +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google_analytics_admin.egg-info/requires.txt +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/google_analytics_admin.egg-info/top_level.txt +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/setup.cfg +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/tests/__init__.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/tests/unit/__init__.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/tests/unit/gapic/__init__.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/tests/unit/gapic/admin_v1alpha/__init__.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/tests/unit/gapic/admin_v1beta/__init__.py +0 -0
- {google-analytics-admin-0.22.1rc0 → google-analytics-admin-0.22.2}/tests/unit/gapic/admin_v1beta/test_analytics_admin_service.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: google-analytics-admin
|
|
3
|
-
Version: 0.22.
|
|
3
|
+
Version: 0.22.2
|
|
4
4
|
Summary: Google Analytics Admin API client library
|
|
5
5
|
Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-analytics-admin
|
|
6
6
|
Author: Google LLC
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Copyright 2023 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
|
+
__version__ = "0.22.2" # {x-release-please-version}
|
|
@@ -410,6 +410,11 @@
|
|
|
410
410
|
"get_search_ads360_link"
|
|
411
411
|
]
|
|
412
412
|
},
|
|
413
|
+
"GetSubpropertyEventFilter": {
|
|
414
|
+
"methods": [
|
|
415
|
+
"get_subproperty_event_filter"
|
|
416
|
+
]
|
|
417
|
+
},
|
|
413
418
|
"ListAccessBindings": {
|
|
414
419
|
"methods": [
|
|
415
420
|
"list_access_bindings"
|
|
@@ -525,6 +530,11 @@
|
|
|
525
530
|
"list_search_ads360_links"
|
|
526
531
|
]
|
|
527
532
|
},
|
|
533
|
+
"ListSubpropertyEventFilters": {
|
|
534
|
+
"methods": [
|
|
535
|
+
"list_subproperty_event_filters"
|
|
536
|
+
]
|
|
537
|
+
},
|
|
528
538
|
"ProvisionAccountTicket": {
|
|
529
539
|
"methods": [
|
|
530
540
|
"provision_account_ticket"
|
|
@@ -649,6 +659,11 @@
|
|
|
649
659
|
"methods": [
|
|
650
660
|
"update_search_ads360_link"
|
|
651
661
|
]
|
|
662
|
+
},
|
|
663
|
+
"UpdateSubpropertyEventFilter": {
|
|
664
|
+
"methods": [
|
|
665
|
+
"update_subproperty_event_filter"
|
|
666
|
+
]
|
|
652
667
|
}
|
|
653
668
|
}
|
|
654
669
|
},
|
|
@@ -1055,6 +1070,11 @@
|
|
|
1055
1070
|
"get_search_ads360_link"
|
|
1056
1071
|
]
|
|
1057
1072
|
},
|
|
1073
|
+
"GetSubpropertyEventFilter": {
|
|
1074
|
+
"methods": [
|
|
1075
|
+
"get_subproperty_event_filter"
|
|
1076
|
+
]
|
|
1077
|
+
},
|
|
1058
1078
|
"ListAccessBindings": {
|
|
1059
1079
|
"methods": [
|
|
1060
1080
|
"list_access_bindings"
|
|
@@ -1170,6 +1190,11 @@
|
|
|
1170
1190
|
"list_search_ads360_links"
|
|
1171
1191
|
]
|
|
1172
1192
|
},
|
|
1193
|
+
"ListSubpropertyEventFilters": {
|
|
1194
|
+
"methods": [
|
|
1195
|
+
"list_subproperty_event_filters"
|
|
1196
|
+
]
|
|
1197
|
+
},
|
|
1173
1198
|
"ProvisionAccountTicket": {
|
|
1174
1199
|
"methods": [
|
|
1175
1200
|
"provision_account_ticket"
|
|
@@ -1294,6 +1319,11 @@
|
|
|
1294
1319
|
"methods": [
|
|
1295
1320
|
"update_search_ads360_link"
|
|
1296
1321
|
]
|
|
1322
|
+
},
|
|
1323
|
+
"UpdateSubpropertyEventFilter": {
|
|
1324
|
+
"methods": [
|
|
1325
|
+
"update_subproperty_event_filter"
|
|
1326
|
+
]
|
|
1297
1327
|
}
|
|
1298
1328
|
}
|
|
1299
1329
|
},
|
|
@@ -1700,6 +1730,11 @@
|
|
|
1700
1730
|
"get_search_ads360_link"
|
|
1701
1731
|
]
|
|
1702
1732
|
},
|
|
1733
|
+
"GetSubpropertyEventFilter": {
|
|
1734
|
+
"methods": [
|
|
1735
|
+
"get_subproperty_event_filter"
|
|
1736
|
+
]
|
|
1737
|
+
},
|
|
1703
1738
|
"ListAccessBindings": {
|
|
1704
1739
|
"methods": [
|
|
1705
1740
|
"list_access_bindings"
|
|
@@ -1815,6 +1850,11 @@
|
|
|
1815
1850
|
"list_search_ads360_links"
|
|
1816
1851
|
]
|
|
1817
1852
|
},
|
|
1853
|
+
"ListSubpropertyEventFilters": {
|
|
1854
|
+
"methods": [
|
|
1855
|
+
"list_subproperty_event_filters"
|
|
1856
|
+
]
|
|
1857
|
+
},
|
|
1818
1858
|
"ProvisionAccountTicket": {
|
|
1819
1859
|
"methods": [
|
|
1820
1860
|
"provision_account_ticket"
|
|
@@ -1939,6 +1979,11 @@
|
|
|
1939
1979
|
"methods": [
|
|
1940
1980
|
"update_search_ads360_link"
|
|
1941
1981
|
]
|
|
1982
|
+
},
|
|
1983
|
+
"UpdateSubpropertyEventFilter": {
|
|
1984
|
+
"methods": [
|
|
1985
|
+
"update_subproperty_event_filter"
|
|
1986
|
+
]
|
|
1942
1987
|
}
|
|
1943
1988
|
}
|
|
1944
1989
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Copyright 2023 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
|
+
__version__ = "0.22.2" # {x-release-please-version}
|
|
@@ -6920,9 +6920,10 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
6920
6920
|
provides records of each time a user reads Google Analytics
|
|
6921
6921
|
reporting data. Access records are retained for up to 2 years.
|
|
6922
6922
|
|
|
6923
|
-
Data Access Reports can be requested for a property.
|
|
6924
|
-
|
|
6925
|
-
|
|
6923
|
+
Data Access Reports can be requested for a property. Reports may
|
|
6924
|
+
be requested for any property, but dimensions that aren't
|
|
6925
|
+
related to quota can only be requested on Google Analytics 360
|
|
6926
|
+
properties. This method is only available to Administrators.
|
|
6926
6927
|
|
|
6927
6928
|
These data access records include GA4 UI Reporting, GA4 UI
|
|
6928
6929
|
Explorations, GA4 Data API, and other products like Firebase &
|
|
@@ -10523,26 +10524,117 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
10523
10524
|
# Done; return the response.
|
|
10524
10525
|
return response
|
|
10525
10526
|
|
|
10526
|
-
async def
|
|
10527
|
+
async def create_subproperty_event_filter(
|
|
10527
10528
|
self,
|
|
10528
10529
|
request: Optional[
|
|
10529
|
-
Union[analytics_admin.
|
|
10530
|
+
Union[analytics_admin.CreateSubpropertyEventFilterRequest, dict]
|
|
10531
|
+
] = None,
|
|
10532
|
+
*,
|
|
10533
|
+
parent: Optional[str] = None,
|
|
10534
|
+
subproperty_event_filter: Optional[
|
|
10535
|
+
gaa_subproperty_event_filter.SubpropertyEventFilter
|
|
10536
|
+
] = None,
|
|
10537
|
+
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
10538
|
+
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
10539
|
+
metadata: Sequence[Tuple[str, str]] = (),
|
|
10540
|
+
) -> gaa_subproperty_event_filter.SubpropertyEventFilter:
|
|
10541
|
+
r"""Creates a subproperty Event Filter.
|
|
10542
|
+
|
|
10543
|
+
Args:
|
|
10544
|
+
request (Optional[Union[google.analytics.admin_v1alpha.types.CreateSubpropertyEventFilterRequest, dict]]):
|
|
10545
|
+
The request object. Request message for
|
|
10546
|
+
CreateSubpropertyEventFilter RPC.
|
|
10547
|
+
parent (:class:`str`):
|
|
10548
|
+
Required. The ordinary property for which to create a
|
|
10549
|
+
subproperty event filter. Format: properties/property_id
|
|
10550
|
+
Example: properties/123
|
|
10551
|
+
|
|
10552
|
+
This corresponds to the ``parent`` field
|
|
10553
|
+
on the ``request`` instance; if ``request`` is provided, this
|
|
10554
|
+
should not be set.
|
|
10555
|
+
subproperty_event_filter (:class:`google.analytics.admin_v1alpha.types.SubpropertyEventFilter`):
|
|
10556
|
+
Required. The subproperty event
|
|
10557
|
+
filter to create.
|
|
10558
|
+
|
|
10559
|
+
This corresponds to the ``subproperty_event_filter`` field
|
|
10560
|
+
on the ``request`` instance; if ``request`` is provided, this
|
|
10561
|
+
should not be set.
|
|
10562
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
10563
|
+
should be retried.
|
|
10564
|
+
timeout (float): The timeout for this request.
|
|
10565
|
+
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
10566
|
+
sent along with the request as metadata.
|
|
10567
|
+
|
|
10568
|
+
Returns:
|
|
10569
|
+
google.analytics.admin_v1alpha.types.SubpropertyEventFilter:
|
|
10570
|
+
A resource message representing a GA4
|
|
10571
|
+
Subproperty event filter.
|
|
10572
|
+
|
|
10573
|
+
"""
|
|
10574
|
+
# Create or coerce a protobuf request object.
|
|
10575
|
+
# Quick check: If we got a request object, we should *not* have
|
|
10576
|
+
# gotten any keyword arguments that map to the request.
|
|
10577
|
+
has_flattened_params = any([parent, subproperty_event_filter])
|
|
10578
|
+
if request is not None and has_flattened_params:
|
|
10579
|
+
raise ValueError(
|
|
10580
|
+
"If the `request` argument is set, then none of "
|
|
10581
|
+
"the individual field arguments should be set."
|
|
10582
|
+
)
|
|
10583
|
+
|
|
10584
|
+
request = analytics_admin.CreateSubpropertyEventFilterRequest(request)
|
|
10585
|
+
|
|
10586
|
+
# If we have keyword arguments corresponding to fields on the
|
|
10587
|
+
# request, apply these.
|
|
10588
|
+
if parent is not None:
|
|
10589
|
+
request.parent = parent
|
|
10590
|
+
if subproperty_event_filter is not None:
|
|
10591
|
+
request.subproperty_event_filter = subproperty_event_filter
|
|
10592
|
+
|
|
10593
|
+
# Wrap the RPC method; this adds retry and timeout information,
|
|
10594
|
+
# and friendly error handling.
|
|
10595
|
+
rpc = gapic_v1.method_async.wrap_method(
|
|
10596
|
+
self._client._transport.create_subproperty_event_filter,
|
|
10597
|
+
default_timeout=None,
|
|
10598
|
+
client_info=DEFAULT_CLIENT_INFO,
|
|
10599
|
+
)
|
|
10600
|
+
|
|
10601
|
+
# Certain fields should be provided within the metadata header;
|
|
10602
|
+
# add these here.
|
|
10603
|
+
metadata = tuple(metadata) + (
|
|
10604
|
+
gapic_v1.routing_header.to_grpc_metadata((("parent", request.parent),)),
|
|
10605
|
+
)
|
|
10606
|
+
|
|
10607
|
+
# Send the request.
|
|
10608
|
+
response = await rpc(
|
|
10609
|
+
request,
|
|
10610
|
+
retry=retry,
|
|
10611
|
+
timeout=timeout,
|
|
10612
|
+
metadata=metadata,
|
|
10613
|
+
)
|
|
10614
|
+
|
|
10615
|
+
# Done; return the response.
|
|
10616
|
+
return response
|
|
10617
|
+
|
|
10618
|
+
async def get_subproperty_event_filter(
|
|
10619
|
+
self,
|
|
10620
|
+
request: Optional[
|
|
10621
|
+
Union[analytics_admin.GetSubpropertyEventFilterRequest, dict]
|
|
10530
10622
|
] = None,
|
|
10531
10623
|
*,
|
|
10532
10624
|
name: Optional[str] = None,
|
|
10533
10625
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
10534
10626
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
10535
10627
|
metadata: Sequence[Tuple[str, str]] = (),
|
|
10536
|
-
) ->
|
|
10537
|
-
r"""
|
|
10628
|
+
) -> subproperty_event_filter.SubpropertyEventFilter:
|
|
10629
|
+
r"""Lookup for a single subproperty Event Filter.
|
|
10538
10630
|
|
|
10539
10631
|
Args:
|
|
10540
|
-
request (Optional[Union[google.analytics.admin_v1alpha.types.
|
|
10632
|
+
request (Optional[Union[google.analytics.admin_v1alpha.types.GetSubpropertyEventFilterRequest, dict]]):
|
|
10541
10633
|
The request object. Request message for
|
|
10542
|
-
|
|
10634
|
+
GetSubpropertyEventFilter RPC.
|
|
10543
10635
|
name (:class:`str`):
|
|
10544
10636
|
Required. Resource name of the subproperty event filter
|
|
10545
|
-
to
|
|
10637
|
+
to lookup. Format:
|
|
10546
10638
|
properties/property_id/subpropertyEventFilters/subproperty_event_filter
|
|
10547
10639
|
Example: properties/123/subpropertyEventFilters/456
|
|
10548
10640
|
|
|
@@ -10554,6 +10646,12 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
10554
10646
|
timeout (float): The timeout for this request.
|
|
10555
10647
|
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
10556
10648
|
sent along with the request as metadata.
|
|
10649
|
+
|
|
10650
|
+
Returns:
|
|
10651
|
+
google.analytics.admin_v1alpha.types.SubpropertyEventFilter:
|
|
10652
|
+
A resource message representing a GA4
|
|
10653
|
+
Subproperty event filter.
|
|
10654
|
+
|
|
10557
10655
|
"""
|
|
10558
10656
|
# Create or coerce a protobuf request object.
|
|
10559
10657
|
# Quick check: If we got a request object, we should *not* have
|
|
@@ -10565,7 +10663,7 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
10565
10663
|
"the individual field arguments should be set."
|
|
10566
10664
|
)
|
|
10567
10665
|
|
|
10568
|
-
request = analytics_admin.
|
|
10666
|
+
request = analytics_admin.GetSubpropertyEventFilterRequest(request)
|
|
10569
10667
|
|
|
10570
10668
|
# If we have keyword arguments corresponding to fields on the
|
|
10571
10669
|
# request, apply these.
|
|
@@ -10575,7 +10673,7 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
10575
10673
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
10576
10674
|
# and friendly error handling.
|
|
10577
10675
|
rpc = gapic_v1.method_async.wrap_method(
|
|
10578
|
-
self._client._transport.
|
|
10676
|
+
self._client._transport.get_subproperty_event_filter,
|
|
10579
10677
|
default_timeout=None,
|
|
10580
10678
|
client_info=DEFAULT_CLIENT_INFO,
|
|
10581
10679
|
)
|
|
@@ -10587,48 +10685,143 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
10587
10685
|
)
|
|
10588
10686
|
|
|
10589
10687
|
# Send the request.
|
|
10590
|
-
await rpc(
|
|
10688
|
+
response = await rpc(
|
|
10591
10689
|
request,
|
|
10592
10690
|
retry=retry,
|
|
10593
10691
|
timeout=timeout,
|
|
10594
10692
|
metadata=metadata,
|
|
10595
10693
|
)
|
|
10596
10694
|
|
|
10597
|
-
|
|
10695
|
+
# Done; return the response.
|
|
10696
|
+
return response
|
|
10697
|
+
|
|
10698
|
+
async def list_subproperty_event_filters(
|
|
10598
10699
|
self,
|
|
10599
10700
|
request: Optional[
|
|
10600
|
-
Union[analytics_admin.
|
|
10701
|
+
Union[analytics_admin.ListSubpropertyEventFiltersRequest, dict]
|
|
10601
10702
|
] = None,
|
|
10602
10703
|
*,
|
|
10603
10704
|
parent: Optional[str] = None,
|
|
10604
|
-
subproperty_event_filter: Optional[
|
|
10605
|
-
gaa_subproperty_event_filter.SubpropertyEventFilter
|
|
10606
|
-
] = None,
|
|
10607
10705
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
10608
10706
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
10609
10707
|
metadata: Sequence[Tuple[str, str]] = (),
|
|
10610
|
-
) ->
|
|
10611
|
-
r"""
|
|
10708
|
+
) -> pagers.ListSubpropertyEventFiltersAsyncPager:
|
|
10709
|
+
r"""List all subproperty Event Filters on a property.
|
|
10612
10710
|
|
|
10613
10711
|
Args:
|
|
10614
|
-
request (Optional[Union[google.analytics.admin_v1alpha.types.
|
|
10712
|
+
request (Optional[Union[google.analytics.admin_v1alpha.types.ListSubpropertyEventFiltersRequest, dict]]):
|
|
10615
10713
|
The request object. Request message for
|
|
10616
|
-
|
|
10714
|
+
ListSubpropertyEventFilters RPC.
|
|
10617
10715
|
parent (:class:`str`):
|
|
10618
|
-
Required.
|
|
10619
|
-
|
|
10620
|
-
Example: properties/123
|
|
10716
|
+
Required. Resource name of the ordinary property.
|
|
10717
|
+
Format: properties/property_id Example: properties/123
|
|
10621
10718
|
|
|
10622
10719
|
This corresponds to the ``parent`` field
|
|
10623
10720
|
on the ``request`` instance; if ``request`` is provided, this
|
|
10624
10721
|
should not be set.
|
|
10722
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
10723
|
+
should be retried.
|
|
10724
|
+
timeout (float): The timeout for this request.
|
|
10725
|
+
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
10726
|
+
sent along with the request as metadata.
|
|
10727
|
+
|
|
10728
|
+
Returns:
|
|
10729
|
+
google.analytics.admin_v1alpha.services.analytics_admin_service.pagers.ListSubpropertyEventFiltersAsyncPager:
|
|
10730
|
+
Response message for
|
|
10731
|
+
ListSubpropertyEventFilter RPC.
|
|
10732
|
+
Iterating over this object will yield
|
|
10733
|
+
results and resolve additional pages
|
|
10734
|
+
automatically.
|
|
10735
|
+
|
|
10736
|
+
"""
|
|
10737
|
+
# Create or coerce a protobuf request object.
|
|
10738
|
+
# Quick check: If we got a request object, we should *not* have
|
|
10739
|
+
# gotten any keyword arguments that map to the request.
|
|
10740
|
+
has_flattened_params = any([parent])
|
|
10741
|
+
if request is not None and has_flattened_params:
|
|
10742
|
+
raise ValueError(
|
|
10743
|
+
"If the `request` argument is set, then none of "
|
|
10744
|
+
"the individual field arguments should be set."
|
|
10745
|
+
)
|
|
10746
|
+
|
|
10747
|
+
request = analytics_admin.ListSubpropertyEventFiltersRequest(request)
|
|
10748
|
+
|
|
10749
|
+
# If we have keyword arguments corresponding to fields on the
|
|
10750
|
+
# request, apply these.
|
|
10751
|
+
if parent is not None:
|
|
10752
|
+
request.parent = parent
|
|
10753
|
+
|
|
10754
|
+
# Wrap the RPC method; this adds retry and timeout information,
|
|
10755
|
+
# and friendly error handling.
|
|
10756
|
+
rpc = gapic_v1.method_async.wrap_method(
|
|
10757
|
+
self._client._transport.list_subproperty_event_filters,
|
|
10758
|
+
default_timeout=None,
|
|
10759
|
+
client_info=DEFAULT_CLIENT_INFO,
|
|
10760
|
+
)
|
|
10761
|
+
|
|
10762
|
+
# Certain fields should be provided within the metadata header;
|
|
10763
|
+
# add these here.
|
|
10764
|
+
metadata = tuple(metadata) + (
|
|
10765
|
+
gapic_v1.routing_header.to_grpc_metadata((("parent", request.parent),)),
|
|
10766
|
+
)
|
|
10767
|
+
|
|
10768
|
+
# Send the request.
|
|
10769
|
+
response = await rpc(
|
|
10770
|
+
request,
|
|
10771
|
+
retry=retry,
|
|
10772
|
+
timeout=timeout,
|
|
10773
|
+
metadata=metadata,
|
|
10774
|
+
)
|
|
10775
|
+
|
|
10776
|
+
# This method is paged; wrap the response in a pager, which provides
|
|
10777
|
+
# an `__aiter__` convenience method.
|
|
10778
|
+
response = pagers.ListSubpropertyEventFiltersAsyncPager(
|
|
10779
|
+
method=rpc,
|
|
10780
|
+
request=request,
|
|
10781
|
+
response=response,
|
|
10782
|
+
metadata=metadata,
|
|
10783
|
+
)
|
|
10784
|
+
|
|
10785
|
+
# Done; return the response.
|
|
10786
|
+
return response
|
|
10787
|
+
|
|
10788
|
+
async def update_subproperty_event_filter(
|
|
10789
|
+
self,
|
|
10790
|
+
request: Optional[
|
|
10791
|
+
Union[analytics_admin.UpdateSubpropertyEventFilterRequest, dict]
|
|
10792
|
+
] = None,
|
|
10793
|
+
*,
|
|
10794
|
+
subproperty_event_filter: Optional[
|
|
10795
|
+
gaa_subproperty_event_filter.SubpropertyEventFilter
|
|
10796
|
+
] = None,
|
|
10797
|
+
update_mask: Optional[field_mask_pb2.FieldMask] = None,
|
|
10798
|
+
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
10799
|
+
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
10800
|
+
metadata: Sequence[Tuple[str, str]] = (),
|
|
10801
|
+
) -> gaa_subproperty_event_filter.SubpropertyEventFilter:
|
|
10802
|
+
r"""Updates a subproperty Event Filter.
|
|
10803
|
+
|
|
10804
|
+
Args:
|
|
10805
|
+
request (Optional[Union[google.analytics.admin_v1alpha.types.UpdateSubpropertyEventFilterRequest, dict]]):
|
|
10806
|
+
The request object. Request message for
|
|
10807
|
+
UpdateSubpropertyEventFilter RPC.
|
|
10625
10808
|
subproperty_event_filter (:class:`google.analytics.admin_v1alpha.types.SubpropertyEventFilter`):
|
|
10626
10809
|
Required. The subproperty event
|
|
10627
|
-
filter to
|
|
10810
|
+
filter to update.
|
|
10628
10811
|
|
|
10629
10812
|
This corresponds to the ``subproperty_event_filter`` field
|
|
10630
10813
|
on the ``request`` instance; if ``request`` is provided, this
|
|
10631
10814
|
should not be set.
|
|
10815
|
+
update_mask (:class:`google.protobuf.field_mask_pb2.FieldMask`):
|
|
10816
|
+
Required. The list of fields to update. Field names must
|
|
10817
|
+
be in snake case (for example, "field_to_update").
|
|
10818
|
+
Omitted fields will not be updated. To replace the
|
|
10819
|
+
entire entity, use one path with the string "*" to match
|
|
10820
|
+
all fields.
|
|
10821
|
+
|
|
10822
|
+
This corresponds to the ``update_mask`` field
|
|
10823
|
+
on the ``request`` instance; if ``request`` is provided, this
|
|
10824
|
+
should not be set.
|
|
10632
10825
|
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
10633
10826
|
should be retried.
|
|
10634
10827
|
timeout (float): The timeout for this request.
|
|
@@ -10644,26 +10837,26 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
10644
10837
|
# Create or coerce a protobuf request object.
|
|
10645
10838
|
# Quick check: If we got a request object, we should *not* have
|
|
10646
10839
|
# gotten any keyword arguments that map to the request.
|
|
10647
|
-
has_flattened_params = any([
|
|
10840
|
+
has_flattened_params = any([subproperty_event_filter, update_mask])
|
|
10648
10841
|
if request is not None and has_flattened_params:
|
|
10649
10842
|
raise ValueError(
|
|
10650
10843
|
"If the `request` argument is set, then none of "
|
|
10651
10844
|
"the individual field arguments should be set."
|
|
10652
10845
|
)
|
|
10653
10846
|
|
|
10654
|
-
request = analytics_admin.
|
|
10847
|
+
request = analytics_admin.UpdateSubpropertyEventFilterRequest(request)
|
|
10655
10848
|
|
|
10656
10849
|
# If we have keyword arguments corresponding to fields on the
|
|
10657
10850
|
# request, apply these.
|
|
10658
|
-
if parent is not None:
|
|
10659
|
-
request.parent = parent
|
|
10660
10851
|
if subproperty_event_filter is not None:
|
|
10661
10852
|
request.subproperty_event_filter = subproperty_event_filter
|
|
10853
|
+
if update_mask is not None:
|
|
10854
|
+
request.update_mask = update_mask
|
|
10662
10855
|
|
|
10663
10856
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
10664
10857
|
# and friendly error handling.
|
|
10665
10858
|
rpc = gapic_v1.method_async.wrap_method(
|
|
10666
|
-
self._client._transport.
|
|
10859
|
+
self._client._transport.update_subproperty_event_filter,
|
|
10667
10860
|
default_timeout=None,
|
|
10668
10861
|
client_info=DEFAULT_CLIENT_INFO,
|
|
10669
10862
|
)
|
|
@@ -10671,7 +10864,14 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
10671
10864
|
# Certain fields should be provided within the metadata header;
|
|
10672
10865
|
# add these here.
|
|
10673
10866
|
metadata = tuple(metadata) + (
|
|
10674
|
-
gapic_v1.routing_header.to_grpc_metadata(
|
|
10867
|
+
gapic_v1.routing_header.to_grpc_metadata(
|
|
10868
|
+
(
|
|
10869
|
+
(
|
|
10870
|
+
"subproperty_event_filter.name",
|
|
10871
|
+
request.subproperty_event_filter.name,
|
|
10872
|
+
),
|
|
10873
|
+
)
|
|
10874
|
+
),
|
|
10675
10875
|
)
|
|
10676
10876
|
|
|
10677
10877
|
# Send the request.
|
|
@@ -10685,6 +10885,77 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
10685
10885
|
# Done; return the response.
|
|
10686
10886
|
return response
|
|
10687
10887
|
|
|
10888
|
+
async def delete_subproperty_event_filter(
|
|
10889
|
+
self,
|
|
10890
|
+
request: Optional[
|
|
10891
|
+
Union[analytics_admin.DeleteSubpropertyEventFilterRequest, dict]
|
|
10892
|
+
] = None,
|
|
10893
|
+
*,
|
|
10894
|
+
name: Optional[str] = None,
|
|
10895
|
+
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
10896
|
+
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
10897
|
+
metadata: Sequence[Tuple[str, str]] = (),
|
|
10898
|
+
) -> None:
|
|
10899
|
+
r"""Deletes a subproperty event filter.
|
|
10900
|
+
|
|
10901
|
+
Args:
|
|
10902
|
+
request (Optional[Union[google.analytics.admin_v1alpha.types.DeleteSubpropertyEventFilterRequest, dict]]):
|
|
10903
|
+
The request object. Request message for
|
|
10904
|
+
DeleteSubpropertyEventFilter RPC.
|
|
10905
|
+
name (:class:`str`):
|
|
10906
|
+
Required. Resource name of the subproperty event filter
|
|
10907
|
+
to delete. Format:
|
|
10908
|
+
properties/property_id/subpropertyEventFilters/subproperty_event_filter
|
|
10909
|
+
Example: properties/123/subpropertyEventFilters/456
|
|
10910
|
+
|
|
10911
|
+
This corresponds to the ``name`` field
|
|
10912
|
+
on the ``request`` instance; if ``request`` is provided, this
|
|
10913
|
+
should not be set.
|
|
10914
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
10915
|
+
should be retried.
|
|
10916
|
+
timeout (float): The timeout for this request.
|
|
10917
|
+
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
10918
|
+
sent along with the request as metadata.
|
|
10919
|
+
"""
|
|
10920
|
+
# Create or coerce a protobuf request object.
|
|
10921
|
+
# Quick check: If we got a request object, we should *not* have
|
|
10922
|
+
# gotten any keyword arguments that map to the request.
|
|
10923
|
+
has_flattened_params = any([name])
|
|
10924
|
+
if request is not None and has_flattened_params:
|
|
10925
|
+
raise ValueError(
|
|
10926
|
+
"If the `request` argument is set, then none of "
|
|
10927
|
+
"the individual field arguments should be set."
|
|
10928
|
+
)
|
|
10929
|
+
|
|
10930
|
+
request = analytics_admin.DeleteSubpropertyEventFilterRequest(request)
|
|
10931
|
+
|
|
10932
|
+
# If we have keyword arguments corresponding to fields on the
|
|
10933
|
+
# request, apply these.
|
|
10934
|
+
if name is not None:
|
|
10935
|
+
request.name = name
|
|
10936
|
+
|
|
10937
|
+
# Wrap the RPC method; this adds retry and timeout information,
|
|
10938
|
+
# and friendly error handling.
|
|
10939
|
+
rpc = gapic_v1.method_async.wrap_method(
|
|
10940
|
+
self._client._transport.delete_subproperty_event_filter,
|
|
10941
|
+
default_timeout=None,
|
|
10942
|
+
client_info=DEFAULT_CLIENT_INFO,
|
|
10943
|
+
)
|
|
10944
|
+
|
|
10945
|
+
# Certain fields should be provided within the metadata header;
|
|
10946
|
+
# add these here.
|
|
10947
|
+
metadata = tuple(metadata) + (
|
|
10948
|
+
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
|
|
10949
|
+
)
|
|
10950
|
+
|
|
10951
|
+
# Send the request.
|
|
10952
|
+
await rpc(
|
|
10953
|
+
request,
|
|
10954
|
+
retry=retry,
|
|
10955
|
+
timeout=timeout,
|
|
10956
|
+
metadata=metadata,
|
|
10957
|
+
)
|
|
10958
|
+
|
|
10688
10959
|
async def __aenter__(self) -> "AnalyticsAdminServiceAsyncClient":
|
|
10689
10960
|
return self
|
|
10690
10961
|
|