Class ImagesCompatApi.APIimageCreateRequest
java.lang.Object
io.github.alersrt.pod4j.openapi.api.ImagesCompatApi.APIimageCreateRequest
- Enclosing class:
- ImagesCompatApi
-
Method Summary
Modifier and TypeMethodDescriptionokhttp3.CallbuildCall(ApiCallback _callback) Build call for imageCreateexecute()Execute imageCreate requestokhttp3.CallexecuteAsync(ApiCallback<File> _callback) Execute imageCreate request (asynchronously)Execute imageCreate request with HTTP info returnedSet fromImageSet fromSrcinputImage(File inputImage) Set inputImageSet messageSet platformSet repoSet tagxRegistryAuth(String xRegistryAuth) Set xRegistryAuth
-
Method Details
-
xRegistryAuth
Set xRegistryAuth- Parameters:
xRegistryAuth- A base64-encoded auth configuration. (optional)- Returns:
- APIimageCreateRequest
-
fromImage
Set fromImage- Parameters:
fromImage- Name of the image to pull. The name may include a tag or digest. This parameter may only be used when pulling an image. The pull is cancelled if the HTTP connection is closed. (optional)- Returns:
- APIimageCreateRequest
-
fromSrc
Set fromSrc- Parameters:
fromSrc- Source to import. The value may be a URL from which the image can be retrieved or - to read the image from the request body. This parameter may only be used when importing an image (optional)- Returns:
- APIimageCreateRequest
-
repo
Set repo- Parameters:
repo- Repository name given to an image when it is imported. The repo may include a tag. This parameter may only be used when importing an image. (optional)- Returns:
- APIimageCreateRequest
-
tag
Set tag- Parameters:
tag- Tag or digest. If empty when pulling an image, this causes all tags for the given image to be pulled. (optional)- Returns:
- APIimageCreateRequest
-
message
Set message- Parameters:
message- Set commit message for imported image. (optional)- Returns:
- APIimageCreateRequest
-
platform
Set platform- Parameters:
platform- Platform in the format os[/arch[/variant]] (optional)- Returns:
- APIimageCreateRequest
-
inputImage
Set inputImage- Parameters:
inputImage- Image content if fromSrc parameter was used (optional)- Returns:
- APIimageCreateRequest
-
buildCall
Build call for imageCreate- 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 no error - 404 No such image - 500 Internal server error -
-
execute
Execute imageCreate request- Returns:
- File
- 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 no error - 404 No such image - 500 Internal server error -
-
executeWithHttpInfo
Execute imageCreate request with HTTP info returned- Returns:
- ApiResponse<File>
- 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 no error - 404 No such image - 500 Internal server error -
-
executeAsync
Execute imageCreate 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 no error - 404 No such image - 500 Internal server error -
-