Beispiel #1
0
 def last_transition_time(self, v):
     if not isinstance(v, str) or not is_valid_date_time(v):
         raise SyntaxError('NodeCondition: last_transition_time: [ {0} ] is invalid.'.format(v))
     self._last_transition_time = v
 def last_scale_time(self, t=None):
     if not is_valid_date_time(t):
         raise SyntaxError('HorizontalPodAutoscaler: last_scale_time: [ {} ] is invalid.'.format(t))
     self._last_scale_time = t
Beispiel #3
0
 def last_transition_time(self, v):
     if not isinstance(v, str) or not is_valid_date_time(v):
         raise SyntaxError(
             'NodeCondition: last_transition_time: [ {0} ] is invalid.'.
             format(v))
     self._last_transition_time = v
Beispiel #4
0
 def last_timestamp(self, t=None):
     if not is_valid_date_time(t):
         raise SyntaxError("Event: last_timestamp: [ {} ] is invalid.".format(t))
     self._last_timestamp = t
Beispiel #5
0
 def last_timestamp(self, t=None):
     if not is_valid_date_time(t):
         raise SyntaxError(
             "Event: last_timestamp: [ {} ] is invalid.".format(t))
     self._last_timestamp = t