3 f÷ÔYñ/ã@s8dZddlmZddlmZddlZGdd„deƒZdS)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*dd„Zedd„ƒZejdd„ƒZedd „ƒZejd d „ƒZed d „ƒZ e jd d „ƒZ edd„ƒZ e jdd„ƒZ edd„ƒZ e jdd„ƒZ edd„ƒZ e jdd„ƒZ edd„ƒZ e jdd„ƒZ edd„ƒZejdd„ƒZedd„ƒZejdd„ƒZd d!„Zd"d#„Zd$d%„Zd&d'„Zd(d)„ZdS)+ÚExtensionsV1beta1DeploymentSpeczw 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)aU ExtensionsV1beta1DeploymentSpec - 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. ÚintÚboolÚExtensionsV1beta1RollbackConfigÚV1LabelSelectorÚ#ExtensionsV1beta1DeploymentStrategyÚV1PodTemplateSpec) Úmin_ready_secondsÚpausedÚprogress_deadline_secondsÚreplicasÚrevision_history_limitÚ rollback_toÚselectorÚstrategyÚtemplateÚminReadySecondsr ÚprogressDeadlineSecondsrÚrevisionHistoryLimitÚ rollbackTorrrN) Ú swagger_typesÚ attribute_mapÚ_min_ready_secondsÚ_pausedÚ_progress_deadline_secondsÚ _replicasÚ_revision_history_limitÚ _rollback_toÚ _selectorÚ _strategyÚ _template) Úselfr r r rrrrrr©r$úl/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/extensions_v1beta1_deployment_spec.pyÚ__init__s6   z(ExtensionsV1beta1DeploymentSpec.__init__cCs|jS)aœ Gets the min_ready_seconds of this ExtensionsV1beta1DeploymentSpec. 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 ExtensionsV1beta1DeploymentSpec. :rtype: int )r)r#r$r$r%r Cs z1ExtensionsV1beta1DeploymentSpec.min_ready_secondscCs ||_dS)a¬ Sets the min_ready_seconds of this ExtensionsV1beta1DeploymentSpec. 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 ExtensionsV1beta1DeploymentSpec. :type: int N)r)r#r r$r$r%r Ns cCs|jS)a  Gets the paused of this ExtensionsV1beta1DeploymentSpec. Indicates that the deployment is paused and will not be processed by the deployment controller. :return: The paused of this ExtensionsV1beta1DeploymentSpec. :rtype: bool )r)r#r$r$r%r Zs z&ExtensionsV1beta1DeploymentSpec.pausedcCs ||_dS)a Sets the paused of this ExtensionsV1beta1DeploymentSpec. Indicates that the deployment is paused and will not be processed by the deployment controller. :param paused: The paused of this ExtensionsV1beta1DeploymentSpec. :type: bool N)r)r#r r$r$r%r es cCs|jS)a· Gets the progress_deadline_seconds of this ExtensionsV1beta1DeploymentSpec. 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. This is not set by default. :return: The progress_deadline_seconds of this ExtensionsV1beta1DeploymentSpec. :rtype: int )r)r#r$r$r%r qs z9ExtensionsV1beta1DeploymentSpec.progress_deadline_secondscCs ||_dS)aÏ Sets the progress_deadline_seconds of this ExtensionsV1beta1DeploymentSpec. 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. This is not set by default. :param progress_deadline_seconds: The progress_deadline_seconds of this ExtensionsV1beta1DeploymentSpec. :type: int N)r)r#r r$r$r%r |s cCs|jS)a! Gets the replicas of this ExtensionsV1beta1DeploymentSpec. Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. :return: The replicas of this ExtensionsV1beta1DeploymentSpec. :rtype: int )r)r#r$r$r%rˆs z(ExtensionsV1beta1DeploymentSpec.replicascCs ||_dS)a( Sets the replicas of this ExtensionsV1beta1DeploymentSpec. 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 ExtensionsV1beta1DeploymentSpec. :type: int N)r)r#rr$r$r%r“s cCs|jS)aQ Gets the revision_history_limit of this ExtensionsV1beta1DeploymentSpec. The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. :return: The revision_history_limit of this ExtensionsV1beta1DeploymentSpec. :rtype: int )r)r#r$r$r%rŸs z6ExtensionsV1beta1DeploymentSpec.revision_history_limitcCs ||_dS)af Sets the revision_history_limit of this ExtensionsV1beta1DeploymentSpec. The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. :param revision_history_limit: The revision_history_limit of this ExtensionsV1beta1DeploymentSpec. :type: int N)r)r#rr$r$r%rªs cCs|jS)a) Gets the rollback_to of this ExtensionsV1beta1DeploymentSpec. The config this deployment is rolling back to. Will be cleared after rollback is done. :return: The rollback_to of this ExtensionsV1beta1DeploymentSpec. :rtype: ExtensionsV1beta1RollbackConfig )r)r#r$r$r%r¶s z+ExtensionsV1beta1DeploymentSpec.rollback_tocCs ||_dS)a3 Sets the rollback_to of this ExtensionsV1beta1DeploymentSpec. The config this deployment is rolling back to. Will be cleared after rollback is done. :param rollback_to: The rollback_to of this ExtensionsV1beta1DeploymentSpec. :type: ExtensionsV1beta1RollbackConfig N)r)r#rr$r$r%rÁs cCs|jS)a8 Gets the selector of this ExtensionsV1beta1DeploymentSpec. 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 ExtensionsV1beta1DeploymentSpec. :rtype: V1LabelSelector )r )r#r$r$r%rÍs z(ExtensionsV1beta1DeploymentSpec.selectorcCs ||_dS)a? Sets the selector of this ExtensionsV1beta1DeploymentSpec. 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 ExtensionsV1beta1DeploymentSpec. :type: V1LabelSelector N)r )r#rr$r$r%rØs cCs|jS)a Gets the strategy of this ExtensionsV1beta1DeploymentSpec. The deployment strategy to use to replace existing pods with new ones. :return: The strategy of this ExtensionsV1beta1DeploymentSpec. :rtype: ExtensionsV1beta1DeploymentStrategy )r!)r#r$r$r%räs z(ExtensionsV1beta1DeploymentSpec.strategycCs ||_dS)a Sets the strategy of this ExtensionsV1beta1DeploymentSpec. The deployment strategy to use to replace existing pods with new ones. :param strategy: The strategy of this ExtensionsV1beta1DeploymentSpec. :type: ExtensionsV1beta1DeploymentStrategy N)r!)r#rr$r$r%rïs cCs|jS)zð Gets the template of this ExtensionsV1beta1DeploymentSpec. Template describes the pods that will be created. :return: The template of this ExtensionsV1beta1DeploymentSpec. :rtype: V1PodTemplateSpec )r")r#r$r$r%rûs z(ExtensionsV1beta1DeploymentSpec.templatecCs|dkrtdƒ‚||_dS)z÷ Sets the template of this ExtensionsV1beta1DeploymentSpec. Template describes the pods that will be created. :param template: The template of this ExtensionsV1beta1DeploymentSpec. :type: V1PodTemplateSpec Nz0Invalid value for `template`, must not be `None`)Ú ValueErrorr")r#rr$r$r%rs cCs’i}xˆt|jƒD]z\}}t||ƒ}t|tƒrDttdd„|ƒƒ||<qt|dƒr\|jƒ||<qt|tƒr‚ttdd„|j ƒƒƒ||<q|||<qW|S)z8 Returns the model properties as a dict cSst|dƒr|jƒS|S)NÚto_dict)Úhasattrr()Úxr$r$r%Úsz9ExtensionsV1beta1DeploymentSpec.to_dict..r(cSs&t|ddƒr"|d|djƒfS|S)Nér(r)r)r()Úitemr$r$r%r+%s) rrÚgetattrÚ isinstanceÚlistÚmapr)r(ÚdictÚitems)r#ÚresultÚattrÚ_Úvaluer$r$r%r(s     z'ExtensionsV1beta1DeploymentSpec.to_dictcCs t|jƒƒS)z@ Returns the string representation of the model )rr()r#r$r$r%Úto_str.sz&ExtensionsV1beta1DeploymentSpec.to_strcCs|jƒS)z* For `print` and `pprint` )r8)r#r$r$r%Ú__repr__4sz(ExtensionsV1beta1DeploymentSpec.__repr__cCst|tƒsdS|j|jkS)z8 Returns true if both objects are equal F)r/rÚ__dict__)r#Úotherr$r$r%Ú__eq__:s z&ExtensionsV1beta1DeploymentSpec.__eq__cCs ||k S)z< Returns true if both objects are not equal r$)r#r;r$r$r%Ú__ne__Csz&ExtensionsV1beta1DeploymentSpec.__ne__) NNNNNNNNN)Ú__name__Ú __module__Ú __qualname__Ú__doc__r&Úpropertyr Úsetterr r rrrrrrr(r8r9r<r=r$r$r$r%rs2 +          r)rAÚpprintrÚsixrÚreÚobjectrr$r$r$r%Ú s