kubernetes-models
Version:
20 lines (19 loc) • 897 B
JavaScript
import { createTypeMetaGuard, Model, setSchema } from "@kubernetes-models/base";
import { addSchema } from "../../_schemas/IoK8sApiFlowcontrolV1beta2FlowSchema.mjs";
/**
* 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".
*/
export class FlowSchema extends Model {
constructor(data) {
super({
apiVersion: FlowSchema.apiVersion,
kind: FlowSchema.kind,
...data
});
}
}
FlowSchema.apiVersion = "flowcontrol.apiserver.k8s.io/v1beta2";
FlowSchema.kind = "FlowSchema";
FlowSchema.is = createTypeMetaGuard(FlowSchema);
setSchema(FlowSchema, "io.k8s.api.flowcontrol.v1beta2.FlowSchema", addSchema);
export { FlowSchema as IoK8sApiFlowcontrolV1beta2FlowSchema };