Class V1beta2NonResourcePolicyRule
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1beta2NonResourcePolicyRule
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1beta2NonResourcePolicyRule
extends Object
NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionV1beta2NonResourcePolicyRule
(List<@NotNull String> nonResourceURLs, List<@NotNull String> verbs) -
Method Summary
Modifier and TypeMethodDescriptionaddnonResourceURLsItem
(String nonResourceURLsItem) Add an item to the nonResourceURLs property in a chainable fashion.addverbsItem
(String verbsItem) Add an item to the verbs property in a chainable fashion.boolean
`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty.getVerbs()
`verbs` is a list of matching verbs and may not be empty.int
hashCode()
nonResourceURLs
(List<@NotNull String> nonResourceURLs) Set nonResourceURLs in a chainable fashion.void
setNonResourceURLs
(List<@NotNull String> nonResourceURLs) Set the nonResourceURLs property valuevoid
Set the verbs property valuetoString()
Set verbs in a chainable fashion.
-
Field Details
-
JSON_PROPERTY_NON_RESOURCE_U_R_LS
- See Also:
-
JSON_PROPERTY_VERBS
- See Also:
-
-
Constructor Details
-
V1beta2NonResourcePolicyRule
-
-
Method Details
-
getNonResourceURLs
`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: - \"/healthz\" is legal - \"/hea*\" is illegal - \"/hea\" is legal but matches nothing - \"/hea/_*\" also matches nothing - \"/healthz/_*\" matches all per-component health checks. \"*\" matches all non-resource urls. if it is present, it must be the only entry. Required.- Returns:
- the nonResourceURLs property value
-
setNonResourceURLs
Set the nonResourceURLs property value- Parameters:
nonResourceURLs
- property value to set
-
nonResourceURLs
Set nonResourceURLs in a chainable fashion.- Returns:
- The same instance of V1beta2NonResourcePolicyRule for chaining.
-
addnonResourceURLsItem
Add an item to the nonResourceURLs property in a chainable fashion.- Returns:
- The same instance of V1beta2NonResourcePolicyRule for chaining.
-
getVerbs
`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required.- Returns:
- the verbs property value
-
setVerbs
Set the verbs property value- Parameters:
verbs
- property value to set
-
verbs
Set verbs in a chainable fashion.- Returns:
- The same instance of V1beta2NonResourcePolicyRule for chaining.
-
addverbsItem
Add an item to the verbs property in a chainable fashion.- Returns:
- The same instance of V1beta2NonResourcePolicyRule for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-