(graph_identifier: str)
| 34 | |
| 35 | |
| 36 | def start_service(graph_identifier: str) -> str: |
| 37 | context = get_current_context() |
| 38 | with graphscope.flex.rest.ApiClient( |
| 39 | graphscope.flex.rest.Configuration(context.coordinator_endpoint) |
| 40 | ) as api_client: |
| 41 | api_instance = graphscope.flex.rest.ServiceApi(api_client) |
| 42 | return api_instance.start_service( |
| 43 | StartServiceRequest.from_dict({"graph_id": graph_identifier}) |
| 44 | ) |
| 45 | |
| 46 | |
| 47 | def stop_service() -> str: |