
    <g*                     B    d Z ddlZddlZddlZddlmZ  G d de      Zy)z
    Kubernetes

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: release-1.32
    Generated by: https://openapi-generator.tech
    N)Configurationc                      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y)$V1PriorityClasszNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    strboolV1ObjectMetaint)api_versiondescriptionglobal_defaultkindmetadatapreemption_policyvalue
apiVersionr   globalDefaultr   r   preemptionPolicyr   Nc	                    |
t               }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        ||| _
        ||| _        ||| _        ||| _        ||| _        ||| _        || _        y)z,V1PriorityClass - a model defined in OpenAPIN)r   local_vars_configuration_api_version_description_global_default_kind	_metadata_preemption_policy_valuediscriminatorr
   r   r   r   r   r   r   )	selfr
   r   r   r   r   r   r   r   s	            _/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_priority_class.py__init__zV1PriorityClass.__init__7   s    #+'4$(@%  #
"&!"*D"*D%"0DDI$DM(%6D"
    c                     | j                   S )a  Gets the api_version of this V1PriorityClass.  # noqa: E501

        APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources  # noqa: E501

        :return: The api_version of this V1PriorityClass.  # noqa: E501
        :rtype: str
        r   r   s    r   r
   zV1PriorityClass.api_versionT           r!   c                     || _         y)a  Sets the api_version of this V1PriorityClass.

        APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources  # noqa: E501

        :param api_version: The api_version of this V1PriorityClass.  # noqa: E501
        :type: str
        Nr#   )r   r
   s     r   r
   zV1PriorityClass.api_version_        (r!   c                     | j                   S )a(  Gets the description of this V1PriorityClass.  # noqa: E501

        description is an arbitrary string that usually provides guidelines on when this priority class should be used.  # noqa: E501

        :return: The description of this V1PriorityClass.  # noqa: E501
        :rtype: str
        r   r$   s    r   r   zV1PriorityClass.descriptionk   r%   r!   c                     || _         y)a$  Sets the description of this V1PriorityClass.

        description is an arbitrary string that usually provides guidelines on when this priority class should be used.  # noqa: E501

        :param description: The description of this V1PriorityClass.  # noqa: E501
        :type: str
        Nr)   )r   r   s     r   r   zV1PriorityClass.descriptionv   r'   r!   c                     | j                   S )aE  Gets the global_default of this V1PriorityClass.  # noqa: E501

        globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.  # noqa: E501

        :return: The global_default of this V1PriorityClass.  # noqa: E501
        :rtype: bool
        r   r$   s    r   r   zV1PriorityClass.global_default   s     ###r!   c                     || _         y)aD  Sets the global_default of this V1PriorityClass.

        globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.  # noqa: E501

        :param global_default: The global_default of this V1PriorityClass.  # noqa: E501
        :type: bool
        Nr,   )r   r   s     r   r   zV1PriorityClass.global_default   s      .r!   c                     | j                   S )a  Gets the kind of this V1PriorityClass.  # noqa: E501

        Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds  # noqa: E501

        :return: The kind of this V1PriorityClass.  # noqa: E501
        :rtype: str
        r   r$   s    r   r   zV1PriorityClass.kind   s     zzr!   c                     || _         y)a  Sets the kind of this V1PriorityClass.

        Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds  # noqa: E501

        :param kind: The kind of this V1PriorityClass.  # noqa: E501
        :type: str
        Nr/   )r   r   s     r   r   zV1PriorityClass.kind   s     
r!   c                     | j                   S )zGets the metadata of this V1PriorityClass.  # noqa: E501


        :return: The metadata of this V1PriorityClass.  # noqa: E501
        :rtype: V1ObjectMeta
        r   r$   s    r   r   zV1PriorityClass.metadata   s     ~~r!   c                     || _         y)zSets the metadata of this V1PriorityClass.


        :param metadata: The metadata of this V1PriorityClass.  # noqa: E501
        :type: V1ObjectMeta
        Nr2   )r   r   s     r   r   zV1PriorityClass.metadata   s     "r!   c                     | j                   S )a[  Gets the preemption_policy of this V1PriorityClass.  # noqa: E501

        preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.  # noqa: E501

        :return: The preemption_policy of this V1PriorityClass.  # noqa: E501
        :rtype: str
        r   r$   s    r   r   z!V1PriorityClass.preemption_policy   s     &&&r!   c                     || _         y)a]  Sets the preemption_policy of this V1PriorityClass.

        preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.  # noqa: E501

        :param preemption_policy: The preemption_policy of this V1PriorityClass.  # noqa: E501
        :type: str
        Nr5   )r   r   s     r   r   z!V1PriorityClass.preemption_policy   s     #4r!   c                     | j                   S )aN  Gets the value of this V1PriorityClass.  # noqa: E501

        value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.  # noqa: E501

        :return: The value of this V1PriorityClass.  # noqa: E501
        :rtype: int
        )r   r$   s    r   r   zV1PriorityClass.value   s     {{r!   c                 X    | j                   j                  r|t        d      || _        y)aD  Sets the value of this V1PriorityClass.

        value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.  # noqa: E501

        :param value: The value of this V1PriorityClass.  # noqa: E501
        :type: int
        Nz-Invalid value for `value`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r   s     r   r   zV1PriorityClass.value   s*     ((??EMLMMr!   c                 ~   i }t        j                  | j                        D ]  \  }}t        | |      }t	        |t
              rt        t        d |            ||<   <t        |d      r|j                         ||<   \t	        |t              r(t        t        d |j                                     ||<   |||<    |S )z&Returns the model properties as a dictc                 >    t        | d      r| j                         S | S )Nto_dicthasattrr=   )xs    r   <lambda>z)V1PriorityClass.to_dict.<locals>.<lambda>   s    WQ	-BaiikIIr!   r=   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r=   r   r>   )items    r   rA   z)V1PriorityClass.to_dict.<locals>.<lambda>  s6    tAw	2 #'q'47??+<!= "=8<"=r!   )six	iteritemsopenapi_typesgetattr
isinstancelistmapr?   r=   dictitems)r   resultattr_r   s        r   r=   zV1PriorityClass.to_dict   s    }}T%7%78GD!D$'E%&#CI%  t 	*$}}tE4(#C=KKM%  t  %t! 9$ r!   c                 H    t        j                  | j                               S )z.Returns the string representation of the model)pprintpformatr=   r$   s    r   to_strzV1PriorityClass.to_str  s    ~~dlln--r!   c                 "    | j                         S )zFor `print` and `pprint`)rT   r$   s    r   __repr__zV1PriorityClass.__repr__  s    {{}r!   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFrI   r   r=   r   others     r   __eq__zV1PriorityClass.__eq__  s&    %1||~00r!   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTrX   rY   s     r   __ne__zV1PriorityClass.__ne__  s&    %1||~00r!   )NNNNNNNN)__name__
__module____qualname____doc__rG   attribute_mapr    propertyr
   setterr   r   r   r   r   r   r=   rT   rV   r[   r]    r!   r   r   r      s     ""M $$)/M: ! ! 	( 	( ! ! 	( 	( $ $ 	. 	.   
[[	 	   __" " ' ' 	4 	4   \\ 0.11r!   r   )ra   rR   rerE   kubernetes.client.configurationr   objectr   re   r!   r   <module>ri      s&     	 
 9L1f L1r!   