3 fYM(@s8dZddlmZddlmZddlZGdddeZdS)z Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.7.4 Generated by: https://github.com/swagger-api/swagger-codegen.git )pformat) iteritemsNc@seZdZdZd!ddZeddZejddZedd Zejd d Zed d Z e jd d Z eddZ e jddZ eddZ e jddZ eddZ e jddZ ddZ ddZddZddZdd ZdS)" V1beta1PodDisruptionBudgetStatuszw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCsPddddddd|_dddddd d|_||_||_||_||_||_||_d S) aV V1beta1PodDisruptionBudgetStatus - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. intzdict(str, datetime))current_healthydesired_healthydisrupted_podsdisruptions_allowed expected_podsobserved_generationZcurrentHealthyZdesiredHealthyZ disruptedPodsZdisruptionsAllowedZ expectedPodsobservedGenerationN) swagger_types attribute_map_current_healthy_desired_healthy_disrupted_pods_disruptions_allowed_expected_pods_observed_generation)selfrrrr r r rn/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1beta1_pod_disruption_budget_status.py__init__s$   z)V1beta1PodDisruptionBudgetStatus.__init__cCs|jS)z Gets the current_healthy of this V1beta1PodDisruptionBudgetStatus. current number of healthy pods :return: The current_healthy of this V1beta1PodDisruptionBudgetStatus. :rtype: int )r)rrrrr:s z0V1beta1PodDisruptionBudgetStatus.current_healthycCs|dkrtd||_dS)z Sets the current_healthy of this V1beta1PodDisruptionBudgetStatus. current number of healthy pods :param current_healthy: The current_healthy of this V1beta1PodDisruptionBudgetStatus. :type: int Nz7Invalid value for `current_healthy`, must not be `None`) ValueErrorr)rrrrrrEs cCs|jS)z Gets the desired_healthy of this V1beta1PodDisruptionBudgetStatus. minimum desired number of healthy pods :return: The desired_healthy of this V1beta1PodDisruptionBudgetStatus. :rtype: int )r)rrrrrSs z0V1beta1PodDisruptionBudgetStatus.desired_healthycCs|dkrtd||_dS)z Sets the desired_healthy of this V1beta1PodDisruptionBudgetStatus. minimum desired number of healthy pods :param desired_healthy: The desired_healthy of this V1beta1PodDisruptionBudgetStatus. :type: int Nz7Invalid value for `desired_healthy`, must not be `None`)rr)rrrrrr^s cCs|jS)a Gets the disrupted_pods of this V1beta1PodDisruptionBudgetStatus. DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. :return: The disrupted_pods of this V1beta1PodDisruptionBudgetStatus. :rtype: dict(str, datetime) )r)rrrrrls z/V1beta1PodDisruptionBudgetStatus.disrupted_podscCs|dkrtd||_dS)a  Sets the disrupted_pods of this V1beta1PodDisruptionBudgetStatus. DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. :param disrupted_pods: The disrupted_pods of this V1beta1PodDisruptionBudgetStatus. :type: dict(str, datetime) Nz6Invalid value for `disrupted_pods`, must not be `None`)rr)rrrrrrws cCs|jS)z Gets the disruptions_allowed of this V1beta1PodDisruptionBudgetStatus. Number of pod disruptions that are currently allowed. :return: The disruptions_allowed of this V1beta1PodDisruptionBudgetStatus. :rtype: int )r)rrrrr s z4V1beta1PodDisruptionBudgetStatus.disruptions_allowedcCs|dkrtd||_dS)a Sets the disruptions_allowed of this V1beta1PodDisruptionBudgetStatus. Number of pod disruptions that are currently allowed. :param disruptions_allowed: The disruptions_allowed of this V1beta1PodDisruptionBudgetStatus. :type: int Nz;Invalid value for `disruptions_allowed`, must not be `None`)rr)rr rrrr s cCs|jS)z Gets the expected_pods of this V1beta1PodDisruptionBudgetStatus. total number of pods counted by this disruption budget :return: The expected_pods of this V1beta1PodDisruptionBudgetStatus. :rtype: int )r)rrrrr s z.V1beta1PodDisruptionBudgetStatus.expected_podscCs|dkrtd||_dS)z Sets the expected_pods of this V1beta1PodDisruptionBudgetStatus. total number of pods counted by this disruption budget :param expected_pods: The expected_pods of this V1beta1PodDisruptionBudgetStatus. :type: int Nz5Invalid value for `expected_pods`, must not be `None`)rr)rr rrrr s cCs|jS)a Gets the observed_generation of this V1beta1PodDisruptionBudgetStatus. Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB's object generation. :return: The observed_generation of this V1beta1PodDisruptionBudgetStatus. :rtype: int )r)rrrrr s z4V1beta1PodDisruptionBudgetStatus.observed_generationcCs ||_dS)a Sets the observed_generation of this V1beta1PodDisruptionBudgetStatus. Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB's object generation. :param observed_generation: The observed_generation of this V1beta1PodDisruptionBudgetStatus. :type: int N)r)rr rrrr s cCsi}xt|jD]z\}}t||}t|trDttdd|||<qt|dr\|j||<qt|trttdd|j ||<q|||<qW|S)z8 Returns the model properties as a dict cSst|dr|jS|S)Nto_dict)hasattrr)xrrrsz:V1beta1PodDisruptionBudgetStatus.to_dict..rcSs&t|ddr"|d|djfS|S)Nrr)rr)itemrrrrs) rr getattr isinstancelistmaprrdictitems)rresultattr_valuerrrrs     z(V1beta1PodDisruptionBudgetStatus.to_dictcCs t|jS)z@ Returns the string representation of the model )rr)rrrrto_strsz'V1beta1PodDisruptionBudgetStatus.to_strcCs|jS)z* For `print` and `pprint` )r*)rrrr__repr__sz)V1beta1PodDisruptionBudgetStatus.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)r!r__dict__)rotherrrr__eq__s z'V1beta1PodDisruptionBudgetStatus.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr-rrr__ne__sz'V1beta1PodDisruptionBudgetStatus.__ne__)NNNNNN)__name__ __module__ __qualname____doc__rpropertyrsetterrrr r r rr*r+r.r/rrrrrs& "        r)r3pprintrsixrreobjectrrrrr s