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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 )ÚTableLimitszA
    Throughput and storage limits configuration of a table.
    ÚPROVISIONEDÚ	ON_DEMANDc                 K   s<   dddddœ| _ dddddœ| _d| _d| _d| _d| _dS )	aô  
        Initializes a new TableLimits object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param max_read_units:
            The value to assign to the max_read_units property of this TableLimits.
        :type max_read_units: int

        :param max_write_units:
            The value to assign to the max_write_units property of this TableLimits.
        :type max_write_units: int

        :param max_storage_in_g_bs:
            The value to assign to the max_storage_in_g_bs property of this TableLimits.
        :type max_storage_in_g_bs: int

        :param capacity_mode:
            The value to assign to the capacity_mode property of this TableLimits.
            Allowed values for this property are: "PROVISIONED", "ON_DEMAND", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type capacity_mode: str

        ÚintÚstr)Úmax_read_unitsÚmax_write_unitsÚmax_storage_in_g_bsÚcapacity_modeZmaxReadUnitsZmaxWriteUnitsZmaxStorageInGBsZcapacityModeN)Zswagger_typesZattribute_mapÚ_max_read_unitsÚ_max_write_unitsÚ_max_storage_in_g_bsÚ_capacity_mode)ÚselfÚkwargs© r   úAusr/lib/python3.10/site-packages/oci/nosql/models/table_limits.pyÚ__init__   s   üü
zTableLimits.__init__c                 C   ó   | j S )zÛ
        **[Required]** Gets the max_read_units of this TableLimits.
        Maximum sustained read throughput limit for the table.


        :return: The max_read_units of this TableLimits.
        :rtype: int
        ©r   ©r   r   r   r   r   E   ó   
zTableLimits.max_read_unitsc                 C   ó
   || _ dS )zÙ
        Sets the max_read_units of this TableLimits.
        Maximum sustained read throughput limit for the table.


        :param max_read_units: The max_read_units of this TableLimits.
        :type: int
        Nr   )r   r   r   r   r   r   Q   ó   

c                 C   r   )zÞ
        **[Required]** Gets the max_write_units of this TableLimits.
        Maximum sustained write throughput limit for the table.


        :return: The max_write_units of this TableLimits.
        :rtype: int
        ©r   r   r   r   r   r   ]   r   zTableLimits.max_write_unitsc                 C   r   )zÝ
        Sets the max_write_units of this TableLimits.
        Maximum sustained write throughput limit for the table.


        :param max_write_units: The max_write_units of this TableLimits.
        :type: int
        Nr   )r   r   r   r   r   r   i   r   c                 C   r   )zÙ
        **[Required]** Gets the max_storage_in_g_bs of this TableLimits.
        Maximum size of storage used by the table.


        :return: The max_storage_in_g_bs of this TableLimits.
        :rtype: int
        ©r   r   r   r   r   r   u   r   zTableLimits.max_storage_in_g_bsc                 C   r   )zÜ
        Sets the max_storage_in_g_bs of this TableLimits.
        Maximum size of storage used by the table.


        :param max_storage_in_g_bs: The max_storage_in_g_bs of this TableLimits.
        :type: int
        Nr   )r   r   r   r   r   r      r   c                 C   r   )aó  
        Gets the capacity_mode of this TableLimits.
        The capacity mode of the table.  If capacityMode = ON_DEMAND,
        maxReadUnits and maxWriteUnits are not used, and both will have
        the value of zero.

        Allowed values for this property are: "PROVISIONED", "ON_DEMAND", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The capacity_mode of this TableLimits.
        :rtype: str
        )r   r   r   r   r   r      s   zTableLimits.capacity_modec                 C   s    ddg}t ||ƒsd}|| _dS )a@  
        Sets the capacity_mode of this TableLimits.
        The capacity mode of the table.  If capacityMode = ON_DEMAND,
        maxReadUnits and maxWriteUnits are not used, and both will have
        the value of zero.


        :param capacity_mode: The capacity_mode of this TableLimits.
        :type: str
        r   r   ZUNKNOWN_ENUM_VALUEN)r   r   )r   r   Zallowed_valuesr   r   r   r   ž   s   

c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__¯   s   zTableLimits.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__²   s   zTableLimits.__eq__c                 C   s
   | |k S r    r   r#   r   r   r   Ú__ne__¸   s   
zTableLimits.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZCAPACITY_MODE_PROVISIONEDZCAPACITY_MODE_ON_DEMANDr   Úpropertyr   Úsetterr   r   r   r!   r%   r&   r   r   r   r   r      s0    +







r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r   r   r   r   Ú<module>   s   