Resource management API for the twinLab platform.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 0.1.0
- Package version: 1.0.0
- Generator version: 7.12.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://www.digilab.co.uk/
[!NOTE] You may want to turn any automatic formatting off before working on this repo as it will result in a larger diff than necessary and could lead to a confusion in changes made.
To regenerate the package, use the openapi-generator-cli tool with the configuration file defined in this repository:
# Install dependencies
poetry install# Generate the client
poetry run openapi-generator-cli generate -c openapi-generator-config.yamlThis should only alter files that have been modified since the last generation. If you want to regenerate everything, you can delete the openapi-generator directory and run the command again.
[!CAUTION] The client will also regenerate this docs page and is configured by default to give instructions on how to install requirements using pip rather than poetry. This section has been manually added in and should be re-added if removed during regeneration where possible.
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/digiLab-ai/uncertainty-engine-resource-client.gitThen import the package:
import uncertainty_engine_resource_clientExecute pytest to run the tests.
Please follow the installation procedure and then run the following:
import uncertainty_engine_resource_client
from uncertainty_engine_resource_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://tu8vus047g.execute-api.eu-west-2.amazonaws.com
# See configuration.py for a list of all supported configuration parameters.
configuration = uncertainty_engine_resource_client.Configuration(
host = "https://tu8vus047g.execute-api.eu-west-2.amazonaws.com"
)
# Enter a context with an instance of the API client
with uncertainty_engine_resource_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = uncertainty_engine_resource_client.AccountRecordsApi(api_client)
account_id = 'account_id_example' # str |
try:
# Delete Account Record
api_response = api_instance.delete_account_record(account_id)
print("The response of AccountRecordsApi->delete_account_record:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountRecordsApi->delete_account_record: %s\n" % e)All URIs are relative to https://tu8vus047g.execute-api.eu-west-2.amazonaws.com
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AccountRecordsApi | delete_account_record | DELETE /api/accounts/{account_id} | Delete Account Record |
| AccountRecordsApi | get_account_record | GET /api/accounts/{account_id} | Get Account Record Id |
| AccountRecordsApi | get_account_record_projects | GET /api/accounts/{account_id}/projects | Get Account Record Projects |
| AccountRecordsApi | post_account_record | POST /api/accounts | Post Account Record |
| AuthApi | get_tokens | POST /api/auth/token | Get Tokens |
| AuthApi | refresh_token | POST /api/auth/refresh | Refresh Token |
| ProjectRecordsApi | delete_project_record | DELETE /api/projects/{project_id} | Delete Project Record |
| ProjectRecordsApi | get_account_project_records | GET /api/projects | Get Account Project Records |
| ProjectRecordsApi | get_project_record_id | GET /api/projects/{project_id} | Get Project Record Id |
| ProjectRecordsApi | patch_project_record | PATCH /api/projects/{project_id}/name | Patch Project Record Name |
| ProjectRecordsApi | post_project_record | POST /api/projects | Post Project Record |
| ResourcesApi | delete_resource_record | DELETE /api/projects/{project_id}/resources/{resource_type}/{resource_id} | Delete Resource |
| ResourcesApi | delete_resource_version_record | DELETE /api/projects/{project_id}/resources/{resource_type}/{resource_id}/versions/{resource_version_id} | Delete Resource Version |
| ResourcesApi | get_latest_resource_version | GET /api/projects/{project_id}/resources/{resource_type}/{resource_id}/latest | Get Latest Resource Version |
| ResourcesApi | get_project_resource_records | GET /api/projects/{project_id}/resources/{resource_type} | Get Project Resource Records |
| ResourcesApi | get_resource_record | GET /api/projects/{project_id}/resources/{resource_type}/{resource_id} | Get Resource Record |
| ResourcesApi | get_resource_version | GET /api/projects/{project_id}/resources/{resource_type}/{resource_id}/versions/{resource_version_id} | Get Resource Version |
| ResourcesApi | get_resource_version_records | GET /api/projects/{project_id}/resources/{resource_type}/{resource_id}/versions | Get Resource Version Records |
| ResourcesApi | post_resource_record | POST /api/projects/{project_id}/resources/{resource_type} | Post Resource Record |
| ResourcesApi | post_resource_version | POST /api/projects/{project_id}/resources/{resource_type}/{resource_id}/versions | Post Resource Version |
| ResourcesApi | put_upload_resource_version | PUT /api/projects/{project_id}/resources/{resource_type}/{resource_id}/pending/{pending_record_id} | Put Upload Resource Version |
| TemplatesApi | delete_workflow_template | DELETE /api/templates/workflows/{workflow_template_id} | Delete Workflow Template |
| TemplatesApi | get_workflow_template_record | GET /api/templates/workflows/{workflow_template_id} | Get Workflow Template |
| TemplatesApi | get_workflow_template_records | GET /api/templates/workflows | Get Workflow Templates |
| TemplatesApi | workflow_template | POST /api/templates/workflows | Workflow Template |
| WorkflowsApi | delete_workflow_record | DELETE /api/projects/{project_id}/workflows/{workflow_id} | Delete Workflow |
| WorkflowsApi | delete_workflow_version_record | DELETE /api/projects/{project_id}/workflows/{workflow_id}/versions/{workflow_version_id} | Delete Workflow Version |
| WorkflowsApi | get_latest_workflow_version | GET /api/projects/{project_id}/workflows/{workflow_id}/latest | Get Latest Workflow Version |
| WorkflowsApi | get_project_workflow_records | GET /api/projects/{project_id}/workflows | Get Project Workflow Records |
| WorkflowsApi | get_workflow_record | GET /api/projects/{project_id}/workflows/{workflow_id} | Get Workflow Record |
| WorkflowsApi | get_workflow_records | GET /api/workflows | Get Workflow Records |
| WorkflowsApi | get_workflow_version | GET /api/projects/{project_id}/workflows/{workflow_id}/versions/{workflow_version_id} | Get Workflow Version |
| WorkflowsApi | get_workflow_version_records | GET /api/projects/{project_id}/workflows/{workflow_id}/versions | Get Workflow Version Records |
| WorkflowsApi | post_workflow_record | POST /api/projects/{project_id}/workflows | Post Workflow Record |
| WorkflowsApi | post_workflow_version | POST /api/projects/{project_id}/workflows/{workflow_id}/versions | Post Workflow Version |
| WorkflowsApi | put_workflow_version | PUT /api/projects/{project_id}/workflows/{workflow_id}/versions/{workflow_version_id} | Put Workflow Version |
| DefaultApi | health_health_get | GET /health | Health |
- AccountRecordInput
- AccountRecordOutput
- AccountResponse
- GetAccountRecordProjectsResponse
- GetProjectRecordsResponse
- GetResourceRecordsResponse
- GetResourceVersionRecordsResponse
- GetResourceVersionResponse
- GetWorkflowRecordsResponse
- GetWorkflowTemplateRecordsResponse
- GetWorkflowVersionRecordsResponse
- HTTPValidationError
- PatchProjectRecordNameRequest
- PostAccountRecordRequest
- PostProjectRecordRequest
- PostResourceRecordRequest
- PostResourceVersionRequest
- PostResourceVersionResponse
- PostWorkflowRecordRequest
- PostWorkflowTemplateRecordRequest
- PostWorkflowVersionRequest
- ProjectRecordInput
- ProjectRecordOutput
- ProjectResponse
- ProjectRoles
- ResourceLocation
- ResourceRecordInput
- ResourceRecordOutput
- ResourceResponse
- ResourceVersionRecordInput
- ResourceVersionRecordOutput
- TokenResponse
- UpdateWorkflowVersionRequest
- ValidationError
- ValidationErrorLocInner
- WorkflowRecordInput
- WorkflowRecordOutput
- WorkflowResponse
- WorkflowTemplateRecordInput
- WorkflowTemplateRecordOutput
- WorkflowTemplateResponse
- WorkflowVersionRecordInput
- WorkflowVersionRecordOutput
- WorkflowVersionResponse
Authentication schemes defined for the API:
- Type: API key
- API key parameter name: X-Resource-Service-Token
- Location: HTTP header