use of io.stackgres.apiweb.dto.dbops.DbOpsSpec in project stackgres by ongres.
the class DbOpsTransformer method getResourceSpec.
private DbOpsSpec getResourceSpec(StackGresDbOpsSpec source) {
DbOpsSpec transformation = new DbOpsSpec();
transformation.setSgCluster(source.getSgCluster());
transformation.setOp(source.getOp());
transformation.setRunAt(source.getRunAt());
transformation.setTimeout(source.getTimeout());
transformation.setMaxRetries(source.getMaxRetries());
transformation.setBenchmark(getResourceBenchmark(source.getBenchmark()));
transformation.setVacuum(getResourceVacuum(source.getVacuum()));
transformation.setRepack(getResourceRepack(source.getRepack()));
transformation.setMajorVersionUpgrade(getResourceMajorVersionUpgrade(source.getMajorVersionUpgrade()));
transformation.setRestart(getResourceRestart(source.getRestart()));
transformation.setMinorVersionUpgrade(getResourceMinorVersionUpgrade(source.getMinorVersionUpgrade()));
transformation.setSecurityUpgrade(getResourceSecurityUpgrade(source.getSecurityUpgrade()));
return transformation;
}
Aggregations