Class V1beta3NonResourcePolicyRule

java.lang.Object
io.kubernetes.client.openapi.models.V1beta3NonResourcePolicyRule

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-23T13:45:09.091597Z[Etc/UTC]") public class V1beta3NonResourcePolicyRule 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 Details

  • Constructor Details

    • V1beta3NonResourcePolicyRule

      public V1beta3NonResourcePolicyRule()
  • Method Details

    • nonResourceURLs

      public V1beta3NonResourcePolicyRule nonResourceURLs(List<String> nonResourceURLs)
    • addNonResourceURLsItem

      public V1beta3NonResourcePolicyRule addNonResourceURLsItem(String nonResourceURLsItem)
    • getNonResourceURLs

      @Nonnull 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.
      Returns:
      nonResourceURLs
    • setNonResourceURLs

      public void setNonResourceURLs(List<String> nonResourceURLs)
    • verbs

      public V1beta3NonResourcePolicyRule verbs(List<String> verbs)
    • addVerbsItem

      public V1beta3NonResourcePolicyRule addVerbsItem(String verbsItem)
    • getVerbs

      @Nonnull 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.
      Returns:
      verbs
    • setVerbs

      public void setVerbs(List<String> verbs)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object is invalid with respect to V1beta3NonResourcePolicyRule
    • fromJson

      public static V1beta3NonResourcePolicyRule fromJson(String jsonString) throws IOException
      Create an instance of V1beta3NonResourcePolicyRule given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1beta3NonResourcePolicyRule
      Throws:
      IOException - if the JSON string is invalid with respect to V1beta3NonResourcePolicyRule
    • toJson

      public String toJson()
      Convert an instance of V1beta3NonResourcePolicyRule to an JSON string
      Returns:
      JSON string