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@sveZdZdZddd„Zedd„ƒZejdd„ƒZedd „ƒZejd d „ƒZd d „Z d d„Z dd„Z dd„Z dd„Z dS)Ú"AppsV1beta1RollingUpdateDeploymentzw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs(dddœ|_dddœ|_||_||_dS)aX AppsV1beta1RollingUpdateDeployment - 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. Ústr)Ú max_surgeÚmax_unavailableZmaxSurgeZmaxUnavailableN)Ú swagger_typesÚ attribute_mapÚ _max_surgeÚ_max_unavailable)Úselfrr©r úp/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/apps_v1beta1_rolling_update_deployment.pyÚ__init__s   z+AppsV1beta1RollingUpdateDeployment.__init__cCs|jS)a> Gets the max_surge of this AppsV1beta1RollingUpdateDeployment. The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. :return: The max_surge of this AppsV1beta1RollingUpdateDeployment. :rtype: str )r )r r r rr.s z,AppsV1beta1RollingUpdateDeployment.max_surgecCs ||_dS)aF Sets the max_surge of this AppsV1beta1RollingUpdateDeployment. The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. :param max_surge: The max_surge of this AppsV1beta1RollingUpdateDeployment. :type: str N)r )r rr r rr9s cCs|jS)a% Gets the max_unavailable of this AppsV1beta1RollingUpdateDeployment. The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. :return: The max_unavailable of this AppsV1beta1RollingUpdateDeployment. :rtype: str )r )r r r rrEs z2AppsV1beta1RollingUpdateDeployment.max_unavailablecCs ||_dS)a3 Sets the max_unavailable of this AppsV1beta1RollingUpdateDeployment. The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. :param max_unavailable: The max_unavailable of this AppsV1beta1RollingUpdateDeployment. :type: str N)r )r rr r rrPs 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Úfsz.rcSs&t|ddƒr"|d|djƒfS|S)Nérr)rr)Úitemr r rrms) rrÚgetattrÚ isinstanceÚlistÚmaprrÚdictÚitems)r ÚresultÚattrÚ_Úvaluer r rr\s     z*AppsV1beta1RollingUpdateDeployment.to_dictcCs t|jƒƒS)z@ Returns the string representation of the model )rr)r r r rÚto_strvsz)AppsV1beta1RollingUpdateDeployment.to_strcCs|jƒS)z* For `print` and `pprint` )r )r r r rÚ__repr__|sz+AppsV1beta1RollingUpdateDeployment.__repr__cCst|tƒsdS|j|jkS)z8 Returns true if both objects are equal F)rrÚ__dict__)r Úotherr r rÚ__eq__‚s z)AppsV1beta1RollingUpdateDeployment.__eq__cCs ||k S)z< Returns true if both objects are not equal r )r r#r r rÚ__ne__‹sz)AppsV1beta1RollingUpdateDeployment.__ne__)NN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rÚpropertyrÚsetterrrr r!r$r%r r r rrs     r)r)ÚpprintrÚsixrÚreÚobjectrr r r rÚ s