io.k8s.api.resource.v1alpha2.NamedResourcesRequest Maven / Gradle / Ivy
package io.k8s.api.resource.v1alpha2;
import java.lang.String;
/**
* NamedResourcesRequest is used in ResourceRequestModel.
*/
public class NamedResourcesRequest {
public String selector;
/**
* Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/
*
* In addition, for each type NamedResourcesin AttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example:
*
* attributes.quantity["a"].isGreaterThan(quantity("0")) &&
* attributes.stringslice["b"].isSorted()
*/
public NamedResourcesRequest selector(String selector) {
this.selector = selector;
return this;
}
public static NamedResourcesRequest namedResourcesRequest() {
return new NamedResourcesRequest();
}
}