import { IComGithubCiliumCiliumPkgPolicyApiL4Proto } from "../../policy/api/L4Proto.js"; import { ModelData, Model } from "@kubernetes-models/base"; /** * PortInfo specifies L4 port number and name along with the transport protocol */ export interface IPortInfo { /** * Name is a port name, which must contain at least one [a-z], * and may also contain [0-9] and '-' anywhere except adjacent to another * '-' or in the beginning or the end. */ "name"?: string; /** * Port is an L4 port number. The string will be strictly parsed as a single uint16. */ "port": string; /** * Protocol is the L4 protocol. * Accepted values: "TCP", "UDP" */ "protocol": IComGithubCiliumCiliumPkgPolicyApiL4Proto; } /** * PortInfo specifies L4 port number and name along with the transport protocol */ export declare class PortInfo extends Model implements IPortInfo { "name"?: string; "port": string; "protocol": IComGithubCiliumCiliumPkgPolicyApiL4Proto; constructor(data?: ModelData); } export type { IPortInfo as IComGithubCiliumCiliumPkgK8sApisCiliumIoV2PortInfo, PortInfo as ComGithubCiliumCiliumPkgK8sApisCiliumIoV2PortInfo };