models_v2.blackout_window module

class models_v2.blackout_window.BlackoutWindow(day=None, start_time=None, end_time=None, config_id=None)[source]

Bases: object

Implementation of the ‘Blackout Window’ model.

Specifies a time range in a single day when new Protection Group Runs of Protection Groups cannot be started. For example, a Protection Group with a daily schedule could define a blackout period for Sunday.

Attributes:
day (DayEnum): Specifies a day in the week when no new Protection

Group Runs should be started such as ‘Sunday’. If not set, the time range applies to all days. Specifies a day in a week such as ‘Sunday’, ‘Monday’, etc.

start_time (TimeOfDay): Specifies the time of day. Used for scheduling

purposes.

end_time (TimeOfDay): Specifies the time of day. Used for scheduling

purposes.

config_id (string): Specifies the unique identifier for the target

getting added. This field need to be passed olny when policies are updated.

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.