Interface CommitResponse


@Immutable public interface CommitResponse
  • Method Details

    • builder

      static org.projectnessie.model.ImmutableCommitResponse.Builder builder()
    • getTargetBranch

      @NotNull @NotNull @NotNull @NotNull Branch getTargetBranch()
      Returns updated information about the branch where the commit was applied.

      Specifically, the hash of the Branch will be the hash of the applied commit.

    • getAddedContents

      @Nullable @Nullable List<CommitResponse.AddedContent> getAddedContents()
    • toAddedContentsMap

      @NonAttribute default Map<ContentKey,String> toAddedContentsMap()
    • contentWithAssignedId

      default <T extends Content> T contentWithAssignedId(ContentKey key, T content)
      If new content has been added to Nessie for the given key, updates the content ID of the given content with the content ID returned by Nessie.

      Returns the content parameter value, if no content for the given key has been added.

      Note: This convenience function only works for REST API v2.