
    ~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
    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                   8   e Zd ZdZ	 ddddddddddddddZddd	d
ddddddddddZd5d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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ed.             Zej	        d/             Zd0 Zd1 Zd2 Zd3 Zd4 ZdS )6CreateKeyRequestzsNOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    strboolintzlist[TagForCreateKeyInput])custom_key_store_iddescriptionkey_namekey_spec	key_usagekeyring_namemulti_regionoriginprotection_levelrotate_intervalrotate_statetags
xks_key_idCustomKeyStoreIDDescriptionKeyNameKeySpecKeyUsageKeyringNameMultiRegionOriginProtectionLevelRotateIntervalRotateStateTagsXksKeyIDNc                    |t                      }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        d| _
        d| _        d| _        d| _        d| _        d| _        ||| _        ||| _        || _        ||| _        ||| _        || _        ||| _        ||| _        |	|	| _        |
|
| _        ||| _        ||| _        |	|| _        dS dS )z-CreateKeyRequest - a model defined in SwaggerN)r   _configuration_custom_key_store_id_description	_key_name	_key_spec
_key_usage_keyring_name_multi_region_origin_protection_level_rotate_interval_rotate_state_tags_xks_key_iddiscriminatorr	   r
   r   r   r   r   r   r   r   r   r   r   r   )selfr	   r
   r   r   r   r   r   r   r   r   r   r   r   r$   s                  s/root/.openclaw/workspace/.venvs/ark-sdk/lib/python3.11/site-packages/volcenginesdkkms/models/create_key_request.py__init__zCreateKeyRequest.__init__C   s4   !*__N,$(! !!!% $!
!*':D$"*D $DM &DN(# ,D DK'$4D!&#2D # ,DDI!(DOOO "!    c                     | j         S )zGets the custom_key_store_id of this CreateKeyRequest.  # noqa: E501


        :return: The custom_key_store_id of this CreateKeyRequest.  # noqa: E501
        :rtype: str
        )r%   r3   s    r4   r	   z$CreateKeyRequest.custom_key_store_idq   s     ((r6   c                     | j         j        r$|"t          |          dk    rt          d          | j         j        r$|"t          |          dk     rt          d          || _        dS )zSets the custom_key_store_id of this CreateKeyRequest.


        :param custom_key_store_id: The custom_key_store_id of this CreateKeyRequest.  # noqa: E501
        :type: str
        N$   zRInvalid value for `custom_key_store_id`, length must be less than or equal to `36`zUInvalid value for `custom_key_store_id`, length must be greater than or equal to `36`)r$   client_side_validationlen
ValueErrorr%   )r3   r	   s     r4   r	   z$CreateKeyRequest.custom_key_store_id{   s     6 	s#/C8K4L4Lr4Q4Qqrrr6 	v#/C8K4L4Lr4Q4Qtuuu$7!!!r6   c                     | j         S )zGets the description of this CreateKeyRequest.  # noqa: E501


        :return: The description of this CreateKeyRequest.  # noqa: E501
        :rtype: str
        )r&   r8   s    r4   r
   zCreateKeyRequest.description   s       r6   c                 t    | j         j        r$|"t          |          dk    rt          d          || _        dS )zSets the description of this CreateKeyRequest.


        :param description: The description of this CreateKeyRequest.  # noqa: E501
        :type: str
        Ni    zLInvalid value for `description`, length must be less than or equal to `8192`)r$   r;   r<   r=   r&   )r3   r
   s     r4   r
   zCreateKeyRequest.description   sH     6 	m'C,<,<t,C,Cklll'r6   c                     | j         S )zGets the key_name of this CreateKeyRequest.  # noqa: E501


        :return: The key_name of this CreateKeyRequest.  # noqa: E501
        :rtype: str
        )r'   r8   s    r4   r   zCreateKeyRequest.key_name        ~r6   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 key_name of this CreateKeyRequest.


        :param key_name: The key_name of this CreateKeyRequest.  # noqa: E501
        :type: str
        Nz0Invalid value for `key_name`, must not be `None`   zGInvalid value for `key_name`, length must be less than or equal to `31`   zIInvalid value for `key_name`, length must be greater than or equal to `2`)r$   r;   r=   r<   r'   )r3   r   s     r4   r   zCreateKeyRequest.key_name   s     5 	Q(:JOPPP6 	h$X););fggg6 	j$X):):hiii!r6   c                     | j         S )zGets the key_spec of this CreateKeyRequest.  # noqa: E501


        :return: The key_spec of this CreateKeyRequest.  # noqa: E501
        :rtype: str
        r(   r8   s    r4   r   zCreateKeyRequest.key_spec   rA   r6   c                     || _         dS )zSets the key_spec of this CreateKeyRequest.


        :param key_spec: The key_spec of this CreateKeyRequest.  # noqa: E501
        :type: str
        NrF   )r3   r   s     r4   r   zCreateKeyRequest.key_spec   s     "r6   c                     | j         S )zGets the key_usage of this CreateKeyRequest.  # noqa: E501


        :return: The key_usage of this CreateKeyRequest.  # noqa: E501
        :rtype: str
        r)   r8   s    r4   r   zCreateKeyRequest.key_usage   s     r6   c                     || _         dS )zSets the key_usage of this CreateKeyRequest.


        :param key_usage: The key_usage of this CreateKeyRequest.  # noqa: E501
        :type: str
        NrI   )r3   r   s     r4   r   zCreateKeyRequest.key_usage   s     $r6   c                     | j         S )zGets the keyring_name of this CreateKeyRequest.  # noqa: E501


        :return: The keyring_name of this CreateKeyRequest.  # noqa: E501
        :rtype: str
        )r*   r8   s    r4   r   zCreateKeyRequest.keyring_name        !!r6   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 keyring_name of this CreateKeyRequest.


        :param keyring_name: The keyring_name of this CreateKeyRequest.  # noqa: E501
        :type: str
        Nz4Invalid value for `keyring_name`, must not be `None`rC   zKInvalid value for `keyring_name`, length must be less than or equal to `31`rD   zMInvalid value for `keyring_name`, length must be greater than or equal to `2`)r$   r;   r=   r<   r*   )r3   r   s     r4   r   zCreateKeyRequest.keyring_name   s     5 	U,:NSTTT6 	l(S->->-C-Cjkkk6 	n(S->->-B-Blmmm)r6   c                     | j         S )zGets the multi_region of this CreateKeyRequest.  # noqa: E501


        :return: The multi_region of this CreateKeyRequest.  # noqa: E501
        :rtype: bool
        r+   r8   s    r4   r   zCreateKeyRequest.multi_region  rL   r6   c                     || _         dS )zSets the multi_region of this CreateKeyRequest.


        :param multi_region: The multi_region of this CreateKeyRequest.  # noqa: E501
        :type: bool
        NrO   )r3   r   s     r4   r   zCreateKeyRequest.multi_region       *r6   c                     | j         S )zGets the origin of this CreateKeyRequest.  # noqa: E501


        :return: The origin of this CreateKeyRequest.  # noqa: E501
        :rtype: str
        r,   r8   s    r4   r   zCreateKeyRequest.origin  s     |r6   c                     || _         dS )zSets the origin of this CreateKeyRequest.


        :param origin: The origin of this CreateKeyRequest.  # noqa: E501
        :type: str
        NrS   )r3   r   s     r4   r   zCreateKeyRequest.origin'  s     r6   c                     | j         S )zGets the protection_level of this CreateKeyRequest.  # noqa: E501


        :return: The protection_level of this CreateKeyRequest.  # noqa: E501
        :rtype: str
        r-   r8   s    r4   r   z!CreateKeyRequest.protection_level2  s     %%r6   c                     || _         dS )zSets the protection_level of this CreateKeyRequest.


        :param protection_level: The protection_level of this CreateKeyRequest.  # noqa: E501
        :type: str
        NrV   )r3   r   s     r4   r   z!CreateKeyRequest.protection_level<  s     "2r6   c                     | j         S )zGets the rotate_interval of this CreateKeyRequest.  # noqa: E501


        :return: The rotate_interval of this CreateKeyRequest.  # noqa: E501
        :rtype: int
        )r.   r8   s    r4   r   z CreateKeyRequest.rotate_intervalG  s     $$r6   c                     | j         j        r||dk    rt          d          | j         j        r||dk     rt          d          || _        dS )zSets the rotate_interval of this CreateKeyRequest.


        :param rotate_interval: The rotate_interval of this CreateKeyRequest.  # noqa: E501
        :type: int
        Ni 
  zQInvalid value for `rotate_interval`, must be a value less than or equal to `2560`Z   zRInvalid value for `rotate_interval`, must be a value greater than or equal to `90`)r$   r;   r=   r.   )r3   r   s     r4   r   z CreateKeyRequest.rotate_intervalQ  sn     6 	r+$0F0Fpqqq6 	s+"0D0Dqrrr /r6   c                     | j         S )zGets the rotate_state of this CreateKeyRequest.  # noqa: E501


        :return: The rotate_state of this CreateKeyRequest.  # noqa: E501
        :rtype: str
        r/   r8   s    r4   r   zCreateKeyRequest.rotate_stateb  rL   r6   c                     || _         dS )zSets the rotate_state of this CreateKeyRequest.


        :param rotate_state: The rotate_state of this CreateKeyRequest.  # noqa: E501
        :type: str
        Nr\   )r3   r   s     r4   r   zCreateKeyRequest.rotate_statel  rQ   r6   c                     | j         S )zGets the tags of this CreateKeyRequest.  # noqa: E501


        :return: The tags of this CreateKeyRequest.  # noqa: E501
        :rtype: list[TagForCreateKeyInput]
        r0   r8   s    r4   r   zCreateKeyRequest.tagsw  s     zr6   c                     || _         dS )zSets the tags of this CreateKeyRequest.


        :param tags: The tags of this CreateKeyRequest.  # noqa: E501
        :type: list[TagForCreateKeyInput]
        Nr_   )r3   r   s     r4   r   zCreateKeyRequest.tags  s     


r6   c                     | j         S )zGets the xks_key_id of this CreateKeyRequest.  # noqa: E501


        :return: The xks_key_id of this CreateKeyRequest.  # noqa: E501
        :rtype: str
        )r1   r8   s    r4   r   zCreateKeyRequest.xks_key_id  s     r6   c                     | j         j        r$|"t          |          dk    rt          d          | j         j        r$|"t          |          dk     rt          d          || _        dS )zSets the xks_key_id of this CreateKeyRequest.


        :param xks_key_id: The xks_key_id of this CreateKeyRequest.  # noqa: E501
        :type: str
        N   zJInvalid value for `xks_key_id`, length must be less than or equal to `128`   zKInvalid value for `xks_key_id`, length must be greater than or equal to `1`)r$   r;   r<   r=   r1   )r3   r   s     r4   r   zCreateKeyRequest.xks_key_id  sz     6 	k&3z??S+@+@ijjj6 	l&3z??Q+>+>jkkk%r6   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hasattrrg   )xs    r4   <lambda>z*CreateKeyRequest.to_dict.<locals>.<lambda>  s!    WQ	-B-BIaiikkk r6   rg   c                 v    t          | d         d          r"| d         | d                                         fn| S )Nrd   rg   r   rh   )items    r4   rk   z*CreateKeyRequest.to_dict.<locals>.<lambda>  s<    tAw	22"=$q'47??+<+<!=!=8< r6   )six	iteritemsswagger_typesgetattr
isinstancelistmapri   rg   dictitems
issubclassr   )r3   resultattr_valuekeys         r4   rg   zCreateKeyRequest.to_dict  s,   }T%788 	% 	%GD!D$''E%&& %#CII% %    t 	** 	%$}}tE4(( %#C= =KKMM% %    t  %t&-- 	$"jjll $ $
U#sr6   c                 N    t          j        |                                           S )z.Returns the string representation of the model)pprintpformatrg   r8   s    r4   to_strzCreateKeyRequest.to_str  s    ~dllnn---r6   c                 *    |                                  S )zFor `print` and `pprint`)r   r8   s    r4   __repr__zCreateKeyRequest.__repr__  s    {{}}r6   c                     t          |t                    sdS |                                 |                                k    S )z&Returns true if both objects are equalFrr   r   rg   r3   others     r4   __eq__zCreateKeyRequest.__eq__  s5    %!122 	5||~~00r6   c                     t          |t                    sdS |                                 |                                k    S )z*Returns true if both objects are not equalTr   r   s     r4   __ne__zCreateKeyRequest.__ne__  s5    %!122 	4||~~00r6   )NNNNNNNNNNNNNN)__name__
__module____qualname____doc__rp   attribute_mapr5   propertyr	   setterr
   r   r   r   r   r   r   r   r   r   r   r   rg   r   r   r   r    r6   r4   r   r      s        
  %! , M"  2$%%-+%  M ,) ,) ,) ,)\ ) ) X) 8 8  8  ! ! X! ( ( (   X _" " _"$   X _" " _"   X $ $ $ " " X" * * *$ " " X" * * *   X ]  ] & & X& 2 2 2 % % X% 0 0 0  " " X" * * *   X 
[  [     X  & & &   6. . .  1 1 11 1 1 1 1r6   r   )r   r~   rern   volcenginesdkcore.configurationr   objectr   r   r6   r4   <module>r      s|      				 



 9 9 9 9 9 9@1 @1 @1 @1 @1v @1 @1 @1 @1 @1r6   