o
    ɶdS                     @   s8   d dl mZmZmZ d dlmZ eG dd deZdS )    )formatted_flat_dictNONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc                   @   s$  e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
d Zedd Zejdd Zedd Zejdd Zedd Zejdd Zedd Zejdd Zedd Zejdd Zedd Zejdd Zedd Zejd d Zed!d" Zejd#d" Zed$d% Zejd&d% Zed'd( Zejd)d( Zed*d+ Zejd,d+ Zed-d. Zejd/d. Zed0d1 Zejd2d1 Zed3d4 Zejd5d4 Zed6d7 Zejd8d7 Zed9d: Zejd;d: Zed<d= Zejd>d= Zed?d@ Z e jdAd@ Z dBdC Z!dDdE Z"dFdG Z#dHS )IReplicaSummaryz&
    Summary of the read replica.
    CREATINGACTIVEINACTIVEUPDATINGDELETINGDELETEDNEEDS_ATTENTIONFAILEDc                 K   sX  i 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ddddi| _ i 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%dd&dd'i| _d(| _d(| _d(| _d(| _d(| _d(| _d(| _d(| _	d(| _
d(| _d(| _d(| _d(| _d(| _d(| _d(| _d(| _d(| _d(S ))aX  
        Initializes a new ReplicaSummary 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 ReplicaSummary.
        :type id: str

        :param db_system_id:
            The value to assign to the db_system_id property of this ReplicaSummary.
        :type db_system_id: str

        :param compartment_id:
            The value to assign to the compartment_id property of this ReplicaSummary.
        :type compartment_id: str

        :param display_name:
            The value to assign to the display_name property of this ReplicaSummary.
        :type display_name: str

        :param description:
            The value to assign to the description property of this ReplicaSummary.
        :type description: str

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this ReplicaSummary.
            Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "NEEDS_ATTENTION", "FAILED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

        :param lifecycle_details:
            The value to assign to the lifecycle_details property of this ReplicaSummary.
        :type lifecycle_details: str

        :param time_created:
            The value to assign to the time_created property of this ReplicaSummary.
        :type time_created: datetime

        :param time_updated:
            The value to assign to the time_updated property of this ReplicaSummary.
        :type time_updated: datetime

        :param mysql_version:
            The value to assign to the mysql_version property of this ReplicaSummary.
        :type mysql_version: str

        :param availability_domain:
            The value to assign to the availability_domain property of this ReplicaSummary.
        :type availability_domain: str

        :param fault_domain:
            The value to assign to the fault_domain property of this ReplicaSummary.
        :type fault_domain: str

        :param ip_address:
            The value to assign to the ip_address property of this ReplicaSummary.
        :type ip_address: str

        :param port:
            The value to assign to the port property of this ReplicaSummary.
        :type port: int

        :param port_x:
            The value to assign to the port_x property of this ReplicaSummary.
        :type port_x: int

        :param freeform_tags:
            The value to assign to the freeform_tags property of this ReplicaSummary.
        :type freeform_tags: dict(str, str)

        :param defined_tags:
            The value to assign to the defined_tags property of this ReplicaSummary.
        :type defined_tags: dict(str, dict(str, object))

        :param is_delete_protected:
            The value to assign to the is_delete_protected property of this ReplicaSummary.
        :type is_delete_protected: bool

        idstrdb_system_idcompartment_iddisplay_namedescriptionlifecycle_statelifecycle_detailstime_createddatetimetime_updatedmysql_versionavailability_domainfault_domain
ip_addressportintport_xfreeform_tagszdict(str, str)defined_tagszdict(str, dict(str, object))is_delete_protectedboolZ
dbSystemIdZcompartmentIdZdisplayNameZlifecycleStateZlifecycleDetailsZtimeCreatedZtimeUpdatedZmysqlVersionZavailabilityDomainZfaultDomainZ	ipAddressZportXZfreeformTagsZdefinedTagsZisDeleteProtectedN)Zswagger_typesZattribute_map_id_db_system_id_compartment_id_display_name_description_lifecycle_state_lifecycle_details_time_created_time_updated_mysql_version_availability_domain_fault_domain_ip_address_port_port_x_freeform_tags_defined_tags_is_delete_protected)selfkwargs r9   Dusr/lib/python3.10/site-packages/oci/mysql/models/replica_summary.py__init__2   s   P	
	

zReplicaSummary.__init__c                 C      | j S )z
        **[Required]** Gets the id of this ReplicaSummary.
        The OCID of the read replica.


        :return: The id of this ReplicaSummary.
        :rtype: str
        r%   r7   r9   r9   r:   r         
zReplicaSummary.idc                 C   
   || _ dS )z
        Sets the id of this ReplicaSummary.
        The OCID of the read replica.


        :param id: The id of this ReplicaSummary.
        :type: str
        Nr=   )r7   r   r9   r9   r:   r         

c                 C   r<   )z
        **[Required]** Gets the db_system_id of this ReplicaSummary.
        The OCID of the DB System the read replica is associated with.


        :return: The db_system_id of this ReplicaSummary.
        :rtype: str
        r&   r>   r9   r9   r:   r      r?   zReplicaSummary.db_system_idc                 C   r@   )z
        Sets the db_system_id of this ReplicaSummary.
        The OCID of the DB System the read replica is associated with.


        :param db_system_id: The db_system_id of this ReplicaSummary.
        :type: str
        NrB   )r7   r   r9   r9   r:   r      rA   c                 C   r<   )z
        **[Required]** Gets the compartment_id of this ReplicaSummary.
        The OCID of the compartment that contains the read replica.


        :return: The compartment_id of this ReplicaSummary.
        :rtype: str
        r'   r>   r9   r9   r:   r      r?   zReplicaSummary.compartment_idc                 C   r@   )z
        Sets the compartment_id of this ReplicaSummary.
        The OCID of the compartment that contains the read replica.


        :param compartment_id: The compartment_id of this ReplicaSummary.
        :type: str
        NrC   )r7   r   r9   r9   r:   r      rA   c                 C   r<   )z
        **[Required]** Gets the display_name of this ReplicaSummary.
        The user-friendly name for the read replica. It does not have to be unique.


        :return: The display_name of this ReplicaSummary.
        :rtype: str
        r(   r>   r9   r9   r:   r     r?   zReplicaSummary.display_namec                 C   r@   )z
        Sets the display_name of this ReplicaSummary.
        The user-friendly name for the read replica. It does not have to be unique.


        :param display_name: The display_name of this ReplicaSummary.
        :type: str
        NrD   )r7   r   r9   r9   r:   r     rA   c                 C   r<   )z
        Gets the description of this ReplicaSummary.
        User provided description of the read replica.


        :return: The description of this ReplicaSummary.
        :rtype: str
        r)   r>   r9   r9   r:   r     r?   zReplicaSummary.descriptionc                 C   r@   )z
        Sets the description of this ReplicaSummary.
        User provided description of the read replica.


        :param description: The description of this ReplicaSummary.
        :type: str
        NrE   )r7   r   r9   r9   r:   r   +  rA   c                 C   r<   )a  
        **[Required]** Gets the lifecycle_state of this ReplicaSummary.
        The state of the read replica.

        Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "NEEDS_ATTENTION", "FAILED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lifecycle_state of this ReplicaSummary.
        :rtype: str
        )r*   r>   r9   r9   r:   r   7     zReplicaSummary.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )z
        Sets the lifecycle_state of this ReplicaSummary.
        The state of the read replica.


        :param lifecycle_state: The lifecycle_state of this ReplicaSummary.
        :type: str
        )r   r   r	   r
   r   r   r   r   ZUNKNOWN_ENUM_VALUEN)r   r*   )r7   r   Zallowed_valuesr9   r9   r:   r   F  s   


c                 C   r<   )z
        Gets the lifecycle_details of this ReplicaSummary.
        A message describing the state of the read replica.


        :return: The lifecycle_details of this ReplicaSummary.
        :rtype: str
        r+   r>   r9   r9   r:   r   U  r?   z ReplicaSummary.lifecycle_detailsc                 C   r@   )z
        Sets the lifecycle_details of this ReplicaSummary.
        A message describing the state of the read replica.


        :param lifecycle_details: The lifecycle_details of this ReplicaSummary.
        :type: str
        NrG   )r7   r   r9   r9   r:   r   a  rA   c                 C   r<   )a(  
        **[Required]** Gets the time_created of this ReplicaSummary.
        The date and time the read replica was created, as described by `RFC 3339`__.

        __ https://tools.ietf.org/rfc/rfc3339


        :return: The time_created of this ReplicaSummary.
        :rtype: datetime
        r,   r>   r9   r9   r:   r   m     zReplicaSummary.time_createdc                 C   r@   )a$  
        Sets the time_created of this ReplicaSummary.
        The date and time the read replica was created, as described by `RFC 3339`__.

        __ https://tools.ietf.org/rfc/rfc3339


        :param time_created: The time_created of this ReplicaSummary.
        :type: datetime
        NrH   )r7   r   r9   r9   r:   r   {     
c                 C   r<   )a  
        Gets the time_updated of this ReplicaSummary.
        The time the read replica was last updated, as described by `RFC 3339`__.

        __ https://tools.ietf.org/rfc/rfc3339


        :return: The time_updated of this ReplicaSummary.
        :rtype: datetime
        r-   r>   r9   r9   r:   r     rI   zReplicaSummary.time_updatedc                 C   r@   )a   
        Sets the time_updated of this ReplicaSummary.
        The time the read replica was last updated, as described by `RFC 3339`__.

        __ https://tools.ietf.org/rfc/rfc3339


        :param time_updated: The time_updated of this ReplicaSummary.
        :type: datetime
        NrK   )r7   r   r9   r9   r:   r     rJ   c                 C   r<   )z
        **[Required]** Gets the mysql_version of this ReplicaSummary.
        The MySQL version used by the read replica.


        :return: The mysql_version of this ReplicaSummary.
        :rtype: str
        r.   r>   r9   r9   r:   r     r?   zReplicaSummary.mysql_versionc                 C   r@   )z
        Sets the mysql_version of this ReplicaSummary.
        The MySQL version used by the read replica.


        :param mysql_version: The mysql_version of this ReplicaSummary.
        :type: str
        NrL   )r7   r   r9   r9   r:   r     rA   c                 C   r<   )z
        Gets the availability_domain of this ReplicaSummary.
        The name of the Availability Domain the read replica is located in.


        :return: The availability_domain of this ReplicaSummary.
        :rtype: str
        r/   r>   r9   r9   r:   r     r?   z"ReplicaSummary.availability_domainc                 C   r@   )z
        Sets the availability_domain of this ReplicaSummary.
        The name of the Availability Domain the read replica is located in.


        :param availability_domain: The availability_domain of this ReplicaSummary.
        :type: str
        NrM   )r7   r   r9   r9   r:   r     rA   c                 C   r<   )z
        Gets the fault_domain of this ReplicaSummary.
        The name of the Fault Domain the read replica is located in.


        :return: The fault_domain of this ReplicaSummary.
        :rtype: str
        r0   r>   r9   r9   r:   r     r?   zReplicaSummary.fault_domainc                 C   r@   )z
        Sets the fault_domain of this ReplicaSummary.
        The name of the Fault Domain the read replica is located in.


        :param fault_domain: The fault_domain of this ReplicaSummary.
        :type: str
        NrN   )r7   r   r9   r9   r:   r     rA   c                 C   r<   )z
        **[Required]** Gets the ip_address of this ReplicaSummary.
        The IP address the read replica is configured to listen on.


        :return: The ip_address of this ReplicaSummary.
        :rtype: str
        r1   r>   r9   r9   r:   r     r?   zReplicaSummary.ip_addressc                 C   r@   )z
        Sets the ip_address of this ReplicaSummary.
        The IP address the read replica is configured to listen on.


        :param ip_address: The ip_address of this ReplicaSummary.
        :type: str
        NrO   )r7   r   r9   r9   r:   r     rA   c                 C   r<   )z
        **[Required]** Gets the port of this ReplicaSummary.
        The port the read replica is configured to listen on.


        :return: The port of this ReplicaSummary.
        :rtype: int
        r2   r>   r9   r9   r:   r     r?   zReplicaSummary.portc                 C   r@   )z
        Sets the port of this ReplicaSummary.
        The port the read replica is configured to listen on.


        :param port: The port of this ReplicaSummary.
        :type: int
        NrP   )r7   r   r9   r9   r:   r     rA   c                 C   r<   )a  
        **[Required]** Gets the port_x of this ReplicaSummary.
        The TCP network port on which X Plugin listens for connections. This is the X Plugin equivalent of port.


        :return: The port_x of this ReplicaSummary.
        :rtype: int
        r3   r>   r9   r9   r:   r      r?   zReplicaSummary.port_xc                 C   r@   )z
        Sets the port_x of this ReplicaSummary.
        The TCP network port on which X Plugin listens for connections. This is the X Plugin equivalent of port.


        :param port_x: The port_x of this ReplicaSummary.
        :type: int
        NrQ   )r7   r    r9   r9   r:   r    )  rA   c                 C   r<   )aC  
        Gets the freeform_tags of this ReplicaSummary.
        Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
        Example: `{"bar-key": "value"}`


        :return: The freeform_tags of this ReplicaSummary.
        :rtype: dict(str, str)
        r4   r>   r9   r9   r:   r!   5     zReplicaSummary.freeform_tagsc                 C   r@   )aO  
        Sets the freeform_tags of this ReplicaSummary.
        Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
        Example: `{"bar-key": "value"}`


        :param freeform_tags: The freeform_tags of this ReplicaSummary.
        :type: dict(str, str)
        NrR   )r7   r!   r9   r9   r:   r!   B     
c                 C   r<   )a=  
        Gets the defined_tags of this ReplicaSummary.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :return: The defined_tags of this ReplicaSummary.
        :rtype: dict(str, dict(str, object))
        r5   r>   r9   r9   r:   r"   O  rS   zReplicaSummary.defined_tagsc                 C   r@   )aH  
        Sets the defined_tags of this ReplicaSummary.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :param defined_tags: The defined_tags of this ReplicaSummary.
        :type: dict(str, dict(str, object))
        NrU   )r7   r"   r9   r9   r:   r"   \  rT   c                 C   r<   )a  
        Gets the is_delete_protected of this ReplicaSummary.
        Specifies whether the read replica can be deleted. Set to true to prevent deletion, false (default) to allow.
        Note that if a read replica is delete protected it also prevents the entire DB System from being deleted. If
        the DB System is delete protected, read replicas can still be deleted individually if they are not delete
        protected themselves.


        :return: The is_delete_protected of this ReplicaSummary.
        :rtype: bool
        r6   r>   r9   r9   r:   r#   i  rF   z"ReplicaSummary.is_delete_protectedc                 C   r@   )a+  
        Sets the is_delete_protected of this ReplicaSummary.
        Specifies whether the read replica can be deleted. Set to true to prevent deletion, false (default) to allow.
        Note that if a read replica is delete protected it also prevents the entire DB System from being deleted. If
        the DB System is delete protected, read replicas can still be deleted individually if they are not delete
        protected themselves.


        :param is_delete_protected: The is_delete_protected of this ReplicaSummary.
        :type: bool
        NrV   )r7   r#   r9   r9   r:   r#   x  s   
c                 C   s   t | S N)r   r>   r9   r9   r:   __repr__  s   zReplicaSummary.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r7   otherr9   r9   r:   __eq__  s   zReplicaSummary.__eq__c                 C   s
   | |k S rW   r9   rZ   r9   r9   r:   __ne__  s   
zReplicaSummary.__ne__N)$__name__
__module____qualname____doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_INACTIVEZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_NEEDS_ATTENTIONZLIFECYCLE_STATE_FAILEDr;   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   rX   r\   r]   r9   r9   r9   r:   r      s     



































r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r9   r9   r9   r:   <module>   s   