File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -265,9 +265,6 @@ def create_channel(
265265 credentials (google.auth.credentials.Credentials): The credentials. If
266266 not specified, then this function will attempt to ascertain the
267267 credentials from the environment using :func:`google.auth.default`.
268- default_scopes (Sequence[str]): A optional list of scopes needed for this
269- service. These are only used when credentials are not specified and
270- are passed to :func:`google.auth.default`.
271268 scopes (Sequence[str]): A optional list of scopes needed for this
272269 service. These are only used when credentials are not specified and
273270 are passed to :func:`google.auth.default`.
@@ -277,6 +274,8 @@ def create_channel(
277274 :func:`google.auth.load_credentials_from_file`. This argument is
278275 mutually exclusive with credentials.
279276 quota_project_id (str): An optional project to use for billing and quota.
277+ default_scopes (Sequence[str]): Default scopes passed by a Google client
278+ library. Use 'scopes' for user-defined scopes.
280279 default_host (str): The default endpoint. e.g., "pubsub.googleapis.com".
281280 kwargs: Additional key-word args passed to
282281 :func:`grpc_gcp.secure_channel` or :func:`grpc.secure_channel`.
Original file line number Diff line number Diff line change @@ -213,6 +213,8 @@ def create_channel(
213213 ssl_credentials = None ,
214214 credentials_file = None ,
215215 quota_project_id = None ,
216+ default_scopes = None ,
217+ default_host = None ,
216218 ** kwargs ):
217219 """Create an AsyncIO secure channel with credentials.
218220
@@ -230,6 +232,9 @@ def create_channel(
230232 :func:`google.auth.load_credentials_from_file`. This argument is
231233 mutually exclusive with credentials.
232234 quota_project_id (str): An optional project to use for billing and quota.
235+ default_scopes (Sequence[str]): Default scopes passed by a Google client
236+ library. Use 'scopes' for user-defined scopes.
237+ default_host (str): The default endpoint. e.g., "pubsub.googleapis.com".
233238 kwargs: Additional key-word args passed to :func:`aio.secure_channel`.
234239
235240 Returns:
@@ -243,8 +248,10 @@ def create_channel(
243248 credentials = credentials ,
244249 credentials_file = credentials_file ,
245250 scopes = scopes ,
251+ default_scopes = default_scopes ,
246252 ssl_credentials = ssl_credentials ,
247253 quota_project_id = quota_project_id ,
254+ default_host = default_host
248255 )
249256
250257 return aio .secure_channel (target , composite_credentials , ** kwargs )
You can’t perform that action at this time.
0 commit comments