google-analytics-admin 0.27.0__tar.gz → 0.29.0__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.27.0/google_analytics_admin.egg-info → google_analytics_admin-0.29.0}/PKG-INFO +21 -17
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/README.rst +17 -11
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin/__init__.py +4 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin/gapic_version.py +1 -1
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/__init__.py +5 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/gapic_metadata.json +15 -0
- {google_analytics_admin-0.27.0/google/analytics/admin_v1beta → google_analytics_admin-0.29.0/google/analytics/admin_v1alpha}/gapic_version.py +1 -1
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/async_client.py +129 -21
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/client.py +140 -33
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/pagers.py +58 -58
- {google_analytics_admin-0.27.0/google/analytics/admin_v1beta → google_analytics_admin-0.29.0/google/analytics/admin_v1alpha}/services/analytics_admin_service/transports/__init__.py +1 -3
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/base.py +43 -15
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/grpc.py +375 -336
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/grpc_asyncio.py +379 -335
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/rest.py +852 -854
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/rest_base.py +58 -9
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/types/__init__.py +4 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/types/access_report.py +3 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/types/analytics_admin.py +159 -140
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/types/audience.py +14 -8
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/types/channel_group.py +7 -6
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/types/event_create_and_edit.py +1 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/types/expanded_data_set.py +8 -7
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/types/resources.py +103 -26
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/types/subproperty_event_filter.py +14 -12
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/__init__.py +1 -0
- {google_analytics_admin-0.27.0/google/analytics/admin_v1alpha → google_analytics_admin-0.29.0/google/analytics/admin_v1beta}/gapic_version.py +1 -1
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/services/analytics_admin_service/async_client.py +18 -10
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/services/analytics_admin_service/client.py +21 -22
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/services/analytics_admin_service/pagers.py +24 -24
- {google_analytics_admin-0.27.0/google/analytics/admin_v1alpha → google_analytics_admin-0.29.0/google/analytics/admin_v1beta}/services/analytics_admin_service/transports/__init__.py +1 -3
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/base.py +16 -7
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/grpc.py +66 -62
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/grpc_asyncio.py +65 -61
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/rest.py +144 -231
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/rest_base.py +1 -1
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/types/access_report.py +3 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/types/analytics_admin.py +26 -26
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/types/resources.py +16 -2
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0/google_analytics_admin.egg-info}/PKG-INFO +21 -17
- google_analytics_admin-0.29.0/google_analytics_admin.egg-info/requires.txt +11 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/setup.py +3 -5
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/tests/unit/gapic/admin_v1alpha/test_analytics_admin_service.py +3807 -2534
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/tests/unit/gapic/admin_v1beta/test_analytics_admin_service.py +1103 -920
- google_analytics_admin-0.27.0/google_analytics_admin.egg-info/requires.txt +0 -11
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/LICENSE +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/MANIFEST.in +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin/py.typed +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/py.typed +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/services/__init__.py +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/__init__.py +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/gapic_metadata.json +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/py.typed +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/services/__init__.py +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/services/analytics_admin_service/__init__.py +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/types/__init__.py +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google_analytics_admin.egg-info/SOURCES.txt +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google_analytics_admin.egg-info/dependency_links.txt +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google_analytics_admin.egg-info/not-zip-safe +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google_analytics_admin.egg-info/top_level.txt +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/setup.cfg +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/tests/__init__.py +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/tests/unit/__init__.py +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/tests/unit/gapic/__init__.py +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/tests/unit/gapic/admin_v1alpha/__init__.py +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/tests/unit/gapic/admin_v1beta/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: google-analytics-admin
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.29.0
|
|
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
|
|
@@ -12,8 +12,6 @@ Classifier: Intended Audience :: Developers
|
|
|
12
12
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
13
|
Classifier: Programming Language :: Python
|
|
14
14
|
Classifier: Programming Language :: Python :: 3
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
17
15
|
Classifier: Programming Language :: Python :: 3.9
|
|
18
16
|
Classifier: Programming Language :: Python :: 3.10
|
|
19
17
|
Classifier: Programming Language :: Python :: 3.11
|
|
@@ -22,15 +20,15 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
22
20
|
Classifier: Programming Language :: Python :: 3.14
|
|
23
21
|
Classifier: Operating System :: OS Independent
|
|
24
22
|
Classifier: Topic :: Internet
|
|
25
|
-
Requires-Python: >=3.
|
|
23
|
+
Requires-Python: >=3.9
|
|
26
24
|
License-File: LICENSE
|
|
27
|
-
Requires-Dist: google-api-core[grpc]
|
|
25
|
+
Requires-Dist: google-api-core[grpc]<3.0.0,>=2.11.0
|
|
28
26
|
Requires-Dist: google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1
|
|
29
27
|
Requires-Dist: grpcio<2.0.0,>=1.33.2
|
|
30
28
|
Requires-Dist: grpcio<2.0.0,>=1.75.1; python_version >= "3.14"
|
|
31
29
|
Requires-Dist: proto-plus<2.0.0,>=1.22.3
|
|
32
30
|
Requires-Dist: proto-plus<2.0.0,>=1.25.0; python_version >= "3.13"
|
|
33
|
-
Requires-Dist: protobuf
|
|
31
|
+
Requires-Dist: protobuf<8.0.0,>=4.25.8
|
|
34
32
|
Dynamic: author
|
|
35
33
|
Dynamic: author-email
|
|
36
34
|
Dynamic: classifier
|
|
@@ -43,12 +41,18 @@ Dynamic: requires-dist
|
|
|
43
41
|
Dynamic: requires-python
|
|
44
42
|
Dynamic: summary
|
|
45
43
|
|
|
46
|
-
Python Client for Analytics Admin
|
|
47
|
-
|
|
44
|
+
Python Client for Google Analytics Admin
|
|
45
|
+
========================================
|
|
48
46
|
|
|
49
47
|
|preview| |pypi| |versions|
|
|
50
48
|
|
|
51
|
-
`Analytics Admin`_:
|
|
49
|
+
`Google Analytics Admin`_: Manage properties in Google Analytics. Warning: Creating multiple Customer
|
|
50
|
+
Applications, Accounts, or Projects to simulate or act as a single
|
|
51
|
+
Customer Application, Account, or Project (respectively) or to circumvent
|
|
52
|
+
Service-specific usage limits or quotas is a direct violation of Google
|
|
53
|
+
Cloud Platform Terms of Service as well as Google APIs Terms of Service.
|
|
54
|
+
These actions can result in immediate termination of your GCP project(s)
|
|
55
|
+
without any warning.
|
|
52
56
|
|
|
53
57
|
- `Client Library Documentation`_
|
|
54
58
|
- `Product Documentation`_
|
|
@@ -59,7 +63,7 @@ Python Client for Analytics Admin
|
|
|
59
63
|
:target: https://pypi.org/project/google-analytics-admin/
|
|
60
64
|
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-analytics-admin.svg
|
|
61
65
|
:target: https://pypi.org/project/google-analytics-admin/
|
|
62
|
-
..
|
|
66
|
+
.. _Google Analytics Admin: https://developers.google.com/analytics/
|
|
63
67
|
.. _Client Library Documentation: https://googleapis.dev/python/analyticsadmin/latest
|
|
64
68
|
.. _Product Documentation: https://developers.google.com/analytics/
|
|
65
69
|
|
|
@@ -70,12 +74,12 @@ In order to use this library, you first need to go through the following steps:
|
|
|
70
74
|
|
|
71
75
|
1. `Select or create a Cloud Platform project.`_
|
|
72
76
|
2. `Enable billing for your project.`_
|
|
73
|
-
3. `Enable the Analytics Admin.`_
|
|
77
|
+
3. `Enable the Google Analytics Admin.`_
|
|
74
78
|
4. `Set up Authentication.`_
|
|
75
79
|
|
|
76
80
|
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
|
|
77
81
|
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
|
|
78
|
-
.. _Enable the Analytics Admin.: https://developers.google.com/analytics/
|
|
82
|
+
.. _Enable the Google Analytics Admin.: https://developers.google.com/analytics/
|
|
79
83
|
.. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
|
|
80
84
|
|
|
81
85
|
Installation
|
|
@@ -106,14 +110,14 @@ Supported Python Versions
|
|
|
106
110
|
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
|
|
107
111
|
Python.
|
|
108
112
|
|
|
109
|
-
Python >= 3.
|
|
113
|
+
Python >= 3.9, including 3.14
|
|
110
114
|
|
|
111
115
|
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
|
|
112
116
|
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
|
|
113
117
|
|
|
114
118
|
Unsupported Python Versions
|
|
115
119
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
116
|
-
Python <= 3.
|
|
120
|
+
Python <= 3.8
|
|
117
121
|
|
|
118
122
|
If you are using an `end-of-life`_
|
|
119
123
|
version of Python, we recommend that you update as soon as possible to an actively supported version.
|
|
@@ -142,14 +146,14 @@ Windows
|
|
|
142
146
|
Next Steps
|
|
143
147
|
~~~~~~~~~~
|
|
144
148
|
|
|
145
|
-
- Read the `Client Library Documentation`_ for Analytics Admin
|
|
149
|
+
- Read the `Client Library Documentation`_ for Google Analytics Admin
|
|
146
150
|
to see other available methods on the client.
|
|
147
|
-
- Read the `Analytics Admin Product documentation`_ to learn
|
|
151
|
+
- Read the `Google Analytics Admin Product documentation`_ to learn
|
|
148
152
|
more about the product and see How-to Guides.
|
|
149
153
|
- View this `README`_ to see the full list of Cloud
|
|
150
154
|
APIs that we cover.
|
|
151
155
|
|
|
152
|
-
..
|
|
156
|
+
.. _Google Analytics Admin Product documentation: https://developers.google.com/analytics/
|
|
153
157
|
.. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
|
|
154
158
|
|
|
155
159
|
Logging
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
Python Client for Analytics Admin
|
|
2
|
-
|
|
1
|
+
Python Client for Google Analytics Admin
|
|
2
|
+
========================================
|
|
3
3
|
|
|
4
4
|
|preview| |pypi| |versions|
|
|
5
5
|
|
|
6
|
-
`Analytics Admin`_:
|
|
6
|
+
`Google Analytics Admin`_: Manage properties in Google Analytics. Warning: Creating multiple Customer
|
|
7
|
+
Applications, Accounts, or Projects to simulate or act as a single
|
|
8
|
+
Customer Application, Account, or Project (respectively) or to circumvent
|
|
9
|
+
Service-specific usage limits or quotas is a direct violation of Google
|
|
10
|
+
Cloud Platform Terms of Service as well as Google APIs Terms of Service.
|
|
11
|
+
These actions can result in immediate termination of your GCP project(s)
|
|
12
|
+
without any warning.
|
|
7
13
|
|
|
8
14
|
- `Client Library Documentation`_
|
|
9
15
|
- `Product Documentation`_
|
|
@@ -14,7 +20,7 @@ Python Client for Analytics Admin
|
|
|
14
20
|
:target: https://pypi.org/project/google-analytics-admin/
|
|
15
21
|
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-analytics-admin.svg
|
|
16
22
|
:target: https://pypi.org/project/google-analytics-admin/
|
|
17
|
-
..
|
|
23
|
+
.. _Google Analytics Admin: https://developers.google.com/analytics/
|
|
18
24
|
.. _Client Library Documentation: https://googleapis.dev/python/analyticsadmin/latest
|
|
19
25
|
.. _Product Documentation: https://developers.google.com/analytics/
|
|
20
26
|
|
|
@@ -25,12 +31,12 @@ In order to use this library, you first need to go through the following steps:
|
|
|
25
31
|
|
|
26
32
|
1. `Select or create a Cloud Platform project.`_
|
|
27
33
|
2. `Enable billing for your project.`_
|
|
28
|
-
3. `Enable the Analytics Admin.`_
|
|
34
|
+
3. `Enable the Google Analytics Admin.`_
|
|
29
35
|
4. `Set up Authentication.`_
|
|
30
36
|
|
|
31
37
|
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
|
|
32
38
|
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
|
|
33
|
-
.. _Enable the Analytics Admin.: https://developers.google.com/analytics/
|
|
39
|
+
.. _Enable the Google Analytics Admin.: https://developers.google.com/analytics/
|
|
34
40
|
.. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
|
|
35
41
|
|
|
36
42
|
Installation
|
|
@@ -61,14 +67,14 @@ Supported Python Versions
|
|
|
61
67
|
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
|
|
62
68
|
Python.
|
|
63
69
|
|
|
64
|
-
Python >= 3.
|
|
70
|
+
Python >= 3.9, including 3.14
|
|
65
71
|
|
|
66
72
|
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
|
|
67
73
|
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
|
|
68
74
|
|
|
69
75
|
Unsupported Python Versions
|
|
70
76
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
71
|
-
Python <= 3.
|
|
77
|
+
Python <= 3.8
|
|
72
78
|
|
|
73
79
|
If you are using an `end-of-life`_
|
|
74
80
|
version of Python, we recommend that you update as soon as possible to an actively supported version.
|
|
@@ -97,14 +103,14 @@ Windows
|
|
|
97
103
|
Next Steps
|
|
98
104
|
~~~~~~~~~~
|
|
99
105
|
|
|
100
|
-
- Read the `Client Library Documentation`_ for Analytics Admin
|
|
106
|
+
- Read the `Client Library Documentation`_ for Google Analytics Admin
|
|
101
107
|
to see other available methods on the client.
|
|
102
|
-
- Read the `Analytics Admin Product documentation`_ to learn
|
|
108
|
+
- Read the `Google Analytics Admin Product documentation`_ to learn
|
|
103
109
|
more about the product and see How-to Guides.
|
|
104
110
|
- View this `README`_ to see the full list of Cloud
|
|
105
111
|
APIs that we cover.
|
|
106
112
|
|
|
107
|
-
..
|
|
113
|
+
.. _Google Analytics Admin Product documentation: https://developers.google.com/analytics/
|
|
108
114
|
.. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
|
|
109
115
|
|
|
110
116
|
Logging
|
{google_analytics_admin-0.27.0 → google_analytics_admin-0.29.0}/google/analytics/admin/__init__.py
RENAMED
|
@@ -144,6 +144,7 @@ from google.analytics.admin_v1alpha.types.analytics_admin import (
|
|
|
144
144
|
GetSKAdNetworkConversionValueSchemaRequest,
|
|
145
145
|
GetSubpropertyEventFilterRequest,
|
|
146
146
|
GetSubpropertySyncConfigRequest,
|
|
147
|
+
GetUserProvidedDataSettingsRequest,
|
|
147
148
|
ListAccessBindingsRequest,
|
|
148
149
|
ListAccessBindingsResponse,
|
|
149
150
|
ListAccountsRequest,
|
|
@@ -320,6 +321,7 @@ from google.analytics.admin_v1alpha.types.resources import (
|
|
|
320
321
|
ServiceLevel,
|
|
321
322
|
SKAdNetworkConversionValueSchema,
|
|
322
323
|
SubpropertySyncConfig,
|
|
324
|
+
UserProvidedDataSettings,
|
|
323
325
|
)
|
|
324
326
|
from google.analytics.admin_v1alpha.types.subproperty_event_filter import (
|
|
325
327
|
SubpropertyEventFilter,
|
|
@@ -449,6 +451,7 @@ __all__ = (
|
|
|
449
451
|
"GetSKAdNetworkConversionValueSchemaRequest",
|
|
450
452
|
"GetSubpropertyEventFilterRequest",
|
|
451
453
|
"GetSubpropertySyncConfigRequest",
|
|
454
|
+
"GetUserProvidedDataSettingsRequest",
|
|
452
455
|
"ListAccessBindingsRequest",
|
|
453
456
|
"ListAccessBindingsResponse",
|
|
454
457
|
"ListAccountsRequest",
|
|
@@ -604,6 +607,7 @@ __all__ = (
|
|
|
604
607
|
"SearchAds360Link",
|
|
605
608
|
"SKAdNetworkConversionValueSchema",
|
|
606
609
|
"SubpropertySyncConfig",
|
|
610
|
+
"UserProvidedDataSettings",
|
|
607
611
|
"ActionType",
|
|
608
612
|
"ActorType",
|
|
609
613
|
"ChangeHistoryResourceType",
|
|
@@ -28,6 +28,7 @@ else: # pragma: NO COVER
|
|
|
28
28
|
# this code path once we drop support for Python 3.7
|
|
29
29
|
import importlib_metadata as metadata
|
|
30
30
|
|
|
31
|
+
|
|
31
32
|
from .services.analytics_admin_service import (
|
|
32
33
|
AnalyticsAdminServiceAsyncClient,
|
|
33
34
|
AnalyticsAdminServiceClient,
|
|
@@ -152,6 +153,7 @@ from .types.analytics_admin import (
|
|
|
152
153
|
GetSKAdNetworkConversionValueSchemaRequest,
|
|
153
154
|
GetSubpropertyEventFilterRequest,
|
|
154
155
|
GetSubpropertySyncConfigRequest,
|
|
156
|
+
GetUserProvidedDataSettingsRequest,
|
|
155
157
|
ListAccessBindingsRequest,
|
|
156
158
|
ListAccessBindingsResponse,
|
|
157
159
|
ListAccountsRequest,
|
|
@@ -328,6 +330,7 @@ from .types.resources import (
|
|
|
328
330
|
ServiceLevel,
|
|
329
331
|
SKAdNetworkConversionValueSchema,
|
|
330
332
|
SubpropertySyncConfig,
|
|
333
|
+
UserProvidedDataSettings,
|
|
331
334
|
)
|
|
332
335
|
from .types.subproperty_event_filter import (
|
|
333
336
|
SubpropertyEventFilter,
|
|
@@ -596,6 +599,7 @@ __all__ = (
|
|
|
596
599
|
"GetSearchAds360LinkRequest",
|
|
597
600
|
"GetSubpropertyEventFilterRequest",
|
|
598
601
|
"GetSubpropertySyncConfigRequest",
|
|
602
|
+
"GetUserProvidedDataSettingsRequest",
|
|
599
603
|
"GlobalSiteTag",
|
|
600
604
|
"GoogleAdsLink",
|
|
601
605
|
"GoogleSignalsConsent",
|
|
@@ -722,4 +726,5 @@ __all__ = (
|
|
|
722
726
|
"UpdateSearchAds360LinkRequest",
|
|
723
727
|
"UpdateSubpropertyEventFilterRequest",
|
|
724
728
|
"UpdateSubpropertySyncConfigRequest",
|
|
729
|
+
"UserProvidedDataSettings",
|
|
725
730
|
)
|
|
@@ -470,6 +470,11 @@
|
|
|
470
470
|
"get_subproperty_sync_config"
|
|
471
471
|
]
|
|
472
472
|
},
|
|
473
|
+
"GetUserProvidedDataSettings": {
|
|
474
|
+
"methods": [
|
|
475
|
+
"get_user_provided_data_settings"
|
|
476
|
+
]
|
|
477
|
+
},
|
|
473
478
|
"ListAccessBindings": {
|
|
474
479
|
"methods": [
|
|
475
480
|
"list_access_bindings"
|
|
@@ -1245,6 +1250,11 @@
|
|
|
1245
1250
|
"get_subproperty_sync_config"
|
|
1246
1251
|
]
|
|
1247
1252
|
},
|
|
1253
|
+
"GetUserProvidedDataSettings": {
|
|
1254
|
+
"methods": [
|
|
1255
|
+
"get_user_provided_data_settings"
|
|
1256
|
+
]
|
|
1257
|
+
},
|
|
1248
1258
|
"ListAccessBindings": {
|
|
1249
1259
|
"methods": [
|
|
1250
1260
|
"list_access_bindings"
|
|
@@ -2020,6 +2030,11 @@
|
|
|
2020
2030
|
"get_subproperty_sync_config"
|
|
2021
2031
|
]
|
|
2022
2032
|
},
|
|
2033
|
+
"GetUserProvidedDataSettings": {
|
|
2034
|
+
"methods": [
|
|
2035
|
+
"get_user_provided_data_settings"
|
|
2036
|
+
]
|
|
2037
|
+
},
|
|
2023
2038
|
"ListAccessBindings": {
|
|
2024
2039
|
"methods": [
|
|
2025
2040
|
"list_access_bindings"
|
|
@@ -13,9 +13,10 @@
|
|
|
13
13
|
# See the License for the specific language governing permissions and
|
|
14
14
|
# limitations under the License.
|
|
15
15
|
#
|
|
16
|
-
from collections import OrderedDict
|
|
17
16
|
import logging as std_logging
|
|
18
17
|
import re
|
|
18
|
+
import warnings
|
|
19
|
+
from collections import OrderedDict
|
|
19
20
|
from typing import (
|
|
20
21
|
Callable,
|
|
21
22
|
Dict,
|
|
@@ -28,15 +29,14 @@ from typing import (
|
|
|
28
29
|
Type,
|
|
29
30
|
Union,
|
|
30
31
|
)
|
|
31
|
-
import warnings
|
|
32
32
|
|
|
33
|
+
import google.protobuf
|
|
33
34
|
from google.api_core import exceptions as core_exceptions
|
|
34
35
|
from google.api_core import gapic_v1
|
|
35
36
|
from google.api_core import retry_async as retries
|
|
36
37
|
from google.api_core.client_options import ClientOptions
|
|
37
38
|
from google.auth import credentials as ga_credentials # type: ignore
|
|
38
39
|
from google.oauth2 import service_account # type: ignore
|
|
39
|
-
import google.protobuf
|
|
40
40
|
|
|
41
41
|
from google.analytics.admin_v1alpha import gapic_version as package_version
|
|
42
42
|
|
|
@@ -45,12 +45,23 @@ try:
|
|
|
45
45
|
except AttributeError: # pragma: NO COVER
|
|
46
46
|
OptionalRetry = Union[retries.AsyncRetry, object, None] # type: ignore
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
import google.protobuf.field_mask_pb2 as field_mask_pb2 # type: ignore
|
|
49
|
+
import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
|
|
50
|
+
import google.protobuf.wrappers_pb2 as wrappers_pb2 # type: ignore
|
|
51
|
+
import google.type.date_pb2 as date_pb2 # type: ignore
|
|
52
52
|
|
|
53
53
|
from google.analytics.admin_v1alpha.services.analytics_admin_service import pagers
|
|
54
|
+
from google.analytics.admin_v1alpha.types import (
|
|
55
|
+
access_report,
|
|
56
|
+
analytics_admin,
|
|
57
|
+
audience,
|
|
58
|
+
channel_group,
|
|
59
|
+
event_create_and_edit,
|
|
60
|
+
expanded_data_set,
|
|
61
|
+
resources,
|
|
62
|
+
subproperty_event_filter,
|
|
63
|
+
)
|
|
64
|
+
from google.analytics.admin_v1alpha.types import audience as gaa_audience
|
|
54
65
|
from google.analytics.admin_v1alpha.types import channel_group as gaa_channel_group
|
|
55
66
|
from google.analytics.admin_v1alpha.types import (
|
|
56
67
|
expanded_data_set as gaa_expanded_data_set,
|
|
@@ -58,14 +69,6 @@ from google.analytics.admin_v1alpha.types import (
|
|
|
58
69
|
from google.analytics.admin_v1alpha.types import (
|
|
59
70
|
subproperty_event_filter as gaa_subproperty_event_filter,
|
|
60
71
|
)
|
|
61
|
-
from google.analytics.admin_v1alpha.types import access_report, analytics_admin
|
|
62
|
-
from google.analytics.admin_v1alpha.types import audience
|
|
63
|
-
from google.analytics.admin_v1alpha.types import audience as gaa_audience
|
|
64
|
-
from google.analytics.admin_v1alpha.types import channel_group
|
|
65
|
-
from google.analytics.admin_v1alpha.types import event_create_and_edit
|
|
66
|
-
from google.analytics.admin_v1alpha.types import expanded_data_set
|
|
67
|
-
from google.analytics.admin_v1alpha.types import resources
|
|
68
|
-
from google.analytics.admin_v1alpha.types import subproperty_event_filter
|
|
69
72
|
|
|
70
73
|
from .client import AnalyticsAdminServiceClient
|
|
71
74
|
from .transports.base import DEFAULT_CLIENT_INFO, AnalyticsAdminServiceTransport
|
|
@@ -285,6 +288,12 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
285
288
|
parse_subproperty_sync_config_path = staticmethod(
|
|
286
289
|
AnalyticsAdminServiceClient.parse_subproperty_sync_config_path
|
|
287
290
|
)
|
|
291
|
+
user_provided_data_settings_path = staticmethod(
|
|
292
|
+
AnalyticsAdminServiceClient.user_provided_data_settings_path
|
|
293
|
+
)
|
|
294
|
+
parse_user_provided_data_settings_path = staticmethod(
|
|
295
|
+
AnalyticsAdminServiceClient.parse_user_provided_data_settings_path
|
|
296
|
+
)
|
|
288
297
|
common_billing_account_path = staticmethod(
|
|
289
298
|
AnalyticsAdminServiceClient.common_billing_account_path
|
|
290
299
|
)
|
|
@@ -325,7 +334,10 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
325
334
|
Returns:
|
|
326
335
|
AnalyticsAdminServiceAsyncClient: The constructed client.
|
|
327
336
|
"""
|
|
328
|
-
|
|
337
|
+
sa_info_func = (
|
|
338
|
+
AnalyticsAdminServiceClient.from_service_account_info.__func__ # type: ignore
|
|
339
|
+
)
|
|
340
|
+
return sa_info_func(AnalyticsAdminServiceAsyncClient, info, *args, **kwargs)
|
|
329
341
|
|
|
330
342
|
@classmethod
|
|
331
343
|
def from_service_account_file(cls, filename: str, *args, **kwargs):
|
|
@@ -341,7 +353,10 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
341
353
|
Returns:
|
|
342
354
|
AnalyticsAdminServiceAsyncClient: The constructed client.
|
|
343
355
|
"""
|
|
344
|
-
|
|
356
|
+
sa_file_func = (
|
|
357
|
+
AnalyticsAdminServiceClient.from_service_account_file.__func__ # type: ignore
|
|
358
|
+
)
|
|
359
|
+
return sa_file_func(AnalyticsAdminServiceAsyncClient, filename, *args, **kwargs)
|
|
345
360
|
|
|
346
361
|
from_service_account_json = from_service_account_file
|
|
347
362
|
|
|
@@ -379,7 +394,9 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
379
394
|
Raises:
|
|
380
395
|
google.auth.exceptions.MutualTLSChannelError: If any errors happen.
|
|
381
396
|
"""
|
|
382
|
-
return AnalyticsAdminServiceClient.get_mtls_endpoint_and_cert_source(
|
|
397
|
+
return AnalyticsAdminServiceClient.get_mtls_endpoint_and_cert_source(
|
|
398
|
+
client_options
|
|
399
|
+
) # type: ignore
|
|
383
400
|
|
|
384
401
|
@property
|
|
385
402
|
def transport(self) -> AnalyticsAdminServiceTransport:
|
|
@@ -391,7 +408,7 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
391
408
|
return self._client.transport
|
|
392
409
|
|
|
393
410
|
@property
|
|
394
|
-
def api_endpoint(self):
|
|
411
|
+
def api_endpoint(self) -> str:
|
|
395
412
|
"""Return the API endpoint used by the client instance.
|
|
396
413
|
|
|
397
414
|
Returns:
|
|
@@ -14661,8 +14678,8 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
14661
14678
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
14662
14679
|
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
14663
14680
|
) -> resources.ReportingIdentitySettings:
|
|
14664
|
-
r"""Returns the
|
|
14665
|
-
|
|
14681
|
+
r"""Returns the reporting identity settings for this
|
|
14682
|
+
property.
|
|
14666
14683
|
|
|
14667
14684
|
Args:
|
|
14668
14685
|
request (Optional[Union[google.analytics.admin_v1alpha.types.GetReportingIdentitySettingsRequest, dict]]):
|
|
@@ -14742,6 +14759,97 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
14742
14759
|
# Done; return the response.
|
|
14743
14760
|
return response
|
|
14744
14761
|
|
|
14762
|
+
async def get_user_provided_data_settings(
|
|
14763
|
+
self,
|
|
14764
|
+
request: Optional[
|
|
14765
|
+
Union[analytics_admin.GetUserProvidedDataSettingsRequest, dict]
|
|
14766
|
+
] = None,
|
|
14767
|
+
*,
|
|
14768
|
+
name: Optional[str] = None,
|
|
14769
|
+
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
14770
|
+
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
14771
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
14772
|
+
) -> resources.UserProvidedDataSettings:
|
|
14773
|
+
r"""Looks up settings related to user-provided data for a
|
|
14774
|
+
property.
|
|
14775
|
+
|
|
14776
|
+
Args:
|
|
14777
|
+
request (Optional[Union[google.analytics.admin_v1alpha.types.GetUserProvidedDataSettingsRequest, dict]]):
|
|
14778
|
+
The request object. Request message for
|
|
14779
|
+
GetUserProvidedDataSettings RPC
|
|
14780
|
+
name (:class:`str`):
|
|
14781
|
+
Required. The name of the user
|
|
14782
|
+
provided data settings to retrieve.
|
|
14783
|
+
Format:
|
|
14784
|
+
properties/{property}/userProvidedDataSettings
|
|
14785
|
+
|
|
14786
|
+
This corresponds to the ``name`` field
|
|
14787
|
+
on the ``request`` instance; if ``request`` is provided, this
|
|
14788
|
+
should not be set.
|
|
14789
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
14790
|
+
should be retried.
|
|
14791
|
+
timeout (float): The timeout for this request.
|
|
14792
|
+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
|
|
14793
|
+
sent along with the request as metadata. Normally, each value must be of type `str`,
|
|
14794
|
+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
|
|
14795
|
+
be of type `bytes`.
|
|
14796
|
+
|
|
14797
|
+
Returns:
|
|
14798
|
+
google.analytics.admin_v1alpha.types.UserProvidedDataSettings:
|
|
14799
|
+
Configuration for user-provided data
|
|
14800
|
+
collection. This is a singleton resource
|
|
14801
|
+
for a Google Analytics property.
|
|
14802
|
+
|
|
14803
|
+
"""
|
|
14804
|
+
# Create or coerce a protobuf request object.
|
|
14805
|
+
# - Quick check: If we got a request object, we should *not* have
|
|
14806
|
+
# gotten any keyword arguments that map to the request.
|
|
14807
|
+
flattened_params = [name]
|
|
14808
|
+
has_flattened_params = (
|
|
14809
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
14810
|
+
)
|
|
14811
|
+
if request is not None and has_flattened_params:
|
|
14812
|
+
raise ValueError(
|
|
14813
|
+
"If the `request` argument is set, then none of "
|
|
14814
|
+
"the individual field arguments should be set."
|
|
14815
|
+
)
|
|
14816
|
+
|
|
14817
|
+
# - Use the request object if provided (there's no risk of modifying the input as
|
|
14818
|
+
# there are no flattened fields), or create one.
|
|
14819
|
+
if not isinstance(request, analytics_admin.GetUserProvidedDataSettingsRequest):
|
|
14820
|
+
request = analytics_admin.GetUserProvidedDataSettingsRequest(request)
|
|
14821
|
+
|
|
14822
|
+
# If we have keyword arguments corresponding to fields on the
|
|
14823
|
+
# request, apply these.
|
|
14824
|
+
if name is not None:
|
|
14825
|
+
request.name = name
|
|
14826
|
+
|
|
14827
|
+
# Wrap the RPC method; this adds retry and timeout information,
|
|
14828
|
+
# and friendly error handling.
|
|
14829
|
+
rpc = self._client._transport._wrapped_methods[
|
|
14830
|
+
self._client._transport.get_user_provided_data_settings
|
|
14831
|
+
]
|
|
14832
|
+
|
|
14833
|
+
# Certain fields should be provided within the metadata header;
|
|
14834
|
+
# add these here.
|
|
14835
|
+
metadata = tuple(metadata) + (
|
|
14836
|
+
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
|
|
14837
|
+
)
|
|
14838
|
+
|
|
14839
|
+
# Validate the universe domain.
|
|
14840
|
+
self._client._validate_universe_domain()
|
|
14841
|
+
|
|
14842
|
+
# Send the request.
|
|
14843
|
+
response = await rpc(
|
|
14844
|
+
request,
|
|
14845
|
+
retry=retry,
|
|
14846
|
+
timeout=timeout,
|
|
14847
|
+
metadata=metadata,
|
|
14848
|
+
)
|
|
14849
|
+
|
|
14850
|
+
# Done; return the response.
|
|
14851
|
+
return response
|
|
14852
|
+
|
|
14745
14853
|
async def __aenter__(self) -> "AnalyticsAdminServiceAsyncClient":
|
|
14746
14854
|
return self
|
|
14747
14855
|
|