Class V1SubjectAccessReviewSpec

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-23T13:45:09.091597Z[Etc/UTC]") 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

    • extra

    • putExtraItem

      public V1SubjectAccessReviewSpec putExtraItem(String key, List<String> extraItem)
    • getExtra

      @Nullable 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:
      extra
    • setExtra

      public void setExtra(Map<String,List<String>> extra)
    • groups

      public V1SubjectAccessReviewSpec groups(List<String> groups)
    • addGroupsItem

      public V1SubjectAccessReviewSpec addGroupsItem(String groupsItem)
    • getGroups

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

      public void setGroups(List<String> groups)
    • nonResourceAttributes

      public V1SubjectAccessReviewSpec nonResourceAttributes(V1NonResourceAttributes nonResourceAttributes)
    • getNonResourceAttributes

      @Nullable public V1NonResourceAttributes getNonResourceAttributes()
      Get nonResourceAttributes
      Returns:
      nonResourceAttributes
    • setNonResourceAttributes

      public void setNonResourceAttributes(V1NonResourceAttributes nonResourceAttributes)
    • resourceAttributes

      public V1SubjectAccessReviewSpec resourceAttributes(V1ResourceAttributes resourceAttributes)
    • getResourceAttributes

      @Nullable public V1ResourceAttributes getResourceAttributes()
      Get resourceAttributes
      Returns:
      resourceAttributes
    • setResourceAttributes

      public void setResourceAttributes(V1ResourceAttributes resourceAttributes)
    • uid

    • getUid

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

      public void setUid(String uid)
    • user

      public V1SubjectAccessReviewSpec user(String user)
    • getUser

      @Nullable 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:
      user
    • setUser

      public void setUser(String user)
    • 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
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object is invalid with respect to V1SubjectAccessReviewSpec
    • fromJson

      public static V1SubjectAccessReviewSpec fromJson(String jsonString) throws IOException
      Create an instance of V1SubjectAccessReviewSpec given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1SubjectAccessReviewSpec
      Throws:
      IOException - if the JSON string is invalid with respect to V1SubjectAccessReviewSpec
    • toJson

      public String toJson()
      Convert an instance of V1SubjectAccessReviewSpec to an JSON string
      Returns:
      JSON string