Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ endif

sdk: init
# generate sdk
docker run --rm -v ${PWD}/.build:/build openapitools/openapi-generator-cli \
docker run --rm -v ${PWD}/.build:/build openapitools/openapi-generator-cli:v4.3.1 \
generate -p packageName=onepanel.core.api,projectName=onepanel-sdk,packageVersion=$(version) -i /build/api.swagger.json -g python -o /build/
rm .build/api.swagger.json

Expand Down
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Onepanel API

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: v0.12.0
- Package version: 0.12.0
- API version: 0.13.0
- Package version: v0.13.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://github.com/onepanelio/core](https://github.com/onepanelio/core)

Expand Down Expand Up @@ -68,11 +68,11 @@ configuration = onepanel.core.api.Configuration(
configuration = onepanel.core.api.Configuration(
host = "http://localhost:8888",
api_key = {
'Bearer': 'YOUR_API_KEY'
'authorization': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Bearer'] = 'Bearer'
# configuration.api_key_prefix['authorization'] = 'Bearer'


# Enter a context with an instance of the API client
Expand Down Expand Up @@ -128,6 +128,7 @@ Class | Method | HTTP request | Description
*WorkflowServiceApi* | [**get_workflow_execution**](docs/WorkflowServiceApi.md#get_workflow_execution) | **GET** /apis/v1beta1/{namespace}/workflow_executions/{uid} |
*WorkflowServiceApi* | [**get_workflow_execution_logs**](docs/WorkflowServiceApi.md#get_workflow_execution_logs) | **GET** /apis/v1beta1/{namespace}/workflow_executions/{uid}/pods/{podName}/containers/{containerName}/logs |
*WorkflowServiceApi* | [**get_workflow_execution_metrics**](docs/WorkflowServiceApi.md#get_workflow_execution_metrics) | **GET** /apis/v1beta1/{namespace}/workflow_executions/{uid}/pods/{podName}/metrics |
*WorkflowServiceApi* | [**get_workflow_execution_statistics_for_namespace**](docs/WorkflowServiceApi.md#get_workflow_execution_statistics_for_namespace) | **GET** /apis/v1beta1/{namespace}/workflow_executions/statistics |
*WorkflowServiceApi* | [**list_files**](docs/WorkflowServiceApi.md#list_files) | **GET** /apis/v1beta1/{namespace}/workflow_executions/{uid}/files/{path} |
*WorkflowServiceApi* | [**list_workflow_executions**](docs/WorkflowServiceApi.md#list_workflow_executions) | **GET** /apis/v1beta1/{namespace}/workflow_executions |
*WorkflowServiceApi* | [**resubmit_workflow_execution**](docs/WorkflowServiceApi.md#resubmit_workflow_execution) | **PUT** /apis/v1beta1/{namespace}/workflow_executions/{uid}/resubmit |
Expand All @@ -146,9 +147,11 @@ Class | Method | HTTP request | Description
*WorkspaceServiceApi* | [**create_workspace**](docs/WorkspaceServiceApi.md#create_workspace) | **POST** /apis/v1beta1/{namespace}/workspaces |
*WorkspaceServiceApi* | [**delete_workspace**](docs/WorkspaceServiceApi.md#delete_workspace) | **DELETE** /apis/v1beta1/{namespace}/workspaces/{uid} |
*WorkspaceServiceApi* | [**get_workspace**](docs/WorkspaceServiceApi.md#get_workspace) | **GET** /apis/v1beta1/{namespace}/workspaces/{uid} |
*WorkspaceServiceApi* | [**get_workspace_statistics_for_namespace**](docs/WorkspaceServiceApi.md#get_workspace_statistics_for_namespace) | **GET** /apis/v1beta1/{namespace}/workspace/statistics |
*WorkspaceServiceApi* | [**list_workspaces**](docs/WorkspaceServiceApi.md#list_workspaces) | **GET** /apis/v1beta1/{namespace}/workspaces |
*WorkspaceServiceApi* | [**pause_workspace**](docs/WorkspaceServiceApi.md#pause_workspace) | **PUT** /apis/v1beta1/{namespace}/workspaces/{uid}/pause |
*WorkspaceServiceApi* | [**resume_workspace**](docs/WorkspaceServiceApi.md#resume_workspace) | **PUT** /apis/v1beta1/{namespace}/workspaces/{uid}/resume |
*WorkspaceServiceApi* | [**retry_last_workspace_action**](docs/WorkspaceServiceApi.md#retry_last_workspace_action) | **PUT** /apis/v1beta1/{namespace}/workspaces/{uid}/retry |
*WorkspaceServiceApi* | [**update_workspace**](docs/WorkspaceServiceApi.md#update_workspace) | **PUT** /apis/v1beta1/{namespace}/workspaces/{uid} |
*WorkspaceServiceApi* | [**update_workspace_status**](docs/WorkspaceServiceApi.md#update_workspace_status) | **PUT** /apis/v1beta1/{namespace}/workspaces/{uid}/status |
*WorkspaceTemplateServiceApi* | [**archive_workspace_template**](docs/WorkspaceTemplateServiceApi.md#archive_workspace_template) | **PUT** /apis/v1beta1/{namespace}/workspace_templates/{uid}/archive |
Expand All @@ -175,6 +178,8 @@ Class | Method | HTTP request | Description
- [GetConfigResponse](docs/GetConfigResponse.md)
- [GetLabelsResponse](docs/GetLabelsResponse.md)
- [GetWorkflowExecutionMetricsResponse](docs/GetWorkflowExecutionMetricsResponse.md)
- [GetWorkflowExecutionStatisticsForNamespaceResponse](docs/GetWorkflowExecutionStatisticsForNamespaceResponse.md)
- [GetWorkspaceStatisticsForNamespaceResponse](docs/GetWorkspaceStatisticsForNamespaceResponse.md)
- [GoogleProtobufAny](docs/GoogleProtobufAny.md)
- [GrpcGatewayRuntimeError](docs/GrpcGatewayRuntimeError.md)
- [GrpcGatewayRuntimeStreamError](docs/GrpcGatewayRuntimeStreamError.md)
Expand Down Expand Up @@ -216,6 +221,7 @@ Class | Method | HTTP request | Description
- [WorkflowExecutionStatus](docs/WorkflowExecutionStatus.md)
- [WorkflowTemplate](docs/WorkflowTemplate.md)
- [Workspace](docs/Workspace.md)
- [WorkspaceStatisticReport](docs/WorkspaceStatisticReport.md)
- [WorkspaceStatus](docs/WorkspaceStatus.md)
- [WorkspaceTemplate](docs/WorkspaceTemplate.md)

Expand Down
8 changes: 4 additions & 4 deletions docs/AuthServiceApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ configuration = onepanel.core.api.Configuration(
configuration = onepanel.core.api.Configuration(
host = "http://localhost:8888",
api_key = {
'Bearer': 'YOUR_API_KEY'
'authorization': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Bearer'] = 'Bearer'
# configuration.api_key_prefix['authorization'] = 'Bearer'

# Enter a context with an instance of the API client
with onepanel.core.api.ApiClient(configuration) as api_client:
Expand Down Expand Up @@ -112,11 +112,11 @@ configuration = onepanel.core.api.Configuration(
configuration = onepanel.core.api.Configuration(
host = "http://localhost:8888",
api_key = {
'Bearer': 'YOUR_API_KEY'
'authorization': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Bearer'] = 'Bearer'
# configuration.api_key_prefix['authorization'] = 'Bearer'

# Enter a context with an instance of the API client
with onepanel.core.api.ApiClient(configuration) as api_client:
Expand Down
4 changes: 2 additions & 2 deletions docs/ConfigServiceApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ configuration = onepanel.core.api.Configuration(
configuration = onepanel.core.api.Configuration(
host = "http://localhost:8888",
api_key = {
'Bearer': 'YOUR_API_KEY'
'authorization': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Bearer'] = 'Bearer'
# configuration.api_key_prefix['authorization'] = 'Bearer'

# Enter a context with an instance of the API client
with onepanel.core.api.ApiClient(configuration) as api_client:
Expand Down
24 changes: 12 additions & 12 deletions docs/CronWorkflowServiceApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ configuration = onepanel.core.api.Configuration(
configuration = onepanel.core.api.Configuration(
host = "http://localhost:8888",
api_key = {
'Bearer': 'YOUR_API_KEY'
'authorization': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Bearer'] = 'Bearer'
# configuration.api_key_prefix['authorization'] = 'Bearer'

# Enter a context with an instance of the API client
with onepanel.core.api.ApiClient(configuration) as api_client:
Expand Down Expand Up @@ -118,11 +118,11 @@ configuration = onepanel.core.api.Configuration(
configuration = onepanel.core.api.Configuration(
host = "http://localhost:8888",
api_key = {
'Bearer': 'YOUR_API_KEY'
'authorization': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Bearer'] = 'Bearer'
# configuration.api_key_prefix['authorization'] = 'Bearer'

# Enter a context with an instance of the API client
with onepanel.core.api.ApiClient(configuration) as api_client:
Expand Down Expand Up @@ -195,11 +195,11 @@ configuration = onepanel.core.api.Configuration(
configuration = onepanel.core.api.Configuration(
host = "http://localhost:8888",
api_key = {
'Bearer': 'YOUR_API_KEY'
'authorization': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Bearer'] = 'Bearer'
# configuration.api_key_prefix['authorization'] = 'Bearer'

# Enter a context with an instance of the API client
with onepanel.core.api.ApiClient(configuration) as api_client:
Expand Down Expand Up @@ -272,11 +272,11 @@ configuration = onepanel.core.api.Configuration(
configuration = onepanel.core.api.Configuration(
host = "http://localhost:8888",
api_key = {
'Bearer': 'YOUR_API_KEY'
'authorization': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Bearer'] = 'Bearer'
# configuration.api_key_prefix['authorization'] = 'Bearer'

# Enter a context with an instance of the API client
with onepanel.core.api.ApiClient(configuration) as api_client:
Expand Down Expand Up @@ -353,11 +353,11 @@ configuration = onepanel.core.api.Configuration(
configuration = onepanel.core.api.Configuration(
host = "http://localhost:8888",
api_key = {
'Bearer': 'YOUR_API_KEY'
'authorization': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Bearer'] = 'Bearer'
# configuration.api_key_prefix['authorization'] = 'Bearer'

# Enter a context with an instance of the API client
with onepanel.core.api.ApiClient(configuration) as api_client:
Expand Down Expand Up @@ -434,11 +434,11 @@ configuration = onepanel.core.api.Configuration(
configuration = onepanel.core.api.Configuration(
host = "http://localhost:8888",
api_key = {
'Bearer': 'YOUR_API_KEY'
'authorization': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Bearer'] = 'Bearer'
# configuration.api_key_prefix['authorization'] = 'Bearer'

# Enter a context with an instance of the API client
with onepanel.core.api.ApiClient(configuration) as api_client:
Expand Down
10 changes: 10 additions & 0 deletions docs/GetWorkflowExecutionStatisticsForNamespaceResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# GetWorkflowExecutionStatisticsForNamespaceResponse

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stats** | [**WorkflowExecutionStatisticReport**](WorkflowExecutionStatisticReport.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


10 changes: 10 additions & 0 deletions docs/GetWorkspaceStatisticsForNamespaceResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# GetWorkspaceStatisticsForNamespaceResponse

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stats** | [**WorkspaceStatisticReport**](WorkspaceStatisticReport.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


16 changes: 8 additions & 8 deletions docs/LabelServiceApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ configuration = onepanel.core.api.Configuration(
configuration = onepanel.core.api.Configuration(
host = "http://localhost:8888",
api_key = {
'Bearer': 'YOUR_API_KEY'
'authorization': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Bearer'] = 'Bearer'
# configuration.api_key_prefix['authorization'] = 'Bearer'

# Enter a context with an instance of the API client
with onepanel.core.api.ApiClient(configuration) as api_client:
Expand Down Expand Up @@ -120,11 +120,11 @@ configuration = onepanel.core.api.Configuration(
configuration = onepanel.core.api.Configuration(
host = "http://localhost:8888",
api_key = {
'Bearer': 'YOUR_API_KEY'
'authorization': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Bearer'] = 'Bearer'
# configuration.api_key_prefix['authorization'] = 'Bearer'

# Enter a context with an instance of the API client
with onepanel.core.api.ApiClient(configuration) as api_client:
Expand Down Expand Up @@ -201,11 +201,11 @@ configuration = onepanel.core.api.Configuration(
configuration = onepanel.core.api.Configuration(
host = "http://localhost:8888",
api_key = {
'Bearer': 'YOUR_API_KEY'
'authorization': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Bearer'] = 'Bearer'
# configuration.api_key_prefix['authorization'] = 'Bearer'

# Enter a context with an instance of the API client
with onepanel.core.api.ApiClient(configuration) as api_client:
Expand Down Expand Up @@ -280,11 +280,11 @@ configuration = onepanel.core.api.Configuration(
configuration = onepanel.core.api.Configuration(
host = "http://localhost:8888",
api_key = {
'Bearer': 'YOUR_API_KEY'
'authorization': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Bearer'] = 'Bearer'
# configuration.api_key_prefix['authorization'] = 'Bearer'

# Enter a context with an instance of the API client
with onepanel.core.api.ApiClient(configuration) as api_client:
Expand Down
8 changes: 4 additions & 4 deletions docs/NamespaceServiceApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ configuration = onepanel.core.api.Configuration(
configuration = onepanel.core.api.Configuration(
host = "http://localhost:8888",
api_key = {
'Bearer': 'YOUR_API_KEY'
'authorization': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Bearer'] = 'Bearer'
# configuration.api_key_prefix['authorization'] = 'Bearer'

# Enter a context with an instance of the API client
with onepanel.core.api.ApiClient(configuration) as api_client:
Expand Down Expand Up @@ -112,11 +112,11 @@ configuration = onepanel.core.api.Configuration(
configuration = onepanel.core.api.Configuration(
host = "http://localhost:8888",
api_key = {
'Bearer': 'YOUR_API_KEY'
'authorization': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Bearer'] = 'Bearer'
# configuration.api_key_prefix['authorization'] = 'Bearer'

# Enter a context with an instance of the API client
with onepanel.core.api.ApiClient(configuration) as api_client:
Expand Down
Loading