(self, login_data=None, no_prompt=False)
Initialize auth handler.

        :param login_data: dictionary for login data
                           must contain the following:
                             - username
                             - password
        :param no_prompt: Should any user input prompts
                          be supressed? True/FALSE
Initialize auth handler.
Initialize auth handler .
def __init__(self, login_data=None, no_prompt=False):
        """
        Initialize auth handler.

        :param login_data: dictionary for login data
                           must contain the following:
                             - username
                             - password
        :param no_prompt: Should any user input prompts
                          be supressed? True/FALSE
        """
        if login_data is None:
            login_data = {}
        self.data = login_data
        self.token = login_data.get("token", None)
        self.host = login_data.get("host", None)
        self.region_id = login_data.get("region_id", None)
        self.client_id = login_data.get("client_id", None)
        self.account_id = login_data.get("account_id", None)
        self.login_response = None
        self.is_errored = False
        self.no_prompt = no_prompt
        self.session = self.create_session()
def __init__ ( self , login_data = None , no_prompt = False ) : if login_data is None : login_data = { } self . data = login_data self . token = login_data . get ( "token" , None ) self . host = login_data . get ( "host" , None ) self . region_id = login_data . get ( "region_id" , None ) self . client_id = login_data . get ( "client_id" , None ) self . account_id = login_data . get ( "account_id" , None ) self . login_response = None self . is_errored = False self . no_prompt = no_prompt self . session = self . create_session ( )