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

How to use
GoogleCanaryAccountValidator
in
com.netflix.spinnaker.halyard.config.validate.v1.canary.google

Best Java code snippets using com.netflix.spinnaker.halyard.config.validate.v1.canary.google.GoogleCanaryAccountValidator (Showing top 2 results out of 315)

origin: spinnaker/halyard

 @Override
 public void validate(ConfigProblemSetBuilder p, GoogleCanaryServiceIntegration n) {
  GoogleCanaryAccountValidator googleCanaryAccountValidator =
    new GoogleCanaryAccountValidator()
      .setHalyardVersion(halyardVersion)
      .setRegistry(registry)
      .setTaskScheduler(taskScheduler);

  if (n.isGcsEnabled()) {
   List<GoogleCanaryAccount> accountsWithBucket =
     n.getAccounts()
       .stream()
       .filter(a -> a.getBucket() != null)
       .collect(Collectors.toList());

   if (CollectionUtils.isEmpty(accountsWithBucket)) {
    p.addProblem(Problem.Severity.ERROR, "At least one Google account must specify a bucket if GCS is enabled.");
   } else {
    accountsWithBucket.forEach(a -> googleCanaryAccountValidator.validate(p, a));
   }
  }
 }
}
origin: com.netflix.spinnaker.halyard/halyard-config

 @Override
 public void validate(ConfigProblemSetBuilder p, GoogleCanaryServiceIntegration n) {
  GoogleCanaryAccountValidator googleCanaryAccountValidator = new GoogleCanaryAccountValidator(halyardVersion);

  n.getAccounts().forEach(a -> googleCanaryAccountValidator.validate(p, a));

  if (n.isGcsEnabled()) {
   List<GoogleCanaryAccount> accountsWithBucket =
     n.getAccounts()
       .stream()
       .filter(a -> a.getBucket() != null)
       .collect(Collectors.toList());

   if (CollectionUtils.isEmpty(accountsWithBucket)) {
    p.addProblem(Problem.Severity.ERROR, "At least one Google account must specify a bucket if GCS is enabled.");
   }
  }
 }
}
com.netflix.spinnaker.halyard.config.validate.v1.canary.googleGoogleCanaryAccountValidator

Most used methods

  • <init>
  • validate
  • setHalyardVersion
  • setRegistry
  • setTaskScheduler

Popular in Java

  • Making http post requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • requestLocationUpdates (LocationManager)
  • getApplicationContext (Context)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JTable (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top plugins for WebStorm
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