  def ContainerPorts(self) -> List[int]:
    """Returns the ports listed for this container.

    Returns:
      List[int]: The ports listed for this container.
    """
    ports = [
        port.container_port for port in (self._response.ports or [])
    ]  # type: List[int]
    return ports
Returns the ports listed for this container.

Returns:
List[int]: The ports listed for this container.
libcloudforensics/providers/kubernetes/container.py