gcs_util.py
def create_client(stage_info, use_accelerate_endpoint=False):
        """
        Creates a client object with a stage credential
        :param stage_credentials: a stage credential
        :param use_accelerate_endpoint: is accelerate endpoint? (inapplicable to GCS)
        :return: client
        """
        logger = getLogger(__name__)
        stage_credentials = stage_info[u'creds']
        security_token = stage_credentials.get(u'GCS_ACCESS_TOKEN')

        if security_token:
            logger.debug(u"len(GCS_ACCESS_TOKEN): %s", len(security_token))
            logger.debug(u"GCS operations with an access token are currently "
                         u"unsupported")
            client = None

        else:
            logger.debug(u"No access token received from GS, constructing "
                         u"anonymous client")
            client = None

        return client

        Creates a client object with a stage credential
        :param stage_credentials: a stage credential
        :param use_accelerate_endpoint: is accelerate endpoint? (inapplicable to GCS)
        :return: client
        
Creates a client object with a stage credential
Creates a client object with a stage credential
def create_client(stage_info, use_accelerate_endpoint=False):
        logger = getLogger(__name__)
        stage_credentials = stage_info[u'creds']
        security_token = stage_credentials.get(u'GCS_ACCESS_TOKEN')
        if security_token:
            logger.debug(u"len(GCS_ACCESS_TOKEN): %s", len(security_token))
            logger.debug(u"GCS operations with an access token are currently "
                         u"unsupported")
            client = None
        else:
            logger.debug(u"No access token received from GS, constructing "
                         u"anonymous client")
            client = None
        return client
def create_client ( stage_info , use_accelerate_endpoint = False ) : logger = getLogger ( __name__ ) stage_credentials = stage_info [ u'creds' ] security_token = stage_credentials . get ( u'GCS_ACCESS_TOKEN' ) if security_token : logger . debug ( u"len(GCS_ACCESS_TOKEN): %s" , len ( security_token ) ) logger . debug ( u"GCS operations with an access token are currently " u"unsupported" ) client = None else : logger . debug ( u"No access token received from GS, constructing " u"anonymous client" ) client = None return client
Creates a client object with a stage credential
Creates a client object with a stage credential
"""
        Creates a client object with a stage credential
        :param stage_credentials: a stage credential
        :param use_accelerate_endpoint: is accelerate endpoint? (inapplicable to GCS)
        :return: client
        """
None
stage_info
use_accelerate_endpoint
None
stage_credentials
a stage credential
a stage credential