  def __init__(self, api_client: client.ApiClient) -> None:
    """Creates a K8sCluster object, checking the API client's authorization.

    This constructor calls an authorization check on the api_client, to see
    whether it is authorized to do all operations on the cluster. The equivalent
    check for kubectl would be `kubectl auth can-i '*' '*' --all-namespaces`.

    Args:
      api_client (client.ApiClient): The API client to the Kubernetes cluster.
    """
    super().__init__(api_client)
    self._AuthorizationCheck()
Creates a K8sCluster object, checking the API client's authorization.

This constructor calls an authorization check on the api_client, to see
whether it is authorized to do all operations on the cluster. The equivalent
check for kubectl would be `kubectl auth can-i '*' '*' --all-namespaces`.

Args:
api_client (client.ApiClient): The API client to the Kubernetes cluster.
libcloudforensics/providers/kubernetes/cluster.py