
    ni2                     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ddd
Zddd	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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 )0DatasetNewRequesta  
    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])
titleslug
owner_sluglicense_namesubtitledescriptionfiles
is_privateconvert_to_csvcategory_idsr   r	   	ownerSluglicenseNamer   r   r   	isPrivateconvertToCsvcategoryIdsNunknown Tc                 P   d | _         d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _	        d | _
        || _        ||| _        ||| _        ||| _        ||| _        ||| _        || _        ||| _        |	|	| _        |
	|
| _        d S d S )N)_title_slug_owner_slug_license_name	_subtitle_description_files_is_private_convert_to_csv_category_idsdiscriminatorr   r	   r
   r   r   r   r   r   r   r   )selfr   r	   r
   r   r   r   r   r   r   r   s              ^/var/www/html/gpu-tools/venv/lib/python3.11/site-packages/kaggle/models/dataset_new_request.py__init__zDatasetNewRequest.__init__>   s     
! #!!
DI!(DO# ,D$DM"*D
!(DO%"0D# ,D $#    c                     | j         S )zGets the title of this DatasetNewRequest.  # noqa: E501.

        The title of the new dataset  # noqa: E501

        :return: The title of this DatasetNewRequest.  # noqa: E501
        :rtype: str
        )r   r%   s    r&   r   zDatasetNewRequest.titlek   s     {r(   c                 6    |t          d          || _        dS )zSets the title of this DatasetNewRequest.

        The title of the new dataset  # noqa: E501

        :param title: The title of this DatasetNewRequest.  # noqa: E501
        :type: str
        Nz-Invalid value for `title`, must not be `None`)
ValueErrorr   )r%   r   s     r&   r   zDatasetNewRequest.titlev   s#     =LMMMr(   c                     | j         S )zGets the slug of this DatasetNewRequest.  # noqa: E501.

        The slug that the dataset should be created with  # noqa: E501

        :return: The slug of this DatasetNewRequest.  # noqa: E501
        :rtype: str
        r   r*   s    r&   r	   zDatasetNewRequest.slug   s     zr(   c                     || _         dS )zSets the slug of this DatasetNewRequest.

        The slug that the dataset should be created with  # noqa: E501

        :param slug: The slug of this DatasetNewRequest.  # noqa: E501
        :type: str
        Nr.   )r%   r	   s     r&   r	   zDatasetNewRequest.slug   s     


r(   c                     | j         S )zGets the owner_slug of this DatasetNewRequest.  # noqa: E501.

        The owner's username  # noqa: E501

        :return: The owner_slug of this DatasetNewRequest.  # noqa: E501
        :rtype: str
        r   r*   s    r&   r
   zDatasetNewRequest.owner_slug        r(   c                     || _         dS )zSets the owner_slug of this DatasetNewRequest.

        The owner's username  # noqa: E501

        :param owner_slug: The owner_slug of this DatasetNewRequest. #
            noqa: E501
        :type: str
        Nr1   )r%   r
   s     r&   r
   zDatasetNewRequest.owner_slug        &r(   c                     | j         S )a	  Gets the license_name of this DatasetNewRequest.  # noqa: E501.

        The license that should be associated with the dataset  # noqa:
        E501

        :return: The license_name of this DatasetNewRequest. # noqa:
            E501
        :rtype: str
        )r   r*   s    r&   r   zDatasetNewRequest.license_name   s     !!r(   c                     g d}||vr#t          d                    ||                    |                                }|d         dk    rd}n |d         dk    rd}n|d         dk    rd}nd}|| _        d	S )
a  Sets the license_name of this DatasetNewRequest.

        The license that should be associated with the dataset  # noqa:
        E501

        :param license_name: The license_name of this DatasetNewRequest.
            # noqa: E501
        :type: str
        )zCC0-1.0zCC-BY-SA-4.0zGPL-2.0zODbL-1.0zCC-BY-NC-SA-4.0r   zDbCL-1.0zCC-BY-SA-3.0zcopyright-authorsotherz
reddit-apiz
world-bankz	CC-BY-4.0zCC-BY-NC-4.0PDDLz	CC-BY-3.0zCC-BY-3.0-IGOzUS-Government-WorkszCC-BY-NC-SA-3.0-IGOzCDLA-Permissive-1.0zCDLA-Sharing-1.0zCC-BY-ND-4.0zCC-BY-NC-ND-4.0z
ODC-BY-1.0zLGPL-3.0zAGPL-3.0zFDL-1.3zEU-ODP-Legal-Noticez
apache-2.0zGPL-3.0z:Invalid value for `license_name` ({0}), must be one of {1}ccgplodbr7   N)r,   formatlowerr   )r%   r   allowed_valuess      r&   r   zDatasetNewRequest.license_name   s    
 
 
@ ~--LSS .    (--//LE"d**#e$--$e$--$&)r(   c                     | j         S )zGets the subtitle of this DatasetNewRequest.  # noqa: E501.

        The subtitle to be set on the dataset  # noqa: E501

        :return: The subtitle of this DatasetNewRequest.  # noqa: E501
        :rtype: str
        r   r*   s    r&   r   zDatasetNewRequest.subtitle   s     ~r(   c                     || _         dS )zSets the subtitle of this DatasetNewRequest.

        The subtitle to be set on the dataset  # noqa: E501

        :param subtitle: The subtitle of this DatasetNewRequest. #
            noqa: E501
        :type: str
        NrB   )r%   r   s     r&   r   zDatasetNewRequest.subtitle  s     "r(   c                     | j         S )zGets the description of this DatasetNewRequest.  # noqa: E501.

        The description to be set on the dataset  # noqa: E501

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

        The description to be set on the dataset  # noqa: E501

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

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

        :return: The files of this DatasetNewRequest.  # noqa: E501
        :rtype: list[UploadFile]
        )r    r*   s    r&   r   zDatasetNewRequest.files-  s     {r(   c                 6    |t          d          || _        dS )zSets the files of this DatasetNewRequest.

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

        :param files: The files of this DatasetNewRequest.  # noqa: E501
        :type: list[UploadFile]
        Nz-Invalid value for `files`, must not be `None`)r,   r    )r%   r   s     r&   r   zDatasetNewRequest.files9  s#     =LMMMr(   c                     | j         S )zGets the is_private of this DatasetNewRequest.  # noqa: E501.

        Whether or not the dataset should be private  # noqa: E501

        :return: The is_private of this DatasetNewRequest.  # noqa: E501
        :rtype: bool
        r!   r*   s    r&   r   zDatasetNewRequest.is_privateH  r2   r(   c                     || _         dS )zSets the is_private of this DatasetNewRequest.

        Whether or not the dataset should be private  # noqa: E501

        :param is_private: The is_private of this DatasetNewRequest. #
            noqa: E501
        :type: bool
        NrJ   )r%   r   s     r&   r   zDatasetNewRequest.is_privateS  r4   r(   c                     | j         S )a  Gets the convert_to_csv of this DatasetNewRequest.  # noqa: E501.

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

        :return: The convert_to_csv of this DatasetNewRequest. # noqa:
            E501
        :rtype: bool
        r"   r*   s    r&   r   z DatasetNewRequest.convert_to_csv`  s     ##r(   c                     || _         dS )a  Sets the convert_to_csv of this DatasetNewRequest.

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

        :param convert_to_csv: The convert_to_csv of this
            DatasetNewRequest. # noqa: E501
        :type: bool
        NrM   )r%   r   s     r&   r   z DatasetNewRequest.convert_to_csvm  s      .r(   c                     | j         S )a  Gets the category_ids of this DatasetNewRequest.  # noqa: E501.

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

        :return: The category_ids of this DatasetNewRequest. # noqa:
            E501
        :rtype: list[str]
        r#   r*   s    r&   r   zDatasetNewRequest.category_ids{  s     !!r(   c                     || _         dS )zSets the category_ids of this DatasetNewRequest.

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

        :param category_ids: The category_ids of this DatasetNewRequest.
            # noqa: E501
        :type: list[str]
        NrP   )r%   r   s     r&   r   zDatasetNewRequest.category_ids  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hasattrrT   )xs    r&   <lambda>z+DatasetNewRequest.to_dict.<locals>.<lambda>  s"    IAVAV2]!))+++\] r(   rT   c                 v    t          | d         d          r"| d         | d                                         fn| S )N   rT   r   rU   )items    r&   rX   z+DatasetNewRequest.to_dict.<locals>.<lambda>  s8    WTRSWV_E`E`%jd1gtAw/@/@%A%Afj r(   )six	iteritemsproject_typesgetattr
isinstancelistmaprV   rT   dictitems)r%   resultattr_values        r&   rT   zDatasetNewRequest.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pformatrT   r*   s    r&   to_strzDatasetNewRequest.to_str  s    ~dllnn---r(   c                 *    |                                  S )zFor `print` and `pprint`)rl   r*   s    r&   __repr__zDatasetNewRequest.__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%   r7   s     r&   __eq__zDatasetNewRequest.__eq__  s)    %!233 	5}..r(   c                     | |k     S )z+Returns true if both objects are not equal. rq   s     r&   __ne__zDatasetNewRequest.__ne__  s    5=  r(   )
NNNr   Nr   NTTN)__name__
__module____qualname____doc__r^   attribute_mapr'   propertyr   setterr	   r
   r   r   r   r   r   r   r   rT   rl   rn   rr   ru   rt   r(   r&   r   r      s3         # # M !%$!(% M +- +- +- +-Z   X \  \   X 
[	 	 [	     X  
& 
& 
& 
" 
" X
" :* :* :*x   X _
" 
" _
" ! ! X! 
( 
( 
( 	 	 X	 \  \     X  
& 
& 
& 
$ 
$ X
$ . . . 	" 	" X	" 
* 
* 
*  ,. . .  / / /! ! ! ! !r(   r   )rj   rer\   kaggle.models.upload_filer   objectr   rt   r(   r&   <module>r      sr   &  				 



 0 0 0 0 0 0`! `! `! `! `! `! `! `! `! `!r(   