ObjectSummary

class oci.object_storage.models.ObjectSummary(**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.

Methods

__init__(**kwargs) Initializes a new ObjectSummary object with values from keyword arguments.

Attributes

etag Gets the etag of this ObjectSummary.
md5 Gets the md5 of this ObjectSummary.
name [Required] Gets the name of this ObjectSummary.
size Gets the size of this ObjectSummary.
time_created Gets the time_created of this ObjectSummary.
time_modified Gets the time_modified of this ObjectSummary.
__init__(**kwargs)

Initializes a new ObjectSummary 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 ObjectSummary.
  • size (int) – The value to assign to the size property of this ObjectSummary.
  • md5 (str) – The value to assign to the md5 property of this ObjectSummary.
  • time_created (datetime) – The value to assign to the time_created property of this ObjectSummary.
  • etag (str) – The value to assign to the etag property of this ObjectSummary.
  • time_modified (datetime) – The value to assign to the time_modified property of this ObjectSummary.
etag

Gets the etag of this ObjectSummary. The current entity tag (ETag) for the object.

Returns:The etag of this ObjectSummary.
Return type:str
md5

Gets the md5 of this ObjectSummary. Base64-encoded MD5 hash of the object data.

Returns:The md5 of this ObjectSummary.
Return type:str
name

[Required] Gets the name of this ObjectSummary. The name of the object. Avoid entering confidential information. Example: test/object1.log

Returns:The name of this ObjectSummary.
Return type:str
size

Gets the size of this ObjectSummary. Size of the object in bytes.

Returns:The size of this ObjectSummary.
Return type:int
time_created

Gets the time_created of this ObjectSummary. The date and time the object was created, as described in RFC 2616.

Returns:The time_created of this ObjectSummary.
Return type:datetime
time_modified

Gets the time_modified of this ObjectSummary. The date and time the object was modified, as described in RFC 2616, section 14.29.

Returns:The time_modified of this ObjectSummary.
Return type:datetime