
    ni/%                     :    d dl Z d dlZd dlZ G d de          ZdS )    Nc            	       $   e Zd ZdZdddddddddZ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d" Zd# Zd$ Zd% Zd& ZdS )(ModelNewRequesta  
    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.
    strbooldate)
owner_slugslugtitlesubtitle
is_privatedescriptionpublish_timeprovenance_sources	ownerSlugr	   r
   r   	isPrivater   publishTimeprovenanceSourcesNT c	                    d | _         d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _        || _	        || _
        || _        ||| _        || _        ||| _        ||| _        |	|| _        d S d S )N)_owner_slug_slug_title	_subtitle_is_private_description_publish_time_provenance_sourcesdiscriminatorr   r	   r
   r   r   r   r   r   )	selfr   r	   r
   r   r   r   r   r   s	            \/var/www/html/gpu-tools/venv/lib/python3.11/site-packages/kaggle/models/model_new_request.py__init__zModelNewRequest.__init__8   s      
 !#' !$	
$DM$"*D# ,D)&8D### *)    c                     | j         S )zGets the owner_slug of this ModelNewRequest.  # noqa: E501.

        The owner's slug  # noqa: E501

        :return: The owner_slug of this ModelNewRequest.  # noqa: E501
        :rtype: str
        )r   r   s    r    r   zModelNewRequest.owner_slug[        r"   c                 6    |t          d          || _        dS )zSets the owner_slug of this ModelNewRequest.

        The owner's slug  # noqa: E501

        :param owner_slug: The owner_slug of this ModelNewRequest. #
            noqa: E501
        :type: str
        Nz2Invalid value for `owner_slug`, must not be `None`)
ValueErrorr   )r   r   s     r    r   zModelNewRequest.owner_slugf   '     QRRR%r"   c                     | j         S )zGets the slug of this ModelNewRequest.  # noqa: E501.

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

        :return: The slug of this ModelNewRequest.  # noqa: E501
        :rtype: str
        )r   r$   s    r    r	   zModelNewRequest.slugu   s     zr"   c                 6    |t          d          || _        dS )zSets the slug of this ModelNewRequest.

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

        :param slug: The slug of this ModelNewRequest.  # noqa: E501
        :type: str
        Nz,Invalid value for `slug`, must not be `None`)r'   r   )r   r	   s     r    r	   zModelNewRequest.slug   s#     <KLLL


r"   c                     | j         S )zGets the title of this ModelNewRequest.  # noqa: E501.

        The title of the new model  # noqa: E501

        :return: The title of this ModelNewRequest.  # noqa: E501
        :rtype: str
        )r   r$   s    r    r
   zModelNewRequest.title   s     {r"   c                 6    |t          d          || _        dS )zSets the title of this ModelNewRequest.

        The title of the new model  # noqa: E501

        :param title: The title of this ModelNewRequest.  # noqa: E501
        :type: str
        Nz-Invalid value for `title`, must not be `None`)r'   r   )r   r
   s     r    r
   zModelNewRequest.title   s#     =LMMMr"   c                     | j         S )zGets the subtitle of this ModelNewRequest.  # noqa: E501.

        The subtitle of the new model  # noqa: E501

        :return: The subtitle of this ModelNewRequest.  # noqa: E501
        :rtype: str
        r   r$   s    r    r   zModelNewRequest.subtitle   s     ~r"   c                     || _         dS )zSets the subtitle of this ModelNewRequest.

        The subtitle of the new model  # noqa: E501

        :param subtitle: The subtitle of this ModelNewRequest. # noqa:
            E501
        :type: str
        Nr.   )r   r   s     r    r   zModelNewRequest.subtitle   s     "r"   c                     | j         S )zGets the is_private of this ModelNewRequest.  # noqa: E501.

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

        :return: The is_private of this ModelNewRequest.  # noqa: E501
        :rtype: bool
        )r   r$   s    r    r   zModelNewRequest.is_private   r%   r"   c                 6    |t          d          || _        dS )zSets the is_private of this ModelNewRequest.

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

        :param is_private: The is_private of this ModelNewRequest. #
            noqa: E501
        :type: bool
        Nz2Invalid value for `is_private`, must not be `None`)r'   r   )r   r   s     r    r   zModelNewRequest.is_private   r(   r"   c                     | j         S )zGets the description of this ModelNewRequest.  # noqa: E501.

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

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

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

        :param description: The description of this ModelNewRequest. #
            noqa: E501
        :type: str
        Nr3   )r   r   s     r    r   zModelNewRequest.description   s     (r"   c                     | j         S )zGets the publish_time of this ModelNewRequest.  # noqa: E501.

        When the model was initially published  # noqa: E501

        :return: The publish_time of this ModelNewRequest.  # noqa: E501
        :rtype: date
        r   r$   s    r    r   zModelNewRequest.publish_time   s     !!r"   c                     || _         dS )zSets the publish_time of this ModelNewRequest.

        When the model was initially published  # noqa: E501

        :param publish_time: The publish_time of this ModelNewRequest. #
            noqa: E501
        :type: date
        Nr6   )r   r   s     r    r   zModelNewRequest.publish_time   s     *r"   c                     | j         S )a   Gets the provenance_sources of this ModelNewRequest.  # noqa: E501.

        The provenance sources to be set on the model  # noqa: E501

        :return: The provenance_sources of this ModelNewRequest. #
            noqa: E501
        :rtype: str
        r   r$   s    r    r   z"ModelNewRequest.provenance_sources	  s     ''r"   c                     || _         dS )a  Sets the provenance_sources of this ModelNewRequest.

        The provenance sources to be set on the model  # noqa: E501

        :param provenance_sources: The provenance_sources of this
            ModelNewRequest. # noqa: E501
        :type: str
        Nr9   )r   r   s     r    r   z"ModelNewRequest.provenance_sources  s     $6   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)ModelNewRequest.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    rA   z)ModelNewRequest.to_dict.<locals>.<lambda>/  s8    WTRSWV_E`E`%jd1gtAw/@/@%A%Afj r"   )six	iteritemsproject_typesgetattr
isinstancelistmapr?   r=   dictitems)r   resultattr_values        r    r=   zModelNewRequest.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pformatr=   r$   s    r    to_strzModelNewRequest.to_str8  s    ~dllnn---r"   c                 *    |                                  S )zFor `print` and `pprint`)rU   r$   s    r    __repr__zModelNewRequest.__repr__<  s    {{}}r"   c                 P    t          |t                    sdS | j        |j        k    S )z'Returns true if both objects are equal.F)rI   r   __dict__r   others     r    __eq__zModelNewRequest.__eq__@  s(    %11 	5}..r"   c                     | |k     S )z+Returns true if both objects are not equal. rZ   s     r    __ne__zModelNewRequest.__ne__G  s    5=  r"   )NNNNTr   Nr   )__name__
__module____qualname____doc__rG   attribute_mapr!   propertyr   setterr	   r
   r   r   r   r   r   r=   rU   rW   r\   r_   r^   r"   r    r   r      s         #	 	M "!$%1	 	M !9 !9 !9 !9F     X  & & &   X 
[  [   X \  \   X _
" 
" _
"     X  & & & ! ! X! 
( 
( 
( " " X" 
* 
* 
* 	( 	( X	( 
6 
6 
6  ,. . .  / / /! ! ! ! !r"   r   )rS   rerE   objectr   r^   r"   r    <module>ri      s`   &  				 



p! p! p! p! p!f p! p! p! p! p!r"   