Class PodsApi.APIgenerateKubeLibpodRequest

java.lang.Object
io.github.alersrt.pod4j.openapi.api.PodsApi.APIgenerateKubeLibpodRequest
Enclosing class:
PodsApi

public class PodsApi.APIgenerateKubeLibpodRequest extends Object
  • 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

      public PodsApi.APIgenerateKubeLibpodRequest replicas(Integer 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

      public PodsApi.APIgenerateKubeLibpodRequest podmanOnly(Boolean 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

      public okhttp3.Call buildCall(ApiCallback _callback) throws ApiException
      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

      public File execute() throws ApiException
      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

      public ApiResponse<File> executeWithHttpInfo() throws ApiException
      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

      public okhttp3.Call executeAsync(ApiCallback<File> _callback) throws ApiException
      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 -