Class ContainersApi.APIgenerateSystemdLibpodRequest
java.lang.Object
io.github.alersrt.pod4j.openapi.api.ContainersApi.APIgenerateSystemdLibpodRequest
- Enclosing class:
- ContainersApi
-
Method Summary
Modifier and TypeMethodDescriptionSet _newadditionalEnvVariables(List<String> additionalEnvVariables) Set additionalEnvVariablesSet afterokhttp3.CallbuildCall(ApiCallback _callback) Build call for generateSystemdLibpodcontainerPrefix(String containerPrefix) Set containerPrefixexecute()Execute generateSystemdLibpod requestokhttp3.CallexecuteAsync(ApiCallback<Map<String, String>> _callback) Execute generateSystemdLibpod request (asynchronously)Execute generateSystemdLibpod request with HTTP info returnedSet noHeaderSet podPrefixSet requiresrestartPolicy(String restartPolicy) Set restartPolicyrestartSec(Integer restartSec) Set restartSecSet separatorstartTimeout(Integer startTimeout) Set startTimeoutstopTimeout(Integer stopTimeout) Set stopTimeoutSet useNameSet wants
-
Method Details
-
useName
Set useName- Parameters:
useName- Use container/pod names instead of IDs. (optional, default to false)- Returns:
- APIgenerateSystemdLibpodRequest
-
_new
Set _new- Parameters:
_new- Create a new container instead of starting an existing one. (optional, default to false)- Returns:
- APIgenerateSystemdLibpodRequest
-
noHeader
Set noHeader- Parameters:
noHeader- Do not generate the header including the Podman version and the timestamp. (optional, default to false)- Returns:
- APIgenerateSystemdLibpodRequest
-
startTimeout
Set startTimeout- Parameters:
startTimeout- Start timeout in seconds. (optional, default to 0)- Returns:
- APIgenerateSystemdLibpodRequest
-
stopTimeout
Set stopTimeout- Parameters:
stopTimeout- Stop timeout in seconds. (optional, default to 10)- Returns:
- APIgenerateSystemdLibpodRequest
-
restartPolicy
Set restartPolicy- Parameters:
restartPolicy- Systemd restart-policy. (optional, default to on-failure)- Returns:
- APIgenerateSystemdLibpodRequest
-
containerPrefix
Set containerPrefix- Parameters:
containerPrefix- Systemd unit name prefix for containers. (optional, default to container)- Returns:
- APIgenerateSystemdLibpodRequest
-
podPrefix
Set podPrefix- Parameters:
podPrefix- Systemd unit name prefix for pods. (optional, default to pod)- Returns:
- APIgenerateSystemdLibpodRequest
-
separator
Set separator- Parameters:
separator- Systemd unit name separator between name/id and prefix. (optional, default to -)- Returns:
- APIgenerateSystemdLibpodRequest
-
restartSec
Set restartSec- Parameters:
restartSec- Configures the time to sleep before restarting a service. (optional, default to 0)- Returns:
- APIgenerateSystemdLibpodRequest
-
wants
Set wants- Parameters:
wants- Systemd Wants list for the container or pods. (optional)- Returns:
- APIgenerateSystemdLibpodRequest
-
after
Set after- Parameters:
after- Systemd After list for the container or pods. (optional)- Returns:
- APIgenerateSystemdLibpodRequest
-
requires
Set requires- Parameters:
requires- Systemd Requires list for the container or pods. (optional)- Returns:
- APIgenerateSystemdLibpodRequest
-
additionalEnvVariables
public ContainersApi.APIgenerateSystemdLibpodRequest additionalEnvVariables(List<String> additionalEnvVariables) Set additionalEnvVariables- Parameters:
additionalEnvVariables- Set environment variables to the systemd unit files. (optional)- Returns:
- APIgenerateSystemdLibpodRequest
-
buildCall
Build call for generateSystemdLibpod- Parameters:
_callback- ApiCallback API callback- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Status Code Description Response Headers 200 no error - 500 Internal server error -
-
execute
Execute generateSystemdLibpod request- Returns:
- Map<String, String>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 no error - 500 Internal server error -
-
executeWithHttpInfo
Execute generateSystemdLibpod request with HTTP info returned- Returns:
- ApiResponse<Map<String, String>>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 no error - 500 Internal server error -
-
executeAsync
Execute generateSystemdLibpod request (asynchronously)- Parameters:
_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Status Code Description Response Headers 200 no error - 500 Internal server error -
-