
    ~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
    iam

    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Z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d Zd Zd Zd Zd ZdS )DetachRolePolicyRequestzsNOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    str)policy_namepolicy_type	role_name
PolicyName
PolicyTypeRoleNameNc                     |t                      }|| _        d| _        d| _        d| _        d| _        || _        || _        || _        dS )z4DetachRolePolicyRequest - a model defined in SwaggerN)	r   _configuration_policy_name_policy_type
_role_namediscriminatorr   r   r	   )selfr   r   r	   r   s        {/root/.openclaw/workspace/.venvs/ark-sdk/lib/python3.11/site-packages/volcenginesdkiam/models/detach_role_policy_request.py__init__z DetachRolePolicyRequest.__init__/   sS    !*__N,  !&&"    c                     | j         S )zGets the policy_name of this DetachRolePolicyRequest.  # noqa: E501


        :return: The policy_name of this DetachRolePolicyRequest.  # noqa: E501
        :rtype: str
        )r   r   s    r   r   z#DetachRolePolicyRequest.policy_name>          r   c                    | j         j        r|t          d          | j         j        r$|"t          |          dk    rt          d          | j         j        r$|"t          |          dk     rt          d          || _        dS )zSets the policy_name of this DetachRolePolicyRequest.


        :param policy_name: The policy_name of this DetachRolePolicyRequest.  # noqa: E501
        :type: str
        Nz3Invalid value for `policy_name`, must not be `None`@   zJInvalid value for `policy_name`, length must be less than or equal to `64`   zLInvalid value for `policy_name`, length must be greater than or equal to `1`)r   client_side_validation
ValueErrorlenr   )r   r   s     r   r   z#DetachRolePolicyRequest.policy_nameH   s     5 	T+:MRSSS6 	k'C,<,<r,A,Aijjj6 	m'C,<,<q,@,@klll'r   c                     | j         S )zGets the policy_type of this DetachRolePolicyRequest.  # noqa: E501


        :return: The policy_type of this DetachRolePolicyRequest.  # noqa: E501
        :rtype: str
        )r   r   s    r   r   z#DetachRolePolicyRequest.policy_type[   r   r   c                     | j         j        r|t          d          ddg}| j         j        r'||vr#t          d                    ||                    || _        dS )zSets the policy_type of this DetachRolePolicyRequest.


        :param policy_type: The policy_type of this DetachRolePolicyRequest.  # noqa: E501
        :type: str
        Nz3Invalid value for `policy_type`, must not be `None`SystemCustomz9Invalid value for `policy_type` ({0}), must be one of {1})r   r   r   formatr   )r   r   allowed_valuess      r   r   z#DetachRolePolicyRequest.policy_typee   s~     5 	T+:MRSSS"H-6 	>11K^44  
 (r   c                     | j         S )zGets the role_name of this DetachRolePolicyRequest.  # noqa: E501


        :return: The role_name of this DetachRolePolicyRequest.  # noqa: E501
        :rtype: str
        )r   r   s    r   r	   z!DetachRolePolicyRequest.role_namey   s     r   c                    | j         j        r|t          d          | j         j        r$|"t          |          dk    rt          d          | j         j        r$|"t          |          dk     rt          d          || _        dS )zSets the role_name of this DetachRolePolicyRequest.


        :param role_name: The role_name of this DetachRolePolicyRequest.  # noqa: E501
        :type: str
        Nz1Invalid value for `role_name`, must not be `None`r   zHInvalid value for `role_name`, length must be less than or equal to `64`r   zJInvalid value for `role_name`, length must be greater than or equal to `1`)r   r   r   r   r   )r   r	   s     r   r	   z!DetachRolePolicyRequest.role_name   s     5 	R):KPQQQ6 	i%#i..2*=*=ghhh6 	k%#i..1*<*<ijjj#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hasattrr*   )xs    r   <lambda>z1DetachRolePolicyRequest.to_dict.<locals>.<lambda>   s!    WQ	-B-BIaiikkk r   r*   c                 v    t          | d         d          r"| d         | d                                         fn| S )Nr   r*   r   r+   )items    r   r.   z1DetachRolePolicyRequest.to_dict.<locals>.<lambda>   s<    tAw	22"=$q'47??+<+<!=!=8< r   )six	iteritemsswagger_typesgetattr
isinstancelistmapr,   r*   dictitems
issubclassr   )r   resultattr_valuekeys         r   r*   zDetachRolePolicyRequest.to_dict   s,   }T%788 	% 	%GD!D$''E%&& %#CII% %    t 	** 	%$}}tE4(( %#C= =KKMM% %    t  %t-t44 	$"jjll $ $
U#sr   c                 N    t          j        |                                           S )z.Returns the string representation of the model)pprintpformatr*   r   s    r   to_strzDetachRolePolicyRequest.to_str   s    ~dllnn---r   c                 *    |                                  S )zFor `print` and `pprint`)rC   r   s    r   __repr__z DetachRolePolicyRequest.__repr__   s    {{}}r   c                     t          |t                    sdS |                                 |                                k    S )z&Returns true if both objects are equalFr5   r   r*   r   others     r   __eq__zDetachRolePolicyRequest.__eq__   s5    %!899 	5||~~00r   c                     t          |t                    sdS |                                 |                                k    S )z*Returns true if both objects are not equalTrG   rH   s     r   __ne__zDetachRolePolicyRequest.__ne__   s5    %!899 	4||~~00r   )NNNN)__name__
__module____qualname____doc__r3   attribute_mapr   propertyr   setterr   r	   r*   rC   rE   rJ   rL    r   r   r   r      s^        
  M $# M# # # # ! ! X! ( ( ($ ! ! X! ( ( (&   X $ $ $$  6. . .  1 1 11 1 1 1 1r   r   )rP   rA   rer1   volcenginesdkcore.configurationr   objectr   rT   r   r   <module>rX      s|      				 



 9 9 9 9 9 9o1 o1 o1 o1 o1f o1 o1 o1 o1 o1r   