models.backup_policy_proto_daily_schedule module

class models.backup_policy_proto_daily_schedule.BackupPolicyProtoDailySchedule(days=None, time=None)[source]

Bases: object

Implementation of the ‘BackupPolicyProto_DailySchedule’ model.

The daily schedule encompasses weekly schedules as well. This has been done so there is only one way of specifying a schedule (backing up daily is the same as backing up weekly, but on all days of the week).

Attributes:
days (list of int): The days of the week backup must be performed. If

no days are specified, then the backup will be performed on all days.

time (Time): 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.

classmethod from_dictionary(dictionary)[source]

Creates an instance of this model from a dictionary

Args:

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.

Returns:

object: An instance of this structure class.