CreateOciCacheBackupDetails¶
- class oci.redis.models.CreateOciCacheBackupDetails(**kwargs)¶
Bases:
objectThe information to create a new OCI Cache Backup.
Methods:
__init__(**kwargs)Initializes a new CreateOciCacheBackupDetails object with values from keyword arguments.
Attributes:
Gets the backup_source of this CreateOciCacheBackupDetails.
[Required] Gets the compartment_id of this CreateOciCacheBackupDetails.
Gets the defined_tags of this CreateOciCacheBackupDetails.
Gets the description of this CreateOciCacheBackupDetails.
[Required] Gets the display_name of this CreateOciCacheBackupDetails.
Gets the freeform_tags of this CreateOciCacheBackupDetails.
Gets the retention_period_in_days of this CreateOciCacheBackupDetails.
[Required] Gets the source_cluster_id of this CreateOciCacheBackupDetails.
- __init__(**kwargs)¶
Initializes a new CreateOciCacheBackupDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
display_name (str) – The value to assign to the display_name property of this CreateOciCacheBackupDetails.
description (str) – The value to assign to the description property of this CreateOciCacheBackupDetails.
compartment_id (str) – The value to assign to the compartment_id property of this CreateOciCacheBackupDetails.
source_cluster_id (str) – The value to assign to the source_cluster_id property of this CreateOciCacheBackupDetails.
retention_period_in_days (int) – The value to assign to the retention_period_in_days property of this CreateOciCacheBackupDetails.
backup_source (str) – The value to assign to the backup_source property of this CreateOciCacheBackupDetails.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateOciCacheBackupDetails.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateOciCacheBackupDetails.
- property backup_source¶
Gets the backup_source of this CreateOciCacheBackupDetails. Specifies whether the backup was created from a replica or primary node
- Returns
The backup_source of this CreateOciCacheBackupDetails.
- Return type
str
- property compartment_id¶
[Required] Gets the compartment_id of this CreateOciCacheBackupDetails. Compartment identifier
- Returns
The compartment_id of this CreateOciCacheBackupDetails.
- Return type
str
- property defined_tags¶
Gets the defined_tags of this CreateOciCacheBackupDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Returns
The defined_tags of this CreateOciCacheBackupDetails.
- Return type
dict(str, dict(str, object))
- property description¶
Gets the description of this CreateOciCacheBackupDetails. Backup description
- Returns
The description of this CreateOciCacheBackupDetails.
- Return type
str
- property display_name¶
[Required] Gets the display_name of this CreateOciCacheBackupDetails. Backup display name.
- Returns
The display_name of this CreateOciCacheBackupDetails.
- Return type
str
- property freeform_tags¶
Gets the freeform_tags of this CreateOciCacheBackupDetails. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Returns
The freeform_tags of this CreateOciCacheBackupDetails.
- Return type
dict(str, str)
- property retention_period_in_days¶
Gets the retention_period_in_days of this CreateOciCacheBackupDetails. Backup retention period in days.
- Returns
The retention_period_in_days of this CreateOciCacheBackupDetails.
- Return type
int
- property source_cluster_id¶
[Required] Gets the source_cluster_id of this CreateOciCacheBackupDetails. OCI Cache cluster identifier
- Returns
The source_cluster_id of this CreateOciCacheBackupDetails.
- Return type
str