Class ImagesCompatApi.APIimagePruneRequest
java.lang.Object
io.github.alersrt.pod4j.openapi.api.ImagesCompatApi.APIimagePruneRequest
- Enclosing class:
- ImagesCompatApi
-
Method Summary
Modifier and TypeMethodDescriptionokhttp3.CallbuildCall(ApiCallback _callback) Build call for imagePruneexecute()Execute imagePrune requestokhttp3.CallexecuteAsync(ApiCallback<List<ImageDelete200ResponseInner>> _callback) Execute imagePrune request (asynchronously)Execute imagePrune request with HTTP info returnedSet filters
-
Method Details
-
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:
- APIimagePruneRequest
-
buildCall
Build call for imagePrune- 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 Delete - 500 Internal server error -
-
execute
Execute imagePrune request- Returns:
- List<ImageDelete200ResponseInner>
- 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 Delete - 500 Internal server error -
-
executeWithHttpInfo
Execute imagePrune request with HTTP info returned- Returns:
- ApiResponse<List<ImageDelete200ResponseInner>>
- 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 Delete - 500 Internal server error -
-
executeAsync
public okhttp3.Call executeAsync(ApiCallback<List<ImageDelete200ResponseInner>> _callback) throws ApiException Execute imagePrune 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 Delete - 500 Internal server error -
-