Tabnine Logo
Region.getUrl
Code IndexAdd Tabnine to your IDE (free)

How to use
getUrl
method
in
io.cattle.platform.core.model.Region

Best Java code snippets using io.cattle.platform.core.model.Region.getUrl (Showing top 4 results out of 315)

origin: rancher/cattle

private static String getUrl(Region region) {
  return region.getUrl();
}
origin: rancher/cattle

private boolean regionUpdated(Object oldObj, Region region) {
  Map<String, Object> old = CollectionUtils.toMap(oldObj);
  if(old.containsKey("url")) {
    String oldURL = (String) old.get("url");
    if(isChanged(oldURL, region.getUrl())) {
      return true;
    }
  }
  if(old.containsKey("publicValue")) {
    String oldPublicValue = (String) old.get("publicValue");
    if(isChanged(oldPublicValue, region.getPublicValue())) {
      return true;
    }
  }
  if(old.containsKey("secretValue")) {
    String oldSecretValue = (String) old.get("secretValue");
    if(isChanged(oldSecretValue, region.getSecretValue())) {
      return true;
    }
  }
  return false; 
}

origin: rancher/cattle

  @Override
  public void fetchCredentials(MetaHelperInfo helperInfo, Agent agent, OutputStream os) {
      Map<Long, Region> regionsIds = new HashMap<>();
      Map<String, Region> regionNameToRegion = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
    Map<String, Long> externalLinks = new HashMap<>();
    Map<String, ExternalProject> projects = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
      
    if(regionService.isRegionsEmpty(agent, helperInfo.getAccount(), externalLinks, projects, regionsIds, regionNameToRegion)) {
        return;
      }
      
    regionService.reconcileAgentExternalCredentials(agent, helperInfo.getAccount(), externalLinks, projects, regionsIds, regionNameToRegion);
    List<ExternalCredential> creds = DataAccessor.fieldObjectList(objectMgr.reload(agent), AccountConstants.FIELD_EXTERNAL_CREDENTIALS,
        ExternalCredential.class, jsonMapper);
    for (ExternalCredential cred : creds) {
      Region region = regionNameToRegion.get(cred.getRegionName());
      CredentialMetaData meta = new CredentialMetaData(region.getUrl(), cred.getPublicValue(), cred.getSecretValue());
      writeToJson(os, meta);
    }
  }
}
origin: rancher/cattle

/**
 * {@inheritDoc}
 */
@Override
public void from(io.cattle.platform.core.model.Region 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());
  setUrl(from.getUrl());
  setPublicValue(from.getPublicValue());
  setSecretValue(from.getSecretValue());
  setLocal(from.getLocal());
}
io.cattle.platform.core.modelRegiongetUrl

Javadoc

Getter for cattle.region.url.

Popular methods of Region

  • getName
    Getter for cattle.region.name.
  • getId
    Getter for cattle.region.id.
  • getLocal
    Getter for cattle.region.local.
  • getPublicValue
    Getter for cattle.region.public_value.
  • getSecretValue
    Getter for cattle.region.secret_value.
  • getState
    Getter for cattle.region.state.
  • from
    Load data from another generated Record/POJO implementing the common interface Region
  • getAccountId
    Getter for cattle.region.account_id.
  • getCreated
    Getter for cattle.region.created.
  • getData
    Getter for cattle.region.data.
  • getDescription
    Getter for cattle.region.description.
  • getKind
    Getter for cattle.region.kind.
  • getDescription,
  • getKind,
  • getRemoveTime,
  • getRemoved,
  • getUuid

Popular in Java

  • Running tasks concurrently on multiple threads
  • setRequestProperty (URLConnection)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • addToBackStack (FragmentTransaction)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now