ReplicationPolicy¶
- class oci.object_storage.models.ReplicationPolicy(**kwargs)¶
Bases:
objectThe details of a replication policy.
Attributes:
A constant which can be used with the status property of a ReplicationPolicy.
A constant which can be used with the status property of a ReplicationPolicy.
[Required] Gets the destination_bucket_name of this ReplicationPolicy.
[Required] Gets the destination_region_name of this ReplicationPolicy.
[Required] Gets the id of this ReplicationPolicy.
[Required] Gets the name of this ReplicationPolicy.
[Required] Gets the status of this ReplicationPolicy.
[Required] Gets the status_message of this ReplicationPolicy.
[Required] Gets the time_created of this ReplicationPolicy.
[Required] Gets the time_last_sync of this ReplicationPolicy.
Methods:
__init__(**kwargs)Initializes a new ReplicationPolicy object with values from keyword arguments.
- STATUS_ACTIVE = 'ACTIVE'¶
A constant which can be used with the status property of a ReplicationPolicy. This constant has a value of “ACTIVE”
- STATUS_CLIENT_ERROR = 'CLIENT_ERROR'¶
A constant which can be used with the status property of a ReplicationPolicy. This constant has a value of “CLIENT_ERROR”
- __init__(**kwargs)¶
Initializes a new ReplicationPolicy object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
id (str) – The value to assign to the id property of this ReplicationPolicy.
name (str) – The value to assign to the name property of this ReplicationPolicy.
destination_region_name (str) – The value to assign to the destination_region_name property of this ReplicationPolicy.
destination_bucket_name (str) – The value to assign to the destination_bucket_name property of this ReplicationPolicy.
time_created (datetime) – The value to assign to the time_created property of this ReplicationPolicy.
time_last_sync (datetime) – The value to assign to the time_last_sync property of this ReplicationPolicy.
status (str) – The value to assign to the status property of this ReplicationPolicy. Allowed values for this property are: “ACTIVE”, “CLIENT_ERROR”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
status_message (str) – The value to assign to the status_message property of this ReplicationPolicy.
- property destination_bucket_name¶
[Required] Gets the destination_bucket_name of this ReplicationPolicy. The bucket to replicate to in the destination region. Replication policy creation does not automatically create a destination bucket. Create the destination bucket before creating the policy.
- Returns
The destination_bucket_name of this ReplicationPolicy.
- Return type
str
- property destination_region_name¶
[Required] Gets the destination_region_name of this ReplicationPolicy. The destination region to replicate to, for example “us-ashburn-1”.
- Returns
The destination_region_name of this ReplicationPolicy.
- Return type
str
- property id¶
[Required] Gets the id of this ReplicationPolicy. The id of the replication policy.
- Returns
The id of this ReplicationPolicy.
- Return type
str
- property name¶
[Required] Gets the name of this ReplicationPolicy. The name of the policy.
- Returns
The name of this ReplicationPolicy.
- Return type
str
- property status¶
[Required] Gets the status of this ReplicationPolicy. The replication status of the policy. If the status is CLIENT_ERROR, once the user fixes the issue described in the status message, the status will become ACTIVE.
Allowed values for this property are: “ACTIVE”, “CLIENT_ERROR”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The status of this ReplicationPolicy.
- Return type
str
- property status_message¶
[Required] Gets the status_message of this ReplicationPolicy. A human-readable description of the status.
- Returns
The status_message of this ReplicationPolicy.
- Return type
str
- property time_created¶
[Required] Gets the time_created of this ReplicationPolicy. The date when the replication policy was created as per RFC 3339.
- Returns
The time_created of this ReplicationPolicy.
- Return type
datetime
- property time_last_sync¶
[Required] Gets the time_last_sync of this ReplicationPolicy. Changes made to the source bucket before this time has been replicated.
- Returns
The time_last_sync of this ReplicationPolicy.
- Return type
datetime