Skip to content

Commit

Permalink
feat: Allow async REST support for transport override
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 686157935
  • Loading branch information
matthew29tang authored and copybara-github committed Oct 17, 2024
1 parent 3e7bf81 commit 67aebf3
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions google/cloud/aiplatform/initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,13 +569,6 @@ def create_client(

# Do not pass "grpc", rely on gapic defaults unless "rest" is specified
if self._api_transport == "rest":
if "Async" in client_class.__name__:
# Warn user that "rest" is not supported and use grpc instead
logging.warning(
"REST is not supported for async clients, "
+ "falling back to grpc."
)
else:
kwargs["transport"] = self._api_transport

client = client_class(**kwargs)
Expand Down

0 comments on commit 67aebf3

Please sign in to comment.