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)(!ExtensionsV1beta1DeploymentStatuszw 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) aW ExtensionsV1beta1DeploymentStatus - 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[ExtensionsV1beta1DeploymentCondition])available_replicascollision_count conditionsobserved_generationready_replicasreplicasunavailable_replicasupdated_replicasavailableReplicascollisionCountrobservedGeneration readyReplicasr unavailableReplicasupdatedReplicasN) swagger_types attribute_map_available_replicas_collision_count _conditions_observed_generation_ready_replicas _replicas_unavailable_replicas_updated_replicas) selfrrrr r r r r rn/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/extensions_v1beta1_deployment_status.py__init__s0   z*ExtensionsV1beta1DeploymentStatus.__init__cCs|jS)a) Gets the available_replicas of this ExtensionsV1beta1DeploymentStatus. Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. :return: The available_replicas of this ExtensionsV1beta1DeploymentStatus. :rtype: int )r)rrrr r@s z4ExtensionsV1beta1DeploymentStatus.available_replicascCs ||_dS)a: Sets the available_replicas of this ExtensionsV1beta1DeploymentStatus. Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. :param available_replicas: The available_replicas of this ExtensionsV1beta1DeploymentStatus. :type: int N)r)rrrrr rKs cCs|jS)ax Gets the collision_count of this ExtensionsV1beta1DeploymentStatus. 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 ExtensionsV1beta1DeploymentStatus. :rtype: int )r)rrrr rWs z1ExtensionsV1beta1DeploymentStatus.collision_countcCs ||_dS)a Sets the collision_count of this ExtensionsV1beta1DeploymentStatus. 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 ExtensionsV1beta1DeploymentStatus. :type: int N)r)rrrrr rbs cCs|jS)a- Gets the conditions of this ExtensionsV1beta1DeploymentStatus. Represents the latest available observations of a deployment's current state. :return: The conditions of this ExtensionsV1beta1DeploymentStatus. :rtype: list[ExtensionsV1beta1DeploymentCondition] )r)rrrr rns z,ExtensionsV1beta1DeploymentStatus.conditionscCs ||_dS)a6 Sets the conditions of this ExtensionsV1beta1DeploymentStatus. Represents the latest available observations of a deployment's current state. :param conditions: The conditions of this ExtensionsV1beta1DeploymentStatus. :type: list[ExtensionsV1beta1DeploymentCondition] N)r)rrrrr rys cCs|jS)a Gets the observed_generation of this ExtensionsV1beta1DeploymentStatus. The generation observed by the deployment controller. :return: The observed_generation of this ExtensionsV1beta1DeploymentStatus. :rtype: int )r)rrrr r s z5ExtensionsV1beta1DeploymentStatus.observed_generationcCs ||_dS)a Sets the observed_generation of this ExtensionsV1beta1DeploymentStatus. The generation observed by the deployment controller. :param observed_generation: The observed_generation of this ExtensionsV1beta1DeploymentStatus. :type: int N)r)rr rrr r s cCs|jS)z Gets the ready_replicas of this ExtensionsV1beta1DeploymentStatus. Total number of ready pods targeted by this deployment. :return: The ready_replicas of this ExtensionsV1beta1DeploymentStatus. :rtype: int )r)rrrr r s z0ExtensionsV1beta1DeploymentStatus.ready_replicascCs ||_dS)a Sets the ready_replicas of this ExtensionsV1beta1DeploymentStatus. Total number of ready pods targeted by this deployment. :param ready_replicas: The ready_replicas of this ExtensionsV1beta1DeploymentStatus. :type: int N)r)rr rrr r s cCs|jS)a Gets the replicas of this ExtensionsV1beta1DeploymentStatus. Total number of non-terminated pods targeted by this deployment (their labels match the selector). :return: The replicas of this ExtensionsV1beta1DeploymentStatus. :rtype: int )r)rrrr r s z*ExtensionsV1beta1DeploymentStatus.replicascCs ||_dS)a Sets the replicas of this ExtensionsV1beta1DeploymentStatus. Total number of non-terminated pods targeted by this deployment (their labels match the selector). :param replicas: The replicas of this ExtensionsV1beta1DeploymentStatus. :type: int N)r)rr rrr r s cCs|jS)a  Gets the unavailable_replicas of this ExtensionsV1beta1DeploymentStatus. Total number of unavailable pods targeted by this deployment. :return: The unavailable_replicas of this ExtensionsV1beta1DeploymentStatus. :rtype: int )r)rrrr r s z6ExtensionsV1beta1DeploymentStatus.unavailable_replicascCs ||_dS)a Sets the unavailable_replicas of this ExtensionsV1beta1DeploymentStatus. Total number of unavailable pods targeted by this deployment. :param unavailable_replicas: The unavailable_replicas of this ExtensionsV1beta1DeploymentStatus. :type: int N)r)rr rrr r s cCs|jS)a) Gets the updated_replicas of this ExtensionsV1beta1DeploymentStatus. Total number of non-terminated pods targeted by this deployment that have the desired template spec. :return: The updated_replicas of this ExtensionsV1beta1DeploymentStatus. :rtype: int )r)rrrr r s z2ExtensionsV1beta1DeploymentStatus.updated_replicascCs ||_dS)a8 Sets the updated_replicas of this ExtensionsV1beta1DeploymentStatus. Total number of non-terminated pods targeted by this deployment that have the desired template spec. :param updated_replicas: The updated_replicas of this ExtensionsV1beta1DeploymentStatus. :type: int N)r)rr rrr r 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")xrrr sz;ExtensionsV1beta1DeploymentStatus.to_dict..r"cSs&t|ddr"|d|djfS|S)Nr"r)r#r")itemrrr r% s) rrgetattr isinstancelistmapr#r"dictitems)rresultattr_valuerrr r"s     z)ExtensionsV1beta1DeploymentStatus.to_dictcCs t|jS)z@ Returns the string representation of the model )rr")rrrr to_strsz(ExtensionsV1beta1DeploymentStatus.to_strcCs|jS)z* For `print` and `pprint` )r2)rrrr __repr__sz*ExtensionsV1beta1DeploymentStatus.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)r)r__dict__)rotherrrr __eq__s z(ExtensionsV1beta1DeploymentStatus.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr5rrr __ne__'sz(ExtensionsV1beta1DeploymentStatus.__ne__)NNNNNNNN)__name__ __module__ __qualname____doc__r!propertyrsetterrrr r r r r r"r2r3r6r7rrrr rs. (          r)r;pprintrsixrreobjectrrrrr  s