Class ContainersCompatApi.APIcontainerAttachRequest

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

public class ContainersCompatApi.APIcontainerAttachRequest extends Object
  • Method Details

    • detachKeys

      public ContainersCompatApi.APIcontainerAttachRequest detachKeys(String detachKeys)
      Set detachKeys
      Parameters:
      detachKeys - keys to use for detaching from the container (optional)
      Returns:
      APIcontainerAttachRequest
    • logs

      Set logs
      Parameters:
      logs - Stream all logs from the container across the connection. Happens before streaming attach (if requested). At least one of logs or stream must be set (optional)
      Returns:
      APIcontainerAttachRequest
    • stream

      Set stream
      Parameters:
      stream - Attach to the container. If unset, and logs is set, only the container's logs will be sent. At least one of stream or logs must be set (optional, default to true)
      Returns:
      APIcontainerAttachRequest
    • stdout

      Set stdout
      Parameters:
      stdout - Attach to container STDOUT (optional)
      Returns:
      APIcontainerAttachRequest
    • stderr

      Set stderr
      Parameters:
      stderr - Attach to container STDERR (optional)
      Returns:
      APIcontainerAttachRequest
    • stdin

      Set stdin
      Parameters:
      stdin - Attach to container STDIN (optional)
      Returns:
      APIcontainerAttachRequest
    • buildCall

      public okhttp3.Call buildCall(ApiCallback _callback) throws ApiException
      Build call for containerAttach
      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
      101 No error, connection has been hijacked for transporting streams. -
      400 Bad parameter in request -
      404 No such container -
      500 Internal server error -
    • execute

      public void execute() throws ApiException
      Execute containerAttach 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
      101 No error, connection has been hijacked for transporting streams. -
      400 Bad parameter in request -
      404 No such container -
      500 Internal server error -
    • executeWithHttpInfo

      public ApiResponse<Void> executeWithHttpInfo() throws ApiException
      Execute containerAttach 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
      101 No error, connection has been hijacked for transporting streams. -
      400 Bad parameter in request -
      404 No such container -
      500 Internal server error -
    • executeAsync

      public okhttp3.Call executeAsync(ApiCallback<Void> _callback) throws ApiException
      Execute containerAttach 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
      101 No error, connection has been hijacked for transporting streams. -
      400 Bad parameter in request -
      404 No such container -
      500 Internal server error -