ruạṛ
a M��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 @ s� e Zd ZdZdZdZdd� Zedd� �Zej dd� �Zed d � �Z e j dd � �Z edd � �Zej dd � �Zdd� Zdd� Z dd� ZdS )� Dimensionsz) The width and height of a page. �PIXEL�INCHc K s2 dddd�| _ dddd�| _d| _d| _d| _dS )az 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" :type unit: str �float�str)�width�height�unitr r r N)� swagger_types� attribute_map�_width�_height�_unit)�self�kwargs� r ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/ai_document/models/dimensions.py�__init__ s ��zDimensions.__init__c C s | 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 ; s zDimensions.widthc C s || _ dS )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 G s c C s | j S )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 S s zDimensions.heightc C s || _ dS )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 _ s c C s | j S )z� **[Required]** Gets the unit of this Dimensions. The unit of length. Allowed values for this property are: "PIXEL", "INCH" :return: The unit of this Dimensions. :rtype: str )r r r r r r k s zDimensions.unitc C s* ddg}t ||�s td�|���|| _dS )z� Sets the unit of this Dimensions. The unit of length. :param unit: The unit of this Dimensions. :type: str r r z4Invalid value for `unit`, must be None or one of {0}N)r � ValueError�formatr )r r �allowed_valuesr r r r y s ��c C s t | �S �N)r r r r r �__repr__� s zDimensions.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zDimensions.__eq__c C s | |k S r r r! r r r �__ne__� s zDimensions.__ne__N)�__name__� __module__�__qualname__�__doc__� UNIT_PIXEL� UNIT_INCHr �propertyr �setterr r r r# r$ r r r r r s&