Class ReplicationPolicy
The details of a replication policy.
Inherited Members
Namespace: Oci.ObjectstorageService.Models
Assembly: OCI.DotNetSDK.Objectstorage.dll
Syntax
public class ReplicationPolicy
Properties
DestinationBucketName
Declaration
[Required(ErrorMessage = "DestinationBucketName is required.")]
[JsonProperty(PropertyName = "destinationBucketName")]
public string DestinationBucketName { get; set; }
Property Value
Type | Description |
---|---|
string | 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. |
Remarks
Required
DestinationRegionName
Declaration
[Required(ErrorMessage = "DestinationRegionName is required.")]
[JsonProperty(PropertyName = "destinationRegionName")]
public string DestinationRegionName { get; set; }
Property Value
Type | Description |
---|---|
string | The destination region to replicate to, for example "us-ashburn-1". |
Remarks
Required
Id
Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string | The id of the replication policy. |
Remarks
Required
Name
Declaration
[Required(ErrorMessage = "Name is required.")]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string | The name of the policy. |
Remarks
Required
Status
Declaration
[Required(ErrorMessage = "Status is required.")]
[JsonProperty(PropertyName = "status")]
[JsonConverter(typeof(ResponseEnumConverter))]
public ReplicationPolicy.StatusEnum? Status { get; set; }
Property Value
Type | Description |
---|---|
ReplicationPolicy.StatusEnum? | 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. |
Remarks
Required
StatusMessage
Declaration
[Required(ErrorMessage = "StatusMessage is required.")]
[JsonProperty(PropertyName = "statusMessage")]
public string StatusMessage { get; set; }
Property Value
Type | Description |
---|---|
string | A human-readable description of the status. |
Remarks
Required
TimeCreated
Declaration
[Required(ErrorMessage = "TimeCreated is required.")]
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | The date when the replication policy was created as per RFC 3339. |
Remarks
Required
TimeLastSync
Declaration
[Required(ErrorMessage = "TimeLastSync is required.")]
[JsonProperty(PropertyName = "timeLastSync")]
public DateTime? TimeLastSync { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | Changes made to the source bucket before this time has been replicated. |
Remarks
Required