ruạṛ
a ���f�I � @ 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 d � Zedd� �Z ed d� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �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/� �Zejd0d/� �Zd1d2� Zd3d4� Zd5d6� Zd7S )8�ExternalDatabaseConnectora6 An Oracle Cloud Infrastructure resource used to connect to an external Oracle Database. This resource stores the database connection string, user credentials, and related details that allow you to manage your external database using the Oracle Cloud Infrastructure Console and API interfaces. �PROVISIONING� AVAILABLE�UPDATING�TERMINATING� TERMINATED�FAILED�MACSc K s� ddddddddddddd�| _ dddd d ddd ddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ dS )ay Initializes a new ExternalDatabaseConnector 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.models.ExternalMacsConnector` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param compartment_id: The value to assign to the compartment_id property of this ExternalDatabaseConnector. :type compartment_id: str :param freeform_tags: The value to assign to the freeform_tags property of this ExternalDatabaseConnector. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this ExternalDatabaseConnector. :type defined_tags: dict(str, dict(str, object)) :param display_name: The value to assign to the display_name property of this ExternalDatabaseConnector. :type display_name: str :param id: The value to assign to the id property of this ExternalDatabaseConnector. :type id: str :param lifecycle_state: The value to assign to the lifecycle_state property of this ExternalDatabaseConnector. Allowed values for this property are: "PROVISIONING", "AVAILABLE", "UPDATING", "TERMINATING", "TERMINATED", "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 ExternalDatabaseConnector. :type lifecycle_details: str :param time_created: The value to assign to the time_created property of this ExternalDatabaseConnector. :type time_created: datetime :param connector_type: The value to assign to the connector_type property of this ExternalDatabaseConnector. Allowed values for this property are: "MACS", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type connector_type: str :param external_database_id: The value to assign to the external_database_id property of this ExternalDatabaseConnector. :type external_database_id: str :param connection_status: The value to assign to the connection_status property of this ExternalDatabaseConnector. :type connection_status: str :param time_connection_status_last_updated: The value to assign to the time_connection_status_last_updated property of this ExternalDatabaseConnector. :type time_connection_status_last_updated: datetime �strzdict(str, str)zdict(str, dict(str, object))Zdatetime)�compartment_id� freeform_tags�defined_tags�display_name�id�lifecycle_state�lifecycle_details�time_created�connector_type�external_database_id�connection_status�#time_connection_status_last_updatedZ compartmentIdZfreeformTagsZdefinedTagsZdisplayNamer ZlifecycleStateZlifecycleDetailsZtimeCreated� connectorTypeZexternalDatabaseIdZconnectionStatusZtimeConnectionStatusLastUpdatedN)Z swagger_typesZ attribute_map�_compartment_id�_freeform_tags� _defined_tags� _display_name�_id�_lifecycle_state�_lifecycle_details� _time_created�_connector_type�_external_database_id�_connection_status�$_time_connection_status_last_updated)�self�kwargs� r* �S/usr/lib/python3.9/site-packages/oci/database/models/external_database_connector.py�__init__0 sL ?��z"ExternalDatabaseConnector.__init__c C s | d }|dkrdS 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 ZExternalMacsConnectorr Nr* )Zobject_dictionary�typer* r* r+ �get_subtype� s z%ExternalDatabaseConnector.get_subtypec C s | j S )a4 **[Required]** Gets the compartment_id of this ExternalDatabaseConnector. The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The compartment_id of this ExternalDatabaseConnector. :rtype: str �r �r( r* r* r+ r � s z(ExternalDatabaseConnector.compartment_idc C s || _ dS )a2 Sets the compartment_id of this ExternalDatabaseConnector. The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param compartment_id: The compartment_id of this ExternalDatabaseConnector. :type: str Nr/ )r( r r* r* r+ r � s c C s | j S )a� Gets the freeform_tags of this ExternalDatabaseConnector. 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"}` __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm :return: The freeform_tags of this ExternalDatabaseConnector. :rtype: dict(str, str) �r r0 r* r* r+ r � s z'ExternalDatabaseConnector.freeform_tagsc C s || _ dS )a� Sets the freeform_tags of this ExternalDatabaseConnector. 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"}` __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm :param freeform_tags: The freeform_tags of this ExternalDatabaseConnector. :type: dict(str, str) Nr1 )r( r r* r* r+ r � s c C s | j S )a� Gets the defined_tags of this ExternalDatabaseConnector. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see `Resource Tags`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm :return: The defined_tags of this ExternalDatabaseConnector. :rtype: dict(str, dict(str, object)) �r r0 r* r* r+ r � s z&ExternalDatabaseConnector.defined_tagsc C s || _ dS )a� Sets the defined_tags of this ExternalDatabaseConnector. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see `Resource Tags`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm :param defined_tags: The defined_tags of this ExternalDatabaseConnector. :type: dict(str, dict(str, object)) Nr2 )r( r r* r* r+ r � s c C s | j S )aD **[Required]** Gets the display_name of this ExternalDatabaseConnector. The user-friendly name for the :func:`create_external_database_connector_details`. The name does not have to be unique. :return: The display_name of this ExternalDatabaseConnector. :rtype: str �r r0 r* r* r+ r s z&ExternalDatabaseConnector.display_namec C s || _ dS )a@ Sets the display_name of this ExternalDatabaseConnector. The user-friendly name for the :func:`create_external_database_connector_details`. The name does not have to be unique. :param display_name: The display_name of this ExternalDatabaseConnector. :type: str Nr3 )r( r r* r* r+ r s c C s | j S )aK **[Required]** Gets the id of this ExternalDatabaseConnector. The `OCID`__ of the :func:`create_external_database_connector_details`. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The id of this ExternalDatabaseConnector. :rtype: str �r r0 r* r* r+ r s zExternalDatabaseConnector.idc C s || _ dS )a= Sets the id of this ExternalDatabaseConnector. The `OCID`__ of the :func:`create_external_database_connector_details`. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param id: The id of this ExternalDatabaseConnector. :type: str Nr4 )r( r r* r* r+ r - s c C s | j S )a� **[Required]** Gets the lifecycle_state of this ExternalDatabaseConnector. The current lifecycle state of the external database connector resource. Allowed values for this property are: "PROVISIONING", "AVAILABLE", "UPDATING", "TERMINATING", "TERMINATED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this ExternalDatabaseConnector. :rtype: str )r! r0 r* r* r+ r < s z)ExternalDatabaseConnector.lifecycle_statec C s g d�}t ||�sd}|| _dS )a Sets the lifecycle_state of this ExternalDatabaseConnector. The current lifecycle state of the external database connector resource. :param lifecycle_state: The lifecycle_state of this ExternalDatabaseConnector. :type: str )r r r r r r �UNKNOWN_ENUM_VALUEN)r r! )r( r �allowed_valuesr* r* r+ r K s c C s | j S )z� Gets the lifecycle_details of this ExternalDatabaseConnector. Additional information about the current lifecycle state. :return: The lifecycle_details of this ExternalDatabaseConnector. :rtype: str �r"