From 477859662a8377c83f848828538c53dce6b712aa Mon Sep 17 00:00:00 2001 From: Hannes Laimer Date: Fri, 18 Sep 2020 11:00:49 +0200 Subject: [PATCH] api2: add optional verify-schdule field to create/update datastore endpoint Signed-off-by: Hannes Laimer --- src/api2/config/datastore.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/api2/config/datastore.rs b/src/api2/config/datastore.rs index 0f4021d6..649ca0ca 100644 --- a/src/api2/config/datastore.rs +++ b/src/api2/config/datastore.rs @@ -75,6 +75,10 @@ pub fn list_datastores( optional: true, schema: PRUNE_SCHEDULE_SCHEMA, }, + "verify-schedule": { + optional: true, + schema: VERIFY_SCHEDULE_SCHEMA, + }, "keep-last": { optional: true, schema: PRUNE_SCHEMA_KEEP_LAST, @@ -204,6 +208,10 @@ pub enum DeletableProperty { optional: true, schema: PRUNE_SCHEDULE_SCHEMA, }, + "verify-schedule": { + optional: true, + schema: VERIFY_SCHEDULE_SCHEMA, + }, "keep-last": { optional: true, schema: PRUNE_SCHEMA_KEEP_LAST, @@ -252,6 +260,7 @@ pub fn update_datastore( comment: Option, gc_schedule: Option, prune_schedule: Option, + verify_schedule: Option, keep_last: Option, keep_hourly: Option, keep_daily: Option, @@ -301,6 +310,7 @@ pub fn update_datastore( if gc_schedule.is_some() { data.gc_schedule = gc_schedule; } if prune_schedule.is_some() { data.prune_schedule = prune_schedule; } + if verify_schedule.is_some() { data.verify_schedule = verify_schedule; } if keep_last.is_some() { data.keep_last = keep_last; } if keep_hourly.is_some() { data.keep_hourly = keep_hourly; }