
    ~i4$                     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
    kms

    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ddZdd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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 )ReEncryptRequestzsNOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    strzdict(str, str))ciphertext_blobnew_encryption_context
new_key_idnew_key_namenew_keyring_nameold_encryption_contextCiphertextBlobNewEncryptionContextNewKeyID
NewKeyNameNewKeyringNameOldEncryptionContextNc                    |t                      }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        || _	        ||| _
        ||| _        ||| _        ||| _        |	|| _        dS dS )z-ReEncryptRequest - a model defined in SwaggerN)r   _configuration_ciphertext_blob_new_encryption_context_new_key_id_new_key_name_new_keyring_name_old_encryption_contextdiscriminatorr   r   r	   r
   r   r   )selfr   r   r	   r
   r   r   r   s           s/root/.openclaw/workspace/.venvs/ark-sdk/lib/python3.11/site-packages/volcenginesdkkms/models/re_encrypt_request.py__init__zReEncryptRequest.__init__5   s    !*__N, $'+$!!%'+$!.!-*@D'!(DO# ,D'$4D!!-*@D''' .-    c                     | j         S )zGets the ciphertext_blob of this ReEncryptRequest.  # noqa: E501


        :return: The ciphertext_blob of this ReEncryptRequest.  # noqa: E501
        :rtype: str
        )r   r   s    r   r   z ReEncryptRequest.ciphertext_blobO   s     $$r   c                     | j         j        r|t          d          | j         j        r$|"t          |          dk     rt          d          || _        dS )zSets the ciphertext_blob of this ReEncryptRequest.


        :param ciphertext_blob: The ciphertext_blob of this ReEncryptRequest.  # noqa: E501
        :type: str
        Nz7Invalid value for `ciphertext_blob`, must not be `None`   zQInvalid value for `ciphertext_blob`, length must be greater than or equal to `19`)r   client_side_validation
ValueErrorlenr   )r   r   s     r   r   z ReEncryptRequest.ciphertext_blobY   sk     5 	X/:QVWWW6 	r+O0D0Dr0I0Ipqqq /r   c                     | j         S )zGets the new_encryption_context of this ReEncryptRequest.  # noqa: E501


        :return: The new_encryption_context of this ReEncryptRequest.  # noqa: E501
        :rtype: dict(str, str)
        r   r!   s    r   r   z'ReEncryptRequest.new_encryption_contexti        ++r   c                     || _         dS )zSets the new_encryption_context of this ReEncryptRequest.


        :param new_encryption_context: The new_encryption_context of this ReEncryptRequest.  # noqa: E501
        :type: dict(str, str)
        Nr(   )r   r   s     r   r   z'ReEncryptRequest.new_encryption_contexts        (>$$$r   c                     | j         S )zGets the new_key_id of this ReEncryptRequest.  # noqa: E501


        :return: The new_key_id of this ReEncryptRequest.  # noqa: E501
        :rtype: str
        r   r!   s    r   r	   zReEncryptRequest.new_key_id~   s     r   c                     || _         dS )zSets the new_key_id of this ReEncryptRequest.


        :param new_key_id: The new_key_id of this ReEncryptRequest.  # noqa: E501
        :type: str
        Nr-   )r   r	   s     r   r	   zReEncryptRequest.new_key_id   s     &r   c                     | j         S )zGets the new_key_name of this ReEncryptRequest.  # noqa: E501


        :return: The new_key_name of this ReEncryptRequest.  # noqa: E501
        :rtype: str
        )r   r!   s    r   r
   zReEncryptRequest.new_key_name   s     !!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_key_name of this ReEncryptRequest.


        :param new_key_name: The new_key_name of this ReEncryptRequest.  # noqa: E501
        :type: str
        N   zKInvalid value for `new_key_name`, length must be less than or equal to `31`   zMInvalid value for `new_key_name`, length must be greater than or equal to `2`)r   r$   r&   r%   r   )r   r
   s     r   r
   zReEncryptRequest.new_key_name   s~     6 	l(S->->-C-Cjkkk6 	n(S->->-B-Blmmm)r   c                     | j         S )zGets the new_keyring_name of this ReEncryptRequest.  # noqa: E501


        :return: The new_keyring_name of this ReEncryptRequest.  # noqa: E501
        :rtype: str
        )r   r!   s    r   r   z!ReEncryptRequest.new_keyring_name   s     %%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_keyring_name of this ReEncryptRequest.


        :param new_keyring_name: The new_keyring_name of this ReEncryptRequest.  # noqa: E501
        :type: str
        Nr1   zOInvalid value for `new_keyring_name`, length must be less than or equal to `31`r2   zQInvalid value for `new_keyring_name`, length must be greater than or equal to `2`)r   r$   r&   r%   r   )r   r   s     r   r   z!ReEncryptRequest.new_keyring_name   s     6 	p ,5E1F1F1K1Knooo6 	r ,5E1F1F1J1Jpqqq!1r   c                     | j         S )zGets the old_encryption_context of this ReEncryptRequest.  # noqa: E501


        :return: The old_encryption_context of this ReEncryptRequest.  # noqa: E501
        :rtype: dict(str, str)
        r   r!   s    r   r   z'ReEncryptRequest.old_encryption_context   r)   r   c                     || _         dS )zSets the old_encryption_context of this ReEncryptRequest.


        :param old_encryption_context: The old_encryption_context of this ReEncryptRequest.  # noqa: E501
        :type: dict(str, str)
        Nr6   )r   r   s     r   r   z'ReEncryptRequest.old_encryption_context   r+   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*ReEncryptRequest.to_dict.<locals>.<lambda>   s!    WQ	-B-BIaiikkk r   r:   c                 v    t          | d         d          r"| d         | d                                         fn| S )N   r:   r   r;   )items    r   r>   z*ReEncryptRequest.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ReEncryptRequest.to_dict   s,   }T%788 	% 	%GD!D$''E%&& %#CII% %    t 	** 	%$}}tE4(( %#C= =KKMM% %    t  %t&-- 	$"jjll $ $
U#sr   c                 N    t          j        |                                           S )z.Returns the string representation of the model)pprintpformatr:   r!   s    r   to_strzReEncryptRequest.to_str   s    ~dllnn---r   c                 *    |                                  S )zFor `print` and `pprint`)rT   r!   s    r   __repr__zReEncryptRequest.__repr__   s    {{}}r   c                     t          |t                    sdS |                                 |                                k    S )z&Returns true if both objects are equalFrF   r   r:   r   others     r   __eq__zReEncryptRequest.__eq__  s5    %!122 	5||~~00r   c                     t          |t                    sdS |                                 |                                k    S )z*Returns true if both objects are not equalTrX   rY   s     r   __ne__zReEncryptRequest.__ne__  s5    %!122 	4||~~00r   )NNNNNNN)__name__
__module____qualname____doc__rD   attribute_mapr   propertyr   setterr   r	   r
   r   r   r:   rT   rV   r[   r]    r   r   r   r      s"        
 !"2!"2 M ,"8 $,"8 MA A A A4 % % X% 0 0 0 , , X, "> > #">     X  & & & " " X" * * *  & & X& 2 2 2  , , X, "> > #">  6. . .  1 1 11 1 1 1 1r   r   )ra   rR   rerB   volcenginesdkcore.configurationr   objectr   re   r   r   <module>ri      s|      				 



 9 9 9 9 9 9w1 w1 w1 w1 w1v w1 w1 w1 w1 w1r   