
    ni<M                     :    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i ddddddddddd	dd
dddddddddddddddddddZi ddddddddddd	dd
ddddddddddddddddd dd!Z	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dId#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d0             Zej	        d1             Zed2             Zej	        d3             Zed4             Zej	        d5             Zed6             Zej	        d7             Zed8             Zej	        d9             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	        dA             ZedB             Zej	        dC             ZdD ZdE ZdF ZdG ZdH Zd"S )JKernelPushRequesta  
    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.
    idintslugstr	new_titletextlanguagekernel_type
is_privatebool
enable_gpu
enable_tpuenable_internetdataset_data_sourcesz	list[str]competition_data_sourceskernel_data_sourcesmodel_data_sourcescategory_idsdocker_image_pinning_typenewTitle
kernelType	isPrivate	enableGpu	enableTpuenableInternetdatasetDataSourcescompetitionDataSourceskernelDataSourcesmodelDataSourcescategoryIdsdockerImagePinningTypeNc                    d | _         d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _	        d | _
        d | _        d | _        d | _        d | _        d | _        d | _        ||| _        ||| _        ||| _        || _        || _        || _        ||| _        ||| _        |	|	| _        |
|
| _        ||| _        ||| _        ||| _        ||| _        ||| _        |	|| _         d S d S )N)!_id_slug
_new_title_text	_language_kernel_type_is_private_enable_gpu_enable_tpu_enable_internet_dataset_data_sources_competition_data_sources_kernel_data_sources_model_data_sources_category_ids_docker_image_pinning_typediscriminatorr   r   r	   r
   r   r   r   r   r   r   r   r   r   r   r   r   )selfr   r   r	   r
   r   r   r   r   r   r   r   r   r   r   r   r   s                    ^/var/www/html/gpu-tools/venv/lib/python3.11/site-packages/kaggle/models/kernel_push_request.py__init__zKernelPushRequest.__init__I   sZ   ( 

  $%)")-&$(!#' !*.'!>DGDI &DN	 &!(DO!(DO!(DO&#2D +(<D%#/,DD)*':D$)&8D## ,D$0-FD*** 10    c                     | j         S )a  Gets the id of this KernelPushRequest.  # noqa: E501.

        The kernel's ID number. One of `id` and `slug` are required. If both are specified, `id` will be preferred  # noqa: E501

        :return: The id of this KernelPushRequest.  # noqa: E501
        :rtype: int
        r%   r6   s    r7   r   zKernelPushRequest.id   s     xr9   c                     || _         dS )a  Sets the id of this KernelPushRequest.

        The kernel's ID number. One of `id` and `slug` are required. If both are specified, `id` will be preferred  # noqa: E501

        :param id: The id of this KernelPushRequest.  # noqa: E501
        :type: int
        Nr;   )r6   r   s     r7   r   zKernelPushRequest.id   s     r9   c                     | j         S )a  Gets the slug of this KernelPushRequest.  # noqa: E501.

        The full slug of the kernel to push to, in the format `USERNAME/KERNEL-SLUG`. The kernel slug must be the title lowercased with dashes (`-`) replacing spaces. One of `id` and `slug` are required. If both are specified, `id` will be preferred  # noqa: E501

        :return: The slug of this KernelPushRequest.  # noqa: E501
        :rtype: str
        r&   r<   s    r7   r   zKernelPushRequest.slug        zr9   c                     || _         dS )a  Sets the slug of this KernelPushRequest.

        The full slug of the kernel to push to, in the format `USERNAME/KERNEL-SLUG`. The kernel slug must be the title lowercased with dashes (`-`) replacing spaces. One of `id` and `slug` are required. If both are specified, `id` will be preferred  # noqa: E501

        :param slug: The slug of this KernelPushRequest.  # noqa: E501
        :type: str
        Nr?   )r6   r   s     r7   r   zKernelPushRequest.slug   s     


r9   c                     | j         S )zGets the new_title of this KernelPushRequest.  # noqa: E501.

        The title to be set on the kernel  # noqa: E501

        :return: The new_title of this KernelPushRequest.  # noqa: E501
        :rtype: str
        r'   r<   s    r7   r	   zKernelPushRequest.new_title   s     r9   c                     || _         dS )zSets the new_title of this KernelPushRequest.

        The title to be set on the kernel  # noqa: E501

        :param new_title: The new_title of this KernelPushRequest. #
            noqa: E501
        :type: str
        NrC   )r6   r	   s     r7   r	   zKernelPushRequest.new_title   s     $r9   c                     | j         S )zGets the text of this KernelPushRequest.  # noqa: E501.

        The kernel's source code  # noqa: E501

        :return: The text of this KernelPushRequest.  # noqa: E501
        :rtype: str
        )r(   r<   s    r7   r
   zKernelPushRequest.text   r@   r9   c                 6    |t          d          || _        dS )zSets the text of this KernelPushRequest.

        The kernel's source code  # noqa: E501

        :param text: The text of this KernelPushRequest.  # noqa: E501
        :type: str
        Nz,Invalid value for `text`, must not be `None`)
ValueErrorr(   )r6   r
   s     r7   r
   zKernelPushRequest.text   s#     <KLLL


r9   c                     | j         S )zGets the language of this KernelPushRequest.  # noqa: E501.

        The language that the kernel is written in  # noqa: E501

        :return: The language of this KernelPushRequest.  # noqa: E501
        :rtype: str
        )r)   r<   s    r7   r   zKernelPushRequest.language   s     ~r9   c                     |t          d          g d}||vr#t          d                    ||                    || _        dS )zSets the language of this KernelPushRequest.

        The language that the kernel is written in  # noqa: E501

        :param language: The language of this KernelPushRequest. #
            noqa: E501
        :type: str
        Nz0Invalid value for `language`, must not be `None`)pythonr	rmarkdownz6Invalid value for `language` ({0}), must be one of {1})rG   formatr)   )r6   r   allowed_valuess      r7   r   zKernelPushRequest.language   sc     OPPP555>))HOOPXZhii   "r9   c                     | j         S )a  Gets the kernel_type of this KernelPushRequest.  # noqa: E501.

        The type of kernel. Cannot be changed once the kernel has been
        created  # noqa: E501

        :return: The kernel_type of this KernelPushRequest. # noqa: E501
        :rtype: str
        )r*   r<   s    r7   r   zKernelPushRequest.kernel_type  s       r9   c                     |t          d          ddg}||vr#t          d                    ||                    || _        dS )a  Sets the kernel_type of this KernelPushRequest.

        The type of kernel. Cannot be changed once the kernel has been
        created  # noqa: E501

        :param kernel_type: The kernel_type of this KernelPushRequest. #
            noqa: E501
        :type: str
        Nz3Invalid value for `kernel_type`, must not be `None`scriptnotebookz9Invalid value for `kernel_type` ({0}), must be one of {1})rG   rM   r*   )r6   r   rN   s      r7   r   zKernelPushRequest.kernel_type  sh     RSSS"J/n,,KRR    (r9   c                     | j         S )zGets the is_private of this KernelPushRequest.  # noqa: E501.

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

        :return: The is_private of this KernelPushRequest.  # noqa: E501
        :rtype: bool
        r+   r<   s    r7   r   zKernelPushRequest.is_private.       r9   c                     || _         dS )zSets the is_private of this KernelPushRequest.

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

        :param is_private: The is_private of this KernelPushRequest. #
            noqa: E501
        :type: bool
        NrT   )r6   r   s     r7   r   zKernelPushRequest.is_private9       &r9   c                     | j         S )zGets the enable_gpu of this KernelPushRequest.  # noqa: E501.

        Whether or not the kernel should run on a GPU  # noqa: E501

        :return: The enable_gpu of this KernelPushRequest.  # noqa: E501
        :rtype: bool
        r,   r<   s    r7   r   zKernelPushRequest.enable_gpuF  rU   r9   c                     || _         dS )zSets the enable_gpu of this KernelPushRequest.

        Whether or not the kernel should run on a GPU  # noqa: E501

        :param enable_gpu: The enable_gpu of this KernelPushRequest. #
            noqa: E501
        :type: bool
        NrY   )r6   r   s     r7   r   zKernelPushRequest.enable_gpuQ  rW   r9   c                     | j         S )zGets the enable_tpu of this KernelPushRequest.  # noqa: E501.

        Whether or not the kernel should run on a TPU  # noqa: E501

        :return: The enable_tpu of this KernelPushRequest.  # noqa: E501
        :rtype: bool
        r-   r<   s    r7   r   zKernelPushRequest.enable_tpu^  rU   r9   c                     || _         dS )zSets the enable_tpu of this KernelPushRequest.

        Whether or not the kernel should run on a TPU  # noqa: E501

        :param enable_tpu: The enable_tpu of this KernelPushRequest. #
            noqa: E501
        :type: bool
        Nr\   )r6   r   s     r7   r   zKernelPushRequest.enable_tpui  rW   r9   c                     | j         S )a  Gets the enable_internet of this KernelPushRequest.  # noqa: E501.

        Whether or not the kernel should be able to access the internet
        # noqa: E501

        :return: The enable_internet of this KernelPushRequest. # noqa:
            E501
        :rtype: bool
        r.   r<   s    r7   r   z!KernelPushRequest.enable_internetv  s     $$r9   c                     || _         dS )a  Sets the enable_internet of this KernelPushRequest.

        Whether or not the kernel should be able to access the internet
        # noqa: E501

        :param enable_internet: The enable_internet of this
            KernelPushRequest. # noqa: E501
        :type: bool
        Nr_   )r6   r   s     r7   r   z!KernelPushRequest.enable_internet  s     !0r9   c                     | j         S )a`  Gets the dataset_data_sources of this KernelPushRequest.  # noqa:
        E501.

        A list of dataset data sources that the kernel should use. Each
        dataset is specified as `USERNAME/DATASET-SLUG`  # noqa: E501

        :return: The dataset_data_sources of this KernelPushRequest. #
            noqa: E501
        :rtype: list[str]
        r/   r<   s    r7   r   z&KernelPushRequest.dataset_data_sources  s     ))r9   c                     || _         dS )a\  Sets the dataset_data_sources of this KernelPushRequest.

        A list of dataset data sources that the kernel should use. Each
        dataset is specified as `USERNAME/DATASET-SLUG`  # noqa: E501

        :param dataset_data_sources: The dataset_data_sources of this
            KernelPushRequest. # noqa: E501
        :type: list[str]
        Nrb   )r6   r   s     r7   r   z&KernelPushRequest.dataset_data_sources  s     &:"""r9   c                     | j         S )a6  Gets the competition_data_sources of this KernelPushRequest.  #
        noqa: E501.

        A list of competition data sources that the kernel should use  #
        noqa: E501

        :return: The competition_data_sources of this KernelPushRequest.
            # noqa: E501
        :rtype: list[str]
        r0   r<   s    r7   r   z*KernelPushRequest.competition_data_sources  s     --r9   c                     || _         dS )a6  Sets the competition_data_sources of this KernelPushRequest.

        A list of competition data sources that the kernel should use  #
        noqa: E501

        :param competition_data_sources: The competition_data_sources of
            this KernelPushRequest. # noqa: E501
        :type: list[str]
        Nre   )r6   r   s     r7   r   z*KernelPushRequest.competition_data_sources  s     *B&&&r9   c                     | j         S )a\  Gets the kernel_data_sources of this KernelPushRequest.  # noqa:
        E501.

        A list of kernel data sources that the kernel should use. Each
        dataset is specified as `USERNAME/KERNEL-SLUG`  # noqa: E501

        :return: The kernel_data_sources of this KernelPushRequest. #
            noqa: E501
        :rtype: list[str]
        r1   r<   s    r7   r   z%KernelPushRequest.kernel_data_sources  s     ((r9   c                     || _         dS )aW  Sets the kernel_data_sources of this KernelPushRequest.

        A list of kernel data sources that the kernel should use. Each
        dataset is specified as `USERNAME/KERNEL-SLUG`  # noqa: E501

        :param kernel_data_sources: The kernel_data_sources of this
            KernelPushRequest. # noqa: E501
        :type: list[str]
        Nrh   )r6   r   s     r7   r   z%KernelPushRequest.kernel_data_sources  s     %8!!!r9   c                     | j         S )ak  Gets the model_data_sources of this KernelPushRequest.  # noqa:
        E501.

        A list of model data sources that the kernel should use. Each model is specified as `USERNAME/MODEL-SLUG/FRAMEWORK/VARIATION-SLUG/VERSION-NUMBER`  # noqa: E501

        :return: The model_data_sources of this KernelPushRequest.  # noqa: E501
        :rtype: list[str]
        r2   r<   s    r7   r   z$KernelPushRequest.model_data_sources  s     ''r9   c                     || _         dS )ae  Sets the model_data_sources of this KernelPushRequest.

        A list of model data sources that the kernel should use. Each model is specified as `USERNAME/MODEL-SLUG/FRAMEWORK/VARIATION-SLUG/VERSION-NUMBER`  # noqa: E501

        :param model_data_sources: The model_data_sources of this KernelPushRequest.  # noqa: E501
        :type: list[str]
        Nrk   )r6   r   s     r7   r   z$KernelPushRequest.model_data_sources  s     $6   r9   c                     | j         S )a   Gets the category_ids of this KernelPushRequest.  # noqa: E501.

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

        :return: The category_ids of this KernelPushRequest. # noqa:
            E501
        :rtype: list[str]
        r3   r<   s    r7   r   zKernelPushRequest.category_ids  s     !!r9   c                     || _         dS )zSets the category_ids of this KernelPushRequest.

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

        :param category_ids: The category_ids of this KernelPushRequest.
            # noqa: E501
        :type: list[str]
        Nrn   )r6   r   s     r7   r   zKernelPushRequest.category_ids	  s     *r9   c                     | j         S )a8  Gets the docker_image_pinning_type of this KernelPushRequest.  #
        noqa: E501.

        Which docker image to use for executing new versions going
        forward.  # noqa: E501

        :return: The docker_image_pinning_type of this
            KernelPushRequest. # noqa: E501
        :rtype: str
        )r4   r<   s    r7   r   z+KernelPushRequest.docker_image_pinning_type  s     ..r9   c                 j    ddg}||vr#t          d                    ||                    || _        dS )a9  Sets the docker_image_pinning_type of this KernelPushRequest.

        Which docker image to use for executing new versions going
        forward.  # noqa: E501

        :param docker_image_pinning_type: The docker_image_pinning_type
            of this KernelPushRequest. # noqa: E501
        :type: str
        originallatestzGInvalid value for `docker_image_pinning_type` ({0}), must be one of {1}N)rG   rM   r4   )r6   r   rN   s      r7   r   z+KernelPushRequest.docker_image_pinning_type$  sT     %h/$N::Y``-~    +D'''r9   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hasattrrv   )xs    r7   <lambda>z+KernelPushRequest.to_dict.<locals>.<lambda>@  s"    IAVAV2]!))+++\] r9   rv   c                 v    t          | d         d          r"| d         | d                                         fn| S )N   rv   r   rw   )items    r7   rz   z+KernelPushRequest.to_dict.<locals>.<lambda>F  s8    WTRSWV_E`E`%jd1gtAw/@/@%A%Afj r9   )six	iteritemsproject_typesgetattr
isinstancelistmaprx   rv   dictitems)r6   resultattr_values        r7   rv   zKernelPushRequest.to_dict9  s    }T%788 	% 	%GD!D$''E%&& %#C(](]_d$e$efft	** 
%$}}tE4(( %#jj    t  %tr9   c                 N    t          j        |                                           S )z/Returns the string representation of the model.)pprintpformatrv   r<   s    r7   to_strzKernelPushRequest.to_strO  s    ~dllnn---r9   c                 *    |                                  S )zFor `print` and `pprint`)r   r<   s    r7   __repr__zKernelPushRequest.__repr__S  s    {{}}r9   c                 P    t          |t                    sdS | j        |j        k    S )z'Returns true if both objects are equal.F)r   r   __dict__r6   others     r7   __eq__zKernelPushRequest.__eq__W  s)    %!233 	5}..r9   c                     | |k     S )z+Returns true if both objects are not equal. r   s     r7   __ne__zKernelPushRequest.__ne__^  s    5=  r9   )NNNNNNNNNNNNNNNN)__name__
__module____qualname____doc__r   attribute_mapr8   propertyr   setterr   r	   r
   r   r   r   r   r   r   r   r   r   r   r   r   rv   r   r   r   r   r   r9   r7   r   r      s        e 	U 		
 	E 	u 	f 	f 	f 	6 	 	#K 	{ 	k 	  	$U!M&d 	Z 		
 	J 	| 	k 	k 	k 	+ 	 4 	#$< 	2 	0 	  	$%=!M* !!% "&#BG BG BG BGH   X Y	 	 Y	   X 
[	 	 [	   X 
$ 
$ 
$   X 
[  [   X _" " _"& 	! 	! X	! ( ( (,     X  
& 
& 
&     X  
& 
& 
&     X  
& 
& 
& 
% 
% X
% 0 0 0 * * X*  : : ! : . . X. $B B %$B ) ) X) 8 8  8 	( 	( X	( 	6 	6 	6 	" 	" X	" 
* 
* 
* / / X/ %D D &%D(  ,. . .  / / /! ! ! ! !r9   r   )r   rer~   objectr   r   r9   r7   <module>r      s`   (  				 



F	! F	! F	! F	! F	! F	! F	! F	! F	! F	!r9   