
    ni9                     :    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d	Z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d& Zd' Zd( Zd) Zd* ZdS ),ModelInstanceUpdateRequesta  
    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boolz	list[str]int)	overviewusagelicense_namefine_tunabletraining_datamodel_instance_typebase_model_instanceexternal_base_model_urlupdate_maskr   r	   licenseNamefineTunabletrainingDatamodelInstanceTypebaseModelInstanceexternalBaseModelUrl
updateMaskN
Apache 2.0Tc
                 0   d | _         d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _	        ||| _
        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        |	| _        d S )N)	_overview_usage_license_name_fine_tunable_training_data_model_instance_type_base_model_instance_external_base_model_url_update_maskdiscriminatorr   r	   r
   r   r   r   r   r   r   )
selfr   r	   r
   r   r   r   r   r   r   s
             h/var/www/html/gpu-tools/venv/lib/python3.11/site-packages/kaggle/models/model_instance_update_request.py__init__z#ModelInstanceUpdateRequest.__init__:   s     !!"$(!$(!(,% !$DMDJ# ,D# ,D$!.D*':D$*':D$".+BD(&    c                     | j         S )a  Gets the overview of this ModelInstanceUpdateRequest.  # noqa: E501.

        The overview of the model instance (markdown)  # noqa: E501

        :return: The overview of this ModelInstanceUpdateRequest. #
            noqa: E501
        :rtype: str
        r   r$   s    r%   r   z#ModelInstanceUpdateRequest.overviewd   s     ~r'   c                     || _         dS )zSets the overview of this ModelInstanceUpdateRequest.

        The overview of the model instance (markdown)  # noqa: E501

        :param overview: The overview of this
            ModelInstanceUpdateRequest. # noqa: E501
        :type: str
        Nr)   )r$   r   s     r%   r   z#ModelInstanceUpdateRequest.overviewp   s     "r'   c                     | j         S )a  Gets the usage of this ModelInstanceUpdateRequest.  # noqa: E501.

        The description of how to use the model instance (markdown)  #
        noqa: E501

        :return: The usage of this ModelInstanceUpdateRequest. # noqa:
            E501
        :rtype: str
        r   r*   s    r%   r	   z ModelInstanceUpdateRequest.usage}   s     {r'   c                     || _         dS )a  Sets the usage of this ModelInstanceUpdateRequest.

        The description of how to use the model instance (markdown)  #
        noqa: E501

        :param usage: The usage of this ModelInstanceUpdateRequest. #
            noqa: E501
        :type: str
        Nr-   )r$   r	   s     r%   r	   z ModelInstanceUpdateRequest.usage   s     r'   c                     | j         S )a*  Gets the license_name of this ModelInstanceUpdateRequest.  # noqa:
        E501.

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

        :return: The license_name of this ModelInstanceUpdateRequest. #
            noqa: E501
        :rtype: str
        )r   r*   s    r%   r
   z'ModelInstanceUpdateRequest.license_name   s     !!r'   c                 j    g d}||vr#t          d                    ||                    || _        dS )a  Sets the license_name of this ModelInstanceUpdateRequest.

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

        :param license_name: The license_name of this
            ModelInstanceUpdateRequest. # noqa: E501
        :type: str
        )9zCC0 1.0zCC BY-NC-SA 4.0UnknownzCC BY-SA 4.0zGPL 2zCC BY-SA 3.0Otherz Other (specified in description)z	CC BY 4.0z)Attribution 4.0 International (CC BY 4.0)zCC BY-NC 4.0z:Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)PDDLz/ODC Public Domain Dedication and Licence (PDDL)z	CC BY 3.0z$Attribution 3.0 Unported (CC BY 3.0)zCC BY 3.0 IGOz#Attribution 3.0 IGO (CC BY 3.0 IGO)zCC BY-NC-SA 3.0 IGOzBAttribution-NonCommercial-ShareAlike 3.0 IGO (CC BY-NC-SA 3.0 IGO)zCDLA Permissive 1.0z;Community Data License Agreement - Permissive - Version 1.0zCDLA Sharing 1.0z8Community Data License Agreement - Sharing - Version 1.0zCC BY-ND 4.0z:Attribution-NoDerivatives 4.0 International (CC BY-ND 4.0)zCC BY-NC-ND 4.0zKAttribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)z
ODC-BY 1.0z ODC Attribution License (ODC-By)zLGPL 3.0z%GNU Lesser General Public License 3.0zAGPL 3.0z%GNU Affero General Public License 3.0zFDL 1.3z"GNU Free Documentation License 1.3z
apache-2.0r   mitMITzbsd-3-clausezBSD-3-ClausezLlama 2zLlama 2 Community LicenseGemmazgpl-3zGPL 3zRAIL-MzAI Pubs Open RAIL-M LicensezAIPubs Research-Use RAIL-Mz#AI Pubs Research-Use RAIL-M LicensezBigScience OpenRAIL-MzBigScience Open RAIL-M LicenseRAILzRAIL (specified in description)zLlama 3zLlama 3 Community Licensez:Invalid value for `license_name` ({0}), must be one of {1}N)
ValueErrorformatr   )r$   r
   allowed_valuess      r%   r
   z'ModelInstanceUpdateRequest.license_name   s[    :
 :
 :
v ~--LSS .    *r'   c                     | j         S )a  Gets the fine_tunable of this ModelInstanceUpdateRequest.  # noqa:
        E501.

        Whether the model instance is fine tunable  # noqa: E501

        :return: The fine_tunable of this ModelInstanceUpdateRequest. #
            noqa: E501
        :rtype: bool
        r   r*   s    r%   r   z'ModelInstanceUpdateRequest.fine_tunable   s     !!r'   c                     || _         dS )a  Sets the fine_tunable of this ModelInstanceUpdateRequest.

        Whether the model instance is fine tunable  # noqa: E501

        :param fine_tunable: The fine_tunable of this
            ModelInstanceUpdateRequest. # noqa: E501
        :type: bool
        Nr<   )r$   r   s     r%   r   z'ModelInstanceUpdateRequest.fine_tunable  s     *r'   c                     | j         S )a  Gets the training_data of this ModelInstanceUpdateRequest.  # noqa:
        E501.

        A list of training data (urls or names)  # noqa: E501

        :return: The training_data of this ModelInstanceUpdateRequest. #
            noqa: E501
        :rtype: list[str]
        r   r*   s    r%   r   z(ModelInstanceUpdateRequest.training_data  s     ""r'   c                     || _         dS )a	  Sets the training_data of this ModelInstanceUpdateRequest.

        A list of training data (urls or names)  # noqa: E501

        :param training_data: The training_data of this
            ModelInstanceUpdateRequest. # noqa: E501
        :type: list[str]
        Nr?   )r$   r   s     r%   r   z(ModelInstanceUpdateRequest.training_data  s     ,r'   c                     | j         S )aY  Gets the model_instance_type of this ModelInstanceUpdateRequest.  #
        noqa: E501.

        Whether the model instance is a base model, external variant,
        internal variant, or unspecified  # noqa: E501

        :return: The model_instance_type of this
            ModelInstanceUpdateRequest. # noqa: E501
        :rtype: str
        )r   r*   s    r%   r   z.ModelInstanceUpdateRequest.model_instance_type)  s     ((r'   c                 j    g d}||vr#t          d                    ||                    || _        dS )aT  Sets the model_instance_type of this ModelInstanceUpdateRequest.

        Whether the model instance is a base model, external variant,
        internal variant, or unspecified  # noqa: E501

        :param model_instance_type: The model_instance_type of this
            ModelInstanceUpdateRequest. # noqa: E501
        :type: str
        )Unspecified	BaseModelKaggleVariantExternalVariantzAInvalid value for `model_instance_type` ({0}), must be one of {1}N)r8   r9   r   )r$   r   r:   s      r%   r   z.ModelInstanceUpdateRequest.model_instance_type7  sU     ZYYn44SZZ'    %8!!!r'   c                     | j         S )a^  Gets the base_model_instance of this ModelInstanceUpdateRequest.  #
        noqa: E501.

        If this is an internal variant, the `{owner-slug}/{model-slug}/{framework}/{instance-slug}` of the base model instance  # noqa: E501

        :return: The base_model_instance of this ModelInstanceUpdateRequest.  # noqa: E501
        :rtype: str
        r    r*   s    r%   r   z.ModelInstanceUpdateRequest.base_model_instanceL  s     ((r'   c                     || _         dS )aY  Sets the base_model_instance of this ModelInstanceUpdateRequest.

        If this is an internal variant, the `{owner-slug}/{model-slug}/{framework}/{instance-slug}` of the base model instance  # noqa: E501

        :param base_model_instance: The base_model_instance of this ModelInstanceUpdateRequest.  # noqa: E501
        :type: str
        NrH   )r$   r   s     r%   r   z.ModelInstanceUpdateRequest.base_model_instanceX  s     %8!!!r'   c                     | j         S )a9  Gets the external_base_model_url of this ModelInstanceUpdateRequest.
        # noqa: E501.

        If this is an external variant, a URL to the base model  # noqa:
        E501

        :return: The external_base_model_url of this
            ModelInstanceUpdateRequest. # noqa: E501
        :rtype: int
        r!   r*   s    r%   r   z2ModelInstanceUpdateRequest.external_base_model_urld  s     ,,r'   c                     || _         dS )a9  Sets the external_base_model_url of this ModelInstanceUpdateRequest.

        If this is an external variant, a URL to the base model  # noqa:
        E501

        :param external_base_model_url: The external_base_model_url of
            this ModelInstanceUpdateRequest. # noqa: E501
        :type: int
        NrK   )r$   r   s     r%   r   z2ModelInstanceUpdateRequest.external_base_model_urlr  s     )@%%%r'   c                     | j         S )a  Gets the update_mask of this ModelInstanceUpdateRequest.  # noqa:
        E501.

        Describes which fields to update  # noqa: E501

        :return: The update_mask of this ModelInstanceUpdateRequest. #
            noqa: E501
        :rtype: str
        )r"   r*   s    r%   r   z&ModelInstanceUpdateRequest.update_mask  s       r'   c                 6    |t          d          || _        dS )zSets the update_mask of this ModelInstanceUpdateRequest.

        Describes which fields to update  # noqa: E501

        :param update_mask: The update_mask of this
            ModelInstanceUpdateRequest. # noqa: E501
        :type: str
        Nz3Invalid value for `update_mask`, must not be `None`)r8   r"   )r$   r   s     r%   r   z&ModelInstanceUpdateRequest.update_mask  s'     RSS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hasattrrQ   )xs    r%   <lambda>z4ModelInstanceUpdateRequest.to_dict.<locals>.<lambda>  s"    IAVAV2]!))+++\] r'   rQ   c                 v    t          | d         d          r"| d         | d                                         fn| S )N   rQ   r   rR   )items    r%   rU   z4ModelInstanceUpdateRequest.to_dict.<locals>.<lambda>  s8    WTRSWV_E`E`%jd1gtAw/@/@%A%Afj r'   )six	iteritemsproject_typesgetattr
isinstancelistmaprS   rQ   dictitems)r$   resultattr_values        r%   rQ   z"ModelInstanceUpdateRequest.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pformatrQ   r*   s    r%   to_strz!ModelInstanceUpdateRequest.to_str  s    ~dllnn---r'   c                 *    |                                  S )zFor `print` and `pprint`)ri   r*   s    r%   __repr__z#ModelInstanceUpdateRequest.__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!ModelInstanceUpdateRequest.__eq__  s)    %!;<< 	5}..r'   c                     | |k     S )z+Returns true if both objects are not equal. rn   s     r%   __ne__z!ModelInstanceUpdateRequest.__ne__  s    5=  r'   )	NNr   TNNNNN)__name__
__module____qualname____doc__r[   attribute_mapr&   propertyr   setterr	   r
   r   r   r   r   r   r   rQ   ri   rk   rp   rs   rr   r'   r%   r   r      s         $$$#(
 
M %%'22#9#
 
M !   $(' (' (' ('T 	 	 X	 _
" 
" _
" 
 
 X
 \  \ " " X" L* L* L*\ 
" 
" X
" 
* 
* 
* 
# 
# X
# 
, 
, 
, ) ) X) 8 8  8( 	) 	) X	) 	8 	8  	8 - - X- #@ @ $#@ 
! 
! X
! ( ( (  ,. . .  / / /! ! ! ! !r'   r   )rg   rerY   objectr   rr   r'   r%   <module>r}      s`   &  				 



j! j! j! j! j! j! j! j! j! j!r'   