
    mi                     F    d dl Z d dlZd dlZd dlmZ  G d de          ZdS )    N)DatasetColumnc                       e Zd ZdZddddZddddZdd	Zed
             Zej	        d             Zed             Z
e
j	        d             Z
ed             Zej	        d             Zd Zd Zd Zd Zd ZdS )
UploadFilea  
    Attributes:
      column_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    strzlist[DatasetColumn])tokendescriptioncolumnsr   r   r	   Nc                 x    d| _         d| _        d| _        d| _        ||| _        ||| _        |	|| _        dS dS )z'UploadFile - a model defined in SwaggerN)_token_description_columnsdiscriminatorr   r   r	   )selfr   r   r	   s       q/var/www/html/bestrading.cuttalo.com/scripts/kaggle-env/lib/python3.11/site-packages/kaggle/models/upload_file.py__init__zUploadFile.__init__(   sV      !DJ"*D"DLLL     c                     | j         S )zGets the token of this UploadFile.  # noqa: E501.

        A token referencing a specific file upload that can be used across
        requests  # noqa: E501

        :return: The token of this UploadFile.  # noqa: E501
        :rtype: str
        r   r   s    r   r   zUploadFile.token7   s     {r   c                     || _         dS )zSets the token of this UploadFile.

        A token referencing a specific file upload that can be used across
        requests  # noqa: E501

        :param token: The token of this UploadFile.  # noqa: E501
        :type: str
        Nr   )r   r   s     r   r   zUploadFile.tokenC   s     r   c                     | j         S )zGets the description of this UploadFile.  # noqa: E501.

        The file description  # noqa: E501

        :return: The description of this UploadFile.  # noqa: E501
        :rtype: str
        r   r   s    r   r   zUploadFile.descriptionP   s       r   c                     || _         dS )zSets the description of this UploadFile.

        The file description  # noqa: E501

        :param description: The description of this UploadFile. # noqa: E501
        :type: str
        Nr   )r   r   s     r   r   zUploadFile.description[   s     (r   c                     | j         S )zGets the columns of this UploadFile.  # noqa: E501.

        A list of dataset column metadata  # noqa: E501

        :return: The columns of this UploadFile.  # noqa: E501
        :rtype: list[DatasetColumn]
        r   r   s    r   r	   zUploadFile.columnsg   s     }r   c                     || _         dS )zSets the columns of this UploadFile.

        A list of dataset column metadata  # noqa: E501

        :param columns: The columns of this UploadFile.  # noqa: E501
        :type: list[DatasetColumn]
        Nr   )r   r	   s     r   r	   zUploadFile.columnsr   s      r   c                    i }t          j        | j                  D ]\  }}t          | |          }t	          |t
                    r"t          t          d |                    ||<   Lt          |d          r|                                ||<   tt	          |t                    r4t          t          d |
                                                    ||<   |||<   |S )z'Returns the model properties as a dict.c                 N    t          | d          r|                                 n| S )Nto_dicthasattrr   )xs    r   <lambda>z$UploadFile.to_dict.<locals>.<lambda>   s"    IAVAV2]!))+++\] r   r   c                 v    t          | d         d          r"| d         | d                                         fn| S )N   r   r   r    )items    r   r#   z$UploadFile.to_dict.<locals>.<lambda>   s8    WTRSWV_E`E`%jd1gtAw/@/@%A%Afj r   )six	iteritemscolumn_typesgetattr
isinstancelistmapr!   r   dictitems)r   resultattr_values        r   r   zUploadFile.to_dict~   s    }T%677 	% 	%GD!D$''E%&& %#C(](]_d$e$efft	** 
%$}}tE4(( %#jj    t  %tr   c                 N    t          j        |                                           S )z/Returns the string representation of the model.)pprintpformatr   r   s    r   to_strzUploadFile.to_str   s    ~dllnn---r   c                 *    |                                  S )zFor `print` and `pprint`)r7   r   s    r   __repr__zUploadFile.__repr__   s    {{}}r   c                 P    t          |t                    sdS | j        |j        k    S )z'Returns true if both objects are equal.F)r+   r   __dict__r   others     r   __eq__zUploadFile.__eq__   s(    %,, 	5}..r   c                     | |k     S )z+Returns true if both objects are not equal. r<   s     r   __ne__zUploadFile.__ne__   s    5=  r   )NNN)__name__
__module____qualname____doc__r)   attribute_mapr   propertyr   setterr   r	   r   r7   r9   r>   rA   r@   r   r   r   r      sI         #5EZ[[L%mPYZZM# # # # 	 	 X	 \
 
 \
 ! ! X! 	( 	( 	(   X ^	  	  ^	   ,. . .  / / /! ! ! ! !r   r   )r5   rer'   kaggle.models.dataset_columnr   objectr   r@   r   r   <module>rL      sr   &  				 



 6 6 6 6 6 6J! J! J! J! J! J! J! J! J! J!r   