def __init__( self, project=None, credentials=None, _http=None, client_info=None, client_options=None, ): super(Client, self).__init__(project=project, credentials=credentials, _http=_http) kw_args = {"client_info": client_info} if client_options: if type(client_options) == dict: client_options = google.api_core.client_options.from_dict( client_options) if client_options.api_endpoint: api_endpoint = client_options.api_endpoint kw_args["api_endpoint"] = api_endpoint self._connection = Connection(self, **kw_args)
def __init__(self, project=None, credentials=None, _http=None): super(Client, self).__init__(project=project, credentials=credentials, _http=_http) self._connection = Connection(self)