RegularExpressionFormatEntry

class oci.data_safe.models.RegularExpressionFormatEntry(**kwargs)

Bases: FormatEntry

The Regular Expression masking format gives the flexibility to use regular expressions to search for sensitive data in a column of Large Object data type (LOB), and replace the data with a fixed string, fixed number, null value, or SQL expression. It can also be used for columns of VARCHAR2 type to mask parts of strings. To learn more, check Regular Expressions in the Data Safe documentation.

Attributes:

TYPE_DELETE_ROWS

A constant which can be used with the type property of a FormatEntry.

TYPE_DETERMINISTIC_ENCRYPTION

A constant which can be used with the type property of a FormatEntry.

TYPE_DETERMINISTIC_ENCRYPTION_DATE

A constant which can be used with the type property of a FormatEntry.

TYPE_DETERMINISTIC_SUBSTITUTION

A constant which can be used with the type property of a FormatEntry.

TYPE_FIXED_NUMBER

A constant which can be used with the type property of a FormatEntry.

TYPE_FIXED_STRING

A constant which can be used with the type property of a FormatEntry.

TYPE_LIBRARY_MASKING_FORMAT

A constant which can be used with the type property of a FormatEntry.

TYPE_NULL_VALUE

A constant which can be used with the type property of a FormatEntry.

TYPE_PATTERN

A constant which can be used with the type property of a FormatEntry.

TYPE_POST_PROCESSING_FUNCTION

A constant which can be used with the type property of a FormatEntry.

TYPE_PRESERVE_ORIGINAL_DATA

A constant which can be used with the type property of a FormatEntry.

TYPE_RANDOM_DATE

A constant which can be used with the type property of a FormatEntry.

TYPE_RANDOM_DECIMAL_NUMBER

A constant which can be used with the type property of a FormatEntry.

TYPE_RANDOM_DIGITS

A constant which can be used with the type property of a FormatEntry.

TYPE_RANDOM_LIST

A constant which can be used with the type property of a FormatEntry.

TYPE_RANDOM_NUMBER

A constant which can be used with the type property of a FormatEntry.

TYPE_RANDOM_STRING

A constant which can be used with the type property of a FormatEntry.

TYPE_RANDOM_SUBSTITUTION

A constant which can be used with the type property of a FormatEntry.

TYPE_REGULAR_EXPRESSION

A constant which can be used with the type property of a FormatEntry.

TYPE_SHUFFLE

A constant which can be used with the type property of a FormatEntry.

TYPE_SQL_EXPRESSION

A constant which can be used with the type property of a FormatEntry.

TYPE_SUBSTRING

A constant which can be used with the type property of a FormatEntry.

TYPE_TRUNCATE_TABLE

A constant which can be used with the type property of a FormatEntry.

TYPE_USER_DEFINED_FUNCTION

A constant which can be used with the type property of a FormatEntry.

description

Gets the description of this FormatEntry.

regular_expression

[Required] Gets the regular_expression of this RegularExpressionFormatEntry.

replace_with

[Required] Gets the replace_with of this RegularExpressionFormatEntry.

type

[Required] Gets the type of this FormatEntry.

Methods:

__init__(**kwargs)

Initializes a new RegularExpressionFormatEntry object with values from keyword arguments.

get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

TYPE_DELETE_ROWS = 'DELETE_ROWS'

A constant which can be used with the type property of a FormatEntry. This constant has a value of “DELETE_ROWS”

TYPE_DETERMINISTIC_ENCRYPTION = 'DETERMINISTIC_ENCRYPTION'

A constant which can be used with the type property of a FormatEntry. This constant has a value of “DETERMINISTIC_ENCRYPTION”

TYPE_DETERMINISTIC_ENCRYPTION_DATE = 'DETERMINISTIC_ENCRYPTION_DATE'

A constant which can be used with the type property of a FormatEntry. This constant has a value of “DETERMINISTIC_ENCRYPTION_DATE”

TYPE_DETERMINISTIC_SUBSTITUTION = 'DETERMINISTIC_SUBSTITUTION'

A constant which can be used with the type property of a FormatEntry. This constant has a value of “DETERMINISTIC_SUBSTITUTION”

TYPE_FIXED_NUMBER = 'FIXED_NUMBER'

A constant which can be used with the type property of a FormatEntry. This constant has a value of “FIXED_NUMBER”

TYPE_FIXED_STRING = 'FIXED_STRING'

A constant which can be used with the type property of a FormatEntry. This constant has a value of “FIXED_STRING”

TYPE_LIBRARY_MASKING_FORMAT = 'LIBRARY_MASKING_FORMAT'

A constant which can be used with the type property of a FormatEntry. This constant has a value of “LIBRARY_MASKING_FORMAT”

TYPE_NULL_VALUE = 'NULL_VALUE'

A constant which can be used with the type property of a FormatEntry. This constant has a value of “NULL_VALUE”

TYPE_PATTERN = 'PATTERN'

A constant which can be used with the type property of a FormatEntry. This constant has a value of “PATTERN”

TYPE_POST_PROCESSING_FUNCTION = 'POST_PROCESSING_FUNCTION'

A constant which can be used with the type property of a FormatEntry. This constant has a value of “POST_PROCESSING_FUNCTION”

TYPE_PRESERVE_ORIGINAL_DATA = 'PRESERVE_ORIGINAL_DATA'

A constant which can be used with the type property of a FormatEntry. This constant has a value of “PRESERVE_ORIGINAL_DATA”

TYPE_RANDOM_DATE = 'RANDOM_DATE'

A constant which can be used with the type property of a FormatEntry. This constant has a value of “RANDOM_DATE”

TYPE_RANDOM_DECIMAL_NUMBER = 'RANDOM_DECIMAL_NUMBER'

A constant which can be used with the type property of a FormatEntry. This constant has a value of “RANDOM_DECIMAL_NUMBER”

TYPE_RANDOM_DIGITS = 'RANDOM_DIGITS'

A constant which can be used with the type property of a FormatEntry. This constant has a value of “RANDOM_DIGITS”

TYPE_RANDOM_LIST = 'RANDOM_LIST'

A constant which can be used with the type property of a FormatEntry. This constant has a value of “RANDOM_LIST”

TYPE_RANDOM_NUMBER = 'RANDOM_NUMBER'

A constant which can be used with the type property of a FormatEntry. This constant has a value of “RANDOM_NUMBER”

TYPE_RANDOM_STRING = 'RANDOM_STRING'

A constant which can be used with the type property of a FormatEntry. This constant has a value of “RANDOM_STRING”

TYPE_RANDOM_SUBSTITUTION = 'RANDOM_SUBSTITUTION'

A constant which can be used with the type property of a FormatEntry. This constant has a value of “RANDOM_SUBSTITUTION”

TYPE_REGULAR_EXPRESSION = 'REGULAR_EXPRESSION'

A constant which can be used with the type property of a FormatEntry. This constant has a value of “REGULAR_EXPRESSION”

TYPE_SHUFFLE = 'SHUFFLE'

A constant which can be used with the type property of a FormatEntry. This constant has a value of “SHUFFLE”

TYPE_SQL_EXPRESSION = 'SQL_EXPRESSION'

A constant which can be used with the type property of a FormatEntry. This constant has a value of “SQL_EXPRESSION”

TYPE_SUBSTRING = 'SUBSTRING'

A constant which can be used with the type property of a FormatEntry. This constant has a value of “SUBSTRING”

TYPE_TRUNCATE_TABLE = 'TRUNCATE_TABLE'

A constant which can be used with the type property of a FormatEntry. This constant has a value of “TRUNCATE_TABLE”

TYPE_USER_DEFINED_FUNCTION = 'USER_DEFINED_FUNCTION'

A constant which can be used with the type property of a FormatEntry. This constant has a value of “USER_DEFINED_FUNCTION”

__init__(**kwargs)

Initializes a new RegularExpressionFormatEntry object with values from keyword arguments. The default value of the type attribute of this class is REGULAR_EXPRESSION and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • type (str) – The value to assign to the type property of this RegularExpressionFormatEntry. 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”

  • description (str) – The value to assign to the description property of this RegularExpressionFormatEntry.

  • regular_expression (str) – The value to assign to the regular_expression property of this RegularExpressionFormatEntry.

  • replace_with (str) – The value to assign to the replace_with property of this RegularExpressionFormatEntry.

property description

Gets the description of this FormatEntry. The description of the format entry.

Returns

The description of this FormatEntry.

Return type

str

static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

property regular_expression

[Required] Gets the regular_expression of this RegularExpressionFormatEntry. The pattern that should be used to search for data.

Returns

The regular_expression of this RegularExpressionFormatEntry.

Return type

str

property replace_with

[Required] Gets the replace_with of this RegularExpressionFormatEntry. The value that should be used to replace the data matching the regular expression. It can be a fixed string, fixed number or null value.

Returns

The replace_with of this RegularExpressionFormatEntry.

Return type

str

property type

[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’.

Returns

The type of this FormatEntry.

Return type

str