Examples of DescribeApplicationVersionsResult


Examples of com.amazonaws.services.elasticbeanstalk.model.DescribeApplicationVersionsResult

            versionLabel);

    /*
     * Sends the request
     */
    DescribeApplicationVersionsResult result = getService()
        .describeApplicationVersions(davRequest);

    /*
     * Non-empty means the application version label *DOES* exist.
     */
    return !result.getApplicationVersions().isEmpty();
  }
View Full Code Here

Examples of com.amazonaws.services.elasticbeanstalk.model.DescribeApplicationVersionsResult

            versionLabel);

    /*
     * Sends the request
     */
    DescribeApplicationVersionsResult result = service
        .describeApplicationVersions(davRequest);

    /*
     * Non-empty means the application version label *DOES* exist.
     */
    return !result.getApplicationVersions().isEmpty();
  }
View Full Code Here

Examples of com.amazonaws.services.elasticbeanstalk.model.DescribeApplicationVersionsResult

          "Declare either versionsToKeep or daysToKeep, but not both nor none!");

    DescribeApplicationVersionsRequest describeApplicationVersionsRequest = new DescribeApplicationVersionsRequest()
        .withApplicationName(applicationName);

    DescribeApplicationVersionsResult appVersions = service
        .describeApplicationVersions(describeApplicationVersionsRequest);

    DescribeEnvironmentsResult environments = service
        .describeEnvironments();

    List<ApplicationVersionDescription> appVersionList = new ArrayList<ApplicationVersionDescription>(
        appVersions.getApplicationVersions());
   
    deletedVersionsCount = 0;

    for (EnvironmentDescription d : environments.getEnvironments()) {
      boolean bActiveEnvironment = (d.getStatus().equals("Running")
View Full Code Here

Examples of com.amazonaws.services.elasticbeanstalk.model.DescribeApplicationVersionsResult

      MojoFailureException {
    // TODO: Deal with withVersionLabels
    DescribeApplicationVersionsRequest describeApplicationVersionsRequest = new DescribeApplicationVersionsRequest()
        .withApplicationName(applicationName);

    DescribeApplicationVersionsResult appVersions = service
        .describeApplicationVersions(describeApplicationVersionsRequest);

    DescribeEnvironmentsRequest describeEnvironmentsRequest = new DescribeEnvironmentsRequest()
        .withApplicationName(applicationName).withEnvironmentIds(environmentId)
        .withEnvironmentNames(environmentName).withIncludeDeleted(false);

    DescribeEnvironmentsResult environments = service
        .describeEnvironments(describeEnvironmentsRequest);

    List<ApplicationVersionDescription> appVersionList = new ArrayList<ApplicationVersionDescription>(
        appVersions.getApplicationVersions());

    List<EnvironmentDescription> environmentList = environments
        .getEnvironments();

    if (environmentList.isEmpty())
View Full Code Here

Examples of com.amazonaws.services.elasticbeanstalk.model.DescribeApplicationVersionsResult

    // TODO: Deal with withVersionLabels
    DescribeApplicationVersionsRequest describeApplicationVersionsRequest = new DescribeApplicationVersionsRequest()
        .withApplicationName(applicationName);

    DescribeApplicationVersionsResult appVersions = service
        .describeApplicationVersions(describeApplicationVersionsRequest);

    DescribeEnvironmentsResult environments = service.describeEnvironments();

    List<ApplicationVersionDescription> appVersionList = new ArrayList<ApplicationVersionDescription>(
        appVersions.getApplicationVersions());

    for (EnvironmentDescription d : environments.getEnvironments()) {
      boolean bActiveEnvironment = (d.getStatus().equals("Running")
          || d.getStatus().equals("Launching") || d.getStatus().equals("Ready"));
View Full Code Here

Examples of com.amazonaws.services.elasticbeanstalk.model.DescribeApplicationVersionsResult

  private String lookupVersionLabelForCommitId(String commitId) {
    String versionLabel = null;
    String prefixToLookup = format("git-%s-", commitId);

    DescribeApplicationVersionsResult describeApplicationVersions = getService().describeApplicationVersions(new DescribeApplicationVersionsRequest().withApplicationName(applicationName));

    for (ApplicationVersionDescription avd : describeApplicationVersions.getApplicationVersions()) {
      if (avd.getVersionLabel().startsWith(prefixToLookup)) {
        versionLabel = avd.getVersionLabel();
        break;
      }
    }
View Full Code Here

Examples of com.amazonaws.services.elasticbeanstalk.model.DescribeApplicationVersionsResult

      MojoFailureException {
    // TODO: Deal with withVersionLabels
    DescribeApplicationVersionsRequest describeApplicationVersionsRequest = new DescribeApplicationVersionsRequest()
        .withApplicationName(applicationName);

    DescribeApplicationVersionsResult appVersions = getService()
        .describeApplicationVersions(describeApplicationVersionsRequest);

    DescribeEnvironmentsRequest describeEnvironmentsRequest = new DescribeEnvironmentsRequest()
        .withApplicationName(applicationName).withEnvironmentIds(environmentId)
        .withEnvironmentNames(environmentName).withIncludeDeleted(false);

    DescribeEnvironmentsResult environments = getService()
        .describeEnvironments(describeEnvironmentsRequest);

    List<ApplicationVersionDescription> appVersionList = new ArrayList<ApplicationVersionDescription>(
        appVersions.getApplicationVersions());

    List<EnvironmentDescription> environmentList = environments
        .getEnvironments();

    if (environmentList.isEmpty())
View Full Code Here

Examples of com.amazonaws.services.elasticbeanstalk.model.DescribeApplicationVersionsResult

            versionLabel);

    /*
     * Sends the request
     */
    DescribeApplicationVersionsResult result = getService()
        .describeApplicationVersions(davRequest);

    /*
     * Non-empty means the application version label *DOES* exist.
     */
    return !result.getApplicationVersions().isEmpty();
  }
View Full Code Here

Examples of com.amazonaws.services.elasticbeanstalk.model.DescribeApplicationVersionsResult

          "Declare either versionsToKeep or daysToKeep, but not both nor none!");

    DescribeApplicationVersionsRequest describeApplicationVersionsRequest = new DescribeApplicationVersionsRequest()
        .withApplicationName(applicationName);

    DescribeApplicationVersionsResult appVersions = getService()
        .describeApplicationVersions(describeApplicationVersionsRequest);

    DescribeEnvironmentsResult environments = getService()
        .describeEnvironments();

    List<ApplicationVersionDescription> appVersionList = new ArrayList<ApplicationVersionDescription>(
        appVersions.getApplicationVersions());
   
    deletedVersionsCount = 0;

    for (EnvironmentDescription d : environments.getEnvironments()) {
      boolean bActiveEnvironment = (d.getStatus().equals("Running")
View Full Code Here

Examples of com.amazonaws.services.elasticbeanstalk.model.DescribeApplicationVersionsResult

      MojoFailureException {
    // TODO: Deal with withVersionLabels
    DescribeApplicationVersionsRequest describeApplicationVersionsRequest = new DescribeApplicationVersionsRequest()
        .withApplicationName(applicationName);

    DescribeApplicationVersionsResult appVersions = getService()
        .describeApplicationVersions(describeApplicationVersionsRequest);

    DescribeEnvironmentsRequest describeEnvironmentsRequest = new DescribeEnvironmentsRequest()
        .withApplicationName(applicationName).withEnvironmentIds(curEnv.getEnvironmentId())
        .withEnvironmentNames(curEnv.getEnvironmentName()).withIncludeDeleted(false);

    DescribeEnvironmentsResult environments = getService()
        .describeEnvironments(describeEnvironmentsRequest);

    List<ApplicationVersionDescription> appVersionList = new ArrayList<ApplicationVersionDescription>(
        appVersions.getApplicationVersions());

    List<EnvironmentDescription> environmentList = environments
        .getEnvironments();

    if (environmentList.isEmpty())
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.