gs_interactive.AdminServiceProcedureManagementApi¶
All URIs are relative to {INTERACTIVE_ENDPOINT}
Method |
HTTP request |
Description |
---|---|---|
POST /v1/graph/{graph_id}/procedure |
||
DELETE /v1/graph/{graph_id}/procedure/{procedure_id} |
||
GET /v1/graph/{graph_id}/procedure/{procedure_id} |
||
GET /v1/graph/{graph_id}/procedure |
||
PUT /v1/graph/{graph_id}/procedure/{procedure_id} |
create_procedure¶
CreateProcedureResponse create_procedure(graph_id, create_procedure_request)
Create a new procedure on a graph
Example¶
import gs_interactive
from gs_interactive.models.create_procedure_request import CreateProcedureRequest
from gs_interactive.models.create_procedure_response import CreateProcedureResponse
from gs_interactive.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 = gs_interactive.Configuration(
host = "{INTERACTIVE_ENDPOINT}"
)
# Enter a context with an instance of the API client
with gs_interactive.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = gs_interactive.AdminServiceProcedureManagementApi(api_client)
graph_id = 'graph_id_example' # str |
create_procedure_request = gs_interactive.CreateProcedureRequest() # CreateProcedureRequest |
try:
api_response = api_instance.create_procedure(graph_id, create_procedure_request)
print("The response of AdminServiceProcedureManagementApi->create_procedure:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AdminServiceProcedureManagementApi->create_procedure: %s\n" % e)
Parameters¶
Name |
Type |
Description |
Notes |
---|---|---|---|
graph_id |
str |
||
create_procedure_request |
Return type¶
HTTP request headers¶
Content-Type: application/json
Accept: application/json
HTTP response details¶
Status code |
Description |
Response headers |
---|---|---|
200 |
successful operation |
- |
400 |
Bad request |
- |
404 |
not found |
- |
500 |
Internal Error |
- |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_procedure¶
str delete_procedure(graph_id, procedure_id)
Delete a procedure on a graph by name
Example¶
import gs_interactive
from gs_interactive.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 = gs_interactive.Configuration(
host = "{INTERACTIVE_ENDPOINT}"
)
# Enter a context with an instance of the API client
with gs_interactive.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = gs_interactive.AdminServiceProcedureManagementApi(api_client)
graph_id = 'graph_id_example' # str |
procedure_id = 'procedure_id_example' # str |
try:
api_response = api_instance.delete_procedure(graph_id, procedure_id)
print("The response of AdminServiceProcedureManagementApi->delete_procedure:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AdminServiceProcedureManagementApi->delete_procedure: %s\n" % e)
Parameters¶
Name |
Type |
Description |
Notes |
---|---|---|---|
graph_id |
str |
||
procedure_id |
str |
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 |
- |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
get_procedure¶
GetProcedureResponse get_procedure(graph_id, procedure_id)
Get a procedure by name
Example¶
import gs_interactive
from gs_interactive.models.get_procedure_response import GetProcedureResponse
from gs_interactive.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 = gs_interactive.Configuration(
host = "{INTERACTIVE_ENDPOINT}"
)
# Enter a context with an instance of the API client
with gs_interactive.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = gs_interactive.AdminServiceProcedureManagementApi(api_client)
graph_id = 'graph_id_example' # str |
procedure_id = 'procedure_id_example' # str |
try:
api_response = api_instance.get_procedure(graph_id, procedure_id)
print("The response of AdminServiceProcedureManagementApi->get_procedure:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AdminServiceProcedureManagementApi->get_procedure: %s\n" % e)
Parameters¶
Name |
Type |
Description |
Notes |
---|---|---|---|
graph_id |
str |
||
procedure_id |
str |
Return type¶
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]
list_procedures¶
List[GetProcedureResponse] list_procedures(graph_id)
List all procedures
Example¶
import gs_interactive
from gs_interactive.models.get_procedure_response import GetProcedureResponse
from gs_interactive.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 = gs_interactive.Configuration(
host = "{INTERACTIVE_ENDPOINT}"
)
# Enter a context with an instance of the API client
with gs_interactive.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = gs_interactive.AdminServiceProcedureManagementApi(api_client)
graph_id = 'graph_id_example' # str |
try:
api_response = api_instance.list_procedures(graph_id)
print("The response of AdminServiceProcedureManagementApi->list_procedures:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AdminServiceProcedureManagementApi->list_procedures: %s\n" % e)
Parameters¶
Name |
Type |
Description |
Notes |
---|---|---|---|
graph_id |
str |
Return type¶
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]
update_procedure¶
str update_procedure(graph_id, procedure_id, update_procedure_request=update_procedure_request)
Update procedure on a graph by name
Example¶
import gs_interactive
from gs_interactive.models.update_procedure_request import UpdateProcedureRequest
from gs_interactive.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 = gs_interactive.Configuration(
host = "{INTERACTIVE_ENDPOINT}"
)
# Enter a context with an instance of the API client
with gs_interactive.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = gs_interactive.AdminServiceProcedureManagementApi(api_client)
graph_id = 'graph_id_example' # str |
procedure_id = 'procedure_id_example' # str |
update_procedure_request = gs_interactive.UpdateProcedureRequest() # UpdateProcedureRequest | (optional)
try:
api_response = api_instance.update_procedure(graph_id, procedure_id, update_procedure_request=update_procedure_request)
print("The response of AdminServiceProcedureManagementApi->update_procedure:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AdminServiceProcedureManagementApi->update_procedure: %s\n" % e)
Parameters¶
Name |
Type |
Description |
Notes |
---|---|---|---|
graph_id |
str |
||
procedure_id |
str |
||
update_procedure_request |
[optional] |
Return type¶
str
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 |
Bad request |
- |
404 |
Not Found |
- |
500 |
Internal error |
- |
[Back to top] [Back to API list] [Back to Model list] [Back to README]