示例#1
0
    def __init__(self, id, dataset: str, recursive: bool, exclude: [str],
                 lifetime: timedelta, naming_schema: str,
                 schedule: CronSchedule, allow_empty: bool):
        self.id = id
        self.dataset = dataset
        self.recursive = recursive
        self.exclude = exclude
        self.lifetime = lifetime
        self.naming_schema = naming_schema
        self.schedule = schedule
        self.allow_empty = allow_empty

        validate_snapshot_naming_schema(self.naming_schema)
示例#2
0
 def __call__(self, value):
     validate_snapshot_naming_schema(value)