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,List<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,List<String>> extra)
      Set the extra property value
    • 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<String> getGroups()
      Groups is the groups you're testing for.
      Returns:
      the groups property value
    • setGroups

      public void setGroups(List<String> groups)
      Set the groups property value
    • groups

      public V1SubjectAccessReviewSpec groups(List<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
    • 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
    • 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
    • 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
    • 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