Add some missed options to UpdateContainerCmd by MillQK · Pull Request #2389 · docker-java/docker-java · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

Add some missed options to UpdateContainerCmd #2389

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docker-java-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@
<configuration>
<parameter>
<excludes>
<!-- Breaking change -->
<exclude>com.github.dockerjava.api.command.UpdateContainerCmd#getCpuPeriod()</exclude>
<exclude>com.github.dockerjava.api.command.UpdateContainerCmd#withCpuPeriod(java.lang.Integer)</exclude>
<exclude>com.github.dockerjava.api.command.UpdateContainerCmd#getCpuQuota()</exclude>
<exclude>com.github.dockerjava.api.command.UpdateContainerCmd#withCpuQuota(java.lang.Integer)</exclude>
<exclude>com.github.dockerjava.api.command.InspectContainerResponse#getSizeRootFs()</exclude>
<exclude>com.github.dockerjava.api.command.InspectContainerResponse#getSizeRw()</exclude>
</excludes>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
package com.github.dockerjava.api.command;

import com.github.dockerjava.api.model.BlkioRateDevice;
import com.github.dockerjava.api.model.BlkioWeightDevice;
import com.github.dockerjava.api.model.Device;
import com.github.dockerjava.api.model.DeviceRequest;
import com.github.dockerjava.api.model.RestartPolicy;
import com.github.dockerjava.api.model.Ulimit;
import com.github.dockerjava.api.model.UpdateContainerResponse;

import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
import java.util.List;

/**
* @author Kanstantsin Shautsou
Expand All @@ -13,22 +20,47 @@ public interface UpdateContainerCmd extends SyncDockerCmd<UpdateContainerRespons
@CheckForNull
String getContainerId();

UpdateContainerCmd withContainerId(@Nonnull String containerId);

@CheckForNull
Integer getBlkioWeight();

UpdateContainerCmd withBlkioWeight(Integer blkioWeight);

UpdateContainerCmd withContainerId(@Nonnull String containerId);
@CheckForNull
List<BlkioWeightDevice> getBlkioWeightDevice();

UpdateContainerCmd withBlkioWeightDevice(List<BlkioWeightDevice> blkioWeightDevice);

@CheckForNull
Integer getCpuPeriod();
List<BlkioRateDevice> getBlkioDeviceReadBps();

UpdateContainerCmd withCpuPeriod(Integer cpuPeriod);
UpdateContainerCmd withBlkioDeviceReadBps(List<BlkioRateDevice> blkioDeviceReadBps);

@CheckForNull
Integer getCpuQuota();
List<BlkioRateDevice> getBlkioDeviceWriteBps();

UpdateContainerCmd withCpuQuota(Integer cpuQuota);
UpdateContainerCmd withBlkioDeviceWriteBps(List<BlkioRateDevice> blkioDeviceWriteBps);

@CheckForNull
List<BlkioRateDevice> getBlkioDeviceReadIOps();

UpdateContainerCmd withBlkioDeviceReadIOps(List<BlkioRateDevice> blkioDeviceReadIOps);

@CheckForNull
List<BlkioRateDevice> getBlkioDeviceWriteIOps();

UpdateContainerCmd withBlkioDeviceWriteIOps(List<BlkioRateDevice> blkioDeviceWriteIOps);

@CheckForNull
Long getCpuPeriod();

UpdateContainerCmd withCpuPeriod(Long cpuPeriod);

@CheckForNull
Long getCpuQuota();

UpdateContainerCmd withCpuQuota(Long cpuQuota);

@CheckForNull
String getCpusetCpus();
Expand All @@ -45,6 +77,31 @@ public interface UpdateContainerCmd extends SyncDockerCmd<UpdateContainerRespons

UpdateContainerCmd withCpuShares(Integer cpuShares);

@CheckForNull
Long getCpuRealtimePeriod();

UpdateContainerCmd withCpuRealtimePeriod(Long cpuRealtimePeriod);

@CheckForNull
Long getCpuRealtimeRuntime();

UpdateContainerCmd withCpuRealtimeRuntime(Long cpuRealtimeRuntime);

@CheckForNull
List<Device> getDevices();

UpdateContainerCmd withDevices(List<Device> devices);

@CheckForNull
List<String> getDeviceCgroupRules();

UpdateContainerCmd withDeviceCgroupRules(List<String> deviceCgroupRules);

@CheckForNull
List<DeviceRequest> getDeviceRequests();

UpdateContainerCmd withDeviceRequests(List<DeviceRequest> deviceRequests);

@CheckForNull
Long getKernelMemory();

Expand All @@ -65,6 +122,36 @@ public interface UpdateContainerCmd extends SyncDockerCmd<UpdateContainerRespons

UpdateContainerCmd withMemorySwap(Long memorySwap);

@CheckForNull
Long getNanoCPUs();

UpdateContainerCmd withNanoCPUs(Long nanoCPUs);

@CheckForNull
Boolean getOomKillDisable();

UpdateContainerCmd withOomKillDisable(Boolean oomKillDisable);

@CheckForNull
Boolean getInit();

UpdateContainerCmd withInit(Boolean init);

@CheckForNull
Long getPidsLimit();

UpdateContainerCmd withPidsLimit(Long pidsLimit);

@CheckForNull
List<Ulimit> getUlimits();

UpdateContainerCmd withUlimits(List<Ulimit> ulimits);

@CheckForNull
RestartPolicy getRestartPolicy();

UpdateContainerCmd withRestartPolicy(RestartPolicy restartPolicy);

interface Exec extends DockerCmdSyncExec<UpdateContainerCmd, UpdateContainerResponse> {
}
}
Loading

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.