o
    ɶd7                     @   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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dd Zdd Zdd ZdS )ProtectionCapabilityzk
    References an OCI-managed protection capability. Checks if HTTP requests/responses are malicious.
    c                 K   sP   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 ProtectionCapability object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param key:
            The value to assign to the key property of this ProtectionCapability.
        :type key: str

        :param version:
            The value to assign to the version property of this ProtectionCapability.
        :type version: int

        :param exclusions:
            The value to assign to the exclusions property of this ProtectionCapability.
        :type exclusions: oci.waf.models.ProtectionCapabilityExclusions

        :param action_name:
            The value to assign to the action_name property of this ProtectionCapability.
        :type action_name: str

        :param collaborative_action_threshold:
            The value to assign to the collaborative_action_threshold property of this ProtectionCapability.
        :type collaborative_action_threshold: int

        :param collaborative_weights:
            The value to assign to the collaborative_weights property of this ProtectionCapability.
        :type collaborative_weights: list[oci.waf.models.CollaborativeCapabilityWeightOverride]

        strintZProtectionCapabilityExclusionsz+list[CollaborativeCapabilityWeightOverride])keyversion
exclusionsaction_namecollaborative_action_thresholdcollaborative_weightsr	   r
   r   Z
actionNameZcollaborativeActionThresholdZcollaborativeWeightsN)Zswagger_typesZattribute_map_key_version_exclusions_action_name_collaborative_action_threshold_collaborative_weights)selfkwargs r   Husr/lib/python3.10/site-packages/oci/waf/models/protection_capability.py__init__   s(   
	
zProtectionCapability.__init__c                 C      | j S )z
        **[Required]** Gets the key of this ProtectionCapability.
        Unique key of referenced protection capability.


        :return: The key of this ProtectionCapability.
        :rtype: str
        r   r   r   r   r   r	   I      
zProtectionCapability.keyc                 C   
   || _ dS )z
        Sets the key of this ProtectionCapability.
        Unique key of referenced protection capability.


        :param key: The key of this ProtectionCapability.
        :type: str
        Nr   )r   r	   r   r   r   r	   U      

c                 C   r   )z
        **[Required]** Gets the version of this ProtectionCapability.
        Version of referenced protection capability.


        :return: The version of this ProtectionCapability.
        :rtype: int
        r   r   r   r   r   r
   a   r   zProtectionCapability.versionc                 C   r   )z
        Sets the version of this ProtectionCapability.
        Version of referenced protection capability.


        :param version: The version of this ProtectionCapability.
        :type: int
        Nr    )r   r
   r   r   r   r
   m   r   c                 C   r   )z
        Gets the exclusions of this ProtectionCapability.

        :return: The exclusions of this ProtectionCapability.
        :rtype: oci.waf.models.ProtectionCapabilityExclusions
        r   r   r   r   r   r   y   s   zProtectionCapability.exclusionsc                 C   r   )z
        Sets the exclusions of this ProtectionCapability.

        :param exclusions: The exclusions of this ProtectionCapability.
        :type: oci.waf.models.ProtectionCapabilityExclusions
        Nr!   )r   r   r   r   r   r      s   
c                 C   r   )a6  
        Gets the action_name of this ProtectionCapability.
        Override action to take if capability was triggered, defined in Protection Rule for this capability.
        Only actions of type CHECK are allowed.


        :return: The action_name of this ProtectionCapability.
        :rtype: str
        r   r   r   r   r   r      s   z ProtectionCapability.action_namec                 C   r   )a@  
        Sets the action_name of this ProtectionCapability.
        Override action to take if capability was triggered, defined in Protection Rule for this capability.
        Only actions of type CHECK are allowed.


        :param action_name: The action_name of this ProtectionCapability.
        :type: str
        Nr"   )r   r   r   r   r   r      s   
c                 C   r   )a  
        Gets the collaborative_action_threshold of this ProtectionCapability.
        The minimum sum of weights of associated collaborative protection capabilities that have triggered which
        must be reached in order for _this_ capability to trigger.
        This field is ignored for non-collaborative capabilities.


        :return: The collaborative_action_threshold of this ProtectionCapability.
        :rtype: int
        r   r   r   r   r   r      s   z3ProtectionCapability.collaborative_action_thresholdc                 C   r   )a  
        Sets the collaborative_action_threshold of this ProtectionCapability.
        The minimum sum of weights of associated collaborative protection capabilities that have triggered which
        must be reached in order for _this_ capability to trigger.
        This field is ignored for non-collaborative capabilities.


        :param collaborative_action_threshold: The collaborative_action_threshold of this ProtectionCapability.
        :type: int
        Nr#   )r   r   r   r   r   r      s   
c                 C   r   )a@  
        Gets the collaborative_weights of this ProtectionCapability.
        Explicit weight values to use for associated collaborative protection capabilities.


        :return: The collaborative_weights of this ProtectionCapability.
        :rtype: list[oci.waf.models.CollaborativeCapabilityWeightOverride]
        r   r   r   r   r   r      r   z*ProtectionCapability.collaborative_weightsc                 C   r   )aT  
        Sets the collaborative_weights of this ProtectionCapability.
        Explicit weight values to use for associated collaborative protection capabilities.


        :param collaborative_weights: The collaborative_weights of this ProtectionCapability.
        :type: list[oci.waf.models.CollaborativeCapabilityWeightOverride]
        Nr$   )r   r   r   r   r   r      r   c                 C   s   t | S N)r   r   r   r   r   __repr__   s   zProtectionCapability.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r   otherr   r   r   __eq__   s   zProtectionCapability.__eq__c                 C   s
   | |k S r%   r   r(   r   r   r   __ne__   s   
zProtectionCapability.__ne__N)__name__
__module____qualname____doc__r   propertyr	   setterr
   r   r   r   r   r&   r*   r+   r   r   r   r   r      s<    7




	
	





r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r   r   r   r   <module>   s   