Skip to content

AllowedPortDict

Union Type

AllowedPortDict module-attribute

Dictionary form of AllowedPort, setting exactly one variant.

Union Member Types

AllowedPortPortDict

Bases: TypedDict

Attributes

port instance-attribute
port: int

A single port that is reachable through the runtime's session URL.

AllowedPortPortRangeDict

Bases: TypedDict

Attributes

port_range instance-attribute
port_range: PortRange | PortRangeDict

An inclusive range of ports that are reachable through the runtime's session URL.