#NEWLINE# def get_settings_from_client( client ) : #NEWLINE# #INDENT# 'Pull out settings from a SoftLayer.BaseClient instance.\n\n    :param client: SoftLayer.BaseClient instance\n    ' #NEWLINE# settings = { #NEWLINE# #INDENT# 'username' : '' , #NEWLINE# 'api_key' : '' , #NEWLINE# 'timeout' : '' , #NEWLINE# 'endpoint_url' : '' , #NEWLINE# #UNINDENT# } #NEWLINE# try : #NEWLINE# #INDENT# settings [ 'username' ] = client . auth . username #NEWLINE# settings [ 'api_key' ] = client . auth . api_key #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# transport = _resolve_transport ( client . transport ) #NEWLINE# try : #NEWLINE# #INDENT# settings [ 'timeout' ] = transport . timeout #NEWLINE# settings [ 'endpoint_url' ] = transport . endpoint_url #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# return settings