Class ResourceRule
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.authorization.v1.ResourceRule
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ResourceRuleBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ResourceRule extends Object implements io.fabric8.kubernetes.api.builder.Editable<ResourceRuleBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceRule()No args constructor for use in serializationResourceRule(List<String> apiGroups, List<String> resourceNames, List<String> resources, List<String> verbs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceRuleBuilderedit()Map<String,Object>getAdditionalProperties()List<String>getApiGroups()APIGroups is the name of the APIGroup that contains the resources.List<String>getResourceNames()ResourceNames is an optional white list of names that the rule applies to.List<String>getResources()Resources is a list of resources this rule applies toList<String>getVerbs()Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxyvoidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetApiGroups(List<String> apiGroups)APIGroups is the name of the APIGroup that contains the resources.voidsetResourceNames(List<String> resourceNames)ResourceNames is an optional white list of names that the rule applies to.voidsetResources(List<String> resources)Resources is a list of resources this rule applies tovoidsetVerbs(List<String> verbs)Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxyResourceRuleBuildertoBuilder()
-
-
-
Method Detail
-
getApiGroups
public List<String> getApiGroups()
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.
-
setApiGroups
public void setApiGroups(List<String> apiGroups)
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.
-
getResourceNames
public List<String> getResourceNames()
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all.
-
setResourceNames
public void setResourceNames(List<String> resourceNames)
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all.
-
getResources
public List<String> getResources()
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.
-
setResources
public void setResources(List<String> resources)
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.
-
getVerbs
public List<String> getVerbs()
Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all.
-
setVerbs
public void setVerbs(List<String> verbs)
Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all.
-
edit
public ResourceRuleBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ResourceRuleBuilder>
-
toBuilder
public ResourceRuleBuilder toBuilder()
-
-