At:
https://github.com/googleapis/google-api-python-client/blob/main/googleapiclient/discovery.py#L1495-L1497
we build batch_uri based off the hard-coded rootUrl discovery doc parameter. We do this even if mTLS endpoint was previously configured on build() thus using batch methods never actually uses the mTLS endpoint.
- we should probably add an attribute like
is_mtls to the Resource object so we have a simple boolean to determine mTLS status.
_add_basic_methods could then use the is_mtls boolean to determine whether to use rootUrl or mtlsRootUrl from the discovery data.
At:
https://github.com/googleapis/google-api-python-client/blob/main/googleapiclient/discovery.py#L1495-L1497
we build
batch_uribased off the hard-codedrootUrldiscovery doc parameter. We do this even if mTLS endpoint was previously configured onbuild()thus using batch methods never actually uses the mTLS endpoint.is_mtlsto theResourceobject so we have a simple boolean to determine mTLS status._add_basic_methodscould then use theis_mtlsboolean to determine whether to userootUrlormtlsRootUrlfrom the discovery data.