Interface NessieApiV2
-
- All Superinterfaces:
java.lang.AutoCloseable,NessieApi,NessieApiV1
- All Known Implementing Classes:
HttpApiV2
public interface NessieApiV2 extends NessieApiV1
Interface for the Nessie V2 API implementation.At the java client level this API uses the same builder classes and model types as API v1, however the behaviour of some API methods is different.
Most changes between v1 and v2 exist at the REST level (HTTP).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description AssignBranchBuilderassignBranch()Deprecated.UseassignReference().asBranch()instead.AssignReferenceBuilder<org.projectnessie.model.Reference>assignReference()Update a branch or a tag (make it point to an arbitrary commit).AssignTagBuilderassignTag()Deprecated.UseassignReference().asTag()instead.default CreateNamespaceBuildercreateNamespace()Create a singleNamespace.DeleteBranchBuilderdeleteBranch()Deprecated.UsedeleteReference().asBranch()instead.default DeleteNamespaceBuilderdeleteNamespace()Delete a singleNamespace.DeleteReferenceBuilder<org.projectnessie.model.Reference>deleteReference()Delete a branch or a tag.DeleteTagBuilderdeleteTag()Deprecated.UsedeleteReference().asTag()instead.default GetMultipleNamespacesBuildergetMultipleNamespaces()Fetch one or moreNamespaces based on a given prefix.default GetNamespaceBuildergetNamespace()Fetch a singleNamespace.default GetRefLogBuildergetRefLog()Deprecated.GetRepositoryConfigBuildergetRepositoryConfig()ReferenceHistoryBuilderreferenceHistory()Retrieve the recorded recent history of a reference.default UpdateNamespaceBuilderupdateProperties()Updates properties of aNamespace.UpdateRepositoryConfigBuilderupdateRepositoryConfig()-
Methods inherited from interface org.projectnessie.client.api.NessieApiV1
commitMultipleOperations, createReference, getAllReferences, getCommitLog, getConfig, getContent, getDefaultBranch, getDiff, getEntries, getReference, mergeRefIntoBranch, transplantCommitsIntoBranch
-
-
-
-
Method Detail
-
getRepositoryConfig
GetRepositoryConfigBuilder getRepositoryConfig()
-
updateRepositoryConfig
UpdateRepositoryConfigBuilder updateRepositoryConfig()
-
deleteReference
DeleteReferenceBuilder<org.projectnessie.model.Reference> deleteReference()
Delete a branch or a tag.
-
assignReference
AssignReferenceBuilder<org.projectnessie.model.Reference> assignReference()
Update a branch or a tag (make it point to an arbitrary commit).
-
assignTag
@Deprecated AssignTagBuilder assignTag()
Deprecated.UseassignReference().asTag()instead.Update a tag.- Specified by:
assignTagin interfaceNessieApiV1
-
assignBranch
@Deprecated AssignBranchBuilder assignBranch()
Deprecated.UseassignReference().asBranch()instead.Update a branch.- Specified by:
assignBranchin interfaceNessieApiV1
-
deleteTag
@Deprecated DeleteTagBuilder deleteTag()
Deprecated.UsedeleteReference().asTag()instead.Delete a tag.- Specified by:
deleteTagin interfaceNessieApiV1
-
deleteBranch
@Deprecated DeleteBranchBuilder deleteBranch()
Deprecated.UsedeleteReference().asBranch()instead.Delete a branch.- Specified by:
deleteBranchin interfaceNessieApiV1
-
getRefLog
@Deprecated default GetRefLogBuilder getRefLog()
Deprecated.Description copied from interface:NessieApiV1Retrieve the reflog from the HEAD of the RefLog resource, potentially truncated by the backend.The Nessie reflog in this form is deprecated, likely for removal.
Retrieves up to
maxRecordsrefLog-entries starting at the HEAD of the RefLog resource. The backend may respect the givenmaxrecords hint, but return less or more entries. Backends may also cap the returned entries at a hard-coded limit, the default REST server implementation has such a hard-coded limit.Invoking
getRefLog()does not guarantee to return all reflog entries, because the result can be truncated by the backend.To implement paging, check
RefLogResponse.isHasMore()and, iftrue, pass the value ofRefLogResponse.getToken()in the next invocation ofgetRefLog()as thepageTokenparameter.- Specified by:
getRefLogin interfaceNessieApiV1
-
getNamespace
default GetNamespaceBuilder getNamespace()
Description copied from interface:NessieApiV1Fetch a singleNamespace.- Specified by:
getNamespacein interfaceNessieApiV1
-
getMultipleNamespaces
default GetMultipleNamespacesBuilder getMultipleNamespaces()
Description copied from interface:NessieApiV1Fetch one or moreNamespaces based on a given prefix.- Specified by:
getMultipleNamespacesin interfaceNessieApiV1
-
createNamespace
default CreateNamespaceBuilder createNamespace()
Description copied from interface:NessieApiV1Create a singleNamespace.- Specified by:
createNamespacein interfaceNessieApiV1
-
deleteNamespace
default DeleteNamespaceBuilder deleteNamespace()
Description copied from interface:NessieApiV1Delete a singleNamespace.- Specified by:
deleteNamespacein interfaceNessieApiV1
-
updateProperties
default UpdateNamespaceBuilder updateProperties()
Description copied from interface:NessieApiV1Updates properties of aNamespace.- Specified by:
updatePropertiesin interfaceNessieApiV1
-
referenceHistory
ReferenceHistoryBuilder referenceHistory()
Retrieve the recorded recent history of a reference.A reference's history is a size and time limited record of changes of the reference's current pointer, aka HEAD. The size and time limits are configured in the Nessie server configuration.
-
-