Class NonResourcePolicyRule
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.flowcontrol.v1beta2.NonResourcePolicyRule
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<NonResourcePolicyRuleBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class NonResourcePolicyRule extends Object implements io.fabric8.kubernetes.api.builder.Editable<NonResourcePolicyRuleBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NonResourcePolicyRule()No args constructor for use in serializationNonResourcePolicyRule(List<String> nonResourceURLs, List<String> verbs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NonResourcePolicyRuleBuilderedit()Map<String,Object>getAdditionalProperties()List<String>getNonResourceURLs()`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty.List<String>getVerbs()`verbs` is a list of matching verbs and may not be emptyvoidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetNonResourceURLs(List<String> nonResourceURLs)`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty.voidsetVerbs(List<String> verbs)`verbs` is a list of matching verbs and may not be emptyNonResourcePolicyRuleBuildertoBuilder()
-
-
-
Method Detail
-
getNonResourceURLs
public List<String> 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.
-
setNonResourceURLs
public void setNonResourceURLs(List<String> nonResourceURLs)
`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.
-
getVerbs
public List<String> 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.
-
setVerbs
public void setVerbs(List<String> verbs)
`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.
-
edit
public NonResourcePolicyRuleBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<NonResourcePolicyRuleBuilder>
-
toBuilder
public NonResourcePolicyRuleBuilder toBuilder()
-
-