Class V1UserInfo
java.lang.Object
io.kubernetes.client.openapi.models.V1UserInfo
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1UserInfo
extends Object
UserInfo holds the information about the user needed to implement the user.Info interface.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddGroupsItem
(String groupsItem) boolean
static V1UserInfo
Create an instance of V1UserInfo given an JSON stringgetExtra()
Any additional information provided by the authenticator.The names of groups this user is a part of.getUid()
A unique value that identifies this user across time.The name that uniquely identifies this user among all active users.int
hashCode()
putExtraItem
(String key, List<String> extraItem) void
void
void
void
setUsername
(String username) toJson()
Convert an instance of V1UserInfo 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_UID
- See Also:
-
SERIALIZED_NAME_USERNAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1UserInfo
public V1UserInfo()
-
-
Method Details
-
extra
-
putExtraItem
-
getExtra
Any additional information provided by the authenticator.- Returns:
- extra
-
setExtra
-
groups
-
addGroupsItem
-
getGroups
The names of groups this user is a part of.- Returns:
- groups
-
setGroups
-
uid
-
getUid
A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.- Returns:
- uid
-
setUid
-
username
-
getUsername
The name that uniquely identifies this user among all active users.- Returns:
- username
-
setUsername
-
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 V1UserInfo
-
fromJson
Create an instance of V1UserInfo given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1UserInfo
- Throws:
IOException
- if the JSON string is invalid with respect to V1UserInfo
-
toJson
Convert an instance of V1UserInfo to an JSON string- Returns:
- JSON string
-