case class Subject(group: Optional[GroupSubject] = Optional.Absent, kind: String, serviceAccount: Optional[ServiceAccountSubject] = Optional.Absent, user: Optional[UserSubject] = Optional.Absent) extends Product with Serializable
Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.
- kind
kind
indicates which one of the other fields is non-empty. Required
- Alphabetic
- By Inheritance
- Subject
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Subject(group: Optional[GroupSubject] = Optional.Absent, kind: String, serviceAccount: Optional[ServiceAccountSubject] = Optional.Absent, user: Optional[UserSubject] = Optional.Absent)
- kind
kind
indicates which one of the other fields is non-empty. Required
Value Members
-
def
getGroup: IO[K8sFailure, GroupSubject]
Gets group.
Gets group.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getKind: IO[K8sFailure, String]
kind
indicates which one of the other fields is non-empty.kind
indicates which one of the other fields is non-empty. RequiredThis effect always succeeds, it is safe to use the field kind directly.
-
def
getServiceAccount: IO[K8sFailure, ServiceAccountSubject]
Gets serviceAccount.
Gets serviceAccount.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getUser: IO[K8sFailure, UserSubject]
Gets user.
Gets user.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
- val group: Optional[GroupSubject]
- val kind: String
- val serviceAccount: Optional[ServiceAccountSubject]
- val user: Optional[UserSubject]