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

    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                   h   e Zd ZdZ	 ddddddZ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d Zd Zd Zd Zd Zd	S )GrantAccountPrivilegeRequestzsNOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    str)account_nameaccount_privilegeaccount_privilege_strdb_nameinstance_idAccountNameAccountPrivilegeAccountPrivilegeStrDBName
InstanceIdNc                     |t                      }|| _        d| _        d| _        d| _        d| _        d| _        d| _        || _        ||| _	        ||| _
        || _        || _        dS )z9GrantAccountPrivilegeRequest - a model defined in SwaggerN)r   _configuration_account_name_account_privilege_account_privilege_str_db_name_instance_iddiscriminatorr   r   r	   r
   r   )selfr   r   r	   r
   r   r   s          /root/.openclaw/workspace/.venvs/ark-sdk/lib/python3.11/site-packages/volcenginesdkrdsmysql/models/grant_account_privilege_request.py__init__z%GrantAccountPrivilegeRequest.__init__3   s    !*__N,!"&&*# !((%6D" ,)>D&&    c                     | j         S )zGets the account_name of this GrantAccountPrivilegeRequest.  # noqa: E501


        :return: The account_name of this GrantAccountPrivilegeRequest.  # noqa: E501
        :rtype: str
        )r   r   s    r   r   z)GrantAccountPrivilegeRequest.account_nameH   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 account_name of this GrantAccountPrivilegeRequest.


        :param account_name: The account_name of this GrantAccountPrivilegeRequest.  # noqa: E501
        :type: str
        Nz4Invalid value for `account_name`, must not be `None`    zKInvalid value for `account_name`, length must be less than or equal to `32`   zMInvalid value for `account_name`, length must be greater than or equal to `2`)r   client_side_validation
ValueErrorlenr   )r   r   s     r   r   z)GrantAccountPrivilegeRequest.account_nameR   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)r   c                     | j         S )zGets the account_privilege of this GrantAccountPrivilegeRequest.  # noqa: E501


        :return: The account_privilege of this GrantAccountPrivilegeRequest.  # noqa: E501
        :rtype: str
        )r   r   s    r   r   z.GrantAccountPrivilegeRequest.account_privilegee   s     &&r   c                     g d}| j         j        r'||vr#t          d                    ||                    || _        dS )zSets the account_privilege of this GrantAccountPrivilegeRequest.


        :param account_privilege: The account_privilege of this GrantAccountPrivilegeRequest.  # noqa: E501
        :type: str
        )CustomDDLOnlyDMLOnlyNONEReadOnly	ReadWritez?Invalid value for `account_privilege` ({0}), must be one of {1}N)r   r"   r#   formatr   )r   r   allowed_valuess      r   r   z.GrantAccountPrivilegeRequest.account_privilegeo   s^     [ZZ6 	!77Q)>::  
 #4r   c                     | j         S )zGets the account_privilege_str of this GrantAccountPrivilegeRequest.  # noqa: E501


        :return: The account_privilege_str of this GrantAccountPrivilegeRequest.  # noqa: E501
        :rtype: str
        r   r   s    r   r	   z2GrantAccountPrivilegeRequest.account_privilege_str   s     **r   c                     || _         dS )zSets the account_privilege_str of this GrantAccountPrivilegeRequest.


        :param account_privilege_str: The account_privilege_str of this GrantAccountPrivilegeRequest.  # noqa: E501
        :type: str
        Nr0   )r   r	   s     r   r	   z2GrantAccountPrivilegeRequest.account_privilege_str   s     '<###r   c                     | j         S )zGets the db_name of this GrantAccountPrivilegeRequest.  # noqa: E501


        :return: The db_name of this GrantAccountPrivilegeRequest.  # noqa: E501
        :rtype: str
        )r   r   s    r   r
   z$GrantAccountPrivilegeRequest.db_name   s     }r   c                 N    | j         j        r|t          d          || _        dS )zSets the db_name of this GrantAccountPrivilegeRequest.


        :param db_name: The db_name of this GrantAccountPrivilegeRequest.  # noqa: E501
        :type: str
        Nz/Invalid value for `db_name`, must not be `None`)r   r"   r#   r   )r   r
   s     r   r
   z$GrantAccountPrivilegeRequest.db_name   s1     5 	P'/NOOOr   c                     | j         S )zGets the instance_id of this GrantAccountPrivilegeRequest.  # noqa: E501


        :return: The instance_id of this GrantAccountPrivilegeRequest.  # noqa: E501
        :rtype: str
        )r   r   s    r   r   z(GrantAccountPrivilegeRequest.instance_id   s       r   c                 N    | j         j        r|t          d          || _        dS )zSets the instance_id of this GrantAccountPrivilegeRequest.


        :param instance_id: The instance_id of this GrantAccountPrivilegeRequest.  # noqa: E501
        :type: str
        Nz3Invalid value for `instance_id`, must not be `None`)r   r"   r#   r   )r   r   s     r   r   z(GrantAccountPrivilegeRequest.instance_id   s5     5 	T+:MRSSS'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hasattrr8   )xs    r   <lambda>z6GrantAccountPrivilegeRequest.to_dict.<locals>.<lambda>   s!    WQ	-B-BIaiikkk r   r8   c                 v    t          | d         d          r"| d         | d                                         fn| S )N   r8   r   r9   )items    r   r<   z6GrantAccountPrivilegeRequest.to_dict.<locals>.<lambda>   s<    tAw	22"=$q'47??+<+<!=!=8< r   )six	iteritemsswagger_typesgetattr
isinstancelistmapr:   r8   dictitems
issubclassr   )r   resultattr_valuekeys         r   r8   z$GrantAccountPrivilegeRequest.to_dict   s,   }T%788 	% 	%GD!D$''E%&& %#CII% %    t 	** 	%$}}tE4(( %#C= =KKMM% %    t  %t2D99 	$"jjll $ $
U#sr   c                 N    t          j        |                                           S )z.Returns the string representation of the model)pprintpformatr8   r   s    r   to_strz#GrantAccountPrivilegeRequest.to_str   s    ~dllnn---r   c                 *    |                                  S )zFor `print` and `pprint`)rR   r   s    r   __repr__z%GrantAccountPrivilegeRequest.__repr__   s    {{}}r   c                     t          |t                    sdS |                                 |                                k    S )z&Returns true if both objects are equalFrD   r   r8   r   others     r   __eq__z#GrantAccountPrivilegeRequest.__eq__   s5    %!=>> 	5||~~00r   c                     t          |t                    sdS |                                 |                                k    S )z*Returns true if both objects are not equalTrV   rW   s     r   __ne__z#GrantAccountPrivilegeRequest.__ne__   s5    %!=>> 	4||~~00r   )NNNNNN)__name__
__module____qualname____doc__rB   attribute_mapr   propertyr   setterr   r	   r
   r   r8   rR   rT   rY   r[    r   r   r   r      s        
 "!& M &/!6# M' ' ' '* " " X" * * *$ ' ' X' 4 4 4" + + X+ !< < "!<   X ^
  
  ^
  ! ! X! 
( 
( 
(  6. . .  1 1 11 1 1 1 1r   r   )r_   rP   rer@   volcenginesdkcore.configurationr   objectr   rc   r   r   <module>rg      s|      				 



 9 9 9 9 9 9]1 ]1 ]1 ]1 ]16 ]1 ]1 ]1 ]1 ]1r   