o
    #Îj?  ã                   @   s(   d Z G dd„ deƒZG dd„ deƒZdS )z*
This module provides models for ESG-SDK.
c                   @   s   e Zd ZdZddd„ZdS )ÚTagModelz
    TAGModel
    Nc                 C   s   || _ || _d S ©N)ÚtagKeyÚtagValue)Úselfr   r   © r   ú`/var/www/html/Deteccion_Ine/venv/lib/python3.10/site-packages/baidubce/services/esg/esg_model.pyÚ__init__   s   
zTagModel.__init__)NN©Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r      s    r   c                   @   s"   e Zd ZdZ				ddd„ZdS )Ú EnterpriseSecurityGroupRuleModela/  
        This class define the rule of the securitygroup.
        param: remark:
            The remark for the rule.
        param: direction:
            The parameter to define the rule direction,available value are "ingress/egress".
        param: ethertype:
            The ethernet protocol.
        param: portRange:
            The port range to specify the port which the rule will work on.
            Available range is rang [0, 65535], the fault value is "" for all port.
        param: sourceportRange:
            The source port range to specify the port which the rule will work on.
            Available range is rang [0, 65535], the fault value is "" for all port.
        param: protocol:
            The parameter specify which protocol will the rule work on, the fault value is "" for all protocol.
            Available protocol are tcp, udp and icmp.
        param: sourceIp:
            The source ip range with CIDR formats. The default value 0.0.0.0/0 (allow all ip address),
            other supported formats such as {ip_addr}/12 or {ip_addr}. Only supports IPV4.
            Only works for  direction = "ingress".
        param: destIp:
            The destination ip range with CIDR formats. The default value 0.0.0.0/0 (allow all ip address),
            other supported formats such as {ip_addr}/12 or {ip_addr}. Only supports IPV4.
            Only works for  direction = "egress".
        param: EnterprisesecurityGroupId:
            The id of the Enterprisesecuritygroup for the rule.
        param: localIp:
            The parameter specify the localIP (allow all ip address: all).
        param: priority:
            The parameter specify the priority of the rule(range 1-1000).
        param: action:
        	The parameter specify the action of the rule, available value are "allow/deny".
        param: remoteIpSet:
            The remote ip set.
        param: remoteIpGroup:
            The remote ip group.
        param: createdTime:
            The created time of the rule.
        param: updatedTime:
            The updated time of the rule.
	Nc                 C   sd   || _ || _|| _|| _|| _|| _|| _|| _|	| _|
| _	|| _
|| _|| _|| _|| _|| _d S r   )ÚremarkÚ	directionÚ	ethertypeÚ	portRangeÚsourcePortRangeÚprotocolÚsourceIpÚdestIpÚenterpriseSecurityGroupIdÚactionÚlocalIpÚpriorityÚremoteIpSetÚremoteIpGroupÚcreatedTimeÚupdatedTime)r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   L   s    
z)EnterpriseSecurityGroupRuleModel.__init__)NNNNNNNNNNNNNNNNr	   r   r   r   r   r       s    +ýr   N)r   Úobjectr   r   r   r   r   r   Ú<module>   s   
