Class ImagesApi.APIimageBuildLibpodRequest

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

public class ImagesApi.APIimageBuildLibpodRequest extends Object
  • Method Details

    • dockerfile

      public ImagesApi.APIimageBuildLibpodRequest dockerfile(String dockerfile)
      Set dockerfile
      Parameters:
      dockerfile - Path within the build context to the `Dockerfile`. This is ignored if remote is specified and points to an external `Dockerfile`. (optional, default to Dockerfile)
      Returns:
      APIimageBuildLibpodRequest
    • t

      Set t
      Parameters:
      t - A name and optional tag to apply to the image in the `name:tag` format. If you omit the tag, the default latest value is assumed. You can provide several t parameters. (optional, default to latest)
      Returns:
      APIimageBuildLibpodRequest
    • allplatforms

      public ImagesApi.APIimageBuildLibpodRequest allplatforms(Boolean allplatforms)
      Set allplatforms
      Parameters:
      allplatforms - Instead of building for a set of platforms specified using the platform option, inspect the build's base images, and build for all of the platforms that are available. Stages that use *scratch* as a starting point can not be inspected, so at least one non-*scratch* stage must be present for detection to work usefully. (optional, default to false)
      Returns:
      APIimageBuildLibpodRequest
    • extrahosts

      public ImagesApi.APIimageBuildLibpodRequest extrahosts(String extrahosts)
      Set extrahosts
      Parameters:
      extrahosts - TBD Extra hosts to add to /etc/hosts (As of version 1.xx) (optional)
      Returns:
      APIimageBuildLibpodRequest
    • nohosts

      Set nohosts
      Parameters:
      nohosts - Not to create /etc/hosts when building the image (optional)
      Returns:
      APIimageBuildLibpodRequest
    • remote

      Set remote
      Parameters:
      remote - A Git repository URI or HTTP/HTTPS context URI. If the URI points to a single text file, the file’s contents are placed into a file called Dockerfile and the image is built from that file. If the URI points to a tarball, the file is downloaded by the daemon and the contents therein used as the context for the build. If the URI points to a tarball and the dockerfile parameter is also specified, there must be a file with the corresponding path inside the tarball. (As of version 1.xx) (optional)
      Returns:
      APIimageBuildLibpodRequest
    • q

      Set q
      Parameters:
      q - Suppress verbose build output (optional, default to false)
      Returns:
      APIimageBuildLibpodRequest
    • compatvolumes

      public ImagesApi.APIimageBuildLibpodRequest compatvolumes(Boolean compatvolumes)
      Set compatvolumes
      Parameters:
      compatvolumes - Contents of base images to be modified on ADD or COPY only (As of Podman version v5.2) (optional, default to false)
      Returns:
      APIimageBuildLibpodRequest
    • nocache

      Set nocache
      Parameters:
      nocache - Do not use the cache when building the image (As of version 1.xx) (optional, default to false)
      Returns:
      APIimageBuildLibpodRequest
    • cachefrom

      public ImagesApi.APIimageBuildLibpodRequest cachefrom(String cachefrom)
      Set cachefrom
      Parameters:
      cachefrom - JSON array of images used to build cache resolution (As of version 1.xx) (optional)
      Returns:
      APIimageBuildLibpodRequest
    • pull

      Set pull
      Parameters:
      pull - Attempt to pull the image even if an older image exists locally (As of version 1.xx) (optional, default to false)
      Returns:
      APIimageBuildLibpodRequest
    • rm

      Set rm
      Parameters:
      rm - Remove intermediate containers after a successful build (As of version 1.xx) (optional, default to true)
      Returns:
      APIimageBuildLibpodRequest
    • forcerm

      Set forcerm
      Parameters:
      forcerm - Always remove intermediate containers, even upon failure (As of version 1.xx) (optional, default to false)
      Returns:
      APIimageBuildLibpodRequest
    • memory

      Set memory
      Parameters:
      memory - Memory is the upper limit (in bytes) on how much memory running containers can use (As of version 1.xx) (optional)
      Returns:
      APIimageBuildLibpodRequest
    • memswap

      Set memswap
      Parameters:
      memswap - MemorySwap limits the amount of memory and swap together (As of version 1.xx) (optional)
      Returns:
      APIimageBuildLibpodRequest
    • cpushares

      public ImagesApi.APIimageBuildLibpodRequest cpushares(Integer cpushares)
      Set cpushares
      Parameters:
      cpushares - CPUShares (relative weight (As of version 1.xx) (optional)
      Returns:
      APIimageBuildLibpodRequest
    • cpusetcpus

      public ImagesApi.APIimageBuildLibpodRequest cpusetcpus(String cpusetcpus)
      Set cpusetcpus
      Parameters:
      cpusetcpus - CPUSetCPUs in which to allow execution (0-3, 0,1) (As of version 1.xx) (optional)
      Returns:
      APIimageBuildLibpodRequest
    • cpuperiod

      public ImagesApi.APIimageBuildLibpodRequest cpuperiod(Integer cpuperiod)
      Set cpuperiod
      Parameters:
      cpuperiod - CPUPeriod limits the CPU CFS (Completely Fair Scheduler) period (As of version 1.xx) (optional)
      Returns:
      APIimageBuildLibpodRequest
    • cpuquota

      public ImagesApi.APIimageBuildLibpodRequest cpuquota(Integer cpuquota)
      Set cpuquota
      Parameters:
      cpuquota - CPUQuota limits the CPU CFS (Completely Fair Scheduler) quota (As of version 1.xx) (optional)
      Returns:
      APIimageBuildLibpodRequest
    • buildargs

      public ImagesApi.APIimageBuildLibpodRequest buildargs(String buildargs)
      Set buildargs
      Parameters:
      buildargs - JSON map of string pairs denoting build-time variables. For example, the build argument `Foo` with the value of `bar` would be encoded in JSON as `[\"Foo\":\"bar\"]`. For example, buildargs={\"Foo\":\"bar\"}. Note(s): * This should not be used to pass secrets. * The value of buildargs should be URI component encoded before being passed to the API. (As of version 1.xx) (optional)
      Returns:
      APIimageBuildLibpodRequest
    • shmsize

      Set shmsize
      Parameters:
      shmsize - ShmSize is the \"size\" value to use when mounting an shmfs on the container's /dev/shm directory. Default is 64MB (As of version 1.xx) (optional, default to 67108864)
      Returns:
      APIimageBuildLibpodRequest
    • squash

      Set squash
      Parameters:
      squash - Silently ignored. Squash the resulting images layers into a single layer (As of version 1.xx) (optional, default to false)
      Returns:
      APIimageBuildLibpodRequest
    • labels

      Set labels
      Parameters:
      labels - JSON map of key, value pairs to set as labels on the new image (As of version 1.xx) (optional)
      Returns:
      APIimageBuildLibpodRequest
    • layerLabel

      public ImagesApi.APIimageBuildLibpodRequest layerLabel(List<String> layerLabel)
      Set layerLabel
      Parameters:
      layerLabel - Add an intermediate image *label* (e.g. label=*value*) to the intermediate image metadata. (optional)
      Returns:
      APIimageBuildLibpodRequest
    • layers

      Set layers
      Parameters:
      layers - Cache intermediate layers during build. (As of version 1.xx) (optional, default to true)
      Returns:
      APIimageBuildLibpodRequest
    • networkmode

      public ImagesApi.APIimageBuildLibpodRequest networkmode(String networkmode)
      Set networkmode
      Parameters:
      networkmode - Sets the networking mode for the run commands during build. Supported standard values are: * `bridge` limited to containers within a single host, port mapping required for external access * `host` no isolation between host and containers on this network * `none` disable all networking for this container * container:<nameOrID> share networking with given container ---All other values are assumed to be a custom network's name (As of version 1.xx) (optional, default to bridge)
      Returns:
      APIimageBuildLibpodRequest
    • platform

      public ImagesApi.APIimageBuildLibpodRequest platform(String platform)
      Set platform
      Parameters:
      platform - Platform format os[/arch[/variant]] (As of version 1.xx) (optional)
      Returns:
      APIimageBuildLibpodRequest
    • target

      Set target
      Parameters:
      target - Target build stage (As of version 1.xx) (optional)
      Returns:
      APIimageBuildLibpodRequest
    • outputs

      public ImagesApi.APIimageBuildLibpodRequest outputs(String outputs)
      Set outputs
      Parameters:
      outputs - output configuration TBD (As of version 1.xx) (optional)
      Returns:
      APIimageBuildLibpodRequest
    • httpproxy

      public ImagesApi.APIimageBuildLibpodRequest httpproxy(Boolean httpproxy)
      Set httpproxy
      Parameters:
      httpproxy - Inject http proxy environment variables into container (As of version 2.0.0) (optional)
      Returns:
      APIimageBuildLibpodRequest
    • unsetenv

      public ImagesApi.APIimageBuildLibpodRequest unsetenv(List<String> unsetenv)
      Set unsetenv
      Parameters:
      unsetenv - Unset environment variables from the final image. (optional)
      Returns:
      APIimageBuildLibpodRequest
    • unsetlabel

      public ImagesApi.APIimageBuildLibpodRequest unsetlabel(List<String> unsetlabel)
      Set unsetlabel
      Parameters:
      unsetlabel - Unset the image label, causing the label not to be inherited from the base image. (optional)
      Returns:
      APIimageBuildLibpodRequest
    • volume

      Set volume
      Parameters:
      volume - Extra volumes that should be mounted in the build container. (optional)
      Returns:
      APIimageBuildLibpodRequest
    • buildCall

      public okhttp3.Call buildCall(ApiCallback _callback) throws ApiException
      Build call for imageBuildLibpod
      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 OK (As of version 1.xx) -
      400 Bad parameter in request -
      500 Internal server error -
    • execute

      public ImageBuildLibpod200Response execute() throws ApiException
      Execute imageBuildLibpod request
      Returns:
      ImageBuildLibpod200Response
      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 OK (As of version 1.xx) -
      400 Bad parameter in request -
      500 Internal server error -
    • executeWithHttpInfo

      public ApiResponse<ImageBuildLibpod200Response> executeWithHttpInfo() throws ApiException
      Execute imageBuildLibpod request with HTTP info returned
      Returns:
      ApiResponse<ImageBuildLibpod200Response>
      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 OK (As of version 1.xx) -
      400 Bad parameter in request -
      500 Internal server error -
    • executeAsync

      public okhttp3.Call executeAsync(ApiCallback<ImageBuildLibpod200Response> _callback) throws ApiException
      Execute imageBuildLibpod 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 OK (As of version 1.xx) -
      400 Bad parameter in request -
      500 Internal server error -