Package org.projectnessie.client.api
Interface GetReferenceBuilder
-
public interface GetReferenceBuilderRequest builder for "get reference".- Since:
NessieApiV1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetReferenceBuilderfetchAdditionalInfo(boolean fetchAdditionalInfo)Will fetch additional metadata aboutBranchinstances, such as number of commits ahead/behind or the common ancestor in relation to the default branch, and the commit metadata for the HEAD commit.Referenceget()GetReferenceBuilderrefName(@NotNull @Pattern(regexp="^(([0-9a-fA-F]{16,64})|([A-Za-z](((?![.][.])[A-Za-z0-9./_-])*[A-Za-z0-9._-])?))$",message="Reference must be either a reference name or hash, start with a letter, followed by letters, digits, a ./_- character, not end with a slash, not contain .. or consist of the hex representation of 8-32 bytes") String refName)
-
-
-
Method Detail
-
refName
GetReferenceBuilder refName(@NotNull @Pattern(regexp="^(([0-9a-fA-F]{16,64})|([A-Za-z](((?![.][.])[A-Za-z0-9./_-])*[A-Za-z0-9._-])?))$",message="Reference must be either a reference name or hash, start with a letter, followed by letters, digits, a ./_- character, not end with a slash, not contain .. or consist of the hex representation of 8-32 bytes") @NotNull @Pattern(regexp="^(([0-9a-fA-F]{16,64})|([A-Za-z](((?![.][.])[A-Za-z0-9./_-])*[A-Za-z0-9._-])?))$",message="Reference must be either a reference name or hash, start with a letter, followed by letters, digits, a ./_- character, not end with a slash, not contain .. or consist of the hex representation of 8-32 bytes") String refName)
-
fetchAdditionalInfo
GetReferenceBuilder fetchAdditionalInfo(boolean fetchAdditionalInfo)
Will fetch additional metadata aboutBranchinstances, such as number of commits ahead/behind or the common ancestor in relation to the default branch, and the commit metadata for the HEAD commit.- Returns:
GetReferenceBuilder
-
get
Reference get() throws NessieNotFoundException
- Throws:
NessieNotFoundException
-
-