Class V1PolicyRule

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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1PolicyRule extends Object
PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.
  • Field Details

  • Constructor Details

    • V1PolicyRule

      public V1PolicyRule(List<@NotNull String> verbs)
  • Method Details

    • getVerbs

      public List<@NotNull String> getVerbs()
      Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
      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 V1PolicyRule verbs(List<@NotNull String> verbs)
      Set verbs in a chainable fashion.
      Returns:
      The same instance of V1PolicyRule for chaining.
    • addverbsItem

      public V1PolicyRule addverbsItem(String verbsItem)
      Add an item to the verbs property in a chainable fashion.
      Returns:
      The same instance of V1PolicyRule 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. \"\" represents the core API group and \"*\" represents all API groups.
      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 V1PolicyRule apiGroups(List<@NotNull String> apiGroups)
      Set apiGroups in a chainable fashion.
      Returns:
      The same instance of V1PolicyRule for chaining.
    • addapiGroupsItem

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

      public List<@NotNull 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 Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.
      Returns:
      the nonResourceURLs property value
    • setNonResourceURLs

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

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

      public V1PolicyRule addnonResourceURLsItem(String nonResourceURLsItem)
      Add an item to the nonResourceURLs property in a chainable fashion.
      Returns:
      The same instance of V1PolicyRule 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.
      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 V1PolicyRule resourceNames(List<@NotNull String> resourceNames)
      Set resourceNames in a chainable fashion.
      Returns:
      The same instance of V1PolicyRule for chaining.
    • addresourceNamesItem

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

      public List<@NotNull String> getResources()
      Resources is a list of resources this rule applies to. '*' represents all resources.
      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 V1PolicyRule resources(List<@NotNull String> resources)
      Set resources in a chainable fashion.
      Returns:
      The same instance of V1PolicyRule for chaining.
    • addresourcesItem

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