Class BackupPolicy
The Backup policy for the DB System.
Inherited Members
Namespace: Oci.MysqlService.Models
Assembly: OCI.DotNetSDK.Mysql.dll
Syntax
public class BackupPolicy
Properties
CopyPolicies
Declaration
[JsonProperty(PropertyName = "copyPolicies")]
public List<CopyPolicy> CopyPolicies { get; set; }
Property Value
Type | Description |
---|---|
List<CopyPolicy> | List of policies of a DB system to schedule cross-region DB system backup copy.
|
DefinedTags
Declaration
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, Dictionary<string, object>> | Usage of predefined tag keys. These predefined keys are scoped to namespaces.
|
FreeformTags
Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> | Simple key-value pair applied without any predefined name, type or scope. Exists for cross-compatibility only.
|
IsEnabled
Declaration
[Required(ErrorMessage = "IsEnabled is required.")]
[JsonProperty(PropertyName = "isEnabled")]
public bool? IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool? | If automated backups are enabled or disabled. |
Remarks
Required
PitrPolicy
Declaration
[JsonProperty(PropertyName = "pitrPolicy")]
public PitrPolicy PitrPolicy { get; set; }
Property Value
Type | Description |
---|---|
PitrPolicy |
RetentionInDays
Declaration
[Required(ErrorMessage = "RetentionInDays is required.")]
[JsonProperty(PropertyName = "retentionInDays")]
public int? RetentionInDays { get; set; }
Property Value
Type | Description |
---|---|
int? | The number of days automated backups are retained. |
Remarks
Required
SoftDelete
Declaration
[JsonProperty(PropertyName = "softDelete")]
[JsonConverter(typeof(ResponseEnumConverter))]
public SoftDelete? SoftDelete { get; set; }
Property Value
Type | Description |
---|---|
SoftDelete? | Retains the backup to be deleted due to the retention policy in DELETE SCHEDULED state for 7 days before permanently deleting it. |
WindowStartTime
Declaration
[Required(ErrorMessage = "WindowStartTime is required.")]
[JsonProperty(PropertyName = "windowStartTime")]
public string WindowStartTime { get; set; }
Property Value
Type | Description |
---|---|
string | The start of a 30-minute window of time in which daily, automated backups occur.
|
Remarks
Required