  def IsLegacyEndpointsDisabled(self) -> bool:
    """Returns whether legacy endpoints are enabled.

    Returns:
      bool: True if legacy endpoints are disabled, False otherwise.
    """
    return bool(
        self._GetValue(
            'nodeConfig',
            'metadata',
            'disable-legacy-endpoints') == 'true')
Returns whether legacy endpoints are enabled.

Returns:
bool: True if legacy endpoints are disabled, False otherwise.
libcloudforensics/providers/gcp/internal/gke.py