Class SyncRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
io.apicurio.registry.rest.client.admin.gitops.sync.SyncRequestBuilder
@Generated("com.microsoft.kiota")
public class SyncRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Trigger an immediate GitOps synchronization.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration 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
ConstructorsConstructorDescriptionSyncRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSyncRequestBuilderand sets the default values.SyncRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSyncRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionvoidpost()**Experimental.** Requests an immediate synchronization of the GitOps storage.voidpost(Consumer<SyncRequestBuilder.PostRequestConfiguration> requestConfiguration) **Experimental.** Requests an immediate synchronization of the GitOps storage.com.microsoft.kiota.RequestInformation**Experimental.** Requests an immediate synchronization of the GitOps storage.com.microsoft.kiota.RequestInformationtoPostRequestInformation(Consumer<SyncRequestBuilder.PostRequestConfiguration> requestConfiguration) **Experimental.** Requests an immediate synchronization of the GitOps storage.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
SyncRequestBuilder
public SyncRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSyncRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
SyncRequestBuilder
public SyncRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSyncRequestBuilderand 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
-
post
public void post()**Experimental.** Requests an immediate synchronization of the GitOps storage. This resets the poll timer so the next scheduler cycle will poll the Git repository without waiting for the configured poll period.The synchronization happens asynchronously this endpoint returns immediately and the actual sync occurs on the next scheduler cycle.This endpoint is only available when GitOps storage is enabled (`apicurio.storage.kind=gitops`). Returns HTTP 409 (Conflict) if a different storage backend is active.This operation can fail for the following reasons:* GitOps storage is not enabled (HTTP error `409`)* A server error occurred (HTTP error `500`)- Throws:
ProblemDetails- When receiving a 401 status codeProblemDetails- When receiving a 403 status codeProblemDetails- When receiving a 409 status codeProblemDetails- When receiving a 500 status code
-
post
public void post(@Nullable Consumer<SyncRequestBuilder.PostRequestConfiguration> requestConfiguration) **Experimental.** Requests an immediate synchronization of the GitOps storage. This resets the poll timer so the next scheduler cycle will poll the Git repository without waiting for the configured poll period.The synchronization happens asynchronously this endpoint returns immediately and the actual sync occurs on the next scheduler cycle.This endpoint is only available when GitOps storage is enabled (`apicurio.storage.kind=gitops`). Returns HTTP 409 (Conflict) if a different storage backend is active.This operation can fail for the following reasons:* GitOps storage is not enabled (HTTP error `409`)* 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 409 status codeProblemDetails- When receiving a 500 status code
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation()**Experimental.** Requests an immediate synchronization of the GitOps storage. This resets the poll timer so the next scheduler cycle will poll the Git repository without waiting for the configured poll period.The synchronization happens asynchronously this endpoint returns immediately and the actual sync occurs on the next scheduler cycle.This endpoint is only available when GitOps storage is enabled (`apicurio.storage.kind=gitops`). Returns HTTP 409 (Conflict) if a different storage backend is active.This operation can fail for the following reasons:* GitOps storage is not enabled (HTTP error `409`)* A server error occurred (HTTP error `500`)- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nullable Consumer<SyncRequestBuilder.PostRequestConfiguration> requestConfiguration) **Experimental.** Requests an immediate synchronization of the GitOps storage. This resets the poll timer so the next scheduler cycle will poll the Git repository without waiting for the configured poll period.The synchronization happens asynchronously this endpoint returns immediately and the actual sync occurs on the next scheduler cycle.This endpoint is only available when GitOps storage is enabled (`apicurio.storage.kind=gitops`). Returns HTTP 409 (Conflict) if a different storage backend is active.This operation can fail for the following reasons:* GitOps storage is not enabled (HTTP error `409`)* A server error occurred (HTTP error `500`)- Parameters:
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
SyncRequestBuilder
-