interactive_sdk.openapi.AdminServiceGraphManagementApi

All URIs are relative to {INTERACTIVE_ENDPOINT}

Method

HTTP request

Description

create_dataloading_job

POST /v1/graph/{graph_id}/dataloading

create_graph

POST /v1/graph

delete_graph

DELETE /v1/graph/{graph_id}

get_graph

GET /v1/graph/{graph_id}

get_schema

GET /v1/graph/{graph_id}/schema

list_graphs

GET /v1/graph

create_dataloading_job

JobResponse create_dataloading_job(graph_id, schema_mapping)

Create a dataloading job

Example

import interactive_sdk.openapi
from interactive_sdk.openapi.models.job_response import JobResponse
from interactive_sdk.openapi.models.schema_mapping import SchemaMapping
from interactive_sdk.openapi.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to {INTERACTIVE_ENDPOINT}
# See configuration.py for a list of all supported configuration parameters.
configuration = interactive_sdk.openapi.Configuration(
    host = "{INTERACTIVE_ENDPOINT}"
)


# Enter a context with an instance of the API client
with interactive_sdk.openapi.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = interactive_sdk.openapi.AdminServiceGraphManagementApi(api_client)
    graph_id = 'graph_id_example' # str | The name of graph to do bulk loading.
    schema_mapping = interactive_sdk.openapi.SchemaMapping() # SchemaMapping | 

    try:
        api_response = api_instance.create_dataloading_job(graph_id, schema_mapping)
        print("The response of AdminServiceGraphManagementApi->create_dataloading_job:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling AdminServiceGraphManagementApi->create_dataloading_job: %s\n" % e)

Parameters

Name

Type

Description

Notes

graph_id

str

The name of graph to do bulk loading.

schema_mapping

SchemaMapping

Return type

JobResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

HTTP response details

Status code

Description

Response headers

200

successful operation

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

create_graph

CreateGraphResponse create_graph(create_graph_request)

Create a new graph

Example

import interactive_sdk.openapi
from interactive_sdk.openapi.models.create_graph_request import CreateGraphRequest
from interactive_sdk.openapi.models.create_graph_response import CreateGraphResponse
from interactive_sdk.openapi.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to {INTERACTIVE_ENDPOINT}
# See configuration.py for a list of all supported configuration parameters.
configuration = interactive_sdk.openapi.Configuration(
    host = "{INTERACTIVE_ENDPOINT}"
)


# Enter a context with an instance of the API client
with interactive_sdk.openapi.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = interactive_sdk.openapi.AdminServiceGraphManagementApi(api_client)
    create_graph_request = interactive_sdk.openapi.CreateGraphRequest() # CreateGraphRequest | 

    try:
        api_response = api_instance.create_graph(create_graph_request)
        print("The response of AdminServiceGraphManagementApi->create_graph:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling AdminServiceGraphManagementApi->create_graph: %s\n" % e)

Parameters

Name

Type

Description

Notes

create_graph_request

CreateGraphRequest

Return type

CreateGraphResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

HTTP response details

Status code

Description

Response headers

200

successful operation

-

400

BadRequest

-

500

Internal error

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

delete_graph

str delete_graph(graph_id)

Delete a graph by name

Example

import interactive_sdk.openapi
from interactive_sdk.openapi.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to {INTERACTIVE_ENDPOINT}
# See configuration.py for a list of all supported configuration parameters.
configuration = interactive_sdk.openapi.Configuration(
    host = "{INTERACTIVE_ENDPOINT}"
)


# Enter a context with an instance of the API client
with interactive_sdk.openapi.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = interactive_sdk.openapi.AdminServiceGraphManagementApi(api_client)
    graph_id = 'graph_id_example' # str | The name of graph to delete

    try:
        api_response = api_instance.delete_graph(graph_id)
        print("The response of AdminServiceGraphManagementApi->delete_graph:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling AdminServiceGraphManagementApi->delete_graph: %s\n" % e)

Parameters

Name

Type

Description

Notes

graph_id

str

The name of graph to delete

Return type

str

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

HTTP response details

Status code

Description

Response headers

200

Successful operation

-

404

Not Found

-

500

Internal Error

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_graph

GetGraphResponse get_graph(graph_id)

Get a graph by name

Example

import interactive_sdk.openapi
from interactive_sdk.openapi.models.get_graph_response import GetGraphResponse
from interactive_sdk.openapi.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to {INTERACTIVE_ENDPOINT}
# See configuration.py for a list of all supported configuration parameters.
configuration = interactive_sdk.openapi.Configuration(
    host = "{INTERACTIVE_ENDPOINT}"
)


# Enter a context with an instance of the API client
with interactive_sdk.openapi.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = interactive_sdk.openapi.AdminServiceGraphManagementApi(api_client)
    graph_id = 'graph_id_example' # str | The name of graph to get

    try:
        api_response = api_instance.get_graph(graph_id)
        print("The response of AdminServiceGraphManagementApi->get_graph:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling AdminServiceGraphManagementApi->get_graph: %s\n" % e)

Parameters

Name

Type

Description

Notes

graph_id

str

The name of graph to get

Return type

GetGraphResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

HTTP response details

Status code

Description

Response headers

200

Successful operation

-

404

Not found

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_schema

GetGraphSchemaResponse get_schema(graph_id)

Get schema by graph name

Example

import interactive_sdk.openapi
from interactive_sdk.openapi.models.get_graph_schema_response import GetGraphSchemaResponse
from interactive_sdk.openapi.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to {INTERACTIVE_ENDPOINT}
# See configuration.py for a list of all supported configuration parameters.
configuration = interactive_sdk.openapi.Configuration(
    host = "{INTERACTIVE_ENDPOINT}"
)


# Enter a context with an instance of the API client
with interactive_sdk.openapi.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = interactive_sdk.openapi.AdminServiceGraphManagementApi(api_client)
    graph_id = 'graph_id_example' # str | The name of graph to delete

    try:
        api_response = api_instance.get_schema(graph_id)
        print("The response of AdminServiceGraphManagementApi->get_schema:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling AdminServiceGraphManagementApi->get_schema: %s\n" % e)

Parameters

Name

Type

Description

Notes

graph_id

str

The name of graph to delete

Return type

GetGraphSchemaResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

HTTP response details

Status code

Description

Response headers

200

successful operation

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

list_graphs

List[GetGraphResponse] list_graphs()

List all graphs

Example

import interactive_sdk.openapi
from interactive_sdk.openapi.models.get_graph_response import GetGraphResponse
from interactive_sdk.openapi.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to {INTERACTIVE_ENDPOINT}
# See configuration.py for a list of all supported configuration parameters.
configuration = interactive_sdk.openapi.Configuration(
    host = "{INTERACTIVE_ENDPOINT}"
)


# Enter a context with an instance of the API client
with interactive_sdk.openapi.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = interactive_sdk.openapi.AdminServiceGraphManagementApi(api_client)

    try:
        api_response = api_instance.list_graphs()
        print("The response of AdminServiceGraphManagementApi->list_graphs:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling AdminServiceGraphManagementApi->list_graphs: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

List[GetGraphResponse]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

HTTP response details

Status code

Description

Response headers

200

Successful operation

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]