o
    ɶdt#                     @   s8   d dl mZmZmZ d dlmZ eG dd deZdS )    )formatted_flat_dictNONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc                   @   s   e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
Zdd Zedd Zejdd Zedd Zejdd Zedd Zejdd Zedd Zejdd Zedd Zejdd Zedd Zejdd Zdd  Zd!d" Zd#d$ Zd%S )&StatementSummaryzA
    Information derived from parsing a NoSQL SQL statement.
    CREATE_TABLEALTER_TABLE
DROP_TABLECREATE_INDEX
DROP_INDEXSELECTUPDATEINSERTDELETEc                 K   sP   ddddddd| _ dddddd	d| _d
| _d
| _d
| _d
| _d
| _d
| _d
S )a`  
        Initializes a new StatementSummary object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param operation:
            The value to assign to the operation property of this StatementSummary.
            Allowed values for this property are: "CREATE_TABLE", "ALTER_TABLE", "DROP_TABLE", "CREATE_INDEX", "DROP_INDEX", "SELECT", "UPDATE", "INSERT", "DELETE", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type operation: str

        :param table_name:
            The value to assign to the table_name property of this StatementSummary.
        :type table_name: str

        :param index_name:
            The value to assign to the index_name property of this StatementSummary.
        :type index_name: str

        :param is_if_exists:
            The value to assign to the is_if_exists property of this StatementSummary.
        :type is_if_exists: bool

        :param is_if_not_exists:
            The value to assign to the is_if_not_exists property of this StatementSummary.
        :type is_if_not_exists: bool

        :param syntax_error:
            The value to assign to the syntax_error property of this StatementSummary.
        :type syntax_error: str

        strbool)	operation
table_name
index_nameis_if_existsis_if_not_existssyntax_errorr   Z	tableNameZ	indexNameZ
isIfExistsZisIfNotExistsZsyntaxErrorN)Zswagger_typesZattribute_map
_operation_table_name_index_name_is_if_exists_is_if_not_exists_syntax_error)selfkwargs r    Fusr/lib/python3.10/site-packages/oci/nosql/models/statement_summary.py__init__6   s(   !
	
zStatementSummary.__init__c                 C      | j S )a  
        Gets the operation of this StatementSummary.
        The operation represented in the statement, e.g. CREATE_TABLE.

        Allowed values for this property are: "CREATE_TABLE", "ALTER_TABLE", "DROP_TABLE", "CREATE_INDEX", "DROP_INDEX", "SELECT", "UPDATE", "INSERT", "DELETE", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The operation of this StatementSummary.
        :rtype: str
        )r   r   r    r    r!   r   o   s   zStatementSummary.operationc                 C   s    g d}t ||sd}|| _dS )z
        Sets the operation of this StatementSummary.
        The operation represented in the statement, e.g. CREATE_TABLE.


        :param operation: The operation of this StatementSummary.
        :type: str
        )	r   r   r	   r
   r   r   r   r   r   ZUNKNOWN_ENUM_VALUEN)r   r   )r   r   Zallowed_valuesr    r    r!   r   ~   s   


c                 C   r#   )z
        Gets the table_name of this StatementSummary.
        The table name from the SQL statement.


        :return: The table_name of this StatementSummary.
        :rtype: str
        r   r$   r    r    r!   r         
zStatementSummary.table_namec                 C   
   || _ dS )z
        Sets the table_name of this StatementSummary.
        The table name from the SQL statement.


        :param table_name: The table_name of this StatementSummary.
        :type: str
        Nr%   )r   r   r    r    r!   r         

c                 C   r#   )z
        Gets the index_name of this StatementSummary.
        The index name from the SQL statement, if present.


        :return: The index_name of this StatementSummary.
        :rtype: str
        r   r$   r    r    r!   r      r&   zStatementSummary.index_namec                 C   r'   )z
        Sets the index_name of this StatementSummary.
        The index name from the SQL statement, if present.


        :param index_name: The index_name of this StatementSummary.
        :type: str
        Nr)   )r   r   r    r    r!   r      r(   c                 C   r#   )z
        Gets the is_if_exists of this StatementSummary.
        True if the statement includes "IF EXISTS."


        :return: The is_if_exists of this StatementSummary.
        :rtype: bool
        r   r$   r    r    r!   r      r&   zStatementSummary.is_if_existsc                 C   r'   )z
        Sets the is_if_exists of this StatementSummary.
        True if the statement includes "IF EXISTS."


        :param is_if_exists: The is_if_exists of this StatementSummary.
        :type: bool
        Nr*   )r   r   r    r    r!   r      r(   c                 C   r#   )z
        Gets the is_if_not_exists of this StatementSummary.
        True if the statement includes "IF NOT EXISTS."


        :return: The is_if_not_exists of this StatementSummary.
        :rtype: bool
        r   r$   r    r    r!   r      r&   z!StatementSummary.is_if_not_existsc                 C   r'   )z
        Sets the is_if_not_exists of this StatementSummary.
        True if the statement includes "IF NOT EXISTS."


        :param is_if_not_exists: The is_if_not_exists of this StatementSummary.
        :type: bool
        Nr+   )r   r   r    r    r!   r      r(   c                 C   r#   )z
        Gets the syntax_error of this StatementSummary.
        If present, indicates a syntax error in the statement.


        :return: The syntax_error of this StatementSummary.
        :rtype: str
        r   r$   r    r    r!   r      r&   zStatementSummary.syntax_errorc                 C   r'   )z
        Sets the syntax_error of this StatementSummary.
        If present, indicates a syntax error in the statement.


        :param syntax_error: The syntax_error of this StatementSummary.
        :type: str
        Nr,   )r   r   r    r    r!   r      r(   c                 C   s   t | S N)r   r$   r    r    r!   __repr__  s   zStatementSummary.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r   otherr    r    r!   __eq__  s   zStatementSummary.__eq__c                 C   s
   | |k S r-   r    r0   r    r    r!   __ne__  s   
zStatementSummary.__ne__N)__name__
__module____qualname____doc__ZOPERATION_CREATE_TABLEZOPERATION_ALTER_TABLEZOPERATION_DROP_TABLEZOPERATION_CREATE_INDEXZOPERATION_DROP_INDEXZOPERATION_SELECTZOPERATION_UPDATEZOPERATION_INSERTZOPERATION_DELETEr"   propertyr   setterr   r   r   r   r   r.   r2   r3   r    r    r    r!   r      sN    9











r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r    r    r    r!   <module>   s   