BackupPolicy¶
-
class
oci.opensearch.models.
BackupPolicy
(**kwargs)¶ Bases:
object
Backup policy as optionally used for Opensearch cluster.
Methods
__init__
(**kwargs)Initializes a new BackupPolicy object with values from keyword arguments. Attributes
frequency_in_hours
Gets the frequency_in_hours of this BackupPolicy. is_enabled
Gets the is_enabled of this BackupPolicy. retention_in_days
Gets the retention_in_days of this BackupPolicy. -
__init__
(**kwargs)¶ Initializes a new BackupPolicy object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - is_enabled (bool) – The value to assign to the is_enabled property of this BackupPolicy.
- retention_in_days (int) – The value to assign to the retention_in_days property of this BackupPolicy.
- frequency_in_hours (int) – The value to assign to the frequency_in_hours property of this BackupPolicy.
-
frequency_in_hours
¶ Gets the frequency_in_hours of this BackupPolicy. Specifies how often backup should be performed
Returns: The frequency_in_hours of this BackupPolicy. Return type: int
-
is_enabled
¶ Gets the is_enabled of this BackupPolicy. Specifies if automatic backups are enabled.
Returns: The is_enabled of this BackupPolicy. Return type: bool
-
retention_in_days
¶ Gets the retention_in_days of this BackupPolicy. Specifies how long backup copy should remain on Storage in days
Returns: The retention_in_days of this BackupPolicy. Return type: int
-