Implementation:Treeverse LakeFS Java SDK Model TagCreation
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 create a tag in the lakeFS Java SDK.
Description
The TagCreation class is an auto-generated model object produced by OpenAPI Generator from the lakeFS API specification. It provides type-safe access to tag creation fields through getter/setter methods and supports JSON serialization via Gson.
Usage
Use this model when creating tags that point to specific commits 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/TagCreation.java
- Lines: 1-352
Signature
public class TagCreation {
// Fields with @SerializedName annotations
// Getter/setter methods
// equals, hashCode, toString
// JSON type adapter
}
Import
import io.lakefs.clients.sdk.model.TagCreation;
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| id | String | Yes | ID of the tag to create |
| ref | String | Yes | Reference (commit ID) the tag should point at |
| force | Boolean | No | Force tag creation even if it already exists (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.TagCreation;
TagCreation obj = new TagCreation();
obj.setId("v1.0.0");
obj.setRef("commit123abc");
Related Pages
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment