Interface NessieApiV2
- All Superinterfaces:
AutoCloseable,NessieApi,NessieApiV1
- All Known Implementing Classes:
HttpApiV2
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
Modifier and TypeMethodDescriptionDeprecated.AssignReferenceBuilder<org.projectnessie.model.Reference> Update a branch or a tag (make it point to an arbitrary commit).Deprecated.UseassignReference().asTag()instead.default CreateNamespaceBuilderCreate a singleNamespace.Deprecated.UsedeleteReference().asBranch()instead.default DeleteNamespaceBuilderDelete a singleNamespace.DeleteReferenceBuilder<org.projectnessie.model.Reference> Delete a branch or a tag.Deprecated.UsedeleteReference().asTag()instead.default GetMultipleNamespacesBuilderFetch one or moreNamespaces based on a given prefix.default GetNamespaceBuilderFetch a singleNamespace.default GetRefLogBuilderDeprecated.Retrieve the recorded recent history of a reference.default UpdateNamespaceBuilderUpdates properties of aNamespace.Methods inherited from interface org.projectnessie.client.api.NessieApi
close, unwrapClientMethods inherited from interface org.projectnessie.client.api.NessieApiV1
commitMultipleOperations, createReference, getAllReferences, getCommitLog, getConfig, getContent, getDefaultBranch, getDiff, getEntries, getReference, mergeRefIntoBranch, transplantCommitsIntoBranch
-
Method Details
-
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.UseassignReference().asTag()instead.Update a tag.- Specified by:
assignTagin interfaceNessieApiV1
-
assignBranch
Deprecated.UseassignReference().asBranch()instead.Update a branch.- Specified by:
assignBranchin interfaceNessieApiV1
-
deleteTag
Deprecated.UsedeleteReference().asTag()instead.Delete a tag.- Specified by:
deleteTagin interfaceNessieApiV1
-
deleteBranch
Deprecated.UsedeleteReference().asBranch()instead.Delete a branch.- Specified by:
deleteBranchin interfaceNessieApiV1
-
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
Description copied from interface:NessieApiV1Fetch a singleNamespace.- Specified by:
getNamespacein interfaceNessieApiV1
-
getMultipleNamespaces
Description copied from interface:NessieApiV1Fetch one or moreNamespaces based on a given prefix.- Specified by:
getMultipleNamespacesin interfaceNessieApiV1
-
createNamespace
Description copied from interface:NessieApiV1Create a singleNamespace.- Specified by:
createNamespacein interfaceNessieApiV1
-
deleteNamespace
Description copied from interface:NessieApiV1Delete a singleNamespace.- Specified by:
deleteNamespacein interfaceNessieApiV1
-
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.
-
assignReference().asBranch()instead.