ObjectVersionSummary¶
-
class
oci.object_storage.models.
ObjectVersionSummary
(**kwargs)¶ Bases:
object
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
ARCHIVAL_STATE_ARCHIVED
A constant which can be used with the archival_state property of a ObjectVersionSummary. ARCHIVAL_STATE_RESTORED
A constant which can be used with the archival_state property of a ObjectVersionSummary. ARCHIVAL_STATE_RESTORING
A constant which can be used with the archival_state property of a ObjectVersionSummary. STORAGE_TIER_ARCHIVE
A constant which can be used with the storage_tier property of a ObjectVersionSummary. STORAGE_TIER_INFREQUENT_ACCESS
A constant which can be used with the storage_tier property of a ObjectVersionSummary. STORAGE_TIER_STANDARD
A constant which can be used with the storage_tier property of a ObjectVersionSummary. archival_state
Gets the archival_state of this ObjectVersionSummary. etag
Gets the etag of this ObjectVersionSummary. is_delete_marker
[Required] Gets the is_delete_marker of this ObjectVersionSummary. md5
Gets the md5 of this ObjectVersionSummary. name
[Required] Gets the name of this ObjectVersionSummary. size
Gets the size of this ObjectVersionSummary. storage_tier
Gets the storage_tier of this ObjectVersionSummary. time_created
Gets the time_created of this ObjectVersionSummary. time_modified
[Required] Gets the time_modified of this ObjectVersionSummary. version_id
[Required] Gets the version_id of this ObjectVersionSummary. Methods
__init__
(**kwargs)Initializes a new ObjectVersionSummary object with values from keyword arguments. -
ARCHIVAL_STATE_ARCHIVED
= 'Archived'¶ A constant which can be used with the archival_state property of a ObjectVersionSummary. This constant has a value of “Archived”
-
ARCHIVAL_STATE_RESTORED
= 'Restored'¶ A constant which can be used with the archival_state property of a ObjectVersionSummary. This constant has a value of “Restored”
-
ARCHIVAL_STATE_RESTORING
= 'Restoring'¶ A constant which can be used with the archival_state property of a ObjectVersionSummary. This constant has a value of “Restoring”
-
STORAGE_TIER_ARCHIVE
= 'Archive'¶ A constant which can be used with the storage_tier property of a ObjectVersionSummary. 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 ObjectVersionSummary. This constant has a value of “InfrequentAccess”
-
STORAGE_TIER_STANDARD
= 'Standard'¶ A constant which can be used with the storage_tier property of a ObjectVersionSummary. This constant has a value of “Standard”
-
__init__
(**kwargs)¶ Initializes a new ObjectVersionSummary object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - name (str) – The value to assign to the name property of this ObjectVersionSummary.
- size (int) – The value to assign to the size property of this ObjectVersionSummary.
- md5 (str) – The value to assign to the md5 property of this ObjectVersionSummary.
- time_created (datetime) – The value to assign to the time_created property of this ObjectVersionSummary.
- time_modified (datetime) – The value to assign to the time_modified property of this ObjectVersionSummary.
- etag (str) – The value to assign to the etag property of this ObjectVersionSummary.
- storage_tier (str) – The value to assign to the storage_tier property of this ObjectVersionSummary. 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’.
- archival_state (str) – The value to assign to the archival_state property of this ObjectVersionSummary. Allowed values for this property are: “Archived”, “Restoring”, “Restored”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- version_id (str) – The value to assign to the version_id property of this ObjectVersionSummary.
- is_delete_marker (bool) – The value to assign to the is_delete_marker property of this ObjectVersionSummary.
-
archival_state
¶ Gets the archival_state of this ObjectVersionSummary. Archival state of an object. This field is set only for objects in Archive tier.
Allowed values for this property are: “Archived”, “Restoring”, “Restored”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The archival_state of this ObjectVersionSummary. Return type: str
-
etag
¶ Gets the etag of this ObjectVersionSummary. The current entity tag (ETag) for the object.
Returns: The etag of this ObjectVersionSummary. Return type: str
-
is_delete_marker
¶ [Required] Gets the is_delete_marker of this ObjectVersionSummary. This flag will indicate if the version is deleted or not.
Returns: The is_delete_marker of this ObjectVersionSummary. Return type: bool
-
md5
¶ Gets the md5 of this ObjectVersionSummary. Base64-encoded MD5 hash of the object data.
Returns: The md5 of this ObjectVersionSummary. Return type: str
-
name
¶ [Required] Gets the name of this ObjectVersionSummary. The name of the object. Avoid entering confidential information. Example: test/object1.log
Returns: The name of this ObjectVersionSummary. Return type: str
-
size
¶ Gets the size of this ObjectVersionSummary. Size of the object in bytes.
Returns: The size of this ObjectVersionSummary. Return type: int
-
storage_tier
¶ Gets the storage_tier of this ObjectVersionSummary. 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 ObjectVersionSummary. Return type: str
-
time_created
¶ Gets the time_created of this ObjectVersionSummary. The date and time the object was created, as described in RFC 2616.
Returns: The time_created of this ObjectVersionSummary. Return type: datetime
-
time_modified
¶ [Required] Gets the time_modified of this ObjectVersionSummary. The date and time the object was modified, as described in RFC 2616.
Returns: The time_modified of this ObjectVersionSummary. Return type: datetime
-
version_id
¶ [Required] Gets the version_id of this ObjectVersionSummary. VersionId of the object.
Returns: The version_id of this ObjectVersionSummary. Return type: str
-