
    ~i                     J    d Z ddlZddlZddlZddlmZ  G d de          ZdS )z
    efs

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: common-version
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
    N)Configurationc                   .   e Zd ZdZ	 dddddZdddddZdd	Zed
             Zej	        d             Zed             Z
e
j	        d             Z
ed             Zej	        d             Zed             Zej	        d             Zd Zd Zd Zd Zd ZdS )CreatePermissionRuleRequestzsNOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    str)cidr_ippermission_group_idrw_mode	user_modeCidrIpPermissionGroupIdRwModeUserModeNc                     |t                      }|| _        d| _        d| _        d| _        d| _        d| _        || _        || _        || _	        || _
        dS )z8CreatePermissionRuleRequest - a model defined in SwaggerN)r   _configuration_cidr_ip_permission_group_id_rw_mode
_user_modediscriminatorr   r   r	   r
   )selfr   r   r	   r
   r   s         /root/.openclaw/workspace/.venvs/ark-sdk/lib/python3.11/site-packages/volcenginesdkefs/models/create_permission_rule_request.py__init__z$CreatePermissionRuleRequest.__init__1   s_    !*__N,$(!!#6 "    c                     | j         S )zGets the cidr_ip of this CreatePermissionRuleRequest.  # noqa: E501


        :return: The cidr_ip of this CreatePermissionRuleRequest.  # noqa: E501
        :rtype: str
        )r   r   s    r   r   z#CreatePermissionRuleRequest.cidr_ipB        }r   c                 N    | j         j        r|t          d          || _        dS )zSets the cidr_ip of this CreatePermissionRuleRequest.


        :param cidr_ip: The cidr_ip of this CreatePermissionRuleRequest.  # noqa: E501
        :type: str
        Nz/Invalid value for `cidr_ip`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r   s     r   r   z#CreatePermissionRuleRequest.cidr_ipL   s1     5 	P'/NOOOr   c                     | j         S )zGets the permission_group_id of this CreatePermissionRuleRequest.  # noqa: E501


        :return: The permission_group_id of this CreatePermissionRuleRequest.  # noqa: E501
        :rtype: str
        )r   r   s    r   r   z/CreatePermissionRuleRequest.permission_group_idY   s     ((r   c                 N    | j         j        r|t          d          || _        dS )zSets the permission_group_id of this CreatePermissionRuleRequest.


        :param permission_group_id: The permission_group_id of this CreatePermissionRuleRequest.  # noqa: E501
        :type: str
        Nz;Invalid value for `permission_group_id`, must not be `None`)r   r   r   r   )r   r   s     r   r   z/CreatePermissionRuleRequest.permission_group_idc   s6     5 	\:M:UZ[[[$7!!!r   c                     | j         S )zGets the rw_mode of this CreatePermissionRuleRequest.  # noqa: E501


        :return: The rw_mode of this CreatePermissionRuleRequest.  # noqa: E501
        :rtype: str
        )r   r   s    r   r	   z#CreatePermissionRuleRequest.rw_modep   r   r   c                     | j         j        r|t          d          g d}| j         j        r'||vr#t          d                    ||                    || _        dS )zSets the rw_mode of this CreatePermissionRuleRequest.


        :param rw_mode: The rw_mode of this CreatePermissionRuleRequest.  # noqa: E501
        :type: str
        Nz/Invalid value for `rw_mode`, must not be `None`)UnknownRWROz5Invalid value for `rw_mode` ({0}), must be one of {1})r   r   r   formatr   )r   r	   allowed_valuess      r   r	   z#CreatePermissionRuleRequest.rw_modez   s{     5 	P'/NOOO0006 	~--G00  
  r   c                     | j         S )zGets the user_mode of this CreatePermissionRuleRequest.  # noqa: E501


        :return: The user_mode of this CreatePermissionRuleRequest.  # noqa: E501
        :rtype: str
        )r   r   s    r   r
   z%CreatePermissionRuleRequest.user_mode   s     r   c                     | j         j        r|t          d          g d}| j         j        r'||vr#t          d                    ||                    || _        dS )zSets the user_mode of this CreatePermissionRuleRequest.


        :param user_mode: The user_mode of this CreatePermissionRuleRequest.  # noqa: E501
        :type: str
        Nz1Invalid value for `user_mode`, must not be `None`)r$   Root_squashNo_root_squash
All_squashz7Invalid value for `user_mode` ({0}), must be one of {1})r   r   r   r'   r   )r   r
   r(   s      r   r
   z%CreatePermissionRuleRequest.user_mode   s|     5 	R):KPQQQSSS6 	//I	>22  
 $r   c                 4   i }t          j        | j                  D ]\  }}t          | |          }t	          |t
                    r"t          t          d |                    ||<   Lt          |d          r|                                ||<   tt	          |t                    r4t          t          d |
                                                    ||<   |||<   t          t          t                    r| 
                                D ]
\  }}|||<   |S )z&Returns the model properties as a dictc                 N    t          | d          r|                                 n| S )Nto_dicthasattrr0   )xs    r   <lambda>z5CreatePermissionRuleRequest.to_dict.<locals>.<lambda>   s!    WQ	-B-BIaiikkk r   r0   c                 v    t          | d         d          r"| d         | d                                         fn| S )N   r0   r   r1   )items    r   r4   z5CreatePermissionRuleRequest.to_dict.<locals>.<lambda>   s<    tAw	22"=$q'47??+<+<!=!=8< r   )six	iteritemsswagger_typesgetattr
isinstancelistmapr2   r0   dictitems
issubclassr   )r   resultattr_valuekeys         r   r0   z#CreatePermissionRuleRequest.to_dict   s,   }T%788 	% 	%GD!D$''E%&& %#CII% %    t 	** 	%$}}tE4(( %#C= =KKMM% %    t  %t1488 	$"jjll $ $
U#sr   c                 N    t          j        |                                           S )z.Returns the string representation of the model)pprintpformatr0   r   s    r   to_strz"CreatePermissionRuleRequest.to_str   s    ~dllnn---r   c                 *    |                                  S )zFor `print` and `pprint`)rJ   r   s    r   __repr__z$CreatePermissionRuleRequest.__repr__   s    {{}}r   c                     t          |t                    sdS |                                 |                                k    S )z&Returns true if both objects are equalFr<   r   r0   r   others     r   __eq__z"CreatePermissionRuleRequest.__eq__   s5    %!<== 	5||~~00r   c                     t          |t                    sdS |                                 |                                k    S )z*Returns true if both objects are not equalTrN   rO   s     r   __ne__z"CreatePermissionRuleRequest.__ne__   s5    %!<== 	4||~~00r   )NNNNN)__name__
__module____qualname____doc__r:   attribute_mapr   propertyr   setterr   r	   r
   r0   rJ   rL   rQ   rS    r   r   r   r      s        
 $	 M 2	 M# # # #"   X ^
  
  ^
  ) ) X) 
8 
8  
8   X ^    ^ &   X $ $ $&  6. . .  1 1 11 1 1 1 1r   r   )rW   rH   rer8   volcenginesdkcore.configurationr   objectr   r[   r   r   <module>r_      s|      				 



 9 9 9 9 9 9E1 E1 E1 E1 E1& E1 E1 E1 E1 E1r   