Class V1ResourceRule

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-12-05T08:14:34.919Z[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

      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