congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
AppengineAccount
Code IndexAdd Tabnine to your IDE (free)

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

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

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: 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: 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 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: 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: com.netflix.spinnaker.halyard/halyard-cli

 @Override
 protected Account emptyAccount() {
  return new AppengineAccount();
 }
}
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: spinnaker/halyard

 @Override
 protected Account emptyAccount() {
  return new AppengineAccount();
 }
}
com.netflix.spinnaker.halyard.config.model.v1.providers.appengineAppengineAccount

Most used methods

  • getGitHttpsPassword
  • getGitHttpsUsername
  • getJsonPath
  • getProject
  • getSshKnownHostsFilePath
  • getSshPrivateKeyFilePath
  • getSshPrivateKeyPassphrase
  • isSshTrustUnknownHosts
  • <init>
  • getGcloudReleaseTrack
  • getGithubOAuthAccessToken
  • getLocalRepositoryDirectory
  • getGithubOAuthAccessToken,
  • getLocalRepositoryDirectory,
  • setGcloudReleaseTrack,
  • setGitHttpsPassword,
  • setGitHttpsUsername,
  • setGithubOAuthAccessToken,
  • setJsonPath,
  • setLocalRepositoryDirectory,
  • setName,
  • setProject

Popular in Java

  • Finding current android device location
  • startActivity (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSupportFragmentManager (FragmentActivity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • 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