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)Ú(ExtensionsV1beta1RollingUpdateDeploymentzw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs(dddœ|_dddœ|_||_||_dS)a^ ExtensionsV1beta1RollingUpdateDeployment - 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_unavailableÚmaxSurgeÚmaxUnavailableN)Ú swagger_typesÚ attribute_mapÚ _max_surgeÚ_max_unavailable)Úselfrr©rúv/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/extensions_v1beta1_rolling_update_deployment.pyÚ__init__s   z1ExtensionsV1beta1RollingUpdateDeployment.__init__cCs|jS)a[ Gets the max_surge of this ExtensionsV1beta1RollingUpdateDeployment. 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. By default, a value of 1 is used. 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 ExtensionsV1beta1RollingUpdateDeployment. :rtype: str )r )rrrrr.s z2ExtensionsV1beta1RollingUpdateDeployment.max_surgecCs ||_dS)ac Sets the max_surge of this ExtensionsV1beta1RollingUpdateDeployment. 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. By default, a value of 1 is used. 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 ExtensionsV1beta1RollingUpdateDeployment. :type: str N)r )rrrrrr9s cCs|jS)aH Gets the max_unavailable of this ExtensionsV1beta1RollingUpdateDeployment. 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. By default, a fixed value of 1 is used. 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 ExtensionsV1beta1RollingUpdateDeployment. :rtype: str )r )rrrrrEs z8ExtensionsV1beta1RollingUpdateDeployment.max_unavailablecCs ||_dS)aV Sets the max_unavailable of this ExtensionsV1beta1RollingUpdateDeployment. 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. By default, a fixed value of 1 is used. 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 ExtensionsV1beta1RollingUpdateDeployment. :type: str N)r )rrrrrrPs 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)ÚxrrrÚfszBExtensionsV1beta1RollingUpdateDeployment.to_dict..rcSs&t|ddƒr"|d|djƒfS|S)Nérr)rr)Úitemrrrrms) rr ÚgetattrÚ isinstanceÚlistÚmaprrÚdictÚitems)rÚresultÚattrÚ_Úvaluerrrr\s     z0ExtensionsV1beta1RollingUpdateDeployment.to_dictcCs t|jƒƒS)z@ Returns the string representation of the model )rr)rrrrÚto_strvsz/ExtensionsV1beta1RollingUpdateDeployment.to_strcCs|jƒS)z* For `print` and `pprint` )r")rrrrÚ__repr__|sz1ExtensionsV1beta1RollingUpdateDeployment.__repr__cCst|tƒsdS|j|jkS)z8 Returns true if both objects are equal F)rrÚ__dict__)rÚotherrrrÚ__eq__‚s z/ExtensionsV1beta1RollingUpdateDeployment.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr%rrrÚ__ne__‹sz/ExtensionsV1beta1RollingUpdateDeployment.__ne__)NN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rÚpropertyrÚsetterrrr"r#r&r'rrrrrs     r)r+ÚpprintrÚsixrÚreÚobjectrrrrrÚ s