o
    ɶdX                     @   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                   @   s0  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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"edBdC Z#e#jdDdC Z#dEdF Z$dGdH Z%dIdJ Z&dKS )LTargetz 
    Description of Target.
    COMPARTMENTERPCLOUDHCMCLOUDSECURITY_ZONECREATINGUPDATINGACTIVEINACTIVEDELETINGDELETED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 )-a  
        Initializes a new Target 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 Target.
        :type id: str

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

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

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

        :param target_resource_type:
            The value to assign to the target_resource_type property of this Target.
            Allowed values for this property are: "COMPARTMENT", "ERPCLOUD", "HCMCLOUD", "SECURITY_ZONE", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type target_resource_type: str

        :param target_resource_id:
            The value to assign to the target_resource_id property of this Target.
        :type target_resource_id: str

        :param recipe_count:
            The value to assign to the recipe_count property of this Target.
        :type recipe_count: int

        :param target_detector_recipes:
            The value to assign to the target_detector_recipes property of this Target.
        :type target_detector_recipes: list[oci.cloud_guard.models.TargetDetectorRecipe]

        :param target_responder_recipes:
            The value to assign to the target_responder_recipes property of this Target.
        :type target_responder_recipes: list[oci.cloud_guard.models.TargetResponderRecipe]

        :param target_details:
            The value to assign to the target_details property of this Target.
        :type target_details: oci.cloud_guard.models.TargetDetails

        :param inherited_by_compartments:
            The value to assign to the inherited_by_compartments property of this Target.
        :type inherited_by_compartments: list[str]

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

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

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

        :param lifecyle_details:
            The value to assign to the lifecyle_details property of this Target.
        :type lifecyle_details: str

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

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

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

        idstrdisplay_namecompartment_iddescriptiontarget_resource_typetarget_resource_idrecipe_countinttarget_detector_recipeszlist[TargetDetectorRecipe]target_responder_recipeszlist[TargetResponderRecipe]target_detailsZTargetDetailsinherited_by_compartmentsz	list[str]time_createddatetimetime_updatedlifecycle_statelifecyle_detailsfreeform_tagszdict(str, str)defined_tagszdict(str, dict(str, object))system_tagsZdisplayNameZcompartmentIdZtargetResourceTypeZtargetResourceIdZrecipeCountZtargetDetectorRecipesZtargetResponderRecipesZtargetDetailsZinheritedByCompartmentsZtimeCreatedZtimeUpdatedZlifecycleStateZlifecyleDetailsZfreeformTagsZdefinedTagsZ
systemTagsN)Zswagger_typesZattribute_map_id_display_name_compartment_id_description_target_resource_type_target_resource_id_recipe_count_target_detector_recipes_target_responder_recipes_target_details_inherited_by_compartments_time_created_time_updated_lifecycle_state_lifecyle_details_freeform_tags_defined_tags_system_tags)selfkwargs r;   Ausr/lib/python3.10/site-packages/oci/cloud_guard/models/target.py__init__>   s   R	
	

zTarget.__init__c                 C      | j S )z
        **[Required]** Gets the id of this Target.
        Unique identifier that is immutable on creation.


        :return: The id of this Target.
        :rtype: str
        r'   r9   r;   r;   r<   r         
z	Target.idc                 C   
   || _ dS )z
        Sets the id of this Target.
        Unique identifier that is immutable on creation.


        :param id: The id of this Target.
        :type: str
        Nr?   )r9   r   r;   r;   r<   r         

c                 C   r>   )z
        Gets the display_name of this Target.
        Target display name, can be renamed.


        :return: The display_name of this Target.
        :rtype: str
        r(   r@   r;   r;   r<   r      rA   zTarget.display_namec                 C   rB   )z
        Sets the display_name of this Target.
        Target display name, can be renamed.


        :param display_name: The display_name of this Target.
        :type: str
        NrD   )r9   r   r;   r;   r<   r      rC   c                 C   r>   )z
        **[Required]** Gets the compartment_id of this Target.
        Compartment Identifier where the resource is created


        :return: The compartment_id of this Target.
        :rtype: str
        r)   r@   r;   r;   r<   r      rA   zTarget.compartment_idc                 C   rB   )z
        Sets the compartment_id of this Target.
        Compartment Identifier where the resource is created


        :param compartment_id: The compartment_id of this Target.
        :type: str
        NrE   )r9   r   r;   r;   r<   r   	  rC   c                 C   r>   )z
        Gets the description of this Target.
        The target description.


        :return: The description of this Target.
        :rtype: str
        r*   r@   r;   r;   r<   r     rA   zTarget.descriptionc                 C   rB   )z
        Sets the description of this Target.
        The target description.


        :param description: The description of this Target.
        :type: str
        NrF   )r9   r   r;   r;   r<   r   !  rC   c                 C   r>   )a  
        **[Required]** Gets the target_resource_type of this Target.
        possible type of targets

        Allowed values for this property are: "COMPARTMENT", "ERPCLOUD", "HCMCLOUD", "SECURITY_ZONE", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The target_resource_type of this Target.
        :rtype: str
        )r+   r@   r;   r;   r<   r   -     zTarget.target_resource_typec                 C       g d}t ||sd}|| _dS )z
        Sets the target_resource_type of this Target.
        possible type of targets


        :param target_resource_type: The target_resource_type of this Target.
        :type: str
        )r   r   r	   r
   UNKNOWN_ENUM_VALUEN)r   r+   )r9   r   allowed_valuesr;   r;   r<   r   <     


c                 C   r>   )z
        **[Required]** Gets the target_resource_id of this Target.
        Resource ID which the target uses to monitor


        :return: The target_resource_id of this Target.
        :rtype: str
        r,   r@   r;   r;   r<   r   K  rA   zTarget.target_resource_idc                 C   rB   )z
        Sets the target_resource_id of this Target.
        Resource ID which the target uses to monitor


        :param target_resource_id: The target_resource_id of this Target.
        :type: str
        NrL   )r9   r   r;   r;   r<   r   W  rC   c                 C   r>   )z
        **[Required]** Gets the recipe_count of this Target.
        Total number of recipes attached to target


        :return: The recipe_count of this Target.
        :rtype: int
        r-   r@   r;   r;   r<   r   c  rA   zTarget.recipe_countc                 C   rB   )z
        Sets the recipe_count of this Target.
        Total number of recipes attached to target


        :param recipe_count: The recipe_count of this Target.
        :type: int
        NrM   )r9   r   r;   r;   r<   r   o  rC   c                 C   r>   )z
        Gets the target_detector_recipes of this Target.
        List of detector recipes associated with target


        :return: The target_detector_recipes of this Target.
        :rtype: list[oci.cloud_guard.models.TargetDetectorRecipe]
        r.   r@   r;   r;   r<   r   {  rA   zTarget.target_detector_recipesc                 C   rB   )a  
        Sets the target_detector_recipes of this Target.
        List of detector recipes associated with target


        :param target_detector_recipes: The target_detector_recipes of this Target.
        :type: list[oci.cloud_guard.models.TargetDetectorRecipe]
        NrN   )r9   r   r;   r;   r<   r     rC   c                 C   r>   )z
        Gets the target_responder_recipes of this Target.
        List of responder recipes associated with target


        :return: The target_responder_recipes of this Target.
        :rtype: list[oci.cloud_guard.models.TargetResponderRecipe]
        r/   r@   r;   r;   r<   r     rA   zTarget.target_responder_recipesc                 C   rB   )a  
        Sets the target_responder_recipes of this Target.
        List of responder recipes associated with target


        :param target_responder_recipes: The target_responder_recipes of this Target.
        :type: list[oci.cloud_guard.models.TargetResponderRecipe]
        NrO   )r9   r   r;   r;   r<   r     rC   c                 C   r>   )z
        Gets the target_details of this Target.

        :return: The target_details of this Target.
        :rtype: oci.cloud_guard.models.TargetDetails
        r0   r@   r;   r;   r<   r     s   zTarget.target_detailsc                 C   rB   )z
        Sets the target_details of this Target.

        :param target_details: The target_details of this Target.
        :type: oci.cloud_guard.models.TargetDetails
        NrP   )r9   r   r;   r;   r<   r     s   
c                 C   r>   )z
        Gets the inherited_by_compartments of this Target.
        List of inherited compartments


        :return: The inherited_by_compartments of this Target.
        :rtype: list[str]
        r1   r@   r;   r;   r<   r     rA   z Target.inherited_by_compartmentsc                 C   rB   )z
        Sets the inherited_by_compartments of this Target.
        List of inherited compartments


        :param inherited_by_compartments: The inherited_by_compartments of this Target.
        :type: list[str]
        NrQ   )r9   r   r;   r;   r<   r     rC   c                 C   r>   )z
        Gets the time_created of this Target.
        The date and time the target was created. Format defined by RFC3339.


        :return: The time_created of this Target.
        :rtype: datetime
        r2   r@   r;   r;   r<   r     rA   zTarget.time_createdc                 C   rB   )z
        Sets the time_created of this Target.
        The date and time the target was created. Format defined by RFC3339.


        :param time_created: The time_created of this Target.
        :type: datetime
        NrR   )r9   r   r;   r;   r<   r     rC   c                 C   r>   )z
        Gets the time_updated of this Target.
        The date and time the target was updated. Format defined by RFC3339.


        :return: The time_updated of this Target.
        :rtype: datetime
        r3   r@   r;   r;   r<   r!     rA   zTarget.time_updatedc                 C   rB   )z
        Sets the time_updated of this Target.
        The date and time the target was updated. Format defined by RFC3339.


        :param time_updated: The time_updated of this Target.
        :type: datetime
        NrS   )r9   r!   r;   r;   r<   r!     rC   c                 C   r>   )a  
        Gets the lifecycle_state of this Target.
        The current state of the Target.

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


        :return: The lifecycle_state of this Target.
        :rtype: str
        )r4   r@   r;   r;   r<   r"     rG   zTarget.lifecycle_statec                 C   rH   )z
        Sets the lifecycle_state of this Target.
        The current state of the Target.


        :param lifecycle_state: The lifecycle_state of this Target.
        :type: str
        )r   r   r   r   r   r   r   rI   N)r   r4   )r9   r"   rJ   r;   r;   r<   r"     rK   c                 C   r>   )a!  
        Gets the lifecyle_details of this Target.
        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 lifecyle_details of this Target.
        :rtype: str
        r5   r@   r;   r;   r<   r#   %  rA   zTarget.lifecyle_detailsc                 C   rB   )a0  
        Sets the lifecyle_details of this Target.
        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 lifecyle_details: The lifecyle_details of this Target.
        :type: str
        NrT   )r9   r#   r;   r;   r<   r#   1  rC   c                 C   r>   )ae  
        Gets the freeform_tags of this Target.
        Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
        Example: `{"bar-key": "value"}`

        Avoid entering confidential information.


        :return: The freeform_tags of this Target.
        :rtype: dict(str, str)
        r6   r@   r;   r;   r<   r$   =  rG   zTarget.freeform_tagsc                 C   rB   )aq  
        Sets the freeform_tags of this Target.
        Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
        Example: `{"bar-key": "value"}`

        Avoid entering confidential information.


        :param freeform_tags: The freeform_tags of this Target.
        :type: dict(str, str)
        NrU   )r9   r$   r;   r;   r<   r$   L  s   
c                 C   r>   )a-  
        Gets the defined_tags of this Target.
        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 Target.
        :rtype: dict(str, dict(str, object))
        r7   r@   r;   r;   r<   r%   [  s   zTarget.defined_tagsc                 C   rB   )a8  
        Sets the defined_tags of this Target.
        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 Target.
        :type: dict(str, dict(str, object))
        NrV   )r9   r%   r;   r;   r<   r%   h  s   
c                 C   r>   )a  
        Gets the system_tags of this Target.
        System tags for this resource. Each key is predefined and scoped to a namespace.
        For more information, see `Resource Tags`__.
        System tags can be viewed by users, but can only be created by the system.

        Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`

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


        :return: The system_tags of this Target.
        :rtype: dict(str, dict(str, object))
        r8   r@   r;   r;   r<   r&   u  s   zTarget.system_tagsc                 C   rB   )a  
        Sets the system_tags of this Target.
        System tags for this resource. Each key is predefined and scoped to a namespace.
        For more information, see `Resource Tags`__.
        System tags can be viewed by users, but can only be created by the system.

        Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`

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


        :param system_tags: The system_tags of this Target.
        :type: dict(str, dict(str, object))
        NrW   )r9   r&   r;   r;   r<   r&     s   
c                 C   s   t | S N)r   r@   r;   r;   r<   __repr__  s   zTarget.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r9   otherr;   r;   r<   __eq__  s   zTarget.__eq__c                 C   s
   | |k S rX   r;   r[   r;   r;   r<   __ne__  s   
zTarget.__ne__N)'__name__
__module____qualname____doc__Z TARGET_RESOURCE_TYPE_COMPARTMENTZTARGET_RESOURCE_TYPE_ERPCLOUDZTARGET_RESOURCE_TYPE_HCMCLOUDZ"TARGET_RESOURCE_TYPE_SECURITY_ZONEZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_INACTIVEZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILEDr=   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   r!   r"   r#   r$   r%   r&   rY   r]   r^   r;   r;   r;   r<   r      s     


















	
	















r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r;   r;   r;   r<   <module>   s   