Skip to content

IngressSpec

Ingress protocol and runtime port mapping.

Shared

class IngressSpec:
IngressSpec(protocol: str, runtime_port: int)
NameType or valueDescription
protocolstrIngress protocol, such as tcp or http.
runtime_portintPort exposed by the runtime.

Serialize this ingress spec for an API request.

def to_json() -> dict[str, Any]
  • dict[str, Any]

Create an ingress spec from an API response payload.

def from_json(data: dict[str, Any]) -> 'IngressSpec'
NameTypeDefaultDescription
datadict[str, Any]API response payload.
  • 'IngressSpec'