Class ProjectApi

java.lang.Object
com.redhat.parodos.sdk.api.ProjectApi

public class ProjectApi extends Object
  • Constructor Details

    • ProjectApi

      public ProjectApi()
    • ProjectApi

      public ProjectApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getHostIndex

      public int getHostIndex()
    • setHostIndex

      public void setHostIndex(int hostIndex)
    • getCustomBaseUrl

      public String getCustomBaseUrl()
    • setCustomBaseUrl

      public void setCustomBaseUrl(String customBaseUrl)
    • createAccessRequestToProjectCall

      public okhttp3.Call createAccessRequestToProjectCall(UUID id, AccessRequestDTO accessRequestDTO, ApiCallback _callback) throws ApiException
      Build call for createAccessRequestToProject
      Parameters:
      id - (required)
      accessRequestDTO - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • createAccessRequestToProject

      public AccessResponseDTO createAccessRequestToProject(UUID id, AccessRequestDTO accessRequestDTO) throws ApiException
      Request user access to project
      Parameters:
      id - (required)
      accessRequestDTO - (required)
      Returns:
      AccessResponseDTO
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • createAccessRequestToProjectWithHttpInfo

      public ApiResponse<AccessResponseDTO> createAccessRequestToProjectWithHttpInfo(UUID id, AccessRequestDTO accessRequestDTO) throws ApiException
      Request user access to project
      Parameters:
      id - (required)
      accessRequestDTO - (required)
      Returns:
      ApiResponse<AccessResponseDTO>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • createAccessRequestToProjectAsync

      public okhttp3.Call createAccessRequestToProjectAsync(UUID id, AccessRequestDTO accessRequestDTO, ApiCallback<AccessResponseDTO> _callback) throws ApiException
      Request user access to project (asynchronously)
      Parameters:
      id - (required)
      accessRequestDTO - (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • createProjectCall

      public okhttp3.Call createProjectCall(ProjectRequestDTO projectRequestDTO, ApiCallback _callback) throws ApiException
      Build call for createProject
      Parameters:
      projectRequestDTO - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • createProject

      public ProjectResponseDTO createProject(ProjectRequestDTO projectRequestDTO) throws ApiException
      Creates a new project
      Parameters:
      projectRequestDTO - (required)
      Returns:
      ProjectResponseDTO
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • createProjectWithHttpInfo

      public ApiResponse<ProjectResponseDTO> createProjectWithHttpInfo(ProjectRequestDTO projectRequestDTO) throws ApiException
      Creates a new project
      Parameters:
      projectRequestDTO - (required)
      Returns:
      ApiResponse<ProjectResponseDTO>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • createProjectAsync

      public okhttp3.Call createProjectAsync(ProjectRequestDTO projectRequestDTO, ApiCallback<ProjectResponseDTO> _callback) throws ApiException
      Creates a new project (asynchronously)
      Parameters:
      projectRequestDTO - (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • getProjectByIdCall

      public okhttp3.Call getProjectByIdCall(UUID id, ApiCallback _callback) throws ApiException
      Build call for getProjectById
      Parameters:
      id - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • getProjectById

      public ProjectResponseDTO getProjectById(UUID id) throws ApiException
      Returns information about a specified project
      Parameters:
      id - (required)
      Returns:
      ProjectResponseDTO
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getProjectByIdWithHttpInfo

      public ApiResponse<ProjectResponseDTO> getProjectByIdWithHttpInfo(UUID id) throws ApiException
      Returns information about a specified project
      Parameters:
      id - (required)
      Returns:
      ApiResponse<ProjectResponseDTO>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getProjectByIdAsync

      public okhttp3.Call getProjectByIdAsync(UUID id, ApiCallback<ProjectResponseDTO> _callback) throws ApiException
      Returns information about a specified project (asynchronously)
      Parameters:
      id - (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • getProjectsCall

      public okhttp3.Call getProjectsCall(ApiCallback _callback) throws ApiException
      Build call for getProjects
      Parameters:
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • getProjects

      public List<ProjectResponseDTO> getProjects() throws ApiException
      Returns a list of project
      Returns:
      List<ProjectResponseDTO>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getProjectsWithHttpInfo

      public ApiResponse<List<ProjectResponseDTO>> getProjectsWithHttpInfo() throws ApiException
      Returns a list of project
      Returns:
      ApiResponse<List<ProjectResponseDTO>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getProjectsAsync

      public okhttp3.Call getProjectsAsync(ApiCallback<List<ProjectResponseDTO>> _callback) throws ApiException
      Returns a list of project (asynchronously)
      Parameters:
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • removeUsersFromProjectCall

      public okhttp3.Call removeUsersFromProjectCall(UUID id, List<String> requestBody, ApiCallback _callback) throws ApiException
      Build call for removeUsersFromProject
      Parameters:
      id - (required)
      requestBody - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • removeUsersFromProject

      public ProjectUserRoleResponseDTO removeUsersFromProject(UUID id, List<String> requestBody) throws ApiException
      Remove users from project
      Parameters:
      id - (required)
      requestBody - (required)
      Returns:
      ProjectUserRoleResponseDTO
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • removeUsersFromProjectWithHttpInfo

      public ApiResponse<ProjectUserRoleResponseDTO> removeUsersFromProjectWithHttpInfo(UUID id, List<String> requestBody) throws ApiException
      Remove users from project
      Parameters:
      id - (required)
      requestBody - (required)
      Returns:
      ApiResponse<ProjectUserRoleResponseDTO>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • removeUsersFromProjectAsync

      public okhttp3.Call removeUsersFromProjectAsync(UUID id, List<String> requestBody, ApiCallback<ProjectUserRoleResponseDTO> _callback) throws ApiException
      Remove users from project (asynchronously)
      Parameters:
      id - (required)
      requestBody - (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • updateUserRolesToProjectCall

      public okhttp3.Call updateUserRolesToProjectCall(UUID id, List<UserRoleRequestDTO> userRoleRequestDTO, ApiCallback _callback) throws ApiException
      Build call for updateUserRolesToProject
      Parameters:
      id - (required)
      userRoleRequestDTO - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • updateUserRolesToProject

      public ProjectUserRoleResponseDTO updateUserRolesToProject(UUID id, List<UserRoleRequestDTO> userRoleRequestDTO) throws ApiException
      Update user roles in project
      Parameters:
      id - (required)
      userRoleRequestDTO - (required)
      Returns:
      ProjectUserRoleResponseDTO
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • updateUserRolesToProjectWithHttpInfo

      public ApiResponse<ProjectUserRoleResponseDTO> updateUserRolesToProjectWithHttpInfo(UUID id, List<UserRoleRequestDTO> userRoleRequestDTO) throws ApiException
      Update user roles in project
      Parameters:
      id - (required)
      userRoleRequestDTO - (required)
      Returns:
      ApiResponse<ProjectUserRoleResponseDTO>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • updateUserRolesToProjectAsync

      public okhttp3.Call updateUserRolesToProjectAsync(UUID id, List<UserRoleRequestDTO> userRoleRequestDTO, ApiCallback<ProjectUserRoleResponseDTO> _callback) throws ApiException
      Update user roles in project (asynchronously)
      Parameters:
      id - (required)
      userRoleRequestDTO - (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object