# -*- coding: utf-8 -*-
# Copyright 2021 Cohesity Inc.
[docs]class DailySchedule(object):
"""Implementation of the 'DailySchedule' model.
Specifies a daily or weekly backup schedule.
Attributes:
days (list of DayEnum): Array of Days. Specifies a list of days of
the week when to start Job Runs. If no days are specified, the
Jobs Runs will run every day of the week. Specifies a day in a
week such as 'kSunday', 'kMonday', etc.
"""
# Create a mapping from Model property names to API property names
_names = {
"days":'days'
}
def __init__(self,
days=None):
"""Constructor for the DailySchedule class"""
# Initialize members of the class
self.days = days
[docs] @classmethod
def from_dictionary(cls,
dictionary):
"""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.
"""
if dictionary is None:
return None
# Extract variables from the dictionary
days = dictionary.get('days')
# Return an object of this model
return cls(days)