Protection
Protection
pydantic-config
Protection(
detectors: list[Detector] = [],
default: bool = False,
type: str | ProtectionType = IMPUTE,
)
Protection mechanism for a column.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
detectors
|
list[Detector]
|
A sequence of |
[]
|
default
|
bool
|
Whether to apply the default protection. |
False
|
type
|
str | ProtectionType
|
The type of protection to be applied, either a |
IMPUTE
|
ProtectionType
ProtectionType(value: str)
Protection types used in data protection.
Attributes:
| Name | Type | Description |
|---|---|---|
MASK |
Mask the protected values with a placeholder. |
|
IMPUTE |
Impute protected values replacing them with plausible non-protected values. |