Coordinator Python SDK Reference¶
This is a specification for GraphScope FLEX HTTP service based on the OpenAPI 3.0 specification. You can find out more details about specification at doc.
This Python package is automatically generated by the OpenAPI Generator project:
API version: 1.0.0
Package version: 1.0.0
Generator version: 7.8.0
Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.¶
Python 3.7+
Installation & Usage¶
pip install¶
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
)
Then import the package:
import graphscope.flex.rest
Setuptools¶
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import graphscope.flex.rest
Tests¶
Execute pytest
to run the tests.
Getting Started¶
Please follow the installation procedure and then run the following:
import graphscope.flex.rest
from graphscope.flex.rest.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = graphscope.flex.rest.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with graphscope.flex.rest.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = graphscope.flex.rest.AlertApi(api_client)
create_alert_receiver_request = graphscope.flex.rest.CreateAlertReceiverRequest() # CreateAlertReceiverRequest |
try:
api_response = api_instance.create_alert_receiver(create_alert_receiver_request)
print("The response of AlertApi->create_alert_receiver:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling AlertApi->create_alert_receiver: %s\n" % e)
Documentation for API Endpoints¶
All URIs are relative to http://localhost
Class |
Method |
HTTP request |
Description |
---|---|---|---|
AlertApi |
POST /api/v1/alert/receiver |
||
AlertApi |
DELETE /api/v1/alert/message-collection |
||
AlertApi |
DELETE /api/v1/alert/receiver/{receiver_id} |
||
AlertApi |
DELETE /api/v1/alert/rule/{rule_id} |
||
AlertApi |
GET /api/v1/alert/message |
||
AlertApi |
GET /api/v1/alert/receiver |
||
AlertApi |
GET /api/v1/alert/rule |
||
AlertApi |
PUT /api/v1/alert/message-collection/status |
||
AlertApi |
PUT /api/v1/alert/receiver/{receiver_id} |
||
AlertApi |
PUT /api/v1/alert/rule/{rule_id} |
||
DataSourceApi |
POST /api/v1/graph/{graph_id}/datasource |
||
DataSourceApi |
GET /api/v1/graph/{graph_id}/datasource |
||
DataSourceApi |
DELETE /api/v1/graph/{graph_id}/datasource/edge/{type_name} |
||
DataSourceApi |
DELETE /api/v1/graph/{graph_id}/datasource/vertex/{type_name} |
||
DeploymentApi |
GET /api/v1/deployment |
||
DeploymentApi |
GET /api/v1/deployment/log |
||
DeploymentApi |
GET /api/v1/deployment/resource/usage |
||
DeploymentApi |
GET /api/v1/deployment/status |
||
DeploymentApi |
GET /api/v1/deployment/storage/usage |
||
GraphApi |
POST /api/v1/graph/{graph_id}/schema/edge |
||
GraphApi |
POST /api/v1/graph |
||
GraphApi |
POST /api/v1/graph/{graph_id}/schema/vertex |
||
GraphApi |
DELETE /api/v1/graph/{graph_id}/schema/edge/{type_name} |
||
GraphApi |
DELETE /api/v1/graph/{graph_id} |
||
GraphApi |
DELETE /api/v1/graph/{graph_id}/schema/vertex/{type_name} |
||
GraphApi |
GET /api/v1/graph/{graph_id} |
||
GraphApi |
GET /api/v1/graph/{graph_id}/schema |
||
GraphApi |
POST /api/v1/graph/{graph_id}/schema |
||
GraphApi |
GET /api/v1/graph |
||
JobApi |
DELETE /api/v1/job/{job_id} |
||
JobApi |
POST /api/v1/graph/{graph_id}/dataloading/config |
||
JobApi |
GET /api/v1/job/{job_id} |
||
JobApi |
GET /api/v1/job |
||
JobApi |
POST /api/v1/graph/{graph_id}/dataloading |
||
ServiceApi |
GET /api/v1/graph/{graph_id}/service |
||
ServiceApi |
GET /api/v1/service |
||
ServiceApi |
POST /api/v1/service/restart |
||
ServiceApi |
POST /api/v1/service/start |
||
ServiceApi |
POST /api/v1/service/stop |
||
StoredProcedureApi |
POST /api/v1/graph/{graph_id}/storedproc |
||
StoredProcedureApi |
DELETE /api/v1/graph/{graph_id}/storedproc/{stored_procedure_id} |
||
StoredProcedureApi |
GET /api/v1/graph/{graph_id}/storedproc/{stored_procedure_id} |
||
StoredProcedureApi |
GET /api/v1/graph/{graph_id}/storedproc |
||
StoredProcedureApi |
PUT /api/v1/graph/{graph_id}/storedproc/{stored_procedure_id} |
||
UtilsApi |
POST /api/v1/file/uploading |