
    ~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                   .   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 )UpdatePrimaryRegionRequestzsNOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    str)key_idkey_namekeyring_nameprimary_regionKeyIDKeyNameKeyringNamePrimaryRegionNc                     |t                      }|| _        d| _        d| _        d| _        d| _        d| _        ||| _        ||| _        ||| _	        || _
        dS )z7UpdatePrimaryRegionRequest - a model defined in SwaggerN)r   _configuration_key_id	_key_name_keyring_name_primary_regiondiscriminatorr   r   r	   r
   )selfr   r   r	   r
   r   s         ~/root/.openclaw/workspace/.venvs/ark-sdk/lib/python3.11/site-packages/volcenginesdkkms/models/update_primary_region_request.py__init__z#UpdatePrimaryRegionRequest.__init__1   su    !*__N,!#! DK$DM# ,D,    c                     | j         S )zGets the key_id of this UpdatePrimaryRegionRequest.  # noqa: E501


        :return: The key_id of this UpdatePrimaryRegionRequest.  # noqa: E501
        :rtype: str
        r   r   s    r   r   z!UpdatePrimaryRegionRequest.key_idE   s     |r   c                     || _         dS )zSets the key_id of this UpdatePrimaryRegionRequest.


        :param key_id: The key_id of this UpdatePrimaryRegionRequest.  # noqa: E501
        :type: str
        Nr   )r   r   s     r   r   z!UpdatePrimaryRegionRequest.key_idO   s     r   c                     | j         S )zGets the key_name of this UpdatePrimaryRegionRequest.  # noqa: E501


        :return: The key_name of this UpdatePrimaryRegionRequest.  # noqa: E501
        :rtype: str
        )r   r   s    r   r   z#UpdatePrimaryRegionRequest.key_nameZ   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 key_name of this UpdatePrimaryRegionRequest.


        :param key_name: The key_name of this UpdatePrimaryRegionRequest.  # noqa: E501
        :type: str
        N   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   client_side_validationlen
ValueErrorr   )r   r   s     r   r   z#UpdatePrimaryRegionRequest.key_named   sw     6 	h$X););fggg6 	j$X):):hiii!r   c                     | j         S )zGets the keyring_name of this UpdatePrimaryRegionRequest.  # noqa: E501


        :return: The keyring_name of this UpdatePrimaryRegionRequest.  # noqa: E501
        :rtype: str
        )r   r   s    r   r	   z'UpdatePrimaryRegionRequest.keyring_nameu   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 keyring_name of this UpdatePrimaryRegionRequest.


        :param keyring_name: The keyring_name of this UpdatePrimaryRegionRequest.  # noqa: E501
        :type: str
        Nr    zKInvalid value for `keyring_name`, length must be less than or equal to `31`r!   zMInvalid value for `keyring_name`, length must be greater than or equal to `2`)r   r"   r#   r$   r   )r   r	   s     r   r	   z'UpdatePrimaryRegionRequest.keyring_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 primary_region of this UpdatePrimaryRegionRequest.  # noqa: E501


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


        :param primary_region: The primary_region of this UpdatePrimaryRegionRequest.  # noqa: E501
        :type: str
        Nz6Invalid value for `primary_region`, must not be `None`@   zMInvalid value for `primary_region`, length must be less than or equal to `64`)r   r"   r$   r#   r   )r   r
   s     r   r
   z)UpdatePrimaryRegionRequest.primary_region   sk     5 	W.:PUVVV6 	n*s>/B/BR/G/Glmmm-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>z4UpdatePrimaryRegionRequest.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   r0   z4UpdatePrimaryRegionRequest.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"UpdatePrimaryRegionRequest.to_dict   s,   }T%788 	% 	%GD!D$''E%&& %#CII% %    t 	** 	%$}}tE4(( %#C= =KKMM% %    t  %t0$77 	$"jjll $ $
U#sr   c                 N    t          j        |                                           S )z.Returns the string representation of the model)pprintpformatr,   r   s    r   to_strz!UpdatePrimaryRegionRequest.to_str   s    ~dllnn---r   c                 *    |                                  S )zFor `print` and `pprint`)rF   r   s    r   __repr__z#UpdatePrimaryRegionRequest.__repr__   s    {{}}r   c                     t          |t                    sdS |                                 |                                k    S )z&Returns true if both objects are equalFr8   r   r,   r   others     r   __eq__z!UpdatePrimaryRegionRequest.__eq__   s5    %!;<< 	5||~~00r   c                     t          |t                    sdS |                                 |                                k    S )z*Returns true if both objects are not equalTrJ   rK   s     r   __ne__z!UpdatePrimaryRegionRequest.__ne__   s5    %!;<< 	4||~~00r   )NNNNN)__name__
__module____qualname____doc__r6   attribute_mapr   propertyr   setterr   r	   r
   r,   rF   rH   rM   rO    r   r   r   r      s        
 	 M %)	 M- - - -(   X ]  ]   X _" " _"  " " X" * * *  $ $ X$ . . .  6. . .  1 1 11 1 1 1 1r   r   )rS   rD   rer4   volcenginesdkcore.configurationr   objectr   rW   r   r   <module>r[      s|      				 



 9 9 9 9 9 9C1 C1 C1 C1 C1 C1 C1 C1 C1 C1r   