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 eddZ e jddZ ddZ ddZ ddZ ddZddZdS)V1beta1ReplicaSetSpeczw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs<ddddd|_ddddd|_||_||_||_||_d S) aK V1beta1ReplicaSetSpec - 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. intV1LabelSelectorV1PodTemplateSpec)min_ready_secondsreplicasselectortemplateminReadySecondsr r r N) swagger_types attribute_map_min_ready_seconds _replicas _selector _template)selfrr r r rb/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1beta1_replica_set_spec.py__init__s   zV1beta1ReplicaSetSpec.__init__cCs|jS)a Gets the min_ready_seconds of this V1beta1ReplicaSetSpec. 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 V1beta1ReplicaSetSpec. :rtype: int )r)rrrrr4s z'V1beta1ReplicaSetSpec.min_ready_secondscCs ||_dS)a Sets the min_ready_seconds of this V1beta1ReplicaSetSpec. 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 V1beta1ReplicaSetSpec. :type: int N)r)rrrrrr?s cCs|jS)a Gets the replicas of this V1beta1ReplicaSetSpec. 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 V1beta1ReplicaSetSpec. :rtype: int )r)rrrrr Ks zV1beta1ReplicaSetSpec.replicascCs ||_dS)a Sets the replicas of this V1beta1ReplicaSetSpec. 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 V1beta1ReplicaSetSpec. :type: int N)r)rr rrrr Vs cCs|jS)a Gets the selector of this V1beta1ReplicaSetSpec. Selector is a label query over pods that should match the replica count. If the 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 replica set. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors :return: The selector of this V1beta1ReplicaSetSpec. :rtype: V1LabelSelector )r)rrrrr bs zV1beta1ReplicaSetSpec.selectorcCs ||_dS)a Sets the selector of this V1beta1ReplicaSetSpec. Selector is a label query over pods that should match the replica count. If the 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 replica set. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors :param selector: The selector of this V1beta1ReplicaSetSpec. :type: V1LabelSelector N)r)rr rrrr ms cCs|jS)a| Gets the template of this V1beta1ReplicaSetSpec. Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template :return: The template of this V1beta1ReplicaSetSpec. :rtype: V1PodTemplateSpec )r)rrrrr ys zV1beta1ReplicaSetSpec.templatecCs ||_dS)a Sets the template of this V1beta1ReplicaSetSpec. Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template :param template: The template of this V1beta1ReplicaSetSpec. :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)xrrrsz/V1beta1ReplicaSetSpec.to_dict..rcSs&t|ddr"|d|djfS|S)Nrr)rr)itemrrrrs) rr getattr isinstancelistmaprrdictitems)rresultattr_valuerrrrs     zV1beta1ReplicaSetSpec.to_dictcCs t|jS)z@ Returns the string representation of the model )rr)rrrrto_strszV1beta1ReplicaSetSpec.to_strcCs|jS)z* For `print` and `pprint` )r')rrrr__repr__szV1beta1ReplicaSetSpec.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)rr__dict__)rotherrrr__eq__s zV1beta1ReplicaSetSpec.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr*rrr__ne__szV1beta1ReplicaSetSpec.__ne__)NNNN)__name__ __module__ __qualname____doc__rpropertyrsetterr r r rr'r(r+r,rrrrrs       r)r0pprintrsixrreobjectrrrrr s