use of io.stackgres.apiweb.dto.dbops.DbOpsMinorVersionUpgradeStatus in project stackgres by ongres.
the class DbOpsTransformer method getResourceMinorVersionUpgradeStatus.
private DbOpsMinorVersionUpgradeStatus getResourceMinorVersionUpgradeStatus(StackGresDbOpsMinorVersionUpgradeStatus source) {
if (source == null) {
return null;
}
DbOpsMinorVersionUpgradeStatus transformation = new DbOpsMinorVersionUpgradeStatus();
transformation.setPrimaryInstance(source.getPrimaryInstance());
transformation.setInitialInstances(source.getInitialInstances());
transformation.setPendingToRestartInstances(source.getPendingToRestartInstances());
transformation.setRestartedInstances(source.getRestartedInstances());
transformation.setSwitchoverInitiated(source.getSwitchoverInitiated());
transformation.setSwitchoverFinalized(source.getSwitchoverFinalized());
transformation.setFailure(source.getFailure());
return transformation;
}
Aggregations