
    6                     >    d Z ddlmZ ddlmZ ddlZ G d de      Zy)z
    Kubernetes

    No description provided (generated by Swagger Codegen
    https://github.com/swagger-api/swagger-codegen)

    OpenAPI spec version: v1.14.4

    Generated by: https://github.com/swagger-api/swagger-codegen.git
    )pformat)	iteritemsNc                      e Zd ZdZ	 dddddddZ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d Zd Zd Zd Zd Zy)!
V1NodeSpeczw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    V1NodeConfigSourcestrzlist[V1Taint]bool)config_sourceexternal_idpod_cidrprovider_idtaintsunschedulableconfigSource
externalIDpodCIDR
providerIDr   r   Nc                     d| _         d| _        d| _        d| _        d| _        d| _        d| _        ||| _        ||| _        ||| _	        ||| _
        ||| _        ||| _        yy)z9
        V1NodeSpec - a model defined in Swagger
        N)_config_source_external_id	_pod_cidr_provider_id_taints_unschedulablediscriminatorr
   r   r   r   r   r   )selfr
   r   r   r   r   r   s          8lib/third_party/kubernetes/client/models/v1_node_spec.py__init__zV1NodeSpec.__init__0   s     DDDNDDLDD (d$ddm$ddk (d !    c                     | j                   S )a?  
        Gets the config_source of this V1NodeSpec.
        If specified, the source to get node configuration from The
        DynamicKubeletConfig feature gate must be enabled for the Kubelet to use
        this field

        :return: The config_source of this V1NodeSpec.
        :rtype: V1NodeConfigSource
        r   r   s    r   r
   zV1NodeSpec.config_sourceP        r   c                     || _         y)aK  
        Sets the config_source of this V1NodeSpec.
        If specified, the source to get node configuration from The
        DynamicKubeletConfig feature gate must be enabled for the Kubelet to use
        this field

        :param config_source: The config_source of this V1NodeSpec.
        :type: V1NodeConfigSource
        Nr!   )r   r
   s     r   r
   zV1NodeSpec.config_source]        (Dr   c                     | j                   S )a   
        Gets the external_id of this V1NodeSpec.
        Deprecated. Not all kubelets will set this field. Remove field after
        1.13. see: https://issues.k8s.io/61966

        :return: The external_id of this V1NodeSpec.
        :rtype: str
        r   r"   s    r   r   zV1NodeSpec.external_idk        r   c                     || _         y)a
  
        Sets the external_id of this V1NodeSpec.
        Deprecated. Not all kubelets will set this field. Remove field after
        1.13. see: https://issues.k8s.io/61966

        :param external_id: The external_id of this V1NodeSpec.
        :type: str
        Nr'   )r   r   s     r   r   zV1NodeSpec.external_idw        $Dr   c                     | j                   S )z
        Gets the pod_cidr of this V1NodeSpec.
        PodCIDR represents the pod IP range assigned to the node.

        :return: The pod_cidr of this V1NodeSpec.
        :rtype: str
        r   r"   s    r   r   zV1NodeSpec.pod_cidr   s     >>r   c                     || _         y)z
        Sets the pod_cidr of this V1NodeSpec.
        PodCIDR represents the pod IP range assigned to the node.

        :param pod_cidr: The pod_cidr of this V1NodeSpec.
        :type: str
        Nr,   )r   r   s     r   r   zV1NodeSpec.pod_cidr   s     DNr   c                     | j                   S )z
        Gets the provider_id of this V1NodeSpec.
        ID of the node assigned by the cloud provider in the format:
        <ProviderName>://<ProviderSpecificNodeID>

        :return: The provider_id of this V1NodeSpec.
        :rtype: str
        r   r"   s    r   r   zV1NodeSpec.provider_id   r(   r   c                     || _         y)a  
        Sets the provider_id of this V1NodeSpec.
        ID of the node assigned by the cloud provider in the format:
        <ProviderName>://<ProviderSpecificNodeID>

        :param provider_id: The provider_id of this V1NodeSpec.
        :type: str
        Nr/   )r   r   s     r   r   zV1NodeSpec.provider_id   r*   r   c                     | j                   S )z
        Gets the taints of this V1NodeSpec.
        If specified, the node's taints.

        :return: The taints of this V1NodeSpec.
        :rtype: list[V1Taint]
        r   r"   s    r   r   zV1NodeSpec.taints   s     <<r   c                     || _         y)z
        Sets the taints of this V1NodeSpec.
        If specified, the node's taints.

        :param taints: The taints of this V1NodeSpec.
        :type: list[V1Taint]
        Nr2   )r   r   s     r   r   zV1NodeSpec.taints   s     DLr   c                     | j                   S )aP  
        Gets the unschedulable of this V1NodeSpec.
        Unschedulable controls node schedulability of new pods. By default, node
        is schedulable. More info:
        https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration

        :return: The unschedulable of this V1NodeSpec.
        :rtype: bool
        r   r"   s    r   r   zV1NodeSpec.unschedulable   r#   r   c                     || _         y)a\  
        Sets the unschedulable of this V1NodeSpec.
        Unschedulable controls node schedulability of new pods. By default, node
        is schedulable. More info:
        https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration

        :param unschedulable: The unschedulable of this V1NodeSpec.
        :type: bool
        Nr5   )r   r   s     r   r   zV1NodeSpec.unschedulable   r%   r   c                 j   i }t        | j                        D ]  \  }}t        | |      }t        |t              rt	        t        d |            ||<   <t        |d      r|j                         ||<   \t        |t              r(t        t        d |j                                     ||<   |||<    |S )z8
        Returns the model properties as a dict
        c                 >    t        | d      r| j                         S | S )Nto_dicthasattrr9   )xs    r   <lambda>z$V1NodeSpec.to_dict.<locals>.<lambda>   s    I)>!))+EAEr   r9   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r9   r   r:   )items    r   r=   z$V1NodeSpec.to_dict.<locals>.<lambda>   s6    47I. #1gtAw'89 9489r   )
r   swagger_typesgetattr
isinstancelistmapr;   r9   dictitems)r   resultattr_values        r   r9   zV1NodeSpec.to_dict   s     FT//0adD!e	E4	 EuMOt5)$}}teT"9:?++-IJt
 t 1 Mr   c                 4    t        | j                               S )z@
        Returns the string representation of the model
        )r   r9   r"   s    r   to_strzV1NodeSpec.to_str   s     4<<>""r   c                 "    | j                         S )z*
        For `print` and `pprint`
        )rM   r"   s    r   __repr__zV1NodeSpec.__repr__  s     ;;=r   c                 V    t        |t              sy| j                  |j                  k(  S )z8
        Returns true if both objects are equal
        F)rC   r   __dict__r   others     r   __eq__zV1NodeSpec.__eq__	  s$     eZ(==ENN**r   c                     | |k(   S )z<
        Returns true if both objects are not equal
         rR   s     r   __ne__zV1NodeSpec.__ne__  s     u}r   )NNNNNN)__name__
__module____qualname____doc__rA   attribute_mapr   propertyr
   setterr   r   r   r   r   r9   rM   rO   rT   rW   rV   r   r   r   r      s    ,- &!!&- "!)@ 
 
 ( ( 	 	 
$ 
$   ??	 	 	 	 
$ 
$   
==	 	 
 
 ( (.#+r   r   )r[   pprintr   sixr   reobjectr   rV   r   r   <module>rc      s#   	   	D Dr   