
    [j%3                     |    d Z 	 ddlmZ n# e$ r	 ddlmZ Y nw xY wddlZddlZddlZddlm	Z	  G d de
          ZdS )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.36
    Generated by: https://openapi-generator.tech
    )getfullargspec)
getargspecN)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&d Zd! Zd" Zd# Zd$ ZdS )'V1alpha2PodGroupTemplatezNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    strintz#list[V1alpha2PodGroupResourceClaim]%V1alpha2PodGroupSchedulingConstraints V1alpha2PodGroupSchedulingPolicy)disruption_modenameprioritypriority_class_nameresource_claimsscheduling_constraintsscheduling_policydisruptionModer   r   priorityClassNameresourceClaimsschedulingConstraintsschedulingPolicyNc	                 $   |t          j                    }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        d| _
        ||| _        || _        ||| _        ||| _        ||| _        ||| _        || _        dS )z5V1alpha2PodGroupTemplate - a model defined in OpenAPIN)r   get_default_copylocal_vars_configuration_disruption_mode_name	_priority_priority_class_name_resource_claims_scheduling_constraints_scheduling_policydiscriminatorr   r   r   r   r   r   r   )	selfr   r   r   r   r   r   r   r   s	            q/var/www/FlaskApp/flask-venv/lib/python3.11/site-packages/kubernetes/client/models/v1alpha2_pod_group_template.py__init__z!V1alpha2PodGroupTemplate.__init__:   s    #+'4'E'G'G$(@% $
$(! $'+$"&!&#2D 	$DM*':D$&#2D !-*@D'!2    c                     | j         S )a  Gets the disruption_mode of this V1alpha2PodGroupTemplate.  # noqa: E501

        DisruptionMode defines the mode in which a given PodGroup can be disrupted. One of Pod, PodGroup. This field is available only when the WorkloadAwarePreemption feature gate is enabled.  # noqa: E501

        :return: The disruption_mode of this V1alpha2PodGroupTemplate.  # noqa: E501
        :rtype: str
        r   r#   s    r$   r   z(V1alpha2PodGroupTemplate.disruption_modeV        $$r&   c                     || _         dS )a  Sets the disruption_mode of this V1alpha2PodGroupTemplate.

        DisruptionMode defines the mode in which a given PodGroup can be disrupted. One of Pod, PodGroup. This field is available only when the WorkloadAwarePreemption feature gate is enabled.  # noqa: E501

        :param disruption_mode: The disruption_mode of this V1alpha2PodGroupTemplate.  # noqa: E501
        :type disruption_mode: str
        Nr(   )r#   r   s     r$   r   z(V1alpha2PodGroupTemplate.disruption_modea        !0r&   c                     | j         S )a7  Gets the name of this V1alpha2PodGroupTemplate.  # noqa: E501

        Name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable.  # noqa: E501

        :return: The name of this V1alpha2PodGroupTemplate.  # noqa: E501
        :rtype: str
        )r   r)   s    r$   r   zV1alpha2PodGroupTemplate.namem   s     zr&   c                 N    | j         j        r|t          d          || _        dS )a1  Sets the name of this V1alpha2PodGroupTemplate.

        Name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable.  # noqa: E501

        :param name: The name of this V1alpha2PodGroupTemplate.  # noqa: E501
        :type name: str
        Nz,Invalid value for `name`, must not be `None`)r   client_side_validation
ValueErrorr   )r#   r   s     r$   r   zV1alpha2PodGroupTemplate.namex   s1     (? 	MDLKLLL


r&   c                     | j         S )a  Gets the priority of this V1alpha2PodGroupTemplate.  # noqa: E501

        Priority is the value of priority of pod groups created from this template. Various system components use this field to find the priority of the pod group. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. This field is available only when the WorkloadAwarePreemption feature gate is enabled.  # noqa: E501

        :return: The priority of this V1alpha2PodGroupTemplate.  # noqa: E501
        :rtype: int
        r   r)   s    r$   r   z!V1alpha2PodGroupTemplate.priority   s     ~r&   c                     || _         dS )a  Sets the priority of this V1alpha2PodGroupTemplate.

        Priority is the value of priority of pod groups created from this template. Various system components use this field to find the priority of the pod group. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. This field is available only when the WorkloadAwarePreemption feature gate is enabled.  # noqa: E501

        :param priority: The priority of this V1alpha2PodGroupTemplate.  # noqa: E501
        :type priority: int
        Nr2   )r#   r   s     r$   r   z!V1alpha2PodGroupTemplate.priority   s     "r&   c                     | j         S )av  Gets the priority_class_name of this V1alpha2PodGroupTemplate.  # noqa: E501

        PriorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. If no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, pod groups created from this template will have the priority set to zero. This field is available only when the WorkloadAwarePreemption feature gate is enabled.  # noqa: E501

        :return: The priority_class_name of this V1alpha2PodGroupTemplate.  # noqa: E501
        :rtype: str
        r   r)   s    r$   r   z,V1alpha2PodGroupTemplate.priority_class_name   s     ((r&   c                     || _         dS )a  Sets the priority_class_name of this V1alpha2PodGroupTemplate.

        PriorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. If no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, pod groups created from this template will have the priority set to zero. This field is available only when the WorkloadAwarePreemption feature gate is enabled.  # noqa: E501

        :param priority_class_name: The priority_class_name of this V1alpha2PodGroupTemplate.  # noqa: E501
        :type priority_class_name: str
        Nr5   )r#   r   s     r$   r   z,V1alpha2PodGroupTemplate.priority_class_name   s     %8!!!r&   c                     | j         S )a  Gets the resource_claims of this V1alpha2PodGroupTemplate.  # noqa: E501

        ResourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate.  This is an alpha-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled.  This field is immutable.  # noqa: E501

        :return: The resource_claims of this V1alpha2PodGroupTemplate.  # noqa: E501
        :rtype: list[V1alpha2PodGroupResourceClaim]
        r   r)   s    r$   r   z(V1alpha2PodGroupTemplate.resource_claims   r*   r&   c                     || _         dS )a  Sets the resource_claims of this V1alpha2PodGroupTemplate.

        ResourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate.  This is an alpha-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled.  This field is immutable.  # noqa: E501

        :param resource_claims: The resource_claims of this V1alpha2PodGroupTemplate.  # noqa: E501
        :type resource_claims: list[V1alpha2PodGroupResourceClaim]
        Nr8   )r#   r   s     r$   r   z(V1alpha2PodGroupTemplate.resource_claims   r,   r&   c                     | j         S )zGets the scheduling_constraints of this V1alpha2PodGroupTemplate.  # noqa: E501


        :return: The scheduling_constraints of this V1alpha2PodGroupTemplate.  # noqa: E501
        :rtype: V1alpha2PodGroupSchedulingConstraints
        r    r)   s    r$   r   z/V1alpha2PodGroupTemplate.scheduling_constraints   s     ++r&   c                     || _         dS )a
  Sets the scheduling_constraints of this V1alpha2PodGroupTemplate.


        :param scheduling_constraints: The scheduling_constraints of this V1alpha2PodGroupTemplate.  # noqa: E501
        :type scheduling_constraints: V1alpha2PodGroupSchedulingConstraints
        Nr;   )r#   r   s     r$   r   z/V1alpha2PodGroupTemplate.scheduling_constraints   s     (>$$$r&   c                     | j         S )zGets the scheduling_policy of this V1alpha2PodGroupTemplate.  # noqa: E501


        :return: The scheduling_policy of this V1alpha2PodGroupTemplate.  # noqa: E501
        :rtype: V1alpha2PodGroupSchedulingPolicy
        )r!   r)   s    r$   r   z*V1alpha2PodGroupTemplate.scheduling_policy   s     &&r&   c                 N    | j         j        r|t          d          || _        dS )zSets the scheduling_policy of this V1alpha2PodGroupTemplate.


        :param scheduling_policy: The scheduling_policy of this V1alpha2PodGroupTemplate.  # noqa: E501
        :type scheduling_policy: V1alpha2PodGroupSchedulingPolicy
        Nz9Invalid value for `scheduling_policy`, must not be `None`)r   r/   r0   r!   )r#   r   s     r$   r   z*V1alpha2PodGroupTemplate.scheduling_policy   s6     (? 	ZDUD]XYYY"3r&   Fc                    i }fdt          j        | j                  D ]\  }}t          | |          }r| j                            ||          n|}t          |t                    r$t          t          fd|                    ||<   mt          |t                    r6t          t          fd|
                                                    ||<    |          ||<   |S )z&Returns the model properties as a dictc                     t          | d          rUt          | j                  j        }t	          |          dk    r|                                 S |                               S | S )Nto_dict   )hasattrr   rA   argslen)xrD   	serializes     r$   convertz1V1alpha2PodGroupTemplate.to_dict.<locals>.convert   s[    q)$$ %ai005t99>>99;;&99Y///r&   c                      |           S )N )rF   rH   s    r$   <lambda>z2V1alpha2PodGroupTemplate.to_dict.<locals>.<lambda>
  s    ggajj r&   c                 6    | d          | d                   fS )Nr   rB   rJ   )itemrH   s    r$   rK   z2V1alpha2PodGroupTemplate.to_dict.<locals>.<lambda>  s    $q'7747+;+;!< r&   )six	iteritemsopenapi_typesgetattrattribute_mapget
isinstancelistmapdictitems)r#   rG   resultattr_valuerH   s    `    @r$   rA   z V1alpha2PodGroupTemplate.to_dict   s   	 	 	 	 	 }T%788 	. 	.GD!D$''E9BL4%))$555D%&& .#C((((% %    t E4(( .#C<<<<KKMM% %    t
  'wu~~tr&   c                 N    t          j        |                                           S )z.Returns the string representation of the model)pprintpformatrA   r)   s    r$   to_strzV1alpha2PodGroupTemplate.to_str  s    ~dllnn---r&   c                 *    |                                  S )zFor `print` and `pprint`)r`   r)   s    r$   __repr__z!V1alpha2PodGroupTemplate.__repr__  s    {{}}r&   c                     t          |t                    sdS |                                 |                                k    S )z&Returns true if both objects are equalFrT   r   rA   r#   others     r$   __eq__zV1alpha2PodGroupTemplate.__eq__  s5    %!9:: 	5||~~00r&   c                     t          |t                    sdS |                                 |                                k    S )z*Returns true if both objects are not equalTrd   re   s     r$   __ne__zV1alpha2PodGroupTemplate.__ne__&  s5    %!9:: 	4||~~00r&   )NNNNNNNN)F)__name__
__module____qualname____doc__rP   rR   r%   propertyr   setterr   r   r   r   r   r   rA   r`   rb   rg   ri   rJ   r&   r$   r   r      s`         !$@"I? M ,2+"9/ M3 3 3 38 % % X% 	0 	0 	0   X 
[  [   X _	" 	" _	" ) ) X) 	8 	8  	8 % % X% 	0 	0 	0 , , X, "> > #"> ' ' X' 
4 
4 
4   @. . .  1 1 11 1 1 1 1r&   r   )rm   inspectr   ImportErrorr   r^   rerN   kubernetes.client.configurationr   objectr   rJ   r&   r$   <module>ru      s    5&&&&&&& 5 5 5444444445  				 



 9 9 9 9 9 9S1 S1 S1 S1 S1v S1 S1 S1 S1 S1s    