Class RulesetRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
io.apicurio.registry.rest.client.groups.item.artifacts.item.contract.ruleset.RulesetRequestBuilder
@Generated("com.microsoft.kiota")
public class RulesetRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Manage contract ruleset for an artifact (artifact-level).
-
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
ConstructorsConstructorDescriptionRulesetRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newRulesetRequestBuilderand sets the default values.RulesetRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newRulesetRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Deletes the contract ruleset for the artifact.voiddelete(Consumer<RulesetRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Deletes the contract ruleset for the artifact.get()Returns the contract ruleset for the artifact (artifact-level rules that apply to all versions).get(Consumer<RulesetRequestBuilder.GetRequestConfiguration> requestConfiguration) Returns the contract ruleset for the artifact (artifact-level rules that apply to all versions).put(ContractRuleSet body) Creates or replaces the contract ruleset for the artifact.put(ContractRuleSet body, Consumer<RulesetRequestBuilder.PutRequestConfiguration> requestConfiguration) Creates or replaces the contract ruleset for the artifact.com.microsoft.kiota.RequestInformationDeletes the contract ruleset for the artifact.com.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<RulesetRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Deletes the contract ruleset for the artifact.com.microsoft.kiota.RequestInformationReturns the contract ruleset for the artifact (artifact-level rules that apply to all versions).com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<RulesetRequestBuilder.GetRequestConfiguration> requestConfiguration) Returns the contract ruleset for the artifact (artifact-level rules that apply to all versions).com.microsoft.kiota.RequestInformationCreates or replaces the contract ruleset for the artifact.com.microsoft.kiota.RequestInformationtoPutRequestInformation(ContractRuleSet body, Consumer<RulesetRequestBuilder.PutRequestConfiguration> requestConfiguration) Creates or replaces the contract ruleset for the artifact.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
RulesetRequestBuilder
public RulesetRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newRulesetRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
RulesetRequestBuilder
public RulesetRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newRulesetRequestBuilderand 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 contract ruleset for the artifact.- Throws:
ProblemDetails- When receiving a 500 status code
-
delete
public void delete(@Nullable Consumer<RulesetRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Deletes the contract ruleset for the artifact.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Throws:
ProblemDetails- When receiving a 500 status code
-
get
Returns the contract ruleset for the artifact (artifact-level rules that apply to all versions).- Returns:
- a
ContractRuleSet - Throws:
ProblemDetails- When receiving a 404 status codeProblemDetails- When receiving a 500 status code
-
get
@Nullable public ContractRuleSet get(@Nullable Consumer<RulesetRequestBuilder.GetRequestConfiguration> requestConfiguration) Returns the contract ruleset for the artifact (artifact-level rules that apply to all versions).- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
ContractRuleSet - Throws:
ProblemDetails- When receiving a 404 status codeProblemDetails- When receiving a 500 status code
-
put
Creates or replaces the contract ruleset for the artifact.- Parameters:
body- A set of contract rules, divided into domain and migration categories.- Returns:
- a
ContractRuleSet - Throws:
ProblemDetails- When receiving a 400 status codeProblemDetails- When receiving a 500 status code
-
put
@Nullable public ContractRuleSet put(@Nonnull ContractRuleSet body, @Nullable Consumer<RulesetRequestBuilder.PutRequestConfiguration> requestConfiguration) Creates or replaces the contract ruleset for the artifact.- Parameters:
body- A set of contract rules, divided into domain and migration categories.requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
ContractRuleSet - Throws:
ProblemDetails- When receiving a 400 status codeProblemDetails- When receiving a 500 status code
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Deletes the contract ruleset for the artifact.- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<RulesetRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Deletes the contract ruleset for the 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 contract ruleset for the artifact (artifact-level rules that apply to all versions).- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<RulesetRequestBuilder.GetRequestConfiguration> requestConfiguration) Returns the contract ruleset for the artifact (artifact-level rules that apply to all versions).- 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 ContractRuleSet body) Creates or replaces the contract ruleset for the artifact.- Parameters:
body- A set of contract rules, divided into domain and migration categories.- Returns:
- a
RequestInformation
-
toPutRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPutRequestInformation(@Nonnull ContractRuleSet body, @Nullable Consumer<RulesetRequestBuilder.PutRequestConfiguration> requestConfiguration) Creates or replaces the contract ruleset for the artifact.- Parameters:
body- A set of contract rules, divided into domain and migration categories.requestConfiguration- 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
RulesetRequestBuilder
-