@Test public void listRunsInWorkspacePathTest() throws Exception { final String path = listRunsInWorkspaceClientUrl(WORKSPACE_ID); assertEquals(EXPECTED_LIST_RUNS_IN_WORKSPACE_PATH, path); }
@NotNull public static String listRunsInWorkspaceClientUrl(@NotNull String workspaceId) throws Exception { final URIBuilder uriBuilder = getUriBuilder(); StringBuilder pathString = new StringBuilder() .append(API) .append(API_VERSION) .append(WORKSPACE_PATH) .append(PATH_SEPARATOR) .append(workspaceId) .append(RUN_PATH); uriBuilder.setPath(pathString.toString()); return uriBuilder.build().toURL().toString(); }
RunImpl { @NotNull public static String listRunsInWorkspaceClientUrl(@NotNull String workspaceId) throws Exception { final URIBuilder uriBuilder = getUriBuilder(); StringBuilder pathString = new StringBuilder() .append(API) .append(API_VERSION) .append(WORKSPACE_PATH) .append(PATH_SEPARATOR) .append(workspaceId) .append(RUN_PATH); uriBuilder.setPath(pathString.toString()); return uriBuilder.build().toURL().toString(); } }
RunImpl { @NotNull public static String listRunsInWorkspaceClientUrl(@NotNull String workspaceId) throws Exception { final URIBuilder uriBuilder = getUriBuilder(); StringBuilder pathString = new StringBuilder() .append(API) .append(API_VERSION) .append(WORKSPACE_PATH) .append(PATH_SEPARATOR) .append(workspaceId) .append(RUN_PATH); uriBuilder.setPath(pathString.toString()); return uriBuilder.build().toURL().toString(); }  }
RunImpl { @NotNull public static String listRunsInWorkspaceClientUrl(@NotNull String workspaceId) throws Exception { final URIBuilder uriBuilder = getUriBuilder(); StringBuilder pathString = new StringBuilder() .append(API) .append(API_VERSION) .append(WORKSPACE_PATH) .append(PATH_SEPARATOR) .append(workspaceId) .append(RUN_PATH); uriBuilder.setPath(pathString.toString()); return uriBuilder.build().toURL().toString(); }  @NotNull static Map<String, String> createRunClient(@NotNull final TerraformRunInputs createRunInputs); @NotNull static Map<String, String> applyRunClient(@NotNull final TerraformRunInputs applyRunInputs); @NotNull static Map<String, String> listRunsInWorkspaceClient(@NotNull final TerraformRunInputs listRunsInWorkspaceInputs); @NotNull static Map<String, String> getRunDetails(@NotNull final TerraformRunInputs getRunDetailsInputs); @NotNull static Map<String, String> planDetails(@NotNull final TerraformRunInputs planDetailsInputs); static Map<String, String> cancelRun(@NotNull final TerraformRunInputs cancelRunInputs); @NotNull static Map<String, String> getApplyDetails(@NotNull final TerraformRunInputs getApplyDetailsInputs); @NotNull static String createRunClientUrl(); @NotNull static String getRunDetailsUrl(@NotNull final String runId); @NotNull static String planDetailsUrl(@NotNull final String planId); static String cancelRunUrl(@NotNull final String runId); @NotNull static String getApplyDetailsUrl(@NotNull final String applyId); @NotNull static String applyRunClientUrl(@NotNull String runId); @NotNull static String listRunsInWorkspaceClientUrl(@NotNull String workspaceId); @NotNull static String createRunBody(TerraformRunInputs createRunInputs); @NotNull static String applyRunBody(TerraformRunInputs applyRunInputs); }
RunImpl { @NotNull public static String listRunsInWorkspaceClientUrl(@NotNull String workspaceId) throws Exception { final URIBuilder uriBuilder = getUriBuilder(); StringBuilder pathString = new StringBuilder() .append(API) .append(API_VERSION) .append(WORKSPACE_PATH) .append(PATH_SEPARATOR) .append(workspaceId) .append(RUN_PATH); uriBuilder.setPath(pathString.toString()); return uriBuilder.build().toURL().toString(); }  @NotNull static Map<String, String> createRunClient(@NotNull final TerraformRunInputs createRunInputs); @NotNull static Map<String, String> applyRunClient(@NotNull final TerraformRunInputs applyRunInputs); @NotNull static Map<String, String> listRunsInWorkspaceClient(@NotNull final TerraformRunInputs listRunsInWorkspaceInputs); @NotNull static Map<String, String> getRunDetails(@NotNull final TerraformRunInputs getRunDetailsInputs); @NotNull static Map<String, String> planDetails(@NotNull final TerraformRunInputs planDetailsInputs); static Map<String, String> cancelRun(@NotNull final TerraformRunInputs cancelRunInputs); @NotNull static Map<String, String> getApplyDetails(@NotNull final TerraformRunInputs getApplyDetailsInputs); @NotNull static String createRunClientUrl(); @NotNull static String getRunDetailsUrl(@NotNull final String runId); @NotNull static String planDetailsUrl(@NotNull final String planId); static String cancelRunUrl(@NotNull final String runId); @NotNull static String getApplyDetailsUrl(@NotNull final String applyId); @NotNull static String applyRunClientUrl(@NotNull String runId); @NotNull static String listRunsInWorkspaceClientUrl(@NotNull String workspaceId); @NotNull static String createRunBody(TerraformRunInputs createRunInputs); @NotNull static String applyRunBody(TerraformRunInputs applyRunInputs);  }