@@ -213,10 +213,10 @@ def build(
213213 cache_discovery: Boolean, whether or not to cache the discovery doc.
214214 cache: googleapiclient.discovery_cache.base.CacheBase, an optional
215215 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.
220220 adc_cert_path: str, client certificate file path to save the application
221221 default client certificate for mTLS. This field is required if you want to
222222 use the default client certificate.
@@ -359,10 +359,10 @@ def build_from_document(
359359 credentials: oauth2client.Credentials or
360360 google.auth.credentials.Credentials, credentials to be used for
361361 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.
366366 adc_cert_path: str, client certificate file path to save the application
367367 default client certificate for mTLS. This field is required if you want to
368368 use the default client certificate.
@@ -398,7 +398,7 @@ def build_from_document(
398398 # If an API Endpoint is provided on client options, use that as the base URL
399399 base = urljoin (service ["rootUrl" ], service ["servicePath" ])
400400 if client_options :
401- if type (client_options ) == dict :
401+ if isinstance (client_options , six . moves . collections_abc . Mapping ) :
402402 client_options = google .api_core .client_options .from_dict (client_options )
403403 if client_options .api_endpoint :
404404 base = client_options .api_endpoint
0 commit comments