@Test(expected = IllegalArgumentException.class) public void listVariables()throws Exception{ VariableImpl.listVariables(listVariableInputs); }
@NotNull public static Map<String, String> listVariables(@NotNull final TerraformWorkspaceInputs terraformWorkspaceInputs) throws Exception { final HttpClientInputs httpClientInputs = new HttpClientInputs(); httpClientInputs.setUrl(listVariablesUrl()); setCommonHttpInputs(httpClientInputs, terraformWorkspaceInputs.getCommonInputs()); httpClientInputs.setAuthType(ANONYMOUS); httpClientInputs.setMethod(GET); httpClientInputs.setContentType(APPLICATION_VND_API_JSON); httpClientInputs.setQueryParams(getListVariableQueryParams(terraformWorkspaceInputs.getCommonInputs().getOrganizationName(), terraformWorkspaceInputs.getWorkspaceName())); httpClientInputs.setResponseCharacterSet(terraformWorkspaceInputs.getCommonInputs().getResponseCharacterSet()); httpClientInputs.setHeaders(getAuthHeaders(terraformWorkspaceInputs.getCommonInputs().getAuthToken())); return new HttpClientService().execute(httpClientInputs); }
VariableImpl { @NotNull public static Map<String, String> listVariables(@NotNull final TerraformWorkspaceInputs terraformWorkspaceInputs) throws Exception { final HttpClientInputs httpClientInputs = new HttpClientInputs(); httpClientInputs.setUrl(listVariablesUrl()); setCommonHttpInputs(httpClientInputs, terraformWorkspaceInputs.getCommonInputs()); httpClientInputs.setAuthType(ANONYMOUS); httpClientInputs.setMethod(GET); httpClientInputs.setContentType(APPLICATION_VND_API_JSON); httpClientInputs.setQueryParams(getListVariableQueryParams(terraformWorkspaceInputs.getCommonInputs().getOrganizationName(), terraformWorkspaceInputs.getWorkspaceName())); httpClientInputs.setResponseCharacterSet(terraformWorkspaceInputs.getCommonInputs().getResponseCharacterSet()); httpClientInputs.setHeaders(getAuthHeaders(terraformWorkspaceInputs.getCommonInputs().getAuthToken())); return new HttpClientService().execute(httpClientInputs); } }
VariableImpl { @NotNull public static Map<String, String> listVariables(@NotNull final TerraformWorkspaceInputs terraformWorkspaceInputs) throws Exception { final HttpClientInputs httpClientInputs = new HttpClientInputs(); httpClientInputs.setUrl(listVariablesUrl()); setCommonHttpInputs(httpClientInputs, terraformWorkspaceInputs.getCommonInputs()); httpClientInputs.setAuthType(ANONYMOUS); httpClientInputs.setMethod(GET); httpClientInputs.setContentType(APPLICATION_VND_API_JSON); httpClientInputs.setQueryParams(getListVariableQueryParams(terraformWorkspaceInputs.getCommonInputs().getOrganizationName(), terraformWorkspaceInputs.getWorkspaceName())); httpClientInputs.setResponseCharacterSet(terraformWorkspaceInputs.getCommonInputs().getResponseCharacterSet()); httpClientInputs.setHeaders(getAuthHeaders(terraformWorkspaceInputs.getCommonInputs().getAuthToken())); return new HttpClientService().execute(httpClientInputs); }  }
VariableImpl { @NotNull public static Map<String, String> listVariables(@NotNull final TerraformWorkspaceInputs terraformWorkspaceInputs) throws Exception { final HttpClientInputs httpClientInputs = new HttpClientInputs(); httpClientInputs.setUrl(listVariablesUrl()); setCommonHttpInputs(httpClientInputs, terraformWorkspaceInputs.getCommonInputs()); httpClientInputs.setAuthType(ANONYMOUS); httpClientInputs.setMethod(GET); httpClientInputs.setContentType(APPLICATION_VND_API_JSON); httpClientInputs.setQueryParams(getListVariableQueryParams(terraformWorkspaceInputs.getCommonInputs().getOrganizationName(), terraformWorkspaceInputs.getWorkspaceName())); httpClientInputs.setResponseCharacterSet(terraformWorkspaceInputs.getCommonInputs().getResponseCharacterSet()); httpClientInputs.setHeaders(getAuthHeaders(terraformWorkspaceInputs.getCommonInputs().getAuthToken())); return new HttpClientService().execute(httpClientInputs); }  @NotNull static Map<String, String> createVariable(@NotNull TerraformVariableInputs terraformVariableInputs); @NotNull static Map<String, Map<String, String>> createVariables(@NotNull TerraformVariableInputs terraformVariableInputs); @NotNull static Map<String, Map<String, String>> updateVariables(@NotNull TerraformVariableInputs terraformVariableInputs, @NotNull TerraformWorkspaceInputs terraformWorkspaceInputs); @NotNull static Map<String, String> getVariablesOperationOutput(String variablesJson, String sensitiveVariablesJson, Map<String, Map<String, String>> result); @NotNull static Map<String, String> listVariables(@NotNull final TerraformWorkspaceInputs terraformWorkspaceInputs); @NotNull static String listVariablesUrl(); @NotNull static String getListVariableQueryParams(String organizationName,
                                                    final String workspaceName); @NotNull static String getVariablePath(); static Map<String, String> updateVariable(@NotNull final TerraformVariableInputs updateVariableInputs); @NotNull static Map<String, String> deleteVariable(@NotNull final TerraformVariableInputs deleteVariableInputs); @NotNull static String getVariablePath(@NotNull final String variableId); @NotNull static String createVariableRequestBody(TerraformVariableInputs terraformVariableInputs); @NotNull static String updateVariableRequestBody(TerraformVariableInputs terraformVariableInputs); }
VariableImpl { @NotNull public static Map<String, String> listVariables(@NotNull final TerraformWorkspaceInputs terraformWorkspaceInputs) throws Exception { final HttpClientInputs httpClientInputs = new HttpClientInputs(); httpClientInputs.setUrl(listVariablesUrl()); setCommonHttpInputs(httpClientInputs, terraformWorkspaceInputs.getCommonInputs()); httpClientInputs.setAuthType(ANONYMOUS); httpClientInputs.setMethod(GET); httpClientInputs.setContentType(APPLICATION_VND_API_JSON); httpClientInputs.setQueryParams(getListVariableQueryParams(terraformWorkspaceInputs.getCommonInputs().getOrganizationName(), terraformWorkspaceInputs.getWorkspaceName())); httpClientInputs.setResponseCharacterSet(terraformWorkspaceInputs.getCommonInputs().getResponseCharacterSet()); httpClientInputs.setHeaders(getAuthHeaders(terraformWorkspaceInputs.getCommonInputs().getAuthToken())); return new HttpClientService().execute(httpClientInputs); }  @NotNull static Map<String, String> createVariable(@NotNull TerraformVariableInputs terraformVariableInputs); @NotNull static Map<String, Map<String, String>> createVariables(@NotNull TerraformVariableInputs terraformVariableInputs); @NotNull static Map<String, Map<String, String>> updateVariables(@NotNull TerraformVariableInputs terraformVariableInputs, @NotNull TerraformWorkspaceInputs terraformWorkspaceInputs); @NotNull static Map<String, String> getVariablesOperationOutput(String variablesJson, String sensitiveVariablesJson, Map<String, Map<String, String>> result); @NotNull static Map<String, String> listVariables(@NotNull final TerraformWorkspaceInputs terraformWorkspaceInputs); @NotNull static String listVariablesUrl(); @NotNull static String getListVariableQueryParams(String organizationName,
                                                    final String workspaceName); @NotNull static String getVariablePath(); static Map<String, String> updateVariable(@NotNull final TerraformVariableInputs updateVariableInputs); @NotNull static Map<String, String> deleteVariable(@NotNull final TerraformVariableInputs deleteVariableInputs); @NotNull static String getVariablePath(@NotNull final String variableId); @NotNull static String createVariableRequestBody(TerraformVariableInputs terraformVariableInputs); @NotNull static String updateVariableRequestBody(TerraformVariableInputs terraformVariableInputs);  }