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 dd„Z dd„Zdd„Zdd„Zdd „ZdS)"Ú V1JobSpeczw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCsPdddddddœ|_dddd d d dœ|_||_||_||_||_||_||_d S) a? V1JobSpec - 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ÚV1LabelSelectorÚV1PodTemplateSpec)Úactive_deadline_secondsÚ completionsÚmanual_selectorÚ parallelismÚselectorÚtemplateZactiveDeadlineSecondsr ZmanualSelectorr r rN)Ú swagger_typesÚ attribute_mapÚ_active_deadline_secondsÚ _completionsÚ_manual_selectorÚ _parallelismÚ _selectorÚ _template)Úselfr r r r r r©rúU/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_job_spec.pyÚ__init__s$   zV1JobSpec.__init__cCs|jS)a< Gets the active_deadline_seconds of this V1JobSpec. Optional duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer :return: The active_deadline_seconds of this V1JobSpec. :rtype: int )r)rrrrr :s z!V1JobSpec.active_deadline_secondscCs ||_dS)aR Sets the active_deadline_seconds of this V1JobSpec. Optional duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer :param active_deadline_seconds: The active_deadline_seconds of this V1JobSpec. :type: int N)r)rr rrrr Es cCs|jS)a5 Gets the completions of this V1JobSpec. Specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ :return: The completions of this V1JobSpec. :rtype: int )r)rrrrr Qs zV1JobSpec.completionscCs ||_dS)a? Sets the completions of this V1JobSpec. Specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ :param completions: The completions of this V1JobSpec. :type: int N)r)rr rrrr \s cCs|jS)a  Gets the manual_selector of this V1JobSpec. manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://git.k8s.io/community/contributors/design-proposals/selector-generation.md :return: The manual_selector of this V1JobSpec. :rtype: bool )r)rrrrr hs zV1JobSpec.manual_selectorcCs ||_dS)a Sets the manual_selector of this V1JobSpec. manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://git.k8s.io/community/contributors/design-proposals/selector-generation.md :param manual_selector: The manual_selector of this V1JobSpec. :type: bool N)r)rr rrrr ss cCs|jS)a  Gets the parallelism of this V1JobSpec. Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ :return: The parallelism of this V1JobSpec. :rtype: int )r)rrrrr s zV1JobSpec.parallelismcCs ||_dS)a Sets the parallelism of this V1JobSpec. Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ :param parallelism: The parallelism of this V1JobSpec. :type: int N)r)rr rrrr Šs cCs|jS)a\ Gets the selector of this V1JobSpec. A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors :return: The selector of this V1JobSpec. :rtype: V1LabelSelector )r)rrrrr –s zV1JobSpec.selectorcCs ||_dS)ac Sets the selector of this V1JobSpec. A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors :param selector: The selector of this V1JobSpec. :type: V1LabelSelector N)r)rr rrrr ¡s cCs|jS)a, Gets the template of this V1JobSpec. Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ :return: The template of this V1JobSpec. :rtype: V1PodTemplateSpec )r)rrrrr­s zV1JobSpec.templatecCs|dkrtdƒ‚||_dS)a3 Sets the template of this V1JobSpec. Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ :param template: The template of this V1JobSpec. :type: V1PodTemplateSpec Nz0Invalid value for `template`, must not be `None`)Ú ValueErrorr)rrrrrr¸s 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)ÚxrrrÚÐsz#V1JobSpec.to_dict..rcSs&t|ddƒr"|d|djƒfS|S)Nérr)rr)Úitemrrrr×s) rrÚgetattrÚ isinstanceÚlistÚmaprrÚdictÚitems)rÚresultÚattrÚ_ÚvaluerrrrÆs     zV1JobSpec.to_dictcCs t|jƒƒS)z@ Returns the string representation of the model )rr)rrrrÚto_stràszV1JobSpec.to_strcCs|jƒS)z* For `print` and `pprint` )r,)rrrrÚ__repr__æszV1JobSpec.__repr__cCst|tƒsdS|j|jkS)z8 Returns true if both objects are equal F)r#rÚ__dict__)rÚotherrrrÚ__eq__ìs zV1JobSpec.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr/rrrÚ__ne__õszV1JobSpec.__ne__)NNNNNN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rÚpropertyr Úsetterr r r r rrr,r-r0r1rrrrrs& "       r)r5ÚpprintrÚsixrÚreÚobjectrrrrrÚ s