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	dd Z
dd Zdd ZdS )OCPUsz
    The details of the available and consumed CPU cores of the Autonomous Exadata Infrastructure instance, including consumption by database workload type.
    c                 K   s2   dddd| _ dddd| _d| _d| _d| _dS )a  
        Initializes a new OCPUs object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param total_cpu:
            The value to assign to the total_cpu property of this OCPUs.
        :type total_cpu: float

        :param consumed_cpu:
            The value to assign to the consumed_cpu property of this OCPUs.
        :type consumed_cpu: float

        :param by_workload_type:
            The value to assign to the by_workload_type property of this OCPUs.
        :type by_workload_type: oci.database.models.WorkloadType

        floatZWorkloadType)	total_cpuconsumed_cpuby_workload_typeZtotalCpuZconsumedCpuZbyWorkloadTypeN)Zswagger_typesZattribute_map
_total_cpu_consumed_cpu_by_workload_type)selfkwargs r   >usr/lib/python3.10/site-packages/oci/database/models/ocp_us.py__init__   s   
zOCPUs.__init__c                 C      | j S )z
        Gets the total_cpu of this OCPUs.
        The total number of OCPUs in the Autonomous Exadata Infrastructure instance.


        :return: The total_cpu of this OCPUs.
        :rtype: float
        r   r   r   r   r   r   4      
zOCPUs.total_cpuc                 C   
   || _ dS )z
        Sets the total_cpu of this OCPUs.
        The total number of OCPUs in the Autonomous Exadata Infrastructure instance.


        :param total_cpu: The total_cpu of this OCPUs.
        :type: float
        Nr   )r   r   r   r   r   r   @      

c                 C   r   )z
        Gets the consumed_cpu of this OCPUs.
        The total number of consumed OCPUs in the Autonomous Exadata Infrastructure instance.


        :return: The consumed_cpu of this OCPUs.
        :rtype: float
        r   r   r   r   r   r	   L   r   zOCPUs.consumed_cpuc                 C   r   )z
        Sets the consumed_cpu of this OCPUs.
        The total number of consumed OCPUs in the Autonomous Exadata Infrastructure instance.


        :param consumed_cpu: The consumed_cpu of this OCPUs.
        :type: float
        Nr   )r   r	   r   r   r   r	   X   r   c                 C   r   )z
        Gets the by_workload_type of this OCPUs.

        :return: The by_workload_type of this OCPUs.
        :rtype: oci.database.models.WorkloadType
        r   r   r   r   r   r
   d   s   zOCPUs.by_workload_typec                 C   r   )z
        Sets the by_workload_type of this OCPUs.

        :param by_workload_type: The by_workload_type of this OCPUs.
        :type: oci.database.models.WorkloadType
        Nr   )r   r
   r   r   r   r
   n   s   
c                 C   s   t | S N)r   r   r   r   r   __repr__x   s   zOCPUs.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r   otherr   r   r   __eq__{   s   zOCPUs.__eq__c                 C   s
   | |k S r   r   r   r   r   r   __ne__   s   
zOCPUs.__ne__N)__name__
__module____qualname____doc__r   propertyr   setterr	   r
   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   