Class ImagesApi.APIimagePruneLibpodRequest

java.lang.Object
io.github.alersrt.pod4j.openapi.api.ImagesApi.APIimagePruneLibpodRequest
Enclosing class:
ImagesApi

public class ImagesApi.APIimagePruneLibpodRequest extends Object
  • Method Details

    • all

      Set all
      Parameters:
      all - Remove all images not in use by containers, not just dangling ones (optional, default to false)
      Returns:
      APIimagePruneLibpodRequest
    • external

      public ImagesApi.APIimagePruneLibpodRequest external(Boolean external)
      Set external
      Parameters:
      external - Remove images even when they are used by external containers (e.g, by build containers) (optional, default to false)
      Returns:
      APIimagePruneLibpodRequest
    • buildcache

      public ImagesApi.APIimagePruneLibpodRequest buildcache(Boolean buildcache)
      Set buildcache
      Parameters:
      buildcache - Remove persistent build cache created by build instructions such as `--mount=type=cache`. (optional, default to false)
      Returns:
      APIimagePruneLibpodRequest
    • filters

      public ImagesApi.APIimagePruneLibpodRequest filters(String filters)
      Set filters
      Parameters:
      filters - filters to apply to image pruning, encoded as JSON (map[string][]string). Available filters: - `dangling=<boolean>` When set to `true` (or `1`), prune only unused *and* untagged images. When set to `false` (or `0`), all unused images are pruned. - `until=<string>` Prune images 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. - `label` (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or `label!=<key>=<value>`) Prune images with (or without, in case `label!=...` is used) the specified labels. (optional)
      Returns:
      APIimagePruneLibpodRequest
    • buildCall

      public okhttp3.Call buildCall(ApiCallback _callback) throws ApiException
      Build call for imagePruneLibpod
      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 Image Prune -
      500 Internal server error -
    • execute

      public List<PruneReport> execute() throws ApiException
      Execute imagePruneLibpod request
      Returns:
      List<PruneReport>
      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 Image Prune -
      500 Internal server error -
    • executeWithHttpInfo

      public ApiResponse<List<PruneReport>> executeWithHttpInfo() throws ApiException
      Execute imagePruneLibpod request with HTTP info returned
      Returns:
      ApiResponse<List<PruneReport>>
      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 Image Prune -
      500 Internal server error -
    • executeAsync

      public okhttp3.Call executeAsync(ApiCallback<List<PruneReport>> _callback) throws ApiException
      Execute imagePruneLibpod 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 Image Prune -
      500 Internal server error -