@@ -213,10 +213,10 @@ def build(
213
213
cache_discovery: Boolean, whether or not to cache the discovery doc.
214
214
cache: googleapiclient.discovery_cache.base.CacheBase, an optional
215
215
cache object for the discovery documents.
216
- client_options: Dictionary or google.api_core.client_options, Client options to set user
217
- options on the client. API endpoint should be set through client_options.
218
- client_cert_source is not supported, client cert should be provided using
219
- client_encrypted_cert_source instead.
216
+ client_options: Mapping object or google.api_core.client_options, client
217
+ options to set user options on the client. The API endpoint should be set
218
+ through client_options. client_cert_source is not supported, client cert
219
+ should be provided using client_encrypted_cert_source instead.
220
220
adc_cert_path: str, client certificate file path to save the application
221
221
default client certificate for mTLS. This field is required if you want to
222
222
use the default client certificate.
@@ -359,10 +359,10 @@ def build_from_document(
359
359
credentials: oauth2client.Credentials or
360
360
google.auth.credentials.Credentials, credentials to be used for
361
361
authentication.
362
- client_options: Dictionary or google.api_core.client_options, Client options to set user
363
- options on the client. API endpoint should be set through client_options.
364
- client_cert_source is not supported, client cert should be provided using
365
- client_encrypted_cert_source instead.
362
+ client_options: Mapping object or google.api_core.client_options, client
363
+ options to set user options on the client. The API endpoint should be set
364
+ through client_options. client_cert_source is not supported, client cert
365
+ should be provided using client_encrypted_cert_source instead.
366
366
adc_cert_path: str, client certificate file path to save the application
367
367
default client certificate for mTLS. This field is required if you want to
368
368
use the default client certificate.
@@ -398,7 +398,7 @@ def build_from_document(
398
398
# If an API Endpoint is provided on client options, use that as the base URL
399
399
base = urljoin (service ["rootUrl" ], service ["servicePath" ])
400
400
if client_options :
401
- if type (client_options ) == dict :
401
+ if isinstance (client_options , six . moves . collections_abc . Mapping ) :
402
402
client_options = google .api_core .client_options .from_dict (client_options )
403
403
if client_options .api_endpoint :
404
404
base = client_options .api_endpoint
0 commit comments