
    [jP6                     |    d Z 	 ddlmZ n# e$ r	 ddlmZ Y nw xY wddlZddlZddlZddlm	Z	  G d de
          ZdS )z
    Kubernetes

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: release-1.36
    Generated by: https://openapi-generator.tech
    )getfullargspec)
getargspecN)Configurationc            	          e Zd ZdZ	 dddddddddZd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ed             Zej	        d              Zd(d"Zd# Zd$ Zd% Zd& ZdS ))V1CronJobSpeczNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    strintV1JobTemplateSpecbool)concurrency_policyfailed_jobs_history_limitjob_templateschedulestarting_deadline_secondssuccessful_jobs_history_limitsuspend	time_zoneconcurrencyPolicyfailedJobsHistoryLimitjobTemplater   startingDeadlineSecondssuccessfulJobsHistoryLimitr   timeZoneNc
                 H   |	t          j                    }	|	| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        d| _
        d| _        ||| _        ||| _        || _        || _        ||| _        ||| _        ||| _        |	|| _        dS dS )z*V1CronJobSpec - a model defined in OpenAPIN)r   get_default_copylocal_vars_configuration_concurrency_policy_failed_jobs_history_limit_job_template	_schedule_starting_deadline_seconds_successful_jobs_history_limit_suspend
_time_zonediscriminatorr   r   r   r   r   r   r   r   )
selfr   r   r   r   r   r   r   r   r   s
             f/var/www/FlaskApp/flask-venv/lib/python3.11/site-packages/kubernetes/client/models/v1_cron_job_spec.py__init__zV1CronJobSpec.__init__<   s    #+'4'E'G'G$(@%#' *.'!*.'.2+!)&8D#$0-FD*( $0-FD*(41ND."DL &DNNN !     c                     | j         S )a  Gets the concurrency_policy of this V1CronJobSpec.  # noqa: E501

        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  # noqa: E501

        :return: The concurrency_policy of this V1CronJobSpec.  # noqa: E501
        :rtype: str
        r   r&   s    r'   r   z V1CronJobSpec.concurrency_policy[   s     ''r)   c                     || _         dS )a  Sets the concurrency_policy of this V1CronJobSpec.

        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  # noqa: E501

        :param concurrency_policy: The concurrency_policy of this V1CronJobSpec.  # noqa: E501
        :type concurrency_policy: str
        Nr+   )r&   r   s     r'   r   z V1CronJobSpec.concurrency_policyf   s     $6   r)   c                     | j         S )a1  Gets the failed_jobs_history_limit of this V1CronJobSpec.  # noqa: E501

        The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1.  # noqa: E501

        :return: The failed_jobs_history_limit of this V1CronJobSpec.  # noqa: E501
        :rtype: int
        r   r,   s    r'   r   z'V1CronJobSpec.failed_jobs_history_limitr        ..r)   c                     || _         dS )aU  Sets the failed_jobs_history_limit of this V1CronJobSpec.

        The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1.  # noqa: E501

        :param failed_jobs_history_limit: The failed_jobs_history_limit of this V1CronJobSpec.  # noqa: E501
        :type failed_jobs_history_limit: int
        Nr/   )r&   r   s     r'   r   z'V1CronJobSpec.failed_jobs_history_limit}        +D'''r)   c                     | j         S )zGets the job_template of this V1CronJobSpec.  # noqa: E501


        :return: The job_template of this V1CronJobSpec.  # noqa: E501
        :rtype: V1JobTemplateSpec
        )r   r,   s    r'   r   zV1CronJobSpec.job_template   s     !!r)   c                 N    | j         j        r|t          d          || _        dS )zSets the job_template of this V1CronJobSpec.


        :param job_template: The job_template of this V1CronJobSpec.  # noqa: E501
        :type job_template: V1JobTemplateSpec
        Nz4Invalid value for `job_template`, must not be `None`)r   client_side_validation
ValueErrorr   )r&   r   s     r'   r   zV1CronJobSpec.job_template   s5     (? 	ULDXSTTT)r)   c                     | j         S )zGets the schedule of this V1CronJobSpec.  # noqa: E501

        The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.  # noqa: E501

        :return: The schedule of this V1CronJobSpec.  # noqa: E501
        :rtype: str
        )r    r,   s    r'   r   zV1CronJobSpec.schedule   s     ~r)   c                 N    | j         j        r|t          d          || _        dS )zSets the schedule of this V1CronJobSpec.

        The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.  # noqa: E501

        :param schedule: The schedule of this V1CronJobSpec.  # noqa: E501
        :type schedule: str
        Nz0Invalid value for `schedule`, must not be `None`)r   r5   r6   r    )r&   r   s     r'   r   zV1CronJobSpec.schedule   s2     (? 	QHDTOPPP!r)   c                     | j         S )af  Gets the starting_deadline_seconds of this V1CronJobSpec.  # noqa: E501

        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.  # noqa: E501

        :return: The starting_deadline_seconds of this V1CronJobSpec.  # noqa: E501
        :rtype: int
        r!   r,   s    r'   r   z'V1CronJobSpec.starting_deadline_seconds   r0   r)   c                     || _         dS )a  Sets the starting_deadline_seconds of this V1CronJobSpec.

        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.  # noqa: E501

        :param starting_deadline_seconds: The starting_deadline_seconds of this V1CronJobSpec.  # noqa: E501
        :type starting_deadline_seconds: int
        Nr:   )r&   r   s     r'   r   z'V1CronJobSpec.starting_deadline_seconds   r2   r)   c                     | j         S )a=  Gets the successful_jobs_history_limit of this V1CronJobSpec.  # noqa: E501

        The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3.  # noqa: E501

        :return: The successful_jobs_history_limit of this V1CronJobSpec.  # noqa: E501
        :rtype: int
        r"   r,   s    r'   r   z+V1CronJobSpec.successful_jobs_history_limit   s     22r)   c                     || _         dS )ai  Sets the successful_jobs_history_limit of this V1CronJobSpec.

        The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3.  # noqa: E501

        :param successful_jobs_history_limit: The successful_jobs_history_limit of this V1CronJobSpec.  # noqa: E501
        :type successful_jobs_history_limit: int
        Nr=   )r&   r   s     r'   r   z+V1CronJobSpec.successful_jobs_history_limit   s     /L+++r)   c                     | j         S )a3  Gets the suspend of this V1CronJobSpec.  # noqa: E501

        This flag tells the controller to suspend subsequent executions, it does not apply to already started executions.  Defaults to false.  # noqa: E501

        :return: The suspend of this V1CronJobSpec.  # noqa: E501
        :rtype: bool
        r#   r,   s    r'   r   zV1CronJobSpec.suspend   s     }r)   c                     || _         dS )a3  Sets the suspend of this V1CronJobSpec.

        This flag tells the controller to suspend subsequent executions, it does not apply to already started executions.  Defaults to false.  # noqa: E501

        :param suspend: The suspend of this V1CronJobSpec.  # noqa: E501
        :type suspend: bool
        Nr@   )r&   r   s     r'   r   zV1CronJobSpec.suspend   s      r)   c                     | j         S )a  Gets the time_zone of this V1CronJobSpec.  # noqa: E501

        The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones  # noqa: E501

        :return: The time_zone of this V1CronJobSpec.  # noqa: E501
        :rtype: str
        r$   r,   s    r'   r   zV1CronJobSpec.time_zone   s     r)   c                     || _         dS )a  Sets the time_zone of this V1CronJobSpec.

        The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones  # noqa: E501

        :param time_zone: The time_zone of this V1CronJobSpec.  # noqa: E501
        :type time_zone: str
        NrC   )r&   r   s     r'   r   zV1CronJobSpec.time_zone	  s     $r)   Fc                    i }fdt          j        | j                  D ]\  }}t          | |          }r| j                            ||          n|}t          |t                    r$t          t          fd|                    ||<   mt          |t                    r6t          t          fd|
                                                    ||<    |          ||<   |S )z&Returns the model properties as a dictc                     t          | d          rUt          | j                  j        }t	          |          dk    r|                                 S |                               S | S )Nto_dict   )hasattrr   rG   argslen)xrJ   	serializes     r'   convertz&V1CronJobSpec.to_dict.<locals>.convert  s[    q)$$ %ai005t99>>99;;&99Y///r)   c                      |           S )N )rL   rN   s    r'   <lambda>z'V1CronJobSpec.to_dict.<locals>.<lambda>(  s    ggajj r)   c                 6    | d          | d                   fS )Nr   rH   rP   )itemrN   s    r'   rQ   z'V1CronJobSpec.to_dict.<locals>.<lambda>-  s    $q'7747+;+;!< r)   )six	iteritemsopenapi_typesgetattrattribute_mapget
isinstancelistmapdictitems)r&   rM   resultattr_valuerN   s    `    @r'   rG   zV1CronJobSpec.to_dict  s   	 	 	 	 	 }T%788 	. 	.GD!D$''E9BL4%))$555D%&& .#C((((% %    t E4(( .#C<<<<KKMM% %    t
  'wu~~tr)   c                 N    t          j        |                                           S )z.Returns the string representation of the model)pprintpformatrG   r,   s    r'   to_strzV1CronJobSpec.to_str5  s    ~dllnn---r)   c                 *    |                                  S )zFor `print` and `pprint`)rf   r,   s    r'   __repr__zV1CronJobSpec.__repr__9  s    {{}}r)   c                     t          |t                    sdS |                                 |                                k    S )z&Returns true if both objects are equalFrZ   r   rG   r&   others     r'   __eq__zV1CronJobSpec.__eq__=  s4    %// 	5||~~00r)   c                     t          |t                    sdS |                                 |                                k    S )z*Returns true if both objects are not equalTrj   rk   s     r'   __ne__zV1CronJobSpec.__ne__D  s4    %// 	4||~~00r)   )	NNNNNNNNN)F)__name__
__module____qualname____doc__rV   rX   r(   propertyr   setterr   r   r   r   r   r   r   rG   rf   rh   rm   ro   rP   r)   r'   r   r      s         $%*+%*).	 	M 2%=%%>)E	 	M' ' ' '> ( ( X( 	6 	6 	6 / / X/ %	D 	D &%	D " " X" 
* 
* 
*   X _" " _" / / X/ %	D 	D &%	D 3 3 X3 #)	L 	L *)	L   X ^	  	  ^	    X 	$ 	$ 	$   @. . .  1 1 11 1 1 1 1r)   r   )rs   inspectr   ImportErrorr   rd   rerT   kubernetes.client.configurationr   objectr   rP   r)   r'   <module>r{      s    5&&&&&&& 5 5 5444444445  				 



 9 9 9 9 9 9q1 q1 q1 q1 q1F q1 q1 q1 q1 q1s    