o
    g<                     @   s<   d Z ddlZddlZddlZddlmZ G d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.32
    Generated by: https://openapi-generator.tech
    N)Configurationc                   @   s  e Zd ZdZ	 ddddddddd	d
ddddZddddddddddddddZdPddZedd  Zej	d!d  Zed"d# Z
e
j	d$d# Z
ed%d& Zej	d'd& Zed(d) Zej	d*d) Zed+d, Zej	d-d, Zed.d/ Zej	d0d/ Zed1d2 Zej	d3d2 Zed4d5 Zej	d6d5 Zed7d8 Zej	d9d8 Zed:d; Zej	d<d; Zed=d> Zej	d?d> Zed@dA Zej	dBdA ZedCdD Zej	dEdD ZdFdG ZdHdI ZdJdK ZdLdM ZdNdO ZdS )QV1NodeStatuszNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    zlist[V1NodeAddress]zdict(str, str)zlist[V1NodeCondition]V1NodeConfigStatusV1NodeDaemonEndpointsV1NodeFeatureszlist[V1ContainerImage]V1NodeSystemInfostrzlist[V1NodeRuntimeHandler]zlist[V1AttachedVolume]z	list[str])	addressesallocatablecapacity
conditionsconfigdaemon_endpointsfeaturesimages	node_infophaseruntime_handlersvolumes_attachedvolumes_in_user	   r
   r   r   r   daemonEndpointsr   r   nodeInfor   runtimeHandlersvolumesAttachedvolumesInUseNc                 C   s&  |du rt  }|| _d| _d| _d| _d| _d| _d| _d| _d| _	d| _
d| _d| _d| _d| _d| _|dur;|| _|durB|| _|durI|| _|durP|| _|durW|| _|dur^|| _|dure|| _|durl|| _|	durs|	| _|
durz|
| _|dur|| _|dur|| _|dur|| _dS dS )z)V1NodeStatus - a model defined in OpenAPIN)r   local_vars_configuration
_addresses_allocatable	_capacity_conditions_config_daemon_endpoints	_features_images
_node_info_phase_runtime_handlers_volumes_attached_volumes_in_usediscriminatorr	   r
   r   r   r   r   r   r   r   r   r   r   r   )selfr	   r
   r   r   r   r   r   r   r   r   r   r   r   r    r+   ^/var/www/visachat/venv/lib/python3.10/site-packages/kubernetes/client/models/v1_node_status.py__init__C   sX   
zV1NodeStatus.__init__c                 C      | j S )aN  Gets the addresses of this V1NodeStatus.  # noqa: E501

        List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/reference/node/node-status/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP).  # noqa: E501

        :return: The addresses of this V1NodeStatus.  # noqa: E501
        :rtype: list[V1NodeAddress]
        r   r*   r+   r+   r,   r	   s      	zV1NodeStatus.addressesc                 C   
   || _ dS )aH  Sets the addresses of this V1NodeStatus.

        List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/reference/node/node-status/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP).  # noqa: E501

        :param addresses: The addresses of this V1NodeStatus.  # noqa: E501
        :type: list[V1NodeAddress]
        Nr/   )r*   r	   r+   r+   r,   r	   ~      

c                 C   r.   )a%  Gets the allocatable of this V1NodeStatus.  # noqa: E501

        Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.  # noqa: E501

        :return: The allocatable of this V1NodeStatus.  # noqa: E501
        :rtype: dict(str, str)
        r   r0   r+   r+   r,   r
      r1   zV1NodeStatus.allocatablec                 C   r2   )a!  Sets the allocatable of this V1NodeStatus.

        Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.  # noqa: E501

        :param allocatable: The allocatable of this V1NodeStatus.  # noqa: E501
        :type: dict(str, str)
        Nr4   )r*   r
   r+   r+   r,   r
      r3   c                 C   r.   )a5  Gets the capacity of this V1NodeStatus.  # noqa: E501

        Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity  # noqa: E501

        :return: The capacity of this V1NodeStatus.  # noqa: E501
        :rtype: dict(str, str)
        r   r0   r+   r+   r,   r      r1   zV1NodeStatus.capacityc                 C   r2   )a.  Sets the capacity of this V1NodeStatus.

        Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity  # noqa: E501

        :param capacity: The capacity of this V1NodeStatus.  # noqa: E501
        :type: dict(str, str)
        Nr5   )r*   r   r+   r+   r,   r      r3   c                 C   r.   )aJ  Gets the conditions of this V1NodeStatus.  # noqa: E501

        Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/reference/node/node-status/#condition  # noqa: E501

        :return: The conditions of this V1NodeStatus.  # noqa: E501
        :rtype: list[V1NodeCondition]
        r   r0   r+   r+   r,   r      r1   zV1NodeStatus.conditionsc                 C   r2   )aE  Sets the conditions of this V1NodeStatus.

        Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/reference/node/node-status/#condition  # noqa: E501

        :param conditions: The conditions of this V1NodeStatus.  # noqa: E501
        :type: list[V1NodeCondition]
        Nr6   )r*   r   r+   r+   r,   r      r3   c                 C   r.   )zGets the config of this V1NodeStatus.  # noqa: E501


        :return: The config of this V1NodeStatus.  # noqa: E501
        :rtype: V1NodeConfigStatus
        r    r0   r+   r+   r,   r         zV1NodeStatus.configc                 C   r2   )zSets the config of this V1NodeStatus.


        :param config: The config of this V1NodeStatus.  # noqa: E501
        :type: V1NodeConfigStatus
        Nr7   )r*   r   r+   r+   r,   r         
	c                 C   r.   )zGets the daemon_endpoints of this V1NodeStatus.  # noqa: E501


        :return: The daemon_endpoints of this V1NodeStatus.  # noqa: E501
        :rtype: V1NodeDaemonEndpoints
        r!   r0   r+   r+   r,   r      r8   zV1NodeStatus.daemon_endpointsc                 C   r2   )zSets the daemon_endpoints of this V1NodeStatus.


        :param daemon_endpoints: The daemon_endpoints of this V1NodeStatus.  # noqa: E501
        :type: V1NodeDaemonEndpoints
        Nr:   )r*   r   r+   r+   r,   r      r9   c                 C   r.   )zGets the features of this V1NodeStatus.  # noqa: E501


        :return: The features of this V1NodeStatus.  # noqa: E501
        :rtype: V1NodeFeatures
        r"   r0   r+   r+   r,   r      r8   zV1NodeStatus.featuresc                 C   r2   )zSets the features of this V1NodeStatus.


        :param features: The features of this V1NodeStatus.  # noqa: E501
        :type: V1NodeFeatures
        Nr;   )r*   r   r+   r+   r,   r     r9   c                 C   r.   )zGets the images of this V1NodeStatus.  # noqa: E501

        List of container images on this node  # noqa: E501

        :return: The images of this V1NodeStatus.  # noqa: E501
        :rtype: list[V1ContainerImage]
        r#   r0   r+   r+   r,   r     r1   zV1NodeStatus.imagesc                 C   r2   )zSets the images of this V1NodeStatus.

        List of container images on this node  # noqa: E501

        :param images: The images of this V1NodeStatus.  # noqa: E501
        :type: list[V1ContainerImage]
        Nr<   )r*   r   r+   r+   r,   r     r3   c                 C   r.   )zGets the node_info of this V1NodeStatus.  # noqa: E501


        :return: The node_info of this V1NodeStatus.  # noqa: E501
        :rtype: V1NodeSystemInfo
        r$   r0   r+   r+   r,   r   %  r8   zV1NodeStatus.node_infoc                 C   r2   )zSets the node_info of this V1NodeStatus.


        :param node_info: The node_info of this V1NodeStatus.  # noqa: E501
        :type: V1NodeSystemInfo
        Nr=   )r*   r   r+   r+   r,   r   /  r9   c                 C   r.   )a\  Gets the phase of this V1NodeStatus.  # noqa: E501

        NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated.  # noqa: E501

        :return: The phase of this V1NodeStatus.  # noqa: E501
        :rtype: str
        r%   r0   r+   r+   r,   r   :  r1   zV1NodeStatus.phasec                 C   r2   )aR  Sets the phase of this V1NodeStatus.

        NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated.  # noqa: E501

        :param phase: The phase of this V1NodeStatus.  # noqa: E501
        :type: str
        Nr>   )r*   r   r+   r+   r,   r   E  r3   c                 C   r.   )zGets the runtime_handlers of this V1NodeStatus.  # noqa: E501

        The available runtime handlers.  # noqa: E501

        :return: The runtime_handlers of this V1NodeStatus.  # noqa: E501
        :rtype: list[V1NodeRuntimeHandler]
        r&   r0   r+   r+   r,   r   Q  r1   zV1NodeStatus.runtime_handlersc                 C   r2   )zSets the runtime_handlers of this V1NodeStatus.

        The available runtime handlers.  # noqa: E501

        :param runtime_handlers: The runtime_handlers of this V1NodeStatus.  # noqa: E501
        :type: list[V1NodeRuntimeHandler]
        Nr?   )r*   r   r+   r+   r,   r   \  r3   c                 C   r.   )zGets the volumes_attached of this V1NodeStatus.  # noqa: E501

        List of volumes that are attached to the node.  # noqa: E501

        :return: The volumes_attached of this V1NodeStatus.  # noqa: E501
        :rtype: list[V1AttachedVolume]
        r'   r0   r+   r+   r,   r   h  r1   zV1NodeStatus.volumes_attachedc                 C   r2   )zSets the volumes_attached of this V1NodeStatus.

        List of volumes that are attached to the node.  # noqa: E501

        :param volumes_attached: The volumes_attached of this V1NodeStatus.  # noqa: E501
        :type: list[V1AttachedVolume]
        Nr@   )r*   r   r+   r+   r,   r   s  r3   c                 C   r.   )zGets the volumes_in_use of this V1NodeStatus.  # noqa: E501

        List of attachable volumes in use (mounted) by the node.  # noqa: E501

        :return: The volumes_in_use of this V1NodeStatus.  # noqa: E501
        :rtype: list[str]
        r(   r0   r+   r+   r,   r     r1   zV1NodeStatus.volumes_in_usec                 C   r2   )zSets the volumes_in_use of this V1NodeStatus.

        List of attachable volumes in use (mounted) by the node.  # noqa: E501

        :param volumes_in_use: The volumes_in_use of this V1NodeStatus.  # noqa: E501
        :type: list[str]
        NrA   )r*   r   r+   r+   r,   r     r3   c                 C   s   i }t | jD ]=\}}t| |}t|tr"ttdd |||< qt|dr.| ||< qt|t	rAt	tdd |
 ||< q|||< q|S )z&Returns the model properties as a dictc                 S   s   t | dr	|  S | S )Nto_dicthasattrrB   )xr+   r+   r,   <lambda>  s    z&V1NodeStatus.to_dict.<locals>.<lambda>rB   c                 S   s&   t | d dr| d | d  fS | S )N   rB   r   rC   )itemr+   r+   r,   rF     s   )six	iteritemsopenapi_typesgetattr
isinstancelistmaprD   rB   dictitems)r*   resultattr_valuer+   r+   r,   rB     s"   




zV1NodeStatus.to_dictc                 C   s   t |  S )z.Returns the string representation of the model)pprintpformatrB   r0   r+   r+   r,   to_str  s   zV1NodeStatus.to_strc                 C   s   |   S )zFor `print` and `pprint`)rX   r0   r+   r+   r,   __repr__  s   zV1NodeStatus.__repr__c                 C   s   t |tsdS |  | kS )z&Returns true if both objects are equalFrM   r   rB   r*   otherr+   r+   r,   __eq__     
zV1NodeStatus.__eq__c                 C   s   t |tsdS |  | kS )z*Returns true if both objects are not equalTrZ   r[   r+   r+   r,   __ne__  r^   zV1NodeStatus.__ne__)NNNNNNNNNNNNNN)__name__
__module____qualname____doc__rK   attribute_mapr-   propertyr	   setterr
   r   r   r   r   r   r   r   r   r   r   r   rB   rX   rY   r]   r_   r+   r+   r+   r,   r      s    
0












	


	


	





	













r   )rc   rV   rerI   kubernetes.client.configurationr   objectr   r+   r+   r+   r,   <module>   s   
