Class V1SubjectAccessReviewSpec

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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1SubjectAccessReviewSpec extends Object
SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set
  • Field Details

  • Constructor Details

    • V1SubjectAccessReviewSpec

      public V1SubjectAccessReviewSpec()
  • Method Details

    • getExtra

      public Map<String,@NotNull List<@NotNull String>> getExtra()
      Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.
      Returns:
      the extra property value
    • setExtra

      public void setExtra(Map<String,@NotNull List<@NotNull String>> extra)
      Set the extra property value
      Parameters:
      extra - property value to set
    • extra

      public V1SubjectAccessReviewSpec extra(Map<String,@NotNull List<@NotNull String>> extra)
      Set extra in a chainable fashion.
      Returns:
      The same instance of V1SubjectAccessReviewSpec for chaining.
    • putextraItem

      public V1SubjectAccessReviewSpec putextraItem(String key, List<String> extraItem)
      Set the value for the key for the extra map property in a chainable fashion.
      Returns:
      The same instance of V1SubjectAccessReviewSpec for chaining.
    • getGroups

      public List<@NotNull String> getGroups()
      Groups is the groups you're testing for.
      Returns:
      the groups property value
    • setGroups

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

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

      public V1SubjectAccessReviewSpec addgroupsItem(String groupsItem)
      Add an item to the groups property in a chainable fashion.
      Returns:
      The same instance of V1SubjectAccessReviewSpec for chaining.
    • getNonResourceAttributes

      public V1NonResourceAttributes getNonResourceAttributes()
      Returns:
      the nonResourceAttributes property value
    • setNonResourceAttributes

      public void setNonResourceAttributes(V1NonResourceAttributes nonResourceAttributes)
      Set the nonResourceAttributes property value
      Parameters:
      nonResourceAttributes - property value to set
    • nonResourceAttributes

      public V1SubjectAccessReviewSpec nonResourceAttributes(V1NonResourceAttributes nonResourceAttributes)
      Set nonResourceAttributes in a chainable fashion.
      Returns:
      The same instance of V1SubjectAccessReviewSpec for chaining.
    • getResourceAttributes

      public V1ResourceAttributes getResourceAttributes()
      Returns:
      the resourceAttributes property value
    • setResourceAttributes

      public void setResourceAttributes(V1ResourceAttributes resourceAttributes)
      Set the resourceAttributes property value
      Parameters:
      resourceAttributes - property value to set
    • resourceAttributes

      public V1SubjectAccessReviewSpec resourceAttributes(V1ResourceAttributes resourceAttributes)
      Set resourceAttributes in a chainable fashion.
      Returns:
      The same instance of V1SubjectAccessReviewSpec for chaining.
    • getUid

      public String getUid()
      UID information about the requesting user.
      Returns:
      the uid property value
    • setUid

      public void setUid(String uid)
      Set the uid property value
      Parameters:
      uid - property value to set
    • uid

      Set uid in a chainable fashion.
      Returns:
      The same instance of V1SubjectAccessReviewSpec for chaining.
    • getUser

      public String getUser()
      User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups
      Returns:
      the user property value
    • setUser

      public void setUser(String user)
      Set the user property value
      Parameters:
      user - property value to set
    • user

      public V1SubjectAccessReviewSpec user(String user)
      Set user in a chainable fashion.
      Returns:
      The same instance of V1SubjectAccessReviewSpec 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