IngressSpec
Ingress protocol and runtime port mapping.
Shared
IngressSpec declaration
Section titled “IngressSpec declaration”class IngressSpec:IngressSpec construction
Section titled “IngressSpec construction”IngressSpec(protocol: str, runtime_port: int)IngressSpec attributes
Section titled “IngressSpec attributes”| Name | Type or value | Description |
|---|---|---|
protocol | str | Ingress protocol, such as tcp or http. |
runtime_port | int | Port exposed by the runtime. |
IngressSpec methods
Section titled “IngressSpec methods”to_json()
Section titled “to_json()”Serialize this ingress spec for an API request.
def to_json() -> dict[str, Any]Returns
Section titled “Returns”dict[str, Any]
from_json()
Section titled “from_json()”Create an ingress spec from an API response payload.
def from_json(data: dict[str, Any]) -> 'IngressSpec'Parameters
Section titled “Parameters”| Name | Type | Default | Description |
|---|---|---|---|
data | dict[str, Any] | — | API response payload. |
Returns
Section titled “Returns”'IngressSpec'