Search in sources :

Example 1 with DbOpsMinorVersionUpgradeStatus

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;
}
Also used : StackGresDbOpsMinorVersionUpgradeStatus(io.stackgres.common.crd.sgdbops.StackGresDbOpsMinorVersionUpgradeStatus) DbOpsMinorVersionUpgradeStatus(io.stackgres.apiweb.dto.dbops.DbOpsMinorVersionUpgradeStatus)

Aggregations

DbOpsMinorVersionUpgradeStatus (io.stackgres.apiweb.dto.dbops.DbOpsMinorVersionUpgradeStatus)1 StackGresDbOpsMinorVersionUpgradeStatus (io.stackgres.common.crd.sgdbops.StackGresDbOpsMinorVersionUpgradeStatus)1