ruạṛ
a ���f�o � @ 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 @ sf e Zd ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dZd ZdZdZdZdd� Zedd� �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*dNdO� Z+dPdQ� Z,dRdS� Z-dTS )U�DatabaseInsightSummaryz1 Summary of a database insight resource. �AUTONOMOUS_DATABASE�EM_MANAGED_EXTERNAL_DATABASE�MACS_MANAGED_EXTERNAL_DATABASE�PE_COMANAGED_DATABASE�MDS_MYSQL_DATABASE_SYSTEM�DISABLED�ENABLED� TERMINATED�CREATING�UPDATING�ACTIVE�DELETING�DELETED�FAILED�NEEDS_ATTENTIONc K s� dddddddddddddddddddd�| _ dd d ddd dddddddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _d| _d| _d| _dS )a: Initializes a new DatabaseInsightSummary 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.opsi.models.MacsManagedExternalDatabaseInsightSummary` * :class:`~oci.opsi.models.AutonomousDatabaseInsightSummary` * :class:`~oci.opsi.models.MdsMySqlDatabaseInsightSummary` * :class:`~oci.opsi.models.PeComanagedDatabaseInsightSummary` * :class:`~oci.opsi.models.EmManagedExternalDatabaseInsightSummary` 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 DatabaseInsightSummary. :type id: str :param database_id: The value to assign to the database_id property of this DatabaseInsightSummary. :type database_id: str :param compartment_id: The value to assign to the compartment_id property of this DatabaseInsightSummary. :type compartment_id: str :param database_name: The value to assign to the database_name property of this DatabaseInsightSummary. :type database_name: str :param database_display_name: The value to assign to the database_display_name property of this DatabaseInsightSummary. :type database_display_name: str :param database_type: The value to assign to the database_type property of this DatabaseInsightSummary. :type database_type: str :param database_version: The value to assign to the database_version property of this DatabaseInsightSummary. :type database_version: str :param database_host_names: The value to assign to the database_host_names property of this DatabaseInsightSummary. :type database_host_names: list[str] :param freeform_tags: The value to assign to the freeform_tags property of this DatabaseInsightSummary. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this DatabaseInsightSummary. :type defined_tags: dict(str, dict(str, object)) :param system_tags: The value to assign to the system_tags property of this DatabaseInsightSummary. :type system_tags: dict(str, dict(str, object)) :param entity_source: The value to assign to the entity_source property of this DatabaseInsightSummary. Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type entity_source: str :param processor_count: The value to assign to the processor_count property of this DatabaseInsightSummary. :type processor_count: int :param status: The value to assign to the status property of this DatabaseInsightSummary. Allowed values for this property are: "DISABLED", "ENABLED", "TERMINATED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type status: str :param time_created: The value to assign to the time_created property of this DatabaseInsightSummary. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this DatabaseInsightSummary. :type time_updated: datetime :param lifecycle_state: The value to assign to the lifecycle_state property of this DatabaseInsightSummary. Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "NEEDS_ATTENTION", '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 DatabaseInsightSummary. :type lifecycle_details: str :param database_connection_status_details: The value to assign to the database_connection_status_details property of this DatabaseInsightSummary. :type database_connection_status_details: str �strz list[str]zdict(str, str)zdict(str, dict(str, object))�intZdatetime)�id�database_id�compartment_id� database_name�database_display_name� database_type�database_version�database_host_names� freeform_tags�defined_tags�system_tags� entity_source�processor_count�status�time_created�time_updated�lifecycle_state�lifecycle_details�"database_connection_status_detailsr Z databaseIdZ compartmentIdZdatabaseNameZdatabaseDisplayNameZdatabaseTypeZdatabaseVersionZdatabaseHostNamesZfreeformTagsZdefinedTagsZ systemTags�entitySourceZprocessorCountr% ZtimeCreatedZtimeUpdatedZlifecycleStateZlifecycleDetailsZdatabaseConnectionStatusDetailsN)Z swagger_typesZ attribute_map�_id�_database_id�_compartment_id�_database_name�_database_display_name�_database_type�_database_version�_database_host_names�_freeform_tags� _defined_tags�_system_tags�_entity_source�_processor_count�_status� _time_created� _time_updated�_lifecycle_state�_lifecycle_details�#_database_connection_status_details)�self�kwargs� rA �L/usr/lib/python3.9/site-packages/oci/opsi/models/database_insight_summary.py�__init__N sv a��zDatabaseInsightSummary.__init__c C sL | d }|dkrdS |dkr dS |dkr,dS |dkr8d S |d krDdS dS d S )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 Z)MacsManagedExternalDatabaseInsightSummaryr Z AutonomousDatabaseInsightSummaryr ZMdsMySqlDatabaseInsightSummaryr Z!PeComanagedDatabaseInsightSummaryr Z'EmManagedExternalDatabaseInsightSummaryr NrA )Zobject_dictionary�typerA rA rB �get_subtype� s z"DatabaseInsightSummary.get_subtypec C s | j S )a) **[Required]** Gets the id of this DatabaseInsightSummary. The `OCID`__ of the database insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The id of this DatabaseInsightSummary. :rtype: str �r, �r? rA rA rB r s zDatabaseInsightSummary.idc C s || _ dS )a Sets the id of this DatabaseInsightSummary. The `OCID`__ of the database insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param id: The id of this DatabaseInsightSummary. :type: str NrF )r? r rA rA rB r s c C s | j S )a* **[Required]** Gets the database_id of this DatabaseInsightSummary. The `OCID`__ of the database. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The database_id of this DatabaseInsightSummary. :rtype: str �r- rG rA rA rB r # s z"DatabaseInsightSummary.database_idc C s || _ dS )a% Sets the database_id of this DatabaseInsightSummary. The `OCID`__ of the database. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param database_id: The database_id of this DatabaseInsightSummary. :type: str NrH )r? r rA rA rB r 1 s c C s | j S )a$ Gets the compartment_id of this DatabaseInsightSummary. The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The compartment_id of this DatabaseInsightSummary. :rtype: str �r. rG rA rA rB r ? s z%DatabaseInsightSummary.compartment_idc C s || _ dS )a1 Sets the compartment_id of this DatabaseInsightSummary. The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param compartment_id: The compartment_id of this DatabaseInsightSummary. :type: str NrI )r? r rA rA rB r M s c C s | j S )z� Gets the database_name of this DatabaseInsightSummary. The database name. The database name is unique within the tenancy. :return: The database_name of this DatabaseInsightSummary. :rtype: str �r/ rG rA rA rB r [ s z$DatabaseInsightSummary.database_namec C s || _ dS )z� Sets the database_name of this DatabaseInsightSummary. The database name. The database name is unique within the tenancy. :param database_name: The database_name of this DatabaseInsightSummary. :type: str NrJ )r? r rA rA rB r g s c C s | j S )a Gets the database_display_name of this DatabaseInsightSummary. The user-friendly name for the database. The name does not have to be unique. :return: The database_display_name of this DatabaseInsightSummary. :rtype: str �r0 rG rA rA rB r s s z,DatabaseInsightSummary.database_display_namec C s || _ dS )a Sets the database_display_name of this DatabaseInsightSummary. The user-friendly name for the database. The name does not have to be unique. :param database_display_name: The database_display_name of this DatabaseInsightSummary. :type: str NrK )r? r rA rA rB r s c C s | j S )z� Gets the database_type of this DatabaseInsightSummary. Ops Insights internal representation of the database type. :return: The database_type of this DatabaseInsightSummary. :rtype: str �r1 rG rA rA rB r � s z$DatabaseInsightSummary.database_typec C s || _ dS )z� Sets the database_type of this DatabaseInsightSummary. Ops Insights internal representation of the database type. :param database_type: The database_type of this DatabaseInsightSummary. :type: str NrL )r? r rA rA rB r � s c C s | j S )z� Gets the database_version of this DatabaseInsightSummary. The version of the database. :return: The database_version of this DatabaseInsightSummary. :rtype: str �r2 rG rA rA rB r � s z'DatabaseInsightSummary.database_versionc C s || _ dS )z� Sets the database_version of this DatabaseInsightSummary. The version of the database. :param database_version: The database_version of this DatabaseInsightSummary. :type: str NrM )r? r rA rA rB r � s c C s | j S )z� Gets the database_host_names of this DatabaseInsightSummary. The hostnames for the database. :return: The database_host_names of this DatabaseInsightSummary. :rtype: list[str] �r3 rG rA rA rB r � s z*DatabaseInsightSummary.database_host_namesc C s || _ dS )z� Sets the database_host_names of this DatabaseInsightSummary. The hostnames for the database. :param database_host_names: The database_host_names of this DatabaseInsightSummary. :type: list[str] NrN )r? r rA rA rB r � s c C s | j S )aS Gets the freeform_tags of this DatabaseInsightSummary. 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 DatabaseInsightSummary. :rtype: dict(str, str) �r4 rG rA rA rB r � s z$DatabaseInsightSummary.freeform_tagsc C s || _ dS )a_ Sets the freeform_tags of this DatabaseInsightSummary. 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 DatabaseInsightSummary. :type: dict(str, str) NrO )r? r rA rA rB r � s c C s | j S )aM Gets the defined_tags of this DatabaseInsightSummary. 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 DatabaseInsightSummary. :rtype: dict(str, dict(str, object)) �r5 rG rA rA rB r! � s z#DatabaseInsightSummary.defined_tagsc C s || _ dS )aX Sets the defined_tags of this DatabaseInsightSummary. 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 DatabaseInsightSummary. :type: dict(str, dict(str, object)) NrP )r? r! rA rA rB r! � s c C s | j S )aQ Gets the system_tags of this DatabaseInsightSummary. System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` :return: The system_tags of this DatabaseInsightSummary. :rtype: dict(str, dict(str, object)) �r6 rG rA rA rB r"