Package dev.restate.admin.api
Class DeploymentApi
java.lang.Object
dev.restate.admin.api.DeploymentApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDeployment
(RegisterDeploymentRequest registerDeploymentRequest) Create deployment Create deployment.createDeploymentWithHttpInfo
(RegisterDeploymentRequest registerDeploymentRequest) Create deployment Create deployment.void
deleteDeployment
(String deployment, Boolean force) Delete deployment Delete deployment.deleteDeploymentWithHttpInfo
(String deployment, Boolean force) Delete deployment Delete deployment.protected ApiException
getApiException
(String operationId, HttpResponse<InputStream> response) getDeployment
(String deployment) Get deployment Get deployment metadatagetDeploymentWithHttpInfo
(String deployment) Get deployment Get deployment metadataList deployments List all registered deployments.List deployments List all registered deployments.updateDeployment
(String deployment, UpdateDeploymentRequest updateDeploymentRequest) Update deployment Update deployment.updateDeploymentWithHttpInfo
(String deployment, UpdateDeploymentRequest updateDeploymentRequest) Update deployment Update deployment.
-
Constructor Details
-
DeploymentApi
public DeploymentApi() -
DeploymentApi
-
-
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
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
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
List deployments List all registered deployments.- Returns:
- ListDeploymentsResponse
- Throws:
ApiException
- if fails to make API call
-
listDeploymentsWithHttpInfo
List deployments List all registered deployments.- Returns:
- ApiResponse<ListDeploymentsResponse>
- Throws:
ApiException
- if fails to make API call
-
updateDeployment
public DetailedDeploymentResponse updateDeployment(String deployment, UpdateDeploymentRequest updateDeploymentRequest) throws ApiException Update deployment Update deployment. Invokes the endpoint and replaces the existing deployment metadata with the discovered information. This is a dangerous operation that should be used only when there are failing invocations on the deployment that cannot be resolved any other way. Sense checks are applied to test that the new deployment is sufficiently similar to the old one.- Parameters:
deployment
- Deployment identifier (required)updateDeploymentRequest
- (required)- Returns:
- DetailedDeploymentResponse
- Throws:
ApiException
- if fails to make API call
-
updateDeploymentWithHttpInfo
public ApiResponse<DetailedDeploymentResponse> updateDeploymentWithHttpInfo(String deployment, UpdateDeploymentRequest updateDeploymentRequest) throws ApiException Update deployment Update deployment. Invokes the endpoint and replaces the existing deployment metadata with the discovered information. This is a dangerous operation that should be used only when there are failing invocations on the deployment that cannot be resolved any other way. Sense checks are applied to test that the new deployment is sufficiently similar to the old one.- Parameters:
deployment
- Deployment identifier (required)updateDeploymentRequest
- (required)- Returns:
- ApiResponse<DetailedDeploymentResponse>
- Throws:
ApiException
- if fails to make API call
-