io.k8s.api.authorization.v1.ResourceAttributes Maven / Gradle / Ivy
package io.k8s.api.authorization.v1;
import java.lang.String;
/**
* ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface
*/
public class ResourceAttributes {
public String group;
public String name;
public String namespace;
public String resource;
public String subresource;
public String verb;
public String version;
/**
* Group is the API Group of the Resource. "*
" means all.
*/
public ResourceAttributes group(String group) {
this.group = group;
return this;
}
/**
* Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
*/
public ResourceAttributes name(String name) {
this.name = name;
return this;
}
/**
* Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview
*/
public ResourceAttributes namespace(String namespace) {
this.namespace = namespace;
return this;
}
/**
* Resource is one of the existing resource types. "*
" means all.
*/
public ResourceAttributes resource(String resource) {
this.resource = resource;
return this;
}
/**
* Subresource is one of the existing resource types. "" means none.
*/
public ResourceAttributes subresource(String subresource) {
this.subresource = subresource;
return this;
}
/**
* Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*
" means all.
*/
public ResourceAttributes verb(String verb) {
this.verb = verb;
return this;
}
/**
* Version is the API Version of the Resource. "*
" means all.
*/
public ResourceAttributes version(String version) {
this.version = version;
return this;
}
public static ResourceAttributes resourceAttributes() {
return new ResourceAttributes();
}
}