ruạṛ
a ���fK� � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s e Zd ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dZd ZdZdZdZdZdZdd� Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejd d� �Zed!d"� �Zejd#d"� �Zed$d%� �Zejd&d%� �Zed'd(� �Zejd)d(� �Zed*d+� �Zejd,d+� �Zed-d.� �Z e jd/d.� �Z ed0d1� �Z!e!jd2d1� �Z!ed3d4� �Z"e"jd5d4� �Z"ed6d7� �Z#e#jd8d7� �Z#ed9d:� �Z$e$jd;d:� �Z$ed<d=� �Z%e%jd>d=� �Z%ed?d@� �Z&e&jdAd@� �Z&edBdC� �Z'e'jdDdC� �Z'edEdF� �Z(e(jdGdF� �Z(edHdI� �Z)e)jdJdI� �Z)edKdL� �Z*e*jdMdL� �Z*edNdO� �Z+e+jdPdO� �Z+edQdR� �Z,e,jdSdR� �Z,edTdU� �Z-e-jdVdU� �Z-edWdX� �Z.e.jdYdX� �Z.edZd[� �Z/e/jd\d[� �Z/ed]d^� �Z0e0jd_d^� �Z0ed`da� �Z1e1jdbda� �Z1dcdd� Z2dedf� Z3dgdh� Z4diS )j�ProtectedDatabasea9 A protected database is an Oracle Cloud Database whose backups are managed by Oracle Database Autonomous Recovery Service. Each protected database requires a recovery service subnet and a protection policy to use Recovery Service as the backup destination for centralized backup and recovery �XS�S�M�L�XL�XXL�AUTO�CREATING�UPDATING�ACTIVE�DELETE_SCHEDULED�DELETING�DELETED�FAILED� PROTECTED�WARNING�ALERTc K s ddddddddddddddddddddddddd d d �| _ ddd ddddddddddddddddddd d!d"d#d$d �| _d%| _d%| _d%| _d%| _d%| _d%| _d%| _d%| _ d%| _ d%| _d%| _d%| _ d%| _d%| _d%| _d%| _d%| _d%| _d%| _d%| _d%| _d%| _d%| _d%| _d%| _d%| _d%S )&a� Initializes a new ProtectedDatabase object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param id: The value to assign to the id property of this ProtectedDatabase. :type id: str :param display_name: The value to assign to the display_name property of this ProtectedDatabase. :type display_name: str :param compartment_id: The value to assign to the compartment_id property of this ProtectedDatabase. :type compartment_id: str :param db_unique_name: The value to assign to the db_unique_name property of this ProtectedDatabase. :type db_unique_name: str :param vpc_user_name: The value to assign to the vpc_user_name property of this ProtectedDatabase. :type vpc_user_name: str :param database_size: The value to assign to the database_size property of this ProtectedDatabase. Allowed values for this property are: "XS", "S", "M", "L", "XL", "XXL", "AUTO", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type database_size: str :param protection_policy_id: The value to assign to the protection_policy_id property of this ProtectedDatabase. :type protection_policy_id: str :param policy_locked_date_time: The value to assign to the policy_locked_date_time property of this ProtectedDatabase. :type policy_locked_date_time: str :param recovery_service_subnets: The value to assign to the recovery_service_subnets property of this ProtectedDatabase. :type recovery_service_subnets: list[oci.recovery.models.RecoveryServiceSubnetDetails] :param database_id: The value to assign to the database_id property of this ProtectedDatabase. :type database_id: str :param database_size_in_gbs: The value to assign to the database_size_in_gbs property of this ProtectedDatabase. :type database_size_in_gbs: int :param change_rate: The value to assign to the change_rate property of this ProtectedDatabase. :type change_rate: float :param compression_ratio: The value to assign to the compression_ratio property of this ProtectedDatabase. :type compression_ratio: float :param is_redo_logs_shipped: The value to assign to the is_redo_logs_shipped property of this ProtectedDatabase. :type is_redo_logs_shipped: bool :param time_created: The value to assign to the time_created property of this ProtectedDatabase. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this ProtectedDatabase. :type time_updated: datetime :param lifecycle_state: The value to assign to the lifecycle_state property of this ProtectedDatabase. Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETE_SCHEDULED", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param health: The value to assign to the health property of this ProtectedDatabase. Allowed values for this property are: "PROTECTED", "WARNING", "ALERT", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type health: str :param is_read_only_resource: The value to assign to the is_read_only_resource property of this ProtectedDatabase. :type is_read_only_resource: bool :param lifecycle_details: The value to assign to the lifecycle_details property of this ProtectedDatabase. :type lifecycle_details: str :param health_details: The value to assign to the health_details property of this ProtectedDatabase. :type health_details: str :param metrics: The value to assign to the metrics property of this ProtectedDatabase. :type metrics: oci.recovery.models.Metrics :param subscription_id: The value to assign to the subscription_id property of this ProtectedDatabase. :type subscription_id: str :param freeform_tags: The value to assign to the freeform_tags property of this ProtectedDatabase. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this ProtectedDatabase. :type defined_tags: dict(str, dict(str, object)) :param system_tags: The value to assign to the system_tags property of this ProtectedDatabase. :type system_tags: dict(str, dict(str, object)) �strz"list[RecoveryServiceSubnetDetails]�int�float�boolZdatetimeZMetricszdict(str, str)zdict(str, dict(str, object)))�id�display_name�compartment_id�db_unique_name� vpc_user_name� database_size�protection_policy_id�policy_locked_date_time�recovery_service_subnets�database_id�database_size_in_gbs�change_rate�compression_ratio�is_redo_logs_shipped�time_created�time_updated�lifecycle_state�health�is_read_only_resource�lifecycle_details�health_details�metrics�subscription_id� freeform_tags�defined_tags�system_tagsr ZdisplayNameZ compartmentIdZdbUniqueNameZvpcUserNameZdatabaseSizeZprotectionPolicyIdZpolicyLockedDateTimeZrecoveryServiceSubnetsZ databaseIdZdatabaseSizeInGBsZ changeRateZcompressionRatioZisRedoLogsShippedZtimeCreatedZtimeUpdatedZlifecycleStater- ZisReadOnlyResourceZlifecycleDetailsZ healthDetailsr1 ZsubscriptionIdZfreeformTagsZdefinedTagsZ systemTagsN)Z swagger_typesZ attribute_map�_id� _display_name�_compartment_id�_db_unique_name�_vpc_user_name�_database_size�_protection_policy_id�_policy_locked_date_time�_recovery_service_subnets�_database_id�_database_size_in_gbs�_change_rate�_compression_ratio�_is_redo_logs_shipped� _time_created� _time_updated�_lifecycle_state�_health�_is_read_only_resource�_lifecycle_details�_health_details�_metrics�_subscription_id�_freeform_tags� _defined_tags�_system_tags)�self�kwargs� rR �J/usr/lib/python3.9/site-packages/oci/recovery/models/protected_database.py�__init__Y s� u��zProtectedDatabase.__init__c C s | j S )z� **[Required]** Gets the id of this ProtectedDatabase. The OCID of the protected database. :return: The id of this ProtectedDatabase. :rtype: str �r6 �rP rR rR rS r " s zProtectedDatabase.idc C s || _ dS )z� Sets the id of this ProtectedDatabase. The OCID of the protected database. :param id: The id of this ProtectedDatabase. :type: str NrU )rP r rR rR rS r . s c C s | j S )a Gets the display_name of this ProtectedDatabase. The protected database name. You can change the displayName. Avoid entering confidential information. :return: The display_name of this ProtectedDatabase. :rtype: str �r7 rV rR rR rS r : s zProtectedDatabase.display_namec C s || _ dS )a Sets the display_name of this ProtectedDatabase. The protected database name. You can change the displayName. Avoid entering confidential information. :param display_name: The display_name of this ProtectedDatabase. :type: str NrW )rP r rR rR rS r F s c C s | j S )z� **[Required]** Gets the compartment_id of this ProtectedDatabase. The OCID of the compartment that contains the protected database. :return: The compartment_id of this ProtectedDatabase. :rtype: str �r8 rV rR rR rS r R s z ProtectedDatabase.compartment_idc C s || _ dS )z� Sets the compartment_id of this ProtectedDatabase. The OCID of the compartment that contains the protected database. :param compartment_id: The compartment_id of this ProtectedDatabase. :type: str NrX )rP r rR rR rS r ^ s c C s | j S )a **[Required]** Gets the db_unique_name of this ProtectedDatabase. The dbUniqueName for the protected database in Recovery Service. You cannot change the unique name. :return: The db_unique_name of this ProtectedDatabase. :rtype: str �r9 rV rR rR rS r j s z ProtectedDatabase.db_unique_namec C s || _ dS )a Sets the db_unique_name of this ProtectedDatabase. The dbUniqueName for the protected database in Recovery Service. You cannot change the unique name. :param db_unique_name: The db_unique_name of this ProtectedDatabase. :type: str NrY )rP r rR rR rS r v s c C s | j S )a' **[Required]** Gets the vpc_user_name of this ProtectedDatabase. The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service. :return: The vpc_user_name of this ProtectedDatabase. :rtype: str �r: rV rR rR rS r � s zProtectedDatabase.vpc_user_namec C s || _ dS )a$ Sets the vpc_user_name of this ProtectedDatabase. The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service. :param vpc_user_name: The vpc_user_name of this ProtectedDatabase. :type: str NrZ )rP r rR rR rS r � s c C s | j S )a **[Required]** Gets the database_size of this ProtectedDatabase. 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", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The database_size of this ProtectedDatabase. :rtype: str )r; rV rR rR rS r! � s zProtectedDatabase.database_sizec C s g d�}t ||�sd}|| _dS )aB Sets the database_size of this ProtectedDatabase. 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. :param database_size: The database_size of this ProtectedDatabase. :type: str )r r r r r r r �UNKNOWN_ENUM_VALUEN)r r; )rP r! �allowed_valuesrR rR rS r! � s c C s | j S )a **[Required]** Gets the protection_policy_id of this ProtectedDatabase. The OCID of the protection policy associated with the protected database. :return: The protection_policy_id of this ProtectedDatabase. :rtype: str �r<