Class RulesetRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
io.apicurio.registry.rest.client.admin.contracts.ruleset.RulesetRequestBuilder
@Generated("com.microsoft.kiota")
public class RulesetRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Manage the global contract ruleset.
-
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 global contract ruleset.voiddelete(Consumer<RulesetRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Deletes the global contract ruleset.get()Returns the global contract ruleset that applies to all artifacts.get(Consumer<RulesetRequestBuilder.GetRequestConfiguration> requestConfiguration) Returns the global contract ruleset that applies to all artifacts.put(ContractRuleSet body) Sets the global contract ruleset that applies to all artifacts.put(ContractRuleSet body, Consumer<RulesetRequestBuilder.PutRequestConfiguration> requestConfiguration) Sets the global contract ruleset that applies to all artifacts.com.microsoft.kiota.RequestInformationDeletes the global contract ruleset.com.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<RulesetRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Deletes the global contract ruleset.com.microsoft.kiota.RequestInformationReturns the global contract ruleset that applies to all artifacts.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<RulesetRequestBuilder.GetRequestConfiguration> requestConfiguration) Returns the global contract ruleset that applies to all artifacts.com.microsoft.kiota.RequestInformationSets the global contract ruleset that applies to all artifacts.com.microsoft.kiota.RequestInformationtoPutRequestInformation(ContractRuleSet body, Consumer<RulesetRequestBuilder.PutRequestConfiguration> requestConfiguration) Sets the global contract ruleset that applies to all artifacts.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 global contract ruleset.- Throws:
ProblemDetails- When receiving a 500 status code
-
delete
public void delete(@Nullable Consumer<RulesetRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Deletes the global contract ruleset.- 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 global contract ruleset that applies to all artifacts.- Returns:
- a
ContractRuleSet - Throws:
ProblemDetails- When receiving a 500 status code
-
get
@Nullable public ContractRuleSet get(@Nullable Consumer<RulesetRequestBuilder.GetRequestConfiguration> requestConfiguration) Returns the global contract ruleset that applies to all artifacts.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
ContractRuleSet - Throws:
ProblemDetails- When receiving a 500 status code
-
put
Sets the global contract ruleset that applies to all artifacts.- Parameters:
body- A set of contract rules, divided into domain and migration categories.- Returns:
- a
ContractRuleSet - Throws:
ProblemDetails- When receiving a 500 status code
-
put
@Nullable public ContractRuleSet put(@Nonnull ContractRuleSet body, @Nullable Consumer<RulesetRequestBuilder.PutRequestConfiguration> requestConfiguration) Sets the global contract ruleset that applies to all artifacts.- 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 500 status code
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Deletes the global contract ruleset.- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<RulesetRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Deletes the global contract ruleset.- 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 global contract ruleset that applies to all artifacts.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<RulesetRequestBuilder.GetRequestConfiguration> requestConfiguration) Returns the global contract ruleset that applies to all artifacts.- 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) Sets the global contract ruleset that applies to all artifacts.- 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) Sets the global contract ruleset that applies to all artifacts.- 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
-