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
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddGroupsItem
(String groupsItem) boolean
static V1SubjectAccessReviewSpec
Create an instance of V1SubjectAccessReviewSpec given an JSON stringgetExtra()
Extra corresponds to the user.Info.GetExtra() method from the authenticator.Groups is the groups you're testing for.Get nonResourceAttributesGet resourceAttributesgetUid()
UID information about the requesting user.getUser()
User is the user you're testing for.int
hashCode()
nonResourceAttributes
(V1NonResourceAttributes nonResourceAttributes) putExtraItem
(String key, List<String> extraItem) resourceAttributes
(V1ResourceAttributes resourceAttributes) void
void
void
setNonResourceAttributes
(V1NonResourceAttributes nonResourceAttributes) void
setResourceAttributes
(V1ResourceAttributes resourceAttributes) void
void
toJson()
Convert an instance of V1SubjectAccessReviewSpec to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_EXTRA
- See Also:
-
SERIALIZED_NAME_GROUPS
- See Also:
-
SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES
- See Also:
-
SERIALIZED_NAME_RESOURCE_ATTRIBUTES
- See Also:
-
SERIALIZED_NAME_UID
- See Also:
-
SERIALIZED_NAME_USER
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1SubjectAccessReviewSpec
public V1SubjectAccessReviewSpec()
-
-
Method Details
-
extra
-
putExtraItem
-
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
-
groups
-
addGroupsItem
-
getGroups
Groups is the groups you're testing for.- Returns:
- groups
-
setGroups
-
nonResourceAttributes
public V1SubjectAccessReviewSpec nonResourceAttributes(V1NonResourceAttributes nonResourceAttributes) -
getNonResourceAttributes
Get nonResourceAttributes- Returns:
- nonResourceAttributes
-
setNonResourceAttributes
-
resourceAttributes
-
getResourceAttributes
Get resourceAttributes- Returns:
- resourceAttributes
-
setResourceAttributes
-
uid
-
getUid
UID information about the requesting user.- Returns:
- uid
-
setUid
-
user
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
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
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
Convert an instance of V1SubjectAccessReviewSpec to an JSON string- Returns:
- JSON string
-