UNPKG

kubernetes-models

Version:
20 lines (19 loc) 835 B
import { createTypeMetaGuard, Model, setSchema } from "@kubernetes-models/base"; import { addSchema } from "../_schemas/IoK8sApiCoreV1ServiceAccount.mjs"; /** * ServiceAccount binds together: \* a name, understood by users, and perhaps by peripheral systems, for an identity \* a principal that can be authenticated and authorized \* a set of secrets */ export class ServiceAccount extends Model { constructor(data) { super({ apiVersion: ServiceAccount.apiVersion, kind: ServiceAccount.kind, ...data }); } } ServiceAccount.apiVersion = "v1"; ServiceAccount.kind = "ServiceAccount"; ServiceAccount.is = createTypeMetaGuard(ServiceAccount); setSchema(ServiceAccount, "io.k8s.api.core.v1.ServiceAccount", addSchema); export { ServiceAccount as IoK8sApiCoreV1ServiceAccount };