
    ~i58                     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
    vedbm

    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ddddddZdddd	d
ddddddddZd1d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d, Zd- Zd. Zd/ Zd0 ZdS )2ModifyDBEndpointRequestzsNOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    boolstrint)auto_add_new_nodesconsist_levelconsist_timeoutconsist_timeout_actiondescriptiondistributed_transactionendpoint_idendpoint_nameinstance_idmaster_accept_read_requestsnodesread_write_modeAutoAddNewNodesConsistLevelConsistTimeoutConsistTimeoutActionDescriptionDistributedTransaction
EndpointIdEndpointName
InstanceIdMasterAcceptReadRequestsNodesReadWriteModeNc                    |t                      }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        d| _
        d| _        d| _        d| _        d| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        || _        ||| _        |	| _        |
|
| _        ||| _        |	|| _        dS dS )z4ModifyDBEndpointRequest - a model defined in SwaggerN)r   _configuration_auto_add_new_nodes_consist_level_consist_timeout_consist_timeout_action_description_distributed_transaction_endpoint_id_endpoint_name_instance_id_master_accept_read_requests_nodes_read_write_modediscriminatorr	   r
   r   r   r   r   r   r   r   r   r   r   )selfr	   r
   r   r   r   r   r   r   r   r   r   r   r"   s                 }/root/.openclaw/workspace/.venvs/ark-sdk/lib/python3.11/site-packages/volcenginesdkvedbm/models/modify_db_endpoint_request.py__init__z ModifyDBEndpointRequest.__init__A   s)   !*__N,#' " $'+$ (,% " ,0) $!)&8D#$!.D&#2D !-*@D'"*D".+BD(&$!.D&&2/JD,DJ&#2D    '&    c                     | j         S )zGets the auto_add_new_nodes of this ModifyDBEndpointRequest.  # noqa: E501


        :return: The auto_add_new_nodes of this ModifyDBEndpointRequest.  # noqa: E501
        :rtype: bool
        r#   r0   s    r1   r	   z*ModifyDBEndpointRequest.auto_add_new_nodesl   s     ''r3   c                     || _         dS )zSets the auto_add_new_nodes of this ModifyDBEndpointRequest.


        :param auto_add_new_nodes: The auto_add_new_nodes of this ModifyDBEndpointRequest.  # noqa: E501
        :type: bool
        Nr5   )r0   r	   s     r1   r	   z*ModifyDBEndpointRequest.auto_add_new_nodesv   s     $6   r3   c                     | j         S )zGets the consist_level of this ModifyDBEndpointRequest.  # noqa: E501


        :return: The consist_level of this ModifyDBEndpointRequest.  # noqa: E501
        :rtype: str
        )r$   r6   s    r1   r
   z%ModifyDBEndpointRequest.consist_level        ""r3   c                     g d}| j         j        r'||vr#t          d                    ||                    || _        dS )zSets the consist_level of this ModifyDBEndpointRequest.


        :param consist_level: The consist_level of this ModifyDBEndpointRequest.  # noqa: E501
        :type: str
        )EventualGlobalSessionz;Invalid value for `consist_level` ({0}), must be one of {1}N)r"   client_side_validation
ValueErrorformatr$   )r0   r
   allowed_valuess      r1   r
   z%ModifyDBEndpointRequest.consist_level   s\     ;::6 	^33M~66  
 ,r3   c                     | j         S )zGets the consist_timeout of this ModifyDBEndpointRequest.  # noqa: E501


        :return: The consist_timeout of this ModifyDBEndpointRequest.  # noqa: E501
        :rtype: int
        r%   r6   s    r1   r   z'ModifyDBEndpointRequest.consist_timeout        $$r3   c                     || _         dS )zSets the consist_timeout of this ModifyDBEndpointRequest.


        :param consist_timeout: The consist_timeout of this ModifyDBEndpointRequest.  # noqa: E501
        :type: int
        NrC   )r0   r   s     r1   r   z'ModifyDBEndpointRequest.consist_timeout   s     !0r3   c                     | j         S )zGets the consist_timeout_action of this ModifyDBEndpointRequest.  # noqa: E501


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


        :param consist_timeout_action: The consist_timeout_action of this ModifyDBEndpointRequest.  # noqa: E501
        :type: str
        
ReadMasterReturnErrorzDInvalid value for `consist_timeout_action` ({0}), must be one of {1}N)r"   r>   r?   r@   r&   )r0   r   rA   s      r1   r   z.ModifyDBEndpointRequest.consist_timeout_action   s\     '66 	&n<<V.??  
 (>$$$r3   c                     | j         S )zGets the description of this ModifyDBEndpointRequest.  # noqa: E501


        :return: The description of this ModifyDBEndpointRequest.  # noqa: E501
        :rtype: str
        r'   r6   s    r1   r   z#ModifyDBEndpointRequest.description          r3   c                     || _         dS )zSets the description of this ModifyDBEndpointRequest.


        :param description: The description of this ModifyDBEndpointRequest.  # noqa: E501
        :type: str
        NrK   )r0   r   s     r1   r   z#ModifyDBEndpointRequest.description   s     (r3   c                     | j         S )zGets the distributed_transaction of this ModifyDBEndpointRequest.  # noqa: E501


        :return: The distributed_transaction of this ModifyDBEndpointRequest.  # noqa: E501
        :rtype: bool
        r(   r6   s    r1   r   z/ModifyDBEndpointRequest.distributed_transaction   s     ,,r3   c                     || _         dS )zSets the distributed_transaction of this ModifyDBEndpointRequest.


        :param distributed_transaction: The distributed_transaction of this ModifyDBEndpointRequest.  # noqa: E501
        :type: bool
        NrO   )r0   r   s     r1   r   z/ModifyDBEndpointRequest.distributed_transaction   s     )@%%%r3   c                     | j         S )zGets the endpoint_id of this ModifyDBEndpointRequest.  # noqa: E501


        :return: The endpoint_id of this ModifyDBEndpointRequest.  # noqa: E501
        :rtype: str
        )r)   r6   s    r1   r   z#ModifyDBEndpointRequest.endpoint_id   rL   r3   c                 N    | j         j        r|t          d          || _        dS )zSets the endpoint_id of this ModifyDBEndpointRequest.


        :param endpoint_id: The endpoint_id of this ModifyDBEndpointRequest.  # noqa: E501
        :type: str
        Nz3Invalid value for `endpoint_id`, must not be `None`)r"   r>   r?   r)   )r0   r   s     r1   r   z#ModifyDBEndpointRequest.endpoint_id  5     5 	T+:MRSSS'r3   c                     | j         S )zGets the endpoint_name of this ModifyDBEndpointRequest.  # noqa: E501


        :return: The endpoint_name of this ModifyDBEndpointRequest.  # noqa: E501
        :rtype: str
        r*   r6   s    r1   r   z%ModifyDBEndpointRequest.endpoint_name  r9   r3   c                     || _         dS )zSets the endpoint_name of this ModifyDBEndpointRequest.


        :param endpoint_name: The endpoint_name of this ModifyDBEndpointRequest.  # noqa: E501
        :type: str
        NrU   )r0   r   s     r1   r   z%ModifyDBEndpointRequest.endpoint_name  s     ,r3   c                     | j         S )zGets the instance_id of this ModifyDBEndpointRequest.  # noqa: E501


        :return: The instance_id of this ModifyDBEndpointRequest.  # noqa: E501
        :rtype: str
        )r+   r6   s    r1   r   z#ModifyDBEndpointRequest.instance_id$  rL   r3   c                 N    | j         j        r|t          d          || _        dS )zSets the instance_id of this ModifyDBEndpointRequest.


        :param instance_id: The instance_id of this ModifyDBEndpointRequest.  # noqa: E501
        :type: str
        Nz3Invalid value for `instance_id`, must not be `None`)r"   r>   r?   r+   )r0   r   s     r1   r   z#ModifyDBEndpointRequest.instance_id.  rS   r3   c                     | j         S )zGets the master_accept_read_requests of this ModifyDBEndpointRequest.  # noqa: E501


        :return: The master_accept_read_requests of this ModifyDBEndpointRequest.  # noqa: E501
        :rtype: bool
        r,   r6   s    r1   r   z3ModifyDBEndpointRequest.master_accept_read_requests;  s     00r3   c                     || _         dS )zSets the master_accept_read_requests of this ModifyDBEndpointRequest.


        :param master_accept_read_requests: The master_accept_read_requests of this ModifyDBEndpointRequest.  # noqa: E501
        :type: bool
        NrZ   )r0   r   s     r1   r   z3ModifyDBEndpointRequest.master_accept_read_requestsE  s     -H)))r3   c                     | j         S )zGets the nodes of this ModifyDBEndpointRequest.  # noqa: E501


        :return: The nodes of this ModifyDBEndpointRequest.  # noqa: E501
        :rtype: str
        r-   r6   s    r1   r   zModifyDBEndpointRequest.nodesP  s     {r3   c                     || _         dS )zSets the nodes of this ModifyDBEndpointRequest.


        :param nodes: The nodes of this ModifyDBEndpointRequest.  # noqa: E501
        :type: str
        Nr]   )r0   r   s     r1   r   zModifyDBEndpointRequest.nodesZ  s     r3   c                     | j         S )zGets the read_write_mode of this ModifyDBEndpointRequest.  # noqa: E501


        :return: The read_write_mode of this ModifyDBEndpointRequest.  # noqa: E501
        :rtype: str
        )r.   r6   s    r1   r   z'ModifyDBEndpointRequest.read_write_modee  rD   r3   c                     ddg}| j         j        r'||vr#t          d                    ||                    || _        dS )zSets the read_write_mode of this ModifyDBEndpointRequest.


        :param read_write_mode: The read_write_mode of this ModifyDBEndpointRequest.  # noqa: E501
        :type: str
        ReadOnly	ReadWritez=Invalid value for `read_write_mode` ({0}), must be one of {1}N)r"   r>   r?   r@   r.   )r0   r   rA   s      r1   r   z'ModifyDBEndpointRequest.read_write_modeo  s[     %k26 	~55O88  
 !0r3   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hasattrre   )xs    r1   <lambda>z1ModifyDBEndpointRequest.to_dict.<locals>.<lambda>  s!    WQ	-B-BIaiikkk r3   re   c                 v    t          | d         d          r"| d         | d                                         fn| S )N   re   r   rf   )items    r1   ri   z1ModifyDBEndpointRequest.to_dict.<locals>.<lambda>  s<    tAw	22"=$q'47??+<+<!=!=8< r3   )six	iteritemsswagger_typesgetattr
isinstancelistmaprg   re   dictitems
issubclassr   )r0   resultattr_valuekeys         r1   re   zModifyDBEndpointRequest.to_dict  s,   }T%788 	% 	%GD!D$''E%&& %#CII% %    t 	** 	%$}}tE4(( %#C= =KKMM% %    t  %t-t44 	$"jjll $ $
U#sr3   c                 N    t          j        |                                           S )z.Returns the string representation of the model)pprintpformatre   r6   s    r1   to_strzModifyDBEndpointRequest.to_str  s    ~dllnn---r3   c                 *    |                                  S )zFor `print` and `pprint`)r   r6   s    r1   __repr__z ModifyDBEndpointRequest.__repr__  s    {{}}r3   c                     t          |t                    sdS |                                 |                                k    S )z&Returns true if both objects are equalFrq   r   re   r0   others     r1   __eq__zModifyDBEndpointRequest.__eq__  s5    %!899 	5||~~00r3   c                     t          |t                    sdS |                                 |                                k    S )z*Returns true if both objects are not equalTr   r   s     r1   __ne__zModifyDBEndpointRequest.__ne__  s5    %!899 	4||~~00r3   )NNNNNNNNNNNNN)__name__
__module____qualname____doc__ro   attribute_mapr2   propertyr	   setterr
   r   r   r   r   r   r   r   r   r   r   re   r   r   r   r    r3   r1   r   r      s        
 % "'#)'-  M  0'+"8$#;#'#'A* M)3 )3 )3 )3V ( ( X( 6 6 6 # # X# , , ," % % X% 0 0 0 , , X, "> > #">" ! ! X! ( ( ( - - X- #@ @ $#@ ! ! X! 
( 
( 
( # # X# , , , ! ! X! 
( 
( 
( 1 1 X1 !'H H ('H   X \  \ % % X% 0 0 0"  6. . .  1 1 11 1 1 1 1r3   r   )r   r}   rerm   volcenginesdkcore.configurationr   objectr   r   r3   r1   <module>r      s|      				 



 9 9 9 9 9 9Z1 Z1 Z1 Z1 Z1f Z1 Z1 Z1 Z1 Z1r3   