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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 )Columnz
    A column of a table.
    c                 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 Column 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 Column.
        :type name: str

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

        :param is_nullable:
            The value to assign to the is_nullable property of this Column.
        :type is_nullable: bool

        :param default_value:
            The value to assign to the default_value property of this Column.
        :type default_value: str

        :param is_as_uuid:
            The value to assign to the is_as_uuid property of this Column.
        :type is_as_uuid: bool

        :param is_generated:
            The value to assign to the is_generated property of this Column.
        :type is_generated: bool

        strbool)nametypeis_nullabledefault_value
is_as_uuidis_generatedr	   r
   Z
isNullabledefaultValueZisAsUuidZisGeneratedN)Zswagger_typesZattribute_map_name_type_is_nullable_default_value_is_as_uuid_is_generated)selfkwargs r   ;usr/lib/python3.10/site-packages/oci/nosql/models/column.py__init__   s(   
	
zColumn.__init__c                 C      | j S )z
        Gets the name of this Column.
        The column name.


        :return: The name of this Column.
        :rtype: str
        r   r   r   r   r   r	   I      
zColumn.namec                 C   
   || _ dS )z
        Sets the name of this Column.
        The column name.


        :param name: The name of this Column.
        :type: str
        Nr   )r   r	   r   r   r   r	   U      

c                 C   r   )z
        Gets the type of this Column.
        The column type.


        :return: The type of this Column.
        :rtype: str
        r   r   r   r   r   r
   a   r   zColumn.typec                 C   r   )z
        Sets the type of this Column.
        The column type.


        :param type: The type of this Column.
        :type: str
        Nr!   )r   r
   r   r   r   r
   m   r    c                 C   r   )z
        Gets the is_nullable of this Column.
        The column nullable flag.


        :return: The is_nullable of this Column.
        :rtype: bool
        r   r   r   r   r   r   y   r   zColumn.is_nullablec                 C   r   )z
        Sets the is_nullable of this Column.
        The column nullable flag.


        :param is_nullable: The is_nullable of this Column.
        :type: bool
        Nr"   )r   r   r   r   r   r      r    c                 C   r   )z
        Gets the default_value of this Column.
        The column default value.


        :return: The default_value of this Column.
        :rtype: str
        r   r   r   r   r   r      r   zColumn.default_valuec                 C   r   )z
        Sets the default_value of this Column.
        The column default value.


        :param default_value: The default_value of this Column.
        :type: str
        Nr#   )r   r   r   r   r   r      r    c                 C   r   )z
        Gets the is_as_uuid of this Column.
        True if the STRING column was declared AS UUID.


        :return: The is_as_uuid of this Column.
        :rtype: bool
        r   r   r   r   r   r      r   zColumn.is_as_uuidc                 C   r   )z
        Sets the is_as_uuid of this Column.
        True if the STRING column was declared AS UUID.


        :param is_as_uuid: The is_as_uuid of this Column.
        :type: bool
        Nr$   )r   r   r   r   r   r      r    c                 C   r   )z
        Gets the is_generated of this Column.
        True if the STRING AS UUID column is also GENERATED BY DEFAULT.


        :return: The is_generated of this Column.
        :rtype: bool
        r   r   r   r   r   r      r   zColumn.is_generatedc                 C   r   )z
        Sets the is_generated of this Column.
        True if the STRING AS UUID column is also GENERATED BY DEFAULT.


        :param is_generated: The is_generated of this Column.
        :type: bool
        Nr%   )r   r   r   r   r   r      r    c                 C   s   t | S N)r   r   r   r   r   __repr__   s   zColumn.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r   otherr   r   r   __eq__   s   zColumn.__eq__c                 C   s
   | |k S r&   r   r)   r   r   r   __ne__   s   
zColumn.__ne__N)__name__
__module____qualname____doc__r   propertyr	   setterr
   r   r   r   r   r'   r+   r,   r   r   r   r   r      s<    7











r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r   r   r   r   <module>   s   