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                   @   sl   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
dd„ Zdd„ Zdd„ ZdS )ÚCapacityz\
    Service instance capacity metadata (e.g.: OLPU count, number of users, ...etc...).
    Ú
OLPU_COUNTÚ
USER_COUNTc                 K   s(   dddœ| _ dddœ| _d| _d| _dS )a­  
        Initializes a new Capacity object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param capacity_type:
            The value to assign to the capacity_type property of this Capacity.
            Allowed values for this property are: "OLPU_COUNT", "USER_COUNT", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type capacity_type: str

        :param capacity_value:
            The value to assign to the capacity_value property of this Capacity.
        :type capacity_value: int

        ÚstrÚint)Úcapacity_typeÚcapacity_valueZcapacityTypeZcapacityValueN)Zswagger_typesZattribute_mapÚ_capacity_typeÚ_capacity_value)ÚselfÚkwargs© r   úAusr/lib/python3.10/site-packages/oci/analytics/models/capacity.pyÚ__init__   s   þþ
zCapacity.__init__c                 C   ó   | j S )av  
        **[Required]** Gets the capacity_type of this Capacity.
        The capacity model to use.

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


        :return: The capacity_type of this Capacity.
        :rtype: str
        )r   ©r   r   r   r   r   7   s   zCapacity.capacity_typec                 C   s    ddg}t ||ƒsd}|| _dS )z´
        Sets the capacity_type of this Capacity.
        The capacity model to use.


        :param capacity_type: The capacity_type of this Capacity.
        :type: str
        r   r   ZUNKNOWN_ENUM_VALUEN)r   r   )r   r   Zallowed_valuesr   r   r   r   F   s   


c                 C   r   )aV  
        **[Required]** Gets the capacity_value of this Capacity.
        The capacity value selected (OLPU count, number of users, ...etc...). This parameter affects the
        number of CPUs, amount of memory or other resources allocated to the instance.


        :return: The capacity_value of this Capacity.
        :rtype: int
        ©r   r   r   r   r   r   U   s   zCapacity.capacity_valuec                 C   s
   || _ dS )aT  
        Sets the capacity_value of this Capacity.
        The capacity value selected (OLPU count, number of users, ...etc...). This parameter affects the
        number of CPUs, amount of memory or other resources allocated to the instance.


        :param capacity_value: The capacity_value of this Capacity.
        :type: int
        Nr   )r   r   r   r   r   r   b   s   
c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__o   s   zCapacity.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__r   s   zCapacity.__eq__c                 C   s
   | |k S r   r   r   r   r   r   Ú__ne__x   s   
zCapacity.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZCAPACITY_TYPE_OLPU_COUNTZCAPACITY_TYPE_USER_COUNTr   Úpropertyr   Úsetterr   r   r   r   r   r   r   r   r      s     



r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r   r   r   r   Ú<module>   s   