externalLink = RegionUtil.createExternalAccountLink(targetRegion, data, jsonMapper); } catch (Exception ex) { throw new RuntimeException(String.format("Failed to create external account link for accountLink [%d]", link.getId()), ex);
log.warn(String.format("Failed to monitor account link for %s - %s", link.getId(), ex)); existingLinks.add(String.format("%s:%s", link.getLinkedRegion(), link.getLinkedAccount())); continue;
return true; } catch (Exception ex) { log.error(String.format("Failed to delete external account link for accountLink [%d]", link.getId()), ex); return false;
/** * {@inheritDoc} */ @Override public void from(io.cattle.platform.core.model.AccountLink from) { setId(from.getId()); setName(from.getName()); setAccountId(from.getAccountId()); setKind(from.getKind()); setUuid(from.getUuid()); setDescription(from.getDescription()); setState(from.getState()); setCreated(from.getCreated()); setRemoved(from.getRemoved()); setRemoveTime(from.getRemoveTime()); setData(from.getData()); setLinkedAccountId(from.getLinkedAccountId()); setLinkedAccount(from.getLinkedAccount()); setLinkedRegionId(from.getLinkedRegionId()); setLinkedRegion(from.getLinkedRegion()); setExternal(from.getExternal()); }