ruạṛ
a ���f] � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�FormatEntry� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ sd e Zd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zd d� Z dd � Z dd� ZdS )�SubstringFormatEntrya� The Substring masking format extracts a portion of the original column value and uses it to replace the original value. It internally uses the Oracle SUBSTR function. It takes the start position and length as input, extracts substring from the original value using SUBSTR, and uses the substring to replace the original value. To learn more, check Substring in the Data Safe documentation. c K sB ddddd�| _ ddddd�| _d| _d| _d| _d| _d | _dS ) a� Initializes a new SubstringFormatEntry object with values from keyword arguments. The default value of the :py:attr:`~oci.data_safe.models.SubstringFormatEntry.type` attribute of this class is ``SUBSTRING`` and it should not be changed. 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 SubstringFormatEntry. 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" :type type: str :param description: The value to assign to the description property of this SubstringFormatEntry. :type description: str :param start_position: The value to assign to the start_position property of this SubstringFormatEntry. :type start_position: int :param length: The value to assign to the length property of this SubstringFormatEntry. :type length: int �str�int)�type�description�start_position�lengthr r Z startPositionr NZ SUBSTRING)Z swagger_typesZ attribute_mapZ_typeZ_description�_start_position�_length)�self�kwargs� r �O/usr/lib/python3.9/site-packages/oci/data_safe/models/substring_format_entry.py�__init__ s ��zSubstringFormatEntry.__init__c C s | j S )a� **[Required]** Gets the start_position of this SubstringFormatEntry. The starting position in the original string from where the substring should be extracted. It can be either a positive or a negative integer. If It's negative, the counting starts from the end of the string. :return: The start_position of this SubstringFormatEntry. :rtype: int �r �r r r r r C s z#SubstringFormatEntry.start_positionc C s || _ dS )a� Sets the start_position of this SubstringFormatEntry. The starting position in the original string from where the substring should be extracted. It can be either a positive or a negative integer. If It's negative, the counting starts from the end of the string. :param start_position: The start_position of this SubstringFormatEntry. :type: int Nr )r r r r r r Q s c C s | j S )a **[Required]** Gets the length of this SubstringFormatEntry. The number of characters that should be there in the substring. It should be an integer and greater than zero. :return: The length of this SubstringFormatEntry. :rtype: int �r r r r r r _ s zSubstringFormatEntry.lengthc C s || _ dS )a Sets the length of this SubstringFormatEntry. The number of characters that should be there in the substring. It should be an integer and greater than zero. :param length: The length of this SubstringFormatEntry. :type: int Nr )r r r r r r l s c C s t | �S �N)r r r r r �__repr__y s zSubstringFormatEntry.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__| s zSubstringFormatEntry.__eq__c C s | |k S r r r r r r �__ne__� s zSubstringFormatEntry.__ne__N)�__name__� __module__�__qualname__�__doc__r �propertyr �setterr r r r r r r r r s , r N) Zformat_entryr Zoci.utilr r r Zoci.decoratorsr r r r r r �<module> s
cải xoăn