o
    ɶdt                     @   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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 )
Dimensionsz)
    The width and height of a page.
    PIXELINCHc                 K   s2   dddd| _ dddd| _d| _d| _d| _dS )a  
        Initializes a new Dimensions object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param width:
            The value to assign to the width property of this Dimensions.
        :type width: float

        :param height:
            The value to assign to the height property of this Dimensions.
        :type height: float

        :param unit:
            The value to assign to the unit property of this Dimensions.
            Allowed values for this property are: "PIXEL", "INCH", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type unit: str

        floatstr)widthheightunitr   r   r   N)Zswagger_typesZattribute_map_width_height_unit)selfkwargs r   Eusr/lib/python3.10/site-packages/oci/ai_document/models/dimensions.py__init__   s   
zDimensions.__init__c                 C      | j S )z
        **[Required]** Gets the width of this Dimensions.
        the width of a page.


        :return: The width of this Dimensions.
        :rtype: float
        r   r   r   r   r   r   >      
zDimensions.widthc                 C   
   || _ dS )z
        Sets the width of this Dimensions.
        the width of a page.


        :param width: The width of this Dimensions.
        :type: float
        Nr   )r   r   r   r   r   r   J      

c                 C   r   )z
        **[Required]** Gets the height of this Dimensions.
        The height of a page.


        :return: The height of this Dimensions.
        :rtype: float
        r   r   r   r   r   r   V   r   zDimensions.heightc                 C   r   )z
        Sets the height of this Dimensions.
        The height of a page.


        :param height: The height of this Dimensions.
        :type: float
        Nr   )r   r   r   r   r   r   b   r   c                 C   r   )aV  
        **[Required]** Gets the unit of this Dimensions.
        The unit of length.

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


        :return: The unit of this Dimensions.
        :rtype: str
        )r   r   r   r   r   r   n   s   zDimensions.unitc                 C   s    ddg}t ||sd}|| _dS )z
        Sets the unit of this Dimensions.
        The unit of length.


        :param unit: The unit of this Dimensions.
        :type: str
        r   r   ZUNKNOWN_ENUM_VALUEN)r   r   )r   r   Zallowed_valuesr   r   r   r   }   s   


c                 C   s   t | S N)r   r   r   r   r   __repr__   s   zDimensions.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r   otherr   r   r   __eq__   s   zDimensions.__eq__c                 C   s
   | |k S r   r   r    r   r   r   __ne__   s   
zDimensions.__ne__N)__name__
__module____qualname____doc__Z
UNIT_PIXELZ	UNIT_INCHr   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   