3 f÷ÔYã@s8dZddlmZddlmZddlZGdd„deƒZdS)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@s\eZdZdZddd„Zedd„ƒZejdd„ƒZdd „Zd d „Z d d „Z dd„Z dd„Z dS)ÚV1beta1RollingUpdateDaemonSetzw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCsddi|_ddi|_||_dS)aS V1beta1RollingUpdateDaemonSet - 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. Úmax_unavailableÚstrÚmaxUnavailableN)Ú swagger_typesÚ attribute_mapÚ_max_unavailable)Úselfr©r úk/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1beta1_rolling_update_daemon_set.pyÚ__init__s  z&V1beta1RollingUpdateDaemonSet.__init__cCs|jS)aù Gets the max_unavailable of this V1beta1RollingUpdateDaemonSet. The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. :return: The max_unavailable of this V1beta1RollingUpdateDaemonSet. :rtype: str )r )r r r r r+s z-V1beta1RollingUpdateDaemonSet.max_unavailablecCs ||_dS)a Sets the max_unavailable of this V1beta1RollingUpdateDaemonSet. The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. :param max_unavailable: The max_unavailable of this V1beta1RollingUpdateDaemonSet. :type: str N)r )r rr r r r6s cCs’i}xˆt|jƒD]z\}}t||ƒ}t|tƒrDttdd„|ƒƒ||<qt|dƒr\|jƒ||<qt|tƒr‚ttdd„|j ƒƒƒ||<q|||<qW|S)z8 Returns the model properties as a dict cSst|dƒr|jƒS|S)NÚto_dict)Úhasattrr)Úxr r r ÚLsz7V1beta1RollingUpdateDaemonSet.to_dict..rcSs&t|ddƒr"|d|djƒfS|S)Nérr)rr)Úitemr r r rSs) rrÚgetattrÚ isinstanceÚlistÚmaprrÚdictÚitems)r ÚresultÚattrÚ_Úvaluer r r rBs     z%V1beta1RollingUpdateDaemonSet.to_dictcCs t|jƒƒS)z@ Returns the string representation of the model )rr)r r r r Úto_str\sz$V1beta1RollingUpdateDaemonSet.to_strcCs|jƒS)z* For `print` and `pprint` )r)r r r r Ú__repr__bsz&V1beta1RollingUpdateDaemonSet.__repr__cCst|tƒsdS|j|jkS)z8 Returns true if both objects are equal F)rrÚ__dict__)r Úotherr r r Ú__eq__hs z$V1beta1RollingUpdateDaemonSet.__eq__cCs ||k S)z< Returns true if both objects are not equal r )r r"r r r Ú__ne__qsz$V1beta1RollingUpdateDaemonSet.__ne__)N) Ú__name__Ú __module__Ú __qualname__Ú__doc__rÚpropertyrÚsetterrrr r#r$r r r r rs    r)r(ÚpprintrÚsixrÚreÚobjectrr r r r Ú s