import { IComGithubCiliumCiliumPkgPolicyApiPortRulesDNS } from "./PortRulesDNS.js"; import { IComGithubCiliumCiliumPkgPolicyApiPortRulesHTTP } from "./PortRulesHTTP.js"; import { IComGithubCiliumProxyPkgPolicyApiKafkaPortRule } from "../kafka/PortRule.js"; import { IComGithubCiliumCiliumPkgPolicyApiPortRulesL7 } from "./PortRulesL7.js"; /** * L7Rules is a union of port level rule types. Mixing of different port * level rule types is disallowed, so exactly one of the following must be set. * If none are specified, then no additional port level rules are applied. */ export type IL7Rules = { /** * DNS-specific rules. */ "dns"?: IComGithubCiliumCiliumPkgPolicyApiPortRulesDNS; /** * HTTP specific rules. */ "http"?: IComGithubCiliumCiliumPkgPolicyApiPortRulesHTTP; /** * Kafka-specific rules. * Deprecated: This beta feature is deprecated and will be removed in a future release. */ "kafka"?: Array; /** * Key-value pair rules. */ "l7"?: IComGithubCiliumCiliumPkgPolicyApiPortRulesL7; /** * Name of the L7 protocol for which the Key-value pair rules apply. */ "l7proto"?: string; } & ({ /** * DNS-specific rules. */ "dns"?: IComGithubCiliumCiliumPkgPolicyApiPortRulesDNS; /** * HTTP specific rules. */ "http": IComGithubCiliumCiliumPkgPolicyApiPortRulesHTTP; /** * Kafka-specific rules. * Deprecated: This beta feature is deprecated and will be removed in a future release. */ "kafka"?: Array; /** * Key-value pair rules. */ "l7"?: IComGithubCiliumCiliumPkgPolicyApiPortRulesL7; /** * Name of the L7 protocol for which the Key-value pair rules apply. */ "l7proto"?: string; } | { /** * DNS-specific rules. */ "dns"?: IComGithubCiliumCiliumPkgPolicyApiPortRulesDNS; /** * HTTP specific rules. */ "http"?: IComGithubCiliumCiliumPkgPolicyApiPortRulesHTTP; /** * Kafka-specific rules. * Deprecated: This beta feature is deprecated and will be removed in a future release. */ "kafka": Array; /** * Key-value pair rules. */ "l7"?: IComGithubCiliumCiliumPkgPolicyApiPortRulesL7; /** * Name of the L7 protocol for which the Key-value pair rules apply. */ "l7proto"?: string; } | { /** * DNS-specific rules. */ "dns": IComGithubCiliumCiliumPkgPolicyApiPortRulesDNS; /** * HTTP specific rules. */ "http"?: IComGithubCiliumCiliumPkgPolicyApiPortRulesHTTP; /** * Kafka-specific rules. * Deprecated: This beta feature is deprecated and will be removed in a future release. */ "kafka"?: Array; /** * Key-value pair rules. */ "l7"?: IComGithubCiliumCiliumPkgPolicyApiPortRulesL7; /** * Name of the L7 protocol for which the Key-value pair rules apply. */ "l7proto"?: string; } | { /** * DNS-specific rules. */ "dns"?: IComGithubCiliumCiliumPkgPolicyApiPortRulesDNS; /** * HTTP specific rules. */ "http"?: IComGithubCiliumCiliumPkgPolicyApiPortRulesHTTP; /** * Kafka-specific rules. * Deprecated: This beta feature is deprecated and will be removed in a future release. */ "kafka"?: Array; /** * Key-value pair rules. */ "l7"?: IComGithubCiliumCiliumPkgPolicyApiPortRulesL7; /** * Name of the L7 protocol for which the Key-value pair rules apply. */ "l7proto": string; }); export type L7Rules = IL7Rules; export type { IL7Rules as IComGithubCiliumCiliumPkgPolicyApiL7Rules, L7Rules as ComGithubCiliumCiliumPkgPolicyApiL7Rules };