
    [j4                     |    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 )(V1alpha2PodGroupSpeczNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    str!V1alpha2PodGroupTemplateReferenceintz#list[V1alpha2PodGroupResourceClaim]%V1alpha2PodGroupSchedulingConstraints V1alpha2PodGroupSchedulingPolicy)disruption_modepod_group_template_refprioritypriority_class_nameresource_claimsscheduling_constraintsscheduling_policydisruptionModepodGroupTemplateRefr   priorityClassNameresourceClaimsschedulingConstraintsschedulingPolicyNc	                 (   |t          j                    }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        d| _
        ||| _        ||| _        ||| _        ||| _        ||| _        ||| _        || _        dS )z1V1alpha2PodGroupSpec - a model defined in OpenAPIN)r   get_default_copylocal_vars_configuration_disruption_mode_pod_group_template_ref	_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	            m/var/www/FlaskApp/flask-venv/lib/python3.11/site-packages/kubernetes/client/models/v1alpha2_pod_group_spec.py__init__zV1alpha2PodGroupSpec.__init__:   s    #+'4'E'G'G$(@% $'+$$(! $'+$"&!&#2D !-*@D'$DM*':D$&#2D !-*@D'!2    c                     | j         S )a	  Gets the disruption_mode of this V1alpha2PodGroupSpec.  # noqa: E501

        DisruptionMode defines the mode in which a given PodGroup can be disrupted. Controllers are expected to fill this field by copying it from a PodGroupTemplate. One of Pod, PodGroup. Defaults to Pod if unset. This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled.  # noqa: E501

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

        DisruptionMode defines the mode in which a given PodGroup can be disrupted. Controllers are expected to fill this field by copying it from a PodGroupTemplate. One of Pod, PodGroup. Defaults to Pod if unset. This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled.  # noqa: E501

        :param disruption_mode: The disruption_mode of this V1alpha2PodGroupSpec.  # noqa: E501
        :type disruption_mode: str
        Nr*   )r%   r   s     r&   r   z$V1alpha2PodGroupSpec.disruption_modeb        !0r(   c                     | j         S )zGets the pod_group_template_ref of this V1alpha2PodGroupSpec.  # noqa: E501


        :return: The pod_group_template_ref of this V1alpha2PodGroupSpec.  # noqa: E501
        :rtype: V1alpha2PodGroupTemplateReference
        r   r+   s    r&   r   z+V1alpha2PodGroupSpec.pod_group_template_refn        ++r(   c                     || _         dS )zSets the pod_group_template_ref of this V1alpha2PodGroupSpec.


        :param pod_group_template_ref: The pod_group_template_ref of this V1alpha2PodGroupSpec.  # noqa: E501
        :type pod_group_template_ref: V1alpha2PodGroupTemplateReference
        Nr0   )r%   r   s     r&   r   z+V1alpha2PodGroupSpec.pod_group_template_refx        (>$$$r(   c                     | j         S )a  Gets the priority of this V1alpha2PodGroupSpec.  # noqa: E501

        Priority is the value of priority of this pod group. 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 immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled.  # noqa: E501

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

        Priority is the value of priority of this pod group. 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 immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled.  # noqa: E501

        :param priority: The priority of this V1alpha2PodGroupSpec.  # noqa: E501
        :type priority: int
        Nr5   )r%   r   s     r&   r   zV1alpha2PodGroupSpec.priority   s     "r(   c                     | j         S )a  Gets the priority_class_name of this V1alpha2PodGroupSpec.  # noqa: E501

        PriorityClassName defines the priority that should be considered when scheduling this pod group. Controllers are expected to fill this field by copying it from a PodGroupTemplate. Otherwise, it is validated and resolved similarly to the PriorityClassName on PodGroupTemplate (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the pod group's priority will be zero). This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled.  # noqa: E501

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

        PriorityClassName defines the priority that should be considered when scheduling this pod group. Controllers are expected to fill this field by copying it from a PodGroupTemplate. Otherwise, it is validated and resolved similarly to the PriorityClassName on PodGroupTemplate (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the pod group's priority will be zero). This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled.  # noqa: E501

        :param priority_class_name: The priority_class_name of this V1alpha2PodGroupSpec.  # noqa: E501
        :type priority_class_name: str
        Nr8   )r%   r   s     r&   r   z(V1alpha2PodGroupSpec.priority_class_name   s     %8!!!r(   c                     | j         S )a  Gets the resource_claims of this V1alpha2PodGroupSpec.  # 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 V1alpha2PodGroupSpec.  # noqa: E501
        :rtype: list[V1alpha2PodGroupResourceClaim]
        r!   r+   s    r&   r   z$V1alpha2PodGroupSpec.resource_claims   r,   r(   c                     || _         dS )a  Sets the resource_claims of this V1alpha2PodGroupSpec.

        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 V1alpha2PodGroupSpec.  # noqa: E501
        :type resource_claims: list[V1alpha2PodGroupResourceClaim]
        Nr;   )r%   r   s     r&   r   z$V1alpha2PodGroupSpec.resource_claims   r.   r(   c                     | j         S )zGets the scheduling_constraints of this V1alpha2PodGroupSpec.  # noqa: E501


        :return: The scheduling_constraints of this V1alpha2PodGroupSpec.  # noqa: E501
        :rtype: V1alpha2PodGroupSchedulingConstraints
        r"   r+   s    r&   r   z+V1alpha2PodGroupSpec.scheduling_constraints   r1   r(   c                     || _         dS )a  Sets the scheduling_constraints of this V1alpha2PodGroupSpec.


        :param scheduling_constraints: The scheduling_constraints of this V1alpha2PodGroupSpec.  # noqa: E501
        :type scheduling_constraints: V1alpha2PodGroupSchedulingConstraints
        Nr>   )r%   r   s     r&   r   z+V1alpha2PodGroupSpec.scheduling_constraints   r3   r(   c                     | j         S )zGets the scheduling_policy of this V1alpha2PodGroupSpec.  # noqa: E501


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


        :param scheduling_policy: The scheduling_policy of this V1alpha2PodGroupSpec.  # noqa: E501
        :type scheduling_policy: V1alpha2PodGroupSchedulingPolicy
        Nz9Invalid value for `scheduling_policy`, must not be `None`)r   client_side_validation
ValueErrorr#   )r%   r   s     r&   r   z&V1alpha2PodGroupSpec.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   rF   argslen)xrI   	serializes     r&   convertz-V1alpha2PodGroupSpec.to_dict.<locals>.convert   s[    q)$$ %ai005t99>>99;;&99Y///r(   c                      |           S )N )rK   rM   s    r&   <lambda>z.V1alpha2PodGroupSpec.to_dict.<locals>.<lambda>  s    ggajj r(   c                 6    | d          | d                   fS )Nr   rG   rO   )itemrM   s    r&   rP   z.V1alpha2PodGroupSpec.to_dict.<locals>.<lambda>  s    $q'7747+;+;!< r(   )six	iteritemsopenapi_typesgetattrattribute_mapget
isinstancelistmapdictitems)r%   rL   resultattr_valuerM   s    `    @r&   rF   zV1alpha2PodGroupSpec.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pformatrF   r+   s    r&   to_strzV1alpha2PodGroupSpec.to_str  s    ~dllnn---r(   c                 *    |                                  S )zFor `print` and `pprint`)re   r+   s    r&   __repr__zV1alpha2PodGroupSpec.__repr__  s    {{}}r(   c                     t          |t                    sdS |                                 |                                k    S )z&Returns true if both objects are equalFrY   r   rF   r%   others     r&   __eq__zV1alpha2PodGroupSpec.__eq__  s5    %!566 	5||~~00r(   c                     t          |t                    sdS |                                 |                                k    S )z*Returns true if both objects are not equalTri   rj   s     r&   __ne__zV1alpha2PodGroupSpec.__ne__#  s5    %!566 	4||~~00r(   )NNNNNNNN)F)__name__
__module____qualname____doc__rU   rW   r'   propertyr   setterr   r   r   r   r   r   rF   re   rg   rl   rn   rO   r(   r&   r   r      sb         !"E$@"I? M ,"72+"9/ M3 3 3 3: % % 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   )rr   inspectr   ImportErrorr   rc   rerS   kubernetes.client.configurationr   objectr   rO   r(   r&   <module>rz      s    5&&&&&&& 5 5 5444444445  				 



 9 9 9 9 9 9P1 P1 P1 P1 P16 P1 P1 P1 P1 P1s    