Codota Logo
com.netflix.spinnaker.halyard.config.model.v1.providers.appengine
Code IndexAdd Codota to your IDE (free)

How to use com.netflix.spinnaker.halyard.config.model.v1.providers.appengine

Best Java code snippets using com.netflix.spinnaker.halyard.config.model.v1.providers.appengine (Showing top 10 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: com.netflix.spinnaker.halyard/halyard-cli

 @Override
 protected Account emptyAccount() {
  return new AppengineAccount();
 }
}
origin: com.netflix.spinnaker.halyard/halyard-cli

@Override
protected Account buildAccount(String accountName) {
 AppengineAccount account = (AppengineAccount) new AppengineAccount().setName(accountName);
 account.setProject(project).setJsonPath(jsonPath);
 
 account.setLocalRepositoryDirectory(localRepositoryDirectory).setGitHttpsUsername(gitHttpsUsername)
     .setGitHttpsPassword(gitHttpsPassword).setGithubOAuthAccessToken(githubOAuthAccessToken)
     .setSshPrivateKeyFilePath(sshPrivateKeyFilePath).setSshPrivateKeyPassphrase(sshPrivateKeyPassphrase)
     .setSshKnownHostsFilePath(sshKnownHostsFilePath).setSshTrustUnknownHosts(sshTrustUnknownHosts)
     .setGcloudReleaseTrack(gcloudReleaseTrack);
 return account;
}
origin: spinnaker/halyard

@Override
protected Account buildAccount(String accountName) {
 AppengineAccount account = (AppengineAccount) new AppengineAccount().setName(accountName);
 account.setProject(project).setJsonPath(jsonPath);
 
 account.setLocalRepositoryDirectory(localRepositoryDirectory).setGitHttpsUsername(gitHttpsUsername)
     .setGitHttpsPassword(gitHttpsPassword).setGithubOAuthAccessToken(githubOAuthAccessToken)
     .setSshPrivateKeyFilePath(sshPrivateKeyFilePath).setSshPrivateKeyPassphrase(sshPrivateKeyPassphrase)
     .setSshKnownHostsFilePath(sshKnownHostsFilePath).setSshTrustUnknownHosts(sshTrustUnknownHosts)
     .setGcloudReleaseTrack(gcloudReleaseTrack)
     .setServices(services)
     .setVersions(versions)
     .setOmitServices(omitServices)
     .setOmitVersions(omitVersions);
 return account;
}
origin: spinnaker/halyard

 @Override
 protected Account editAccount(AppengineAccount account) {
  account.setJsonPath(isSet(jsonPath) ? jsonPath : account.getJsonPath());
  account.setProject(isSet(project) ? project : account.getProject());
  account.setLocalRepositoryDirectory(isSet(localRepositoryDirectory) ? localRepositoryDirectory : account.getLocalRepositoryDirectory());
  account.setGitHttpsUsername(isSet(gitHttpsUsername) ? gitHttpsUsername : account.getGitHttpsUsername());
  account.setGitHttpsPassword(isSet(gitHttpsPassword) ? gitHttpsPassword : account.getGitHttpsPassword());
  account.setGithubOAuthAccessToken(isSet(githubOAuthAccessToken) ? githubOAuthAccessToken : account.getGithubOAuthAccessToken());
  account.setSshPrivateKeyFilePath(isSet(sshPrivateKeyFilePath) ? sshPrivateKeyFilePath: account.getSshPrivateKeyFilePath());
  account.setSshPrivateKeyPassphrase(isSet(sshPrivateKeyPassphrase) ? sshPrivateKeyPassphrase: account.getSshPrivateKeyPassphrase());
  account.setSshKnownHostsFilePath(isSet(sshKnownHostsFilePath) ? sshKnownHostsFilePath : account.getSshKnownHostsFilePath());
  account.setSshTrustUnknownHosts(sshTrustUnknownHosts != null ? sshTrustUnknownHosts : account.isSshTrustUnknownHosts());
  account.setGcloudReleaseTrack(gcloudReleaseTrack != null ? gcloudReleaseTrack : account.getGcloudReleaseTrack());
  account.setServices(services != null ? services : account.getServices());
  account.setVersions(versions != null ? versions : account.getVersions());
  account.setOmitServices(omitServices != null ? omitServices : account.getOmitServices());
  account.setOmitVersions(omitVersions != null ? omitVersions : account.getOmitVersions());
  
  return account;
 }
}
origin: com.netflix.spinnaker.halyard/halyard-cli

 @Override
 protected Account editAccount(AppengineAccount account) {
  account.setJsonPath(isSet(jsonPath) ? jsonPath : account.getJsonPath());
  account.setProject(isSet(project) ? project : account.getProject());
  account.setLocalRepositoryDirectory(isSet(localRepositoryDirectory) ? localRepositoryDirectory : account.getLocalRepositoryDirectory());
  account.setGitHttpsUsername(isSet(gitHttpsUsername) ? gitHttpsUsername : account.getGitHttpsUsername());
  account.setGitHttpsPassword(isSet(gitHttpsPassword) ? gitHttpsPassword : account.getGitHttpsPassword());
  account.setGithubOAuthAccessToken(isSet(githubOAuthAccessToken) ? githubOAuthAccessToken : account.getGithubOAuthAccessToken());
  account.setSshPrivateKeyFilePath(isSet(sshPrivateKeyFilePath) ? sshPrivateKeyFilePath: account.getSshPrivateKeyFilePath());
  account.setSshPrivateKeyPassphrase(isSet(sshPrivateKeyPassphrase) ? sshPrivateKeyPassphrase: account.getSshPrivateKeyPassphrase());
  account.setSshKnownHostsFilePath(isSet(sshKnownHostsFilePath) ? sshKnownHostsFilePath : account.getSshKnownHostsFilePath());
  account.setSshTrustUnknownHosts(sshTrustUnknownHosts != null ? sshTrustUnknownHosts : account.isSshTrustUnknownHosts());
  account.setGcloudReleaseTrack(gcloudReleaseTrack != null ? gcloudReleaseTrack : account.getGcloudReleaseTrack());
  
  return account;
 }
}
origin: com.netflix.spinnaker.halyard/halyard-config

@Override
public void validate(ConfigProblemSetBuilder p, AppengineAccount account) {
 String jsonKey = null;
 String jsonPath = account.getJsonPath();
 String project = account.getProject();
 String knownHostsPath = account.getSshKnownHostsFilePath();
 AppengineNamedAccountCredentials credentials = null;
 boolean hasPassword = account.getGitHttpsPassword() != null;
 boolean hasUsername = account.getGitHttpsUsername() != null && !account.getGitHttpsUsername().isEmpty();
 if (hasPassword != hasUsername) {
  if (!hasUsername) {
 boolean hasSshPrivateKeyPassphrase = account.getSshPrivateKeyPassphrase() != null;
 boolean hasSshPrivateKeyFilePath = account.getSshPrivateKeyFilePath() != null && !account.getSshPrivateKeyFilePath().isEmpty();
 if (hasSshPrivateKeyPassphrase != hasSshPrivateKeyFilePath) {
  if (!hasSshPrivateKeyFilePath) {
  String sshPrivateKey = ValidatingFileReader.contents(p, account.getSshPrivateKeyFilePath());
  if (sshPrivateKey == null) {
   return;
    KeyPair keyPair = KeyPair.load(new JSch(), account.getSshPrivateKeyFilePath());
    boolean decrypted = keyPair.decrypt(account.getSshPrivateKeyPassphrase());
    if (!decrypted) {
     p.addProblem(Severity.ERROR, "Could not unlock SSH public/private keypair with supplied passphrase.");
  jsonKey = ValidatingFileReader.contents(p, account.getJsonPath());
  if (jsonKey == null) {
   return;
origin: com.netflix.spinnaker.halyard/halyard-deploy

bindings.put("appengine.default.account", appengineProvider.getPrimaryAccount());
bindings.put("appengine.enabled", Boolean.toString(appengineProvider.getPrimaryAccount() != null));
origin: spinnaker/halyard

@Override
public void validate(ConfigProblemSetBuilder p, AppengineAccount account) {
 String jsonKey = null;
 String jsonPath = account.getJsonPath();
 String project = account.getProject();
 String knownHostsPath = account.getSshKnownHostsFilePath();
 AppengineNamedAccountCredentials credentials = null;
 boolean hasPassword = account.getGitHttpsPassword() != null;
 boolean hasUsername = account.getGitHttpsUsername() != null && !account.getGitHttpsUsername().isEmpty();
 if (hasPassword != hasUsername) {
  if (!hasUsername) {
 boolean hasSshPrivateKeyPassphrase = account.getSshPrivateKeyPassphrase() != null;
 boolean hasSshPrivateKeyFilePath = account.getSshPrivateKeyFilePath() != null && !account.getSshPrivateKeyFilePath().isEmpty();
 if (hasSshPrivateKeyPassphrase != hasSshPrivateKeyFilePath) {
  if (!hasSshPrivateKeyFilePath) {
  String sshPrivateKey = ValidatingFileReader.contents(p, account.getSshPrivateKeyFilePath());
  if (sshPrivateKey == null) {
   return;
    KeyPair keyPair = KeyPair.load(new JSch(), account.getSshPrivateKeyFilePath());
    boolean decrypted = keyPair.decrypt(account.getSshPrivateKeyPassphrase());
    if (!decrypted) {
     p.addProblem(Severity.ERROR, "Could not unlock SSH public/private keypair with supplied passphrase.");
  jsonKey = ValidatingFileReader.contents(p, account.getJsonPath());
  if (jsonKey == null) {
   return;
origin: spinnaker/halyard

 @Override
 protected Account emptyAccount() {
  return new AppengineAccount();
 }
}
origin: spinnaker/halyard

bindings.put("appengine.default.account", appengineProvider.getPrimaryAccount());
bindings.put("appengine.enabled", Boolean.toString(appengineProvider.getPrimaryAccount() != null));
com.netflix.spinnaker.halyard.config.model.v1.providers.appengine

Most used classes

  • AppengineAccount
  • AppengineProvider
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