
    <ga4                     B    d Z ddlZddlZddlZddlmZ  G d de      Zy)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.32
    Generated by: https://openapi-generator.tech
    N)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! Zd" Zd# Zd$ Zd% Zy)'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
                 2   |	
t               }	|	| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        d| _
        ||| _        ||| _        || _        || _        ||| _        ||| _        ||| _        ||| _        yy)z*V1CronJobSpec - a model defined in OpenAPIN)r   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
             ^/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_cron_job_spec.py__init__zV1CronJobSpec.__init__9   s    #+'4$(@%#' *.'!*.'.2+!)&8D#$0-FD*( $0-FD*(41ND."DL &DN !    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_policyX   s     '''r&   c                     || _         y)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: str
        Nr(   )r#   r
   s     r$   r
   z V1CronJobSpec.concurrency_policyc   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_limito        ...r&   c                     || _         y)a;  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: int
        Nr,   )r#   r   s     r$   r   z'V1CronJobSpec.failed_jobs_history_limitz        +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                 X    | j                   j                  r|t        d      || _        y)zSets the job_template of this V1CronJobSpec.


        :param job_template: The job_template of this V1CronJobSpec.  # noqa: E501
        :type: V1JobTemplateSpec
        Nz4Invalid value for `job_template`, must not be `None`)r   client_side_validation
ValueErrorr   )r#   r   s     r$   r   zV1CronJobSpec.job_template   s,     ((??LDXS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                 X    | j                   j                  r|t        d      || _        y)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: str
        Nz0Invalid value for `schedule`, must not be `None`)r   r2   r3   r   )r#   r   s     r$   r   zV1CronJobSpec.schedule   s+     ((??HDTO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   r-   r&   c                     || _         y)ap  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: int
        Nr7   )r#   r   s     r$   r   z'V1CronJobSpec.starting_deadline_seconds   r/   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22r&   c                     || _         y)aK  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: 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                     || _         y)a+  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: 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                     || _         y)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: str
        Nr@   )r#   r   s     r$   r   zV1CronJobSpec.time_zone  s     $r&   c                 ~   i }t        j                  | j                        D ]  \  }}t        | |      }t	        |t
              rt        t        d |            ||<   <t        |d      r|j                         ||<   \t	        |t              r(t        t        d |j                                     ||<   |||<    |S )z&Returns the model properties as a dictc                 >    t        | d      r| j                         S | S )Nto_dicthasattrrD   )xs    r$   <lambda>z'V1CronJobSpec.to_dict.<locals>.<lambda>  s    WQ	-BaiikIIr&   rD   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   rD   r   rE   )items    r$   rH   z'V1CronJobSpec.to_dict.<locals>.<lambda>!  s6    tAw	2 #'q'47??+<!= "=8<"=r&   )six	iteritemsopenapi_typesgetattr
isinstancelistmaprF   rD   dictitems)r#   resultattr_values        r$   rD   zV1CronJobSpec.to_dict  s    }}T%7%78GD!D$'E%&#CI%  t 	*$}}tE4(#C=KKM%  t  %t! 9$ r&   c                 H    t        j                  | j                               S )z.Returns the string representation of the model)pprintpformatrD   r)   s    r$   to_strzV1CronJobSpec.to_str*  s    ~~dlln--r&   c                 "    | j                         S )zFor `print` and `pprint`)r\   r)   s    r$   __repr__zV1CronJobSpec.__repr__.  s    {{}r&   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFrP   r   rD   r#   others     r$   __eq__zV1CronJobSpec.__eq__2  s&    %/||~00r&   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTr`   ra   s     r$   __ne__zV1CronJobSpec.__ne__9  s&    %/||~00r&   )	NNNNNNNNN)__name__
__module____qualname____doc__rN   attribute_mapr%   propertyr
   setterr   r   r   r   r   r   r   rD   r\   r^   rc   re    r&   r$   r   r      s    $%*+%*).	M 2%=%%>)E	M'> ( ( 	6 	6 / / %%	D &	D " " 
* 
*   __" " / / %%	D &	D 3 3 #))	L *	L   ^^	  	    	$ 	$0.11r&   r   )ri   rZ   rerL   kubernetes.client.configurationr   objectr   rm   r&   r$   <module>rq      s&     	 
 9i1F i1r&   