(self, object_id, schema_path, params, with_cypher)
| 214 | return json.loads(response.engine_config), response.host_names |
| 215 | |
| 216 | def create_interactive_instance(self, object_id, schema_path, params, with_cypher): |
| 217 | request = message_pb2.CreateInteractiveInstanceRequest( |
| 218 | session_id=self._session_id, |
| 219 | object_id=object_id, |
| 220 | schema_path=schema_path, |
| 221 | with_cypher=with_cypher, |
| 222 | ) |
| 223 | if params is not None: |
| 224 | for k, v in params.items(): |
| 225 | request.params[str(k)] = str(v) |
| 226 | |
| 227 | response = self._stub.CreateInteractiveInstance(request) |
| 228 | return response.gremlin_endpoint, response.cypher_endpoint |
| 229 | |
| 230 | def create_learning_instance(self, object_id, handle, config, learning_backend): |
| 231 | request = message_pb2.CreateLearningInstanceRequest(session_id=self._session_id) |
no test coverage detected