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@s\eZdZdZdddZeddZejddZdd Zd d Z d d Z ddZ ddZ dS)AppsV1beta1RollbackConfigzw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCsddi|_ddi|_||_dS)aO AppsV1beta1RollbackConfig - 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. revisionintN) swagger_types attribute_map _revision)selfrr f/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/apps_v1beta1_rollback_config.py__init__s  z"AppsV1beta1RollbackConfig.__init__cCs|jS)z Gets the revision of this AppsV1beta1RollbackConfig. The revision to rollback to. If set to 0, rollback to the last revision. :return: The revision of this AppsV1beta1RollbackConfig. :rtype: int )r )r r r r r+s z"AppsV1beta1RollbackConfig.revisioncCs ||_dS)z Sets the revision of this AppsV1beta1RollbackConfig. The revision to rollback to. If set to 0, rollback to the last revision. :param revision: The revision of this AppsV1beta1RollbackConfig. :type: int N)r )r rr r r r6s 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)xr r r Lsz3AppsV1beta1RollbackConfig.to_dict..rcSs&t|ddr"|d|djfS|S)Nrr)rr)itemr r r rSs) rrgetattr isinstancelistmaprrdictitems)r resultattr_valuer r r rBs     z!AppsV1beta1RollbackConfig.to_dictcCs t|jS)z@ Returns the string representation of the model )rr)r r r r to_str\sz AppsV1beta1RollbackConfig.to_strcCs|jS)z* For `print` and `pprint` )r)r r r r __repr__bsz"AppsV1beta1RollbackConfig.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)rr__dict__)r otherr r r __eq__hs z AppsV1beta1RollbackConfig.__eq__cCs ||k S)z< Returns true if both objects are not equal r )r r!r r r __ne__qsz AppsV1beta1RollbackConfig.__ne__)N) __name__ __module__ __qualname____doc__r propertyrsetterrrrr"r#r r r r rs    r)r'pprintrsixrreobjectrr r r r  s