Class WithContractItemRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
io.apicurio.registry.rest.client.groups.item.contracts.item.WithContractItemRequestBuilder
@Generated("com.microsoft.kiota")
public class WithContractItemRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Manage a specific ODCS contract.
-
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
ConstructorsConstructorDescriptionWithContractItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newWithContractItemRequestBuilderand sets the default values.WithContractItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newWithContractItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Deletes the ODCS contract artifact.voiddelete(Consumer<WithContractItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Deletes the ODCS contract artifact.get()Returns the ODCS contract YAML for the specified contract.get(Consumer<WithContractItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Returns the ODCS contract YAML for the specified contract.put(InputStream body) Updates an ODCS contract (creates a new version) and re-projects onto the referenced schema artifact.put(InputStream body, Consumer<WithContractItemRequestBuilder.PutRequestConfiguration> requestConfiguration) Updates an ODCS contract (creates a new version) and re-projects onto the referenced schema artifact.com.microsoft.kiota.RequestInformationDeletes the ODCS contract artifact.com.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<WithContractItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Deletes the ODCS contract artifact.com.microsoft.kiota.RequestInformationReturns the ODCS contract YAML for the specified contract.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<WithContractItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Returns the ODCS contract YAML for the specified contract.com.microsoft.kiota.RequestInformationUpdates an ODCS contract (creates a new version) and re-projects onto the referenced schema artifact.com.microsoft.kiota.RequestInformationtoPutRequestInformation(InputStream body, Consumer<WithContractItemRequestBuilder.PutRequestConfiguration> requestConfiguration) Updates an ODCS contract (creates a new version) and re-projects onto the referenced schema artifact.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
WithContractItemRequestBuilder
public WithContractItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newWithContractItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
WithContractItemRequestBuilder
public WithContractItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newWithContractItemRequestBuilderand 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
-
delete
public void delete()Deletes the ODCS contract artifact.- Throws:
ProblemDetails- When receiving a 404 status codeProblemDetails- When receiving a 500 status code
-
delete
public void delete(@Nullable Consumer<WithContractItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Deletes the ODCS contract artifact.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Throws:
ProblemDetails- When receiving a 404 status codeProblemDetails- When receiving a 500 status code
-
get
Returns the ODCS contract YAML for the specified contract.- Returns:
- a
InputStream - Throws:
ProblemDetails- When receiving a 404 status codeProblemDetails- When receiving a 500 status code
-
get
@Nullable public InputStream get(@Nullable Consumer<WithContractItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Returns the ODCS contract YAML for the specified contract.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
InputStream - Throws:
ProblemDetails- When receiving a 404 status codeProblemDetails- When receiving a 500 status code
-
put
Updates an ODCS contract (creates a new version) and re-projects onto the referenced schema artifact.- Parameters:
body- Binary request body- Returns:
- a
OdcsContractResult - Throws:
ProblemDetails- When receiving a 400 status codeProblemDetails- When receiving a 404 status codeProblemDetails- When receiving a 500 status code
-
put
@Nullable public OdcsContractResult put(@Nonnull InputStream body, @Nullable Consumer<WithContractItemRequestBuilder.PutRequestConfiguration> requestConfiguration) Updates an ODCS contract (creates a new version) and re-projects onto the referenced schema artifact.- Parameters:
body- Binary request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
OdcsContractResult - Throws:
ProblemDetails- When receiving a 400 status codeProblemDetails- When receiving a 404 status codeProblemDetails- When receiving a 500 status code
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Deletes the ODCS contract artifact.- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<WithContractItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Deletes the ODCS contract artifact.- 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()Returns the ODCS contract YAML for the specified contract.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<WithContractItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Returns the ODCS contract YAML for the specified contract.- 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 InputStream body) Updates an ODCS contract (creates a new version) and re-projects onto the referenced schema artifact.- Parameters:
body- Binary request body- Returns:
- a
RequestInformation
-
toPutRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPutRequestInformation(@Nonnull InputStream body, @Nullable Consumer<WithContractItemRequestBuilder.PutRequestConfiguration> requestConfiguration) Updates an ODCS contract (creates a new version) and re-projects onto the referenced schema artifact.- Parameters:
body- Binary 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
WithContractItemRequestBuilder
-