Class PodsApi.APIplayKubeLibpodRequest
java.lang.Object
io.github.alersrt.pod4j.openapi.api.PodsApi.APIplayKubeLibpodRequest
- Enclosing class:
- PodsApi
-
Method Summary
Modifier and TypeMethodDescriptionannotations(String annotations) Set annotationsSet buildokhttp3.CallbuildCall(ApiCallback _callback) Build call for playKubeLibpodcontentType(String contentType) Set contentTypeexecute()Execute playKubeLibpod requestokhttp3.CallexecuteAsync(ApiCallback<PlayKubeReport> _callback) Execute playKubeLibpod request (asynchronously)Execute playKubeLibpod request with HTTP info returnedSet logDriverlogOptions(List<String> logOptions) Set logOptionsSet networkSet noHostsSet noTruncpublishAllPorts(Boolean publishAllPorts) Set publishAllPortspublishPorts(List<String> publishPorts) Set publishPortsSet replaceSet requestserviceContainer(Boolean serviceContainer) Set serviceContainerSet startSet staticIPsstaticMACs(List<String> staticMACs) Set staticMACsSet tlsVerifySet usernsSet wait
-
Method Details
-
contentType
Set contentType- Parameters:
contentType- (optional, default to plain/text)- Returns:
- APIplayKubeLibpodRequest
-
annotations
Set annotations- Parameters:
annotations- JSON encoded value of annotations (a map[string]string). (optional)- Returns:
- APIplayKubeLibpodRequest
-
logDriver
Set logDriver- Parameters:
logDriver- Logging driver for the containers in the pod. (optional)- Returns:
- APIplayKubeLibpodRequest
-
logOptions
Set logOptions- Parameters:
logOptions- logging driver options (optional)- Returns:
- APIplayKubeLibpodRequest
-
network
Set network- Parameters:
network- USe the network mode or specify an array of networks. (optional)- Returns:
- APIplayKubeLibpodRequest
-
noHosts
Set noHosts- Parameters:
noHosts- do not setup /etc/hosts file in container (optional, default to false)- Returns:
- APIplayKubeLibpodRequest
-
noTrunc
Set noTrunc- Parameters:
noTrunc- use annotations that are not truncated to the Kubernetes maximum length of 63 characters (optional, default to false)- Returns:
- APIplayKubeLibpodRequest
-
publishPorts
Set publishPorts- Parameters:
publishPorts- publish a container's port, or a range of ports, to the host (optional)- Returns:
- APIplayKubeLibpodRequest
-
publishAllPorts
Set publishAllPorts- Parameters:
publishAllPorts- Whether to publish all ports defined in the K8S YAML file (containerPort, hostPort), if false only hostPort will be published (optional)- Returns:
- APIplayKubeLibpodRequest
-
replace
Set replace- Parameters:
replace- replace existing pods and containers (optional, default to false)- Returns:
- APIplayKubeLibpodRequest
-
serviceContainer
Set serviceContainer- Parameters:
serviceContainer- Starts a service container before all pods. (optional, default to false)- Returns:
- APIplayKubeLibpodRequest
-
start
Set start- Parameters:
start- Start the pod after creating it. (optional, default to true)- Returns:
- APIplayKubeLibpodRequest
-
staticIPs
Set staticIPs- Parameters:
staticIPs- Static IPs used for the pods. (optional)- Returns:
- APIplayKubeLibpodRequest
-
staticMACs
Set staticMACs- Parameters:
staticMACs- Static MACs used for the pods. (optional)- Returns:
- APIplayKubeLibpodRequest
-
tlsVerify
Set tlsVerify- Parameters:
tlsVerify- Require HTTPS and verify signatures when contacting registries. (optional, default to true)- Returns:
- APIplayKubeLibpodRequest
-
userns
Set userns- Parameters:
userns- Set the user namespace mode for the pods. (optional)- Returns:
- APIplayKubeLibpodRequest
-
wait
Set wait- Parameters:
wait- Clean up all objects created when a SIGTERM is received or pods exit. (optional, default to false)- Returns:
- APIplayKubeLibpodRequest
-
build
Set build- Parameters:
build- Build the images with corresponding context. (optional)- Returns:
- APIplayKubeLibpodRequest
-
request
Set request- Parameters:
request- Kubernetes YAML file. (optional)- Returns:
- APIplayKubeLibpodRequest
-
buildCall
Build call for playKubeLibpod- 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 PlayKube response - 500 Internal server error -
-
execute
Execute playKubeLibpod request- Returns:
- PlayKubeReport
- 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 PlayKube response - 500 Internal server error -
-
executeWithHttpInfo
Execute playKubeLibpod request with HTTP info returned- Returns:
- ApiResponse<PlayKubeReport>
- 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 PlayKube response - 500 Internal server error -
-
executeAsync
Execute playKubeLibpod 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 PlayKube response - 500 Internal server error -
-