
    6                     >    S r SSKJr  SSKJr  SSKr " S S\5      rg)z
Kubernetes

No description provided (generated by Swagger Codegen
https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.14.4

Generated by: https://github.com/swagger-api/swagger-codegen.git
    )pformat)	iteritemsNc            	          \ rS rSrSr SSSSSSSSS.rSS	S
SSSSSS.r        S(S jr\S 5       r	\	R                  S 5       r	\S 5       r\R                  S 5       r\S 5       r\R                  S 5       r\S 5       r\R                  S 5       r\S 5       r\R                  S 5       r\S 5       r\R                  S 5       r\S 5       r\R                  S 5       r\S  5       r\R                  S! 5       rS" rS# rS$ rS% rS& rS'rg))	V1JobSpec   zk
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
intboolV1LabelSelectorV1PodTemplateSpec)active_deadline_secondsbackoff_limitcompletionsmanual_selectorparallelismselectortemplatettl_seconds_after_finishedactiveDeadlineSecondsbackoffLimitr   manualSelectorr   r   r   ttlSecondsAfterFinishedNc	                    SU l         SU l        SU l        SU l        SU l        SU l        SU l        SU l        SU l        Ub  Xl	        Ub  X l
        Ub  X0l        Ub  X@l        Ub  XPl        Ub  X`l        Xpl        Ub  Xl        gg)z(
V1JobSpec - a model defined in Swagger
N)_active_deadline_seconds_backoff_limit_completions_manual_selector_parallelism	_selector	_template_ttl_seconds_after_finisheddiscriminatorr   r   r   r   r   r   r   r   )	selfr   r   r   r   r   r   r   r   s	            7lib/third_party/kubernetes/client/models/v1_job_spec.py__init__V1JobSpec.__init__4   s     %)D!DD DDDNDN'+D$D*%<" ($",$mM!-(B% .    c                     U R                   $ )a  
Gets the active_deadline_seconds of this V1JobSpec.
Specifies the 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   r"   s    r#   r   !V1JobSpec.active_deadline_seconds[   s     (((r&   c                     Xl         g)a/  
Sets the active_deadline_seconds of this V1JobSpec.
Specifies the 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
Nr(   )r"   r   s     r#   r   r*   h   s
     %<!r&   c                     U R                   $ )z
Gets the backoff_limit of this V1JobSpec.
Specifies the number of retries before marking this job failed. Defaults
to 6

:return: The backoff_limit of this V1JobSpec.
:rtype: int
r   r)   s    r#   r   V1JobSpec.backoff_limitw   s     r&   c                     Xl         g)z
Sets the backoff_limit of this V1JobSpec.
Specifies the number of retries before marking this job failed. Defaults
to 6

:param backoff_limit: The backoff_limit of this V1JobSpec.
:type: int
Nr-   )r"   r   s     r#   r   r.      s
     (r&   c                     U R                   $ )a  
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   r)   s    r#   r   V1JobSpec.completions        r&   c                     Xl         g)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
Nr1   )r"   r   s     r#   r   r2      
     $r&   c                     U R                   $ )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://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector

:return: The manual_selector of this V1JobSpec.
:rtype: bool
r   r)   s    r#   r   V1JobSpec.manual_selector   s    "    r&   c                     Xl         g)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://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector

:param manual_selector: The manual_selector of this V1JobSpec.
:type: bool
Nr7   )r"   r   s     r#   r   r8      s
    $ ,r&   c                     U R                   $ )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   r)   s    r#   r   V1JobSpec.parallelism   r3   r&   c                     Xl         g)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
Nr;   )r"   r   s     r#   r   r<      r5   r&   c                     U R                   $ )a4  
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   r)   s    r#   r   V1JobSpec.selector   s     >>r&   c                     Xl         g)a;  
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
Nr?   )r"   r   s     r#   r   r@     s	     Nr&   c                     U R                   $ )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   r)   s    r#   r   V1JobSpec.template  s     >>r&   c                 ,    Uc  [        S5      eXl        g)a  
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   )r"   r   s     r#   r   rC      s     IJJNr&   c                     U R                   $ )a  
Gets the ttl_seconds_after_finished of this V1JobSpec.
ttlSecondsAfterFinished limits the lifetime of a Job that has finished
execution (either Complete or Failed). If this field is set,
ttlSecondsAfterFinished after the Job finishes, it is eligible to be
automatically deleted. When the Job is being deleted, its lifecycle
guarantees (e.g. finalizers) will be honored. If this field is unset,
the Job won't be automatically deleted. If this field is set to zero,
the Job becomes eligible to be deleted immediately after it finishes.
This field is alpha-level and is only honored by servers that enable the
TTLAfterFinished feature.

:return: The ttl_seconds_after_finished of this V1JobSpec.
:rtype: int
r    r)   s    r#   r   $V1JobSpec.ttl_seconds_after_finished/  s    " +++r&   c                     Xl         g)a  
Sets the ttl_seconds_after_finished of this V1JobSpec.
ttlSecondsAfterFinished limits the lifetime of a Job that has finished
execution (either Complete or Failed). If this field is set,
ttlSecondsAfterFinished after the Job finishes, it is eligible to be
automatically deleted. When the Job is being deleted, its lifecycle
guarantees (e.g. finalizers) will be honored. If this field is unset,
the Job won't be automatically deleted. If this field is set to zero,
the Job becomes eligible to be deleted immediately after it finishes.
This field is alpha-level and is only honored by servers that enable the
TTLAfterFinished feature.

:param ttl_seconds_after_finished: The ttl_seconds_after_finished of
this V1JobSpec.
:type: int
NrG   )r"   r   s     r#   r   rH   B  s    & (B$r&   c                    0 n[        U R                  5       H  u  p#[        X5      n[        U[        5      (       a  [	        [        S U5      5      X'   M?  [        US5      (       a  UR                  5       X'   Md  [        U[        5      (       a(  [        [        S UR                  5       5      5      X'   M  XAU'   M     U$ )z(
Returns the model properties as a dict
c                 H    [        U S5      (       a  U R                  5       $ U $ )Nto_dicthasattrrL   )xs    r#   <lambda>#V1JobSpec.to_dict.<locals>.<lambda>a  s    I)>)>!))+EAEr&   rL   c                 ^    [        U S   S5      (       a  U S   U S   R                  5       4$ U $ )N   rL   r   rM   )items    r#   rP   rQ   g  s9    47I.. #1gtAw'89 9489r&   )
r   swagger_typesgetattr
isinstancelistmaprN   rL   dictitems)r"   resultattr_values        r#   rL   V1JobSpec.to_dictW  s     FT//0d!e	E4	 	 EuMO5)$$}}eT""9:?++-IJ
 t 1 Mr&   c                 4    [        U R                  5       5      $ )z0
Returns the string representation of the model
)r   rL   r)   s    r#   to_strV1JobSpec.to_strn  s     4<<>""r&   c                 "    U R                  5       $ )z
For `print` and `pprint`
)rb   r)   s    r#   __repr__V1JobSpec.__repr__t  s     ;;=r&   c                 `    [        U[        5      (       d  gU R                  UR                  :H  $ )z(
Returns true if both objects are equal
F)rW   r   __dict__r"   others     r#   __eq__V1JobSpec.__eq__z  s'     eY''==ENN**r&   c                     X:X  + $ )z,
Returns true if both objects are not equal
 ri   s     r#   __ne__V1JobSpec.__ne__  s     r&   )r   r   r   r   r   r   r   r    r   r   r   r!   r   r   r   r   r   )NNNNNNNN)__name__
__module____qualname____firstlineno____doc__rU   attribute_mapr$   propertyr   setterr   r   r   r   r   r   r   rL   rb   re   rk   ro   __static_attributes__rn   r&   r#   r   r      s    "'#%$)	- "9%")"$=	- (,!#*.%CN 
) 
) !!< "< 	 	 
( 
(   $ $  ! !$ , ,&   $ $  
 
 ??  	 	 ??  , ,$ $$B %B(.#+r&   r   )ru   pprintr   sixr   reobjectr   rn   r&   r#   <module>r~      s#   	   	u ur&   