Class V1ResourceRule

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1ResourceRule

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") 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(List<@NotNull String> verbs)
  • Method Details

    • getVerbs

      public List<@NotNull String> getVerbs()
      Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.
      Returns:
      the verbs property value
    • setVerbs

      public void setVerbs(List<@NotNull String> verbs)
      Set the verbs property value
      Parameters:
      verbs - property value to set
    • verbs

      public V1ResourceRule verbs(List<@NotNull String> verbs)
      Set verbs in a chainable fashion.
      Returns:
      The same instance of V1ResourceRule for chaining.
    • addverbsItem

      public V1ResourceRule addverbsItem(String verbsItem)
      Add an item to the verbs property in a chainable fashion.
      Returns:
      The same instance of V1ResourceRule for chaining.
    • getApiGroups

      public List<@NotNull 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:
      the apiGroups property value
    • setApiGroups

      public void setApiGroups(List<@NotNull String> apiGroups)
      Set the apiGroups property value
      Parameters:
      apiGroups - property value to set
    • apiGroups

      public V1ResourceRule apiGroups(List<@NotNull String> apiGroups)
      Set apiGroups in a chainable fashion.
      Returns:
      The same instance of V1ResourceRule for chaining.
    • addapiGroupsItem

      public V1ResourceRule addapiGroupsItem(String apiGroupsItem)
      Add an item to the apiGroups property in a chainable fashion.
      Returns:
      The same instance of V1ResourceRule for chaining.
    • getResourceNames

      public List<@NotNull 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:
      the resourceNames property value
    • setResourceNames

      public void setResourceNames(List<@NotNull String> resourceNames)
      Set the resourceNames property value
      Parameters:
      resourceNames - property value to set
    • resourceNames

      public V1ResourceRule resourceNames(List<@NotNull String> resourceNames)
      Set resourceNames in a chainable fashion.
      Returns:
      The same instance of V1ResourceRule for chaining.
    • addresourceNamesItem

      public V1ResourceRule addresourceNamesItem(String resourceNamesItem)
      Add an item to the resourceNames property in a chainable fashion.
      Returns:
      The same instance of V1ResourceRule for chaining.
    • getResources

      public List<@NotNull 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:
      the resources property value
    • setResources

      public void setResources(List<@NotNull String> resources)
      Set the resources property value
      Parameters:
      resources - property value to set
    • resources

      public V1ResourceRule resources(List<@NotNull String> resources)
      Set resources in a chainable fashion.
      Returns:
      The same instance of V1ResourceRule for chaining.
    • addresourcesItem

      public V1ResourceRule addresourcesItem(String resourcesItem)
      Add an item to the resources property in a chainable fashion.
      Returns:
      The same instance of V1ResourceRule for chaining.
    • 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