ruạṛ
a ���f� � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ sl e Zd ZdZdZdZdd� Zedd� �Zej dd� �Zed d � �Z e j dd � �Z dd � Zdd� Zdd� Z dS )�Durationa The amount of time that objects in the bucket should be preserved for and which is calculated in relation to each object's Last-Modified timestamp. If duration is not present, then there is no time limit and the objects in the bucket will be preserved indefinitely. �YEARS�DAYSc K s( ddd�| _ ddd�| _d| _d| _dS )a� Initializes a new Duration object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param time_amount: The value to assign to the time_amount property of this Duration. :type time_amount: int :param time_unit: The value to assign to the time_unit property of this Duration. Allowed values for this property are: "YEARS", "DAYS", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type time_unit: str �int�str)�time_amount� time_unitZ timeAmountZtimeUnitN)Z swagger_typesZ attribute_map�_time_amount� _time_unit)�self�kwargs� r �F/usr/lib/python3.9/site-packages/oci/object_storage/models/duration.py�__init__ s ��zDuration.__init__c C s | j S )a2 **[Required]** Gets the time_amount of this Duration. The timeAmount is interpreted in units defined by the timeUnit parameter, and is calculated in relation to each object's Last-Modified timestamp. :return: The time_amount of this Duration. :rtype: int �r �r r r r r 9 s zDuration.time_amountc C s || _ dS )a- Sets the time_amount of this Duration. The timeAmount is interpreted in units defined by the timeUnit parameter, and is calculated in relation to each object's Last-Modified timestamp. :param time_amount: The time_amount of this Duration. :type: int Nr )r r r r r r F s c C s | j S )a~ **[Required]** Gets the time_unit of this Duration. The unit that should be used to interpret timeAmount. Allowed values for this property are: "YEARS", "DAYS", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The time_unit of this Duration. :rtype: str )r r r r r r S s zDuration.time_unitc C s ddg}t ||�sd}|| _dS )z� Sets the time_unit of this Duration. The unit that should be used to interpret timeAmount. :param time_unit: The time_unit of this Duration. :type: str r r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r b s c C s t | �S �N)r r r r r �__repr__q s zDuration.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__t s zDuration.__eq__c C s | |k S r r r r r r �__ne__z s zDuration.__ne__N)�__name__� __module__�__qualname__�__doc__ZTIME_UNIT_YEARSZTIME_UNIT_DAYSr �propertyr �setterr r r r r r r r r s r N)Zoci.utilr r r Zoci.decoratorsr �objectr r r r r �<module> s
cải xoăn