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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassImports registry data that was previously exported using the `/admin/export` operation.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
ConstructorsConstructorDescriptionImportRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newImportRequestBuilderand sets the default values.ImportRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newImportRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionvoidpost(InputStream body) Imports registry data that was previously exported using the `/admin/export` operation.voidpost(InputStream body, Consumer<ImportRequestBuilder.PostRequestConfiguration> requestConfiguration) Imports registry data that was previously exported using the `/admin/export` operation.com.microsoft.kiota.RequestInformationImports registry data that was previously exported using the `/admin/export` operation.com.microsoft.kiota.RequestInformationtoPostRequestInformation(InputStream body, Consumer<ImportRequestBuilder.PostRequestConfiguration> requestConfiguration) Imports registry data that was previously exported using the `/admin/export` operation.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
ImportRequestBuilder
public ImportRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newImportRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
ImportRequestBuilder
public ImportRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newImportRequestBuilderand 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
Imports registry data that was previously exported using the `/admin/export` operation.- Parameters:
body- Binary request body- 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(@Nonnull InputStream body, @Nullable Consumer<ImportRequestBuilder.PostRequestConfiguration> requestConfiguration) Imports registry data that was previously exported using the `/admin/export` operation.- Parameters:
body- Binary request bodyrequestConfiguration- 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(@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 bodyrequestConfiguration- 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
ImportRequestBuilder
-