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@seZdZdZd$ddZeddZejddZedd Zejd d Zed d Z e jd d Z eddZ e jddZ eddZ e jddZ eddZ e jddZ eddZ e jddZ ddZddZddZd d!Zd"d#ZdS)%V1beta1StatefulSetStatuszw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCsZdddddddd|_dddddd d d|_||_||_||_||_||_||_||_d S) aN V1beta1StatefulSetStatus - 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. intstr)current_replicascurrent_revisionobserved_generationready_replicasreplicasupdate_revisionupdated_replicascurrentReplicasZcurrentRevisionobservedGeneration readyReplicasr ZupdateRevisionupdatedReplicasN) swagger_types attribute_map_current_replicas_current_revision_observed_generation_ready_replicas _replicas_update_revision_updated_replicas)selfrrr r r r r re/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1beta1_stateful_set_status.py__init__s*   z!V1beta1StatefulSetStatus.__init__cCs|jS)a9 Gets the current_replicas of this V1beta1StatefulSetStatus. currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. :return: The current_replicas of this V1beta1StatefulSetStatus. :rtype: int )r)rrrrr=s z)V1beta1StatefulSetStatus.current_replicascCs ||_dS)aH Sets the current_replicas of this V1beta1StatefulSetStatus. currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. :param current_replicas: The current_replicas of this V1beta1StatefulSetStatus. :type: int N)r)rrrrrrHs cCs|jS)a5 Gets the current_revision of this V1beta1StatefulSetStatus. currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). :return: The current_revision of this V1beta1StatefulSetStatus. :rtype: str )r)rrrrrTs z)V1beta1StatefulSetStatus.current_revisioncCs ||_dS)aD Sets the current_revision of this V1beta1StatefulSetStatus. currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). :param current_revision: The current_revision of this V1beta1StatefulSetStatus. :type: str N)r)rrrrrr_s cCs|jS)ah Gets the observed_generation of this V1beta1StatefulSetStatus. observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. :return: The observed_generation of this V1beta1StatefulSetStatus. :rtype: int )r)rrrrr ks z,V1beta1StatefulSetStatus.observed_generationcCs ||_dS)az Sets the observed_generation of this V1beta1StatefulSetStatus. observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. :param observed_generation: The observed_generation of this V1beta1StatefulSetStatus. :type: int N)r)rr rrrr vs cCs|jS)a Gets the ready_replicas of this V1beta1StatefulSetStatus. readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. :return: The ready_replicas of this V1beta1StatefulSetStatus. :rtype: int )r)rrrrr s z'V1beta1StatefulSetStatus.ready_replicascCs ||_dS)a" Sets the ready_replicas of this V1beta1StatefulSetStatus. readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. :param ready_replicas: The ready_replicas of this V1beta1StatefulSetStatus. :type: int N)r)rr rrrr s cCs|jS)z Gets the replicas of this V1beta1StatefulSetStatus. replicas is the number of Pods created by the StatefulSet controller. :return: The replicas of this V1beta1StatefulSetStatus. :rtype: int )r)rrrrr s z!V1beta1StatefulSetStatus.replicascCs|dkrtd||_dS)z Sets the replicas of this V1beta1StatefulSetStatus. replicas is the number of Pods created by the StatefulSet controller. :param replicas: The replicas of this V1beta1StatefulSetStatus. :type: int Nz0Invalid value for `replicas`, must not be `None`) ValueErrorr)rr rrrr s cCs|jS)aA Gets the update_revision of this V1beta1StatefulSetStatus. updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) :return: The update_revision of this V1beta1StatefulSetStatus. :rtype: str )r)rrrrr s z(V1beta1StatefulSetStatus.update_revisioncCs ||_dS)aO Sets the update_revision of this V1beta1StatefulSetStatus. updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) :param update_revision: The update_revision of this V1beta1StatefulSetStatus. :type: str N)r)rr rrrr s cCs|jS)a8 Gets the updated_replicas of this V1beta1StatefulSetStatus. updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. :return: The updated_replicas of this V1beta1StatefulSetStatus. :rtype: int )r)rrrrr s z)V1beta1StatefulSetStatus.updated_replicascCs ||_dS)aG Sets the updated_replicas of this V1beta1StatefulSetStatus. updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. :param updated_replicas: The updated_replicas of this V1beta1StatefulSetStatus. :type: int N)r)rr rrrr s 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 )xrrrsz2V1beta1StatefulSetStatus.to_dict..r cSs&t|ddr"|d|djfS|S)Nr r)r!r )itemrrrr#s) rrgetattr isinstancelistmapr!r dictitems)rresultattr_valuerrrr s     z V1beta1StatefulSetStatus.to_dictcCs t|jS)z@ Returns the string representation of the model )rr )rrrrto_strszV1beta1StatefulSetStatus.to_strcCs|jS)z* For `print` and `pprint` )r0)rrrr__repr__sz!V1beta1StatefulSetStatus.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)r'r__dict__)rotherrrr__eq__s zV1beta1StatefulSetStatus.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr3rrr__ne__szV1beta1StatefulSetStatus.__ne__)NNNNNNN)__name__ __module__ __qualname____doc__rpropertyrsetterrr r r r r r r0r1r4r5rrrrrs* %         r)r9pprintrsixrreobjectrrrrr s