OXIESEC PANEL
- Current Dir:
/
/
opt
/
gsutil
/
gslib
/
vendored
/
boto
/
boto
/
s3
/
__pycache__
Server IP: 2a02:4780:11:1594:0:ef5:22d7:a
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/11/2025 08:19:48 AM
rwxr-xr-x
📄
__init__.cpython-39.pyc
1.66 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
acl.cpython-39.pyc
4.58 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
bucket.cpython-39.pyc
60.9 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
bucketlistresultset.cpython-39.pyc
4.54 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
bucketlogging.cpython-39.pyc
2.23 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
connection.cpython-39.pyc
19.94 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
cors.cpython-39.pyc
7.01 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
deletemarker.cpython-39.pyc
1.12 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
key.cpython-39.pyc
58.73 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
keyfile.cpython-39.pyc
3.78 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
lifecycle.cpython-39.pyc
9.59 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
multidelete.cpython-39.pyc
3.9 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
multipart.cpython-39.pyc
9.75 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
prefix.cpython-39.pyc
978 bytes
02/11/2025 08:19:48 AM
rw-r--r--
📄
tagging.cpython-39.pyc
2.71 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
user.cpython-39.pyc
1.17 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
website.cpython-39.pyc
9.92 KB
02/11/2025 08:19:48 AM
rw-r--r--
Editing: lifecycle.cpython-39.pyc
Close
a sFg�* � @ s` d dl mZ G dd� de�ZG dd� de�ZG dd� de�ZG dd � d e�ZG d d� de�ZdS ) � )�sixc @ s: e Zd ZdZd dd�Zdd� Zdd� Zd d � Zdd� ZdS )�RuleaH A Lifecycle rule for an S3 bucket. :ivar id: Unique identifier for the rule. The value cannot be longer than 255 characters. This value is optional. The server will generate a unique value for the rule if no value is provided. :ivar prefix: Prefix identifying one or more objects to which the rule applies. If prefix is not provided, Boto generates a default prefix which will match all objects. :ivar status: If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being applied. :ivar expiration: An instance of `Expiration`. This indicates the lifetime of the objects that are subject to the rule. :ivar transition: An instance of `Transition`. This indicates when to transition to a different storage class. Nc C sv || _ |d u rdn|| _|| _t|tj�r8t|d�| _n|| _t|t�r^t � | _ | j �|� n|rj|| _ nt � | _ d S )N� )�days)�id�prefix�status� isinstancer � integer_types� Expiration� expiration� Transition�Transitions� transition�append)�selfr r r r r � r �4/opt/gsutil/gslib/vendored/boto/boto/s3/lifecycle.py�__init__. s z Rule.__init__c C s d| j S )Nz <Rule: %s>)r �r r r r �__repr__C s z Rule.__repr__c C s( |dkr| j S |dkr$t� | _| jS d S )Nr r )r r r �r �name�attrs� connectionr r r �startElementF s zRule.startElementc C s@ |dkr|| _ n,|dkr || _n|dkr0|| _nt| ||� d S )N�ID�Prefix�Status)r r r �setattr�r r �valuer r r r � endElementN s zRule.endElementc C st d}| j d ur|d| j 7 }|d| j 7 }|d| j 7 }| jd urP|| j�� 7 }| jd urh|| j�� 7 }|d7 }|S )Nz<Rule>z<ID>%s</ID>z<Prefix>%s</Prefix>z<Status>%s</Status>z</Rule>)r r r r �to_xmlr �r �sr r r r# X s zRule.to_xml)NNNNN) �__name__� __module__�__qualname__�__doc__r r r r"