3 fY@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@seZdZdZdddZeddZejddZedd Zejd d Zed d Z e jd d Z ddZ ddZ ddZ ddZ ddZdS)V1beta1PodDisruptionBudgetSpeczw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs2dddd|_dddd|_||_||_||_dS)aT V1beta1PodDisruptionBudgetSpec - 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. strV1LabelSelector)max_unavailable min_availableselectormaxUnavailableZ minAvailabler N) swagger_types attribute_map_max_unavailable_min_available _selector)selfrrr rl/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1beta1_pod_disruption_budget_spec.py__init__s   z'V1beta1PodDisruptionBudgetSpec.__init__cCs|jS)a Gets the max_unavailable of this V1beta1PodDisruptionBudgetSpec. An eviction is allowed if at most "maxUnavailable" pods selected by "selector" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with "minAvailable". :return: The max_unavailable of this V1beta1PodDisruptionBudgetSpec. :rtype: str )r )rrrrr1s z.V1beta1PodDisruptionBudgetSpec.max_unavailablecCs ||_dS)a Sets the max_unavailable of this V1beta1PodDisruptionBudgetSpec. An eviction is allowed if at most "maxUnavailable" pods selected by "selector" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with "minAvailable". :param max_unavailable: The max_unavailable of this V1beta1PodDisruptionBudgetSpec. :type: str N)r )rrrrrr<s cCs|jS)a Gets the min_available of this V1beta1PodDisruptionBudgetSpec. An eviction is allowed if at least "minAvailable" pods selected by "selector" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying "100%". :return: The min_available of this V1beta1PodDisruptionBudgetSpec. :rtype: str )r)rrrrrHs z,V1beta1PodDisruptionBudgetSpec.min_availablecCs ||_dS)a Sets the min_available of this V1beta1PodDisruptionBudgetSpec. An eviction is allowed if at least "minAvailable" pods selected by "selector" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying "100%". :param min_available: The min_available of this V1beta1PodDisruptionBudgetSpec. :type: str N)r)rrrrrrSs cCs|jS)a Gets the selector of this V1beta1PodDisruptionBudgetSpec. Label query over pods whose evictions are managed by the disruption budget. :return: The selector of this V1beta1PodDisruptionBudgetSpec. :rtype: V1LabelSelector )r)rrrrr _s z'V1beta1PodDisruptionBudgetSpec.selectorcCs ||_dS)a  Sets the selector of this V1beta1PodDisruptionBudgetSpec. Label query over pods whose evictions are managed by the disruption budget. :param selector: The selector of this V1beta1PodDisruptionBudgetSpec. :type: V1LabelSelector N)r)rr rrrr js 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)xrrrsz8V1beta1PodDisruptionBudgetSpec.to_dict..rcSs&t|ddr"|d|djfS|S)Nrr)rr)itemrrrrs) rr getattr isinstancelistmaprrdictitems)rresultattr_valuerrrrvs     z&V1beta1PodDisruptionBudgetSpec.to_dictcCs t|jS)z@ Returns the string representation of the model )rr)rrrrto_strsz%V1beta1PodDisruptionBudgetSpec.to_strcCs|jS)z* For `print` and `pprint` )r$)rrrr__repr__sz'V1beta1PodDisruptionBudgetSpec.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)rr__dict__)rotherrrr__eq__s z%V1beta1PodDisruptionBudgetSpec.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr'rrr__ne__sz%V1beta1PodDisruptionBudgetSpec.__ne__)NNN)__name__ __module__ __qualname____doc__rpropertyrsetterrr rr$r%r(r)rrrrrs      r)r-pprintrsixrreobjectrrrrr s