mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
fix(backup): keep a plan rule's TargetLogicallyAirGappedBackupVaultArn (#7176)
CreateBackupPlan and UpdateBackupPlan accept Rules[].TargetLogicallyAirGappedBackupVaultArn (BackupRuleInput) and GetBackupPlan returns it on BackupRule, but the rule model had no such field, so Jackson's ignoreUnknown dropped it on read. Add it, omitted from the response when the request did not set it.
This commit is contained in:
1 parent
8edbc10b71
commit
55545b5de6
2 files changed
+40
No files matched your search
@@ -1,6 +1,7 @@
|
||||
package io.github.hectorvent.floci.services.backup.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.quarkus.runtime.annotations.RegisterForReflection;
|
||||
|
||||
@@ -19,6 +20,10 @@ public class BackupRule {
|
||||
@JsonProperty("TargetBackupVaultName")
|
||||
private String targetBackupVaultName;
|
||||
|
||||
@JsonProperty("TargetLogicallyAirGappedBackupVaultArn")
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
private String targetLogicallyAirGappedBackupVaultArn;
|
||||
|
||||
@JsonProperty("ScheduleExpression")
|
||||
private String scheduleExpression;
|
||||
|
||||
@@ -54,6 +59,9 @@ public class BackupRule {
|
||||
public String getTargetBackupVaultName() { return targetBackupVaultName; }
|
||||
public void setTargetBackupVaultName(String targetBackupVaultName) { this.targetBackupVaultName = targetBackupVaultName; }
|
||||
|
||||
public String getTargetLogicallyAirGappedBackupVaultArn() { return targetLogicallyAirGappedBackupVaultArn; }
|
||||
public void setTargetLogicallyAirGappedBackupVaultArn(String targetLogicallyAirGappedBackupVaultArn) { this.targetLogicallyAirGappedBackupVaultArn = targetLogicallyAirGappedBackupVaultArn; }
|
||||
|
||||
public String getScheduleExpression() { return scheduleExpression; }
|
||||
public void setScheduleExpression(String scheduleExpression) { this.scheduleExpression = scheduleExpression; }
|
||||
|
||||
|
||||
Reference in new issue
Block a user