Tabnine Logo
GcsPersistentStore.setBucket
Code IndexAdd Tabnine to your IDE (free)

How to use
setBucket
method
in
com.netflix.spinnaker.halyard.config.model.v1.persistentStorage.GcsPersistentStore

Best Java code snippets using com.netflix.spinnaker.halyard.config.model.v1.persistentStorage.GcsPersistentStore.setBucket (Showing top 2 results out of 315)

origin: spinnaker/halyard

 @Override
 protected GcsPersistentStore editPersistentStore(GcsPersistentStore persistentStore) {
  persistentStore.setProject(isSet(project) ? project : persistentStore.getProject());
  persistentStore.setJsonPath(isSet(jsonPath) ? jsonPath : persistentStore.getJsonPath());
  persistentStore.setBucket(isSet(bucket) ? bucket : persistentStore.getBucket());
  persistentStore.setRootFolder(isSet(rootFolder) ? rootFolder : persistentStore.getRootFolder());
  persistentStore.setBucketLocation(isSet(bucketLocation) ? bucketLocation : persistentStore.getBucketLocation());

  if (persistentStore.getBucket() == null) {
   String bucketName = "spin-" + UUID.randomUUID().toString();
   AnsiUi.raw("Generated bucket name: " + bucketName);
   persistentStore.setBucket(bucketName);
  }

  return persistentStore;
 }
}
origin: com.netflix.spinnaker.halyard/halyard-cli

 @Override
 protected GcsPersistentStore editPersistentStore(GcsPersistentStore persistentStore) {
  persistentStore.setProject(isSet(project) ? project : persistentStore.getProject());
  persistentStore.setJsonPath(isSet(jsonPath) ? jsonPath : persistentStore.getJsonPath());
  persistentStore.setBucket(isSet(bucket) ? bucket : persistentStore.getBucket());
  persistentStore.setRootFolder(isSet(rootFolder) ? rootFolder : persistentStore.getRootFolder());
  persistentStore.setBucketLocation(isSet(bucketLocation) ? bucketLocation : persistentStore.getBucketLocation());

  if (persistentStore.getBucket() == null) {
   String bucketName = "spin-" + UUID.randomUUID().toString();
   AnsiUi.raw("Generated bucket name: " + bucketName);
   persistentStore.setBucket(bucketName);
  }

  return persistentStore;
 }
}
com.netflix.spinnaker.halyard.config.model.v1.persistentStorageGcsPersistentStoresetBucket

Popular methods of GcsPersistentStore

  • getBucket
  • getBucketLocation
  • getJsonPath
  • getProject
  • getRootFolder
  • setBucketLocation
  • setJsonPath
  • setProject
  • setRootFolder

Popular in Java

  • Start an intent from android
  • startActivity (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • scheduleAtFixedRate (Timer)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Collectors (java.util.stream)
  • Best IntelliJ 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