Package com.openshift.internal.client.response

Examples of com.openshift.internal.client.response.EnvironmentVariableResourceDTO


  @Override
  public void update(String newValue) throws OpenShiftException {
    if (newValue == null) {
      throw new OpenShiftException("Value for environment variable \"{0}\" not given.", name);
    }
    EnvironmentVariableResourceDTO environmentVariableResourceDTO =
        new UpdateEnvironmentVariableRequest().execute(newValue);
    updateEnvironmentVariable(environmentVariableResourceDTO);
    /*
     * This should be done in the IApplication, to break up this dependency
     * on the entity, i.e. IEnvironmentVariable, on something that is
View Full Code Here


   
  }

  @Override
  public void refresh() throws OpenShiftException {
    EnvironmentVariableResourceDTO environmentVariableResourceDTO = new GetEnvironmentVariableRequest().execute();
    updateEnvironmentVariable(environmentVariableResourceDTO);
  }
View Full Code Here

    }
    if (hasEnvironmentVariable(name)) {
      throw new OpenShiftException("Environment variable with name \"{0}\" already exists.", name);
    }   
   
    EnvironmentVariableResourceDTO environmentVariableResourceDTO =
        new AddEnvironmentVariableRequest().execute(name, value);   
    IEnvironmentVariable environmentVariable = new EnvironmentVariableResource(environmentVariableResourceDTO, this);
   
    environmentVariablesMap.put(environmentVariable.getName(), environmentVariable);
   
View Full Code Here

    }
    if (hasEnvironmentVariable(name)) {
      throw new OpenShiftException("Environment variable with name \"{0}\" already exists.", name);
    }

    EnvironmentVariableResourceDTO environmentVariableResourceDTO =
        new AddEnvironmentVariableRequest().execute(name, value);
    IEnvironmentVariable environmentVariable = new EnvironmentVariableResource(environmentVariableResourceDTO, this);

    environmentVariablesMap.put(environmentVariable.getName(), environmentVariable);
View Full Code Here

    }
    if (hasEnvironmentVariable(name)) {
      throw new OpenShiftException("Environment variable with name \"{0}\" already exists.", name);
    }

    EnvironmentVariableResourceDTO environmentVariableResourceDTO =
        new AddEnvironmentVariableRequest().execute(name, value);
    IEnvironmentVariable environmentVariable = new EnvironmentVariableResource(environmentVariableResourceDTO, this);

    environmentVariablesMap.put(environmentVariable.getName(), environmentVariable);
View Full Code Here

  @Deprecated
  public void update(String newValue) throws OpenShiftException {
    if (newValue == null) {
      throw new OpenShiftException("Value for environment variable \"{0}\" not given.", name);
    }
    EnvironmentVariableResourceDTO environmentVariableResourceDTO =
        new UpdateEnvironmentVariableRequest().execute(newValue);
    updateEnvironmentVariable(environmentVariableResourceDTO);
    /*
     * This should be done in the IApplication, to break up this dependency
     * on the entity, i.e. IEnvironmentVariable, on something that is
View Full Code Here

   
  }

  @Override
  public void refresh() throws OpenShiftException {
    EnvironmentVariableResourceDTO environmentVariableResourceDTO = new GetEnvironmentVariableRequest().execute();
    updateEnvironmentVariable(environmentVariableResourceDTO);
  }
View Full Code Here

    }
    if (hasEnvironmentVariable(name)) {
      throw new OpenShiftException("Environment variable with name \"{0}\" already exists.", name);
    }

    EnvironmentVariableResourceDTO environmentVariableResourceDTO =
        new AddEnvironmentVariableRequest().execute(name, value);
    IEnvironmentVariable environmentVariable = new EnvironmentVariableResource(environmentVariableResourceDTO, this);

    environmentVariablesMap.put(environmentVariable.getName(), environmentVariable);
View Full Code Here

TOP

Related Classes of com.openshift.internal.client.response.EnvironmentVariableResourceDTO

Copyright © 2018 www.massapicom. 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.