File: //usr/lib/python3/dist-packages/boto/s3/__pycache__/multipart.cpython-310.pyc
o
ckF[/ � @ sj d dl mZ d dl mZ d dlmZ d dlZG dd� de�ZG dd� de�Z d
d d
�Z
G dd� de�ZdS )� )�user)�key)�handlerNc @ �2 e Zd ZdZddd�Zdd� Zdd� Zd d
� ZdS )�CompleteMultiPartUploada�
Represents a completed MultiPart Upload. Contains the
following useful attributes:
* location - The URI of the completed upload
* bucket_name - The name of the bucket in which the upload
is contained
* key_name - The name of the new, completed key
* etag - The MD5 hash of the completed, combined upload
* version_id - The version_id of the completed upload
* encrypted - The value of the encryption header
Nc C s. || _ d | _d | _d | _d | _d | _d | _d S �N)�bucket�location�bucket_name�key_name�etag�
version_id� encrypted��selfr � r �3/usr/lib/python3/dist-packages/boto/s3/multipart.py�__init__- s
z CompleteMultiPartUpload.__init__c C s d| j | jf S )Nz <CompleteMultiPartUpload: %s.%s>)r
r �r r r r �__repr__6 s �z CompleteMultiPartUpload.__repr__c C � d S r r �r �name�attrs�
connectionr r r �startElement: � z$CompleteMultiPartUpload.startElementc C sX |dkr || _ d S |dkr|| _d S |dkr|| _d S |dkr$|| _d S t| ||� d S )N�Location�Bucket�Key�ETag)r r
r r �setattr�r r �valuer r r r �
endElement= s
z"CompleteMultiPartUpload.endElementr ��__name__�
__module__�__qualname__�__doc__r r r r$ r r r r r s
r c @ r )�Parta
Represents a single part in a MultiPart upload.
Attributes include:
* part_number - The integer part number
* last_modified - The last modified date of this part
* etag - The MD5 hash of this part
* size - The size, in bytes, of this part
Nc C s"