1# coding: utf-8 2""" 3 Kubernetes 4 5 No description provided (generated by Swagger Codegen 6 https://github.com/swagger-api/swagger-codegen) 7 8 OpenAPI spec version: v1.14.4 9 10 Generated by: https://github.com/swagger-api/swagger-codegen.git 11""" 12 13from pprint import pformat 14from six import iteritems 15import re 16 17 18class V2alpha1CronJobStatus(object): 19 """ 20 NOTE: This class is auto generated by the swagger code generator program. 21 Do not edit the class manually. 22 """ 23 """ 24 Attributes: 25 swagger_types (dict): The key is attribute name and the value is attribute 26 type. 27 attribute_map (dict): The key is attribute name and the value is json key 28 in definition. 29 """ 30 swagger_types = { 31 'active': 'list[V1ObjectReference]', 32 'last_schedule_time': 'datetime' 33 } 34 35 attribute_map = {'active': 'active', 'last_schedule_time': 'lastScheduleTime'} 36 37 def __init__(self, active=None, last_schedule_time=None): 38 """ 39 V2alpha1CronJobStatus - a model defined in Swagger 40 """ 41 42 self._active = None 43 self._last_schedule_time = None 44 self.discriminator = None 45 46 if active is not None: 47 self.active = active 48 if last_schedule_time is not None: 49 self.last_schedule_time = last_schedule_time 50 51 @property 52 def active(self): 53 """ 54 Gets the active of this V2alpha1CronJobStatus. 55 A list of pointers to currently running jobs. 56 57 :return: The active of this V2alpha1CronJobStatus. 58 :rtype: list[V1ObjectReference] 59 """ 60 return self._active 61 62 @active.setter 63 def active(self, active): 64 """ 65 Sets the active of this V2alpha1CronJobStatus. 66 A list of pointers to currently running jobs. 67 68 :param active: The active of this V2alpha1CronJobStatus. 69 :type: list[V1ObjectReference] 70 """ 71 72 self._active = active 73 74 @property 75 def last_schedule_time(self): 76 """ 77 Gets the last_schedule_time of this V2alpha1CronJobStatus. 78 Information when was the last time the job was successfully scheduled. 79 80 :return: The last_schedule_time of this V2alpha1CronJobStatus. 81 :rtype: datetime 82 """ 83 return self._last_schedule_time 84 85 @last_schedule_time.setter 86 def last_schedule_time(self, last_schedule_time): 87 """ 88 Sets the last_schedule_time of this V2alpha1CronJobStatus. 89 Information when was the last time the job was successfully scheduled. 90 91 :param last_schedule_time: The last_schedule_time of this 92 V2alpha1CronJobStatus. 93 :type: datetime 94 """ 95 96 self._last_schedule_time = last_schedule_time 97 98 def to_dict(self): 99 """ 100 Returns the model properties as a dict 101 """ 102 result = {} 103 104 for attr, _ in iteritems(self.swagger_types): 105 value = getattr(self, attr) 106 if isinstance(value, list): 107 result[attr] = list( 108 map(lambda x: x.to_dict() if hasattr(x, 'to_dict') else x, value)) 109 elif hasattr(value, 'to_dict'): 110 result[attr] = value.to_dict() 111 elif isinstance(value, dict): 112 result[attr] = dict( 113 map( 114 lambda item: (item[0], item[1].to_dict()) 115 if hasattr(item[1], 'to_dict') else item, value.items())) 116 else: 117 result[attr] = value 118 119 return result 120 121 def to_str(self): 122 """ 123 Returns the string representation of the model 124 """ 125 return pformat(self.to_dict()) 126 127 def __repr__(self): 128 """ 129 For `print` and `pprint` 130 """ 131 return self.to_str() 132 133 def __eq__(self, other): 134 """ 135 Returns true if both objects are equal 136 """ 137 if not isinstance(other, V2alpha1CronJobStatus): 138 return False 139 140 return self.__dict__ == other.__dict__ 141 142 def __ne__(self, other): 143 """ 144 Returns true if both objects are not equal 145 """ 146 return not self == other 147