Tabnine Logo
GoogleCanaryAccount.getBucket
Code IndexAdd Tabnine to your IDE (free)

How to use
getBucket
method
in
com.netflix.spinnaker.halyard.config.model.v1.canary.google.GoogleCanaryAccount

Best Java code snippets using com.netflix.spinnaker.halyard.config.model.v1.canary.google.GoogleCanaryAccount.getBucket (Showing top 5 results out of 315)

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.");
   }
  }
 }
}
origin: spinnaker/halyard

  canaryAccount.getBucket(),
  canaryAccount.getBucketLocation(),
  canaryAccount.getRootFolder(),
p.addProblem(Severity.ERROR, "Failed to ensure the required bucket \"" + canaryAccount.getBucket() + "\" exists: " + e.getMessage());
origin: com.netflix.spinnaker.halyard/halyard-cli

 @Override
 protected AbstractCanaryAccount editAccount(GoogleCanaryAccount account) {
  account.setProject(isSet(project) ? project : account.getProject());
  account.setJsonPath(isSet(jsonPath) ? jsonPath : account.getJsonPath());
  account.setBucket(isSet(bucket) ? bucket : account.getBucket());
  account.setRootFolder(isSet(rootFolder) ? rootFolder : account.getRootFolder());
  account.setBucketLocation(isSet(bucketLocation) ? bucketLocation : account.getBucketLocation());

  return account;
 }
}
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: spinnaker/halyard

 @Override
 protected AbstractCanaryAccount editAccount(GoogleCanaryAccount account) {
  account.setProject(isSet(project) ? project : account.getProject());
  account.setJsonPath(isSet(jsonPath) ? jsonPath : account.getJsonPath());
  account.setBucket(isSet(bucket) ? bucket : account.getBucket());
  account.setRootFolder(isSet(rootFolder) ? rootFolder : account.getRootFolder());
  account.setBucketLocation(isSet(bucketLocation) ? bucketLocation : account.getBucketLocation());

  return account;
 }
}
com.netflix.spinnaker.halyard.config.model.v1.canary.googleGoogleCanaryAccountgetBucket

Popular methods of GoogleCanaryAccount

  • getJsonPath
  • getProject
  • getBucketLocation
  • getRootFolder
  • <init>
  • getName
  • getNamedAccountCredentials
  • getSupportedTypes
  • setBucket
  • setBucketLocation
  • setJsonPath
  • setName
  • setJsonPath,
  • setName,
  • setProject,
  • setRootFolder

Popular in Java

  • Making http post requests using okhttp
  • getSharedPreferences (Context)
  • onRequestPermissionsResult (Fragment)
  • setContentView (Activity)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Reference (javax.naming)
  • JComboBox (javax.swing)
  • JList (javax.swing)
  • CodeWhisperer alternatives
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