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 @ s� e Zd ZdZdZdZdd� Zedd� �Zej dd� �Zed d � �Z e j dd � �Z edd � �Zej dd � �Zedd� �Zej dd� �Zedd� �Z e j dd� �Z edd� �Zej dd� �Zedd� �Zej dd� �Zdd� Zdd� Zdd � Zd!S )"�ObjectLifecycleRulea[ To use any of the API operations, you must be authorized in an IAM policy. If you are not authorized, talk to an administrator. If you are an administrator who needs to write policies to give users access, see `Getting Started with Policies`__. __ https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm �DAYS�YEARSc K sZ dddddddd�| _ dddd d ddd�| _d | _d | _d | _d | _d | _d | _d | _d S )a� Initializes a new ObjectLifecycleRule object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param name: The value to assign to the name property of this ObjectLifecycleRule. :type name: str :param target: The value to assign to the target property of this ObjectLifecycleRule. :type target: str :param action: The value to assign to the action property of this ObjectLifecycleRule. :type action: str :param time_amount: The value to assign to the time_amount property of this ObjectLifecycleRule. :type time_amount: int :param time_unit: The value to assign to the time_unit property of this ObjectLifecycleRule. Allowed values for this property are: "DAYS", "YEARS", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type time_unit: str :param is_enabled: The value to assign to the is_enabled property of this ObjectLifecycleRule. :type is_enabled: bool :param object_name_filter: The value to assign to the object_name_filter property of this ObjectLifecycleRule. :type object_name_filter: oci.object_storage.models.ObjectNameFilter �str�int�boolZObjectNameFilter)�name�target�action�time_amount� time_unit� is_enabled�object_name_filterr r r Z timeAmountZtimeUnitZ isEnabledZobjectNameFilterN) Z swagger_typesZ attribute_map�_name�_target�_action�_time_amount� _time_unit�_is_enabled�_object_name_filter)�self�kwargs� r �S/usr/lib/python3.9/site-packages/oci/object_storage/models/object_lifecycle_rule.py�__init__ s. %�� zObjectLifecycleRule.__init__c C s | j S )z� **[Required]** Gets the name of this ObjectLifecycleRule. The name of the lifecycle rule to be applied. :return: The name of this ObjectLifecycleRule. :rtype: str �r �r r r r r ^ s zObjectLifecycleRule.namec C s || _ dS )z� Sets the name of this ObjectLifecycleRule. The name of the lifecycle rule to be applied. :param name: The name of this ObjectLifecycleRule. :type: str Nr )r r r r r r j s c C s | j S )a� Gets the target of this ObjectLifecycleRule. The target of the object lifecycle policy rule. The values of target can be either "objects", "multipart-uploads" or "previous-object-versions". This field when declared as "objects" is used to specify ARCHIVE, INFREQUENT_ACCESS or DELETE rule for objects. This field when declared as "previous-object-versions" is used to specify ARCHIVE, INFREQUENT_ACCESS or DELETE rule for previous versions of existing objects. This field when declared as "multipart-uploads" is used to specify the ABORT (only) rule for uncommitted multipart-uploads. :return: The target of this ObjectLifecycleRule. :rtype: str �r r r r r r v s zObjectLifecycleRule.targetc C s || _ dS )a� Sets the target of this ObjectLifecycleRule. The target of the object lifecycle policy rule. The values of target can be either "objects", "multipart-uploads" or "previous-object-versions". This field when declared as "objects" is used to specify ARCHIVE, INFREQUENT_ACCESS or DELETE rule for objects. This field when declared as "previous-object-versions" is used to specify ARCHIVE, INFREQUENT_ACCESS or DELETE rule for previous versions of existing objects. This field when declared as "multipart-uploads" is used to specify the ABORT (only) rule for uncommitted multipart-uploads. :param target: The target of this ObjectLifecycleRule. :type: str Nr! )r r r r r r � s c C s | j S )aw **[Required]** Gets the action of this ObjectLifecycleRule. The action of the object lifecycle policy rule. Rules using the action 'ARCHIVE' move objects from Standard and InfrequentAccess storage tiers into the `Archive storage tier`__. Rules using the action 'INFREQUENT_ACCESS' move objects from Standard storage tier into the Infrequent Access Storage tier. Objects that are already in InfrequentAccess tier or in Archive tier are left untouched. Rules using the action 'DELETE' permanently delete objects from buckets. Rules using 'ABORT' abort the uncommitted multipart-uploads and permanently delete their parts from buckets. __ https://docs.cloud.oracle.com/Content/Archive/Concepts/archivestorageoverview.htm :return: The action of this ObjectLifecycleRule. :rtype: str �r r r r r r � s zObjectLifecycleRule.actionc C s || _ dS )am Sets the action of this ObjectLifecycleRule. The action of the object lifecycle policy rule. Rules using the action 'ARCHIVE' move objects from Standard and InfrequentAccess storage tiers into the `Archive storage tier`__. Rules using the action 'INFREQUENT_ACCESS' move objects from Standard storage tier into the Infrequent Access Storage tier. Objects that are already in InfrequentAccess tier or in Archive tier are left untouched. Rules using the action 'DELETE' permanently delete objects from buckets. Rules using 'ABORT' abort the uncommitted multipart-uploads and permanently delete their parts from buckets. __ https://docs.cloud.oracle.com/Content/Archive/Concepts/archivestorageoverview.htm :param action: The action of this ObjectLifecycleRule. :type: str Nr"