Implementation:Treeverse LakeFS Java SDK Model RevertCreation
Appearance
| Knowledge Sources | |
|---|---|
| Domains | Java_SDK, Data_Model |
| Last Updated | 2026-02-08 00:00 GMT |
Overview
Concrete data transfer object representing a request to revert a commit in the lakeFS Java SDK.
Description
The RevertCreation class is an auto-generated model object produced by OpenAPI Generator from the lakeFS API specification. It provides type-safe access to revert operation fields through getter/setter methods and supports JSON serialization via Gson.
Usage
Use this model when reverting commits on a branch through the lakeFS Java SDK API classes.
Code Reference
Source Location
- Repository: Treeverse_LakeFS
- File: clients/java/src/main/java/io/lakefs/clients/sdk/model/RevertCreation.java
- Lines: 1-410
Signature
public class RevertCreation {
// Fields with @SerializedName annotations
// Getter/setter methods
// equals, hashCode, toString
// JSON type adapter
}
Import
import io.lakefs.clients.sdk.model.RevertCreation;
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| ref | String | Yes | Reference to the commit to revert |
| commit_overrides | CommitOverrides | No | Optional overrides for the revert commit message and metadata |
| parent_number | Integer | Yes | Parent number for reverting merge commits |
| force | Boolean | No | Force the revert operation (default false) |
| allow_empty | Boolean | No | Allow revert with no changes (default false) |
Outputs
| Name | Type | Description |
|---|---|---|
| JSON | String | Serialized JSON representation of the object |
Usage Examples
Creating an Instance
import io.lakefs.clients.sdk.model.RevertCreation;
RevertCreation obj = new RevertCreation();
obj.setRef("commit123abc");
obj.setParentNumber(1);
Related Pages
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment