Class RbacV1Subject
java.lang.Object
io.kubernetes.client.openapi.models.RbacV1Subject
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:09.091597Z[Etc/UTC]")
public class RbacV1Subject
extends Object
Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static RbacV1Subject
Create an instance of RbacV1Subject given an JSON stringAPIGroup holds the API group of the referenced subject.getKind()
Kind of object being referenced.getName()
Name of the object being referenced.Namespace of the referenced object.int
hashCode()
void
setApiGroup
(String apiGroup) void
void
void
setNamespace
(String namespace) toJson()
Convert an instance of RbacV1Subject 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_API_GROUP
- See Also:
-
SERIALIZED_NAME_KIND
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_NAMESPACE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RbacV1Subject
public RbacV1Subject()
-
-
Method Details
-
apiGroup
-
getApiGroup
APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.- Returns:
- apiGroup
-
setApiGroup
-
kind
-
getKind
Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error.- Returns:
- kind
-
setKind
-
name
-
getName
Name of the object being referenced.- Returns:
- name
-
setName
-
namespace
-
getNamespace
Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.- Returns:
- namespace
-
setNamespace
-
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 RbacV1Subject
-
fromJson
Create an instance of RbacV1Subject given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of RbacV1Subject
- Throws:
IOException
- if the JSON string is invalid with respect to RbacV1Subject
-
toJson
Convert an instance of RbacV1Subject to an JSON string- Returns:
- JSON string
-