a f4@s8ddlmZmZmZddlmZeGdddeZdS))formatted_flat_dict NONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc@seZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d Zd ZdZdZdZdZdZdZdZdZdZdZdZdZddZeddZeddZ e j!d dZ ed!d"Z"e"j!d#d"Z"d$d%Z#d&d'Z$d(d)Z%d*S)+ FormatEntryaH A format entry is part of a masking format and defines the logic to mask data. A format entry can be a basic masking format such as Random Number, or it can be a library masking format. If a masking format has more than one format entries, the combined output of all the format entries is used for masking. DELETE_ROWSDETERMINISTIC_SUBSTITUTIONDETERMINISTIC_ENCRYPTIONDETERMINISTIC_ENCRYPTION_DATE FIXED_NUMBER FIXED_STRINGLIBRARY_MASKING_FORMAT NULL_VALUEPATTERNPOST_PROCESSING_FUNCTIONPRESERVE_ORIGINAL_DATA RANDOM_DATERANDOM_DECIMAL_NUMBER RANDOM_DIGITS RANDOM_LIST RANDOM_NUMBER RANDOM_STRINGRANDOM_SUBSTITUTIONREGULAR_EXPRESSIONSHUFFLESQL_EXPRESSION SUBSTRINGTRUNCATE_TABLEUSER_DEFINED_FUNCTIONcKs(ddd|_ddd|_d|_d|_dS)a7 Initializes a new FormatEntry object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class: * :class:`~oci.data_safe.models.RandomStringFormatEntry` * :class:`~oci.data_safe.models.DeterministicSubstitutionFormatEntry` * :class:`~oci.data_safe.models.DeterministicEncryptionFormatEntry` * :class:`~oci.data_safe.models.RandomDecimalNumberFormatEntry` * :class:`~oci.data_safe.models.RandomSubstitutionFormatEntry` * :class:`~oci.data_safe.models.PPFFormatEntry` * :class:`~oci.data_safe.models.NullValueFormatEntry` * :class:`~oci.data_safe.models.FixedNumberFormatEntry` * :class:`~oci.data_safe.models.RegularExpressionFormatEntry` * :class:`~oci.data_safe.models.UDFFormatEntry` * :class:`~oci.data_safe.models.ShuffleFormatEntry` * :class:`~oci.data_safe.models.FixedStringFormatEntry` * :class:`~oci.data_safe.models.TruncateTableFormatEntry` * :class:`~oci.data_safe.models.LibraryMaskingFormatEntry` * :class:`~oci.data_safe.models.SQLExpressionFormatEntry` * :class:`~oci.data_safe.models.DeterministicEncryptionDateFormatEntry` * :class:`~oci.data_safe.models.RandomDigitsFormatEntry` * :class:`~oci.data_safe.models.DeleteRowsFormatEntry` * :class:`~oci.data_safe.models.SubstringFormatEntry` * :class:`~oci.data_safe.models.PatternFormatEntry` * :class:`~oci.data_safe.models.RandomNumberFormatEntry` * :class:`~oci.data_safe.models.PreserveOriginalDataFormatEntry` * :class:`~oci.data_safe.models.RandomDateFormatEntry` * :class:`~oci.data_safe.models.RandomListFormatEntry` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param type: The value to assign to the type property of this FormatEntry. Allowed values for this property are: "DELETE_ROWS", "DETERMINISTIC_SUBSTITUTION", "DETERMINISTIC_ENCRYPTION", "DETERMINISTIC_ENCRYPTION_DATE", "FIXED_NUMBER", "FIXED_STRING", "LIBRARY_MASKING_FORMAT", "NULL_VALUE", "PATTERN", "POST_PROCESSING_FUNCTION", "PRESERVE_ORIGINAL_DATA", "RANDOM_DATE", "RANDOM_DECIMAL_NUMBER", "RANDOM_DIGITS", "RANDOM_LIST", "RANDOM_NUMBER", "RANDOM_STRING", "RANDOM_SUBSTITUTION", "REGULAR_EXPRESSION", "SHUFFLE", "SQL_EXPRESSION", "SUBSTRING", "TRUNCATE_TABLE", "USER_DEFINED_FUNCTION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str :param description: The value to assign to the description property of this FormatEntry. :type description: str str)type descriptionr r!N)Z swagger_typesZ attribute_map_type _description)selfkwargsr&E/usr/lib/python3.9/site-packages/oci/data_safe/models/format_entry.py__init__us,zFormatEntry.__init__cCs8|d}|dkrdS|dkr dS|dkr,dS|dkr8d S|d krDd S|d krPd S|dkr\dS|dkrhdS|dkrtdS|dkrdS|dkrdS|dkrdS|dkrdS|dkrdS|dkrdS|d krd!S|d"krd#S|d$krd%S|d&krd'S|d(krd)S|d*krd+S|d,krd-S|d.kr"d/S|d0kr0d1Sd2Sd3S)4z Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. r rZRandomStringFormatEntryrZ$DeterministicSubstitutionFormatEntryr Z"DeterministicEncryptionFormatEntryrZRandomDecimalNumberFormatEntryrZRandomSubstitutionFormatEntryrZPPFFormatEntryrZNullValueFormatEntryr ZFixedNumberFormatEntryrZRegularExpressionFormatEntryrZUDFFormatEntryrZShuffleFormatEntryr ZFixedStringFormatEntryrZTruncateTableFormatEntryr ZLibraryMaskingFormatEntryrZSQLExpressionFormatEntryr Z&DeterministicEncryptionDateFormatEntryrZRandomDigitsFormatEntryrZDeleteRowsFormatEntryrZSubstringFormatEntryrZPatternFormatEntryrZRandomNumberFormatEntryrZPreserveOriginalDataFormatEntryrZRandomDateFormatEntryrZRandomListFormatEntryrNr&)Zobject_dictionaryr r&r&r' get_subtypesd    zFormatEntry.get_subtypecCs|jS)a0 **[Required]** Gets the type of this FormatEntry. The type of the format entry. Allowed values for this property are: "DELETE_ROWS", "DETERMINISTIC_SUBSTITUTION", "DETERMINISTIC_ENCRYPTION", "DETERMINISTIC_ENCRYPTION_DATE", "FIXED_NUMBER", "FIXED_STRING", "LIBRARY_MASKING_FORMAT", "NULL_VALUE", "PATTERN", "POST_PROCESSING_FUNCTION", "PRESERVE_ORIGINAL_DATA", "RANDOM_DATE", "RANDOM_DECIMAL_NUMBER", "RANDOM_DIGITS", "RANDOM_LIST", "RANDOM_NUMBER", "RANDOM_STRING", "RANDOM_SUBSTITUTION", "REGULAR_EXPRESSION", "SHUFFLE", "SQL_EXPRESSION", "SUBSTRING", "TRUNCATE_TABLE", "USER_DEFINED_FUNCTION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The type of this FormatEntry. :rtype: str )r"r$r&r&r'r s zFormatEntry.typecCs gd}t||sd}||_dS)z Sets the type of this FormatEntry. The type of the format entry. :param type: The type of this FormatEntry. :type: str )rrr r r r r rrrrrrrrrrrrrrrrrZUNKNOWN_ENUM_VALUEN)rr")r$r Zallowed_valuesr&r&r'r s  cCs|jS)z Gets the description of this FormatEntry. The description of the format entry. :return: The description of this FormatEntry. :rtype: str r#r*r&r&r'r!s zFormatEntry.descriptioncCs ||_dS)z Sets the description of this FormatEntry. The description of the format entry. :param description: The description of this FormatEntry. :type: str Nr+)r$r!r&r&r'r!)s cCst|SN)rr*r&r&r'__repr__5szFormatEntry.__repr__cCs|dur dS|j|jkS)NF)__dict__r$otherr&r&r'__eq__8szFormatEntry.__eq__cCs ||k Sr,r&r/r&r&r'__ne__>szFormatEntry.__ne__N)&__name__ __module__ __qualname____doc__ZTYPE_DELETE_ROWSZTYPE_DETERMINISTIC_SUBSTITUTIONZTYPE_DETERMINISTIC_ENCRYPTIONZ"TYPE_DETERMINISTIC_ENCRYPTION_DATEZTYPE_FIXED_NUMBERZTYPE_FIXED_STRINGZTYPE_LIBRARY_MASKING_FORMATZTYPE_NULL_VALUEZ TYPE_PATTERNZTYPE_POST_PROCESSING_FUNCTIONZTYPE_PRESERVE_ORIGINAL_DATAZTYPE_RANDOM_DATEZTYPE_RANDOM_DECIMAL_NUMBERZTYPE_RANDOM_DIGITSZTYPE_RANDOM_LISTZTYPE_RANDOM_NUMBERZTYPE_RANDOM_STRINGZTYPE_RANDOM_SUBSTITUTIONZTYPE_REGULAR_EXPRESSIONZ TYPE_SHUFFLEZTYPE_SQL_EXPRESSIONZTYPE_SUBSTRINGZTYPE_TRUNCATE_TABLEZTYPE_USER_DEFINED_FUNCTIONr( staticmethodr)propertyr setterr!r-r1r2r&r&r&r'r sN 8 Q    rN)Zoci.utilrrrZoci.decoratorsrobjectrr&r&r&r's