Class PodsApi.APIpodListLibpodRequest

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

public class PodsApi.APIpodListLibpodRequest extends Object
  • Method Details

    • filters

      public PodsApi.APIpodListLibpodRequest filters(String filters)
      Set filters
      Parameters:
      filters - JSON encoded value of the filters (a map[string][]string) to process on the pods list. Available filters: - `id=<pod-id>` Matches all of pod id. - `label=<key>` or `label=<key>:<value>` Matches pods based on the presence of a label alone or a label and a value. - `name=<pod-name>` Matches all of pod name. - `until=<timestamp>` List pods created before this timestamp. The `<timestamp>` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time. - `status=<pod-status>` Pod's status: `stopped`, `running`, `paused`, `exited`, `dead`, `created`, `degraded`. - `network=<pod-network>` Name or full ID of network. - `ctr-names=<pod-ctr-names>` Container name within the pod. - `ctr-ids=<pod-ctr-ids>` Container ID within the pod. - `ctr-status=<pod-ctr-status>` Container status within the pod. - `ctr-number=<pod-ctr-number>` Number of containers in the pod. (optional)
      Returns:
      APIpodListLibpodRequest
    • buildCall

      public okhttp3.Call buildCall(ApiCallback _callback) throws ApiException
      Build call for podListLibpod
      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 List pods -
      400 Bad parameter in request -
      500 Internal server error -
    • execute

      public List<ListPodsReport> execute() throws ApiException
      Execute podListLibpod request
      Returns:
      List<ListPodsReport>
      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 List pods -
      400 Bad parameter in request -
      500 Internal server error -
    • executeWithHttpInfo

      public ApiResponse<List<ListPodsReport>> executeWithHttpInfo() throws ApiException
      Execute podListLibpod request with HTTP info returned
      Returns:
      ApiResponse<List<ListPodsReport>>
      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 List pods -
      400 Bad parameter in request -
      500 Internal server error -
    • executeAsync

      public okhttp3.Call executeAsync(ApiCallback<List<ListPodsReport>> _callback) throws ApiException
      Execute podListLibpod 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 List pods -
      400 Bad parameter in request -
      500 Internal server error -