CreateBackupDetails

class oci.database.models.CreateBackupDetails(**kwargs)

Bases: object

Details for creating a database backup.

Warning: Oracle recommends that you avoid using any confidential information when you supply string values using the API.

Methods:

__init__(**kwargs)

Initializes a new CreateBackupDetails object with values from keyword arguments.

Attributes:

database_id

[Required] Gets the database_id of this CreateBackupDetails.

display_name

[Required] Gets the display_name of this CreateBackupDetails.

retention_period_in_days

Gets the retention_period_in_days of this CreateBackupDetails.

retention_period_in_years

Gets the retention_period_in_years of this CreateBackupDetails.

__init__(**kwargs)

Initializes a new CreateBackupDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • database_id (str) – The value to assign to the database_id property of this CreateBackupDetails.

  • display_name (str) – The value to assign to the display_name property of this CreateBackupDetails.

  • retention_period_in_days (int) – The value to assign to the retention_period_in_days property of this CreateBackupDetails.

  • retention_period_in_years (int) – The value to assign to the retention_period_in_years property of this CreateBackupDetails.

property database_id

[Required] Gets the database_id of this CreateBackupDetails. The OCID of the database.

Returns

The database_id of this CreateBackupDetails.

Return type

str

property display_name

[Required] Gets the display_name of this CreateBackupDetails. The user-friendly name for the backup. The name does not have to be unique.

Returns

The display_name of this CreateBackupDetails.

Return type

str

property retention_period_in_days

Gets the retention_period_in_days of this CreateBackupDetails. The retention period of the long term backup in days.

Returns

The retention_period_in_days of this CreateBackupDetails.

Return type

int

property retention_period_in_years

Gets the retention_period_in_years of this CreateBackupDetails. The retention period of the long term backup in years.

Returns

The retention_period_in_years of this CreateBackupDetails.

Return type

int