kubernetes-models
Version:
24 lines (23 loc) • 1.14 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.IoK8sApiFlowcontrolV1beta2FlowSchema = exports.FlowSchema = void 0;
const base_1 = require("@kubernetes-models/base");
const IoK8sApiFlowcontrolV1beta2FlowSchema_1 = require("../../_schemas/IoK8sApiFlowcontrolV1beta2FlowSchema.js");
/**
* FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher".
*/
class FlowSchema extends base_1.Model {
constructor(data) {
super({
apiVersion: FlowSchema.apiVersion,
kind: FlowSchema.kind,
...data
});
}
}
exports.FlowSchema = FlowSchema;
exports.IoK8sApiFlowcontrolV1beta2FlowSchema = FlowSchema;
FlowSchema.apiVersion = "flowcontrol.apiserver.k8s.io/v1beta2";
FlowSchema.kind = "FlowSchema";
FlowSchema.is = (0, base_1.createTypeMetaGuard)(FlowSchema);
(0, base_1.setSchema)(FlowSchema, "io.k8s.api.flowcontrol.v1beta2.FlowSchema", IoK8sApiFlowcontrolV1beta2FlowSchema_1.addSchema);