io.k8s.api.resource.v1alpha3.DeviceClaim Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bl-k8s131 Show documentation
Show all versions of bl-k8s131 Show documentation
Programmatic resource management for Kubernetes
The newest version!
package io.k8s.api.resource.v1alpha3;
import java.util.List;
/**
* DeviceClaim defines how to request devices with a ResourceClaim.
*/
public class DeviceClaim {
public List config;
public List constraints;
public List requests;
/**
* This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
*/
public DeviceClaim config(List config) {
this.config = config;
return this;
}
/**
* These constraints must be satisfied by the set of devices that get allocated for the claim.
*/
public DeviceClaim constraints(List constraints) {
this.constraints = constraints;
return this;
}
/**
* Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
*/
public DeviceClaim requests(List requests) {
this.requests = requests;
return this;
}
public static DeviceClaim deviceClaim() {
return new DeviceClaim();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy