Class ResourceRule
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.authorization.v1beta1.ResourceRule
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class ResourceRule extends java.lang.Object implements com.marcnuri.yakc.model.Model
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ResourceRule.Builder
-
Constructor Summary
Constructors Constructor Description ResourceRule()
ResourceRule(java.util.List<java.lang.String> apiGroups, java.util.List<java.lang.String> resourceNames, java.util.List<java.lang.String> resources, @NonNull java.util.List<java.lang.String> verbs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResourceRule.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.util.List<java.lang.String>
getApiGroups()
APIGroups is the name of the APIGroup that contains the resources.java.util.List<java.lang.String>
getResourceNames()
ResourceNames is an optional white list of names that the rule applies to.java.util.List<java.lang.String>
getResources()
Resources is a list of resources this rule applies to.@NonNull java.util.List<java.lang.String>
getVerbs()
Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.int
hashCode()
void
setApiGroups(java.util.List<java.lang.String> apiGroups)
APIGroups is the name of the APIGroup that contains the resources.void
setResourceNames(java.util.List<java.lang.String> resourceNames)
ResourceNames is an optional white list of names that the rule applies to.void
setResources(java.util.List<java.lang.String> resources)
Resources is a list of resources this rule applies to.void
setVerbs(@NonNull java.util.List<java.lang.String> verbs)
Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.ResourceRule.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static ResourceRule.Builder builder()
-
toBuilder
public ResourceRule.Builder toBuilder()
-
getApiGroups
public java.util.List<java.lang.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.
-
getResourceNames
public java.util.List<java.lang.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.
-
getResources
public java.util.List<java.lang.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.
-
getVerbs
@NonNull public @NonNull java.util.List<java.lang.String> getVerbs()
Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all.
-
setApiGroups
public void setApiGroups(java.util.List<java.lang.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.
-
setResourceNames
public void setResourceNames(java.util.List<java.lang.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.
-
setResources
public void setResources(java.util.List<java.lang.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.
-
setVerbs
public void setVerbs(@NonNull @NonNull java.util.List<java.lang.String> verbs)
Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-