Class WithArtifactItemRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
io.apicurio.registry.rest.client.groups.item.artifacts.item.WithArtifactItemRequestBuilder
@Generated("com.microsoft.kiota")
public class WithArtifactItemRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Manage a single artifact.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.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
ConstructorsConstructorDescriptionWithArtifactItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newWithArtifactItemRequestBuilderand sets the default values.WithArtifactItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newWithArtifactItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbranches()Manage branches of an artifact.contract()The contract propertyvoiddelete()Deletes an artifact completely, resulting in all versions of the artifact also beingdeleted.voiddelete(Consumer<WithArtifactItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Deletes an artifact completely, resulting in all versions of the artifact also beingdeleted.get()Gets the metadata for an artifact in the registry, based on the latest version.get(Consumer<WithArtifactItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Gets the metadata for an artifact in the registry, based on the latest version.voidput(EditableArtifactMetaData body) Updates the editable parts of the artifact's metadata.voidput(EditableArtifactMetaData body, Consumer<WithArtifactItemRequestBuilder.PutRequestConfiguration> requestConfiguration) Updates the editable parts of the artifact's metadata.rules()Manage the rules for a single artifact.com.microsoft.kiota.RequestInformationDeletes an artifact completely, resulting in all versions of the artifact also beingdeleted.com.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<WithArtifactItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Deletes an artifact completely, resulting in all versions of the artifact also beingdeleted.com.microsoft.kiota.RequestInformationGets the metadata for an artifact in the registry, based on the latest version.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<WithArtifactItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Gets the metadata for an artifact in the registry, based on the latest version.com.microsoft.kiota.RequestInformationUpdates the editable parts of the artifact's metadata.com.microsoft.kiota.RequestInformationtoPutRequestInformation(EditableArtifactMetaData body, Consumer<WithArtifactItemRequestBuilder.PutRequestConfiguration> requestConfiguration) Updates the editable parts of the artifact's metadata.versions()Manage all the versions of an artifact in the registry.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
WithArtifactItemRequestBuilder
public WithArtifactItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newWithArtifactItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
WithArtifactItemRequestBuilder
public WithArtifactItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newWithArtifactItemRequestBuilderand 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
-
branches
Manage branches of an artifact.- Returns:
- a
BranchesRequestBuilder
-
contract
The contract property- Returns:
- a
ContractRequestBuilder
-
rules
Manage the rules for a single artifact.- Returns:
- a
RulesRequestBuilder
-
versions
Manage all the versions of an artifact in the registry.- Returns:
- a
VersionsRequestBuilder
-
delete
public void delete()Deletes an artifact completely, resulting in all versions of the artifact also beingdeleted. This may fail for one of the following reasons:* No artifact with the `artifactId` exists (HTTP error `404`)* A server error occurred (HTTP error `500`)- Throws:
ProblemDetails- When receiving a 401 status codeProblemDetails- When receiving a 403 status codeProblemDetails- When receiving a 404 status codeProblemDetails- When receiving a 405 status codeProblemDetails- When receiving a 500 status code
-
delete
public void delete(@Nullable Consumer<WithArtifactItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Deletes an artifact completely, resulting in all versions of the artifact also beingdeleted. This may fail for one of the following reasons:* No artifact with the `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.- Throws:
ProblemDetails- When receiving a 401 status codeProblemDetails- When receiving a 403 status codeProblemDetails- When receiving a 404 status codeProblemDetails- When receiving a 405 status codeProblemDetails- When receiving a 500 status code
-
get
Gets the metadata for an artifact in the registry, based on the latest version. If the latest version of the artifact is marked as `DISABLED`, the next available non-disabled version will be used. The returned metadata includesboth generated (read-only) and editable metadata (such as name and description).This operation can fail for the following reasons:* No artifact with this `artifactId` exists or all versions are `DISABLED` (HTTP error `404`)* A server error occurred (HTTP error `500`)- Returns:
- a
ArtifactMetaData - 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 ArtifactMetaData get(@Nullable Consumer<WithArtifactItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Gets the metadata for an artifact in the registry, based on the latest version. If the latest version of the artifact is marked as `DISABLED`, the next available non-disabled version will be used. The returned metadata includesboth generated (read-only) and editable metadata (such as name and description).This operation can fail for the following reasons:* No artifact with this `artifactId` exists or all versions are `DISABLED` (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
ArtifactMetaData - 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
-
put
Updates the editable parts of the artifact's metadata. Not all metadata fields canbe updated. Note that only the properties included will be updated. You can updateonly the name by including only the `name` property in the payload of the request.Properties that are allowed but not present will result in the artifact's metadatanot being changed.This operation can fail for the following reasons:* No artifact with the `artifactId` exists (HTTP error `404`)* A server error occurred (HTTP error `500`)- Parameters:
body- The request body- 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
-
put
public void put(@Nonnull EditableArtifactMetaData body, @Nullable Consumer<WithArtifactItemRequestBuilder.PutRequestConfiguration> requestConfiguration) Updates the editable parts of the artifact's metadata. Not all metadata fields canbe updated. Note that only the properties included will be updated. You can updateonly the name by including only the `name` property in the payload of the request.Properties that are allowed but not present will result in the artifact's metadatanot being changed.This operation can fail for the following reasons:* No artifact with the `artifactId` exists (HTTP error `404`)* A server error occurred (HTTP error `500`)- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- 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
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Deletes an artifact completely, resulting in all versions of the artifact also beingdeleted. This may fail for one of the following reasons:* No artifact with the `artifactId` exists (HTTP error `404`)* A server error occurred (HTTP error `500`)- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<WithArtifactItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Deletes an artifact completely, resulting in all versions of the artifact also beingdeleted. This may fail for one of the following reasons:* No artifact with the `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
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Gets the metadata for an artifact in the registry, based on the latest version. If the latest version of the artifact is marked as `DISABLED`, the next available non-disabled version will be used. The returned metadata includesboth generated (read-only) and editable metadata (such as name and description).This operation can fail for the following reasons:* No artifact with this `artifactId` exists or all versions are `DISABLED` (HTTP error `404`)* A server error occurred (HTTP error `500`)- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<WithArtifactItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Gets the metadata for an artifact in the registry, based on the latest version. If the latest version of the artifact is marked as `DISABLED`, the next available non-disabled version will be used. The returned metadata includesboth generated (read-only) and editable metadata (such as name and description).This operation can fail for the following reasons:* No artifact with this `artifactId` exists or all versions are `DISABLED` (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
-
toPutRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPutRequestInformation(@Nonnull EditableArtifactMetaData body) Updates the editable parts of the artifact's metadata. Not all metadata fields canbe updated. Note that only the properties included will be updated. You can updateonly the name by including only the `name` property in the payload of the request.Properties that are allowed but not present will result in the artifact's metadatanot being changed.This operation can fail for the following reasons:* No artifact with the `artifactId` exists (HTTP error `404`)* A server error occurred (HTTP error `500`)- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPutRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPutRequestInformation(@Nonnull EditableArtifactMetaData body, @Nullable Consumer<WithArtifactItemRequestBuilder.PutRequestConfiguration> requestConfiguration) Updates the editable parts of the artifact's metadata. Not all metadata fields canbe updated. Note that only the properties included will be updated. You can updateonly the name by including only the `name` property in the payload of the request.Properties that are allowed but not present will result in the artifact's metadatanot being changed.This operation can fail for the following reasons:* No artifact with the `artifactId` exists (HTTP error `404`)* 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
WithArtifactItemRequestBuilder
-