MultipartUpload

class oci.object_storage.models.MultipartUpload(**kwargs)

Bases: object

Multipart uploads provide efficient and resilient uploads, especially for large objects. Multipart uploads also accommodate objects that are too large for a single upload operation. With multipart uploads, individual parts of an object can be uploaded in parallel to reduce the amount of time you spend uploading. Multipart uploads can also minimize the impact of network failures by letting you retry a failed part upload instead of requiring you to retry an entire object upload. See Using Multipart Uploads.

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.

Attributes

STORAGE_TIER_ARCHIVE A constant which can be used with the storage_tier property of a MultipartUpload.
STORAGE_TIER_INFREQUENT_ACCESS A constant which can be used with the storage_tier property of a MultipartUpload.
STORAGE_TIER_STANDARD A constant which can be used with the storage_tier property of a MultipartUpload.
bucket [Required] Gets the bucket of this MultipartUpload.
namespace [Required] Gets the namespace of this MultipartUpload.
object [Required] Gets the object of this MultipartUpload.
storage_tier Gets the storage_tier of this MultipartUpload.
time_created [Required] Gets the time_created of this MultipartUpload.
upload_id [Required] Gets the upload_id of this MultipartUpload.

Methods

__init__(**kwargs) Initializes a new MultipartUpload object with values from keyword arguments.
STORAGE_TIER_ARCHIVE = 'Archive'

A constant which can be used with the storage_tier property of a MultipartUpload. This constant has a value of “Archive”

STORAGE_TIER_INFREQUENT_ACCESS = 'InfrequentAccess'

A constant which can be used with the storage_tier property of a MultipartUpload. This constant has a value of “InfrequentAccess”

STORAGE_TIER_STANDARD = 'Standard'

A constant which can be used with the storage_tier property of a MultipartUpload. This constant has a value of “Standard”

__init__(**kwargs)

Initializes a new MultipartUpload object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • namespace (str) – The value to assign to the namespace property of this MultipartUpload.
  • bucket (str) – The value to assign to the bucket property of this MultipartUpload.
  • object (str) – The value to assign to the object property of this MultipartUpload.
  • upload_id (str) – The value to assign to the upload_id property of this MultipartUpload.
  • time_created (datetime) – The value to assign to the time_created property of this MultipartUpload.
  • storage_tier (str) – The value to assign to the storage_tier property of this MultipartUpload. Allowed values for this property are: “Standard”, “InfrequentAccess”, “Archive”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
bucket

[Required] Gets the bucket of this MultipartUpload. The bucket in which the in-progress multipart upload is stored.

Returns:The bucket of this MultipartUpload.
Return type:str
namespace

[Required] Gets the namespace of this MultipartUpload. The Object Storage namespace in which the in-progress multipart upload is stored.

Returns:The namespace of this MultipartUpload.
Return type:str
object

[Required] Gets the object of this MultipartUpload. The object name of the in-progress multipart upload.

Returns:The object of this MultipartUpload.
Return type:str
storage_tier

Gets the storage_tier of this MultipartUpload. The storage tier that the object is stored in.

Allowed values for this property are: “Standard”, “InfrequentAccess”, “Archive”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The storage_tier of this MultipartUpload.
Return type:str
time_created

[Required] Gets the time_created of this MultipartUpload. The date and time the upload was created, as described in RFC 2616.

Returns:The time_created of this MultipartUpload.
Return type:datetime
upload_id

[Required] Gets the upload_id of this MultipartUpload. The unique identifier for the in-progress multipart upload.

Returns:The upload_id of this MultipartUpload.
Return type:str