google-cloud-dataplex 2.2.2__tar.gz → 2.3.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_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/MANIFEST.in +1 -1
- {google_cloud_dataplex-2.2.2/google_cloud_dataplex.egg-info → google_cloud_dataplex-2.3.0}/PKG-INFO +3 -1
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex/gapic_version.py +1 -1
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/gapic_version.py +1 -1
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/catalog_service/async_client.py +7 -34
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/catalog_service/client.py +7 -31
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/catalog_service/transports/base.py +30 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/catalog_service/transports/grpc_asyncio.py +65 -22
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/content_service/async_client.py +7 -34
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/content_service/client.py +7 -31
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/content_service/transports/base.py +30 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/content_service/transports/grpc_asyncio.py +51 -8
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/data_scan_service/async_client.py +7 -34
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/data_scan_service/client.py +7 -31
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/data_scan_service/transports/base.py +30 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/data_scan_service/transports/grpc_asyncio.py +52 -9
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/data_taxonomy_service/async_client.py +7 -35
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/data_taxonomy_service/client.py +7 -31
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/data_taxonomy_service/transports/base.py +30 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/data_taxonomy_service/transports/grpc_asyncio.py +58 -15
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/dataplex_service/async_client.py +7 -34
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/dataplex_service/client.py +7 -31
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/dataplex_service/transports/base.py +30 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/dataplex_service/transports/grpc_asyncio.py +76 -33
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/metadata_service/async_client.py +7 -34
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/metadata_service/client.py +7 -31
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/metadata_service/transports/base.py +30 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/metadata_service/transports/grpc_asyncio.py +52 -9
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/types/catalog.py +4 -4
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0/google_cloud_dataplex.egg-info}/PKG-INFO +3 -1
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google_cloud_dataplex.egg-info/requires.txt +3 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/setup.py +4 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/tests/unit/gapic/dataplex_v1/test_catalog_service.py +1515 -1313
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/tests/unit/gapic/dataplex_v1/test_content_service.py +575 -489
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/tests/unit/gapic/dataplex_v1/test_data_scan_service.py +649 -550
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/tests/unit/gapic/dataplex_v1/test_data_taxonomy_service.py +1130 -977
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/tests/unit/gapic/dataplex_v1/test_dataplex_service.py +2271 -1980
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/tests/unit/gapic/dataplex_v1/test_metadata_service.py +708 -615
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/LICENSE +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/README.rst +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex/__init__.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex/py.typed +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/__init__.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/gapic_metadata.json +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/py.typed +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/__init__.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/catalog_service/__init__.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/catalog_service/pagers.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/catalog_service/transports/__init__.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/catalog_service/transports/grpc.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/content_service/__init__.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/content_service/pagers.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/content_service/transports/__init__.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/content_service/transports/grpc.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/data_scan_service/__init__.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/data_scan_service/pagers.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/data_scan_service/transports/__init__.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/data_scan_service/transports/grpc.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/data_taxonomy_service/__init__.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/data_taxonomy_service/pagers.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/data_taxonomy_service/transports/__init__.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/data_taxonomy_service/transports/grpc.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/dataplex_service/__init__.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/dataplex_service/pagers.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/dataplex_service/transports/__init__.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/dataplex_service/transports/grpc.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/metadata_service/__init__.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/metadata_service/pagers.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/metadata_service/transports/__init__.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/services/metadata_service/transports/grpc.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/types/__init__.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/types/analyze.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/types/content.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/types/data_profile.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/types/data_quality.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/types/data_taxonomy.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/types/datascans.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/types/logs.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/types/metadata_.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/types/processing.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/types/resources.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/types/security.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/types/service.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google/cloud/dataplex_v1/types/tasks.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google_cloud_dataplex.egg-info/SOURCES.txt +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google_cloud_dataplex.egg-info/dependency_links.txt +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google_cloud_dataplex.egg-info/not-zip-safe +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/google_cloud_dataplex.egg-info/top_level.txt +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/setup.cfg +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/tests/__init__.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/tests/unit/__init__.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/tests/unit/gapic/__init__.py +0 -0
- {google_cloud_dataplex-2.2.2 → google_cloud_dataplex-2.3.0}/tests/unit/gapic/dataplex_v1/__init__.py +0 -0
{google_cloud_dataplex-2.2.2/google_cloud_dataplex.egg-info → google_cloud_dataplex-2.3.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: google-cloud-dataplex
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.0
|
|
4
4
|
Summary: Google Cloud Dataplex API client library
|
|
5
5
|
Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-dataplex
|
|
6
6
|
Author: Google LLC
|
|
@@ -18,6 +18,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.10
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
22
|
Classifier: Operating System :: OS Independent
|
|
22
23
|
Classifier: Topic :: Internet
|
|
23
24
|
Requires-Python: >=3.7
|
|
@@ -25,6 +26,7 @@ License-File: LICENSE
|
|
|
25
26
|
Requires-Dist: google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.1
|
|
26
27
|
Requires-Dist: google-auth!=2.24.0,!=2.25.0,<3.0.0dev,>=2.14.1
|
|
27
28
|
Requires-Dist: proto-plus<2.0.0dev,>=1.22.3
|
|
29
|
+
Requires-Dist: proto-plus<2.0.0dev,>=1.25.0; python_version >= "3.13"
|
|
28
30
|
Requires-Dist: protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<6.0.0dev,>=3.20.2
|
|
29
31
|
Requires-Dist: grpc-google-iam-v1<1.0.0dev,>=0.12.4
|
|
30
32
|
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
# limitations under the License.
|
|
15
15
|
#
|
|
16
16
|
from collections import OrderedDict
|
|
17
|
-
import functools
|
|
18
17
|
import re
|
|
19
18
|
from typing import (
|
|
20
19
|
Callable,
|
|
@@ -209,9 +208,7 @@ class CatalogServiceAsyncClient:
|
|
|
209
208
|
"""
|
|
210
209
|
return self._client._universe_domain
|
|
211
210
|
|
|
212
|
-
get_transport_class =
|
|
213
|
-
type(CatalogServiceClient).get_transport_class, type(CatalogServiceClient)
|
|
214
|
-
)
|
|
211
|
+
get_transport_class = CatalogServiceClient.get_transport_class
|
|
215
212
|
|
|
216
213
|
def __init__(
|
|
217
214
|
self,
|
|
@@ -2996,11 +2993,7 @@ class CatalogServiceAsyncClient:
|
|
|
2996
2993
|
|
|
2997
2994
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
2998
2995
|
# and friendly error handling.
|
|
2999
|
-
rpc =
|
|
3000
|
-
self._client._transport.list_operations,
|
|
3001
|
-
default_timeout=None,
|
|
3002
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
3003
|
-
)
|
|
2996
|
+
rpc = self.transport._wrapped_methods[self._client._transport.list_operations]
|
|
3004
2997
|
|
|
3005
2998
|
# Certain fields should be provided within the metadata header;
|
|
3006
2999
|
# add these here.
|
|
@@ -3053,11 +3046,7 @@ class CatalogServiceAsyncClient:
|
|
|
3053
3046
|
|
|
3054
3047
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
3055
3048
|
# and friendly error handling.
|
|
3056
|
-
rpc =
|
|
3057
|
-
self._client._transport.get_operation,
|
|
3058
|
-
default_timeout=None,
|
|
3059
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
3060
|
-
)
|
|
3049
|
+
rpc = self.transport._wrapped_methods[self._client._transport.get_operation]
|
|
3061
3050
|
|
|
3062
3051
|
# Certain fields should be provided within the metadata header;
|
|
3063
3052
|
# add these here.
|
|
@@ -3114,11 +3103,7 @@ class CatalogServiceAsyncClient:
|
|
|
3114
3103
|
|
|
3115
3104
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
3116
3105
|
# and friendly error handling.
|
|
3117
|
-
rpc =
|
|
3118
|
-
self._client._transport.delete_operation,
|
|
3119
|
-
default_timeout=None,
|
|
3120
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
3121
|
-
)
|
|
3106
|
+
rpc = self.transport._wrapped_methods[self._client._transport.delete_operation]
|
|
3122
3107
|
|
|
3123
3108
|
# Certain fields should be provided within the metadata header;
|
|
3124
3109
|
# add these here.
|
|
@@ -3171,11 +3156,7 @@ class CatalogServiceAsyncClient:
|
|
|
3171
3156
|
|
|
3172
3157
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
3173
3158
|
# and friendly error handling.
|
|
3174
|
-
rpc =
|
|
3175
|
-
self._client._transport.cancel_operation,
|
|
3176
|
-
default_timeout=None,
|
|
3177
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
3178
|
-
)
|
|
3159
|
+
rpc = self.transport._wrapped_methods[self._client._transport.cancel_operation]
|
|
3179
3160
|
|
|
3180
3161
|
# Certain fields should be provided within the metadata header;
|
|
3181
3162
|
# add these here.
|
|
@@ -3225,11 +3206,7 @@ class CatalogServiceAsyncClient:
|
|
|
3225
3206
|
|
|
3226
3207
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
3227
3208
|
# and friendly error handling.
|
|
3228
|
-
rpc =
|
|
3229
|
-
self._client._transport.get_location,
|
|
3230
|
-
default_timeout=None,
|
|
3231
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
3232
|
-
)
|
|
3209
|
+
rpc = self.transport._wrapped_methods[self._client._transport.get_location]
|
|
3233
3210
|
|
|
3234
3211
|
# Certain fields should be provided within the metadata header;
|
|
3235
3212
|
# add these here.
|
|
@@ -3282,11 +3259,7 @@ class CatalogServiceAsyncClient:
|
|
|
3282
3259
|
|
|
3283
3260
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
3284
3261
|
# and friendly error handling.
|
|
3285
|
-
rpc =
|
|
3286
|
-
self._client._transport.list_locations,
|
|
3287
|
-
default_timeout=None,
|
|
3288
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
3289
|
-
)
|
|
3262
|
+
rpc = self.transport._wrapped_methods[self._client._transport.list_locations]
|
|
3290
3263
|
|
|
3291
3264
|
# Certain fields should be provided within the metadata header;
|
|
3292
3265
|
# add these here.
|
|
@@ -746,7 +746,7 @@ class CatalogServiceClient(metaclass=CatalogServiceClientMeta):
|
|
|
746
746
|
transport_init: Union[
|
|
747
747
|
Type[CatalogServiceTransport], Callable[..., CatalogServiceTransport]
|
|
748
748
|
] = (
|
|
749
|
-
|
|
749
|
+
CatalogServiceClient.get_transport_class(transport)
|
|
750
750
|
if isinstance(transport, str) or transport is None
|
|
751
751
|
else cast(Callable[..., CatalogServiceTransport], transport)
|
|
752
752
|
)
|
|
@@ -3428,11 +3428,7 @@ class CatalogServiceClient(metaclass=CatalogServiceClientMeta):
|
|
|
3428
3428
|
|
|
3429
3429
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
3430
3430
|
# and friendly error handling.
|
|
3431
|
-
rpc =
|
|
3432
|
-
self._transport.list_operations,
|
|
3433
|
-
default_timeout=None,
|
|
3434
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
3435
|
-
)
|
|
3431
|
+
rpc = self._transport._wrapped_methods[self._transport.list_operations]
|
|
3436
3432
|
|
|
3437
3433
|
# Certain fields should be provided within the metadata header;
|
|
3438
3434
|
# add these here.
|
|
@@ -3485,11 +3481,7 @@ class CatalogServiceClient(metaclass=CatalogServiceClientMeta):
|
|
|
3485
3481
|
|
|
3486
3482
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
3487
3483
|
# and friendly error handling.
|
|
3488
|
-
rpc =
|
|
3489
|
-
self._transport.get_operation,
|
|
3490
|
-
default_timeout=None,
|
|
3491
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
3492
|
-
)
|
|
3484
|
+
rpc = self._transport._wrapped_methods[self._transport.get_operation]
|
|
3493
3485
|
|
|
3494
3486
|
# Certain fields should be provided within the metadata header;
|
|
3495
3487
|
# add these here.
|
|
@@ -3546,11 +3538,7 @@ class CatalogServiceClient(metaclass=CatalogServiceClientMeta):
|
|
|
3546
3538
|
|
|
3547
3539
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
3548
3540
|
# and friendly error handling.
|
|
3549
|
-
rpc =
|
|
3550
|
-
self._transport.delete_operation,
|
|
3551
|
-
default_timeout=None,
|
|
3552
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
3553
|
-
)
|
|
3541
|
+
rpc = self._transport._wrapped_methods[self._transport.delete_operation]
|
|
3554
3542
|
|
|
3555
3543
|
# Certain fields should be provided within the metadata header;
|
|
3556
3544
|
# add these here.
|
|
@@ -3603,11 +3591,7 @@ class CatalogServiceClient(metaclass=CatalogServiceClientMeta):
|
|
|
3603
3591
|
|
|
3604
3592
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
3605
3593
|
# and friendly error handling.
|
|
3606
|
-
rpc =
|
|
3607
|
-
self._transport.cancel_operation,
|
|
3608
|
-
default_timeout=None,
|
|
3609
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
3610
|
-
)
|
|
3594
|
+
rpc = self._transport._wrapped_methods[self._transport.cancel_operation]
|
|
3611
3595
|
|
|
3612
3596
|
# Certain fields should be provided within the metadata header;
|
|
3613
3597
|
# add these here.
|
|
@@ -3657,11 +3641,7 @@ class CatalogServiceClient(metaclass=CatalogServiceClientMeta):
|
|
|
3657
3641
|
|
|
3658
3642
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
3659
3643
|
# and friendly error handling.
|
|
3660
|
-
rpc =
|
|
3661
|
-
self._transport.get_location,
|
|
3662
|
-
default_timeout=None,
|
|
3663
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
3664
|
-
)
|
|
3644
|
+
rpc = self._transport._wrapped_methods[self._transport.get_location]
|
|
3665
3645
|
|
|
3666
3646
|
# Certain fields should be provided within the metadata header;
|
|
3667
3647
|
# add these here.
|
|
@@ -3714,11 +3694,7 @@ class CatalogServiceClient(metaclass=CatalogServiceClientMeta):
|
|
|
3714
3694
|
|
|
3715
3695
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
3716
3696
|
# and friendly error handling.
|
|
3717
|
-
rpc =
|
|
3718
|
-
self._transport.list_locations,
|
|
3719
|
-
default_timeout=None,
|
|
3720
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
3721
|
-
)
|
|
3697
|
+
rpc = self._transport._wrapped_methods[self._transport.list_locations]
|
|
3722
3698
|
|
|
3723
3699
|
# Certain fields should be provided within the metadata header;
|
|
3724
3700
|
# add these here.
|
|
@@ -352,6 +352,36 @@ class CatalogServiceTransport(abc.ABC):
|
|
|
352
352
|
default_timeout=60.0,
|
|
353
353
|
client_info=client_info,
|
|
354
354
|
),
|
|
355
|
+
self.get_location: gapic_v1.method.wrap_method(
|
|
356
|
+
self.get_location,
|
|
357
|
+
default_timeout=None,
|
|
358
|
+
client_info=client_info,
|
|
359
|
+
),
|
|
360
|
+
self.list_locations: gapic_v1.method.wrap_method(
|
|
361
|
+
self.list_locations,
|
|
362
|
+
default_timeout=None,
|
|
363
|
+
client_info=client_info,
|
|
364
|
+
),
|
|
365
|
+
self.cancel_operation: gapic_v1.method.wrap_method(
|
|
366
|
+
self.cancel_operation,
|
|
367
|
+
default_timeout=None,
|
|
368
|
+
client_info=client_info,
|
|
369
|
+
),
|
|
370
|
+
self.delete_operation: gapic_v1.method.wrap_method(
|
|
371
|
+
self.delete_operation,
|
|
372
|
+
default_timeout=None,
|
|
373
|
+
client_info=client_info,
|
|
374
|
+
),
|
|
375
|
+
self.get_operation: gapic_v1.method.wrap_method(
|
|
376
|
+
self.get_operation,
|
|
377
|
+
default_timeout=None,
|
|
378
|
+
client_info=client_info,
|
|
379
|
+
),
|
|
380
|
+
self.list_operations: gapic_v1.method.wrap_method(
|
|
381
|
+
self.list_operations,
|
|
382
|
+
default_timeout=None,
|
|
383
|
+
client_info=client_info,
|
|
384
|
+
),
|
|
355
385
|
}
|
|
356
386
|
|
|
357
387
|
def close(self):
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
# See the License for the specific language governing permissions and
|
|
14
14
|
# limitations under the License.
|
|
15
15
|
#
|
|
16
|
+
import inspect
|
|
16
17
|
from typing import Awaitable, Callable, Dict, Optional, Sequence, Tuple, Union
|
|
17
18
|
import warnings
|
|
18
19
|
|
|
@@ -236,6 +237,9 @@ class CatalogServiceGrpcAsyncIOTransport(CatalogServiceTransport):
|
|
|
236
237
|
)
|
|
237
238
|
|
|
238
239
|
# Wrap messages. This must be done after self._grpc_channel exists
|
|
240
|
+
self._wrap_with_kind = (
|
|
241
|
+
"kind" in inspect.signature(gapic_v1.method_async.wrap_method).parameters
|
|
242
|
+
)
|
|
239
243
|
self._prep_wrapped_messages(client_info)
|
|
240
244
|
|
|
241
245
|
@property
|
|
@@ -865,22 +869,22 @@ class CatalogServiceGrpcAsyncIOTransport(CatalogServiceTransport):
|
|
|
865
869
|
def _prep_wrapped_messages(self, client_info):
|
|
866
870
|
"""Precompute the wrapped methods, overriding the base class method to use async wrappers."""
|
|
867
871
|
self._wrapped_methods = {
|
|
868
|
-
self.create_entry_type:
|
|
872
|
+
self.create_entry_type: self._wrap_method(
|
|
869
873
|
self.create_entry_type,
|
|
870
874
|
default_timeout=60.0,
|
|
871
875
|
client_info=client_info,
|
|
872
876
|
),
|
|
873
|
-
self.update_entry_type:
|
|
877
|
+
self.update_entry_type: self._wrap_method(
|
|
874
878
|
self.update_entry_type,
|
|
875
879
|
default_timeout=60.0,
|
|
876
880
|
client_info=client_info,
|
|
877
881
|
),
|
|
878
|
-
self.delete_entry_type:
|
|
882
|
+
self.delete_entry_type: self._wrap_method(
|
|
879
883
|
self.delete_entry_type,
|
|
880
884
|
default_timeout=60.0,
|
|
881
885
|
client_info=client_info,
|
|
882
886
|
),
|
|
883
|
-
self.list_entry_types:
|
|
887
|
+
self.list_entry_types: self._wrap_method(
|
|
884
888
|
self.list_entry_types,
|
|
885
889
|
default_retry=retries.AsyncRetry(
|
|
886
890
|
initial=1.0,
|
|
@@ -895,7 +899,7 @@ class CatalogServiceGrpcAsyncIOTransport(CatalogServiceTransport):
|
|
|
895
899
|
default_timeout=60.0,
|
|
896
900
|
client_info=client_info,
|
|
897
901
|
),
|
|
898
|
-
self.get_entry_type:
|
|
902
|
+
self.get_entry_type: self._wrap_method(
|
|
899
903
|
self.get_entry_type,
|
|
900
904
|
default_retry=retries.AsyncRetry(
|
|
901
905
|
initial=1.0,
|
|
@@ -910,22 +914,22 @@ class CatalogServiceGrpcAsyncIOTransport(CatalogServiceTransport):
|
|
|
910
914
|
default_timeout=60.0,
|
|
911
915
|
client_info=client_info,
|
|
912
916
|
),
|
|
913
|
-
self.create_aspect_type:
|
|
917
|
+
self.create_aspect_type: self._wrap_method(
|
|
914
918
|
self.create_aspect_type,
|
|
915
919
|
default_timeout=60.0,
|
|
916
920
|
client_info=client_info,
|
|
917
921
|
),
|
|
918
|
-
self.update_aspect_type:
|
|
922
|
+
self.update_aspect_type: self._wrap_method(
|
|
919
923
|
self.update_aspect_type,
|
|
920
924
|
default_timeout=60.0,
|
|
921
925
|
client_info=client_info,
|
|
922
926
|
),
|
|
923
|
-
self.delete_aspect_type:
|
|
927
|
+
self.delete_aspect_type: self._wrap_method(
|
|
924
928
|
self.delete_aspect_type,
|
|
925
929
|
default_timeout=60.0,
|
|
926
930
|
client_info=client_info,
|
|
927
931
|
),
|
|
928
|
-
self.list_aspect_types:
|
|
932
|
+
self.list_aspect_types: self._wrap_method(
|
|
929
933
|
self.list_aspect_types,
|
|
930
934
|
default_retry=retries.AsyncRetry(
|
|
931
935
|
initial=1.0,
|
|
@@ -940,7 +944,7 @@ class CatalogServiceGrpcAsyncIOTransport(CatalogServiceTransport):
|
|
|
940
944
|
default_timeout=60.0,
|
|
941
945
|
client_info=client_info,
|
|
942
946
|
),
|
|
943
|
-
self.get_aspect_type:
|
|
947
|
+
self.get_aspect_type: self._wrap_method(
|
|
944
948
|
self.get_aspect_type,
|
|
945
949
|
default_retry=retries.AsyncRetry(
|
|
946
950
|
initial=1.0,
|
|
@@ -955,22 +959,22 @@ class CatalogServiceGrpcAsyncIOTransport(CatalogServiceTransport):
|
|
|
955
959
|
default_timeout=60.0,
|
|
956
960
|
client_info=client_info,
|
|
957
961
|
),
|
|
958
|
-
self.create_entry_group:
|
|
962
|
+
self.create_entry_group: self._wrap_method(
|
|
959
963
|
self.create_entry_group,
|
|
960
964
|
default_timeout=60.0,
|
|
961
965
|
client_info=client_info,
|
|
962
966
|
),
|
|
963
|
-
self.update_entry_group:
|
|
967
|
+
self.update_entry_group: self._wrap_method(
|
|
964
968
|
self.update_entry_group,
|
|
965
969
|
default_timeout=60.0,
|
|
966
970
|
client_info=client_info,
|
|
967
971
|
),
|
|
968
|
-
self.delete_entry_group:
|
|
972
|
+
self.delete_entry_group: self._wrap_method(
|
|
969
973
|
self.delete_entry_group,
|
|
970
974
|
default_timeout=60.0,
|
|
971
975
|
client_info=client_info,
|
|
972
976
|
),
|
|
973
|
-
self.list_entry_groups:
|
|
977
|
+
self.list_entry_groups: self._wrap_method(
|
|
974
978
|
self.list_entry_groups,
|
|
975
979
|
default_retry=retries.AsyncRetry(
|
|
976
980
|
initial=1.0,
|
|
@@ -985,7 +989,7 @@ class CatalogServiceGrpcAsyncIOTransport(CatalogServiceTransport):
|
|
|
985
989
|
default_timeout=60.0,
|
|
986
990
|
client_info=client_info,
|
|
987
991
|
),
|
|
988
|
-
self.get_entry_group:
|
|
992
|
+
self.get_entry_group: self._wrap_method(
|
|
989
993
|
self.get_entry_group,
|
|
990
994
|
default_retry=retries.AsyncRetry(
|
|
991
995
|
initial=1.0,
|
|
@@ -1000,12 +1004,12 @@ class CatalogServiceGrpcAsyncIOTransport(CatalogServiceTransport):
|
|
|
1000
1004
|
default_timeout=60.0,
|
|
1001
1005
|
client_info=client_info,
|
|
1002
1006
|
),
|
|
1003
|
-
self.create_entry:
|
|
1007
|
+
self.create_entry: self._wrap_method(
|
|
1004
1008
|
self.create_entry,
|
|
1005
1009
|
default_timeout=60.0,
|
|
1006
1010
|
client_info=client_info,
|
|
1007
1011
|
),
|
|
1008
|
-
self.update_entry:
|
|
1012
|
+
self.update_entry: self._wrap_method(
|
|
1009
1013
|
self.update_entry,
|
|
1010
1014
|
default_retry=retries.AsyncRetry(
|
|
1011
1015
|
initial=1.0,
|
|
@@ -1020,12 +1024,12 @@ class CatalogServiceGrpcAsyncIOTransport(CatalogServiceTransport):
|
|
|
1020
1024
|
default_timeout=60.0,
|
|
1021
1025
|
client_info=client_info,
|
|
1022
1026
|
),
|
|
1023
|
-
self.delete_entry:
|
|
1027
|
+
self.delete_entry: self._wrap_method(
|
|
1024
1028
|
self.delete_entry,
|
|
1025
1029
|
default_timeout=60.0,
|
|
1026
1030
|
client_info=client_info,
|
|
1027
1031
|
),
|
|
1028
|
-
self.list_entries:
|
|
1032
|
+
self.list_entries: self._wrap_method(
|
|
1029
1033
|
self.list_entries,
|
|
1030
1034
|
default_retry=retries.AsyncRetry(
|
|
1031
1035
|
initial=1.0,
|
|
@@ -1040,7 +1044,7 @@ class CatalogServiceGrpcAsyncIOTransport(CatalogServiceTransport):
|
|
|
1040
1044
|
default_timeout=20.0,
|
|
1041
1045
|
client_info=client_info,
|
|
1042
1046
|
),
|
|
1043
|
-
self.get_entry:
|
|
1047
|
+
self.get_entry: self._wrap_method(
|
|
1044
1048
|
self.get_entry,
|
|
1045
1049
|
default_retry=retries.AsyncRetry(
|
|
1046
1050
|
initial=1.0,
|
|
@@ -1055,7 +1059,7 @@ class CatalogServiceGrpcAsyncIOTransport(CatalogServiceTransport):
|
|
|
1055
1059
|
default_timeout=20.0,
|
|
1056
1060
|
client_info=client_info,
|
|
1057
1061
|
),
|
|
1058
|
-
self.lookup_entry:
|
|
1062
|
+
self.lookup_entry: self._wrap_method(
|
|
1059
1063
|
self.lookup_entry,
|
|
1060
1064
|
default_retry=retries.AsyncRetry(
|
|
1061
1065
|
initial=1.0,
|
|
@@ -1070,7 +1074,7 @@ class CatalogServiceGrpcAsyncIOTransport(CatalogServiceTransport):
|
|
|
1070
1074
|
default_timeout=20.0,
|
|
1071
1075
|
client_info=client_info,
|
|
1072
1076
|
),
|
|
1073
|
-
self.search_entries:
|
|
1077
|
+
self.search_entries: self._wrap_method(
|
|
1074
1078
|
self.search_entries,
|
|
1075
1079
|
default_retry=retries.AsyncRetry(
|
|
1076
1080
|
initial=1.0,
|
|
@@ -1085,11 +1089,50 @@ class CatalogServiceGrpcAsyncIOTransport(CatalogServiceTransport):
|
|
|
1085
1089
|
default_timeout=60.0,
|
|
1086
1090
|
client_info=client_info,
|
|
1087
1091
|
),
|
|
1092
|
+
self.get_location: self._wrap_method(
|
|
1093
|
+
self.get_location,
|
|
1094
|
+
default_timeout=None,
|
|
1095
|
+
client_info=client_info,
|
|
1096
|
+
),
|
|
1097
|
+
self.list_locations: self._wrap_method(
|
|
1098
|
+
self.list_locations,
|
|
1099
|
+
default_timeout=None,
|
|
1100
|
+
client_info=client_info,
|
|
1101
|
+
),
|
|
1102
|
+
self.cancel_operation: self._wrap_method(
|
|
1103
|
+
self.cancel_operation,
|
|
1104
|
+
default_timeout=None,
|
|
1105
|
+
client_info=client_info,
|
|
1106
|
+
),
|
|
1107
|
+
self.delete_operation: self._wrap_method(
|
|
1108
|
+
self.delete_operation,
|
|
1109
|
+
default_timeout=None,
|
|
1110
|
+
client_info=client_info,
|
|
1111
|
+
),
|
|
1112
|
+
self.get_operation: self._wrap_method(
|
|
1113
|
+
self.get_operation,
|
|
1114
|
+
default_timeout=None,
|
|
1115
|
+
client_info=client_info,
|
|
1116
|
+
),
|
|
1117
|
+
self.list_operations: self._wrap_method(
|
|
1118
|
+
self.list_operations,
|
|
1119
|
+
default_timeout=None,
|
|
1120
|
+
client_info=client_info,
|
|
1121
|
+
),
|
|
1088
1122
|
}
|
|
1089
1123
|
|
|
1124
|
+
def _wrap_method(self, func, *args, **kwargs):
|
|
1125
|
+
if self._wrap_with_kind: # pragma: NO COVER
|
|
1126
|
+
kwargs["kind"] = self.kind
|
|
1127
|
+
return gapic_v1.method_async.wrap_method(func, *args, **kwargs)
|
|
1128
|
+
|
|
1090
1129
|
def close(self):
|
|
1091
1130
|
return self.grpc_channel.close()
|
|
1092
1131
|
|
|
1132
|
+
@property
|
|
1133
|
+
def kind(self) -> str:
|
|
1134
|
+
return "grpc_asyncio"
|
|
1135
|
+
|
|
1093
1136
|
@property
|
|
1094
1137
|
def delete_operation(
|
|
1095
1138
|
self,
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
# limitations under the License.
|
|
15
15
|
#
|
|
16
16
|
from collections import OrderedDict
|
|
17
|
-
import functools
|
|
18
17
|
import re
|
|
19
18
|
from typing import (
|
|
20
19
|
Callable,
|
|
@@ -198,9 +197,7 @@ class ContentServiceAsyncClient:
|
|
|
198
197
|
"""
|
|
199
198
|
return self._client._universe_domain
|
|
200
199
|
|
|
201
|
-
get_transport_class =
|
|
202
|
-
type(ContentServiceClient).get_transport_class, type(ContentServiceClient)
|
|
203
|
-
)
|
|
200
|
+
get_transport_class = ContentServiceClient.get_transport_class
|
|
204
201
|
|
|
205
202
|
def __init__(
|
|
206
203
|
self,
|
|
@@ -1209,11 +1206,7 @@ class ContentServiceAsyncClient:
|
|
|
1209
1206
|
|
|
1210
1207
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
1211
1208
|
# and friendly error handling.
|
|
1212
|
-
rpc =
|
|
1213
|
-
self._client._transport.list_operations,
|
|
1214
|
-
default_timeout=None,
|
|
1215
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
1216
|
-
)
|
|
1209
|
+
rpc = self.transport._wrapped_methods[self._client._transport.list_operations]
|
|
1217
1210
|
|
|
1218
1211
|
# Certain fields should be provided within the metadata header;
|
|
1219
1212
|
# add these here.
|
|
@@ -1266,11 +1259,7 @@ class ContentServiceAsyncClient:
|
|
|
1266
1259
|
|
|
1267
1260
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
1268
1261
|
# and friendly error handling.
|
|
1269
|
-
rpc =
|
|
1270
|
-
self._client._transport.get_operation,
|
|
1271
|
-
default_timeout=None,
|
|
1272
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
1273
|
-
)
|
|
1262
|
+
rpc = self.transport._wrapped_methods[self._client._transport.get_operation]
|
|
1274
1263
|
|
|
1275
1264
|
# Certain fields should be provided within the metadata header;
|
|
1276
1265
|
# add these here.
|
|
@@ -1327,11 +1316,7 @@ class ContentServiceAsyncClient:
|
|
|
1327
1316
|
|
|
1328
1317
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
1329
1318
|
# and friendly error handling.
|
|
1330
|
-
rpc =
|
|
1331
|
-
self._client._transport.delete_operation,
|
|
1332
|
-
default_timeout=None,
|
|
1333
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
1334
|
-
)
|
|
1319
|
+
rpc = self.transport._wrapped_methods[self._client._transport.delete_operation]
|
|
1335
1320
|
|
|
1336
1321
|
# Certain fields should be provided within the metadata header;
|
|
1337
1322
|
# add these here.
|
|
@@ -1384,11 +1369,7 @@ class ContentServiceAsyncClient:
|
|
|
1384
1369
|
|
|
1385
1370
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
1386
1371
|
# and friendly error handling.
|
|
1387
|
-
rpc =
|
|
1388
|
-
self._client._transport.cancel_operation,
|
|
1389
|
-
default_timeout=None,
|
|
1390
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
1391
|
-
)
|
|
1372
|
+
rpc = self.transport._wrapped_methods[self._client._transport.cancel_operation]
|
|
1392
1373
|
|
|
1393
1374
|
# Certain fields should be provided within the metadata header;
|
|
1394
1375
|
# add these here.
|
|
@@ -1438,11 +1419,7 @@ class ContentServiceAsyncClient:
|
|
|
1438
1419
|
|
|
1439
1420
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
1440
1421
|
# and friendly error handling.
|
|
1441
|
-
rpc =
|
|
1442
|
-
self._client._transport.get_location,
|
|
1443
|
-
default_timeout=None,
|
|
1444
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
1445
|
-
)
|
|
1422
|
+
rpc = self.transport._wrapped_methods[self._client._transport.get_location]
|
|
1446
1423
|
|
|
1447
1424
|
# Certain fields should be provided within the metadata header;
|
|
1448
1425
|
# add these here.
|
|
@@ -1495,11 +1472,7 @@ class ContentServiceAsyncClient:
|
|
|
1495
1472
|
|
|
1496
1473
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
1497
1474
|
# and friendly error handling.
|
|
1498
|
-
rpc =
|
|
1499
|
-
self._client._transport.list_locations,
|
|
1500
|
-
default_timeout=None,
|
|
1501
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
1502
|
-
)
|
|
1475
|
+
rpc = self.transport._wrapped_methods[self._client._transport.list_locations]
|
|
1503
1476
|
|
|
1504
1477
|
# Certain fields should be provided within the metadata header;
|
|
1505
1478
|
# add these here.
|