o
    ɶd!                     @   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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edd Zejdd Zdd  Zd!d" Zd#d$ Zd%S )&Indexz%
    Information about an index.
    CREATINGUPDATINGACTIVEDELETINGDELETEDFAILEDc                 K   sZ   dddddddd| _ dddddd	d
d| _d| _d| _d| _d| _d| _d| _d| _dS )al  
        Initializes a new Index object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param name:
            The value to assign to the name property of this Index.
        :type name: str

        :param compartment_id:
            The value to assign to the compartment_id property of this Index.
        :type compartment_id: str

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

        :param table_id:
            The value to assign to the table_id property of this Index.
        :type table_id: str

        :param keys:
            The value to assign to the keys property of this Index.
        :type keys: list[oci.nosql.models.IndexKey]

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Index.
            Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

        :param lifecycle_details:
            The value to assign to the lifecycle_details property of this Index.
        :type lifecycle_details: str

        strzlist[IndexKey])namecompartment_id
table_nametable_idkeyslifecycle_statelifecycle_detailsr   ZcompartmentIdZ	tableNameZtableIdr   ZlifecycleStateZlifecycleDetailsN)	Zswagger_typesZattribute_map_name_compartment_id_table_name	_table_id_keys_lifecycle_state_lifecycle_details)selfkwargs r   :usr/lib/python3.10/site-packages/oci/nosql/models/index.py__init__*   s.   %

zIndex.__init__c                 C      | j S )z
        Gets the name of this Index.
        Index name.


        :return: The name of this Index.
        :rtype: str
        r   r   r   r   r   r   j      
z
Index.namec                 C   
   || _ dS )z
        Sets the name of this Index.
        Index name.


        :param name: The name of this Index.
        :type: str
        Nr"   )r   r   r   r   r   r   v      

c                 C   r!   )z
        Gets the compartment_id of this Index.
        Compartment Identifier.


        :return: The compartment_id of this Index.
        :rtype: str
        r   r#   r   r   r   r      r$   zIndex.compartment_idc                 C   r%   )z
        Sets the compartment_id of this Index.
        Compartment Identifier.


        :param compartment_id: The compartment_id of this Index.
        :type: str
        Nr'   )r   r   r   r   r   r      r&   c                 C   r!   )z
        Gets the table_name of this Index.
        The name of the table to which this index belongs.


        :return: The table_name of this Index.
        :rtype: str
        r   r#   r   r   r   r      r$   zIndex.table_namec                 C   r%   )z
        Sets the table_name of this Index.
        The name of the table to which this index belongs.


        :param table_name: The table_name of this Index.
        :type: str
        Nr(   )r   r   r   r   r   r      r&   c                 C   r!   )z
        Gets the table_id of this Index.
        the OCID of the table to which this index belongs.


        :return: The table_id of this Index.
        :rtype: str
        r   r#   r   r   r   r      r$   zIndex.table_idc                 C   r%   )z
        Sets the table_id of this Index.
        the OCID of the table to which this index belongs.


        :param table_id: The table_id of this Index.
        :type: str
        Nr)   )r   r   r   r   r   r      r&   c                 C   r!   )z
        Gets the keys of this Index.
        A set of keys for a secondary index.


        :return: The keys of this Index.
        :rtype: list[oci.nosql.models.IndexKey]
        r   r#   r   r   r   r      r$   z
Index.keysc                 C   r%   )z
        Sets the keys of this Index.
        A set of keys for a secondary index.


        :param keys: The keys of this Index.
        :type: list[oci.nosql.models.IndexKey]
        Nr*   )r   r   r   r   r   r      r&   c                 C   r!   )a  
        Gets the lifecycle_state of this Index.
        The state of an index.

        Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lifecycle_state of this Index.
        :rtype: str
        )r   r#   r   r   r   r      s   zIndex.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )z
        Sets the lifecycle_state of this Index.
        The state of an index.


        :param lifecycle_state: The lifecycle_state of this Index.
        :type: str
        )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 lifecycle_details of this Index.
        A message describing the current state in more detail.


        :return: The lifecycle_details of this Index.
        :rtype: str
        r   r#   r   r   r   r      r$   zIndex.lifecycle_detailsc                 C   r%   )z
        Sets the lifecycle_details of this Index.
        A message describing the current state in more detail.


        :param lifecycle_details: The lifecycle_details of this Index.
        :type: str
        Nr+   )r   r   r   r   r   r     r&   c                 C   s   t | S N)r   r#   r   r   r   __repr__  s   zIndex.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r   otherr   r   r   __eq__  s   zIndex.__eq__c                 C   s
   | |k S r,   r   r/   r   r   r   __ne__!  s   
zIndex.__ne__N)__name__
__module____qualname____doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILEDr    propertyr   setterr   r   r   r   r   r   r-   r1   r2   r   r   r   r   r      sP    @













r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r   r   r   r   <module>   s   