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

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

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

 @Override
 public void validate(ConfigProblemSetBuilder p, AbstractCanaryAccount n) {
  super.validate(p, n);

  GoogleCanaryAccount canaryAccount = (GoogleCanaryAccount)n;

  DaemonTaskHandler.message("Validating " + n.getNodeName() + " with " + GoogleCanaryAccountValidator.class.getSimpleName());

  GoogleNamedAccountCredentials credentials = canaryAccount.getNamedAccountCredentials(halyardVersion, p);

  if (credentials == null) {
   return;
  }

  try {
   Compute compute = credentials.getCompute();

   compute.projects().get(canaryAccount.getProject()).execute();
  } catch (IOException e) {
   p.addProblem(Severity.ERROR, "Failed to load project \"" + canaryAccount.getProject() + "\": " + e.getMessage() + ".");
  }
 }
}
origin: com.netflix.spinnaker.halyard/halyard-config

if (StringUtils.isEmpty(getProject())) {
 p.addProblem(Problem.Severity.ERROR, "No google project supplied.");
 return null;
   .name(getName())
   .jsonKey(jsonKey)
   .project(getProject())
   .applicationName("halyard " + version)
   .liveLookupsEnabled(false)
} catch (Exception e) {
 p.addProblem(Problem.Severity.ERROR, "Error instantiating Google credentials: " + e.getMessage() + ".")
   .setRemediation("Do the provided credentials have access to project " + getProject() + "?");
 return null;
origin: spinnaker/halyard

if (StringUtils.isEmpty(getProject())) {
 p.addProblem(Problem.Severity.ERROR, "No google project supplied.");
 return null;
   .name(getName())
   .jsonKey(jsonKey)
   .project(getProject())
   .applicationName("halyard " + version)
   .liveLookupsEnabled(false)
} catch (Exception e) {
 p.addProblem(Problem.Severity.ERROR, "Error instantiating Google credentials: " + e.getMessage() + ".")
   .setRemediation("Do the provided credentials have access to project " + getProject() + "?");
 return null;
origin: spinnaker/halyard

canaryAccount.getBucketLocation(),
canaryAccount.getRootFolder(),
canaryAccount.getProject(),
jsonPath != null ? jsonPath : "",
"halyard",
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
 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.googleGoogleCanaryAccountgetProject

Popular methods of GoogleCanaryAccount

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

Popular in Java

  • Updating database using SQL prepared statement
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
  • startActivity (Activity)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JFileChooser (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • 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