Class V1ResourceRule

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1ResourceRule extends Object
ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
  • Field Details

  • Constructor Details

    • V1ResourceRule

      public V1ResourceRule()
  • Method Details

    • apiGroups

      public V1ResourceRule apiGroups(List<String> apiGroups)
    • addApiGroupsItem

      public V1ResourceRule addApiGroupsItem(String apiGroupsItem)
    • getApiGroups

      @Nullable public List<String> getApiGroups()
      APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all.
      Returns:
      apiGroups
    • setApiGroups

      public void setApiGroups(List<String> apiGroups)
    • resourceNames

      public V1ResourceRule resourceNames(List<String> resourceNames)
    • addResourceNamesItem

      public V1ResourceRule addResourceNamesItem(String resourceNamesItem)
    • getResourceNames

      @Nullable public List<String> getResourceNames()
      ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all.
      Returns:
      resourceNames
    • setResourceNames

      public void setResourceNames(List<String> resourceNames)
    • resources

      public V1ResourceRule resources(List<String> resources)
    • addResourcesItem

      public V1ResourceRule addResourcesItem(String resourcesItem)
    • getResources

      @Nullable public List<String> getResources()
      Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*_/foo\" represents the subresource 'foo' for all resources in the specified apiGroups.
      Returns:
      resources
    • setResources

      public void setResources(List<String> resources)
    • verbs

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

      public V1ResourceRule addVerbsItem(String verbsItem)
    • getVerbs

      @Nonnull public List<String> getVerbs()
      Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" 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 V1ResourceRule
    • fromJson

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

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