Class V1NonResourceRule

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1NonResourceRule extends Object
NonResourceRule holds information that describes a rule for the non-resource
  • Field Details

  • Constructor Details

    • V1NonResourceRule

      public V1NonResourceRule()
  • Method Details

    • nonResourceURLs

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

      public V1NonResourceRule addNonResourceURLsItem(String nonResourceURLsItem)
    • getNonResourceURLs

      @Nullable public List<String> 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. \"*\" means all.
      Returns:
      nonResourceURLs
    • setNonResourceURLs

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

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

      public V1NonResourceRule addVerbsItem(String verbsItem)
    • getVerbs

      @Nonnull public List<String> getVerbs()
      Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all.
      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 V1NonResourceRule
    • fromJson

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

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