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                   @   sV  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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ed$d% Zej	d&d% Zd'd( Zd)d* Zd+d, Zd-S ).ResourceSummaryz4
    The details of a resource under a service.
    INTERVAL
POINT_DATAc                 K   s   dddddddddddd| _ dddd	d
ddddddd| _d| _d| _d| _d| _d| _d| _d| _d| _	d| _
d| _d| _dS )aP  
        Initializes a new ResourceSummary object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

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

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

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

        :param usage_data_type:
            The value to assign to the usage_data_type property of this ResourceSummary.
            Allowed values for this property are: "INTERVAL", "POINT_DATA", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type usage_data_type: str

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

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

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

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

        :param is_purchased:
            The value to assign to the is_purchased property of this ResourceSummary.
        :type is_purchased: bool

        :param child_resources:
            The value to assign to the child_resources property of this ResourceSummary.
        :type child_resources: list[str]

        :param skus:
            The value to assign to the skus property of this ResourceSummary.
        :type skus: list[oci.usage.models.SkuProducts]

        strboolz	list[str]zlist[SkuProducts])daily_unit_display_namehourly_unit_display_nameraw_unit_display_nameusage_data_typenameservicenamedescriptioninstance_typeis_purchasedchild_resourcesskusZdailyUnitDisplayNameZhourlyUnitDisplayNameZrawUnitDisplayNameZusageDataTyper   r   r   ZinstanceTypeZisPurchasedZchildResourcesr   N)Zswagger_typesZattribute_map_daily_unit_display_name_hourly_unit_display_name_raw_unit_display_name_usage_data_type_name_servicename_description_instance_type_is_purchased_child_resources_skus)selfkwargs r#   Eusr/lib/python3.10/site-packages/oci/usage/models/resource_summary.py__init__   sF   5
zResourceSummary.__init__c                 C      | j S )z
        Gets the daily_unit_display_name of this ResourceSummary.
        Units to be used for daily aggregated data.


        :return: The daily_unit_display_name of this ResourceSummary.
        :rtype: str
        r   r!   r#   r#   r$   r   v      
z'ResourceSummary.daily_unit_display_namec                 C   
   || _ dS )z
        Sets the daily_unit_display_name of this ResourceSummary.
        Units to be used for daily aggregated data.


        :param daily_unit_display_name: The daily_unit_display_name of this ResourceSummary.
        :type: str
        Nr'   )r!   r   r#   r#   r$   r         

c                 C   r&   )z
        Gets the hourly_unit_display_name of this ResourceSummary.
        Units to be used for hourly aggregated data.


        :return: The hourly_unit_display_name of this ResourceSummary.
        :rtype: str
        r   r(   r#   r#   r$   r      r)   z(ResourceSummary.hourly_unit_display_namec                 C   r*   )z
        Sets the hourly_unit_display_name of this ResourceSummary.
        Units to be used for hourly aggregated data.


        :param hourly_unit_display_name: The hourly_unit_display_name of this ResourceSummary.
        :type: str
        Nr,   )r!   r   r#   r#   r$   r      r+   c                 C   r&   )z
        Gets the raw_unit_display_name of this ResourceSummary.
        Default units to use when unspecified.


        :return: The raw_unit_display_name of this ResourceSummary.
        :rtype: str
        r   r(   r#   r#   r$   r      r)   z%ResourceSummary.raw_unit_display_namec                 C   r*   )z
        Sets the raw_unit_display_name of this ResourceSummary.
        Default units to use when unspecified.


        :param raw_unit_display_name: The raw_unit_display_name of this ResourceSummary.
        :type: str
        Nr-   )r!   r   r#   r#   r$   r      r+   c                 C   r&   )a}  
        Gets the usage_data_type of this ResourceSummary.
        Usage data type of the resource.

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


        :return: The usage_data_type of this ResourceSummary.
        :rtype: str
        )r   r(   r#   r#   r$   r      s   zResourceSummary.usage_data_typec                 C   s    ddg}t ||sd}|| _dS )z
        Sets the usage_data_type of this ResourceSummary.
        Usage data type of the resource.


        :param usage_data_type: The usage_data_type of this ResourceSummary.
        :type: str
        r   r   ZUNKNOWN_ENUM_VALUEN)r   r   )r!   r   Zallowed_valuesr#   r#   r$   r      s   


c                 C   r&   )z
        Gets the name of this ResourceSummary.
        Name of the resource.


        :return: The name of this ResourceSummary.
        :rtype: str
        r   r(   r#   r#   r$   r      r)   zResourceSummary.namec                 C   r*   )z
        Sets the name of this ResourceSummary.
        Name of the resource.


        :param name: The name of this ResourceSummary.
        :type: str
        Nr.   )r!   r   r#   r#   r$   r      r+   c                 C   r&   )z
        Gets the servicename of this ResourceSummary.
        Name of the service.


        :return: The servicename of this ResourceSummary.
        :rtype: str
        r   r(   r#   r#   r$   r      r)   zResourceSummary.servicenamec                 C   r*   )z
        Sets the servicename of this ResourceSummary.
        Name of the service.


        :param servicename: The servicename of this ResourceSummary.
        :type: str
        Nr/   )r!   r   r#   r#   r$   r      r+   c                 C   r&   )z
        Gets the description of this ResourceSummary.
        Description of the resource.


        :return: The description of this ResourceSummary.
        :rtype: str
        r   r(   r#   r#   r$   r     r)   zResourceSummary.descriptionc                 C   r*   )z
        Sets the description of this ResourceSummary.
        Description of the resource.


        :param description: The description of this ResourceSummary.
        :type: str
        Nr0   )r!   r   r#   r#   r$   r     r+   c                 C   r&   )z
        Gets the instance_type of this ResourceSummary.
        Instance type for the resource.


        :return: The instance_type of this ResourceSummary.
        :rtype: str
        r   r(   r#   r#   r$   r   $  r)   zResourceSummary.instance_typec                 C   r*   )z
        Sets the instance_type of this ResourceSummary.
        Instance type for the resource.


        :param instance_type: The instance_type of this ResourceSummary.
        :type: str
        Nr1   )r!   r   r#   r#   r$   r   0  r+   c                 C   r&   )z
        Gets the is_purchased of this ResourceSummary.
        Indicates if the SKU was purchased


        :return: The is_purchased of this ResourceSummary.
        :rtype: bool
        r   r(   r#   r#   r$   r   <  r)   zResourceSummary.is_purchasedc                 C   r*   )z
        Sets the is_purchased of this ResourceSummary.
        Indicates if the SKU was purchased


        :param is_purchased: The is_purchased of this ResourceSummary.
        :type: bool
        Nr2   )r!   r   r#   r#   r$   r   H  r+   c                 C   r&   )z
        Gets the child_resources of this ResourceSummary.
        The details of any child resources.


        :return: The child_resources of this ResourceSummary.
        :rtype: list[str]
        r   r(   r#   r#   r$   r   T  r)   zResourceSummary.child_resourcesc                 C   r*   )z
        Sets the child_resources of this ResourceSummary.
        The details of any child resources.


        :param child_resources: The child_resources of this ResourceSummary.
        :type: list[str]
        Nr3   )r!   r   r#   r#   r$   r   `  r+   c                 C   r&   )z
        Gets the skus of this ResourceSummary.
        The details of resource Skus.


        :return: The skus of this ResourceSummary.
        :rtype: list[oci.usage.models.SkuProducts]
        r    r(   r#   r#   r$   r   l  r)   zResourceSummary.skusc                 C   r*   )z
        Sets the skus of this ResourceSummary.
        The details of resource Skus.


        :param skus: The skus of this ResourceSummary.
        :type: list[oci.usage.models.SkuProducts]
        Nr4   )r!   r   r#   r#   r$   r   x  r+   c                 C   s   t | S N)r   r(   r#   r#   r$   __repr__  s   zResourceSummary.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r!   otherr#   r#   r$   __eq__  s   zResourceSummary.__eq__c                 C   s
   | |k S r5   r#   r8   r#   r#   r$   __ne__  s   
zResourceSummary.__ne__N)__name__
__module____qualname____doc__ZUSAGE_DATA_TYPE_INTERVALZUSAGE_DATA_TYPE_POINT_DATAr%   propertyr   setterr   r   r   r   r   r   r   r   r   r   r6   r:   r;   r#   r#   r#   r$   r      sh    \





















r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r#   r#   r#   r$   <module>   s   