Class ContainersCompatApi.APIimageCommitRequest

java.lang.Object
io.github.alersrt.pod4j.openapi.api.ContainersCompatApi.APIimageCommitRequest
Enclosing class:
ContainersCompatApi

public class ContainersCompatApi.APIimageCommitRequest extends Object
  • Method Details

    • container

      public ContainersCompatApi.APIimageCommitRequest container(String container)
      Set container
      Parameters:
      container - the name or ID of a container (optional)
      Returns:
      APIimageCommitRequest
    • repo

      Set repo
      Parameters:
      repo - the repository name for the created image (optional)
      Returns:
      APIimageCommitRequest
    • tag

      Set tag
      Parameters:
      tag - tag name for the created image (optional)
      Returns:
      APIimageCommitRequest
    • comment

      Set comment
      Parameters:
      comment - commit message (optional)
      Returns:
      APIimageCommitRequest
    • author

      Set author
      Parameters:
      author - author of the image (optional)
      Returns:
      APIimageCommitRequest
    • pause

      Set pause
      Parameters:
      pause - pause the container before committing it (optional)
      Returns:
      APIimageCommitRequest
    • changes

      Set changes
      Parameters:
      changes - instructions to apply while committing in Dockerfile format (optional)
      Returns:
      APIimageCommitRequest
    • squash

      Set squash
      Parameters:
      squash - squash newly built layers into a single new layer (optional)
      Returns:
      APIimageCommitRequest
    • buildCall

      public okhttp3.Call buildCall(ApiCallback _callback) throws ApiException
      Build call for imageCommit
      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
      201 no error -
      404 No such image -
      500 Internal server error -
    • execute

      public void execute() throws ApiException
      Execute imageCommit request
      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
      201 no error -
      404 No such image -
      500 Internal server error -
    • executeWithHttpInfo

      public ApiResponse<Void> executeWithHttpInfo() throws ApiException
      Execute imageCommit request with HTTP info returned
      Returns:
      ApiResponse<Void>
      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
      201 no error -
      404 No such image -
      500 Internal server error -
    • executeAsync

      public okhttp3.Call executeAsync(ApiCallback<Void> _callback) throws ApiException
      Execute imageCommit 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
      201 no error -
      404 No such image -
      500 Internal server error -