
    ni%                     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)
UploadFilec                      e Zd ZdZddddddddZddd	d
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ed             Zej	        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 )&DatasetNewVersionRequesta  
    Attributes:
      project_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[UploadFile]boolz	list[str])version_notessubtitledescriptionfilesconvert_to_csvcategory_idsdelete_old_versionsversionNotesr	   r
   r   convertToCsvcategoryIdsdeleteOldVersionsNTFc                     d | _         d | _        d | _        d | _        d | _        d | _        d | _        d | _        || _        ||| _	        ||| _
        || _        ||| _        ||| _        |	|| _        d S d S )N)_version_notes	_subtitle_description_files_convert_to_csv_category_ids_delete_old_versionsdiscriminatorr   r	   r
   r   r   r   r   )selfr   r	   r
   r   r   r   r   s           f/var/www/html/gpu-tools/venv/lib/python3.11/site-packages/kaggle/models/dataset_new_version_request.py__init__z!DatasetNewVersionRequest.__init__9   s     # #!$(!!*$DM"*D
%"0D# ,D*':D$$$ +*    c                     | j         S )a  Gets the version_notes of this DatasetNewVersionRequest.  # noqa:
        E501.

        The version notes for the new dataset version  # noqa: E501

        :return: The version_notes of this DatasetNewVersionRequest. #
            noqa: E501
        :rtype: str
        )r   r   s    r   r   z&DatasetNewVersionRequest.version_notesZ   s     ""r   c                 6    |t          d          || _        dS )a  Sets the version_notes of this DatasetNewVersionRequest.

        The version notes for the new dataset version  # noqa: E501

        :param version_notes: The version_notes of this
            DatasetNewVersionRequest. # noqa: E501
        :type: str
        Nz5Invalid value for `version_notes`, must not be `None`)
ValueErrorr   )r   r   s     r   r   z&DatasetNewVersionRequest.version_notesg   s'      TUUU+r   c                     | j         S )zGets the subtitle of this DatasetNewVersionRequest.  # noqa: E501.

        The subtitle to set on the dataset  # noqa: E501

        :return: The subtitle of this DatasetNewVersionRequest. # noqa:
            E501
        :rtype: str
        r   r!   s    r   r	   z!DatasetNewVersionRequest.subtitlev   s     ~r   c                     || _         dS )zSets the subtitle of this DatasetNewVersionRequest.

        The subtitle to set on the dataset  # noqa: E501

        :param subtitle: The subtitle of this DatasetNewVersionRequest.
            # noqa: E501
        :type: str
        Nr%   )r   r	   s     r   r	   z!DatasetNewVersionRequest.subtitle   s     "r   c                     | j         S )a  Gets the description of this DatasetNewVersionRequest.  # noqa:
        E501.

        The description to set on the dataset  # noqa: E501

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

        The description to set on the dataset  # noqa: E501

        :param description: The description of this
            DatasetNewVersionRequest. # noqa: E501
        :type: str
        Nr(   )r   r
   s     r   r
   z$DatasetNewVersionRequest.description   s     (r   c                     | j         S )a  Gets the files of this DatasetNewVersionRequest.  # noqa: E501.

        A list of files that should be associated with the dataset  #
        noqa: E501

        :return: The files of this DatasetNewVersionRequest. # noqa:
            E501
        :rtype: list[UploadFile]
        )r   r!   s    r   r   zDatasetNewVersionRequest.files   s     {r   c                 6    |t          d          || _        dS )a  Sets the files of this DatasetNewVersionRequest.

        A list of files that should be associated with the dataset  #
        noqa: E501

        :param files: The files of this DatasetNewVersionRequest. #
            noqa: E501
        :type: list[UploadFile]
        Nz-Invalid value for `files`, must not be `None`)r#   r   )r   r   s     r   r   zDatasetNewVersionRequest.files   s#     =LMMMr   c                     | j         S )a)  Gets the convert_to_csv of this DatasetNewVersionRequest.  # noqa:
        E501.

        Whether or not a tabular dataset should be converted to csv  #
        noqa: E501

        :return: The convert_to_csv of this DatasetNewVersionRequest. #
            noqa: E501
        :rtype: bool
        r   r!   s    r   r   z'DatasetNewVersionRequest.convert_to_csv   s     ##r   c                     || _         dS )a  Sets the convert_to_csv of this DatasetNewVersionRequest.

        Whether or not a tabular dataset should be converted to csv  #
        noqa: E501

        :param convert_to_csv: The convert_to_csv of this
            DatasetNewVersionRequest. # noqa: E501
        :type: bool
        Nr-   )r   r   s     r   r   z'DatasetNewVersionRequest.convert_to_csv   s      .r   c                     | j         S )a  Gets the category_ids of this DatasetNewVersionRequest.  # noqa:
        E501.

        A list of tag IDs to associated with the dataset  # noqa: E501

        :return: The category_ids of this DatasetNewVersionRequest. #
            noqa: E501
        :rtype: list[str]
        r   r!   s    r   r   z%DatasetNewVersionRequest.category_ids   s     !!r   c                     || _         dS )a  Sets the category_ids of this DatasetNewVersionRequest.

        A list of tag IDs to associated with the dataset  # noqa: E501

        :param category_ids: The category_ids of this
            DatasetNewVersionRequest. # noqa: E501
        :type: list[str]
        Nr0   )r   r   s     r   r   z%DatasetNewVersionRequest.category_ids   s     *r   c                     | j         S )a[  Gets the delete_old_versions of this DatasetNewVersionRequest.  #
        noqa: E501.

        Whether or not all previous versions of the dataset should be
        deleted upon creating the new version  # noqa: E501

        :return: The delete_old_versions of this
            DatasetNewVersionRequest. # noqa: E501
        :rtype: bool
        r   r!   s    r   r   z,DatasetNewVersionRequest.delete_old_versions   s     ((r   c                     || _         dS )aV  Sets the delete_old_versions of this DatasetNewVersionRequest.

        Whether or not all previous versions of the dataset should be
        deleted upon creating the new version  # noqa: E501

        :param delete_old_versions: The delete_old_versions of this
            DatasetNewVersionRequest. # noqa: E501
        :type: bool
        Nr3   )r   r   s     r   r   z,DatasetNewVersionRequest.delete_old_versions
  s     %8!!!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hasattrr7   )xs    r   <lambda>z2DatasetNewVersionRequest.to_dict.<locals>.<lambda>  s"    IAVAV2]!))+++\] r   r7   c                 v    t          | d         d          r"| d         | d                                         fn| S )N   r7   r   r8   )items    r   r;   z2DatasetNewVersionRequest.to_dict.<locals>.<lambda>%  s8    WTRSWV_E`E`%jd1gtAw/@/@%A%Afj r   )six	iteritemsproject_typesgetattr
isinstancelistmapr9   r7   dictitems)r   resultattr_values        r   r7   z DatasetNewVersionRequest.to_dict  s    }T%788 	% 	%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pformatr7   r!   s    r   to_strzDatasetNewVersionRequest.to_str.  s    ~dllnn---r   c                 *    |                                  S )zFor `print` and `pprint`)rO   r!   s    r   __repr__z!DatasetNewVersionRequest.__repr__2  s    {{}}r   c                 P    t          |t                    sdS | j        |j        k    S )z'Returns true if both objects are equal.F)rC   r   __dict__r   others     r   __eq__zDatasetNewVersionRequest.__eq__6  s)    %!9:: 	5}..r   c                     | |k     S )z+Returns true if both objects are not equal. rT   s     r   __ne__zDatasetNewVersionRequest.__ne__=  s    5=  r   )NNNNTNF)__name__
__module____qualname____doc__rA   attribute_mapr   propertyr   setterr	   r
   r   r   r   r   r7   rO   rQ   rV   rY   rX   r   r   r   r      sm         # #% M ($(%2 M !; ; ; ;B 
# 
# X
# , , , 	 	 X	 _
" 
" _
" 
! 
! X
! 
( 
( 
( 
 
 X
 \  \ $ $ X$ . . . 
" 
" X
" 
* 
* 
* ) ) X) 8 8  8  ,. . .  / / /! ! ! ! !r   r   )rM   rer?   kaggle.models.upload_filer   objectr   rX   r   r   <module>rd      sr   (  				 



 0 0 0 0 0 0c! c! c! c! c!v c! c! c! c! c!r   