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 eddZejddZddZdd Zd!d"Zd#d$Zd%d&ZdS)(AppsV1beta1DeploymentStatuszw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. Nc Csdddddddddd|_dddddd d d d|_||_||_||_||_||_||_||_||_ d S) aQ AppsV1beta1DeploymentStatus - 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. intz$list[AppsV1beta1DeploymentCondition])available_replicascollision_count conditionsobserved_generationready_replicasreplicasunavailable_replicasupdated_replicasZavailableReplicasZcollisionCountrZobservedGenerationZ readyReplicasr ZunavailableReplicasZupdatedReplicasN) swagger_types attribute_map_available_replicas_collision_count _conditions_observed_generation_ready_replicas _replicas_unavailable_replicas_updated_replicas) selfrrrr r r r r rh/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/apps_v1beta1_deployment_status.py__init__s0   z$AppsV1beta1DeploymentStatus.__init__cCs|jS)a Gets the available_replicas of this AppsV1beta1DeploymentStatus. Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. :return: The available_replicas of this AppsV1beta1DeploymentStatus. :rtype: int )r)rrrrr@s z.AppsV1beta1DeploymentStatus.available_replicascCs ||_dS)a. Sets the available_replicas of this AppsV1beta1DeploymentStatus. Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. :param available_replicas: The available_replicas of this AppsV1beta1DeploymentStatus. :type: int N)r)rrrrrrKs cCs|jS)al Gets the collision_count of this AppsV1beta1DeploymentStatus. Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. :return: The collision_count of this AppsV1beta1DeploymentStatus. :rtype: int )r)rrrrrWs z+AppsV1beta1DeploymentStatus.collision_countcCs ||_dS)az Sets the collision_count of this AppsV1beta1DeploymentStatus. Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. :param collision_count: The collision_count of this AppsV1beta1DeploymentStatus. :type: int N)r)rrrrrrbs cCs|jS)a Gets the conditions of this AppsV1beta1DeploymentStatus. Represents the latest available observations of a deployment's current state. :return: The conditions of this AppsV1beta1DeploymentStatus. :rtype: list[AppsV1beta1DeploymentCondition] )r)rrrrrns z&AppsV1beta1DeploymentStatus.conditionscCs ||_dS)a$ Sets the conditions of this AppsV1beta1DeploymentStatus. Represents the latest available observations of a deployment's current state. :param conditions: The conditions of this AppsV1beta1DeploymentStatus. :type: list[AppsV1beta1DeploymentCondition] N)r)rrrrrrys cCs|jS)z Gets the observed_generation of this AppsV1beta1DeploymentStatus. The generation observed by the deployment controller. :return: The observed_generation of this AppsV1beta1DeploymentStatus. :rtype: int )r)rrrrr s z/AppsV1beta1DeploymentStatus.observed_generationcCs ||_dS)a Sets the observed_generation of this AppsV1beta1DeploymentStatus. The generation observed by the deployment controller. :param observed_generation: The observed_generation of this AppsV1beta1DeploymentStatus. :type: int N)r)rr rrrr s cCs|jS)z Gets the ready_replicas of this AppsV1beta1DeploymentStatus. Total number of ready pods targeted by this deployment. :return: The ready_replicas of this AppsV1beta1DeploymentStatus. :rtype: int )r)rrrrr s z*AppsV1beta1DeploymentStatus.ready_replicascCs ||_dS)z Sets the ready_replicas of this AppsV1beta1DeploymentStatus. Total number of ready pods targeted by this deployment. :param ready_replicas: The ready_replicas of this AppsV1beta1DeploymentStatus. :type: int N)r)rr rrrr s cCs|jS)a  Gets the replicas of this AppsV1beta1DeploymentStatus. Total number of non-terminated pods targeted by this deployment (their labels match the selector). :return: The replicas of this AppsV1beta1DeploymentStatus. :rtype: int )r)rrrrr s z$AppsV1beta1DeploymentStatus.replicascCs ||_dS)a Sets the replicas of this AppsV1beta1DeploymentStatus. Total number of non-terminated pods targeted by this deployment (their labels match the selector). :param replicas: The replicas of this AppsV1beta1DeploymentStatus. :type: int N)r)rr rrrr s cCs|jS)z Gets the unavailable_replicas of this AppsV1beta1DeploymentStatus. Total number of unavailable pods targeted by this deployment. :return: The unavailable_replicas of this AppsV1beta1DeploymentStatus. :rtype: int )r)rrrrr s z0AppsV1beta1DeploymentStatus.unavailable_replicascCs ||_dS)a Sets the unavailable_replicas of this AppsV1beta1DeploymentStatus. Total number of unavailable pods targeted by this deployment. :param unavailable_replicas: The unavailable_replicas of this AppsV1beta1DeploymentStatus. :type: int N)r)rr rrrr s cCs|jS)a Gets the updated_replicas of this AppsV1beta1DeploymentStatus. Total number of non-terminated pods targeted by this deployment that have the desired template spec. :return: The updated_replicas of this AppsV1beta1DeploymentStatus. :rtype: int )r)rrrrr s z,AppsV1beta1DeploymentStatus.updated_replicascCs ||_dS)a, Sets the updated_replicas of this AppsV1beta1DeploymentStatus. Total number of non-terminated pods targeted by this deployment that have the desired template spec. :param updated_replicas: The updated_replicas of this AppsV1beta1DeploymentStatus. :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)xrrrsz5AppsV1beta1DeploymentStatus.to_dict..rcSs&t|ddr"|d|djfS|S)Nrr)rr)itemrrrr s) rrgetattr isinstancelistmaprrdictitems)rresultattr_valuerrrrs     z#AppsV1beta1DeploymentStatus.to_dictcCs t|jS)z@ Returns the string representation of the model )rr)rrrrto_strsz"AppsV1beta1DeploymentStatus.to_strcCs|jS)z* For `print` and `pprint` )r,)rrrr__repr__sz$AppsV1beta1DeploymentStatus.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)r#r__dict__)rotherrrr__eq__s z"AppsV1beta1DeploymentStatus.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr/rrr__ne__'sz"AppsV1beta1DeploymentStatus.__ne__)NNNNNNNN)__name__ __module__ __qualname____doc__rpropertyrsetterrrr r r r r rr,r-r0r1rrrrrs. (          r)r5pprintrsixrreobjectrrrrr s