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

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

Best Java code snippets using com.netflix.spinnaker.halyard.config.model.v1.persistentStorage.GcsPersistentStore (Showing top 4 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-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: 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.persistentStorageGcsPersistentStore

Most used methods

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • findViewById (Activity)
  • scheduleAtFixedRate (Timer)
  • getApplicationContext (Context)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top 12 Jupyter Notebook extensions
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