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

How to use
setProject
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.setProject (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.persistentStorageGcsPersistentStoresetProject

Popular methods of GcsPersistentStore

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

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setScale (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Best plugins for Eclipse
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