olegkachur-e commented on code in PR #60394:
URL: https://github.com/apache/airflow/pull/60394#discussion_r2686367899
##########
providers/google/src/airflow/providers/google/cloud/hooks/cloud_run.py:
##########
@@ -67,16 +67,21 @@ class CloudRunHook(GoogleBaseHook):
If set as a sequence, the identities from the list must grant
Service Account Token Creator IAM role to the directly preceding
identity, with first
account from the list granting this role to the originating account.
+ :param transport: Optional. The transport to use for API requests. Can be
'rest' or 'grpc'.
Review Comment:
In the
[docs](https://docs.cloud.google.com/python/docs/reference/run/latest/google.cloud.run_v2.services.jobs.JobsClient#google_cloud_run_v2_services_jobs_JobsClient)
it is referenced as:
> "Optional[Union[str,JobsTransport,Callable[..., JobsTransport]]]
> The transport to use, or a Callable that constructs and returns a new
transport. If a Callable is given, it will be called with the same set of
initialization arguments as used in the JobsTransport constructor. If set to
None, a transport is chosen automatically.
I think it makes sense to replicate similar hook behavior, at least to some
extent, like `transport: Literal['rest', 'grpc'] | None = None)`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]