Class V1NonResourcePolicyRule
java.lang.Object
io.kubernetes.client.openapi.models.V1NonResourcePolicyRule
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-04T19:05:53.712211Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1NonResourcePolicyRule
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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddNonResourceURLsItem
(String nonResourceURLsItem) addVerbsItem
(String verbsItem) boolean
static V1NonResourcePolicyRule
Create an instance of V1NonResourcePolicyRule given an JSON string`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 emptyint
hashCode()
nonResourceURLs
(List<String> nonResourceURLs) void
setNonResourceURLs
(List<String> nonResourceURLs) void
toJson()
Convert an instance of V1NonResourcePolicyRule to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_NON_RESOURCE_U_R_LS
- See Also:
-
SERIALIZED_NAME_VERBS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1NonResourcePolicyRule
public V1NonResourcePolicyRule()
-
-
Method Details
-
nonResourceURLs
-
addNonResourceURLsItem
-
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:
- nonResourceURLs
-
setNonResourceURLs
-
verbs
-
addVerbsItem
-
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:
- verbs
-
setVerbs
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to V1NonResourcePolicyRule
-
fromJson
Create an instance of V1NonResourcePolicyRule given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1NonResourcePolicyRule
- Throws:
IOException
- if the JSON string is invalid with respect to V1NonResourcePolicyRule
-
toJson
Convert an instance of V1NonResourcePolicyRule to an JSON string- Returns:
- JSON string
-