Class McpServerRevisionsApi

java.lang.Object
org.wso2.am.integration.clients.publisher.api.v1.McpServerRevisionsApi

public class McpServerRevisionsApi extends Object
  • Constructor Details

    • McpServerRevisionsApi

      public McpServerRevisionsApi()
    • McpServerRevisionsApi

      public McpServerRevisionsApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • createMCPServerRevisionCall

      public okhttp3.Call createMCPServerRevisionCall(String mcpServerId, APIRevisionDTO apIRevisionDTO, ApiCallback _callback) throws ApiException
      Build call for createMCPServerRevision
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      apIRevisionDTO - API object that needs to be added (optional)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • createMCPServerRevision

      public APIRevisionDTO createMCPServerRevision(String mcpServerId, APIRevisionDTO apIRevisionDTO) throws ApiException
      Create MCP Server Revision Create a new MCP Server revision
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      apIRevisionDTO - API object that needs to be added (optional)
      Returns:
      APIRevisionDTO
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • createMCPServerRevisionWithHttpInfo

      public ApiResponse<APIRevisionDTO> createMCPServerRevisionWithHttpInfo(String mcpServerId, APIRevisionDTO apIRevisionDTO) throws ApiException
      Create MCP Server Revision Create a new MCP Server revision
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      apIRevisionDTO - API object that needs to be added (optional)
      Returns:
      ApiResponse<APIRevisionDTO>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • createMCPServerRevisionAsync

      public okhttp3.Call createMCPServerRevisionAsync(String mcpServerId, APIRevisionDTO apIRevisionDTO, ApiCallback<APIRevisionDTO> _callback) throws ApiException
      Create MCP Server Revision (asynchronously) Create a new MCP Server revision
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      apIRevisionDTO - API object that needs to be added (optional)
      _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
    • deleteMCPServerRevisionCall

      public okhttp3.Call deleteMCPServerRevisionCall(String mcpServerId, String revisionId, ApiCallback _callback) throws ApiException
      Build call for deleteMCPServerRevision
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      revisionId - Revision ID of an API (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • deleteMCPServerRevision

      public APIRevisionListDTO deleteMCPServerRevision(String mcpServerId, String revisionId) throws ApiException
      Delete a MCP Server Revision Delete a revision of a MCP server.
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      revisionId - Revision ID of an API (required)
      Returns:
      APIRevisionListDTO
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • deleteMCPServerRevisionWithHttpInfo

      public ApiResponse<APIRevisionListDTO> deleteMCPServerRevisionWithHttpInfo(String mcpServerId, String revisionId) throws ApiException
      Delete a MCP Server Revision Delete a revision of a MCP server.
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      revisionId - Revision ID of an API (required)
      Returns:
      ApiResponse<APIRevisionListDTO>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • deleteMCPServerRevisionAsync

      public okhttp3.Call deleteMCPServerRevisionAsync(String mcpServerId, String revisionId, ApiCallback<APIRevisionListDTO> _callback) throws ApiException
      Delete a MCP Server Revision (asynchronously) Delete a revision of a MCP server.
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      revisionId - Revision ID of an API (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
    • deleteMCPServerRevisionDeploymentPendingTaskCall

      public okhttp3.Call deleteMCPServerRevisionDeploymentPendingTaskCall(String mcpServerId, String revisionId, String envName, ApiCallback _callback) throws ApiException
      Build call for deleteMCPServerRevisionDeploymentPendingTask
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      revisionId - Revision ID of an API (required)
      envName - Environment name of an Revision (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • deleteMCPServerRevisionDeploymentPendingTask

      public void deleteMCPServerRevisionDeploymentPendingTask(String mcpServerId, String revisionId, String envName) throws ApiException
      Delete Pending Revision Deployment Workflow Tasks This operation can be used to remove pending revision deployment requests that are in pending state
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      revisionId - Revision ID of an API (required)
      envName - Environment name of an Revision (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • deleteMCPServerRevisionDeploymentPendingTaskWithHttpInfo

      public ApiResponse<Void> deleteMCPServerRevisionDeploymentPendingTaskWithHttpInfo(String mcpServerId, String revisionId, String envName) throws ApiException
      Delete Pending Revision Deployment Workflow Tasks This operation can be used to remove pending revision deployment requests that are in pending state
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      revisionId - Revision ID of an API (required)
      envName - Environment name of an Revision (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • deleteMCPServerRevisionDeploymentPendingTaskAsync

      public okhttp3.Call deleteMCPServerRevisionDeploymentPendingTaskAsync(String mcpServerId, String revisionId, String envName, ApiCallback<Void> _callback) throws ApiException
      Delete Pending Revision Deployment Workflow Tasks (asynchronously) This operation can be used to remove pending revision deployment requests that are in pending state
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      revisionId - Revision ID of an API (required)
      envName - Environment name of an Revision (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
    • deployMCPServerRevisionCall

      public okhttp3.Call deployMCPServerRevisionCall(String mcpServerId, String revisionId, List<APIRevisionDeploymentDTO> apIRevisionDeploymentDTO, ApiCallback _callback) throws ApiException
      Build call for deployMCPServerRevision
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      revisionId - Revision ID of an API (optional)
      apIRevisionDeploymentDTO - Deployment object that needs to be added (optional)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • deployMCPServerRevision

      public List<APIRevisionDeploymentDTO> deployMCPServerRevision(String mcpServerId, String revisionId, List<APIRevisionDeploymentDTO> apIRevisionDeploymentDTO) throws ApiException
      Deploy Revision Deploy a revision of a MCP server.
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      revisionId - Revision ID of an API (optional)
      apIRevisionDeploymentDTO - Deployment object that needs to be added (optional)
      Returns:
      List<APIRevisionDeploymentDTO>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • deployMCPServerRevisionWithHttpInfo

      public ApiResponse<List<APIRevisionDeploymentDTO>> deployMCPServerRevisionWithHttpInfo(String mcpServerId, String revisionId, List<APIRevisionDeploymentDTO> apIRevisionDeploymentDTO) throws ApiException
      Deploy Revision Deploy a revision of a MCP server.
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      revisionId - Revision ID of an API (optional)
      apIRevisionDeploymentDTO - Deployment object that needs to be added (optional)
      Returns:
      ApiResponse<List<APIRevisionDeploymentDTO>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • deployMCPServerRevisionAsync

      public okhttp3.Call deployMCPServerRevisionAsync(String mcpServerId, String revisionId, List<APIRevisionDeploymentDTO> apIRevisionDeploymentDTO, ApiCallback<List<APIRevisionDeploymentDTO>> _callback) throws ApiException
      Deploy Revision (asynchronously) Deploy a revision of a MCP server.
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      revisionId - Revision ID of an API (optional)
      apIRevisionDeploymentDTO - Deployment object that needs to be added (optional)
      _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
    • getMCPServerRevisionCall

      public okhttp3.Call getMCPServerRevisionCall(String mcpServerId, String revisionId, ApiCallback _callback) throws ApiException
      Build call for getMCPServerRevision
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      revisionId - Revision ID of an API (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • getMCPServerRevision

      public APIRevisionDTO getMCPServerRevision(String mcpServerId, String revisionId) throws ApiException
      Retrieve revision of a MCP Server. Retrieve a revision of a MCP server
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      revisionId - Revision ID of an API (required)
      Returns:
      APIRevisionDTO
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getMCPServerRevisionWithHttpInfo

      public ApiResponse<APIRevisionDTO> getMCPServerRevisionWithHttpInfo(String mcpServerId, String revisionId) throws ApiException
      Retrieve revision of a MCP Server. Retrieve a revision of a MCP server
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      revisionId - Revision ID of an API (required)
      Returns:
      ApiResponse<APIRevisionDTO>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getMCPServerRevisionAsync

      public okhttp3.Call getMCPServerRevisionAsync(String mcpServerId, String revisionId, ApiCallback<APIRevisionDTO> _callback) throws ApiException
      Retrieve revision of a MCP Server. (asynchronously) Retrieve a revision of a MCP server
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      revisionId - Revision ID of an API (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
    • getMCPServerRevisionDeploymentsCall

      public okhttp3.Call getMCPServerRevisionDeploymentsCall(String mcpServerId, ApiCallback _callback) throws ApiException
      Build call for getMCPServerRevisionDeployments
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • getMCPServerRevisionDeployments

      public APIRevisionDeploymentListDTO getMCPServerRevisionDeployments(String mcpServerId) throws ApiException
      List Deployments List available deployed revision deployment details of a MCP Server
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      Returns:
      APIRevisionDeploymentListDTO
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getMCPServerRevisionDeploymentsWithHttpInfo

      public ApiResponse<APIRevisionDeploymentListDTO> getMCPServerRevisionDeploymentsWithHttpInfo(String mcpServerId) throws ApiException
      List Deployments List available deployed revision deployment details of a MCP Server
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      Returns:
      ApiResponse<APIRevisionDeploymentListDTO>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getMCPServerRevisionDeploymentsAsync

      public okhttp3.Call getMCPServerRevisionDeploymentsAsync(String mcpServerId, ApiCallback<APIRevisionDeploymentListDTO> _callback) throws ApiException
      List Deployments (asynchronously) List available deployed revision deployment details of a MCP Server
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (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
    • getMCPServerRevisionsCall

      public okhttp3.Call getMCPServerRevisionsCall(String mcpServerId, String query, ApiCallback _callback) throws ApiException
      Build call for getMCPServerRevisions
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      query - (optional)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • getMCPServerRevisions

      public APIRevisionListDTO getMCPServerRevisions(String mcpServerId, String query) throws ApiException
      List Revisions List available revisions of a MCP server.
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      query - (optional)
      Returns:
      APIRevisionListDTO
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getMCPServerRevisionsWithHttpInfo

      public ApiResponse<APIRevisionListDTO> getMCPServerRevisionsWithHttpInfo(String mcpServerId, String query) throws ApiException
      List Revisions List available revisions of a MCP server.
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      query - (optional)
      Returns:
      ApiResponse<APIRevisionListDTO>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getMCPServerRevisionsAsync

      public okhttp3.Call getMCPServerRevisionsAsync(String mcpServerId, String query, ApiCallback<APIRevisionListDTO> _callback) throws ApiException
      List Revisions (asynchronously) List available revisions of a MCP server.
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      query - (optional)
      _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
    • restoreMCPServerRevisionCall

      public okhttp3.Call restoreMCPServerRevisionCall(String mcpServerId, String revisionId, ApiCallback _callback) throws ApiException
      Build call for restoreMCPServerRevision
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      revisionId - Revision ID of an API (optional)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • restoreMCPServerRevision

      public MCPServerDTO restoreMCPServerRevision(String mcpServerId, String revisionId) throws ApiException
      Restore a MCP Server Revision Restore a revision to the current MCP server
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      revisionId - Revision ID of an API (optional)
      Returns:
      MCPServerDTO
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • restoreMCPServerRevisionWithHttpInfo

      public ApiResponse<MCPServerDTO> restoreMCPServerRevisionWithHttpInfo(String mcpServerId, String revisionId) throws ApiException
      Restore a MCP Server Revision Restore a revision to the current MCP server
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      revisionId - Revision ID of an API (optional)
      Returns:
      ApiResponse<MCPServerDTO>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • restoreMCPServerRevisionAsync

      public okhttp3.Call restoreMCPServerRevisionAsync(String mcpServerId, String revisionId, ApiCallback<MCPServerDTO> _callback) throws ApiException
      Restore a MCP Server Revision (asynchronously) Restore a revision to the current MCP server
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      revisionId - Revision ID of an API (optional)
      _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
    • undeployMCPServerRevisionCall

      public okhttp3.Call undeployMCPServerRevisionCall(String mcpServerId, String revisionId, String revisionNumber, Boolean allEnvironments, List<APIRevisionDeploymentDTO> apIRevisionDeploymentDTO, ApiCallback _callback) throws ApiException
      Build call for undeployMCPServerRevision
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      revisionId - Revision ID of an API (optional)
      revisionNumber - Revision Number of an API (optional)
      allEnvironments - (optional, default to false)
      apIRevisionDeploymentDTO - Deployment object that needs to be added (optional)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • undeployMCPServerRevision

      public void undeployMCPServerRevision(String mcpServerId, String revisionId, String revisionNumber, Boolean allEnvironments, List<APIRevisionDeploymentDTO> apIRevisionDeploymentDTO) throws ApiException
      UnDeploy Revision of a MCP Server UnDeploy a revision of a MCP server.
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      revisionId - Revision ID of an API (optional)
      revisionNumber - Revision Number of an API (optional)
      allEnvironments - (optional, default to false)
      apIRevisionDeploymentDTO - Deployment object that needs to be added (optional)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • undeployMCPServerRevisionWithHttpInfo

      public ApiResponse<Void> undeployMCPServerRevisionWithHttpInfo(String mcpServerId, String revisionId, String revisionNumber, Boolean allEnvironments, List<APIRevisionDeploymentDTO> apIRevisionDeploymentDTO) throws ApiException
      UnDeploy Revision of a MCP Server UnDeploy a revision of a MCP server.
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      revisionId - Revision ID of an API (optional)
      revisionNumber - Revision Number of an API (optional)
      allEnvironments - (optional, default to false)
      apIRevisionDeploymentDTO - Deployment object that needs to be added (optional)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • undeployMCPServerRevisionAsync

      public okhttp3.Call undeployMCPServerRevisionAsync(String mcpServerId, String revisionId, String revisionNumber, Boolean allEnvironments, List<APIRevisionDeploymentDTO> apIRevisionDeploymentDTO, ApiCallback<Void> _callback) throws ApiException
      UnDeploy Revision of a MCP Server (asynchronously) UnDeploy a revision of a MCP server.
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      revisionId - Revision ID of an API (optional)
      revisionNumber - Revision Number of an API (optional)
      allEnvironments - (optional, default to false)
      apIRevisionDeploymentDTO - Deployment object that needs to be added (optional)
      _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
    • updateMCPServerDeploymentCall

      public okhttp3.Call updateMCPServerDeploymentCall(String mcpServerId, String deploymentId, APIRevisionDeploymentDTO apIRevisionDeploymentDTO, ApiCallback _callback) throws ApiException
      Build call for updateMCPServerDeployment
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      deploymentId - Base64 URL encoded value of the name of an environment (required)
      apIRevisionDeploymentDTO - Deployment object that needs to be updated (optional)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • updateMCPServerDeployment

      public APIRevisionDeploymentDTO updateMCPServerDeployment(String mcpServerId, String deploymentId, APIRevisionDeploymentDTO apIRevisionDeploymentDTO) throws ApiException
      Update Deployment Update deployment devportal visibility
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      deploymentId - Base64 URL encoded value of the name of an environment (required)
      apIRevisionDeploymentDTO - Deployment object that needs to be updated (optional)
      Returns:
      APIRevisionDeploymentDTO
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • updateMCPServerDeploymentWithHttpInfo

      public ApiResponse<APIRevisionDeploymentDTO> updateMCPServerDeploymentWithHttpInfo(String mcpServerId, String deploymentId, APIRevisionDeploymentDTO apIRevisionDeploymentDTO) throws ApiException
      Update Deployment Update deployment devportal visibility
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      deploymentId - Base64 URL encoded value of the name of an environment (required)
      apIRevisionDeploymentDTO - Deployment object that needs to be updated (optional)
      Returns:
      ApiResponse<APIRevisionDeploymentDTO>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • updateMCPServerDeploymentAsync

      public okhttp3.Call updateMCPServerDeploymentAsync(String mcpServerId, String deploymentId, APIRevisionDeploymentDTO apIRevisionDeploymentDTO, ApiCallback<APIRevisionDeploymentDTO> _callback) throws ApiException
      Update Deployment (asynchronously) Update deployment devportal visibility
      Parameters:
      mcpServerId - **MCP Server ID** consisting of the **UUID** of the MCP Server. (required)
      deploymentId - Base64 URL encoded value of the name of an environment (required)
      apIRevisionDeploymentDTO - Deployment object that needs to be updated (optional)
      _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