Beispiel #1
0
    def __init__(self, client, session_id, node_id):
        self.client = client
        # TODO: get configuration
        self.peer_api = gu_rest_api.PeerApi(client)
        self.session_api = gu_rest_api.SessionApi(client)
        self.session_id = session_id
        self.node_id = node_id

        print('session_id=', session_id, ',node_id=', node_id)
Beispiel #2
0
 def __init__(self, client, session_id, blob_id):
     self._client = client
     self._api = gu_rest_api.SessionApi(client)
     self._blob_id = blob_id
     self._session_id = session_id
Beispiel #3
0
 def __init__(self):
     configuration = gu_rest_api.Configuration()
     client = gu_rest_api.ApiClient(configuration)
     self.client = client
     self.api_instance = gu_rest_api.SessionApi(client)
Beispiel #4
0
 def __init__(self, client, session_id):
     self.client = client
     self.rest_api = gu_rest_api.SessionApi(client)
     self.session_id = session_id