io.k8s.api.authorization.v1.ResourceRule Maven / Gradle / Ivy
package io.k8s.api.authorization.v1;
import java.lang.String;
import java.util.List;
/**
* ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
*/
public class ResourceRule {
public List apiGroups;
public List resourceNames;
public List resources;
public List verbs;
/**
* APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "*
" means all.
*/
public ResourceRule apiGroups(List apiGroups) {
this.apiGroups = apiGroups;
return this;
}
/**
* ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*
" means all.
*/
public ResourceRule resourceNames(List resourceNames) {
this.resourceNames = resourceNames;
return this;
}
/**
* Resources is a list of resources this rule applies to. "*
" means all in the specified apiGroups.
* "*
/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
*/
public ResourceRule resources(List resources) {
this.resources = resources;
return this;
}
/**
* Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*
" means all.
*/
public ResourceRule verbs(List verbs) {
this.verbs = verbs;
return this;
}
public static ResourceRule resourceRule() {
return new ResourceRule();
}
}