CreateProtectedDatabaseDetails¶
- class oci.recovery.models.CreateProtectedDatabaseDetails(**kwargs)¶
Bases:
objectDescribes the parameters required to create a protected database.
Attributes:
A constant which can be used with the database_size property of a CreateProtectedDatabaseDetails.
A constant which can be used with the database_size property of a CreateProtectedDatabaseDetails.
A constant which can be used with the database_size property of a CreateProtectedDatabaseDetails.
A constant which can be used with the database_size property of a CreateProtectedDatabaseDetails.
A constant which can be used with the database_size property of a CreateProtectedDatabaseDetails.
A constant which can be used with the database_size property of a CreateProtectedDatabaseDetails.
A constant which can be used with the database_size property of a CreateProtectedDatabaseDetails.
Gets the change_rate of this CreateProtectedDatabaseDetails.
[Required] Gets the compartment_id of this CreateProtectedDatabaseDetails.
Gets the compression_ratio of this CreateProtectedDatabaseDetails.
Gets the database_id of this CreateProtectedDatabaseDetails.
Gets the database_size of this CreateProtectedDatabaseDetails.
Gets the database_size_in_gbs of this CreateProtectedDatabaseDetails.
[Required] Gets the db_unique_name of this CreateProtectedDatabaseDetails.
Gets the defined_tags of this CreateProtectedDatabaseDetails.
[Required] Gets the display_name of this CreateProtectedDatabaseDetails.
Gets the freeform_tags of this CreateProtectedDatabaseDetails.
Gets the is_redo_logs_shipped of this CreateProtectedDatabaseDetails.
[Required] Gets the password of this CreateProtectedDatabaseDetails.
[Required] Gets the protection_policy_id of this CreateProtectedDatabaseDetails.
[Required] Gets the recovery_service_subnets of this CreateProtectedDatabaseDetails.
Gets the subscription_id of this CreateProtectedDatabaseDetails.
Methods:
__init__(**kwargs)Initializes a new CreateProtectedDatabaseDetails object with values from keyword arguments.
- DATABASE_SIZE_AUTO = 'AUTO'¶
A constant which can be used with the database_size property of a CreateProtectedDatabaseDetails. This constant has a value of “AUTO”
- DATABASE_SIZE_L = 'L'¶
A constant which can be used with the database_size property of a CreateProtectedDatabaseDetails. This constant has a value of “L”
- DATABASE_SIZE_M = 'M'¶
A constant which can be used with the database_size property of a CreateProtectedDatabaseDetails. This constant has a value of “M”
- DATABASE_SIZE_S = 'S'¶
A constant which can be used with the database_size property of a CreateProtectedDatabaseDetails. This constant has a value of “S”
- DATABASE_SIZE_XL = 'XL'¶
A constant which can be used with the database_size property of a CreateProtectedDatabaseDetails. This constant has a value of “XL”
- DATABASE_SIZE_XS = 'XS'¶
A constant which can be used with the database_size property of a CreateProtectedDatabaseDetails. This constant has a value of “XS”
- DATABASE_SIZE_XXL = 'XXL'¶
A constant which can be used with the database_size property of a CreateProtectedDatabaseDetails. This constant has a value of “XXL”
- __init__(**kwargs)¶
Initializes a new CreateProtectedDatabaseDetails 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 CreateProtectedDatabaseDetails.
db_unique_name (str) – The value to assign to the db_unique_name property of this CreateProtectedDatabaseDetails.
database_size (str) – The value to assign to the database_size property of this CreateProtectedDatabaseDetails. Allowed values for this property are: “XS”, “S”, “M”, “L”, “XL”, “XXL”, “AUTO”
password (str) – The value to assign to the password property of this CreateProtectedDatabaseDetails.
protection_policy_id (str) – The value to assign to the protection_policy_id property of this CreateProtectedDatabaseDetails.
recovery_service_subnets (list[oci.recovery.models.RecoveryServiceSubnetInput]) – The value to assign to the recovery_service_subnets property of this CreateProtectedDatabaseDetails.
database_id (str) – The value to assign to the database_id property of this CreateProtectedDatabaseDetails.
compartment_id (str) – The value to assign to the compartment_id property of this CreateProtectedDatabaseDetails.
database_size_in_gbs (int) – The value to assign to the database_size_in_gbs property of this CreateProtectedDatabaseDetails.
change_rate (float) – The value to assign to the change_rate property of this CreateProtectedDatabaseDetails.
compression_ratio (float) – The value to assign to the compression_ratio property of this CreateProtectedDatabaseDetails.
is_redo_logs_shipped (bool) – The value to assign to the is_redo_logs_shipped property of this CreateProtectedDatabaseDetails.
subscription_id (str) – The value to assign to the subscription_id property of this CreateProtectedDatabaseDetails.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateProtectedDatabaseDetails.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateProtectedDatabaseDetails.
- property change_rate¶
Gets the change_rate of this CreateProtectedDatabaseDetails. The percentage of data changes that exist in the database between successive incremental backups.
- Returns
The change_rate of this CreateProtectedDatabaseDetails.
- Return type
float
- property compartment_id¶
[Required] Gets the compartment_id of this CreateProtectedDatabaseDetails. The OCID of the compartment that contains the protected database.
- Returns
The compartment_id of this CreateProtectedDatabaseDetails.
- Return type
str
- property compression_ratio¶
Gets the compression_ratio of this CreateProtectedDatabaseDetails. The compression ratio of the protected database. The compression ratio represents the ratio of compressed block size to expanded block size.
- Returns
The compression_ratio of this CreateProtectedDatabaseDetails.
- Return type
float
- property database_id¶
Gets the database_id of this CreateProtectedDatabaseDetails. The OCID of the protected database.
- Returns
The database_id of this CreateProtectedDatabaseDetails.
- Return type
str
- property database_size¶
Gets the database_size of this CreateProtectedDatabaseDetails. The size of the protected database. XS - Less than 5GB, S - 5GB to 50GB, M - 50GB to 500GB, L - 500GB to 1TB, XL - 1TB to 5TB, XXL - Greater than 5TB.
Allowed values for this property are: “XS”, “S”, “M”, “L”, “XL”, “XXL”, “AUTO”
- Returns
The database_size of this CreateProtectedDatabaseDetails.
- Return type
str
- property database_size_in_gbs¶
Gets the database_size_in_gbs of this CreateProtectedDatabaseDetails. The size of the database, in gigabytes.
- Returns
The database_size_in_gbs of this CreateProtectedDatabaseDetails.
- Return type
int
- property db_unique_name¶
[Required] Gets the db_unique_name of this CreateProtectedDatabaseDetails. The dbUniqueName of the protected database in Recovery Service. You cannot change the unique name.
- Returns
The db_unique_name of this CreateProtectedDatabaseDetails.
- Return type
str
- property defined_tags¶
Gets the defined_tags of this CreateProtectedDatabaseDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}. For more information, see Resource Tags
- Returns
The defined_tags of this CreateProtectedDatabaseDetails.
- Return type
dict(str, dict(str, object))
- property display_name¶
[Required] Gets the display_name of this CreateProtectedDatabaseDetails. The protected database name. You can change the displayName. Avoid entering confidential information.
- Returns
The display_name of this CreateProtectedDatabaseDetails.
- Return type
str
- property freeform_tags¶
Gets the freeform_tags of this CreateProtectedDatabaseDetails. 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 CreateProtectedDatabaseDetails.
- Return type
dict(str, str)
- property is_redo_logs_shipped¶
Gets the is_redo_logs_shipped of this CreateProtectedDatabaseDetails. The value TRUE indicates that the protected database is configured to use Real-time data protection, and redo-data is sent from the protected database to Recovery Service. Real-time data protection substantially reduces the window of potential data loss that exists between successive archived redo log backups.
- Returns
The is_redo_logs_shipped of this CreateProtectedDatabaseDetails.
- Return type
bool
- property password¶
[Required] Gets the password of this CreateProtectedDatabaseDetails. Password credential which can be used to connect to Protected Database. It must contain at least 2 uppercase, 2 lowercase, 2 numeric and 2 special characters. The special characters must be underscore (_), number sign (#) or hyphen (-). The password must not contain the username “admin”, regardless of casing.
- Returns
The password of this CreateProtectedDatabaseDetails.
- Return type
str
- property protection_policy_id¶
[Required] Gets the protection_policy_id of this CreateProtectedDatabaseDetails. The OCID of the protection policy associated with the protected database.
- Returns
The protection_policy_id of this CreateProtectedDatabaseDetails.
- Return type
str
- property recovery_service_subnets¶
[Required] Gets the recovery_service_subnets of this CreateProtectedDatabaseDetails. List of recovery service subnet resources associated with the protected database.
- Returns
The recovery_service_subnets of this CreateProtectedDatabaseDetails.
- Return type
- property subscription_id¶
Gets the subscription_id of this CreateProtectedDatabaseDetails. The OCID of the cloud service subscription to which you want to link the protected database. For example, specify the Microsoft Azure subscription ID if you want to provision the protected database in Azure.
- Returns
The subscription_id of this CreateProtectedDatabaseDetails.
- Return type
str