
    ~iS                     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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 )UpdatePolicyRequestzsNOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    str)new_descriptionnew_policy_documentnew_policy_namepolicy_nameNewDescriptionNewPolicyDocumentNewPolicyName
PolicyNameNc                     |t                      }|| _        d| _        d| _        d| _        d| _        d| _        ||| _        ||| _        ||| _	        || _
        dS )z0UpdatePolicyRequest - a model defined in SwaggerN)r   _configuration_new_description_new_policy_document_new_policy_name_policy_namediscriminatorr   r   r	   r
   )selfr   r   r	   r
   r   s         v/root/.openclaw/workspace/.venvs/ark-sdk/lib/python3.11/site-packages/volcenginesdkiam/models/update_policy_request.py__init__zUpdatePolicyRequest.__init__1   sy    !*__N, $$(! $ !&#2D *':D$&#2D &    c                     | j         S )zGets the new_description of this UpdatePolicyRequest.  # noqa: E501


        :return: The new_description of this UpdatePolicyRequest.  # noqa: E501
        :rtype: str
        )r   r   s    r   r   z#UpdatePolicyRequest.new_descriptionE        $$r   c                 t    | j         j        r$|"t          |          dk    rt          d          || _        dS )zSets the new_description of this UpdatePolicyRequest.


        :param new_description: The new_description of this UpdatePolicyRequest.  # noqa: E501
        :type: str
        N   zOInvalid value for `new_description`, length must be less than or equal to `255`)r   client_side_validationlen
ValueErrorr   )r   r   s     r   r   z#UpdatePolicyRequest.new_descriptionO   sH     6 	p+O0D0Ds0J0Jnooo /r   c                     | j         S )zGets the new_policy_document of this UpdatePolicyRequest.  # noqa: E501


        :return: The new_policy_document of this UpdatePolicyRequest.  # noqa: E501
        :rtype: str
        )r   r   s    r   r   z'UpdatePolicyRequest.new_policy_document]   s     ((r   c                 t    | j         j        r$|"t          |          dk    rt          d          || _        dS )zSets the new_policy_document of this UpdatePolicyRequest.


        :param new_policy_document: The new_policy_document of this UpdatePolicyRequest.  # noqa: E501
        :type: str
        Ni   zTInvalid value for `new_policy_document`, length must be less than or equal to `6144`)r   r   r    r!   r   )r   r   s     r   r   z'UpdatePolicyRequest.new_policy_documentg   sI     6 	u#/C8K4L4Lt4S4Ssttt$7!!!r   c                     | j         S )zGets the new_policy_name of this UpdatePolicyRequest.  # noqa: E501


        :return: The new_policy_name of this UpdatePolicyRequest.  # noqa: E501
        :rtype: str
        )r   r   s    r   r	   z#UpdatePolicyRequest.new_policy_nameu   r   r   c                     | j         j        r$|"t          |          dk    rt          d          | j         j        r$|"t          |          dk     rt          d          || _        dS )zSets the new_policy_name of this UpdatePolicyRequest.


        :param new_policy_name: The new_policy_name of this UpdatePolicyRequest.  # noqa: E501
        :type: str
        N@   zNInvalid value for `new_policy_name`, length must be less than or equal to `64`   zPInvalid value for `new_policy_name`, length must be greater than or equal to `1`)r   r   r    r!   r   )r   r	   s     r   r	   z#UpdatePolicyRequest.new_policy_name   s~     6 	o+O0D0Dr0I0Imnnn6 	q+O0D0Dq0H0Hoppp /r   c                     | j         S )zGets the policy_name of this UpdatePolicyRequest.  # noqa: E501


        :return: The policy_name of this UpdatePolicyRequest.  # noqa: E501
        :rtype: str
        )r   r   s    r   r
   zUpdatePolicyRequest.policy_name   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 policy_name of this UpdatePolicyRequest.


        :param policy_name: The policy_name of this UpdatePolicyRequest.  # noqa: E501
        :type: str
        Nz3Invalid value for `policy_name`, must not be `None`r&   zJInvalid value for `policy_name`, length must be less than or equal to `64`r'   zLInvalid value for `policy_name`, length must be greater than or equal to `1`)r   r   r!   r    r   )r   r
   s     r   r
   zUpdatePolicyRequest.policy_name   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                 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>z-UpdatePolicyRequest.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   r0   z-UpdatePolicyRequest.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UpdatePolicyRequest.to_dict   s,   }T%788 	% 	%GD!D$''E%&& %#CII% %    t 	** 	%$}}tE4(( %#C= =KKMM% %    t  %t)400 	$"jjll $ $
U#sr   c                 N    t          j        |                                           S )z.Returns the string representation of the model)pprintpformatr,   r   s    r   to_strzUpdatePolicyRequest.to_str   s    ~dllnn---r   c                 *    |                                  S )zFor `print` and `pprint`)rE   r   s    r   __repr__zUpdatePolicyRequest.__repr__   s    {{}}r   c                     t          |t                    sdS |                                 |                                k    S )z&Returns true if both objects are equalFr7   r   r,   r   others     r   __eq__zUpdatePolicyRequest.__eq__   s5    %!455 	5||~~00r   c                     t          |t                    sdS |                                 |                                k    S )z*Returns true if both objects are not equalTrI   rJ   s     r   __ne__zUpdatePolicyRequest.__ne__   s5    %!455 	4||~~00r   )NNNNN)__name__
__module____qualname____doc__r5   attribute_mapr   propertyr   setterr   r	   r
   r,   rE   rG   rL   rN    r   r   r   r      s        
 !$ 	 M ,2*#	 M' ' ' '( % % X% 0 0 0 ) ) X) 8 8  8 % % X% 0 0 0  ! ! X! ( ( ($  6. . .  1 1 11 1 1 1 1r   r   )rR   rC   rer3   volcenginesdkcore.configurationr   objectr   rV   r   r   <module>rZ      s|      				 



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