def _create_new_config(self):

        config_dict = {}

        config_dict['server_ip'] = input("Please input the IP address or " +
                                         "the hostname of the server you " +
                                         "want to connect to: ").strip()

        choice = _choice("Choose one of the following options for " +
                         "authentication: \n" +
                         "\t1. Authorization token (recommended).\n" +
                         "\t2. Username and password.\n" +
                         "Choice: ", valid_values=("1", "2"))

        if choice == "1":
            config_dict['auth_token'] = input(
                "Please input authorization token: ").strip()
        else:
            config_dict['username'] = input("Username: ").strip()
            config_dict['password'] = getpass.getpass("Password: ")

        certificate_file = _choice("Enter path to TLS PEM certificate " +
                                   "(optional): ", optional=True,
                                   file_exists=True)
        if certificate_file is not None:
            config_dict['certificate_file'] = certificate_file

        self.config[self.config_section] = config_dict

        self._verify_config()

        self.write_config_file()
Prompt the user for configuration values. Test if the configuration is
dataset/ETHPy150Open ibm-security-intelligence/api-samples/modules/config.py/Config._create_new_config