@Override public void validate(ConfigProblemSetBuilder psBuilder, OracleAccount account) { notNullOrEmpty(account.getCompartmentId(), "compartment id", psBuilder); notNullOrEmpty(account.getUserId(), "user id", psBuilder); notNullOrEmpty(account.getFingerprint(), "fingerprint", psBuilder); notNullOrEmpty(account.getSshPrivateKeyFilePath(), "ssh private key file path", psBuilder); notNullOrEmpty(account.getTenancyId(), "tenancy id", psBuilder); notNullOrEmpty(account.getRegion(), "region", psBuilder); // TODO (simonlord): Once BMCS SDK is in maven we can access via spinnaker.dependency("clouddriverOracleBmcs") and test account login }
@Override public void validate(ConfigProblemSetBuilder psBuilder, OracleAccount account) { notNullOrEmpty(account.getCompartmentId(), "compartment id", psBuilder); notNullOrEmpty(account.getUserId(), "user id", psBuilder); notNullOrEmpty(account.getFingerprint(), "fingerprint", psBuilder); notNullOrEmpty(account.getSshPrivateKeyFilePath(), "ssh private key file path", psBuilder); notNullOrEmpty(account.getTenancyId(), "tenancy id", psBuilder); notNullOrEmpty(account.getRegion(), "region", psBuilder); // TODO (simonlord): Once BMCS SDK is in maven we can access via spinnaker.dependency("clouddriverOracleBmcs") and test account login }
@Override protected Account editAccount(OracleAccount account) { account.setCompartmentId(isSet(compartmentId) ? compartmentId : account.getCompartmentId()); account.setUserId(isSet(userId) ? userId : account.getUserId()); account.setFingerprint(isSet(fingerprint) ? fingerprint : account.getFingerprint()); account.setSshPrivateKeyFilePath(isSet(sshPrivateKeyFilePath) ? sshPrivateKeyFilePath : account.getSshPrivateKeyFilePath()); account.setTenancyId(isSet(tenancyId) ? tenancyId : account.getTenancyId()); account.setRegion(isSet(region) ? region : account.getRegion()); return account; } }
@Override protected Account editAccount(OracleAccount account) { account.setCompartmentId(isSet(compartmentId) ? compartmentId : account.getCompartmentId()); account.setUserId(isSet(userId) ? userId : account.getUserId()); account.setFingerprint(isSet(fingerprint) ? fingerprint : account.getFingerprint()); account.setSshPrivateKeyFilePath(isSet(sshPrivateKeyFilePath) ? sshPrivateKeyFilePath : account.getSshPrivateKeyFilePath()); account.setPrivateKeyPassphrase(isSet(privateKeyPassphrase) ? privateKeyPassphrase : account.getPrivateKeyPassphrase()); account.setTenancyId(isSet(tenancyId) ? tenancyId : account.getTenancyId()); account.setRegion(isSet(region) ? region : account.getRegion()); return account; } }