Jump to content

Connect Leeroopedia MCP: Equip your AI agents to search best practices, build plans, verify code, diagnose failures, and look up hyperparameter defaults.

Implementation:Treeverse LakeFS Java SDK Model RepositoryCreation

From Leeroopedia


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 new repository in the lakeFS Java SDK.

Description

The RepositoryCreation class is an auto-generated model object produced by OpenAPI Generator from the lakeFS API specification. It provides type-safe access to repository creation fields through getter/setter methods and supports JSON serialization via Gson.

Usage

Use this model when creating new repositories through the lakeFS Java SDK API classes.

Code Reference

Source Location

Signature

public class RepositoryCreation {
    // Fields with @SerializedName annotations
    // Getter/setter methods
    // equals, hashCode, toString
    // JSON type adapter
}

Import

import io.lakefs.clients.sdk.model.RepositoryCreation;

I/O Contract

Inputs

Name Type Required Description
name String Yes Name of the repository to create
storage_id String No Storage backend identifier
storage_namespace String Yes Storage namespace (e.g., s3://bucket/prefix)
default_branch String No Name of the default branch
sample_data Boolean No Whether to populate with sample data (default false)
read_only Boolean No Whether the repository is read-only (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.RepositoryCreation;

RepositoryCreation obj = new RepositoryCreation();
obj.setName("my-repo");
obj.setStorageNamespace("s3://my-bucket/repos/my-repo");
obj.setDefaultBranch("main");

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment