Class V1ResourceRule
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1ResourceRule
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1ResourceRule
extends Object
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.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddapiGroupsItem
(String apiGroupsItem) Add an item to the apiGroups property in a chainable fashion.addresourceNamesItem
(String resourceNamesItem) Add an item to the resourceNames property in a chainable fashion.addresourcesItem
(String resourcesItem) Add an item to the resources property in a chainable fashion.addverbsItem
(String verbsItem) Add an item to the verbs property in a chainable fashion.Set apiGroups in a chainable fashion.boolean
APIGroups is the name of the APIGroup that contains the resources.ResourceNames is an optional white list of names that the rule applies to.Resources is a list of resources this rule applies to.getVerbs()
Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.int
hashCode()
resourceNames
(List<String> resourceNames) Set resourceNames in a chainable fashion.Set resources in a chainable fashion.void
setApiGroups
(List<String> apiGroups) Set the apiGroups property valuevoid
setResourceNames
(List<String> resourceNames) Set the resourceNames property valuevoid
setResources
(List<String> resources) Set the resources property valuevoid
Set the verbs property valuetoString()
Set verbs in a chainable fashion.
-
Field Details
-
JSON_PROPERTY_API_GROUPS
- See Also:
-
JSON_PROPERTY_RESOURCE_NAMES
- See Also:
-
JSON_PROPERTY_RESOURCES
- See Also:
-
JSON_PROPERTY_VERBS
- See Also:
-
-
Constructor Details
-
V1ResourceRule
-
-
Method Details
-
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.- Returns:
- the apiGroups property value
-
setApiGroups
Set the apiGroups property value -
apiGroups
Set apiGroups in a chainable fashion.- Returns:
- The same instance of V1ResourceRule for chaining.
-
addapiGroupsItem
Add an item to the apiGroups property in a chainable fashion.- Returns:
- The same instance of V1ResourceRule for chaining.
-
getResourceNames
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all.- Returns:
- the resourceNames property value
-
setResourceNames
Set the resourceNames property value -
resourceNames
Set resourceNames in a chainable fashion.- Returns:
- The same instance of V1ResourceRule for chaining.
-
addresourceNamesItem
Add an item to the resourceNames property in a chainable fashion.- Returns:
- The same instance of V1ResourceRule for chaining.
-
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.- Returns:
- the resources property value
-
setResources
Set the resources property value -
resources
Set resources in a chainable fashion.- Returns:
- The same instance of V1ResourceRule for chaining.
-
addresourcesItem
Add an item to the resources property in a chainable fashion.- Returns:
- The same instance of V1ResourceRule for chaining.
-
getVerbs
Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.- Returns:
- the verbs property value
-
setVerbs
Set the verbs property value -
verbs
Set verbs in a chainable fashion.- Returns:
- The same instance of V1ResourceRule for chaining.
-
addverbsItem
Add an item to the verbs property in a chainable fashion.- Returns:
- The same instance of V1ResourceRule for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-