Class EnableEngine.Request
java.lang.Object
io.helidon.integrations.common.rest.ApiJsonBuilder<T>
io.helidon.integrations.common.rest.ApiJsonRequest<T>
io.helidon.integrations.vault.VaultRequest<T>
io.helidon.integrations.vault.sys.EnableEngine.Request
- All Implemented Interfaces:
ApiRequest<EnableEngine.Request>
- Enclosing class:
- EnableEngine
Request object. Can be configured with additional headers, query parameters etc.
-
Method Summary
Modifier and TypeMethodDescriptionaddAllowedResponseHeader
(String allowedResponseHeader) Header to whitelist, allowing a plugin to include them in the response.addPassThroughHeader
(String passThroughHeader) Add header to whitelist and pass from the request to the plugin.static EnableEngine.Request
builder()
Fluent API builder for configuring a request.defaultLeaseTtl
(Duration defaultLeaseTtl) Default lease duration.protected void
defaultPath
(String defaultMount) description
(String description) Specifies the human-friendly description of the mount.Secrets engine to enable.forceNoCache
(boolean forceNoCache) Disable caching.maxLeaseTtl
(Duration maxLeaseTtl) Maximum lease duration.Specifies the path where the engine/method will be mounted.protected void
postBuild
(JsonBuilderFactory factory, JsonObjectBuilder payload) Called after adding properties defined in this request.Methods inherited from class io.helidon.integrations.vault.VaultRequest
add, addCommaDelimitedArray, addToCommaDelimitedArray, durationToTtl, preBuild
Methods inherited from class io.helidon.integrations.common.rest.ApiJsonRequest
addHeader, addQueryParam, headers, queryParams, requestId, requestId, requestMediaType, requestMediaType, responseMediaType, responseMediaType
Methods inherited from class io.helidon.integrations.common.rest.ApiJsonBuilder
add, add, add, add, add, add, addBase64, addToArray, addToArray, addToArray, addToArray, addToArray, addToArray, addToObject, addToObject, addToObject, addToObject, addToObject, emptyArray, me, toJson
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.helidon.integrations.common.rest.ApiRequest
toJson
-
Method Details
-
builder
Fluent API builder for configuring a request. The request builder is passed as is, without a build method. The equivalent of a build method isApiJsonBuilder.toJson(jakarta.json.JsonBuilderFactory)
used by theRestApi
.- Returns:
- new request builder
-
engine
Secrets engine to enable. Custom path can be configured throughpath(String)
if supported by the engine.- Parameters:
engine
- secrets engine- Returns:
- updated request
-
path
Specifies the path where the engine/method will be mounted. If no path is defined, the engine/method default path will be used.- Parameters:
path
- path to configure- Returns:
- updated request
-
description
Specifies the human-friendly description of the mount.- Parameters:
description
- description- Returns:
- updated request
-
defaultLeaseTtl
Default lease duration.- Parameters:
defaultLeaseTtl
- lease time to live- Returns:
- updated request
-
maxLeaseTtl
Maximum lease duration.- Parameters:
maxLeaseTtl
- maximum lease time to live- Returns:
- updated request
-
forceNoCache
Disable caching.Defaults to
false
.- Parameters:
forceNoCache
- whether to disable caching- Returns:
- updated request
-
addPassThroughHeader
Add header to whitelist and pass from the request to the plugin.- Parameters:
passThroughHeader
- name of the header- Returns:
- updated request
-
addAllowedResponseHeader
Header to whitelist, allowing a plugin to include them in the response.- Parameters:
allowedResponseHeader
- name of the header- Returns:
- updated request
-
postBuild
Description copied from class:ApiJsonBuilder
Called after adding properties defined in this request.- Overrides:
postBuild
in classApiJsonBuilder<T extends io.helidon.integrations.vault.sys.MountRequest<T>>
- Parameters:
factory
- json factorypayload
- payload builder
-
defaultPath
-