models.scheduling_policy_proto_daily_schedule module

class models.scheduling_policy_proto_daily_schedule.SchedulingPolicyProtoDailySchedule(days=None, frequency=None)[source]

Bases: object

Implementation of the ‘SchedulingPolicyProto_DailySchedule’ model.

Sample protos: Every n days (n >= 1) Ex: For every 2 days, { frequency : 2 } Weekly schedule (Few selected weekdays) Ex: For every Monday, Tuesday { days : {kMonday, kTuesday} } NOTE: Only one of the ‘days’ and ‘frequency’ should be populated.

Attributes:
days (list of int): The list of weekdays for scheduling a backup. This

is populated only for selected weekday schedules.

frequency (long|int): This is set only for every-n-day schedules.

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.