Пример #1
0
 def __init__(self, host):
     """
     Submarine experiment client constructor
     :param host: An HTTP URI like http://submarine-server:8080.
     """
     # TODO(pingsutw): support authentication for talking to the submarine server
     self.host = host
     configuration = Configuration()
     configuration.host = host + '/api'
     api_client = ApiClient(configuration=configuration)
     self.experiment_api = ExperimentApi(api_client=api_client)
Пример #2
0
 def __init__(self, api_client=None):
     if api_client is None:
         api_client = ApiClient()
     self.api_client = api_client