#NEWLINE# def __init__( self , user_id , key , secure = True , host = None , port = None , timeout = None , proxy_url = None , ex_force_base_url = None , ex_force_auth_url = None , ex_force_auth_version = None , ex_force_auth_token = None , ex_token_scope = OpenStackIdentityTokenScope . PROJECT , ex_domain_name = 'Default' , ex_tenant_name = None , ex_force_service_type = None , ex_force_service_name = None , ex_force_service_region = None , retry_delay = None , backoff = None ) : #NEWLINE# #INDENT# super ( OpenStackBaseConnection , self ) . __init__ ( user_id , ex_force_auth_token , secure = secure , timeout = timeout , retry_delay = retry_delay , backoff = backoff , proxy_url = proxy_url ) #NEWLINE# if ex_force_auth_version : #NEWLINE# #INDENT# self . _auth_version = ex_force_auth_version #NEWLINE# #UNINDENT# self . _ex_force_base_url = ex_force_base_url #NEWLINE# self . _ex_force_auth_url = ex_force_auth_url #NEWLINE# self . _ex_force_auth_token = ex_force_auth_token #NEWLINE# self . _ex_token_scope = ex_token_scope #NEWLINE# self . _ex_domain_name = ex_domain_name #NEWLINE# self . _ex_tenant_name = ex_tenant_name #NEWLINE# self . _ex_force_service_type = ex_force_service_type #NEWLINE# self . _ex_force_service_name = ex_force_service_name #NEWLINE# self . _ex_force_service_region = ex_force_service_region #NEWLINE# self . _osa = None #NEWLINE# if ( ex_force_auth_token and ( not ex_force_base_url ) ) : #NEWLINE# #INDENT# raise LibcloudError ( 'Must also provide ex_force_base_url when specifying ex_force_auth_token.' ) #NEWLINE# #UNINDENT# if ex_force_auth_token : #NEWLINE# #INDENT# self . auth_token = ex_force_auth_token #NEWLINE# #UNINDENT# if ( not self . _auth_version ) : #NEWLINE# #INDENT# self . _auth_version = AUTH_API_VERSION #NEWLINE# #UNINDENT# auth_url = self . _get_auth_url ( ) #NEWLINE# if ( not auth_url ) : #NEWLINE# #INDENT# raise LibcloudError ( ( 'OpenStack instance must ' + 'have auth_url set' ) )