ObjectLifecyclePolicy

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

Bases: object

The collection of lifecycle policy rules that together form the object lifecycle policy of a given bucket.

Methods

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

Attributes

items Gets the items of this ObjectLifecyclePolicy.
time_created Gets the time_created of this ObjectLifecyclePolicy.
__init__(**kwargs)

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

Parameters:
  • time_created (datetime) – The value to assign to the time_created property of this ObjectLifecyclePolicy.
  • items (list[oci.object_storage.models.ObjectLifecycleRule]) – The value to assign to the items property of this ObjectLifecyclePolicy.
items

Gets the items of this ObjectLifecyclePolicy. The live lifecycle policy on the bucket.

For an example of this value, see the PutObjectLifecyclePolicy API documentation.

Returns:The items of this ObjectLifecyclePolicy.
Return type:list[oci.object_storage.models.ObjectLifecycleRule]
time_created

Gets the time_created of this ObjectLifecyclePolicy. The date and time the object lifecycle policy was created, as described in RFC 3339.

Returns:The time_created of this ObjectLifecyclePolicy.
Return type:datetime