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)AppsV1beta1ScaleStatuszw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs2dddd|_dddd|_||_||_||_dS) aL AppsV1beta1ScaleStatus - 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. intzdict(str, str)str)replicasselectortarget_selectorrrZtargetSelectorN) swagger_types attribute_map _replicas _selector_target_selector)selfrrr rc/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/apps_v1beta1_scale_status.py__init__s   zAppsV1beta1ScaleStatus.__init__cCs|jS)z Gets the replicas of this AppsV1beta1ScaleStatus. actual number of observed instances of the scaled object. :return: The replicas of this AppsV1beta1ScaleStatus. :rtype: int )r )rrrrr1s zAppsV1beta1ScaleStatus.replicascCs|dkrtd||_dS)z Sets the replicas of this AppsV1beta1ScaleStatus. actual number of observed instances of the scaled object. :param replicas: The replicas of this AppsV1beta1ScaleStatus. :type: int Nz0Invalid value for `replicas`, must not be `None`) ValueErrorr )rrrrrr<s cCs|jS)a, Gets the selector of this AppsV1beta1ScaleStatus. label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors :return: The selector of this AppsV1beta1ScaleStatus. :rtype: dict(str, str) )r )rrrrrJs zAppsV1beta1ScaleStatus.selectorcCs ||_dS)a3 Sets the selector of this AppsV1beta1ScaleStatus. label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors :param selector: The selector of this AppsV1beta1ScaleStatus. :type: dict(str, str) N)r )rrrrrrUs cCs|jS)a Gets the target_selector of this AppsV1beta1ScaleStatus. label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors :return: The target_selector of this AppsV1beta1ScaleStatus. :rtype: str )r)rrrrr as z&AppsV1beta1ScaleStatus.target_selectorcCs ||_dS)a Sets the target_selector of this AppsV1beta1ScaleStatus. label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors :param target_selector: The target_selector of this AppsV1beta1ScaleStatus. :type: str N)r)rr rrrr ls 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)xrrrsz0AppsV1beta1ScaleStatus.to_dict..rcSs&t|ddr"|d|djfS|S)Nrr)rr)itemrrrrs) rr getattr isinstancelistmaprrdictitems)rresultattr_valuerrrrxs     zAppsV1beta1ScaleStatus.to_dictcCs t|jS)z@ Returns the string representation of the model )rr)rrrrto_strszAppsV1beta1ScaleStatus.to_strcCs|jS)z* For `print` and `pprint` )r$)rrrr__repr__szAppsV1beta1ScaleStatus.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)rr__dict__)rotherrrr__eq__s zAppsV1beta1ScaleStatus.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr'rrr__ne__szAppsV1beta1ScaleStatus.__ne__)NNN)__name__ __module__ __qualname____doc__rpropertyrsetterrr rr$r%r(r)rrrrrs      r)r-pprintrsixrreobjectrrrrr s