Class VersionsRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
io.apicurio.registry.rest.client.v2.groups.item.artifacts.item.versions.VersionsRequestBuilder
@Generated("com.microsoft.kiota")
public class VersionsRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Manage all the versions of an artifact in the registry.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassReturns a list of all versions of 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
ConstructorsConstructorDescriptionVersionsRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newVersionsRequestBuilderand sets the default values.VersionsRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newVersionsRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionManage a single version of a single artifact in the registry.get()Returns a list of all versions of the artifact.get(Consumer<VersionsRequestBuilder.GetRequestConfiguration> requestConfiguration) Returns a list of all versions of the artifact.post(ArtifactContent body) Creates a new version of the artifact by uploading new content.post(ArtifactContent body, Consumer<VersionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Creates a new version of the artifact by uploading new content.com.microsoft.kiota.RequestInformationReturns a list of all versions of the artifact.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<VersionsRequestBuilder.GetRequestConfiguration> requestConfiguration) Returns a list of all versions of the artifact.com.microsoft.kiota.RequestInformationCreates a new version of the artifact by uploading new content.com.microsoft.kiota.RequestInformationtoPostRequestInformation(ArtifactContent body, Consumer<VersionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Creates a new version of the artifact by uploading new content.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
VersionsRequestBuilder
public VersionsRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newVersionsRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
VersionsRequestBuilder
public VersionsRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newVersionsRequestBuilderand 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
-
byVersion
Manage a single version of a single artifact in the registry.- Parameters:
version- The unique identifier of a specific version of the artifact content.- Returns:
- a
WithVersionItemRequestBuilder
-
get
Returns a list of all versions of the artifact. The result set is paged.This operation can fail for the following reasons:* No artifact with this `artifactId` exists (HTTP error `404`)* A server error occurred (HTTP error `500`)- Returns:
- a
VersionSearchResults - Throws:
AuthError- When receiving a 401 status codeAuthError- When receiving a 403 status codeError- When receiving a 404 status codeError- When receiving a 500 status code
-
get
@Nullable public VersionSearchResults get(@Nullable Consumer<VersionsRequestBuilder.GetRequestConfiguration> requestConfiguration) Returns a list of all versions of the artifact. The result set is paged.This operation can fail for the following reasons:* No artifact with this `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
VersionSearchResults - Throws:
AuthError- When receiving a 401 status codeAuthError- When receiving a 403 status codeError- When receiving a 404 status codeError- When receiving a 500 status code
-
post
Creates a new version of the artifact by uploading new content. The configured rules forthe artifact are applied, and if they all pass, the new content is added as the most recent version of the artifact. If any of the rules fail, an error is returned.The body of the request can be the raw content of the new artifact version, or the raw content and a set of references pointing to other artifacts, and the typeof that content should match the artifact's type (for example if the artifact type is `AVRO`then the content of the request should be an Apache Avro document).This operation can fail for the following reasons:* Provided content (request body) was empty (HTTP error `400`)* No artifact with this `artifactId` exists (HTTP error `404`)* The new content violates one of the rules configured for the artifact (HTTP error `409`)* A server error occurred (HTTP error `500`)- Parameters:
body- The request body- Returns:
- a
VersionMetaData - Throws:
AuthError- When receiving a 401 status codeAuthError- When receiving a 403 status codeError- When receiving a 404 status codeRuleViolationError- When receiving a 409 status codeError- When receiving a 500 status code
-
post
@Nullable public VersionMetaData post(@Nonnull ArtifactContent body, @Nullable Consumer<VersionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Creates a new version of the artifact by uploading new content. The configured rules forthe artifact are applied, and if they all pass, the new content is added as the most recent version of the artifact. If any of the rules fail, an error is returned.The body of the request can be the raw content of the new artifact version, or the raw content and a set of references pointing to other artifacts, and the typeof that content should match the artifact's type (for example if the artifact type is `AVRO`then the content of the request should be an Apache Avro document).This operation can fail for the following reasons:* Provided content (request body) was empty (HTTP error `400`)* No artifact with this `artifactId` exists (HTTP error `404`)* The new content violates one of the rules configured for the artifact (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
VersionMetaData - Throws:
AuthError- When receiving a 401 status codeAuthError- When receiving a 403 status codeError- When receiving a 404 status codeRuleViolationError- When receiving a 409 status codeError- When receiving a 500 status code
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Returns a list of all versions of the artifact. The result set is paged.This operation can fail for the following reasons:* No artifact with this `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<VersionsRequestBuilder.GetRequestConfiguration> requestConfiguration) Returns a list of all versions of the artifact. The result set is paged.This operation can fail for the following reasons:* No artifact with this `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 ArtifactContent body) Creates a new version of the artifact by uploading new content. The configured rules forthe artifact are applied, and if they all pass, the new content is added as the most recent version of the artifact. If any of the rules fail, an error is returned.The body of the request can be the raw content of the new artifact version, or the raw content and a set of references pointing to other artifacts, and the typeof that content should match the artifact's type (for example if the artifact type is `AVRO`then the content of the request should be an Apache Avro document).This operation can fail for the following reasons:* Provided content (request body) was empty (HTTP error `400`)* No artifact with this `artifactId` exists (HTTP error `404`)* The new content violates one of the rules configured for the artifact (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 ArtifactContent body, @Nullable Consumer<VersionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Creates a new version of the artifact by uploading new content. The configured rules forthe artifact are applied, and if they all pass, the new content is added as the most recent version of the artifact. If any of the rules fail, an error is returned.The body of the request can be the raw content of the new artifact version, or the raw content and a set of references pointing to other artifacts, and the typeof that content should match the artifact's type (for example if the artifact type is `AVRO`then the content of the request should be an Apache Avro document).This operation can fail for the following reasons:* Provided content (request body) was empty (HTTP error `400`)* No artifact with this `artifactId` exists (HTTP error `404`)* The new content violates one of the rules configured for the artifact (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
VersionsRequestBuilder
-