(graph_identifier: str)
| 47 | |
| 48 | |
| 49 | def get_datasource_by_id(graph_identifier: str) -> SchemaMapping: |
| 50 | context = get_current_context() |
| 51 | with graphscope.flex.rest.ApiClient( |
| 52 | graphscope.flex.rest.Configuration(context.coordinator_endpoint) |
| 53 | ) as api_client: |
| 54 | api_instance = graphscope.flex.rest.DataSourceApi(api_client) |
| 55 | return api_instance.get_datasource_by_id(graph_identifier) |
| 56 | |
| 57 | |
| 58 | def unbind_vertex_datasource(graph_identifier: str, vertex_type: str) -> str: |