gen_ai_hub.orchestration.models.data_masking
index
/home/jenkins/agent/workspace/ation_generative-ai-hub-sdk_main/gen_ai_hub/orchestration/models/data_masking.py

 
Classes
       
abc.ABC(builtins.object)
DataMaskingProvider(gen_ai_hub.orchestration.models.base.JSONSerializable, abc.ABC)
builtins.str(builtins.object)
DataMaskingProviderName(builtins.str, enum.Enum)
enum.Enum(builtins.object)
DataMaskingProviderName(builtins.str, enum.Enum)
gen_ai_hub.orchestration.models.base.JSONSerializable(abc.ABC)
DataMasking
DataMaskingProvider(gen_ai_hub.orchestration.models.base.JSONSerializable, abc.ABC)

 
class DataMasking(gen_ai_hub.orchestration.models.base.JSONSerializable)
    DataMasking(providers: List[gen_ai_hub.orchestration.models.data_masking.DataMaskingProvider])
 
Manages data masking operations using the specified providers.
 
The DataMasking class is responsible for configuring and executing data masking processes
by delegating to one or more data masking providers. It supports either anonymization or pseudonymization
of sensitive information, depending on the provider and method used.
 
Args:
    providers: A list of data masking providers to handle the masking process.
               Currently, only a single provider is supported.
 
Raises: ValueError: If more than one provider is specified, as multiple providers are not supported in the
current version.
 
 
Method resolution order:
DataMasking
gen_ai_hub.orchestration.models.base.JSONSerializable
abc.ABC
builtins.object

Methods defined here:
__init__(self, providers: List[gen_ai_hub.orchestration.models.data_masking.DataMaskingProvider])
Initialize self.  See help(type(self)) for accurate signature.
to_dict(self)
Convert the object to a JSON-serializable dictionary.

Data and other attributes defined here:
__abstractmethods__ = frozenset()
__annotations__ = {}

Data descriptors inherited from gen_ai_hub.orchestration.models.base.JSONSerializable:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class DataMaskingProvider(gen_ai_hub.orchestration.models.base.JSONSerializable, abc.ABC)
    Abstract base class for data masking providers.
 
This class serves as a blueprint for implementing different data masking providers. Each provider is responsible
for masking sensitive or personally identifiable information (PII) according to a specific method.
 
Inherited by:
    - SAPDataPrivacyIntegration
 
 
Method resolution order:
DataMaskingProvider
gen_ai_hub.orchestration.models.base.JSONSerializable
abc.ABC
builtins.object

Data and other attributes defined here:
__abstractmethods__ = frozenset({'to_dict'})
__annotations__ = {}

Methods inherited from gen_ai_hub.orchestration.models.base.JSONSerializable:
to_dict(self) -> Dict[str, Any]
Convert the object to a JSON-serializable dictionary.

Data descriptors inherited from gen_ai_hub.orchestration.models.base.JSONSerializable:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class DataMaskingProviderName(builtins.str, enum.Enum)
    DataMaskingProviderName(value, names=None, *, module=None, qualname=None, type=None, start=1)
 
Enumerates the available data masking providers.
 
This enum defines the supported providers for masking sensitive data in the LLM module.
 
Values: SAP_DATA_PRIVACY_INTEGRATION: Refers to the SAP Data Privacy Integration service, which offers
anonymization and pseudonymization capabilities for sensitive data.
 
 
Method resolution order:
DataMaskingProviderName
builtins.str
enum.Enum
builtins.object

Data and other attributes defined here:
SAP_DATA_PRIVACY_INTEGRATION = <DataMaskingProviderName.SAP_DATA_PRIVACY_INTEGRATION: 'sap_data_privacy_integration'>

Data descriptors inherited from enum.Enum:
name
The name of the Enum member.
value
The value of the Enum member.

Readonly properties inherited from enum.EnumMeta:
__members__
Returns a mapping of member name->value.
 
This mapping lists all enum members, including aliases. Note that this
is a read-only view of the internal mapping.

 
Data
        List = typing.List