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.
  • Constructor Details

    • SyncRequestBuilder

      public SyncRequestBuilder(@Nonnull HashMap<String,Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new SyncRequestBuilder and sets the default values.
      Parameters:
      pathParameters - Path parameters for the request
      requestAdapter - The request adapter to use to execute the requests.
    • SyncRequestBuilder

      public SyncRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new SyncRequestBuilder and 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 code
      ProblemDetails - When receiving a 403 status code
      ProblemDetails - When receiving a 409 status code
      ProblemDetails - 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 code
      ProblemDetails - When receiving a 403 status code
      ProblemDetails - When receiving a 409 status code
      ProblemDetails - 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

      @Nonnull public SyncRequestBuilder withUrl(@Nonnull String rawUrl)
      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