Skip to content

IngressSpec

Ingress protocol and runtime port mapping.

Shared

class IngressSpec:
IngressSpec(protocol: str, runtime_port: int)
Name Type or value Description
protocol str Ingress protocol, such as tcp or http.
runtime_port int Port 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'
Name Type Default Description
data dict[str, Any] API response payload.
  • 'IngressSpec'