kubernetes-models
Version:
24 lines (23 loc) • 1.07 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.IoK8sApiCoreV1ServiceAccount = exports.ServiceAccount = void 0;
const base_1 = require("@kubernetes-models/base");
const IoK8sApiCoreV1ServiceAccount_1 = require("../_schemas/IoK8sApiCoreV1ServiceAccount.js");
/**
* 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
*/
class ServiceAccount extends base_1.Model {
constructor(data) {
super({
apiVersion: ServiceAccount.apiVersion,
kind: ServiceAccount.kind,
...data
});
}
}
exports.ServiceAccount = ServiceAccount;
exports.IoK8sApiCoreV1ServiceAccount = ServiceAccount;
ServiceAccount.apiVersion = "v1";
ServiceAccount.kind = "ServiceAccount";
ServiceAccount.is = (0, base_1.createTypeMetaGuard)(ServiceAccount);
(0, base_1.setSchema)(ServiceAccount, "io.k8s.api.core.v1.ServiceAccount", IoK8sApiCoreV1ServiceAccount_1.addSchema);