
    [j                     J    d Z 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.35
    Generated by: https://openapi-generator.tech
    N)Configurationc                       e Zd ZdZ	 ddddZ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d Zd Zd Zd Zd ZdS )V1WorkloadReferencezNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    str)name	pod_grouppod_group_replica_keyr   podGrouppodGroupReplicaKeyNc                     |t                      }|| _        d| _        d| _        d| _        d| _        || _        || _        |	|| _        dS dS )z0V1WorkloadReference - a model defined in OpenAPIN)	r   local_vars_configuration_name
_pod_group_pod_group_replica_keydiscriminatorr   r   r	   )selfr   r   r	   r   s        k/var/www/FlaskApp/flask-venv/lib/python3.11/site-packages/kubernetes/client/models/v1_workload_reference.py__init__zV1WorkloadReference.__init__/   sb    #+'4$(@%
&*#!	" ,)>D&&& -,    c                     | j         S )a  Gets the name of this V1WorkloadReference.  # noqa: E501

        Name defines the name of the Workload object this Pod belongs to. Workload must be in the same namespace as the Pod. If it doesn't match any existing Workload, the Pod will remain unschedulable until a Workload object is created and observed by the kube-scheduler. It must be a DNS subdomain.  # noqa: E501

        :return: The name of this V1WorkloadReference.  # noqa: E501
        :rtype: str
        )r   r   s    r   r   zV1WorkloadReference.name?   s     zr   c                 N    | j         j        r|t          d          || _        dS )a  Sets the name of this V1WorkloadReference.

        Name defines the name of the Workload object this Pod belongs to. Workload must be in the same namespace as the Pod. If it doesn't match any existing Workload, the Pod will remain unschedulable until a Workload object is created and observed by the kube-scheduler. It must be a DNS subdomain.  # noqa: E501

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


r   c                     | j         S )a  Gets the pod_group of this V1WorkloadReference.  # noqa: E501

        PodGroup is the name of the PodGroup within the Workload that this Pod belongs to. If it doesn't match any existing PodGroup within the Workload, the Pod will remain unschedulable until the Workload object is recreated and observed by the kube-scheduler. It must be a DNS label.  # noqa: E501

        :return: The pod_group of this V1WorkloadReference.  # noqa: E501
        :rtype: str
        )r   r   s    r   r   zV1WorkloadReference.pod_groupX   s     r   c                 N    | j         j        r|t          d          || _        dS )a  Sets the pod_group of this V1WorkloadReference.

        PodGroup is the name of the PodGroup within the Workload that this Pod belongs to. If it doesn't match any existing PodGroup within the Workload, the Pod will remain unschedulable until the Workload object is recreated and observed by the kube-scheduler. It must be a DNS label.  # noqa: E501

        :param pod_group: The pod_group of this V1WorkloadReference.  # noqa: E501
        :type: str
        Nz1Invalid value for `pod_group`, must not be `None`)r   r   r   r   )r   r   s     r   r   zV1WorkloadReference.pod_groupc   s2     (? 	RIDUPQQQ#r   c                     | j         S )a  Gets the pod_group_replica_key of this V1WorkloadReference.  # noqa: E501

        PodGroupReplicaKey specifies the replica key of the PodGroup to which this Pod belongs. It is used to distinguish pods belonging to different replicas of the same pod group. The pod group policy is applied separately to each replica. When set, it must be a DNS label.  # noqa: E501

        :return: The pod_group_replica_key of this V1WorkloadReference.  # noqa: E501
        :rtype: str
        r   r   s    r   r	   z)V1WorkloadReference.pod_group_replica_keyq   s     **r   c                     || _         dS )a  Sets the pod_group_replica_key of this V1WorkloadReference.

        PodGroupReplicaKey specifies the replica key of the PodGroup to which this Pod belongs. It is used to distinguish pods belonging to different replicas of the same pod group. The pod group policy is applied separately to each replica. When set, it must be a DNS label.  # noqa: E501

        :param pod_group_replica_key: The pod_group_replica_key of this V1WorkloadReference.  # noqa: E501
        :type: str
        Nr   )r   r	   s     r   r	   z)V1WorkloadReference.pod_group_replica_key|   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 dictc                 N    t          | d          r|                                 n| S )Nto_dicthasattrr"   )xs    r   <lambda>z-V1WorkloadReference.to_dict.<locals>.<lambda>   s!    WQ	-B-BIaiikkk r   r"   c                 v    t          | d         d          r"| d         | d                                         fn| S )N   r"   r   r#   )items    r   r&   z-V1WorkloadReference.to_dict.<locals>.<lambda>   s<    tAw	22"=$q'47??+<+<!=!=8< r   )six	iteritemsopenapi_typesgetattr
isinstancelistmapr$   r"   dictitems)r   resultattr_values        r   r"   zV1WorkloadReference.to_dict   s    }T%788 	% 	%GD!D$''E%&& %#CII% %    t 	** 	%$}}tE4(( %#C= =KKMM% %    t  %tr   c                 N    t          j        |                                           S )z.Returns the string representation of the model)pprintpformatr"   r   s    r   to_strzV1WorkloadReference.to_str   s    ~dllnn---r   c                 *    |                                  S )zFor `print` and `pprint`)r:   r   s    r   __repr__zV1WorkloadReference.__repr__   s    {{}}r   c                     t          |t                    sdS |                                 |                                k    S )z&Returns true if both objects are equalFr.   r   r"   r   others     r   __eq__zV1WorkloadReference.__eq__   s5    %!455 	5||~~00r   c                     t          |t                    sdS |                                 |                                k    S )z*Returns true if both objects are not equalTr>   r?   s     r   __ne__zV1WorkloadReference.__ne__   s5    %!455 	4||~~00r   )NNNN)__name__
__module____qualname____doc__r,   attribute_mapr   propertyr   setterr   r	   r"   r:   r<   rA   rC    r   r   r   r      s\         !& M !5 M? ? ? ?    X 
[  [   X $ $ $ + + X+ !	< 	< "!	<  0. . .  1 1 11 1 1 1 1r   r   )rG   r8   rer*   kubernetes.client.configurationr   objectr   rK   r   r   <module>rO      s|      				 



 9 9 9 9 9 9_1 _1 _1 _1 _1& _1 _1 _1 _1 _1r   