models.time module

class models.time.Time(hour=None, minute=None)[source]

Bases: object

Implementation of the ‘Time’ model.

A message to encapusulate time of a day. Users of this proto will have to store the timezone information separately. For example, when this proto is part of a backup job, timezone of the backup job is applied to get the absolute time.


hour (int): The hour when backup should be performed (0 - 23). minute (int): The minute when backup should be performed (0 - 59).

classmethod from_dictionary(dictionary)[source]

Creates an instance of this model from a dictionary


dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.


object: An instance of this structure class.