
    ~iD:                     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CreateDBEndpointRequestzsNOTE: 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_nameendpoint_typeinstance_idmaster_accept_read_requestsnodesread_write_modeAutoAddNewNodesConsistLevelConsistTimeoutConsistTimeoutActionDescriptionDistributedTransactionEndpointNameEndpointType
InstanceIdMasterAcceptReadRequestsNodesReadWriteModeNc                    |t                      }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        d| _
        d| _        d| _        d| _        d| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        || _        |	| _        |
|
| _        || _        |	|| _        dS dS )z4CreateDBEndpointRequest - a model defined in SwaggerN)r   _configuration_auto_add_new_nodes_consist_level_consist_timeout_consist_timeout_action_description_distributed_transaction_endpoint_name_endpoint_type_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/create_db_endpoint_request.py__init__z CreateDBEndpointRequest.__init__A   s#   !*__N,#' " $'+$ (,%"" ,0) $!)&8D#$!.D&#2D !-*@D'"*D".+BD($!.D*&&2/JD,
&#2D    '&    c                     | j         S )zGets the auto_add_new_nodes of this CreateDBEndpointRequest.  # noqa: E501


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


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


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


        :param consist_level: The consist_level of this CreateDBEndpointRequest.  # 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%CreateDBEndpointRequest.consist_level   s\     ;::6 	^33M~66  
 ,r3   c                     | j         S )zGets the consist_timeout of this CreateDBEndpointRequest.  # noqa: E501


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


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


        :return: The consist_timeout_action of this CreateDBEndpointRequest.  # noqa: E501
        :rtype: str
        )r&   r6   s    r1   r   z.CreateDBEndpointRequest.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 CreateDBEndpointRequest.


        :param consist_timeout_action: The consist_timeout_action of this CreateDBEndpointRequest.  # 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.CreateDBEndpointRequest.consist_timeout_action   s\     '66 	&n<<V.??  
 (>$$$r3   c                     | j         S )zGets the description of this CreateDBEndpointRequest.  # noqa: E501


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


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


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


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


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


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


        :return: The endpoint_type of this CreateDBEndpointRequest.  # noqa: E501
        :rtype: str
        )r*   r6   s    r1   r   z%CreateDBEndpointRequest.endpoint_type  r9   r3   c                     | j         j        r|t          d          dg}| j         j        r'||vr#t          d                    ||                    || _        dS )zSets the endpoint_type of this CreateDBEndpointRequest.


        :param endpoint_type: The endpoint_type of this CreateDBEndpointRequest.  # noqa: E501
        :type: str
        Nz5Invalid value for `endpoint_type`, must not be `None`Customz;Invalid value for `endpoint_type` ({0}), must be one of {1})r"   r>   r?   r@   r*   )r0   r   rA   s      r1   r   z%CreateDBEndpointRequest.endpoint_type  s{     5 	V-:OTUUU"6 	^33M~66  
 ,r3   c                     | j         S )zGets the instance_id of this CreateDBEndpointRequest.  # noqa: E501


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


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


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


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


        :return: The nodes of this CreateDBEndpointRequest.  # noqa: E501
        :rtype: str
        )r-   r6   s    r1   r   zCreateDBEndpointRequest.nodesV  s     {r3   c                 N    | j         j        r|t          d          || _        dS )zSets the nodes of this CreateDBEndpointRequest.


        :param nodes: The nodes of this CreateDBEndpointRequest.  # noqa: E501
        :type: str
        Nz-Invalid value for `nodes`, must not be `None`)r"   r>   r?   r-   )r0   r   s     r1   r   zCreateDBEndpointRequest.nodes`  s1     5 	N%-LMMMr3   c                     | j         S )zGets the read_write_mode of this CreateDBEndpointRequest.  # noqa: E501


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


        :param read_write_mode: The read_write_mode of this CreateDBEndpointRequest.  # 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'CreateDBEndpointRequest.read_write_modew  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hasattrrd   )xs    r1   <lambda>z1CreateDBEndpointRequest.to_dict.<locals>.<lambda>  s!    WQ	-B-BIaiikkk r3   rd   c                 v    t          | d         d          r"| d         | d                                         fn| S )N   rd   r   re   )items    r1   rh   z1CreateDBEndpointRequest.to_dict.<locals>.<lambda>  s<    tAw	22"=$q'47??+<+<!=!=8< r3   )six	iteritemsswagger_typesgetattr
isinstancelistmaprf   rd   dictitems
issubclassr   )r0   resultattr_valuekeys         r1   rd   zCreateDBEndpointRequest.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pformatrd   r6   s    r1   to_strzCreateDBEndpointRequest.to_str  s    ~dllnn---r3   c                 *    |                                  S )zFor `print` and `pprint`)r~   r6   s    r1   __repr__z CreateDBEndpointRequest.__repr__  s    {{}}r3   c                     t          |t                    sdS |                                 |                                k    S )z&Returns true if both objects are equalFrp   r   rd   r0   others     r1   __eq__zCreateDBEndpointRequest.__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CreateDBEndpointRequest.__ne__  s5    %!899 	4||~~00r3   )NNNNNNNNNNNNN)__name__
__module____qualname____doc__rn   attribute_mapr2   propertyr	   setterr
   r   r   r   r   r   r   r   r   r   r   rd   r~   r   r   r    r3   r1   r   r      s        
 % "'#)'-  M  0'+"8$#;''#'A* M(3 (3 (3 (3T ( ( 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|   rerl   volcenginesdkcore.configurationr   objectr   r   r3   r1   <module>r      s|      				 



 9 9 9 9 9 9b1 b1 b1 b1 b1f b1 b1 b1 b1 b1r3   