(location: str)
| 22 | |
| 23 | |
| 24 | def upload_file(location: str) -> str: |
| 25 | context = get_current_context() |
| 26 | with graphscope.flex.rest.ApiClient( |
| 27 | graphscope.flex.rest.Configuration(context.coordinator_endpoint) |
| 28 | ) as api_client: |
| 29 | api_instance = graphscope.flex.rest.UtilsApi(api_client) |
| 30 | return api_instance.upload_file(location).file_path |
| 31 | |
| 32 | |
| 33 | def switch_context(context: str, graph_name=None): |