models_v2.month_schedule module¶
-
class
models_v2.month_schedule.
MonthSchedule
(day_of_week=None, week_of_month=None)[source]¶ Bases:
object
Implementation of the ‘Month Schedule’ model.
Specifies settings that define a schedule for a Protection Group runs to on specific week and specific days of that week.
- Attributes:
- day_of_week (list of DayOfWeekEnum): Specifies a list of days of the
week when to start Protection Group Runs. <br> Example: To run a Protection Group on every Monday and Tuesday, set the schedule with following values: <br> unit: ‘Weeks’ <br> dayOfWeek: [‘Monday’,’Tuesday’]
- week_of_month (WeekOfMonthEnum): Specifies the week of the month (such
as ‘Third’) in a Monthly Schedule specified by unit field as ‘Months’. <br>This field is used in combination with ‘dayOfWeek’ to define the day in the month to start the Protection Group Run. <br> Example: if ‘weekOfMonth’ is set to ‘Third’ and day is set to ‘Monday’, a backup is performed on the third Monday of every month.
-
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.