ruạṛ
a ���f� � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ sl e Zd ZdZdZdZdd� Zedd� �Zej dd� �Zed d � �Z e j dd � �Z dd � Zdd� Zdd� Z dS )�Capacityz\ Service instance capacity metadata (e.g.: OLPU count, number of users, ...etc...). � OLPU_COUNT� USER_COUNTc K s( ddd�| _ ddd�| _d| _d| _dS )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_valueZcapacityTypeZ capacityValueN)Z swagger_typesZ attribute_map�_capacity_type�_capacity_value)�self�kwargs� r �A/usr/lib/python3.9/site-packages/oci/analytics/models/capacity.py�__init__ s ��zCapacity.__init__c C s | j S )a� **[Required]** Gets the capacity_type of this Capacity. The capacity model to use. Accepted values are: OLPU_COUNT, USER_COUNT 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 zCapacity.capacity_typec C s ddg}t ||�sd}|| _dS )z� Sets the capacity_type of this Capacity. The capacity model to use. Accepted values are: OLPU_COUNT, USER_COUNT :param capacity_type: The capacity_type of this Capacity. :type: str r r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r H s c C s | j S )a} **[Required]** Gets the capacity_value of this Capacity. The capacity value selected, either the number of OCPUs (OLPU_COUNT) or the number of users (USER_COUNT). This parameter affects the number of OCPUs, amount of memory, and other resources allocated to the instance. :return: The capacity_value of this Capacity. :rtype: int �r r r r r r Y s zCapacity.capacity_valuec C s || _ dS )a{ Sets the capacity_value of this Capacity. The capacity value selected, either the number of OCPUs (OLPU_COUNT) or the number of users (USER_COUNT). This parameter affects the number of OCPUs, amount of memory, and other resources allocated to the instance. :param capacity_value: The capacity_value of this Capacity. :type: int Nr )r r r r r r f s c C s t | �S �N)r r r r r �__repr__s s zCapacity.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__v s zCapacity.__eq__c C s | |k S r r r r r r �__ne__| s zCapacity.__ne__N)�__name__� __module__�__qualname__�__doc__ZCAPACITY_TYPE_OLPU_COUNTZCAPACITY_TYPE_USER_COUNTr �propertyr �setterr r r r r r r r r s r N)Zoci.utilr r r Zoci.decoratorsr �objectr r r r r �<module> s
cải xoăn