#NEWLINE# def _construct_http_client( * args , **kwargs ) : #NEWLINE# #INDENT# session = kwargs . pop ( 'session' , None ) #NEWLINE# auth = kwargs . pop ( 'auth' , None ) #NEWLINE# if session : #NEWLINE# #INDENT# service_type = kwargs . pop ( 'service_type' , 'baremetal' ) #NEWLINE# interface = kwargs . pop ( 'endpoint_type' , None ) #NEWLINE# region_name = kwargs . pop ( 'region_name' , None ) #NEWLINE# return SessionClient ( session = session , auth = auth , interface = interface , service_type = service_type , region_name = region_name , service_name = None , user_agent = 'python-magnumclient' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return HTTPClient ( * args , ** kwargs )