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                   @   sd   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d
d„ Z	dd„ Z
dd„ ZdS )ÚDimensionDetailsz%
    A dimension name and value.
    c                 K   s(   dddœ| _ dddœ| _d| _d| _dS )a  
        Initializes a new DimensionDetails object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

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

        :param dimension_value:
            The value to assign to the dimension_value property of this DimensionDetails.
        :type dimension_value: oci.sch.models.DimensionValueDetails

        ÚstrZDimensionValueDetails)ÚnameÚdimension_valuer   ZdimensionValueN)Zswagger_typesZattribute_mapÚ_nameÚ_dimension_value)ÚselfÚkwargs© r   úDusr/lib/python3.10/site-packages/oci/sch/models/dimension_details.pyÚ__init__   s   þþ
zDimensionDetails.__init__c                 C   ó   | j S )a\  
        **[Required]** Gets the name of this DimensionDetails.
        Dimension key. A valid dimension key includes only printable ASCII, excluding periods (.) and spaces.
        Custom dimension keys are acceptable. Avoid entering confidential information.
        Due to use by Service Connector Hub, the following dimension names are reserved: `connectorId`, `connectorName`, `connectorSourceType`.
        For information on valid dimension keys and values, see :func:`metric_data_details`.
        Example: `type`


        :return: The name of this DimensionDetails.
        :rtype: str
        ©r
   ©r   r   r   r   r   -   s   zDimensionDetails.namec                 C   ó
   || _ dS )aP  
        Sets the name of this DimensionDetails.
        Dimension key. A valid dimension key includes only printable ASCII, excluding periods (.) and spaces.
        Custom dimension keys are acceptable. Avoid entering confidential information.
        Due to use by Service Connector Hub, the following dimension names are reserved: `connectorId`, `connectorName`, `connectorSourceType`.
        For information on valid dimension keys and values, see :func:`metric_data_details`.
        Example: `type`


        :param name: The name of this DimensionDetails.
        :type: str
        Nr   )r   r   r   r   r   r   =   s   
c                 C   r   )zÈ
        **[Required]** Gets the dimension_value of this DimensionDetails.

        :return: The dimension_value of this DimensionDetails.
        :rtype: oci.sch.models.DimensionValueDetails
        ©r   r   r   r   r   r	   M   s   z DimensionDetails.dimension_valuec                 C   r   )zÇ
        Sets the dimension_value of this DimensionDetails.

        :param dimension_value: The dimension_value of this DimensionDetails.
        :type: oci.sch.models.DimensionValueDetails
        Nr   )r   r	   r   r   r   r	   W   s   
c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__a   s   zDimensionDetails.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__d   s   zDimensionDetails.__eq__c                 C   s
   | |k S r   r   r   r   r   r   Ú__ne__j   s   
zDimensionDetails.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú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   