congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
GcsPersistentStore.getRootFolder
Code IndexAdd Tabnine to your IDE (free)

How to use
getRootFolder
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.getRootFolder (Showing top 4 results out of 315)

origin: com.netflix.spinnaker.halyard/halyard-config

 @Override
 public void validate(ConfigProblemSetBuilder ps, GcsPersistentStore n) {
  String jsonPath = n.getJsonPath();
  try {
   StorageService storageService = new GcsStorageService(
     n.getBucket(),
     n.getBucketLocation(),
     n.getRootFolder(),
     n.getProject(),
     jsonPath != null ? jsonPath : "",
     "halyard",
     registry);

   storageService.ensureBucketExists();
  } catch (Exception e) {
   ps.addProblem(Severity.ERROR, "Failed to ensure the required bucket \"" + n.getBucket() + "\" exists: " + e.getMessage());
  }
 }
}
origin: spinnaker/halyard

 @Override
 public void validate(ConfigProblemSetBuilder ps, GcsPersistentStore n) {
  String jsonPath = n.getJsonPath();
  try {
   StorageService storageService = new GcsStorageService(
     n.getBucket(),
     n.getBucketLocation(),
     n.getRootFolder(),
     n.getProject(),
     jsonPath != null ? jsonPath : "",
     "halyard",
     connectTimeoutSec,
     readTimeoutSec,
     maxWaitInterval,
     retryIntervalbase,
     jitterMultiplier,
     maxRetries,
     taskScheduler,
     registry);

   storageService.ensureBucketExists();
  } catch (Exception e) {
   ps.addProblem(Severity.ERROR, "Failed to ensure the required bucket \"" + n.getBucket() + "\" exists: " + e.getMessage());
  }
 }
}
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.persistentStorageGcsPersistentStoregetRootFolder

Popular methods of GcsPersistentStore

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • putExtra (Intent)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • BoxLayout (javax.swing)
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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