Codota Logo
GcsPersistentStore.getBucket
Code IndexAdd Codota to your IDE (free)

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
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.persistentStorageGcsPersistentStoregetBucket

Popular methods of GcsPersistentStore

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

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • orElseThrow (Optional)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • JFileChooser (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now