def create_parameter_model_from_config(config, *, username='******', audit_name='127.0.0.1', working_dir=None, all_parameters=None): if all_parameters is None: all_parameters = [] if config is None: config = {} return ParameterModel(config, username, audit_name, all_parameters, working_dir=working_dir)
def create_parameter_model(name=None, *, type=None, values_script=None, default=None, required=None, secure=None, param=None, env_var=None, no_value=None, constant=None, multiselect_separator=None, multiselect_argument_type=None, min=None, max=None, allowed_values=None, username='******', audit_name='127.0.0.1', all_parameters=None, file_dir=None, file_recursive=None, other_param_values: ObservableDict = None, values_script_shell=None): config = create_script_param_config( name, type=type, values_script=values_script, default=default, required=required, secure=secure, param=param, env_var=env_var, no_value=no_value, constant=constant, multiselect_separator=multiselect_separator, multiselect_argument_type=multiselect_argument_type, min=min, max=max, allowed_values=allowed_values, file_dir=file_dir, file_recursive=file_recursive, values_script_shell=values_script_shell) if all_parameters is None: all_parameters = [] return ParameterModel(config, username, audit_name, lambda: all_parameters, other_param_values=other_param_values)