Class BranchesRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
io.apicurio.registry.rest.client.groups.item.artifacts.item.branches.BranchesRequestBuilder
@Generated("com.microsoft.kiota")
public class BranchesRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Manage branches of an artifact.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassReturns a list of all branches in the artifact.classConfiguration for the request such as headers, query parameters, and middleware options.classConfiguration for the request such as headers, query parameters, and middleware options. -
Field Summary
Fields inherited from class com.microsoft.kiota.BaseRequestBuilder
pathParameters, requestAdapter, urlTemplate -
Constructor Summary
ConstructorsConstructorDescriptionBranchesRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newBranchesRequestBuilderand sets the default values.BranchesRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newBranchesRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbyBranchId(String branchId) Manage a single branch.get()Returns a list of all branches in the artifact.get(Consumer<BranchesRequestBuilder.GetRequestConfiguration> requestConfiguration) Returns a list of all branches in the artifact.post(CreateBranch body) Creates a new branch for the artifact.post(CreateBranch body, Consumer<BranchesRequestBuilder.PostRequestConfiguration> requestConfiguration) Creates a new branch for the artifact.com.microsoft.kiota.RequestInformationReturns a list of all branches in the artifact.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<BranchesRequestBuilder.GetRequestConfiguration> requestConfiguration) Returns a list of all branches in the artifact.com.microsoft.kiota.RequestInformationCreates a new branch for the artifact.com.microsoft.kiota.RequestInformationtoPostRequestInformation(CreateBranch body, Consumer<BranchesRequestBuilder.PostRequestConfiguration> requestConfiguration) Creates a new branch for the artifact.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
BranchesRequestBuilder
public BranchesRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newBranchesRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
BranchesRequestBuilder
public BranchesRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newBranchesRequestBuilderand sets the default values.- Parameters:
rawUrl- The raw URL to use for the request builder.requestAdapter- The request adapter to use to execute the requests.
-
-
Method Details
-
byBranchId
Manage a single branch.- Parameters:
branchId- Artifact branch ID. Must follow the "[a-zA-Z0-9._//-+]{1,256}" pattern.- Returns:
- a
WithBranchItemRequestBuilder
-
get
Returns a list of all branches in the artifact. Each branch is a list of version identifiers,ordered from the latest (tip of the branch) to the oldest.This operation can fail for the following reasons:* No artifact with this `groupId` and `artifactId` exists (HTTP error `404`)* A server error occurred (HTTP error `500`)- Returns:
- a
BranchSearchResults - Throws:
ProblemDetails- When receiving a 401 status codeProblemDetails- When receiving a 403 status codeProblemDetails- When receiving a 404 status codeProblemDetails- When receiving a 500 status code
-
get
@Nullable public BranchSearchResults get(@Nullable Consumer<BranchesRequestBuilder.GetRequestConfiguration> requestConfiguration) Returns a list of all branches in the artifact. Each branch is a list of version identifiers,ordered from the latest (tip of the branch) to the oldest.This operation can fail for the following reasons:* No artifact with this `groupId` and `artifactId` exists (HTTP error `404`)* A server error occurred (HTTP error `500`)- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
BranchSearchResults - Throws:
ProblemDetails- When receiving a 401 status codeProblemDetails- When receiving a 403 status codeProblemDetails- When receiving a 404 status codeProblemDetails- When receiving a 500 status code
-
post
Creates a new branch for the artifact. A new branch consists of metadata and alist of versions.This operation can fail for the following reasons:* No artifact with this `groupId` and `artifactId` exists (HTTP error `404`)* A branch with the given `branchId` already exists (HTTP error `409`)* A server error occurred (HTTP error `500`)- Parameters:
body- The request body- Returns:
- a
BranchMetaData - Throws:
ProblemDetails- When receiving a 401 status codeProblemDetails- When receiving a 403 status codeProblemDetails- When receiving a 404 status codeProblemDetails- When receiving a 409 status codeProblemDetails- When receiving a 500 status code
-
post
@Nullable public BranchMetaData post(@Nonnull CreateBranch body, @Nullable Consumer<BranchesRequestBuilder.PostRequestConfiguration> requestConfiguration) Creates a new branch for the artifact. A new branch consists of metadata and alist of versions.This operation can fail for the following reasons:* No artifact with this `groupId` and `artifactId` exists (HTTP error `404`)* A branch with the given `branchId` already exists (HTTP error `409`)* A server error occurred (HTTP error `500`)- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
BranchMetaData - Throws:
ProblemDetails- When receiving a 401 status codeProblemDetails- When receiving a 403 status codeProblemDetails- When receiving a 404 status codeProblemDetails- When receiving a 409 status codeProblemDetails- When receiving a 500 status code
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Returns a list of all branches in the artifact. Each branch is a list of version identifiers,ordered from the latest (tip of the branch) to the oldest.This operation can fail for the following reasons:* No artifact with this `groupId` and `artifactId` exists (HTTP error `404`)* A server error occurred (HTTP error `500`)- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<BranchesRequestBuilder.GetRequestConfiguration> requestConfiguration) Returns a list of all branches in the artifact. Each branch is a list of version identifiers,ordered from the latest (tip of the branch) to the oldest.This operation can fail for the following reasons:* No artifact with this `groupId` and `artifactId` exists (HTTP error `404`)* A server error occurred (HTTP error `500`)- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull CreateBranch body) Creates a new branch for the artifact. A new branch consists of metadata and alist of versions.This operation can fail for the following reasons:* No artifact with this `groupId` and `artifactId` exists (HTTP error `404`)* A branch with the given `branchId` already exists (HTTP error `409`)* A server error occurred (HTTP error `500`)- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull CreateBranch body, @Nullable Consumer<BranchesRequestBuilder.PostRequestConfiguration> requestConfiguration) Creates a new branch for the artifact. A new branch consists of metadata and alist of versions.This operation can fail for the following reasons:* No artifact with this `groupId` and `artifactId` exists (HTTP error `404`)* A branch with the given `branchId` already exists (HTTP error `409`)* A server error occurred (HTTP error `500`)- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
withUrl
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.- Parameters:
rawUrl- The raw URL to use for the request builder.- Returns:
- a
BranchesRequestBuilder
-