def __init__(self, kube_version="1.1", api_server="http://localhost:8080", debug=False):
        """
        Creates an instance of the KubeHTTPClient.
 
        :Parameters:
           - `kube_version`: The Kubernetes API version to use, defaults to 1.1
           - `api_server`: The URL (IP or FQHN and port) of the Kubernetes API server to use, defaults to `http://localhost:8080`
        """
        self.kube_version = kube_version
        self.api_server = api_server
        DEBUG=debug
        if DEBUG:
          FORMAT = "%(asctime)-0s %(levelname)s %(message)s [at line %(lineno)d]"
          logging.basicConfig(level=logging.DEBUG, format=FORMAT, datefmt="%Y-%m-%dT%I:%M:%S")
        else:
          FORMAT = "%(asctime)-0s %(message)s"
          logging.basicConfig(level=logging.INFO, format=FORMAT, datefmt="%Y-%m-%dT%I:%M:%S")
def __init__ ( self , kube_version = "1.1" , api_server = "http://localhost:8080" , debug = False ) : self . kube_version = kube_version self . api_server = api_server DEBUG = debug if DEBUG : FORMAT = "%(asctime)-0s %(levelname)s %(message)s [at line %(lineno)d]" logging . basicConfig ( level = logging . DEBUG , format = FORMAT , datefmt = "%Y-%m-%dT%I:%M:%S" ) else : FORMAT = "%(asctime)-0s %(message)s" logging . basicConfig ( level = logging . INFO , format = FORMAT , datefmt = "%Y-%m-%dT%I:%M:%S" )
Creates an instance of the KubeHTTPClient.
 
        :Parameters:
           - `kube_version`: The Kubernetes API version to use, defaults to 1.1
           - `api_server`: The URL (IP or FQHN and port) of the Kubernetes API server to use, defaults to `http://localhost:8080`