Class DeploymentApi

java.lang.Object
dev.restate.admin.api.DeploymentApi

public class DeploymentApi extends Object
  • Constructor Details

    • DeploymentApi

      public DeploymentApi()
    • DeploymentApi

      public DeploymentApi(ApiClient apiClient)
  • Method Details

    • getApiException

      protected ApiException getApiException(String operationId, HttpResponse<InputStream> response) throws IOException
      Throws:
      IOException
    • createDeployment

      public RegisterDeploymentResponse createDeployment(RegisterDeploymentRequest registerDeploymentRequest) throws ApiException
      Create deployment Create deployment. Restate will invoke the endpoint to gather additional information required for registration, such as the services exposed by the deployment. If the deployment is already registered, this method will fail unless `force` is set to `true`.
      Parameters:
      registerDeploymentRequest - (required)
      Returns:
      RegisterDeploymentResponse
      Throws:
      ApiException - if fails to make API call
    • createDeploymentWithHttpInfo

      public ApiResponse<RegisterDeploymentResponse> createDeploymentWithHttpInfo(RegisterDeploymentRequest registerDeploymentRequest) throws ApiException
      Create deployment Create deployment. Restate will invoke the endpoint to gather additional information required for registration, such as the services exposed by the deployment. If the deployment is already registered, this method will fail unless `force` is set to `true`.
      Parameters:
      registerDeploymentRequest - (required)
      Returns:
      ApiResponse<RegisterDeploymentResponse>
      Throws:
      ApiException - if fails to make API call
    • deleteDeployment

      public void deleteDeployment(String deployment, Boolean force) throws ApiException
      Delete deployment Delete deployment. Currently it's supported to remove a deployment only using the force flag
      Parameters:
      deployment - Deployment identifier (required)
      force - If true, the deployment will be forcefully deleted. This might break in-flight invocations, use with caution. (optional)
      Throws:
      ApiException - if fails to make API call
    • deleteDeploymentWithHttpInfo

      public ApiResponse<Void> deleteDeploymentWithHttpInfo(String deployment, Boolean force) throws ApiException
      Delete deployment Delete deployment. Currently it's supported to remove a deployment only using the force flag
      Parameters:
      deployment - Deployment identifier (required)
      force - If true, the deployment will be forcefully deleted. This might break in-flight invocations, use with caution. (optional)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - if fails to make API call
    • getDeployment

      public DetailedDeploymentResponse getDeployment(String deployment) throws ApiException
      Get deployment Get deployment metadata
      Parameters:
      deployment - Deployment identifier (required)
      Returns:
      DetailedDeploymentResponse
      Throws:
      ApiException - if fails to make API call
    • getDeploymentWithHttpInfo

      public ApiResponse<DetailedDeploymentResponse> getDeploymentWithHttpInfo(String deployment) throws ApiException
      Get deployment Get deployment metadata
      Parameters:
      deployment - Deployment identifier (required)
      Returns:
      ApiResponse<DetailedDeploymentResponse>
      Throws:
      ApiException - if fails to make API call
    • listDeployments

      public ListDeploymentsResponse listDeployments() throws ApiException
      List deployments List all registered deployments.
      Returns:
      ListDeploymentsResponse
      Throws:
      ApiException - if fails to make API call
    • listDeploymentsWithHttpInfo

      public ApiResponse<ListDeploymentsResponse> listDeploymentsWithHttpInfo() throws ApiException
      List deployments List all registered deployments.
      Returns:
      ApiResponse<ListDeploymentsResponse>
      Throws:
      ApiException - if fails to make API call