ReplicationPolicySummary

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

Bases: object

The summary of a replication policy.

Attributes

STATUS_ACTIVE A constant which can be used with the status property of a ReplicationPolicySummary.
STATUS_CLIENT_ERROR A constant which can be used with the status property of a ReplicationPolicySummary.
destination_bucket_name [Required] Gets the destination_bucket_name of this ReplicationPolicySummary.
destination_region_name [Required] Gets the destination_region_name of this ReplicationPolicySummary.
id [Required] Gets the id of this ReplicationPolicySummary.
name [Required] Gets the name of this ReplicationPolicySummary.
status [Required] Gets the status of this ReplicationPolicySummary.
status_message [Required] Gets the status_message of this ReplicationPolicySummary.
time_created [Required] Gets the time_created of this ReplicationPolicySummary.
time_last_sync [Required] Gets the time_last_sync of this ReplicationPolicySummary.

Methods

__init__(**kwargs) Initializes a new ReplicationPolicySummary object with values from keyword arguments.
STATUS_ACTIVE = 'ACTIVE'

A constant which can be used with the status property of a ReplicationPolicySummary. This constant has a value of “ACTIVE”

STATUS_CLIENT_ERROR = 'CLIENT_ERROR'

A constant which can be used with the status property of a ReplicationPolicySummary. This constant has a value of “CLIENT_ERROR”

__init__(**kwargs)

Initializes a new ReplicationPolicySummary 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 ReplicationPolicySummary.
  • name (str) – The value to assign to the name property of this ReplicationPolicySummary.
  • destination_region_name (str) – The value to assign to the destination_region_name property of this ReplicationPolicySummary.
  • destination_bucket_name (str) – The value to assign to the destination_bucket_name property of this ReplicationPolicySummary.
  • time_created (datetime) – The value to assign to the time_created property of this ReplicationPolicySummary.
  • time_last_sync (datetime) – The value to assign to the time_last_sync property of this ReplicationPolicySummary.
  • status (str) – The value to assign to the status property of this ReplicationPolicySummary. 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 ReplicationPolicySummary.
destination_bucket_name

[Required] Gets the destination_bucket_name of this ReplicationPolicySummary. 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 ReplicationPolicySummary.
Return type:str
destination_region_name

[Required] Gets the destination_region_name of this ReplicationPolicySummary. The destination region to replicate to, for example “us-ashburn-1”.

Returns:The destination_region_name of this ReplicationPolicySummary.
Return type:str
id

[Required] Gets the id of this ReplicationPolicySummary. The id of the replication policy.

Returns:The id of this ReplicationPolicySummary.
Return type:str
name

[Required] Gets the name of this ReplicationPolicySummary. The name of the policy.

Returns:The name of this ReplicationPolicySummary.
Return type:str
status

[Required] Gets the status of this ReplicationPolicySummary. 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 ReplicationPolicySummary.
Return type:str
status_message

[Required] Gets the status_message of this ReplicationPolicySummary. A human-readable description of the status.

Returns:The status_message of this ReplicationPolicySummary.
Return type:str
time_created

[Required] Gets the time_created of this ReplicationPolicySummary. The date when the replication policy was created as per RFC 3339.

Returns:The time_created of this ReplicationPolicySummary.
Return type:datetime
time_last_sync

[Required] Gets the time_last_sync of this ReplicationPolicySummary. Changes made to the source bucket before this time has been replicated.

Returns:The time_last_sync of this ReplicationPolicySummary.
Return type:datetime