Class ContainersApi.APIgenerateKubeLibpodRequest
java.lang.Object
io.github.alersrt.pod4j.openapi.api.ContainersApi.APIgenerateKubeLibpodRequest
- Enclosing class:
- ContainersApi
-
Method Summary
Modifier and TypeMethodDescriptionokhttp3.CallbuildCall(ApiCallback _callback) Build call for generateKubeLibpodexecute()Execute generateKubeLibpod requestokhttp3.CallexecuteAsync(ApiCallback<File> _callback) Execute generateKubeLibpod request (asynchronously)Execute generateKubeLibpod request with HTTP info returnedSet noTruncpodmanOnly(Boolean podmanOnly) Set podmanOnlySet replicasSet serviceSet type
-
Method Details
-
service
Set service- Parameters:
service- Generate YAML for a Kubernetes service object. (optional, default to false)- Returns:
- APIgenerateKubeLibpodRequest
-
type
Set type- Parameters:
type- Generate YAML for the given Kubernetes kind. (optional, default to pod)- Returns:
- APIgenerateKubeLibpodRequest
-
replicas
Set replicas- Parameters:
replicas- Set the replica number for Deployment kind. (optional, default to 0)- Returns:
- APIgenerateKubeLibpodRequest
-
noTrunc
Set noTrunc- Parameters:
noTrunc- don't truncate annotations to the Kubernetes maximum length of 63 characters (optional, default to false)- Returns:
- APIgenerateKubeLibpodRequest
-
podmanOnly
Set podmanOnly- Parameters:
podmanOnly- add podman-only reserved annotations in generated YAML file (cannot be used by Kubernetes) (optional, default to false)- Returns:
- APIgenerateKubeLibpodRequest
-
buildCall
Build call for generateKubeLibpod- 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 Kubernetes YAML file describing pod - 500 Internal server error -
-
execute
Execute generateKubeLibpod request- Returns:
- File
- 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 Kubernetes YAML file describing pod - 500 Internal server error -
-
executeWithHttpInfo
Execute generateKubeLibpod request with HTTP info returned- Returns:
- ApiResponse<File>
- 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 Kubernetes YAML file describing pod - 500 Internal server error -
-
executeAsync
Execute generateKubeLibpod 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 Kubernetes YAML file describing pod - 500 Internal server error -
-