UNPKG

kubernetes-models

Version:
37 lines (36 loc) 1.63 kB
import { IIoK8sApiFlowcontrolV1beta3GroupSubject } from "./GroupSubject"; import { IIoK8sApiFlowcontrolV1beta3ServiceAccountSubject } from "./ServiceAccountSubject"; import { IIoK8sApiFlowcontrolV1beta3UserSubject } from "./UserSubject"; import { ModelData, Model } from "@kubernetes-models/base"; /** * 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. */ export interface ISubject { /** * `group` matches based on user group name. */ "group"?: IIoK8sApiFlowcontrolV1beta3GroupSubject; /** * `kind` indicates which one of the other fields is non-empty. Required */ "kind": string; /** * `serviceAccount` matches ServiceAccounts. */ "serviceAccount"?: IIoK8sApiFlowcontrolV1beta3ServiceAccountSubject; /** * `user` matches based on username. */ "user"?: IIoK8sApiFlowcontrolV1beta3UserSubject; } /** * 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. */ export declare class Subject extends Model<ISubject> implements ISubject { "group"?: IIoK8sApiFlowcontrolV1beta3GroupSubject; "kind": ISubject["kind"]; "serviceAccount"?: IIoK8sApiFlowcontrolV1beta3ServiceAccountSubject; "user"?: IIoK8sApiFlowcontrolV1beta3UserSubject; constructor(data?: ModelData<ISubject>); } export { ISubject as IIoK8sApiFlowcontrolV1beta3Subject, Subject as IoK8sApiFlowcontrolV1beta3Subject };