3 fYG@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 eddZ e jddZ ddZ ddZ ddZ ddZddZdS)V1ReplicationControllerSpeczw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs<ddddd|_ddddd|_||_||_||_||_d S) aQ V1ReplicationControllerSpec - 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)V1PodTemplateSpec)min_ready_secondsreplicasselectortemplateminReadySecondsrr r N) swagger_types attribute_map_min_ready_seconds _replicas _selector _template)selfrrr r rh/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_replication_controller_spec.py__init__s   z$V1ReplicationControllerSpec.__init__cCs|jS)a Gets the min_ready_seconds of this V1ReplicationControllerSpec. Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) :return: The min_ready_seconds of this V1ReplicationControllerSpec. :rtype: int )r)rrrrr4s z-V1ReplicationControllerSpec.min_ready_secondscCs ||_dS)a Sets the min_ready_seconds of this V1ReplicationControllerSpec. Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) :param min_ready_seconds: The min_ready_seconds of this V1ReplicationControllerSpec. :type: int N)r)rrrrrr?s cCs|jS)a Gets the replicas of this V1ReplicationControllerSpec. Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller :return: The replicas of this V1ReplicationControllerSpec. :rtype: int )r)rrrrrKs z$V1ReplicationControllerSpec.replicascCs ||_dS)a Sets the replicas of this V1ReplicationControllerSpec. Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller :param replicas: The replicas of this V1ReplicationControllerSpec. :type: int N)r)rrrrrrVs cCs|jS)aA Gets the selector of this V1ReplicationControllerSpec. Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors :return: The selector of this V1ReplicationControllerSpec. :rtype: dict(str, str) )r)rrrrr bs z$V1ReplicationControllerSpec.selectorcCs ||_dS)aH Sets the selector of this V1ReplicationControllerSpec. Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors :param selector: The selector of this V1ReplicationControllerSpec. :type: dict(str, str) N)r)rr rrrr ms cCs|jS)a Gets the template of this V1ReplicationControllerSpec. Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template :return: The template of this V1ReplicationControllerSpec. :rtype: V1PodTemplateSpec )r)rrrrr ys z$V1ReplicationControllerSpec.templatecCs ||_dS)a Sets the template of this V1ReplicationControllerSpec. Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template :param template: The template of this V1ReplicationControllerSpec. :type: V1PodTemplateSpec 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)xrrrsz5V1ReplicationControllerSpec.to_dict..rcSs&t|ddr"|d|djfS|S)Nrr)rr)itemrrrrs) rr getattr isinstancelistmaprrdictitems)rresultattr_valuerrrrs     z#V1ReplicationControllerSpec.to_dictcCs t|jS)z@ Returns the string representation of the model )rr)rrrrto_strsz"V1ReplicationControllerSpec.to_strcCs|jS)z* For `print` and `pprint` )r&)rrrr__repr__sz$V1ReplicationControllerSpec.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)rr__dict__)rotherrrr__eq__s z"V1ReplicationControllerSpec.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr)rrr__ne__sz"V1ReplicationControllerSpec.__ne__)NNNN)__name__ __module__ __qualname____doc__rpropertyrsetterrr r rr&r'r*r+rrrrrs       r)r/pprintrsixrreobjectrrrrr s