Class ContractsRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
io.apicurio.registry.rest.client.groups.item.contracts.ContractsRequestBuilder
@Generated("com.microsoft.kiota")
public class ContractsRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Manage ODCS data contracts within a group.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassReturns ODCS contracts in the specified group with pagination.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
ConstructorsConstructorDescriptionContractsRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newContractsRequestBuilderand sets the default values.ContractsRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newContractsRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbyContractId(String contractId) Manage a specific ODCS contract.get()Returns ODCS contracts in the specified group with pagination.get(Consumer<ContractsRequestBuilder.GetRequestConfiguration> requestConfiguration) Returns ODCS contracts in the specified group with pagination.post(InputStream body) Submits an ODCS v3.1 YAML contract.post(InputStream body, Consumer<ContractsRequestBuilder.PostRequestConfiguration> requestConfiguration) Submits an ODCS v3.1 YAML contract.com.microsoft.kiota.RequestInformationReturns ODCS contracts in the specified group with pagination.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<ContractsRequestBuilder.GetRequestConfiguration> requestConfiguration) Returns ODCS contracts in the specified group with pagination.com.microsoft.kiota.RequestInformationSubmits an ODCS v3.1 YAML contract.com.microsoft.kiota.RequestInformationtoPostRequestInformation(InputStream body, Consumer<ContractsRequestBuilder.PostRequestConfiguration> requestConfiguration) Submits an ODCS v3.1 YAML contract.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
ContractsRequestBuilder
public ContractsRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newContractsRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
ContractsRequestBuilder
public ContractsRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newContractsRequestBuilderand 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
-
byContractId
Manage a specific ODCS contract.- Parameters:
contractId- The contract ID.- Returns:
- a
WithContractItemRequestBuilder
-
get
Returns ODCS contracts in the specified group with pagination.- Returns:
- a
List<OdcsContractSummary> - Throws:
ProblemDetails- When receiving a 500 status code
-
get
@Nullable public List<OdcsContractSummary> get(@Nullable Consumer<ContractsRequestBuilder.GetRequestConfiguration> requestConfiguration) Returns ODCS contracts in the specified group with pagination.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
List<OdcsContractSummary> - Throws:
ProblemDetails- When receiving a 500 status code
-
post
Submits an ODCS v3.1 YAML contract. The contract is parsed, stored as an ODCS_CONTRACT artifact, and its contents are projected onto the referenced schema artifact (labels, rules, field tags).- Parameters:
body- Binary request body- Returns:
- a
OdcsContractResult - Throws:
ProblemDetails- When receiving a 400 status codeProblemDetails- When receiving a 500 status code
-
post
@Nullable public OdcsContractResult post(@Nonnull InputStream body, @Nullable Consumer<ContractsRequestBuilder.PostRequestConfiguration> requestConfiguration) Submits an ODCS v3.1 YAML contract. The contract is parsed, stored as an ODCS_CONTRACT artifact, and its contents are projected onto the referenced schema artifact (labels, rules, field tags).- 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 500 status code
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Returns ODCS contracts in the specified group with pagination.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<ContractsRequestBuilder.GetRequestConfiguration> requestConfiguration) Returns ODCS contracts in the specified group with pagination.- 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 InputStream body) Submits an ODCS v3.1 YAML contract. The contract is parsed, stored as an ODCS_CONTRACT artifact, and its contents are projected onto the referenced schema artifact (labels, rules, field tags).- Parameters:
body- Binary request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull InputStream body, @Nullable Consumer<ContractsRequestBuilder.PostRequestConfiguration> requestConfiguration) Submits an ODCS v3.1 YAML contract. The contract is parsed, stored as an ODCS_CONTRACT artifact, and its contents are projected onto the referenced schema artifact (labels, rules, field tags).- 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
ContractsRequestBuilder
-