google-analytics-admin 0.27.0__tar.gz → 0.28.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.28.0}/PKG-INFO +6 -8
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/README.rst +2 -2
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin/gapic_version.py +1 -1
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1alpha/__init__.py +1 -0
- {google_analytics_admin-0.27.0/google/analytics/admin_v1beta → google_analytics_admin-0.28.0/google/analytics/admin_v1alpha}/gapic_version.py +1 -1
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/async_client.py +30 -19
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/client.py +33 -31
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.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.28.0/google/analytics/admin_v1alpha}/services/analytics_admin_service/transports/__init__.py +1 -3
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/base.py +26 -15
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/grpc.py +340 -334
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/grpc_asyncio.py +339 -333
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/rest.py +624 -854
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/rest_base.py +11 -9
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1alpha/types/access_report.py +3 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1alpha/types/analytics_admin.py +80 -78
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1alpha/types/audience.py +14 -8
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1alpha/types/channel_group.py +7 -6
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1alpha/types/event_create_and_edit.py +1 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1alpha/types/expanded_data_set.py +8 -7
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1alpha/types/resources.py +33 -5
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1alpha/types/subproperty_event_filter.py +14 -12
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1beta/__init__.py +1 -0
- {google_analytics_admin-0.27.0/google/analytics/admin_v1alpha → google_analytics_admin-0.28.0/google/analytics/admin_v1beta}/gapic_version.py +1 -1
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1beta/services/analytics_admin_service/async_client.py +18 -10
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1beta/services/analytics_admin_service/client.py +21 -22
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.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.28.0/google/analytics/admin_v1beta}/services/analytics_admin_service/transports/__init__.py +1 -3
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/base.py +16 -7
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/grpc.py +66 -62
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.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.28.0}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/rest.py +144 -231
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.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.28.0}/google/analytics/admin_v1beta/types/access_report.py +3 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1beta/types/analytics_admin.py +26 -26
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1beta/types/resources.py +16 -2
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0/google_analytics_admin.egg-info}/PKG-INFO +6 -8
- google_analytics_admin-0.28.0/google_analytics_admin.egg-info/requires.txt +11 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/setup.py +3 -5
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/tests/unit/gapic/admin_v1alpha/test_analytics_admin_service.py +3020 -2522
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.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.28.0}/LICENSE +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/MANIFEST.in +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin/__init__.py +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin/py.typed +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1alpha/gapic_metadata.json +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1alpha/py.typed +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1alpha/services/__init__.py +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/__init__.py +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1alpha/types/__init__.py +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1beta/gapic_metadata.json +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1beta/py.typed +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1beta/services/__init__.py +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1beta/services/analytics_admin_service/__init__.py +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google/analytics/admin_v1beta/types/__init__.py +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google_analytics_admin.egg-info/SOURCES.txt +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google_analytics_admin.egg-info/dependency_links.txt +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google_analytics_admin.egg-info/not-zip-safe +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/google_analytics_admin.egg-info/top_level.txt +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/setup.cfg +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/tests/__init__.py +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/tests/unit/__init__.py +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/tests/unit/gapic/__init__.py +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.0}/tests/unit/gapic/admin_v1alpha/__init__.py +0 -0
- {google_analytics_admin-0.27.0 → google_analytics_admin-0.28.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.28.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
|
|
@@ -106,14 +104,14 @@ Supported Python Versions
|
|
|
106
104
|
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
|
|
107
105
|
Python.
|
|
108
106
|
|
|
109
|
-
Python >= 3.
|
|
107
|
+
Python >= 3.9, including 3.14
|
|
110
108
|
|
|
111
109
|
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
|
|
112
110
|
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
|
|
113
111
|
|
|
114
112
|
Unsupported Python Versions
|
|
115
113
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
116
|
-
Python <= 3.
|
|
114
|
+
Python <= 3.8
|
|
117
115
|
|
|
118
116
|
If you are using an `end-of-life`_
|
|
119
117
|
version of Python, we recommend that you update as soon as possible to an actively supported version.
|
|
@@ -61,14 +61,14 @@ Supported Python Versions
|
|
|
61
61
|
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
|
|
62
62
|
Python.
|
|
63
63
|
|
|
64
|
-
Python >= 3.
|
|
64
|
+
Python >= 3.9, including 3.14
|
|
65
65
|
|
|
66
66
|
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
|
|
67
67
|
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
|
|
68
68
|
|
|
69
69
|
Unsupported Python Versions
|
|
70
70
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
71
|
-
Python <= 3.
|
|
71
|
+
Python <= 3.8
|
|
72
72
|
|
|
73
73
|
If you are using an `end-of-life`_
|
|
74
74
|
version of Python, we recommend that you update as soon as possible to an actively supported version.
|
|
@@ -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
|
|
@@ -325,7 +328,10 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
325
328
|
Returns:
|
|
326
329
|
AnalyticsAdminServiceAsyncClient: The constructed client.
|
|
327
330
|
"""
|
|
328
|
-
|
|
331
|
+
sa_info_func = (
|
|
332
|
+
AnalyticsAdminServiceClient.from_service_account_info.__func__ # type: ignore
|
|
333
|
+
)
|
|
334
|
+
return sa_info_func(AnalyticsAdminServiceAsyncClient, info, *args, **kwargs)
|
|
329
335
|
|
|
330
336
|
@classmethod
|
|
331
337
|
def from_service_account_file(cls, filename: str, *args, **kwargs):
|
|
@@ -341,7 +347,10 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
341
347
|
Returns:
|
|
342
348
|
AnalyticsAdminServiceAsyncClient: The constructed client.
|
|
343
349
|
"""
|
|
344
|
-
|
|
350
|
+
sa_file_func = (
|
|
351
|
+
AnalyticsAdminServiceClient.from_service_account_file.__func__ # type: ignore
|
|
352
|
+
)
|
|
353
|
+
return sa_file_func(AnalyticsAdminServiceAsyncClient, filename, *args, **kwargs)
|
|
345
354
|
|
|
346
355
|
from_service_account_json = from_service_account_file
|
|
347
356
|
|
|
@@ -379,7 +388,9 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
379
388
|
Raises:
|
|
380
389
|
google.auth.exceptions.MutualTLSChannelError: If any errors happen.
|
|
381
390
|
"""
|
|
382
|
-
return AnalyticsAdminServiceClient.get_mtls_endpoint_and_cert_source(
|
|
391
|
+
return AnalyticsAdminServiceClient.get_mtls_endpoint_and_cert_source(
|
|
392
|
+
client_options
|
|
393
|
+
) # type: ignore
|
|
383
394
|
|
|
384
395
|
@property
|
|
385
396
|
def transport(self) -> AnalyticsAdminServiceTransport:
|
|
@@ -391,7 +402,7 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
391
402
|
return self._client.transport
|
|
392
403
|
|
|
393
404
|
@property
|
|
394
|
-
def api_endpoint(self):
|
|
405
|
+
def api_endpoint(self) -> str:
|
|
395
406
|
"""Return the API endpoint used by the client instance.
|
|
396
407
|
|
|
397
408
|
Returns:
|
|
@@ -13,12 +13,13 @@
|
|
|
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
|
-
from http import HTTPStatus
|
|
18
16
|
import json
|
|
19
17
|
import logging as std_logging
|
|
20
18
|
import os
|
|
21
19
|
import re
|
|
20
|
+
import warnings
|
|
21
|
+
from collections import OrderedDict
|
|
22
|
+
from http import HTTPStatus
|
|
22
23
|
from typing import (
|
|
23
24
|
Callable,
|
|
24
25
|
Dict,
|
|
@@ -32,8 +33,8 @@ from typing import (
|
|
|
32
33
|
Union,
|
|
33
34
|
cast,
|
|
34
35
|
)
|
|
35
|
-
import warnings
|
|
36
36
|
|
|
37
|
+
import google.protobuf
|
|
37
38
|
from google.api_core import client_options as client_options_lib
|
|
38
39
|
from google.api_core import exceptions as core_exceptions
|
|
39
40
|
from google.api_core import gapic_v1
|
|
@@ -43,7 +44,6 @@ from google.auth.exceptions import MutualTLSChannelError # type: ignore
|
|
|
43
44
|
from google.auth.transport import mtls # type: ignore
|
|
44
45
|
from google.auth.transport.grpc import SslCredentials # type: ignore
|
|
45
46
|
from google.oauth2 import service_account # type: ignore
|
|
46
|
-
import google.protobuf
|
|
47
47
|
|
|
48
48
|
from google.analytics.admin_v1alpha import gapic_version as package_version
|
|
49
49
|
|
|
@@ -61,12 +61,23 @@ except ImportError: # pragma: NO COVER
|
|
|
61
61
|
|
|
62
62
|
_LOGGER = std_logging.getLogger(__name__)
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
import google.protobuf.field_mask_pb2 as field_mask_pb2 # type: ignore
|
|
65
|
+
import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
|
|
66
|
+
import google.protobuf.wrappers_pb2 as wrappers_pb2 # type: ignore
|
|
67
|
+
import google.type.date_pb2 as date_pb2 # type: ignore
|
|
68
68
|
|
|
69
69
|
from google.analytics.admin_v1alpha.services.analytics_admin_service import pagers
|
|
70
|
+
from google.analytics.admin_v1alpha.types import (
|
|
71
|
+
access_report,
|
|
72
|
+
analytics_admin,
|
|
73
|
+
audience,
|
|
74
|
+
channel_group,
|
|
75
|
+
event_create_and_edit,
|
|
76
|
+
expanded_data_set,
|
|
77
|
+
resources,
|
|
78
|
+
subproperty_event_filter,
|
|
79
|
+
)
|
|
80
|
+
from google.analytics.admin_v1alpha.types import audience as gaa_audience
|
|
70
81
|
from google.analytics.admin_v1alpha.types import channel_group as gaa_channel_group
|
|
71
82
|
from google.analytics.admin_v1alpha.types import (
|
|
72
83
|
expanded_data_set as gaa_expanded_data_set,
|
|
@@ -74,14 +85,6 @@ from google.analytics.admin_v1alpha.types import (
|
|
|
74
85
|
from google.analytics.admin_v1alpha.types import (
|
|
75
86
|
subproperty_event_filter as gaa_subproperty_event_filter,
|
|
76
87
|
)
|
|
77
|
-
from google.analytics.admin_v1alpha.types import access_report, analytics_admin
|
|
78
|
-
from google.analytics.admin_v1alpha.types import audience
|
|
79
|
-
from google.analytics.admin_v1alpha.types import audience as gaa_audience
|
|
80
|
-
from google.analytics.admin_v1alpha.types import channel_group
|
|
81
|
-
from google.analytics.admin_v1alpha.types import event_create_and_edit
|
|
82
|
-
from google.analytics.admin_v1alpha.types import expanded_data_set
|
|
83
|
-
from google.analytics.admin_v1alpha.types import resources
|
|
84
|
-
from google.analytics.admin_v1alpha.types import subproperty_event_filter
|
|
85
88
|
|
|
86
89
|
from .transports.base import DEFAULT_CLIENT_INFO, AnalyticsAdminServiceTransport
|
|
87
90
|
from .transports.grpc import AnalyticsAdminServiceGrpcTransport
|
|
@@ -97,9 +100,7 @@ class AnalyticsAdminServiceClientMeta(type):
|
|
|
97
100
|
objects.
|
|
98
101
|
"""
|
|
99
102
|
|
|
100
|
-
_transport_registry = (
|
|
101
|
-
OrderedDict()
|
|
102
|
-
) # type: Dict[str, Type[AnalyticsAdminServiceTransport]]
|
|
103
|
+
_transport_registry = OrderedDict() # type: Dict[str, Type[AnalyticsAdminServiceTransport]]
|
|
103
104
|
_transport_registry["grpc"] = AnalyticsAdminServiceGrpcTransport
|
|
104
105
|
_transport_registry["grpc_asyncio"] = AnalyticsAdminServiceGrpcAsyncIOTransport
|
|
105
106
|
_transport_registry["rest"] = AnalyticsAdminServiceRestTransport
|
|
@@ -130,7 +131,7 @@ class AnalyticsAdminServiceClient(metaclass=AnalyticsAdminServiceClientMeta):
|
|
|
130
131
|
"""Service Interface for the Google Analytics Admin API."""
|
|
131
132
|
|
|
132
133
|
@staticmethod
|
|
133
|
-
def _get_default_mtls_endpoint(api_endpoint):
|
|
134
|
+
def _get_default_mtls_endpoint(api_endpoint) -> Optional[str]:
|
|
134
135
|
"""Converts api endpoint to mTLS endpoint.
|
|
135
136
|
|
|
136
137
|
Convert "*.sandbox.googleapis.com" and "*.googleapis.com" to
|
|
@@ -138,7 +139,7 @@ class AnalyticsAdminServiceClient(metaclass=AnalyticsAdminServiceClientMeta):
|
|
|
138
139
|
Args:
|
|
139
140
|
api_endpoint (Optional[str]): the api endpoint to convert.
|
|
140
141
|
Returns:
|
|
141
|
-
str: converted mTLS api endpoint.
|
|
142
|
+
Optional[str]: converted mTLS api endpoint.
|
|
142
143
|
"""
|
|
143
144
|
if not api_endpoint:
|
|
144
145
|
return api_endpoint
|
|
@@ -148,6 +149,10 @@ class AnalyticsAdminServiceClient(metaclass=AnalyticsAdminServiceClientMeta):
|
|
|
148
149
|
)
|
|
149
150
|
|
|
150
151
|
m = mtls_endpoint_re.match(api_endpoint)
|
|
152
|
+
if m is None:
|
|
153
|
+
# Could not parse api_endpoint; return as-is.
|
|
154
|
+
return api_endpoint
|
|
155
|
+
|
|
151
156
|
name, mtls, sandbox, googledomain = m.groups()
|
|
152
157
|
if mtls or not googledomain:
|
|
153
158
|
return api_endpoint
|
|
@@ -1129,7 +1134,7 @@ class AnalyticsAdminServiceClient(metaclass=AnalyticsAdminServiceClientMeta):
|
|
|
1129
1134
|
@staticmethod
|
|
1130
1135
|
def _get_api_endpoint(
|
|
1131
1136
|
api_override, client_cert_source, universe_domain, use_mtls_endpoint
|
|
1132
|
-
):
|
|
1137
|
+
) -> str:
|
|
1133
1138
|
"""Return the API endpoint used by the client.
|
|
1134
1139
|
|
|
1135
1140
|
Args:
|
|
@@ -1228,7 +1233,7 @@ class AnalyticsAdminServiceClient(metaclass=AnalyticsAdminServiceClientMeta):
|
|
|
1228
1233
|
error._details.append(json.dumps(cred_info))
|
|
1229
1234
|
|
|
1230
1235
|
@property
|
|
1231
|
-
def api_endpoint(self):
|
|
1236
|
+
def api_endpoint(self) -> str:
|
|
1232
1237
|
"""Return the API endpoint used by the client instance.
|
|
1233
1238
|
|
|
1234
1239
|
Returns:
|
|
@@ -1319,18 +1324,16 @@ class AnalyticsAdminServiceClient(metaclass=AnalyticsAdminServiceClientMeta):
|
|
|
1319
1324
|
|
|
1320
1325
|
universe_domain_opt = getattr(self._client_options, "universe_domain", None)
|
|
1321
1326
|
|
|
1322
|
-
(
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
self._universe_domain_env,
|
|
1326
|
-
) = AnalyticsAdminServiceClient._read_environment_variables()
|
|
1327
|
+
self._use_client_cert, self._use_mtls_endpoint, self._universe_domain_env = (
|
|
1328
|
+
AnalyticsAdminServiceClient._read_environment_variables()
|
|
1329
|
+
)
|
|
1327
1330
|
self._client_cert_source = AnalyticsAdminServiceClient._get_client_cert_source(
|
|
1328
1331
|
self._client_options.client_cert_source, self._use_client_cert
|
|
1329
1332
|
)
|
|
1330
1333
|
self._universe_domain = AnalyticsAdminServiceClient._get_universe_domain(
|
|
1331
1334
|
universe_domain_opt, self._universe_domain_env
|
|
1332
1335
|
)
|
|
1333
|
-
self._api_endpoint =
|
|
1336
|
+
self._api_endpoint: str = "" # updated below, depending on `transport`
|
|
1334
1337
|
|
|
1335
1338
|
# Initialize the universe domain validation.
|
|
1336
1339
|
self._is_universe_domain_valid = False
|
|
@@ -1358,8 +1361,7 @@ class AnalyticsAdminServiceClient(metaclass=AnalyticsAdminServiceClientMeta):
|
|
|
1358
1361
|
)
|
|
1359
1362
|
if self._client_options.scopes:
|
|
1360
1363
|
raise ValueError(
|
|
1361
|
-
"When providing a transport instance, provide its scopes "
|
|
1362
|
-
"directly."
|
|
1364
|
+
"When providing a transport instance, provide its scopes directly."
|
|
1363
1365
|
)
|
|
1364
1366
|
self._transport = cast(AnalyticsAdminServiceTransport, transport)
|
|
1365
1367
|
self._api_endpoint = self._transport.host
|