
    b(                     >    d Z ddlmZ ddlmZ ddlZ G d de      Zy)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                      e Zd ZdZ	 ddddddddZddd	d
ddddZ	 	 	 	 	 	 	 d#dZed        Zej                  d        Zed        Z
e
j                  d        Z
ed        Zej                  d        Zed        Zej                  d        Zed        Zej                  d        Zed        Zej                  d        Zed        Zej                  d        Zd Zd Zd  Zd! Zd" Zy)$V2alpha1CronJobSpeczw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    strintV2alpha1JobTemplateSpecbool)concurrency_policyfailed_jobs_history_limitjob_templateschedulestarting_deadline_secondssuccessful_jobs_history_limitsuspendconcurrencyPolicyfailedJobsHistoryLimitjobTemplater   startingDeadlineSecondssuccessfulJobsHistoryLimitr   Nc                     d| _         d| _        d| _        d| _        d| _        d| _        d| _        d| _        ||| _        ||| _	        || _
        || _        ||| _        ||| _        ||| _        yy)zB
        V2alpha1CronJobSpec - a model defined in Swagger
        N)_concurrency_policy_failed_jobs_history_limit_job_template	_schedule_starting_deadline_seconds_successful_jobs_history_limit_suspenddiscriminatorr   r   r   r   r   r   r   )selfr   r   r   r   r   r   r   s           Blib/third_party/kubernetes/client/models/v2alpha1_cron_job_spec.py__init__zV2alpha1CronJobSpec.__init__2   s      $D&*D#DDN&*D#*.D'DMD% 2d ,'@d$$DDM ,'@d$$0+Hd(dl     c                     | j                   S )a  
        Gets the concurrency_policy of this V2alpha1CronJobSpec.
        Specifies how to treat concurrent executions of a Job. Valid values are:
        - "Allow" (default): allows CronJobs to run concurrently; -
        "Forbid": forbids concurrent runs, skipping next run if previous run
        hasn't finished yet; - "Replace": cancels currently running job and
        replaces it with a new one

        :return: The concurrency_policy of this V2alpha1CronJobSpec.
        :rtype: str
        r   r    s    r!   r   z&V2alpha1CronJobSpec.concurrency_policyT   s     ###r#   c                     || _         y)a  
        Sets the concurrency_policy of this V2alpha1CronJobSpec.
        Specifies how to treat concurrent executions of a Job. Valid values are:
        - "Allow" (default): allows CronJobs to run concurrently; -
        "Forbid": forbids concurrent runs, skipping next run if previous run
        hasn't finished yet; - "Replace": cancels currently running job and
        replaces it with a new one

        :param concurrency_policy: The concurrency_policy of this
        V2alpha1CronJobSpec.
        :type: str
        Nr%   )r    r   s     r!   r   z&V2alpha1CronJobSpec.concurrency_policyc   s      2Dr#   c                     | j                   S )a:  
        Gets the failed_jobs_history_limit of this V2alpha1CronJobSpec.
        The number of failed finished jobs to retain. This is a pointer to
        distinguish between explicit zero and not specified.

        :return: The failed_jobs_history_limit of this V2alpha1CronJobSpec.
        :rtype: int
        r   r&   s    r!   r   z-V2alpha1CronJobSpec.failed_jobs_history_limitt   s     ***r#   c                     || _         y)aZ  
        Sets the failed_jobs_history_limit of this V2alpha1CronJobSpec.
        The number of failed finished jobs to retain. This is a pointer to
        distinguish between explicit zero and not specified.

        :param failed_jobs_history_limit: The failed_jobs_history_limit of this
        V2alpha1CronJobSpec.
        :type: int
        Nr)   )r    r   s     r!   r   z-V2alpha1CronJobSpec.failed_jobs_history_limit   s     '@D#r#   c                     | j                   S )z
        Gets the job_template of this V2alpha1CronJobSpec.
        Specifies the job that will be created when executing a CronJob.

        :return: The job_template of this V2alpha1CronJobSpec.
        :rtype: V2alpha1JobTemplateSpec
        )r   r&   s    r!   r   z V2alpha1CronJobSpec.job_template   s     r#   c                 ,    |t        d      || _        y)a   
        Sets the job_template of this V2alpha1CronJobSpec.
        Specifies the job that will be created when executing a CronJob.

        :param job_template: The job_template of this V2alpha1CronJobSpec.
        :type: V2alpha1JobTemplateSpec
        Nz4Invalid value for `job_template`, must not be `None`)
ValueErrorr   )r    r   s     r!   r   z V2alpha1CronJobSpec.job_template   s     MNN%Dr#   c                     | j                   S )z
        Gets the schedule of this V2alpha1CronJobSpec.
        The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.

        :return: The schedule of this V2alpha1CronJobSpec.
        :rtype: str
        )r   r&   s    r!   r   zV2alpha1CronJobSpec.schedule   s     >>r#   c                 ,    |t        d      || _        y)z
        Sets the schedule of this V2alpha1CronJobSpec.
        The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.

        :param schedule: The schedule of this V2alpha1CronJobSpec.
        :type: str
        Nz0Invalid value for `schedule`, must not be `None`)r-   r   )r    r   s     r!   r   zV2alpha1CronJobSpec.schedule   s     IJJDNr#   c                     | j                   S )a`  
        Gets the starting_deadline_seconds of this V2alpha1CronJobSpec.
        Optional deadline in seconds for starting the job if it misses scheduled
        time for any reason.  Missed jobs executions will be counted as failed
        ones.

        :return: The starting_deadline_seconds of this V2alpha1CronJobSpec.
        :rtype: int
        r   r&   s    r!   r   z-V2alpha1CronJobSpec.starting_deadline_seconds   s     ***r#   c                     || _         y)a  
        Sets the starting_deadline_seconds of this V2alpha1CronJobSpec.
        Optional deadline in seconds for starting the job if it misses scheduled
        time for any reason.  Missed jobs executions will be counted as failed
        ones.

        :param starting_deadline_seconds: The starting_deadline_seconds of this
        V2alpha1CronJobSpec.
        :type: int
        Nr1   )r    r   s     r!   r   z-V2alpha1CronJobSpec.starting_deadline_seconds   s     '@D#r#   c                     | j                   S )aF  
        Gets the successful_jobs_history_limit of this V2alpha1CronJobSpec.
        The number of successful finished jobs to retain. This is a pointer to
        distinguish between explicit zero and not specified.

        :return: The successful_jobs_history_limit of this V2alpha1CronJobSpec.
        :rtype: int
        r   r&   s    r!   r   z1V2alpha1CronJobSpec.successful_jobs_history_limit   s     ...r#   c                     || _         y)aj  
        Sets the successful_jobs_history_limit of this V2alpha1CronJobSpec.
        The number of successful finished jobs to retain. This is a pointer to
        distinguish between explicit zero and not specified.

        :param successful_jobs_history_limit: The successful_jobs_history_limit
        of this V2alpha1CronJobSpec.
        :type: int
        Nr4   )r    r   s     r!   r   z1V2alpha1CronJobSpec.successful_jobs_history_limit   s     +HD'r#   c                     | j                   S )a%  
        Gets the suspend of this V2alpha1CronJobSpec.
        This flag tells the controller to suspend subsequent executions, it does
        not apply to already started executions.  Defaults to false.

        :return: The suspend of this V2alpha1CronJobSpec.
        :rtype: bool
        r   r&   s    r!   r   zV2alpha1CronJobSpec.suspend   s     ==r#   c                     || _         y)a+  
        Sets the suspend of this V2alpha1CronJobSpec.
        This flag tells the controller to suspend subsequent executions, it does
        not apply to already started executions.  Defaults to false.

        :param suspend: The suspend of this V2alpha1CronJobSpec.
        :type: bool
        Nr7   )r    r   s     r!   r   zV2alpha1CronJobSpec.suspend  s     DMr#   c                 j   i }t        | j                        D ]  \  }}t        | |      }t        |t              rt	        t        d |            ||<   <t        |d      r|j                         ||<   \t        |t              r(t        t        d |j                                     ||<   |||<    |S )z8
        Returns the model properties as a dict
        c                 >    t        | d      r| j                         S | S )Nto_dicthasattrr;   )xs    r!   <lambda>z-V2alpha1CronJobSpec.to_dict.<locals>.<lambda>  s    I)>!))+EAEr#   r;   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r;   r   r<   )items    r!   r?   z-V2alpha1CronJobSpec.to_dict.<locals>.<lambda>  s6    47I. #1gtAw'89 9489r#   )
r   swagger_typesgetattr
isinstancelistmapr=   r;   dictitems)r    resultattr_values        r!   r;   zV2alpha1CronJobSpec.to_dict  s     FT//0adD!e	E4	 EuMOt5)$}}teT"9:?++-IJt
 t 1 Mr#   c                 4    t        | j                               S )z@
        Returns the string representation of the model
        )r   r;   r&   s    r!   to_strzV2alpha1CronJobSpec.to_str&  s     4<<>""r#   c                 "    | j                         S )z*
        For `print` and `pprint`
        )rO   r&   s    r!   __repr__zV2alpha1CronJobSpec.__repr__,  s     ;;=r#   c                 V    t        |t              sy| j                  |j                  k(  S )z8
        Returns true if both objects are equal
        F)rE   r   __dict__r    others     r!   __eq__zV2alpha1CronJobSpec.__eq__2  s%     e01==ENN**r#   c                     | |k(   S )z<
        Returns true if both objects are not equal
         rT   s     r!   __ne__zV2alpha1CronJobSpec.__ne__;  s     u}r#   )NNNNNNN)__name__
__module____qualname____doc__rC   attribute_mapr"   propertyr   setterr   r   r   r   r   r   r;   rO   rQ   rV   rY   rX   r#   r!   r   r      s    "#(/#(',- 0#;##<'C- #')- )--1 D $ $ 2 2  	+ 	+ ##@ $@   & &   ??  
+ 
+ ##@ $@ 	/ 	/ !''H (H 	 	 >>
 
.#+r#   r   )r]   pprintr   sixr   reobjectr   rX   r#   r!   <module>re      s#   	   	m& mr#   