Config (autotransform.schema.config)¶
A set of configuration options for a schema.
- class autotransform.schema.config.SchemaConfig(*, schema_name: str, allowed_validation_level: ValidationResultLevel = ValidationResultLevel.NONE, max_submissions: Optional[int] = None, owners: List[str] = None)¶
Bases:
ComponentModel
An object containing all configuration information for a Schema.
- schema_name¶
The unique name of the schema.
- Type:
str
- allowed_validation_level¶
The allowed level of validation issues. Any issues raised above this level will trigger exceptions. Defaults to ValidationResultLevel.NONE.
- Type:
ValidationResultLevel, optional
- max_submissions¶
The maximum number of submissions the schema can create per run. If None, there is no limit. Defaults to None.
- Type:
Optional[int], optional
- owners¶
The owners for the schema. Defaults to [].
- Type:
List[str], optional
- allowed_validation_level: ValidationResultLevel¶
- static from_console(prev_config: Optional[SchemaConfig] = None) SchemaConfig ¶
Gets a SchemaConfig using console inputs.
- Parameters:
prev_config (Optional[SchemaConfig], optional) – A previously input SchemaConfig. Defaults to None.
- Returns:
The input SchemaConfig.
- Return type:
- max_submissions: Optional[int]¶
- classmethod max_submissions_is_positive(v: Optional[int]) Optional[int] ¶
Validates that max submissions is positive.
- Parameters:
cls (Type[SchemaConfig]) – The Config class.
v (int) – The maximum number of submissions.
- Raises:
ValueError – Raised if the maximum number of submissions is not positive.
- Returns:
The unmodified maximum number of submissions.
- Return type:
Optional[int]
- owners: List[str]¶
- schema_name: str¶