Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Treeverse LakeFS Java SDK Model PullRequest

From Leeroopedia
Revision as of 16:58, 16 February 2026 by Admin (talk | contribs) (Auto-imported from implementations/Treeverse_LakeFS_Java_SDK_Model_PullRequest.md)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Knowledge Sources
Domains Java_SDK, Data_Model
Last Updated 2026-02-08 00:00 GMT

Overview

Concrete data transfer object representing a pull request in the lakeFS Java SDK.

Description

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

Usage

Use this model when working with pull requests for branch review workflows through the lakeFS Java SDK API classes.

Code Reference

Source Location

Signature

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

Import

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

I/O Contract

Inputs

Name Type Required Description
status StatusEnum Yes Pull request status (open, closed, merged)
title String Yes Title of the pull request
description String No Detailed description of the pull request
id String Yes Unique identifier for the pull request
creation_date OffsetDateTime Yes Timestamp when the pull request was created
author String Yes Author of the pull request
source_branch String Yes Source branch to merge from
destination_branch String Yes Destination branch to merge into
merged_commit_id String No Commit ID if the pull request was merged
closed_date OffsetDateTime No Timestamp when the pull request was closed

Outputs

Name Type Description
JSON String Serialized JSON representation of the object

Usage Examples

Creating an Instance

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

PullRequest obj = new PullRequest();
obj.setTitle("Add new dataset");
obj.setStatus(PullRequest.StatusEnum.OPEN);
obj.setSourceBranch("feature-branch");
obj.setDestinationBranch("main");

Related Pages

Page Connections

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