  def ListServices(
      self, namespace: Optional[str] = None) -> List[services.K8sService]:
    """Lists the services in a namespace of this cluster.

    Args:
      namespace: Optional. The namespace in which to list this cluster's
          services. If unspecified, it lists services in all namespaces of this
          cluster.

    Returns:
      The list of services.
    """
    api = self._Api(client.CoreV1Api)
    if namespace is not None:
      services_ = api.list_namespaced_service(namespace)
    else:
      services_ = api.list_service_for_all_namespaces()
    return [
        services.K8sService(
            self._api_client, service.metadata.name, service.metadata.namespace)
        for service in services_.items
    ]
Lists the services in a namespace of this cluster.

Args:
namespace: Optional. The namespace in which to list this cluster's
services. If unspecified, it lists services in all namespaces of this
cluster.

Returns:
The list of services.
libcloudforensics/providers/kubernetes/cluster.py