code: def get_endpoint(self, session, **kwargs):
          
  
          if self.endpoint is None:
              try:
                  self._refresh_tokens(session)
                  self._fetch_credentials(session)
              except:
                  raise AuthorizationFailure()
  
          return self.endpoint
docs: Get the HubiC storage endpoint uri.
  
          If the current session has not been authenticated, this will trigger a
          new authentication to the HubiC OAuth service.
  
          :param keystoneclient.Session session: The session object to use for
                                                 queries.
  
          :raises keystoneclient.exceptions.AuthorizationFailure: if something
                                                                  goes wrong.
  
          :returns: The uri to use for object-storage v1 requests.
          :rtype: string