google-api-core 2.19.1__tar.gz → 2.19.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {google-api-core-2.19.1 → google_api_core-2.19.2}/MANIFEST.in +1 -1
- {google-api-core-2.19.1/google_api_core.egg-info → google_api_core-2.19.2}/PKG-INFO +1 -1
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/exceptions.py +12 -4
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/version.py +1 -1
- {google-api-core-2.19.1 → google_api_core-2.19.2/google_api_core.egg-info}/PKG-INFO +1 -1
- {google-api-core-2.19.1 → google_api_core-2.19.2}/LICENSE +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/README.rst +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/__init__.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/bidi.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/client_info.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/client_options.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/datetime_helpers.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/extended_operation.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/future/__init__.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/future/_helpers.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/future/async_future.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/future/base.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/future/polling.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/gapic_v1/__init__.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/gapic_v1/client_info.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/gapic_v1/config.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/gapic_v1/config_async.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/gapic_v1/method.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/gapic_v1/method_async.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/gapic_v1/routing_header.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/general_helpers.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/grpc_helpers.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/grpc_helpers_async.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/iam.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/operation.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/operation_async.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/operations_v1/__init__.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/operations_v1/abstract_operations_client.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/operations_v1/operations_async_client.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/operations_v1/operations_client.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/operations_v1/operations_client_config.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/operations_v1/pagers.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/operations_v1/transports/__init__.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/operations_v1/transports/base.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/operations_v1/transports/rest.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/page_iterator.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/page_iterator_async.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/path_template.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/protobuf_helpers.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/py.typed +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/rest_helpers.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/rest_streaming.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/retry/__init__.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/retry/retry_base.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/retry/retry_streaming.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/retry/retry_streaming_async.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/retry/retry_unary.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/retry/retry_unary_async.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/retry_async.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/timeout.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/universe.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/version_header.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google_api_core.egg-info/SOURCES.txt +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google_api_core.egg-info/dependency_links.txt +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google_api_core.egg-info/not-zip-safe +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google_api_core.egg-info/requires.txt +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/google_api_core.egg-info/top_level.txt +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/setup.cfg +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/setup.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/__init__.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/asyncio/__init__.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/asyncio/future/__init__.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/asyncio/future/test_async_future.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/asyncio/gapic/test_config_async.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/asyncio/gapic/test_method_async.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/asyncio/operations_v1/__init__.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/asyncio/operations_v1/test_operations_async_client.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/asyncio/retry/__init__.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/asyncio/retry/test_retry_streaming_async.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/asyncio/retry/test_retry_unary_async.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/asyncio/test_grpc_helpers_async.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/asyncio/test_operation_async.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/asyncio/test_page_iterator_async.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/__init__.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/future/__init__.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/future/test__helpers.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/future/test_polling.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/gapic/test_client_info.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/gapic/test_config.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/gapic/test_method.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/gapic/test_routing_header.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/operations_v1/__init__.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/operations_v1/test_operations_client.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/operations_v1/test_operations_rest_client.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/retry/__init__.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/retry/test_retry_base.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/retry/test_retry_imports.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/retry/test_retry_streaming.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/retry/test_retry_unary.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/test_bidi.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/test_client_info.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/test_client_options.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/test_datetime_helpers.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/test_exceptions.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/test_extended_operation.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/test_grpc_helpers.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/test_iam.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/test_operation.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/test_packaging.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/test_page_iterator.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/test_path_template.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/test_protobuf_helpers.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/test_rest_helpers.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/test_rest_streaming.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/test_timeout.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/test_universe.py +0 -0
- {google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/test_version_header.py +0 -0
|
@@ -28,16 +28,21 @@ import warnings
|
|
|
28
28
|
|
|
29
29
|
from google.rpc import error_details_pb2
|
|
30
30
|
|
|
31
|
+
|
|
32
|
+
def _warn_could_not_import_grpcio_status():
|
|
33
|
+
warnings.warn(
|
|
34
|
+
"Please install grpcio-status to obtain helpful grpc error messages.",
|
|
35
|
+
ImportWarning,
|
|
36
|
+
) # pragma: NO COVER
|
|
37
|
+
|
|
38
|
+
|
|
31
39
|
try:
|
|
32
40
|
import grpc
|
|
33
41
|
|
|
34
42
|
try:
|
|
35
43
|
from grpc_status import rpc_status
|
|
36
44
|
except ImportError: # pragma: NO COVER
|
|
37
|
-
|
|
38
|
-
"Please install grpcio-status to obtain helpful grpc error messages.",
|
|
39
|
-
ImportWarning,
|
|
40
|
-
)
|
|
45
|
+
_warn_could_not_import_grpcio_status()
|
|
41
46
|
rpc_status = None
|
|
42
47
|
except ImportError: # pragma: NO COVER
|
|
43
48
|
grpc = None
|
|
@@ -560,6 +565,9 @@ def _is_informative_grpc_error(rpc_exc):
|
|
|
560
565
|
|
|
561
566
|
|
|
562
567
|
def _parse_grpc_error_details(rpc_exc):
|
|
568
|
+
if not rpc_status: # pragma: NO COVER
|
|
569
|
+
_warn_could_not_import_grpcio_status()
|
|
570
|
+
return [], None
|
|
563
571
|
try:
|
|
564
572
|
status = rpc_status.from_call(rpc_exc)
|
|
565
573
|
except NotImplementedError: # workaround
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/gapic_v1/routing_header.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/operations_v1/operations_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/operations_v1/transports/base.py
RENAMED
|
File without changes
|
{google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/operations_v1/transports/rest.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/retry/retry_streaming_async.py
RENAMED
|
File without changes
|
|
File without changes
|
{google-api-core-2.19.1 → google_api_core-2.19.2}/google/api_core/retry/retry_unary_async.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{google-api-core-2.19.1 → google_api_core-2.19.2}/google_api_core.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{google-api-core-2.19.1 → google_api_core-2.19.2}/tests/asyncio/retry/test_retry_streaming_async.py
RENAMED
|
File without changes
|
{google-api-core-2.19.1 → google_api_core-2.19.2}/tests/asyncio/retry/test_retry_unary_async.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{google-api-core-2.19.1 → google_api_core-2.19.2}/tests/unit/operations_v1/test_operations_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|