Class ImportRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
io.apicurio.registry.rest.client.admin.importescaped.ImportRequestBuilder

@Generated("com.microsoft.kiota") public class ImportRequestBuilder extends com.microsoft.kiota.BaseRequestBuilder
Provides a way to import data into the registry.
  • Constructor Details

    • ImportRequestBuilder

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

      public ImportRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new ImportRequestBuilder 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(@Nonnull InputStream body)
      Imports registry data that was previously exported using the `/admin/export` operation.
      Parameters:
      body - Binary request body
      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(@Nonnull InputStream body, @Nullable Consumer<ImportRequestBuilder.PostRequestConfiguration> requestConfiguration)
      Imports registry data that was previously exported using the `/admin/export` operation.
      Parameters:
      body - Binary request body
      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(@Nonnull InputStream body)
      Imports registry data that was previously exported using the `/admin/export` operation.
      Parameters:
      body - Binary request body
      Returns:
      a RequestInformation
    • toPostRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull InputStream body, @Nullable Consumer<ImportRequestBuilder.PostRequestConfiguration> requestConfiguration)
      Imports registry data that was previously exported using the `/admin/export` operation.
      Parameters:
      body - Binary request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

      @Nonnull public ImportRequestBuilder 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 ImportRequestBuilder