Class V1PolicyRule
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1PolicyRule
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1PolicyRule
extends Object
PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddapiGroupsItem
(String apiGroupsItem) Add an item to the apiGroups property in a chainable fashion.addnonResourceURLsItem
(String nonResourceURLsItem) Add an item to the nonResourceURLs 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.NonResourceURLs is a set of partial urls that a user should have access to.ResourceNames is an optional white list of names that the rule applies to.Resources is a list of resources this rule applies to.getVerbs()
Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule.int
hashCode()
nonResourceURLs
(List<String> nonResourceURLs) Set nonResourceURLs in a chainable fashion.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
setNonResourceURLs
(List<String> nonResourceURLs) Set the nonResourceURLs 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_NON_RESOURCE_U_R_LS
- See Also:
-
JSON_PROPERTY_RESOURCE_NAMES
- See Also:
-
JSON_PROPERTY_RESOURCES
- See Also:
-
JSON_PROPERTY_VERBS
- See Also:
-
-
Constructor Details
-
V1PolicyRule
-
-
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. \"\" represents the core API group and \"*\" represents all API groups.- Returns:
- the apiGroups property value
-
setApiGroups
Set the apiGroups property value -
apiGroups
Set apiGroups in a chainable fashion.- Returns:
- The same instance of V1PolicyRule for chaining.
-
addapiGroupsItem
Add an item to the apiGroups property in a chainable fashion.- Returns:
- The same instance of V1PolicyRule for chaining.
-
getNonResourceURLs
NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.- Returns:
- the nonResourceURLs property value
-
setNonResourceURLs
Set the nonResourceURLs property value -
nonResourceURLs
Set nonResourceURLs in a chainable fashion.- Returns:
- The same instance of V1PolicyRule for chaining.
-
addnonResourceURLsItem
Add an item to the nonResourceURLs property in a chainable fashion.- Returns:
- The same instance of V1PolicyRule for chaining.
-
getResourceNames
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.- Returns:
- the resourceNames property value
-
setResourceNames
Set the resourceNames property value -
resourceNames
Set resourceNames in a chainable fashion.- Returns:
- The same instance of V1PolicyRule for chaining.
-
addresourceNamesItem
Add an item to the resourceNames property in a chainable fashion.- Returns:
- The same instance of V1PolicyRule for chaining.
-
getResources
Resources is a list of resources this rule applies to. '*' represents all resources.- Returns:
- the resources property value
-
setResources
Set the resources property value -
resources
Set resources in a chainable fashion.- Returns:
- The same instance of V1PolicyRule for chaining.
-
addresourcesItem
Add an item to the resources property in a chainable fashion.- Returns:
- The same instance of V1PolicyRule for chaining.
-
getVerbs
Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.- Returns:
- the verbs property value
-
setVerbs
Set the verbs property value -
verbs
Set verbs in a chainable fashion.- Returns:
- The same instance of V1PolicyRule for chaining.
-
addverbsItem
Add an item to the verbs property in a chainable fashion.- Returns:
- The same instance of V1PolicyRule for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-