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 @s,eZdZdZd*ddZeddZejddZedd Zejd d Zed d Z e jd d Z eddZ e jddZ eddZ e jddZ eddZ e jddZ eddZ e jddZ eddZejddZeddZejddZd d!Zd"d#Zd$d%Zd&d'Zd(d)ZdS)+AppsV1beta1DeploymentSpeczw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. Nc Csndddddddddd |_dd d d d d dddd |_||_||_||_||_||_||_||_||_ | |_ dS)aO AppsV1beta1DeploymentSpec - 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. intboolAppsV1beta1RollbackConfigV1LabelSelectorAppsV1beta1DeploymentStrategyV1PodTemplateSpec) min_ready_secondspausedprogress_deadline_secondsreplicasrevision_history_limit rollback_toselectorstrategytemplateZminReadySecondsr ZprogressDeadlineSecondsrZrevisionHistoryLimit rollbackTorrrN) swagger_types attribute_map_min_ready_seconds_paused_progress_deadline_seconds _replicas_revision_history_limit _rollback_to _selector _strategy _template) selfr r r rrrrrrr!f/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/apps_v1beta1_deployment_spec.py__init__s6   z"AppsV1beta1DeploymentSpec.__init__cCs|jS)a Gets the min_ready_seconds of this AppsV1beta1DeploymentSpec. 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 AppsV1beta1DeploymentSpec. :rtype: int )r)r r!r!r"r Cs z+AppsV1beta1DeploymentSpec.min_ready_secondscCs ||_dS)a Sets the min_ready_seconds of this AppsV1beta1DeploymentSpec. 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 AppsV1beta1DeploymentSpec. :type: int N)r)r r r!r!r"r Ns cCs|jS)z Gets the paused of this AppsV1beta1DeploymentSpec. Indicates that the deployment is paused. :return: The paused of this AppsV1beta1DeploymentSpec. :rtype: bool )r)r r!r!r"r Zs z AppsV1beta1DeploymentSpec.pausedcCs ||_dS)z Sets the paused of this AppsV1beta1DeploymentSpec. Indicates that the deployment is paused. :param paused: The paused of this AppsV1beta1DeploymentSpec. :type: bool N)r)r r r!r!r"r es cCs|jS)a Gets the progress_deadline_seconds of this AppsV1beta1DeploymentSpec. The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. :return: The progress_deadline_seconds of this AppsV1beta1DeploymentSpec. :rtype: int )r)r r!r!r"r qs z3AppsV1beta1DeploymentSpec.progress_deadline_secondscCs ||_dS)a Sets the progress_deadline_seconds of this AppsV1beta1DeploymentSpec. The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. :param progress_deadline_seconds: The progress_deadline_seconds of this AppsV1beta1DeploymentSpec. :type: int N)r)r r r!r!r"r |s cCs|jS)a Gets the replicas of this AppsV1beta1DeploymentSpec. Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. :return: The replicas of this AppsV1beta1DeploymentSpec. :rtype: int )r)r r!r!r"rs z"AppsV1beta1DeploymentSpec.replicascCs ||_dS)a Sets the replicas of this AppsV1beta1DeploymentSpec. Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. :param replicas: The replicas of this AppsV1beta1DeploymentSpec. :type: int N)r)r rr!r!r"rs cCs|jS)aT Gets the revision_history_limit of this AppsV1beta1DeploymentSpec. The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2. :return: The revision_history_limit of this AppsV1beta1DeploymentSpec. :rtype: int )r)r r!r!r"rs z0AppsV1beta1DeploymentSpec.revision_history_limitcCs ||_dS)ai Sets the revision_history_limit of this AppsV1beta1DeploymentSpec. The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2. :param revision_history_limit: The revision_history_limit of this AppsV1beta1DeploymentSpec. :type: int N)r)r rr!r!r"rs cCs|jS)a Gets the rollback_to of this AppsV1beta1DeploymentSpec. The config this deployment is rolling back to. Will be cleared after rollback is done. :return: The rollback_to of this AppsV1beta1DeploymentSpec. :rtype: AppsV1beta1RollbackConfig )r)r r!r!r"rs z%AppsV1beta1DeploymentSpec.rollback_tocCs ||_dS)a! Sets the rollback_to of this AppsV1beta1DeploymentSpec. The config this deployment is rolling back to. Will be cleared after rollback is done. :param rollback_to: The rollback_to of this AppsV1beta1DeploymentSpec. :type: AppsV1beta1RollbackConfig N)r)r rr!r!r"rs cCs|jS)a, Gets the selector of this AppsV1beta1DeploymentSpec. Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. :return: The selector of this AppsV1beta1DeploymentSpec. :rtype: V1LabelSelector )r)r r!r!r"rs z"AppsV1beta1DeploymentSpec.selectorcCs ||_dS)a3 Sets the selector of this AppsV1beta1DeploymentSpec. Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. :param selector: The selector of this AppsV1beta1DeploymentSpec. :type: V1LabelSelector N)r)r rr!r!r"rs cCs|jS)a Gets the strategy of this AppsV1beta1DeploymentSpec. The deployment strategy to use to replace existing pods with new ones. :return: The strategy of this AppsV1beta1DeploymentSpec. :rtype: AppsV1beta1DeploymentStrategy )r)r r!r!r"rs z"AppsV1beta1DeploymentSpec.strategycCs ||_dS)a  Sets the strategy of this AppsV1beta1DeploymentSpec. The deployment strategy to use to replace existing pods with new ones. :param strategy: The strategy of this AppsV1beta1DeploymentSpec. :type: AppsV1beta1DeploymentStrategy N)r)r rr!r!r"rs cCs|jS)z Gets the template of this AppsV1beta1DeploymentSpec. Template describes the pods that will be created. :return: The template of this AppsV1beta1DeploymentSpec. :rtype: V1PodTemplateSpec )r)r r!r!r"rs z"AppsV1beta1DeploymentSpec.templatecCs|dkrtd||_dS)z Sets the template of this AppsV1beta1DeploymentSpec. Template describes the pods that will be created. :param template: The template of this AppsV1beta1DeploymentSpec. :type: V1PodTemplateSpec Nz0Invalid value for `template`, must not be `None`) ValueErrorr)r rr!r!r"rs 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%)xr!r!r"sz3AppsV1beta1DeploymentSpec.to_dict..r%cSs&t|ddr"|d|djfS|S)Nr%r)r&r%)itemr!r!r"r(%s) rrgetattr isinstancelistmapr&r%dictitems)r resultattr_valuer!r!r"r%s     z!AppsV1beta1DeploymentSpec.to_dictcCs t|jS)z@ Returns the string representation of the model )rr%)r r!r!r"to_str.sz AppsV1beta1DeploymentSpec.to_strcCs|jS)z* For `print` and `pprint` )r5)r r!r!r"__repr__4sz"AppsV1beta1DeploymentSpec.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)r,r__dict__)r otherr!r!r"__eq__:s z AppsV1beta1DeploymentSpec.__eq__cCs ||k S)z< Returns true if both objects are not equal r!)r r8r!r!r"__ne__Csz AppsV1beta1DeploymentSpec.__ne__) NNNNNNNNN)__name__ __module__ __qualname____doc__r#propertyr setterr r rrrrrrr%r5r6r9r:r!r!r!r"rs2 +          r)r>pprintrsixrreobjectrr!r!r!r" s