| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| are passed to :func:`google.auth.default`. | ||
| kwargs: Additional key-word args passed to | ||
| :func:`google.auth.transport.grpc.secure_authorized_channel`. | ||
| :func:`_create_secure_channel`. |
| return _wrap_unary_errors(callable_) | ||
|
|
||
|
|
||
| def _create_secure_channel( |
| options = None | ||
|
|
||
| if HAS_GRPC_GCP: | ||
| # Initialize grpc gcp config for spanner api. |
… channel config, add system tests with grpc_gcp
|
Hi @theacodes , I have made some changes as requested. Please take a look, thanks! |
Sorry, something went wrong.
There was a problem hiding this comment.
Looking almost ready. Sorry for the delay on reviewing.
Sorry, something went wrong.
| def create_channel(target, | ||
| credentials=None, | ||
| scopes=None, | ||
| ssl_credentials=None, |
| options = None | ||
|
|
||
| if HAS_GRPC_GCP: | ||
| # Initialize grpc gcp config for spanner api. |
|
Hi @theacodes , can you take a look at the new changes? |
Sorry, something went wrong.
There was a problem hiding this comment.
Looks almost good.
Sorry, something went wrong.
| return_value=(mock.sentinel.credentials, mock.sentinel.projet)) | ||
| @mock.patch('google.auth.transport.grpc.secure_authorized_channel') | ||
| def test_create_channel_implicit(secure_authorized_channel, default): | ||
| @mock.patch('grpc._channel.Channel') |
…onal grpc_gcp dependency) (#5553)
…onal grpc_gcp dependency) (#5553)
| Back | FazBrowse Home | New Git URL |
Add optional grpc_gcp dependency for api_core and spanner_v1. If user has installed grpcio-gcp, then the connection management feature will be enabled, and with the configuration specified in spanner.grpc.config . Otherwise, grpc_gcp won't be imported and everything works as usual.