ruạṛ
a ���f�N � @ 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 ZdZdZdZdd� Zedd� �Ze dd � �Z e jd d � �Z e dd� �Zejd d� �Ze dd� �Z e jdd� �Z e dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze d d!� �Zejd"d!� �Ze d#d$� �Zejd%d$� �Ze d&d'� �Zejd(d'� �Ze d)d*� �Zejd+d*� �Ze d,d-� �Zejd.d-� �Ze d/d0� �Zejd1d0� �Ze d2d3� �Zejd4d3� �Ze d5d6� �Zejd7d6� �Ze d8d9� �Zejd:d9� �Zd;d<� Zd=d>� Zd?d@� ZdAS )B�ConnectionSummaryzQ Represents the parameters common for all connections in list operation. �MYSQL�ORACLEc K s� dddddddddddddddddd�| _ dd d ddd dddddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _d| _dS )a Initializes a new ConnectionSummary object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class: * :class:`~oci.database_migration.models.OracleConnectionSummary` * :class:`~oci.database_migration.models.MysqlConnectionSummary` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param connection_type: The value to assign to the connection_type property of this ConnectionSummary. Allowed values for this property are: "MYSQL", "ORACLE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type connection_type: str :param id: The value to assign to the id property of this ConnectionSummary. :type id: str :param display_name: The value to assign to the display_name property of this ConnectionSummary. :type display_name: str :param description: The value to assign to the description property of this ConnectionSummary. :type description: str :param compartment_id: The value to assign to the compartment_id property of this ConnectionSummary. :type compartment_id: str :param freeform_tags: The value to assign to the freeform_tags property of this ConnectionSummary. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this ConnectionSummary. :type defined_tags: dict(str, dict(str, object)) :param system_tags: The value to assign to the system_tags property of this ConnectionSummary. :type system_tags: dict(str, dict(str, object)) :param lifecycle_state: The value to assign to the lifecycle_state property of this ConnectionSummary. :type lifecycle_state: str :param lifecycle_details: The value to assign to the lifecycle_details property of this ConnectionSummary. :type lifecycle_details: str :param time_created: The value to assign to the time_created property of this ConnectionSummary. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this ConnectionSummary. :type time_updated: datetime :param vault_id: The value to assign to the vault_id property of this ConnectionSummary. :type vault_id: str :param key_id: The value to assign to the key_id property of this ConnectionSummary. :type key_id: str :param subnet_id: The value to assign to the subnet_id property of this ConnectionSummary. :type subnet_id: str :param ingress_ips: The value to assign to the ingress_ips property of this ConnectionSummary. :type ingress_ips: list[oci.database_migration.models.IngressIpDetails] :param nsg_ids: The value to assign to the nsg_ids property of this ConnectionSummary. :type nsg_ids: list[str] �strzdict(str, str)zdict(str, dict(str, object))Zdatetimezlist[IngressIpDetails]z list[str])�connection_type�id�display_name�description�compartment_id� freeform_tags�defined_tags�system_tags�lifecycle_state�lifecycle_details�time_created�time_updated�vault_id�key_id� subnet_id�ingress_ips�nsg_ids�connectionTyper ZdisplayNamer Z compartmentIdZfreeformTagsZdefinedTagsZ systemTagsZlifecycleStateZlifecycleDetailsZtimeCreatedZtimeUpdatedZvaultIdZkeyIdZsubnetIdZ ingressIpsZnsgIdsN)Z swagger_typesZ attribute_map�_connection_type�_id� _display_name�_description�_compartment_id�_freeform_tags� _defined_tags�_system_tags�_lifecycle_state�_lifecycle_details� _time_created� _time_updated� _vault_id�_key_id� _subnet_id�_ingress_ips�_nsg_ids)�self�kwargs� r/ �T/usr/lib/python3.9/site-packages/oci/database_migration/models/connection_summary.py�__init__ sj R��zConnectionSummary.__init__c C s( | d }|dkrdS |dkr dS dS dS )z� Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. r r ZOracleConnectionSummaryr ZMysqlConnectionSummaryr Nr/ )Zobject_dictionary�typer/ r/ r0 �get_subtype� s zConnectionSummary.get_subtypec C s | j S )a� **[Required]** Gets the connection_type of this ConnectionSummary. Defines the type of connection. For example, ORACLE. Allowed values for this property are: "MYSQL", "ORACLE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The connection_type of this ConnectionSummary. :rtype: str )r �r- r/ r/ r0 r � s z!ConnectionSummary.connection_typec C s ddg}t ||�sd}|| _dS )z� Sets the connection_type of this ConnectionSummary. Defines the type of connection. For example, ORACLE. :param connection_type: The connection_type of this ConnectionSummary. :type: str r r ZUNKNOWN_ENUM_VALUEN)r r )r- r Zallowed_valuesr/ r/ r0 r � s c C s | j S )z� **[Required]** Gets the id of this ConnectionSummary. The OCID of the connection being referenced. :return: The id of this ConnectionSummary. :rtype: str �r r4 r/ r/ r0 r � s zConnectionSummary.idc C s || _ dS )z� Sets the id of this ConnectionSummary. The OCID of the connection being referenced. :param id: The id of this ConnectionSummary. :type: str Nr5 )r- r r/ r/ r0 r � s c C s | j S )a$ **[Required]** Gets the display_name of this ConnectionSummary. A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. :return: The display_name of this ConnectionSummary. :rtype: str �r r4 r/ r/ r0 r � s zConnectionSummary.display_namec C s || _ dS )a Sets the display_name of this ConnectionSummary. A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. :param display_name: The display_name of this ConnectionSummary. :type: str Nr6 )r- r r/ r/ r0 r � s c C s | j S )a Gets the description of this ConnectionSummary. A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering confidential information. :return: The description of this ConnectionSummary. :rtype: str �r r4 r/ r/ r0 r s zConnectionSummary.descriptionc C s || _ dS )a$ Sets the description of this ConnectionSummary. A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering confidential information. :param description: The description of this ConnectionSummary. :type: str Nr7 )r- r r/ r/ r0 r s c C s | j S )z� **[Required]** Gets the compartment_id of this ConnectionSummary. The OCID of the compartment. :return: The compartment_id of this ConnectionSummary. :rtype: str �r r4 r/ r/ r0 r s z ConnectionSummary.compartment_idc C s || _ dS )z� Sets the compartment_id of this ConnectionSummary. The OCID of the compartment. :param compartment_id: The compartment_id of this ConnectionSummary. :type: str Nr8 )r- r r/ r/ r0 r + s c C s | j S )aq Gets the freeform_tags of this ConnectionSummary. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"} :return: The freeform_tags of this ConnectionSummary. :rtype: dict(str, str) �r! r4 r/ r/ r0 r 7 s zConnectionSummary.freeform_tagsc C s || _ dS )a} Sets the freeform_tags of this ConnectionSummary. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"} :param freeform_tags: The freeform_tags of this ConnectionSummary. :type: dict(str, str) Nr9 )r- r r/ r/ r0 r D s c C s | j S )aC Gets the defined_tags of this ConnectionSummary. 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 ConnectionSummary. :rtype: dict(str, dict(str, object)) �r"