From 7dea20d73878eca93b61bb82ae6ddf335fb3a8ca Mon Sep 17 00:00:00 2001 From: ohmayr Date: Tue, 10 Sep 2024 18:25:55 +0000 Subject: [PATCH 1/3] feat: add async unsupported paramater exception --- google/api_core/exceptions.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/google/api_core/exceptions.py b/google/api_core/exceptions.py index 8dc8c08f..5b25d124 100644 --- a/google/api_core/exceptions.py +++ b/google/api_core/exceptions.py @@ -442,6 +442,12 @@ class DeadlineExceeded(GatewayTimeout): grpc_status_code = grpc.StatusCode.DEADLINE_EXCEEDED if grpc is not None else None +class AsyncRestUnsupportedParameterError(NotImplementedError): + """Raised when an unsupported parameter is configured against async rest transport.""" + + pass + + def exception_class_for_http_status(status_code): """Return the exception class for a specific HTTP status code. From 06968d24f3a64c4eb986306209a311c64c320da5 Mon Sep 17 00:00:00 2001 From: ohmayr Date: Tue, 10 Sep 2024 16:08:02 -0400 Subject: [PATCH 2/3] Update google/api_core/exceptions.py Co-authored-by: Victor Chudnovsky --- google/api_core/exceptions.py | 1 - 1 file changed, 1 deletion(-) diff --git a/google/api_core/exceptions.py b/google/api_core/exceptions.py index 5b25d124..edd436eb 100644 --- a/google/api_core/exceptions.py +++ b/google/api_core/exceptions.py @@ -444,7 +444,6 @@ class DeadlineExceeded(GatewayTimeout): class AsyncRestUnsupportedParameterError(NotImplementedError): """Raised when an unsupported parameter is configured against async rest transport.""" - pass From e1070a0e172960f01169e2d16a6d8501a021287c Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 10 Sep 2024 20:09:43 +0000 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- google/api_core/exceptions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/google/api_core/exceptions.py b/google/api_core/exceptions.py index edd436eb..5b25d124 100644 --- a/google/api_core/exceptions.py +++ b/google/api_core/exceptions.py @@ -444,6 +444,7 @@ class DeadlineExceeded(GatewayTimeout): class AsyncRestUnsupportedParameterError(NotImplementedError): """Raised when an unsupported parameter is configured against async rest transport.""" + pass