ObjectLifecyclePolicy¶
-
class
oci.object_storage.models.ObjectLifecyclePolicy(**kwargs)¶ Bases:
objectThe 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
itemsGets the items of this ObjectLifecyclePolicy. time_createdGets 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]
-