o
    ɶdV                     @   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
ZdZdZdZdZdZdd Ze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/d0 Z e jd1d0 Z ed2d3 Z!e!jd4d3 Z!ed5d6 Z"e"jd7d6 Z"ed8d9 Z#e#jd:d9 Z#ed;d< Z$e$jd=d< Z$ed>d? Z%e%jd@d? Z%dAdB Z&dCdD Z'dEdF Z(dGS )HHostInsightz 
    Host insight resource.
    MACS_MANAGED_EXTERNAL_HOSTEM_MANAGED_EXTERNAL_HOSTMACS_MANAGED_CLOUD_HOSTPE_COMANAGED_HOSTDISABLEDENABLED
TERMINATEDCREATINGUPDATINGACTIVEDELETINGDELETEDFAILEDNEEDS_ATTENTIONc                 K   s   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| _d| _d| _d| _d| _	d| _
d| _d| _d| _d| _d| _d| _dS )a  
        Initializes a new HostInsight 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.MacsManagedCloudHostInsight`
        * :class:`~oci.opsi.models.EmManagedExternalHostInsight`
        * :class:`~oci.opsi.models.PeComanagedHostInsight`
        * :class:`~oci.opsi.models.MacsManagedExternalHostInsight`

        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param entity_source:
            The value to assign to the entity_source property of this HostInsight.
            Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type entity_source: str

        :param id:
            The value to assign to the id property of this HostInsight.
        :type id: str

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

        :param host_name:
            The value to assign to the host_name property of this HostInsight.
        :type host_name: str

        :param host_display_name:
            The value to assign to the host_display_name property of this HostInsight.
        :type host_display_name: str

        :param host_type:
            The value to assign to the host_type property of this HostInsight.
        :type host_type: str

        :param processor_count:
            The value to assign to the processor_count property of this HostInsight.
        :type processor_count: int

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

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

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

        :param status:
            The value to assign to the status property of this HostInsight.
            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 HostInsight.
        :type time_created: datetime

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

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this HostInsight.
            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 HostInsight.
        :type lifecycle_details: str

        strintzdict(str, str)zdict(str, dict(str, object))datetime)entity_sourceidcompartment_id	host_namehost_display_name	host_typeprocessor_countfreeform_tagsdefined_tagssystem_tagsstatustime_createdtime_updatedlifecycle_statelifecycle_detailsentitySourcer   ZcompartmentIdZhostNameZhostDisplayNameZhostTypeZprocessorCountZfreeformTagsZdefinedTagsZ
systemTagsr"   ZtimeCreatedZtimeUpdatedZlifecycleStateZlifecycleDetailsN)Zswagger_typesZattribute_map_entity_source_id_compartment_id
_host_name_host_display_name
_host_type_processor_count_freeform_tags_defined_tags_system_tags_status_time_created_time_updated_lifecycle_state_lifecycle_details)selfkwargs r9   @usr/lib/python3.10/site-packages/oci/opsi/models/host_insight.py__init__J   s^   P
zHostInsight.__init__c                 C   s<   | d }|dkr
dS |dkrdS |dkrdS |dkrd	S 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MacsManagedCloudHostInsightr   ZEmManagedExternalHostInsightr
   ZPeComanagedHostInsightr   ZMacsManagedExternalHostInsightr   r9   )Zobject_dictionarytyper9   r9   r:   get_subtype   s   zHostInsight.get_subtypec                 C      | j S )a  
        **[Required]** Gets the entity_source of this HostInsight.
        Source of the host entity.

        Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The entity_source of this HostInsight.
        :rtype: str
        )r(   r7   r9   r9   r:   r         zHostInsight.entity_sourcec                 C       g d}t ||sd}|| _dS )z
        Sets the entity_source of this HostInsight.
        Source of the host entity.


        :param entity_source: The entity_source of this HostInsight.
        :type: str
        )r   r   r	   r
   UNKNOWN_ENUM_VALUEN)r   r(   )r7   r   allowed_valuesr9   r9   r:   r         


c                 C   r>   )a  
        **[Required]** Gets the id of this HostInsight.
        The `OCID`__ of the host insight resource.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :return: The id of this HostInsight.
        :rtype: str
        r)   r?   r9   r9   r:   r        zHostInsight.idc                 C   
   || _ dS )a  
        Sets the id of this HostInsight.
        The `OCID`__ of the host insight resource.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :param id: The id of this HostInsight.
        :type: str
        NrE   )r7   r   r9   r9   r:   r        
c                 C   r>   )a  
        **[Required]** Gets the compartment_id of this HostInsight.
        The `OCID`__ of the compartment.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :return: The compartment_id of this HostInsight.
        :rtype: str
        r*   r?   r9   r9   r:   r     rF   zHostInsight.compartment_idc                 C   rG   )a  
        Sets the compartment_id of this HostInsight.
        The `OCID`__ of the compartment.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :param compartment_id: The compartment_id of this HostInsight.
        :type: str
        NrI   )r7   r   r9   r9   r:   r   +  rH   c                 C   r>   )z
        **[Required]** Gets the host_name of this HostInsight.
        The host name. The host name is unique amongst the hosts managed by the same management agent.


        :return: The host_name of this HostInsight.
        :rtype: str
        r+   r?   r9   r9   r:   r   9     
zHostInsight.host_namec                 C   rG   )z
        Sets the host_name of this HostInsight.
        The host name. The host name is unique amongst the hosts managed by the same management agent.


        :param host_name: The host_name of this HostInsight.
        :type: str
        NrJ   )r7   r   r9   r9   r:   r   E     

c                 C   r>   )z
        Gets the host_display_name of this HostInsight.
        The user-friendly name for the host. The name does not have to be unique.


        :return: The host_display_name of this HostInsight.
        :rtype: str
        r,   r?   r9   r9   r:   r   Q  rK   zHostInsight.host_display_namec                 C   rG   )z
        Sets the host_display_name of this HostInsight.
        The user-friendly name for the host. The name does not have to be unique.


        :param host_display_name: The host_display_name of this HostInsight.
        :type: str
        NrM   )r7   r   r9   r9   r:   r   ]  rL   c                 C   r>   )z
        Gets the host_type of this HostInsight.
        Operations Insights internal representation of the host type. Possible value is EXTERNAL-HOST.


        :return: The host_type of this HostInsight.
        :rtype: str
        r-   r?   r9   r9   r:   r   i  rK   zHostInsight.host_typec                 C   rG   )z
        Sets the host_type of this HostInsight.
        Operations Insights internal representation of the host type. Possible value is EXTERNAL-HOST.


        :param host_type: The host_type of this HostInsight.
        :type: str
        NrN   )r7   r   r9   r9   r:   r   u  rL   c                 C   r>   )a  
        Gets the processor_count of this HostInsight.
        Processor count. This is the OCPU count for Autonomous Database and CPU core count for other database types.


        :return: The processor_count of this HostInsight.
        :rtype: int
        r.   r?   r9   r9   r:   r     rK   zHostInsight.processor_countc                 C   rG   )a  
        Sets the processor_count of this HostInsight.
        Processor count. This is the OCPU count for Autonomous Database and CPU core count for other database types.


        :param processor_count: The processor_count of this HostInsight.
        :type: int
        NrO   )r7   r   r9   r9   r:   r     rL   c                 C   r>   )aL  
        **[Required]** Gets the freeform_tags of this HostInsight.
        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 HostInsight.
        :rtype: dict(str, str)
        r/   r?   r9   r9   r:   r        zHostInsight.freeform_tagsc                 C   rG   )aI  
        Sets the freeform_tags of this HostInsight.
        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 HostInsight.
        :type: dict(str, str)
        NrP   )r7   r   r9   r9   r:   r        
c                 C   r>   )aF  
        **[Required]** Gets the defined_tags of this HostInsight.
        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 HostInsight.
        :rtype: dict(str, dict(str, object))
        r0   r?   r9   r9   r:   r      rQ   zHostInsight.defined_tagsc                 C   rG   )aB  
        Sets the defined_tags of this HostInsight.
        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 HostInsight.
        :type: dict(str, dict(str, object))
        NrS   )r7   r    r9   r9   r:   r      rR   c                 C   r>   )a;  
        Gets the system_tags of this HostInsight.
        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 HostInsight.
        :rtype: dict(str, dict(str, object))
        r1   r?   r9   r9   r:   r!     rQ   zHostInsight.system_tagsc                 C   rG   )aE  
        Sets the system_tags of this HostInsight.
        System tags for this resource. Each key is predefined and scoped to a namespace.
        Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`


        :param system_tags: The system_tags of this HostInsight.
        :type: dict(str, dict(str, object))
        NrT   )r7   r!   r9   r9   r:   r!     rR   c                 C   r>   )a  
        **[Required]** Gets the status of this HostInsight.
        Indicates the status of a host insight in Operations Insights

        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'.


        :return: The status of this HostInsight.
        :rtype: str
        )r2   r?   r9   r9   r:   r"     r@   zHostInsight.statusc                 C   rA   )z
        Sets the status of this HostInsight.
        Indicates the status of a host insight in Operations Insights


        :param status: The status of this HostInsight.
        :type: str
        )r   r   r   rB   N)r   r2   )r7   r"   rC   r9   r9   r:   r"     rD   c                 C   r>   )z
        **[Required]** Gets the time_created of this HostInsight.
        The time the the host insight was first enabled. An RFC3339 formatted datetime string


        :return: The time_created of this HostInsight.
        :rtype: datetime
        r3   r?   r9   r9   r:   r#     rK   zHostInsight.time_createdc                 C   rG   )z
        Sets the time_created of this HostInsight.
        The time the the host insight was first enabled. An RFC3339 formatted datetime string


        :param time_created: The time_created of this HostInsight.
        :type: datetime
        NrU   )r7   r#   r9   r9   r:   r#     rL   c                 C   r>   )z
        Gets the time_updated of this HostInsight.
        The time the host insight was updated. An RFC3339 formatted datetime string


        :return: The time_updated of this HostInsight.
        :rtype: datetime
        r4   r?   r9   r9   r:   r$     rK   zHostInsight.time_updatedc                 C   rG   )z
        Sets the time_updated of this HostInsight.
        The time the host insight was updated. An RFC3339 formatted datetime string


        :param time_updated: The time_updated of this HostInsight.
        :type: datetime
        NrV   )r7   r$   r9   r9   r:   r$   )  rL   c                 C   r>   )a  
        **[Required]** Gets the lifecycle_state of this HostInsight.
        The current state of the host.

        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'.


        :return: The lifecycle_state of this HostInsight.
        :rtype: str
        )r5   r?   r9   r9   r:   r%   5  r@   zHostInsight.lifecycle_statec                 C   rA   )z
        Sets the lifecycle_state of this HostInsight.
        The current state of the host.


        :param lifecycle_state: The lifecycle_state of this HostInsight.
        :type: str
        )r   r   r   r   r   r   r   rB   N)r   r5   )r7   r%   rC   r9   r9   r:   r%   D  rD   c                 C   r>   )a-  
        Gets the lifecycle_details of this HostInsight.
        A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.


        :return: The lifecycle_details of this HostInsight.
        :rtype: str
        r6   r?   r9   r9   r:   r&   S  rK   zHostInsight.lifecycle_detailsc                 C   rG   )a=  
        Sets the lifecycle_details of this HostInsight.
        A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.


        :param lifecycle_details: The lifecycle_details of this HostInsight.
        :type: str
        NrW   )r7   r&   r9   r9   r:   r&   _  rL   c                 C   s   t | S N)r   r?   r9   r9   r:   __repr__k  s   zHostInsight.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r7   otherr9   r9   r:   __eq__n  s   zHostInsight.__eq__c                 C   s
   | |k S rX   r9   r[   r9   r9   r:   __ne__t  s   
zHostInsight.__ne__N))__name__
__module____qualname____doc__Z(ENTITY_SOURCE_MACS_MANAGED_EXTERNAL_HOSTZ&ENTITY_SOURCE_EM_MANAGED_EXTERNAL_HOSTZ%ENTITY_SOURCE_MACS_MANAGED_CLOUD_HOSTZENTITY_SOURCE_PE_COMANAGED_HOSTZSTATUS_DISABLEDZSTATUS_ENABLEDZSTATUS_TERMINATEDZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILEDZLIFECYCLE_STATE_NEEDS_ATTENTIONr;   staticmethodr=   propertyr   setterr   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   rY   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   