kubernetes-models
Version:
24 lines (23 loc) • 843 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.IoK8sApiCoordinationV1beta1Lease = exports.Lease = void 0;
const base_1 = require("@kubernetes-models/base");
const IoK8sApiCoordinationV1beta1Lease_1 = require("../../_schemas/IoK8sApiCoordinationV1beta1Lease.js");
/**
* Lease defines a lease concept.
*/
class Lease extends base_1.Model {
constructor(data) {
super({
apiVersion: Lease.apiVersion,
kind: Lease.kind,
...data
});
}
}
exports.Lease = Lease;
exports.IoK8sApiCoordinationV1beta1Lease = Lease;
Lease.apiVersion = "coordination.k8s.io/v1beta1";
Lease.kind = "Lease";
Lease.is = (0, base_1.createTypeMetaGuard)(Lease);
(0, base_1.setSchema)(Lease, "io.k8s.api.coordination.v1beta1.Lease", IoK8sApiCoordinationV1beta1Lease_1.addSchema);