@@ -132,32 +132,32 @@ def _get_default_mtls_endpoint(api_endpoint):
132
132
133
133
@classmethod
134
134
def from_service_account_info (cls ,info :dict ,* args ,** kwargs ):
135
- """Creates an instance of this client using the provided credentials
136
- info .
135
+ """
136
+ This class method should be overridden by the subclasses .
137
137
138
138
Args:
139
139
info (dict): The service account private key info.
140
140
args: Additional arguments to pass to the constructor.
141
141
kwargs: Additional arguments to pass to the constructor.
142
142
143
- Returns :
144
- AbstractOperationsClient: The constructed client .
143
+ Raises :
144
+ NotImplementedError: If the method is called on the base class .
145
145
"""
146
146
raise NotImplementedError ("`from_service_account_info` is not implemented." )
147
147
148
148
@classmethod
149
149
def from_service_account_file (cls ,filename :str ,* args ,** kwargs ):
150
- """Creates an instance of this client using the provided credentials
151
- file .
150
+ """
151
+ This class method should be overridden by the subclasses .
152
152
153
153
Args:
154
154
filename (str): The path to the service account private key json
155
155
file.
156
156
args: Additional arguments to pass to the constructor.
157
157
kwargs: Additional arguments to pass to the constructor.
158
158
159
- Returns :
160
- AbstractOperationsClient: The constructed client .
159
+ Raises :
160
+ NotImplementedError: If the method is called on the base class .
161
161
"""
162
162
raise NotImplementedError ("`from_service_account_file` is not implemented." )
163
163
@@ -359,14 +359,18 @@ def __init__(
359
359
self ._transport = transport
360
360
else :
361
361
Transport = type (self ).get_transport_class (transport )
362
+ # NOTE: The conditional logic below to initialize the transport can be removed
363
+ # once we have feature parity with the sync transport.
362
364
if "async" in str (Transport ).lower ():
363
- # TODO(https://github.com/googleapis/gapic-generator-python/issues/2136): Support the following parameters in async rest.
364
365
unsupported_params = {
366
+ # TODO(https://github.com/googleapis/python-api-core/issues/715): Add support for `credentials_file` to async REST transport.
365
367
"google.api_core.client_options.ClientOptions.credentials_file" :client_options .credentials_file ,
368
+ # TODO(https://github.com/googleapis/python-api-core/issues/716): Add support for `scopes` to async REST transport.
366
369
"google.api_core.client_options.ClientOptions.scopes" :client_options .scopes ,
370
+ # TODO(https://github.com/googleapis/python-api-core/issues/717): Add support for `quota_project_id` to async REST transport.
367
371
"google.api_core.client_options.ClientOptions.quota_project_id" :client_options .quota_project_id ,
372
+ # TODO(https://github.com/googleapis/python-api-core/issues/718): Add support for `client_cert_source` to async REST transport.
368
373
"google.api_core.client_options.ClientOptions.client_cert_source" :client_options .client_cert_source ,
369
- "google.api_core.client_options.ClientOptions.api_audience" :client_options .api_audience ,
370
374
}
371
375
provided_unsupported_params = [
372
376
name