3 fY%@s8dZddlmZddlmZddlZGdddeZdS)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@seZdZdZd$ddZeddZejddZedd Zejd d Zed d Z e jd d Z eddZ e jddZ eddZ e jddZ eddZ e jddZ eddZ e jddZ ddZddZddZd d!Zd"d#ZdS)%V2alpha1CronJobSpeczw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCsZdddddddd|_dddd d d d d|_||_||_||_||_||_||_||_d S)aI V2alpha1CronJobSpec - 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. strintV2alpha1JobTemplateSpecbool)concurrency_policyfailed_jobs_history_limit job_templateschedulestarting_deadline_secondssuccessful_jobs_history_limitsuspendZconcurrencyPolicyZfailedJobsHistoryLimitZ jobTemplater ZstartingDeadlineSecondsZsuccessfulJobsHistoryLimitrN) swagger_types attribute_map_concurrency_policy_failed_jobs_history_limit _job_template _schedule_starting_deadline_seconds_successful_jobs_history_limit_suspend)selfr r r r r rrr`/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v2alpha1_cron_job_spec.py__init__s*   zV2alpha1CronJobSpec.__init__cCs|jS)z Gets the concurrency_policy of this V2alpha1CronJobSpec. Specifies how to treat concurrent executions of a Job. Defaults to Allow. :return: The concurrency_policy of this V2alpha1CronJobSpec. :rtype: str )r)rrrrr =s z&V2alpha1CronJobSpec.concurrency_policycCs ||_dS)a Sets the concurrency_policy of this V2alpha1CronJobSpec. Specifies how to treat concurrent executions of a Job. Defaults to Allow. :param concurrency_policy: The concurrency_policy of this V2alpha1CronJobSpec. :type: str N)r)rr rrrr Hs cCs|jS)a2 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)rrrrr Ts z-V2alpha1CronJobSpec.failed_jobs_history_limitcCs ||_dS)aJ 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 N)r)rr rrrr _s cCs|jS)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)rrrrr ks z V2alpha1CronJobSpec.job_templatecCs|dkrtd||_dS)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)rr rrrr vs cCs|jS)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)rrrrr s zV2alpha1CronJobSpec.schedulecCs|dkrtd||_dS)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`)rr)rr rrrr s cCs|jS)aP 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)rrrrr s z-V2alpha1CronJobSpec.starting_deadline_secondscCs ||_dS)ah 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 N)r)rr rrrr s cCs|jS)a> 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)rrrrrs z1V2alpha1CronJobSpec.successful_jobs_history_limitcCs ||_dS)aZ 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 N)r)rrrrrrs cCs|jS)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)rrrrrs zV2alpha1CronJobSpec.suspendcCs ||_dS)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 N)r)rrrrrrs cCsi}xt|jD]z\}}t||}t|trDttdd|||<qt|dr\|j||<qt|trttdd|j ||<q|||<qW|S)z8 Returns the model properties as a dict cSst|dr|jS|S)Nto_dict)hasattrr)xrrrsz-V2alpha1CronJobSpec.to_dict..rcSs&t|ddr"|d|djfS|S)Nrr)rr)itemrrrr!s) rrgetattr isinstancelistmaprrdictitems)rresultattr_valuerrrrs     zV2alpha1CronJobSpec.to_dictcCs t|jS)z@ Returns the string representation of the model )rr)rrrrto_strszV2alpha1CronJobSpec.to_strcCs|jS)z* For `print` and `pprint` )r.)rrrr__repr__szV2alpha1CronJobSpec.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)r%r__dict__)rotherrrr__eq__s zV2alpha1CronJobSpec.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr1rrr__ne__szV2alpha1CronJobSpec.__ne__)NNNNNNN)__name__ __module__ __qualname____doc__rpropertyr setterr r r r rrrr.r/r2r3rrrrrs* %         r)r7pprintrsixrreobjectrrrrr s