#NEWLINE# def __init__( self , key = None , secret = None , secure = False , host = 'localhost' , port = 4243 ) : #NEWLINE# #INDENT# '\n        :param    key: API key or username to used (required)\n        :type     key: ``str``\n\n        :param    secret: Secret password to be used (required)\n        :type     secret: ``str``\n\n        :param    secure: Whether to use HTTPS or HTTP. Note: Some providers\n                only support HTTPS, and it is on by default.\n        :type     secure: ``bool``\n\n        :param    host: Override hostname used for connections.\n        :type     host: ``str``\n\n        :param    port: Override port used for connections.\n        :type     port: ``int``\n\n        :return: ``None``\n        ' #NEWLINE# super ( KubernetesContainerDriver , self ) . __init__ ( key = key , secret = secret , secure = secure , host = host , port = port ) #NEWLINE# if host . startswith ( 'https://' ) : #NEWLINE# #INDENT# secure = True #NEWLINE# #UNINDENT# prefixes = [ 'http://' , 'https://' ] #NEWLINE# for prefix in prefixes : #NEWLINE# #INDENT# if host . startswith ( prefix ) : #NEWLINE# #INDENT# host = host . strip ( prefix ) #NEWLINE# #UNINDENT# #UNINDENT# self . connection . secure = secure #NEWLINE# self . connection . key = key #NEWLINE# self . connection . secret = secret #NEWLINE# self . connection . host = host #NEWLINE# self . connection . port = port