From 72f8be4e36abcc088ca382d334ccd323650e883a Mon Sep 17 00:00:00 2001 From: rushtehrani Date: Wed, 7 Oct 2020 10:39:04 -0700 Subject: [PATCH 1/2] update openapitools/openapi-generator-cli to 4.3.1 --- Makefile | 2 +- README.md | 14 +- docs/AuthServiceApi.md | 8 +- docs/ConfigServiceApi.md | 4 +- docs/CronWorkflowServiceApi.md | 24 +- ...ExecutionStatisticsForNamespaceResponse.md | 10 + ...WorkspaceStatisticsForNamespaceResponse.md | 10 + docs/LabelServiceApi.md | 16 +- docs/NamespaceServiceApi.md | 8 +- docs/SecretServiceApi.md | 32 +- docs/ServiceServiceApi.md | 8 +- docs/WorkflowServiceApi.md | 144 +++- docs/WorkflowTemplateServiceApi.md | 36 +- docs/WorkspaceServiceApi.md | 196 ++++- docs/WorkspaceStatisticReport.md | 24 + docs/WorkspaceTemplateServiceApi.md | 38 +- onepanel/core/api/__init__.py | 8 +- onepanel/core/api/api/auth_service_api.py | 68 +- onepanel/core/api/api/config_service_api.py | 29 +- .../core/api/api/cron_workflow_service_api.py | 266 ++----- onepanel/core/api/api/label_service_api.py | 200 ++--- .../core/api/api/namespace_service_api.py | 80 +- onepanel/core/api/api/secret_service_api.py | 326 ++------ onepanel/core/api/api/service_service_api.py | 86 +- onepanel/core/api/api/workflow_service_api.py | 748 +++++++----------- .../api/api/workflow_template_service_api.py | 407 +++------- .../core/api/api/workspace_service_api.py | 582 ++++++++------ .../api/api/workspace_template_service_api.py | 316 +++----- onepanel/core/api/api_client.py | 61 +- onepanel/core/api/configuration.py | 92 +-- onepanel/core/api/exceptions.py | 21 +- onepanel/core/api/models/__init__.py | 5 +- .../models/add_secret_key_value_response.py | 4 +- .../archive_workflow_template_response.py | 4 +- onepanel/core/api/models/artifact_response.py | 4 +- .../models/create_workflow_execution_body.py | 10 +- .../core/api/models/create_workspace_body.py | 10 +- onepanel/core/api/models/cron_workflow.py | 14 +- .../models/cron_workflow_statistics_report.py | 4 +- .../api/models/delete_secret_key_response.py | 4 +- .../core/api/models/delete_secret_response.py | 4 +- onepanel/core/api/models/file.py | 16 +- .../core/api/models/get_config_response.py | 10 +- .../core/api/models/get_labels_response.py | 4 +- ...get_workflow_execution_metrics_response.py | 4 +- ...ution_statistics_for_namespace_response.py | 120 +++ ...space_statistics_for_namespace_response.py | 120 +++ .../core/api/models/google_protobuf_any.py | 6 +- .../api/models/grpc_gateway_runtime_error.py | 10 +- .../grpc_gateway_runtime_stream_error.py | 12 +- onepanel/core/api/models/is_authorized.py | 12 +- .../core/api/models/is_authorized_response.py | 4 +- .../api/models/is_valid_token_response.py | 4 +- onepanel/core/api/models/key_value.py | 6 +- onepanel/core/api/models/labels.py | 4 +- .../models/list_cron_workflows_response.py | 12 +- .../core/api/models/list_files_response.py | 6 +- .../api/models/list_namespaces_response.py | 12 +- .../core/api/models/list_secrets_response.py | 6 +- .../core/api/models/list_services_response.py | 12 +- .../list_workflow_executions_response.py | 12 +- ...ist_workflow_template_versions_response.py | 6 +- .../list_workflow_templates_response.py | 12 +- .../api/models/list_workspace_response.py | 12 +- ...st_workspace_template_versions_response.py | 6 +- .../list_workspace_templates_response.py | 12 +- onepanel/core/api/models/log_entry.py | 6 +- onepanel/core/api/models/metric.py | 8 +- onepanel/core/api/models/namespace.py | 4 +- onepanel/core/api/models/node_pool.py | 6 +- onepanel/core/api/models/node_pool_option.py | 6 +- onepanel/core/api/models/parameter.py | 18 +- onepanel/core/api/models/parameter_option.py | 6 +- onepanel/core/api/models/secret.py | 6 +- .../core/api/models/secret_exists_response.py | 4 +- onepanel/core/api/models/service.py | 6 +- onepanel/core/api/models/statistics.py | 6 +- .../api/models/stream_result_of_log_entry.py | 6 +- .../stream_result_of_workflow_execution.py | 6 +- onepanel/core/api/models/token_wrapper.py | 4 +- .../update_secret_key_value_response.py | 4 +- .../core/api/models/update_workspace_body.py | 6 +- .../core/api/models/workflow_execution.py | 24 +- .../api/models/workflow_execution_metadata.py | 4 +- .../workflow_execution_statistic_report.py | 14 +- .../api/models/workflow_execution_status.py | 4 +- onepanel/core/api/models/workflow_template.py | 28 +- onepanel/core/api/models/workspace.py | 22 +- .../api/models/workspace_statistic_report.py | 484 ++++++++++++ onepanel/core/api/models/workspace_status.py | 10 +- .../core/api/models/workspace_template.py | 22 +- onepanel/core/api/rest.py | 4 +- setup.py | 4 +- test/test_add_secret_key_value_response.py | 6 +- ...test_archive_workflow_template_response.py | 26 +- test/test_artifact_response.py | 6 +- test/test_auth_service_api.py | 16 +- test/test_config_service_api.py | 2 +- test/test_create_workflow_execution_body.py | 6 +- test/test_create_workspace_body.py | 6 +- test/test_cron_workflow.py | 14 +- test/test_cron_workflow_service_api.py | 30 +- test/test_cron_workflow_statistics_report.py | 6 +- test/test_delete_secret_key_response.py | 6 +- test/test_delete_secret_response.py | 6 +- test/test_file.py | 6 +- test/test_get_config_response.py | 2 +- test/test_get_labels_response.py | 6 +- ...get_workflow_execution_metrics_response.py | 6 +- ...ution_statistics_for_namespace_response.py | 58 ++ ...space_statistics_for_namespace_response.py | 67 ++ test/test_google_protobuf_any.py | 6 +- test/test_grpc_gateway_runtime_error.py | 6 +- .../test_grpc_gateway_runtime_stream_error.py | 6 +- test/test_is_authorized.py | 2 +- test/test_is_authorized_response.py | 6 +- test/test_is_valid_token_response.py | 6 +- test/test_key_value.py | 6 +- test/test_label_service_api.py | 22 +- test/test_labels.py | 6 +- test/test_list_cron_workflows_response.py | 14 +- test/test_list_files_response.py | 6 +- test/test_list_namespaces_response.py | 11 +- test/test_list_secrets_response.py | 6 +- test/test_list_services_response.py | 2 +- .../test_list_workflow_executions_response.py | 44 +- ...ist_workflow_template_versions_response.py | 26 +- test/test_list_workflow_templates_response.py | 31 +- test/test_list_workspace_response.py | 28 +- ...st_workspace_template_versions_response.py | 18 +- .../test_list_workspace_templates_response.py | 18 +- test/test_log_entry.py | 6 +- test/test_metric.py | 6 +- test/test_namespace.py | 6 +- test/test_namespace_service_api.py | 12 +- test/test_node_pool.py | 2 +- test/test_node_pool_option.py | 2 +- test/test_parameter.py | 6 +- test/test_parameter_option.py | 6 +- test/test_secret.py | 6 +- test/test_secret_exists_response.py | 6 +- test/test_secret_service_api.py | 6 +- test/test_service.py | 2 +- test/test_service_service_api.py | 2 +- test/test_statistics.py | 6 +- test/test_stream_result_of_log_entry.py | 6 +- ...est_stream_result_of_workflow_execution.py | 44 +- test/test_token_wrapper.py | 6 +- test/test_update_secret_key_value_response.py | 6 +- test/test_update_workspace_body.py | 6 +- test/test_workflow_execution.py | 44 +- test/test_workflow_execution_metadata.py | 2 +- ...est_workflow_execution_statistic_report.py | 9 +- test/test_workflow_execution_status.py | 6 +- test/test_workflow_service_api.py | 50 +- test/test_workflow_template.py | 26 +- test/test_workflow_template_service_api.py | 48 +- test/test_workspace.py | 40 +- test/test_workspace_service_api.py | 50 +- test/test_workspace_statistic_report.py | 66 ++ test/test_workspace_status.py | 6 +- test/test_workspace_template.py | 18 +- test/test_workspace_template_service_api.py | 36 +- 163 files changed, 3067 insertions(+), 3110 deletions(-) create mode 100644 docs/GetWorkflowExecutionStatisticsForNamespaceResponse.md create mode 100644 docs/GetWorkspaceStatisticsForNamespaceResponse.md create mode 100644 docs/WorkspaceStatisticReport.md create mode 100644 onepanel/core/api/models/get_workflow_execution_statistics_for_namespace_response.py create mode 100644 onepanel/core/api/models/get_workspace_statistics_for_namespace_response.py create mode 100644 onepanel/core/api/models/workspace_statistic_report.py create mode 100644 test/test_get_workflow_execution_statistics_for_namespace_response.py create mode 100644 test/test_get_workspace_statistics_for_namespace_response.py create mode 100644 test/test_workspace_statistic_report.py diff --git a/Makefile b/Makefile index 2580c58..7d3f4f5 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index 47c539a..04478e8 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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 @@ -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 | @@ -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 | @@ -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) @@ -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) diff --git a/docs/AuthServiceApi.md b/docs/AuthServiceApi.md index c94bb8d..be6975f 100644 --- a/docs/AuthServiceApi.md +++ b/docs/AuthServiceApi.md @@ -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: @@ -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: diff --git a/docs/ConfigServiceApi.md b/docs/ConfigServiceApi.md index a33704e..bd49e9b 100644 --- a/docs/ConfigServiceApi.md +++ b/docs/ConfigServiceApi.md @@ -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: diff --git a/docs/CronWorkflowServiceApi.md b/docs/CronWorkflowServiceApi.md index 93de264..9dbcaf7 100644 --- a/docs/CronWorkflowServiceApi.md +++ b/docs/CronWorkflowServiceApi.md @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: diff --git a/docs/GetWorkflowExecutionStatisticsForNamespaceResponse.md b/docs/GetWorkflowExecutionStatisticsForNamespaceResponse.md new file mode 100644 index 0000000..5119298 --- /dev/null +++ b/docs/GetWorkflowExecutionStatisticsForNamespaceResponse.md @@ -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) + + diff --git a/docs/GetWorkspaceStatisticsForNamespaceResponse.md b/docs/GetWorkspaceStatisticsForNamespaceResponse.md new file mode 100644 index 0000000..dfd816d --- /dev/null +++ b/docs/GetWorkspaceStatisticsForNamespaceResponse.md @@ -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) + + diff --git a/docs/LabelServiceApi.md b/docs/LabelServiceApi.md index 82bb1db..43c2227 100644 --- a/docs/LabelServiceApi.md +++ b/docs/LabelServiceApi.md @@ -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: @@ -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: @@ -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: @@ -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: diff --git a/docs/NamespaceServiceApi.md b/docs/NamespaceServiceApi.md index 00dbac2..07d7838 100644 --- a/docs/NamespaceServiceApi.md +++ b/docs/NamespaceServiceApi.md @@ -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: @@ -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: diff --git a/docs/SecretServiceApi.md b/docs/SecretServiceApi.md index 84befc9..983377a 100644 --- a/docs/SecretServiceApi.md +++ b/docs/SecretServiceApi.md @@ -43,11 +43,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: @@ -122,11 +122,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: @@ -199,11 +199,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: @@ -276,11 +276,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: @@ -355,11 +355,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: @@ -432,11 +432,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: @@ -507,11 +507,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: @@ -584,11 +584,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: diff --git a/docs/ServiceServiceApi.md b/docs/ServiceServiceApi.md index ab1980f..bd512e4 100644 --- a/docs/ServiceServiceApi.md +++ b/docs/ServiceServiceApi.md @@ -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: @@ -114,11 +114,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: diff --git a/docs/WorkflowServiceApi.md b/docs/WorkflowServiceApi.md index 3e53087..a8bfaf7 100644 --- a/docs/WorkflowServiceApi.md +++ b/docs/WorkflowServiceApi.md @@ -12,6 +12,7 @@ Method | HTTP request | Description [**get_workflow_execution**](WorkflowServiceApi.md#get_workflow_execution) | **GET** /apis/v1beta1/{namespace}/workflow_executions/{uid} | [**get_workflow_execution_logs**](WorkflowServiceApi.md#get_workflow_execution_logs) | **GET** /apis/v1beta1/{namespace}/workflow_executions/{uid}/pods/{podName}/containers/{containerName}/logs | [**get_workflow_execution_metrics**](WorkflowServiceApi.md#get_workflow_execution_metrics) | **GET** /apis/v1beta1/{namespace}/workflow_executions/{uid}/pods/{podName}/metrics | +[**get_workflow_execution_statistics_for_namespace**](WorkflowServiceApi.md#get_workflow_execution_statistics_for_namespace) | **GET** /apis/v1beta1/{namespace}/workflow_executions/statistics | [**list_files**](WorkflowServiceApi.md#list_files) | **GET** /apis/v1beta1/{namespace}/workflow_executions/{uid}/files/{path} | [**list_workflow_executions**](WorkflowServiceApi.md#list_workflow_executions) | **GET** /apis/v1beta1/{namespace}/workflow_executions | [**resubmit_workflow_execution**](WorkflowServiceApi.md#resubmit_workflow_execution) | **PUT** /apis/v1beta1/{namespace}/workflow_executions/{uid}/resubmit | @@ -49,11 +50,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: @@ -128,11 +129,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: @@ -205,11 +206,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: @@ -282,11 +283,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: @@ -361,11 +362,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: @@ -440,11 +441,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: @@ -517,11 +518,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: @@ -598,11 +599,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: @@ -648,6 +649,81 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_workflow_execution_statistics_for_namespace** +> GetWorkflowExecutionStatisticsForNamespaceResponse get_workflow_execution_statistics_for_namespace(namespace) + + + +### Example + +* Api Key Authentication (Bearer): +```python +from __future__ import print_function +import time +import onepanel.core.api +from onepanel.core.api.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to http://localhost:8888 +# See configuration.py for a list of all supported configuration parameters. +configuration = onepanel.core.api.Configuration( + host = "http://localhost:8888" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: Bearer +configuration = onepanel.core.api.Configuration( + host = "http://localhost:8888", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# 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: + # Create an instance of the API class + api_instance = onepanel.core.api.WorkflowServiceApi(api_client) + namespace = 'namespace_example' # str | + + try: + api_response = api_instance.get_workflow_execution_statistics_for_namespace(namespace) + pprint(api_response) + except ApiException as e: + print("Exception when calling WorkflowServiceApi->get_workflow_execution_statistics_for_namespace: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| | + +### Return type + +[**GetWorkflowExecutionStatisticsForNamespaceResponse**](GetWorkflowExecutionStatisticsForNamespaceResponse.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/octet-stream + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | An unexpected error response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **list_files** > ListFilesResponse list_files(namespace, uid, path) @@ -677,11 +753,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: @@ -728,7 +804,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_workflow_executions** -> ListWorkflowExecutionsResponse list_workflow_executions(namespace, workflow_template_uid=workflow_template_uid, workflow_template_version=workflow_template_version, page_size=page_size, page=page) +> ListWorkflowExecutionsResponse list_workflow_executions(namespace, workflow_template_uid=workflow_template_uid, workflow_template_version=workflow_template_version, page_size=page_size, page=page, order=order, labels=labels, phase=phase, include_system=include_system) @@ -756,11 +832,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: @@ -771,9 +847,13 @@ workflow_template_uid = 'workflow_template_uid_example' # str | (optional) workflow_template_version = 'workflow_template_version_example' # str | (optional) page_size = 56 # int | (optional) page = 56 # int | (optional) +order = 'order_example' # str | (optional) +labels = 'labels_example' # str | (optional) +phase = 'phase_example' # str | (optional) +include_system = True # bool | (optional) try: - api_response = api_instance.list_workflow_executions(namespace, workflow_template_uid=workflow_template_uid, workflow_template_version=workflow_template_version, page_size=page_size, page=page) + api_response = api_instance.list_workflow_executions(namespace, workflow_template_uid=workflow_template_uid, workflow_template_version=workflow_template_version, page_size=page_size, page=page, order=order, labels=labels, phase=phase, include_system=include_system) pprint(api_response) except ApiException as e: print("Exception when calling WorkflowServiceApi->list_workflow_executions: %s\n" % e) @@ -788,6 +868,10 @@ Name | Type | Description | Notes **workflow_template_version** | **str**| | [optional] **page_size** | **int**| | [optional] **page** | **int**| | [optional] + **order** | **str**| | [optional] + **labels** | **str**| | [optional] + **phase** | **str**| | [optional] + **include_system** | **bool**| | [optional] ### Return type @@ -839,11 +923,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: @@ -916,11 +1000,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: @@ -993,11 +1077,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: @@ -1072,11 +1156,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: diff --git a/docs/WorkflowTemplateServiceApi.md b/docs/WorkflowTemplateServiceApi.md index 518eac9..977cea0 100644 --- a/docs/WorkflowTemplateServiceApi.md +++ b/docs/WorkflowTemplateServiceApi.md @@ -44,11 +44,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: @@ -121,11 +121,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: @@ -202,11 +202,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: @@ -283,11 +283,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: @@ -360,11 +360,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: @@ -439,11 +439,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: @@ -518,11 +518,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: @@ -597,11 +597,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: @@ -674,11 +674,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: diff --git a/docs/WorkspaceServiceApi.md b/docs/WorkspaceServiceApi.md index 897d02c..51a55ad 100644 --- a/docs/WorkspaceServiceApi.md +++ b/docs/WorkspaceServiceApi.md @@ -7,9 +7,11 @@ Method | HTTP request | Description [**create_workspace**](WorkspaceServiceApi.md#create_workspace) | **POST** /apis/v1beta1/{namespace}/workspaces | [**delete_workspace**](WorkspaceServiceApi.md#delete_workspace) | **DELETE** /apis/v1beta1/{namespace}/workspaces/{uid} | [**get_workspace**](WorkspaceServiceApi.md#get_workspace) | **GET** /apis/v1beta1/{namespace}/workspaces/{uid} | +[**get_workspace_statistics_for_namespace**](WorkspaceServiceApi.md#get_workspace_statistics_for_namespace) | **GET** /apis/v1beta1/{namespace}/workspace/statistics | [**list_workspaces**](WorkspaceServiceApi.md#list_workspaces) | **GET** /apis/v1beta1/{namespace}/workspaces | [**pause_workspace**](WorkspaceServiceApi.md#pause_workspace) | **PUT** /apis/v1beta1/{namespace}/workspaces/{uid}/pause | [**resume_workspace**](WorkspaceServiceApi.md#resume_workspace) | **PUT** /apis/v1beta1/{namespace}/workspaces/{uid}/resume | +[**retry_last_workspace_action**](WorkspaceServiceApi.md#retry_last_workspace_action) | **PUT** /apis/v1beta1/{namespace}/workspaces/{uid}/retry | [**update_workspace**](WorkspaceServiceApi.md#update_workspace) | **PUT** /apis/v1beta1/{namespace}/workspaces/{uid} | [**update_workspace_status**](WorkspaceServiceApi.md#update_workspace_status) | **PUT** /apis/v1beta1/{namespace}/workspaces/{uid}/status | @@ -43,11 +45,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: @@ -120,11 +122,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: @@ -197,11 +199,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: @@ -245,8 +247,83 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_workspace_statistics_for_namespace** +> GetWorkspaceStatisticsForNamespaceResponse get_workspace_statistics_for_namespace(namespace) + + + +### Example + +* Api Key Authentication (Bearer): +```python +from __future__ import print_function +import time +import onepanel.core.api +from onepanel.core.api.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to http://localhost:8888 +# See configuration.py for a list of all supported configuration parameters. +configuration = onepanel.core.api.Configuration( + host = "http://localhost:8888" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: Bearer +configuration = onepanel.core.api.Configuration( + host = "http://localhost:8888", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# 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: + # Create an instance of the API class + api_instance = onepanel.core.api.WorkspaceServiceApi(api_client) + namespace = 'namespace_example' # str | + + try: + api_response = api_instance.get_workspace_statistics_for_namespace(namespace) + pprint(api_response) + except ApiException as e: + print("Exception when calling WorkspaceServiceApi->get_workspace_statistics_for_namespace: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| | + +### Return type + +[**GetWorkspaceStatisticsForNamespaceResponse**](GetWorkspaceStatisticsForNamespaceResponse.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/octet-stream + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | An unexpected error response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **list_workspaces** -> ListWorkspaceResponse list_workspaces(namespace, page_size=page_size, page=page) +> ListWorkspaceResponse list_workspaces(namespace, page_size=page_size, page=page, order=order, labels=labels, phase=phase) @@ -274,11 +351,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: @@ -287,9 +364,12 @@ with onepanel.core.api.ApiClient(configuration) as api_client: namespace = 'namespace_example' # str | page_size = 56 # int | (optional) page = 56 # int | (optional) +order = 'order_example' # str | (optional) +labels = 'labels_example' # str | (optional) +phase = 'phase_example' # str | (optional) try: - api_response = api_instance.list_workspaces(namespace, page_size=page_size, page=page) + api_response = api_instance.list_workspaces(namespace, page_size=page_size, page=page, order=order, labels=labels, phase=phase) pprint(api_response) except ApiException as e: print("Exception when calling WorkspaceServiceApi->list_workspaces: %s\n" % e) @@ -302,6 +382,9 @@ Name | Type | Description | Notes **namespace** | **str**| | **page_size** | **int**| | [optional] **page** | **int**| | [optional] + **order** | **str**| | [optional] + **labels** | **str**| | [optional] + **phase** | **str**| | [optional] ### Return type @@ -353,11 +436,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: @@ -430,11 +513,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: @@ -478,6 +561,83 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **retry_last_workspace_action** +> object retry_last_workspace_action(namespace, uid) + + + +### Example + +* Api Key Authentication (Bearer): +```python +from __future__ import print_function +import time +import onepanel.core.api +from onepanel.core.api.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to http://localhost:8888 +# See configuration.py for a list of all supported configuration parameters. +configuration = onepanel.core.api.Configuration( + host = "http://localhost:8888" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: Bearer +configuration = onepanel.core.api.Configuration( + host = "http://localhost:8888", + api_key = { + 'authorization': 'YOUR_API_KEY' + } +) +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# 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: + # Create an instance of the API class + api_instance = onepanel.core.api.WorkspaceServiceApi(api_client) + namespace = 'namespace_example' # str | +uid = 'uid_example' # str | + + try: + api_response = api_instance.retry_last_workspace_action(namespace, uid) + pprint(api_response) + except ApiException as e: + print("Exception when calling WorkspaceServiceApi->retry_last_workspace_action: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| | + **uid** | **str**| | + +### Return type + +**object** + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/octet-stream + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**0** | An unexpected error response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **update_workspace** > object update_workspace(namespace, uid, body) @@ -507,11 +667,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: @@ -586,11 +746,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: diff --git a/docs/WorkspaceStatisticReport.md b/docs/WorkspaceStatisticReport.md new file mode 100644 index 0000000..779cb2c --- /dev/null +++ b/docs/WorkspaceStatisticReport.md @@ -0,0 +1,24 @@ +# WorkspaceStatisticReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | **int** | | [optional] +**last_created** | **str** | | [optional] +**launching** | **int** | | [optional] +**running** | **int** | | [optional] +**updating** | **int** | | [optional] +**pausing** | **int** | | [optional] +**paused** | **int** | | [optional] +**terminating** | **int** | | [optional] +**terminated** | **int** | | [optional] +**failed_to_pause** | **int** | | [optional] +**failed_to_resume** | **int** | | [optional] +**failed_to_terminate** | **int** | | [optional] +**failed_to_launch** | **int** | | [optional] +**failed_to_update** | **int** | | [optional] +**failed** | **int** | | [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) + + diff --git a/docs/WorkspaceTemplateServiceApi.md b/docs/WorkspaceTemplateServiceApi.md index 76ed1cd..4cfa8ae 100644 --- a/docs/WorkspaceTemplateServiceApi.md +++ b/docs/WorkspaceTemplateServiceApi.md @@ -42,11 +42,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: @@ -119,11 +119,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: @@ -196,11 +196,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: @@ -275,11 +275,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: @@ -354,11 +354,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: @@ -403,7 +403,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_workspace_templates** -> ListWorkspaceTemplatesResponse list_workspace_templates(namespace, page_size=page_size, page=page) +> ListWorkspaceTemplatesResponse list_workspace_templates(namespace, page_size=page_size, page=page, order=order, labels=labels, uid=uid) @@ -431,11 +431,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: @@ -444,9 +444,12 @@ with onepanel.core.api.ApiClient(configuration) as api_client: namespace = 'namespace_example' # str | page_size = 56 # int | (optional) page = 56 # int | (optional) +order = 'order_example' # str | (optional) +labels = 'labels_example' # str | (optional) +uid = 'uid_example' # str | (optional) try: - api_response = api_instance.list_workspace_templates(namespace, page_size=page_size, page=page) + api_response = api_instance.list_workspace_templates(namespace, page_size=page_size, page=page, order=order, labels=labels, uid=uid) pprint(api_response) except ApiException as e: print("Exception when calling WorkspaceTemplateServiceApi->list_workspace_templates: %s\n" % e) @@ -459,6 +462,9 @@ Name | Type | Description | Notes **namespace** | **str**| | **page_size** | **int**| | [optional] **page** | **int**| | [optional] + **order** | **str**| | [optional] + **labels** | **str**| | [optional] + **uid** | **str**| | [optional] ### Return type @@ -510,11 +516,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: diff --git a/onepanel/core/api/__init__.py b/onepanel/core/api/__init__.py index 1269767..f239201 100644 --- a/onepanel/core/api/__init__.py +++ b/onepanel/core/api/__init__.py @@ -7,14 +7,14 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -__version__ = "0.12.0" +__version__ = "v0.13.0" # import apis into sdk package from onepanel.core.api.api.auth_service_api import AuthServiceApi @@ -36,7 +36,6 @@ from onepanel.core.api.exceptions import ApiTypeError from onepanel.core.api.exceptions import ApiValueError from onepanel.core.api.exceptions import ApiKeyError -from onepanel.core.api.exceptions import ApiAttributeError from onepanel.core.api.exceptions import ApiException # import models into sdk package from onepanel.core.api.models.add_secret_key_value_response import AddSecretKeyValueResponse @@ -52,6 +51,8 @@ from onepanel.core.api.models.get_config_response import GetConfigResponse from onepanel.core.api.models.get_labels_response import GetLabelsResponse from onepanel.core.api.models.get_workflow_execution_metrics_response import GetWorkflowExecutionMetricsResponse +from onepanel.core.api.models.get_workflow_execution_statistics_for_namespace_response import GetWorkflowExecutionStatisticsForNamespaceResponse +from onepanel.core.api.models.get_workspace_statistics_for_namespace_response import GetWorkspaceStatisticsForNamespaceResponse from onepanel.core.api.models.google_protobuf_any import GoogleProtobufAny from onepanel.core.api.models.grpc_gateway_runtime_error import GrpcGatewayRuntimeError from onepanel.core.api.models.grpc_gateway_runtime_stream_error import GrpcGatewayRuntimeStreamError @@ -93,6 +94,7 @@ from onepanel.core.api.models.workflow_execution_status import WorkflowExecutionStatus from onepanel.core.api.models.workflow_template import WorkflowTemplate from onepanel.core.api.models.workspace import Workspace +from onepanel.core.api.models.workspace_statistic_report import WorkspaceStatisticReport from onepanel.core.api.models.workspace_status import WorkspaceStatus from onepanel.core.api.models.workspace_template import WorkspaceTemplate diff --git a/onepanel/core/api/api/auth_service_api.py b/onepanel/core/api/api/auth_service_api.py index f79eb6b..4c9070f 100644 --- a/onepanel/core/api/api/auth_service_api.py +++ b/onepanel/core/api/api/auth_service_api.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -41,26 +41,21 @@ def is_authorized(self, body, **kwargs): # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.is_authorized(body, async_req=True) >>> result = thread.get() - :param body: (required) - :type body: IsAuthorized - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param IsAuthorized body: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: IsAuthorizedResponse If the method is called asynchronously, returns the request thread. - :rtype: IsAuthorizedResponse """ kwargs['_return_http_data_only'] = True return self.is_authorized_with_http_info(body, **kwargs) # noqa: E501 @@ -70,33 +65,23 @@ def is_authorized_with_http_info(self, body, **kwargs): # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.is_authorized_with_http_info(body, async_req=True) >>> result = thread.get() - :param body: (required) - :type body: IsAuthorized - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param IsAuthorized body: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(IsAuthorizedResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(IsAuthorizedResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -109,8 +94,7 @@ def is_authorized_with_http_info(self, body, **kwargs): # noqa: E501 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -166,34 +150,28 @@ def is_authorized_with_http_info(self, body, **kwargs): # noqa: E501 _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def is_valid_token(self, body, **kwargs): # noqa: E501 """is_valid_token # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.is_valid_token(body, async_req=True) >>> result = thread.get() - :param body: (required) - :type body: TokenWrapper - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param TokenWrapper body: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: IsValidTokenResponse If the method is called asynchronously, returns the request thread. - :rtype: IsValidTokenResponse """ kwargs['_return_http_data_only'] = True return self.is_valid_token_with_http_info(body, **kwargs) # noqa: E501 @@ -203,33 +181,23 @@ def is_valid_token_with_http_info(self, body, **kwargs): # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.is_valid_token_with_http_info(body, async_req=True) >>> result = thread.get() - :param body: (required) - :type body: TokenWrapper - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param TokenWrapper body: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(IsValidTokenResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(IsValidTokenResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -242,8 +210,7 @@ def is_valid_token_with_http_info(self, body, **kwargs): # noqa: E501 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -299,5 +266,4 @@ def is_valid_token_with_http_info(self, body, **kwargs): # noqa: E501 _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) diff --git a/onepanel/core/api/api/config_service_api.py b/onepanel/core/api/api/config_service_api.py index 56b1e41..532131c 100644 --- a/onepanel/core/api/api/config_service_api.py +++ b/onepanel/core/api/api/config_service_api.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -41,24 +41,20 @@ def get_config(self, **kwargs): # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_config(async_req=True) >>> result = thread.get() - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: GetConfigResponse If the method is called asynchronously, returns the request thread. - :rtype: GetConfigResponse """ kwargs['_return_http_data_only'] = True return self.get_config_with_http_info(**kwargs) # noqa: E501 @@ -68,31 +64,22 @@ def get_config_with_http_info(self, **kwargs): # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_config_with_http_info(async_req=True) >>> result = thread.get() - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(GetConfigResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(GetConfigResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -104,8 +91,7 @@ def get_config_with_http_info(self, **kwargs): # noqa: E501 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -151,5 +137,4 @@ def get_config_with_http_info(self, **kwargs): # noqa: E501 _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) diff --git a/onepanel/core/api/api/cron_workflow_service_api.py b/onepanel/core/api/api/cron_workflow_service_api.py index 061b4b4..fd14e4b 100644 --- a/onepanel/core/api/api/cron_workflow_service_api.py +++ b/onepanel/core/api/api/cron_workflow_service_api.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -41,28 +41,22 @@ def create_cron_workflow(self, namespace, body, **kwargs): # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_cron_workflow(namespace, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param body: (required) - :type body: CronWorkflow - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param CronWorkflow body: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: CronWorkflow If the method is called asynchronously, returns the request thread. - :rtype: CronWorkflow """ kwargs['_return_http_data_only'] = True return self.create_cron_workflow_with_http_info(namespace, body, **kwargs) # noqa: E501 @@ -72,35 +66,24 @@ def create_cron_workflow_with_http_info(self, namespace, body, **kwargs): # noq This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_cron_workflow_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param body: (required) - :type body: CronWorkflow - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param CronWorkflow body: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(CronWorkflow, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(CronWorkflow, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -114,8 +97,7 @@ def create_cron_workflow_with_http_info(self, namespace, body, **kwargs): # noq 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -177,36 +159,29 @@ def create_cron_workflow_with_http_info(self, namespace, body, **kwargs): # noq _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def delete_cron_workflow(self, namespace, uid, **kwargs): # noqa: E501 """delete_cron_workflow # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_cron_workflow(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: object If the method is called asynchronously, returns the request thread. - :rtype: object """ kwargs['_return_http_data_only'] = True return self.delete_cron_workflow_with_http_info(namespace, uid, **kwargs) # noqa: E501 @@ -216,35 +191,24 @@ def delete_cron_workflow_with_http_info(self, namespace, uid, **kwargs): # noqa This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_cron_workflow_with_http_info(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -258,8 +222,7 @@ def delete_cron_workflow_with_http_info(self, namespace, uid, **kwargs): # noqa 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -317,36 +280,29 @@ def delete_cron_workflow_with_http_info(self, namespace, uid, **kwargs): # noqa _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def get_cron_workflow(self, namespace, uid, **kwargs): # noqa: E501 """get_cron_workflow # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_cron_workflow(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: CronWorkflow If the method is called asynchronously, returns the request thread. - :rtype: CronWorkflow """ kwargs['_return_http_data_only'] = True return self.get_cron_workflow_with_http_info(namespace, uid, **kwargs) # noqa: E501 @@ -356,35 +312,24 @@ def get_cron_workflow_with_http_info(self, namespace, uid, **kwargs): # noqa: E This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_cron_workflow_with_http_info(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(CronWorkflow, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(CronWorkflow, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -398,8 +343,7 @@ def get_cron_workflow_with_http_info(self, namespace, uid, **kwargs): # noqa: E 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -457,40 +401,31 @@ def get_cron_workflow_with_http_info(self, namespace, uid, **kwargs): # noqa: E _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def list_cron_workflows(self, namespace, **kwargs): # noqa: E501 """list_cron_workflows # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_cron_workflows(namespace, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param workflow_template_name: - :type workflow_template_name: str - :param page_size: - :type page_size: int - :param page: - :type page: int - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str workflow_template_name: + :param int page_size: + :param int page: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: ListCronWorkflowsResponse If the method is called asynchronously, returns the request thread. - :rtype: ListCronWorkflowsResponse """ kwargs['_return_http_data_only'] = True return self.list_cron_workflows_with_http_info(namespace, **kwargs) # noqa: E501 @@ -500,39 +435,26 @@ def list_cron_workflows_with_http_info(self, namespace, **kwargs): # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_cron_workflows_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param workflow_template_name: - :type workflow_template_name: str - :param page_size: - :type page_size: int - :param page: - :type page: int - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str workflow_template_name: + :param int page_size: + :param int page: :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(ListCronWorkflowsResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(ListCronWorkflowsResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -548,8 +470,7 @@ def list_cron_workflows_with_http_info(self, namespace, **kwargs): # noqa: E501 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -607,40 +528,31 @@ def list_cron_workflows_with_http_info(self, namespace, **kwargs): # noqa: E501 _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def list_cron_workflows2(self, namespace, workflow_template_name, **kwargs): # noqa: E501 """list_cron_workflows2 # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_cron_workflows2(namespace, workflow_template_name, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param workflow_template_name: (required) - :type workflow_template_name: str - :param page_size: - :type page_size: int - :param page: - :type page: int - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str workflow_template_name: (required) + :param int page_size: + :param int page: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: ListCronWorkflowsResponse If the method is called asynchronously, returns the request thread. - :rtype: ListCronWorkflowsResponse """ kwargs['_return_http_data_only'] = True return self.list_cron_workflows2_with_http_info(namespace, workflow_template_name, **kwargs) # noqa: E501 @@ -650,39 +562,26 @@ def list_cron_workflows2_with_http_info(self, namespace, workflow_template_name, This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_cron_workflows2_with_http_info(namespace, workflow_template_name, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param workflow_template_name: (required) - :type workflow_template_name: str - :param page_size: - :type page_size: int - :param page: - :type page: int - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str workflow_template_name: (required) + :param int page_size: + :param int page: :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(ListCronWorkflowsResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(ListCronWorkflowsResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -698,8 +597,7 @@ def list_cron_workflows2_with_http_info(self, namespace, workflow_template_name, 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -761,38 +659,30 @@ def list_cron_workflows2_with_http_info(self, namespace, workflow_template_name, _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def update_cron_workflow(self, namespace, uid, body, **kwargs): # noqa: E501 """update_cron_workflow # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_cron_workflow(namespace, uid, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param body: (required) - :type body: CronWorkflow - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param CronWorkflow body: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: CronWorkflow If the method is called asynchronously, returns the request thread. - :rtype: CronWorkflow """ kwargs['_return_http_data_only'] = True return self.update_cron_workflow_with_http_info(namespace, uid, body, **kwargs) # noqa: E501 @@ -802,37 +692,25 @@ def update_cron_workflow_with_http_info(self, namespace, uid, body, **kwargs): This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_cron_workflow_with_http_info(namespace, uid, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param body: (required) - :type body: CronWorkflow - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param CronWorkflow body: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(CronWorkflow, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(CronWorkflow, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -847,8 +725,7 @@ def update_cron_workflow_with_http_info(self, namespace, uid, body, **kwargs): 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -916,5 +793,4 @@ def update_cron_workflow_with_http_info(self, namespace, uid, body, **kwargs): _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) diff --git a/onepanel/core/api/api/label_service_api.py b/onepanel/core/api/api/label_service_api.py index 9855ec5..1140124 100644 --- a/onepanel/core/api/api/label_service_api.py +++ b/onepanel/core/api/api/label_service_api.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -41,32 +41,24 @@ def add_labels(self, namespace, resource, uid, body, **kwargs): # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.add_labels(namespace, resource, uid, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param resource: (required) - :type resource: str - :param uid: (required) - :type uid: str - :param body: (required) - :type body: Labels - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str resource: (required) + :param str uid: (required) + :param Labels body: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: GetLabelsResponse If the method is called asynchronously, returns the request thread. - :rtype: GetLabelsResponse """ kwargs['_return_http_data_only'] = True return self.add_labels_with_http_info(namespace, resource, uid, body, **kwargs) # noqa: E501 @@ -76,39 +68,26 @@ def add_labels_with_http_info(self, namespace, resource, uid, body, **kwargs): This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.add_labels_with_http_info(namespace, resource, uid, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param resource: (required) - :type resource: str - :param uid: (required) - :type uid: str - :param body: (required) - :type body: Labels - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str resource: (required) + :param str uid: (required) + :param Labels body: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(GetLabelsResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(GetLabelsResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -124,8 +103,7 @@ def add_labels_with_http_info(self, namespace, resource, uid, body, **kwargs): 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -199,40 +177,31 @@ def add_labels_with_http_info(self, namespace, resource, uid, body, **kwargs): _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def delete_label(self, namespace, resource, uid, key, **kwargs): # noqa: E501 """delete_label # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_label(namespace, resource, uid, key, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param resource: (required) - :type resource: str - :param uid: (required) - :type uid: str - :param key: (required) - :type key: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str resource: (required) + :param str uid: (required) + :param str key: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: GetLabelsResponse If the method is called asynchronously, returns the request thread. - :rtype: GetLabelsResponse """ kwargs['_return_http_data_only'] = True return self.delete_label_with_http_info(namespace, resource, uid, key, **kwargs) # noqa: E501 @@ -242,39 +211,26 @@ def delete_label_with_http_info(self, namespace, resource, uid, key, **kwargs): This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_label_with_http_info(namespace, resource, uid, key, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param resource: (required) - :type resource: str - :param uid: (required) - :type uid: str - :param key: (required) - :type key: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str resource: (required) + :param str uid: (required) + :param str key: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(GetLabelsResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(GetLabelsResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -290,8 +246,7 @@ def delete_label_with_http_info(self, namespace, resource, uid, key, **kwargs): 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -361,38 +316,30 @@ def delete_label_with_http_info(self, namespace, resource, uid, key, **kwargs): _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def get_labels(self, namespace, resource, uid, **kwargs): # noqa: E501 """get_labels # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_labels(namespace, resource, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param resource: (required) - :type resource: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str resource: (required) + :param str uid: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: GetLabelsResponse If the method is called asynchronously, returns the request thread. - :rtype: GetLabelsResponse """ kwargs['_return_http_data_only'] = True return self.get_labels_with_http_info(namespace, resource, uid, **kwargs) # noqa: E501 @@ -402,37 +349,25 @@ def get_labels_with_http_info(self, namespace, resource, uid, **kwargs): # noqa This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_labels_with_http_info(namespace, resource, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param resource: (required) - :type resource: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str resource: (required) + :param str uid: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(GetLabelsResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(GetLabelsResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -447,8 +382,7 @@ def get_labels_with_http_info(self, namespace, resource, uid, **kwargs): # noqa 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -512,40 +446,31 @@ def get_labels_with_http_info(self, namespace, resource, uid, **kwargs): # noqa _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def replace_labels(self, namespace, resource, uid, body, **kwargs): # noqa: E501 """replace_labels # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.replace_labels(namespace, resource, uid, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param resource: (required) - :type resource: str - :param uid: (required) - :type uid: str - :param body: (required) - :type body: Labels - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str resource: (required) + :param str uid: (required) + :param Labels body: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: GetLabelsResponse If the method is called asynchronously, returns the request thread. - :rtype: GetLabelsResponse """ kwargs['_return_http_data_only'] = True return self.replace_labels_with_http_info(namespace, resource, uid, body, **kwargs) # noqa: E501 @@ -555,39 +480,26 @@ def replace_labels_with_http_info(self, namespace, resource, uid, body, **kwargs This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.replace_labels_with_http_info(namespace, resource, uid, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param resource: (required) - :type resource: str - :param uid: (required) - :type uid: str - :param body: (required) - :type body: Labels - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str resource: (required) + :param str uid: (required) + :param Labels body: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(GetLabelsResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(GetLabelsResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -603,8 +515,7 @@ def replace_labels_with_http_info(self, namespace, resource, uid, body, **kwargs 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -678,5 +589,4 @@ def replace_labels_with_http_info(self, namespace, resource, uid, body, **kwargs _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) diff --git a/onepanel/core/api/api/namespace_service_api.py b/onepanel/core/api/api/namespace_service_api.py index 337b896..e1c9891 100644 --- a/onepanel/core/api/api/namespace_service_api.py +++ b/onepanel/core/api/api/namespace_service_api.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -41,26 +41,21 @@ def create_namespace(self, body, **kwargs): # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_namespace(body, async_req=True) >>> result = thread.get() - :param body: (required) - :type body: Namespace - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param Namespace body: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: Namespace If the method is called asynchronously, returns the request thread. - :rtype: Namespace """ kwargs['_return_http_data_only'] = True return self.create_namespace_with_http_info(body, **kwargs) # noqa: E501 @@ -70,33 +65,23 @@ def create_namespace_with_http_info(self, body, **kwargs): # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_namespace_with_http_info(body, async_req=True) >>> result = thread.get() - :param body: (required) - :type body: Namespace - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param Namespace body: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(Namespace, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(Namespace, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -109,8 +94,7 @@ def create_namespace_with_http_info(self, body, **kwargs): # noqa: E501 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -166,38 +150,30 @@ def create_namespace_with_http_info(self, body, **kwargs): # noqa: E501 _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def list_namespaces(self, **kwargs): # noqa: E501 """list_namespaces # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_namespaces(async_req=True) >>> result = thread.get() - :param page_size: - :type page_size: int - :param page: - :type page: int - :param query: - :type query: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param int page_size: + :param int page: + :param str query: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: ListNamespacesResponse If the method is called asynchronously, returns the request thread. - :rtype: ListNamespacesResponse """ kwargs['_return_http_data_only'] = True return self.list_namespaces_with_http_info(**kwargs) # noqa: E501 @@ -207,37 +183,25 @@ def list_namespaces_with_http_info(self, **kwargs): # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param page_size: - :type page_size: int - :param page: - :type page: int - :param query: - :type query: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param int page_size: + :param int page: + :param str query: :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(ListNamespacesResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(ListNamespacesResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -252,8 +216,7 @@ def list_namespaces_with_http_info(self, **kwargs): # noqa: E501 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -305,5 +268,4 @@ def list_namespaces_with_http_info(self, **kwargs): # noqa: E501 _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) diff --git a/onepanel/core/api/api/secret_service_api.py b/onepanel/core/api/api/secret_service_api.py index c9538e8..30b350e 100644 --- a/onepanel/core/api/api/secret_service_api.py +++ b/onepanel/core/api/api/secret_service_api.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -41,30 +41,23 @@ def add_secret_key_value(self, namespace, secret_name, body, **kwargs): # noqa: This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.add_secret_key_value(namespace, secret_name, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param secret_name: (required) - :type secret_name: str - :param body: (required) - :type body: Secret - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str secret_name: (required) + :param Secret body: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: AddSecretKeyValueResponse If the method is called asynchronously, returns the request thread. - :rtype: AddSecretKeyValueResponse """ kwargs['_return_http_data_only'] = True return self.add_secret_key_value_with_http_info(namespace, secret_name, body, **kwargs) # noqa: E501 @@ -74,37 +67,25 @@ def add_secret_key_value_with_http_info(self, namespace, secret_name, body, **kw This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.add_secret_key_value_with_http_info(namespace, secret_name, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param secret_name: (required) - :type secret_name: str - :param body: (required) - :type body: Secret - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str secret_name: (required) + :param Secret body: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(AddSecretKeyValueResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(AddSecretKeyValueResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -119,8 +100,7 @@ def add_secret_key_value_with_http_info(self, namespace, secret_name, body, **kw 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -188,36 +168,29 @@ def add_secret_key_value_with_http_info(self, namespace, secret_name, body, **kw _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def create_secret(self, namespace, body, **kwargs): # noqa: E501 """create_secret # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_secret(namespace, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param body: (required) - :type body: Secret - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param Secret body: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: object If the method is called asynchronously, returns the request thread. - :rtype: object """ kwargs['_return_http_data_only'] = True return self.create_secret_with_http_info(namespace, body, **kwargs) # noqa: E501 @@ -227,35 +200,24 @@ def create_secret_with_http_info(self, namespace, body, **kwargs): # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_secret_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param body: (required) - :type body: Secret - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param Secret body: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -269,8 +231,7 @@ def create_secret_with_http_info(self, namespace, body, **kwargs): # noqa: E501 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -332,36 +293,29 @@ def create_secret_with_http_info(self, namespace, body, **kwargs): # noqa: E501 _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def delete_secret(self, namespace, name, **kwargs): # noqa: E501 """delete_secret # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_secret(namespace, name, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param name: (required) - :type name: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str name: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: DeleteSecretResponse If the method is called asynchronously, returns the request thread. - :rtype: DeleteSecretResponse """ kwargs['_return_http_data_only'] = True return self.delete_secret_with_http_info(namespace, name, **kwargs) # noqa: E501 @@ -371,35 +325,24 @@ def delete_secret_with_http_info(self, namespace, name, **kwargs): # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_secret_with_http_info(namespace, name, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param name: (required) - :type name: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str name: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(DeleteSecretResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(DeleteSecretResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -413,8 +356,7 @@ def delete_secret_with_http_info(self, namespace, name, **kwargs): # noqa: E501 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -472,38 +414,30 @@ def delete_secret_with_http_info(self, namespace, name, **kwargs): # noqa: E501 _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def delete_secret_key(self, namespace, secret_name, key, **kwargs): # noqa: E501 """delete_secret_key # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_secret_key(namespace, secret_name, key, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param secret_name: (required) - :type secret_name: str - :param key: (required) - :type key: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str secret_name: (required) + :param str key: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: DeleteSecretKeyResponse If the method is called asynchronously, returns the request thread. - :rtype: DeleteSecretKeyResponse """ kwargs['_return_http_data_only'] = True return self.delete_secret_key_with_http_info(namespace, secret_name, key, **kwargs) # noqa: E501 @@ -513,37 +447,25 @@ def delete_secret_key_with_http_info(self, namespace, secret_name, key, **kwargs This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_secret_key_with_http_info(namespace, secret_name, key, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param secret_name: (required) - :type secret_name: str - :param key: (required) - :type key: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str secret_name: (required) + :param str key: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(DeleteSecretKeyResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(DeleteSecretKeyResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -558,8 +480,7 @@ def delete_secret_key_with_http_info(self, namespace, secret_name, key, **kwargs 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -623,36 +544,29 @@ def delete_secret_key_with_http_info(self, namespace, secret_name, key, **kwargs _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def get_secret(self, namespace, name, **kwargs): # noqa: E501 """get_secret # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_secret(namespace, name, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param name: (required) - :type name: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str name: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: Secret If the method is called asynchronously, returns the request thread. - :rtype: Secret """ kwargs['_return_http_data_only'] = True return self.get_secret_with_http_info(namespace, name, **kwargs) # noqa: E501 @@ -662,35 +576,24 @@ def get_secret_with_http_info(self, namespace, name, **kwargs): # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_secret_with_http_info(namespace, name, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param name: (required) - :type name: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str name: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(Secret, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(Secret, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -704,8 +607,7 @@ def get_secret_with_http_info(self, namespace, name, **kwargs): # noqa: E501 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -763,34 +665,28 @@ def get_secret_with_http_info(self, namespace, name, **kwargs): # noqa: E501 _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def list_secrets(self, namespace, **kwargs): # noqa: E501 """list_secrets # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_secrets(namespace, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: ListSecretsResponse If the method is called asynchronously, returns the request thread. - :rtype: ListSecretsResponse """ kwargs['_return_http_data_only'] = True return self.list_secrets_with_http_info(namespace, **kwargs) # noqa: E501 @@ -800,33 +696,23 @@ def list_secrets_with_http_info(self, namespace, **kwargs): # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_secrets_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(ListSecretsResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(ListSecretsResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -839,8 +725,7 @@ def list_secrets_with_http_info(self, namespace, **kwargs): # noqa: E501 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -892,36 +777,29 @@ def list_secrets_with_http_info(self, namespace, **kwargs): # noqa: E501 _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def secret_exists(self, namespace, name, **kwargs): # noqa: E501 """secret_exists # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.secret_exists(namespace, name, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param name: (required) - :type name: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str name: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: SecretExistsResponse If the method is called asynchronously, returns the request thread. - :rtype: SecretExistsResponse """ kwargs['_return_http_data_only'] = True return self.secret_exists_with_http_info(namespace, name, **kwargs) # noqa: E501 @@ -931,35 +809,24 @@ def secret_exists_with_http_info(self, namespace, name, **kwargs): # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.secret_exists_with_http_info(namespace, name, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param name: (required) - :type name: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str name: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(SecretExistsResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(SecretExistsResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -973,8 +840,7 @@ def secret_exists_with_http_info(self, namespace, name, **kwargs): # noqa: E501 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -1032,38 +898,30 @@ def secret_exists_with_http_info(self, namespace, name, **kwargs): # noqa: E501 _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def update_secret_key_value(self, namespace, secret_name, body, **kwargs): # noqa: E501 """update_secret_key_value # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_secret_key_value(namespace, secret_name, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param secret_name: (required) - :type secret_name: str - :param body: (required) - :type body: Secret - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str secret_name: (required) + :param Secret body: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: UpdateSecretKeyValueResponse If the method is called asynchronously, returns the request thread. - :rtype: UpdateSecretKeyValueResponse """ kwargs['_return_http_data_only'] = True return self.update_secret_key_value_with_http_info(namespace, secret_name, body, **kwargs) # noqa: E501 @@ -1073,37 +931,25 @@ def update_secret_key_value_with_http_info(self, namespace, secret_name, body, * This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_secret_key_value_with_http_info(namespace, secret_name, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param secret_name: (required) - :type secret_name: str - :param body: (required) - :type body: Secret - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str secret_name: (required) + :param Secret body: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(UpdateSecretKeyValueResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(UpdateSecretKeyValueResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -1118,8 +964,7 @@ def update_secret_key_value_with_http_info(self, namespace, secret_name, body, * 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -1187,5 +1032,4 @@ def update_secret_key_value_with_http_info(self, namespace, secret_name, body, * _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) diff --git a/onepanel/core/api/api/service_service_api.py b/onepanel/core/api/api/service_service_api.py index a7b1ecd..df556b1 100644 --- a/onepanel/core/api/api/service_service_api.py +++ b/onepanel/core/api/api/service_service_api.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -41,28 +41,22 @@ def get_service(self, namespace, name, **kwargs): # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_service(namespace, name, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param name: (required) - :type name: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str name: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: Service If the method is called asynchronously, returns the request thread. - :rtype: Service """ kwargs['_return_http_data_only'] = True return self.get_service_with_http_info(namespace, name, **kwargs) # noqa: E501 @@ -72,35 +66,24 @@ def get_service_with_http_info(self, namespace, name, **kwargs): # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_service_with_http_info(namespace, name, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param name: (required) - :type name: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str name: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(Service, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(Service, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -114,8 +97,7 @@ def get_service_with_http_info(self, namespace, name, **kwargs): # noqa: E501 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -173,38 +155,30 @@ def get_service_with_http_info(self, namespace, name, **kwargs): # noqa: E501 _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def list_services(self, namespace, **kwargs): # noqa: E501 """list_services # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_services(namespace, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param page_size: - :type page_size: int - :param page: - :type page: int - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param int page_size: + :param int page: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: ListServicesResponse If the method is called asynchronously, returns the request thread. - :rtype: ListServicesResponse """ kwargs['_return_http_data_only'] = True return self.list_services_with_http_info(namespace, **kwargs) # noqa: E501 @@ -214,37 +188,25 @@ def list_services_with_http_info(self, namespace, **kwargs): # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_services_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param page_size: - :type page_size: int - :param page: - :type page: int - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param int page_size: + :param int page: :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(ListServicesResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(ListServicesResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -259,8 +221,7 @@ def list_services_with_http_info(self, namespace, **kwargs): # noqa: E501 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -316,5 +277,4 @@ def list_services_with_http_info(self, namespace, **kwargs): # noqa: E501 _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) diff --git a/onepanel/core/api/api/workflow_service_api.py b/onepanel/core/api/api/workflow_service_api.py index 52d8d70..2112167 100644 --- a/onepanel/core/api/api/workflow_service_api.py +++ b/onepanel/core/api/api/workflow_service_api.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -41,30 +41,23 @@ def add_workflow_execution_statistics(self, namespace, uid, body, **kwargs): # This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.add_workflow_execution_statistics(namespace, uid, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param body: (required) - :type body: Statistics - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param Statistics body: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: object If the method is called asynchronously, returns the request thread. - :rtype: object """ kwargs['_return_http_data_only'] = True return self.add_workflow_execution_statistics_with_http_info(namespace, uid, body, **kwargs) # noqa: E501 @@ -74,37 +67,25 @@ def add_workflow_execution_statistics_with_http_info(self, namespace, uid, body, This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.add_workflow_execution_statistics_with_http_info(namespace, uid, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param body: (required) - :type body: Statistics - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param Statistics body: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -119,8 +100,7 @@ def add_workflow_execution_statistics_with_http_info(self, namespace, uid, body, 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -188,36 +168,29 @@ def add_workflow_execution_statistics_with_http_info(self, namespace, uid, body, _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def clone_workflow_execution(self, namespace, uid, **kwargs): # noqa: E501 """clone_workflow_execution # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.clone_workflow_execution(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: WorkflowExecution If the method is called asynchronously, returns the request thread. - :rtype: WorkflowExecution """ kwargs['_return_http_data_only'] = True return self.clone_workflow_execution_with_http_info(namespace, uid, **kwargs) # noqa: E501 @@ -227,35 +200,24 @@ def clone_workflow_execution_with_http_info(self, namespace, uid, **kwargs): # This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.clone_workflow_execution_with_http_info(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(WorkflowExecution, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(WorkflowExecution, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -269,8 +231,7 @@ def clone_workflow_execution_with_http_info(self, namespace, uid, **kwargs): # 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -328,36 +289,29 @@ def clone_workflow_execution_with_http_info(self, namespace, uid, **kwargs): # _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def create_workflow_execution(self, namespace, body, **kwargs): # noqa: E501 """create_workflow_execution # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_workflow_execution(namespace, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param body: (required) - :type body: CreateWorkflowExecutionBody - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param CreateWorkflowExecutionBody body: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: WorkflowExecution If the method is called asynchronously, returns the request thread. - :rtype: WorkflowExecution """ kwargs['_return_http_data_only'] = True return self.create_workflow_execution_with_http_info(namespace, body, **kwargs) # noqa: E501 @@ -367,35 +321,24 @@ def create_workflow_execution_with_http_info(self, namespace, body, **kwargs): This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_workflow_execution_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param body: (required) - :type body: CreateWorkflowExecutionBody - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param CreateWorkflowExecutionBody body: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(WorkflowExecution, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(WorkflowExecution, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -409,8 +352,7 @@ def create_workflow_execution_with_http_info(self, namespace, body, **kwargs): 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -472,38 +414,30 @@ def create_workflow_execution_with_http_info(self, namespace, body, **kwargs): _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def cron_start_workflow_execution_statistic(self, namespace, uid, body, **kwargs): # noqa: E501 """cron_start_workflow_execution_statistic # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.cron_start_workflow_execution_statistic(namespace, uid, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param body: (required) - :type body: Statistics - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param Statistics body: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: object If the method is called asynchronously, returns the request thread. - :rtype: object """ kwargs['_return_http_data_only'] = True return self.cron_start_workflow_execution_statistic_with_http_info(namespace, uid, body, **kwargs) # noqa: E501 @@ -513,37 +447,25 @@ def cron_start_workflow_execution_statistic_with_http_info(self, namespace, uid, This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.cron_start_workflow_execution_statistic_with_http_info(namespace, uid, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param body: (required) - :type body: Statistics - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param Statistics body: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -558,8 +480,7 @@ def cron_start_workflow_execution_statistic_with_http_info(self, namespace, uid, 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -627,38 +548,30 @@ def cron_start_workflow_execution_statistic_with_http_info(self, namespace, uid, _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def get_artifact(self, namespace, uid, key, **kwargs): # noqa: E501 """get_artifact # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_artifact(namespace, uid, key, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param key: (required) - :type key: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param str key: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: ArtifactResponse If the method is called asynchronously, returns the request thread. - :rtype: ArtifactResponse """ kwargs['_return_http_data_only'] = True return self.get_artifact_with_http_info(namespace, uid, key, **kwargs) # noqa: E501 @@ -668,37 +581,25 @@ def get_artifact_with_http_info(self, namespace, uid, key, **kwargs): # noqa: E This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_artifact_with_http_info(namespace, uid, key, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param key: (required) - :type key: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param str key: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(ArtifactResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(ArtifactResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -713,8 +614,7 @@ def get_artifact_with_http_info(self, namespace, uid, key, **kwargs): # noqa: E 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -778,36 +678,29 @@ def get_artifact_with_http_info(self, namespace, uid, key, **kwargs): # noqa: E _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def get_workflow_execution(self, namespace, uid, **kwargs): # noqa: E501 """get_workflow_execution # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_workflow_execution(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: WorkflowExecution If the method is called asynchronously, returns the request thread. - :rtype: WorkflowExecution """ kwargs['_return_http_data_only'] = True return self.get_workflow_execution_with_http_info(namespace, uid, **kwargs) # noqa: E501 @@ -817,35 +710,24 @@ def get_workflow_execution_with_http_info(self, namespace, uid, **kwargs): # no This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_workflow_execution_with_http_info(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(WorkflowExecution, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(WorkflowExecution, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -859,8 +741,7 @@ def get_workflow_execution_with_http_info(self, namespace, uid, **kwargs): # no 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -918,40 +799,31 @@ def get_workflow_execution_with_http_info(self, namespace, uid, **kwargs): # no _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def get_workflow_execution_logs(self, namespace, uid, pod_name, container_name, **kwargs): # noqa: E501 """get_workflow_execution_logs # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_workflow_execution_logs(namespace, uid, pod_name, container_name, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param pod_name: (required) - :type pod_name: str - :param container_name: (required) - :type container_name: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param str pod_name: (required) + :param str container_name: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: StreamResultOfLogEntry If the method is called asynchronously, returns the request thread. - :rtype: StreamResultOfLogEntry """ kwargs['_return_http_data_only'] = True return self.get_workflow_execution_logs_with_http_info(namespace, uid, pod_name, container_name, **kwargs) # noqa: E501 @@ -961,39 +833,26 @@ def get_workflow_execution_logs_with_http_info(self, namespace, uid, pod_name, c This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_workflow_execution_logs_with_http_info(namespace, uid, pod_name, container_name, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param pod_name: (required) - :type pod_name: str - :param container_name: (required) - :type container_name: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param str pod_name: (required) + :param str container_name: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(StreamResultOfLogEntry, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(StreamResultOfLogEntry, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -1009,8 +868,7 @@ def get_workflow_execution_logs_with_http_info(self, namespace, uid, pod_name, c 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -1080,38 +938,30 @@ def get_workflow_execution_logs_with_http_info(self, namespace, uid, pod_name, c _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def get_workflow_execution_metrics(self, namespace, uid, pod_name, **kwargs): # noqa: E501 """get_workflow_execution_metrics # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_workflow_execution_metrics(namespace, uid, pod_name, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param pod_name: (required) - :type pod_name: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param str pod_name: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: GetWorkflowExecutionMetricsResponse If the method is called asynchronously, returns the request thread. - :rtype: GetWorkflowExecutionMetricsResponse """ kwargs['_return_http_data_only'] = True return self.get_workflow_execution_metrics_with_http_info(namespace, uid, pod_name, **kwargs) # noqa: E501 @@ -1121,37 +971,25 @@ def get_workflow_execution_metrics_with_http_info(self, namespace, uid, pod_name This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_workflow_execution_metrics_with_http_info(namespace, uid, pod_name, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param pod_name: (required) - :type pod_name: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param str pod_name: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(GetWorkflowExecutionMetricsResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(GetWorkflowExecutionMetricsResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -1166,8 +1004,7 @@ def get_workflow_execution_metrics_with_http_info(self, namespace, uid, pod_name 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -1231,38 +1068,142 @@ def get_workflow_execution_metrics_with_http_info(self, namespace, uid, pod_name _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) + + def get_workflow_execution_statistics_for_namespace(self, namespace, **kwargs): # noqa: E501 + """get_workflow_execution_statistics_for_namespace # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_workflow_execution_statistics_for_namespace(namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: GetWorkflowExecutionStatisticsForNamespaceResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.get_workflow_execution_statistics_for_namespace_with_http_info(namespace, **kwargs) # noqa: E501 + + def get_workflow_execution_statistics_for_namespace_with_http_info(self, namespace, **kwargs): # noqa: E501 + """get_workflow_execution_statistics_for_namespace # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_workflow_execution_statistics_for_namespace_with_http_info(namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(GetWorkflowExecutionStatisticsForNamespaceResponse, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'namespace' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method get_workflow_execution_statistics_for_namespace" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `get_workflow_execution_statistics_for_namespace`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/octet-stream']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/{namespace}/workflow_executions/statistics', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GetWorkflowExecutionStatisticsForNamespaceResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) def list_files(self, namespace, uid, path, **kwargs): # noqa: E501 """list_files # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_files(namespace, uid, path, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param path: (required) - :type path: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param str path: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: ListFilesResponse If the method is called asynchronously, returns the request thread. - :rtype: ListFilesResponse """ kwargs['_return_http_data_only'] = True return self.list_files_with_http_info(namespace, uid, path, **kwargs) # noqa: E501 @@ -1272,37 +1213,25 @@ def list_files_with_http_info(self, namespace, uid, path, **kwargs): # noqa: E5 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_files_with_http_info(namespace, uid, path, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param path: (required) - :type path: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param str path: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(ListFilesResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(ListFilesResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -1317,8 +1246,7 @@ def list_files_with_http_info(self, namespace, uid, path, **kwargs): # noqa: E5 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -1382,42 +1310,36 @@ def list_files_with_http_info(self, namespace, uid, path, **kwargs): # noqa: E5 _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def list_workflow_executions(self, namespace, **kwargs): # noqa: E501 """list_workflow_executions # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_workflow_executions(namespace, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param workflow_template_uid: - :type workflow_template_uid: str - :param workflow_template_version: - :type workflow_template_version: str - :param page_size: - :type page_size: int - :param page: - :type page: int - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str workflow_template_uid: + :param str workflow_template_version: + :param int page_size: + :param int page: + :param str order: + :param str labels: + :param str phase: + :param bool include_system: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: ListWorkflowExecutionsResponse If the method is called asynchronously, returns the request thread. - :rtype: ListWorkflowExecutionsResponse """ kwargs['_return_http_data_only'] = True return self.list_workflow_executions_with_http_info(namespace, **kwargs) # noqa: E501 @@ -1427,41 +1349,31 @@ def list_workflow_executions_with_http_info(self, namespace, **kwargs): # noqa: This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_workflow_executions_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param workflow_template_uid: - :type workflow_template_uid: str - :param workflow_template_version: - :type workflow_template_version: str - :param page_size: - :type page_size: int - :param page: - :type page: int - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str workflow_template_uid: + :param str workflow_template_version: + :param int page_size: + :param int page: + :param str order: + :param str labels: + :param str phase: + :param bool include_system: :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(ListWorkflowExecutionsResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(ListWorkflowExecutionsResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -1471,15 +1383,18 @@ def list_workflow_executions_with_http_info(self, namespace, **kwargs): # noqa: 'workflow_template_uid', 'workflow_template_version', 'page_size', - 'page' + 'page', + 'order', + 'labels', + 'phase', + 'include_system' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -1511,6 +1426,14 @@ def list_workflow_executions_with_http_info(self, namespace, **kwargs): # noqa: query_params.append(('pageSize', local_var_params['page_size'])) # noqa: E501 if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'order' in local_var_params and local_var_params['order'] is not None: # noqa: E501 + query_params.append(('order', local_var_params['order'])) # noqa: E501 + if 'labels' in local_var_params and local_var_params['labels'] is not None: # noqa: E501 + query_params.append(('labels', local_var_params['labels'])) # noqa: E501 + if 'phase' in local_var_params and local_var_params['phase'] is not None: # noqa: E501 + query_params.append(('phase', local_var_params['phase'])) # noqa: E501 + if 'include_system' in local_var_params and local_var_params['include_system'] is not None: # noqa: E501 + query_params.append(('includeSystem', local_var_params['include_system'])) # noqa: E501 header_params = {} @@ -1539,36 +1462,29 @@ def list_workflow_executions_with_http_info(self, namespace, **kwargs): # noqa: _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def resubmit_workflow_execution(self, namespace, uid, **kwargs): # noqa: E501 """resubmit_workflow_execution # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.resubmit_workflow_execution(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: WorkflowExecution If the method is called asynchronously, returns the request thread. - :rtype: WorkflowExecution """ kwargs['_return_http_data_only'] = True return self.resubmit_workflow_execution_with_http_info(namespace, uid, **kwargs) # noqa: E501 @@ -1578,35 +1494,24 @@ def resubmit_workflow_execution_with_http_info(self, namespace, uid, **kwargs): This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.resubmit_workflow_execution_with_http_info(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(WorkflowExecution, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(WorkflowExecution, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -1620,8 +1525,7 @@ def resubmit_workflow_execution_with_http_info(self, namespace, uid, **kwargs): 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -1679,36 +1583,29 @@ def resubmit_workflow_execution_with_http_info(self, namespace, uid, **kwargs): _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def terminate_workflow_execution(self, namespace, uid, **kwargs): # noqa: E501 """terminate_workflow_execution # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.terminate_workflow_execution(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: object If the method is called asynchronously, returns the request thread. - :rtype: object """ kwargs['_return_http_data_only'] = True return self.terminate_workflow_execution_with_http_info(namespace, uid, **kwargs) # noqa: E501 @@ -1718,35 +1615,24 @@ def terminate_workflow_execution_with_http_info(self, namespace, uid, **kwargs): This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.terminate_workflow_execution_with_http_info(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -1760,8 +1646,7 @@ def terminate_workflow_execution_with_http_info(self, namespace, uid, **kwargs): 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -1819,38 +1704,30 @@ def terminate_workflow_execution_with_http_info(self, namespace, uid, **kwargs): _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def update_workflow_execution_status(self, namespace, uid, body, **kwargs): # noqa: E501 """update_workflow_execution_status # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_workflow_execution_status(namespace, uid, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param body: (required) - :type body: WorkflowExecutionStatus - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param WorkflowExecutionStatus body: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: object If the method is called asynchronously, returns the request thread. - :rtype: object """ kwargs['_return_http_data_only'] = True return self.update_workflow_execution_status_with_http_info(namespace, uid, body, **kwargs) # noqa: E501 @@ -1860,37 +1737,25 @@ def update_workflow_execution_status_with_http_info(self, namespace, uid, body, This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_workflow_execution_status_with_http_info(namespace, uid, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param body: (required) - :type body: WorkflowExecutionStatus - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param WorkflowExecutionStatus body: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -1905,8 +1770,7 @@ def update_workflow_execution_status_with_http_info(self, namespace, uid, body, 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -1974,36 +1838,29 @@ def update_workflow_execution_status_with_http_info(self, namespace, uid, body, _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def watch_workflow_execution(self, namespace, uid, **kwargs): # noqa: E501 """watch_workflow_execution # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.watch_workflow_execution(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: StreamResultOfWorkflowExecution If the method is called asynchronously, returns the request thread. - :rtype: StreamResultOfWorkflowExecution """ kwargs['_return_http_data_only'] = True return self.watch_workflow_execution_with_http_info(namespace, uid, **kwargs) # noqa: E501 @@ -2013,35 +1870,24 @@ def watch_workflow_execution_with_http_info(self, namespace, uid, **kwargs): # This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.watch_workflow_execution_with_http_info(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(StreamResultOfWorkflowExecution, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(StreamResultOfWorkflowExecution, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -2055,8 +1901,7 @@ def watch_workflow_execution_with_http_info(self, namespace, uid, **kwargs): # 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -2114,5 +1959,4 @@ def watch_workflow_execution_with_http_info(self, namespace, uid, **kwargs): # _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) diff --git a/onepanel/core/api/api/workflow_template_service_api.py b/onepanel/core/api/api/workflow_template_service_api.py index dae7a66..b36dc0c 100644 --- a/onepanel/core/api/api/workflow_template_service_api.py +++ b/onepanel/core/api/api/workflow_template_service_api.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -41,28 +41,22 @@ def archive_workflow_template(self, namespace, uid, **kwargs): # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.archive_workflow_template(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: ArchiveWorkflowTemplateResponse If the method is called asynchronously, returns the request thread. - :rtype: ArchiveWorkflowTemplateResponse """ kwargs['_return_http_data_only'] = True return self.archive_workflow_template_with_http_info(namespace, uid, **kwargs) # noqa: E501 @@ -72,35 +66,24 @@ def archive_workflow_template_with_http_info(self, namespace, uid, **kwargs): # This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.archive_workflow_template_with_http_info(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(ArchiveWorkflowTemplateResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(ArchiveWorkflowTemplateResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -114,8 +97,7 @@ def archive_workflow_template_with_http_info(self, namespace, uid, **kwargs): # 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -173,40 +155,31 @@ def archive_workflow_template_with_http_info(self, namespace, uid, **kwargs): # _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def clone_workflow_template(self, namespace, uid, name, **kwargs): # noqa: E501 """clone_workflow_template # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.clone_workflow_template(namespace, uid, name, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param name: (required) - :type name: str - :param version: - :type version: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param str name: (required) + :param str version: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: WorkflowTemplate If the method is called asynchronously, returns the request thread. - :rtype: WorkflowTemplate """ kwargs['_return_http_data_only'] = True return self.clone_workflow_template_with_http_info(namespace, uid, name, **kwargs) # noqa: E501 @@ -216,39 +189,26 @@ def clone_workflow_template_with_http_info(self, namespace, uid, name, **kwargs) This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.clone_workflow_template_with_http_info(namespace, uid, name, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param name: (required) - :type name: str - :param version: - :type version: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param str name: (required) + :param str version: :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(WorkflowTemplate, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(WorkflowTemplate, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -264,8 +224,7 @@ def clone_workflow_template_with_http_info(self, namespace, uid, name, **kwargs) 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -331,40 +290,31 @@ def clone_workflow_template_with_http_info(self, namespace, uid, name, **kwargs) _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def clone_workflow_template2(self, namespace, uid, name, version, **kwargs): # noqa: E501 """clone_workflow_template2 # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.clone_workflow_template2(namespace, uid, name, version, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param name: (required) - :type name: str - :param version: (required) - :type version: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param str name: (required) + :param str version: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: WorkflowTemplate If the method is called asynchronously, returns the request thread. - :rtype: WorkflowTemplate """ kwargs['_return_http_data_only'] = True return self.clone_workflow_template2_with_http_info(namespace, uid, name, version, **kwargs) # noqa: E501 @@ -374,39 +324,26 @@ def clone_workflow_template2_with_http_info(self, namespace, uid, name, version, This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.clone_workflow_template2_with_http_info(namespace, uid, name, version, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param name: (required) - :type name: str - :param version: (required) - :type version: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param str name: (required) + :param str version: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(WorkflowTemplate, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(WorkflowTemplate, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -422,8 +359,7 @@ def clone_workflow_template2_with_http_info(self, namespace, uid, name, version, 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -493,36 +429,29 @@ def clone_workflow_template2_with_http_info(self, namespace, uid, name, version, _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def create_workflow_template(self, namespace, body, **kwargs): # noqa: E501 """create_workflow_template # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_workflow_template(namespace, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param body: (required) - :type body: WorkflowTemplate - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param WorkflowTemplate body: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: WorkflowTemplate If the method is called asynchronously, returns the request thread. - :rtype: WorkflowTemplate """ kwargs['_return_http_data_only'] = True return self.create_workflow_template_with_http_info(namespace, body, **kwargs) # noqa: E501 @@ -532,35 +461,24 @@ def create_workflow_template_with_http_info(self, namespace, body, **kwargs): # This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_workflow_template_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param body: (required) - :type body: WorkflowTemplate - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param WorkflowTemplate body: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(WorkflowTemplate, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(WorkflowTemplate, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -574,8 +492,7 @@ def create_workflow_template_with_http_info(self, namespace, body, **kwargs): # 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -637,38 +554,30 @@ def create_workflow_template_with_http_info(self, namespace, body, **kwargs): # _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def create_workflow_template_version(self, namespace, workflow_template_uid, body, **kwargs): # noqa: E501 """create_workflow_template_version # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_workflow_template_version(namespace, workflow_template_uid, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param workflow_template_uid: (required) - :type workflow_template_uid: str - :param body: (required) - :type body: WorkflowTemplate - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str workflow_template_uid: (required) + :param WorkflowTemplate body: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: WorkflowTemplate If the method is called asynchronously, returns the request thread. - :rtype: WorkflowTemplate """ kwargs['_return_http_data_only'] = True return self.create_workflow_template_version_with_http_info(namespace, workflow_template_uid, body, **kwargs) # noqa: E501 @@ -678,37 +587,25 @@ def create_workflow_template_version_with_http_info(self, namespace, workflow_te This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_workflow_template_version_with_http_info(namespace, workflow_template_uid, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param workflow_template_uid: (required) - :type workflow_template_uid: str - :param body: (required) - :type body: WorkflowTemplate - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str workflow_template_uid: (required) + :param WorkflowTemplate body: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(WorkflowTemplate, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(WorkflowTemplate, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -723,8 +620,7 @@ def create_workflow_template_version_with_http_info(self, namespace, workflow_te 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -792,38 +688,30 @@ def create_workflow_template_version_with_http_info(self, namespace, workflow_te _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def get_workflow_template(self, namespace, uid, **kwargs): # noqa: E501 """get_workflow_template # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_workflow_template(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param version: - :type version: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param str version: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: WorkflowTemplate If the method is called asynchronously, returns the request thread. - :rtype: WorkflowTemplate """ kwargs['_return_http_data_only'] = True return self.get_workflow_template_with_http_info(namespace, uid, **kwargs) # noqa: E501 @@ -833,37 +721,25 @@ def get_workflow_template_with_http_info(self, namespace, uid, **kwargs): # noq This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_workflow_template_with_http_info(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param version: - :type version: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param str version: :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(WorkflowTemplate, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(WorkflowTemplate, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -878,8 +754,7 @@ def get_workflow_template_with_http_info(self, namespace, uid, **kwargs): # noq 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -939,38 +814,30 @@ def get_workflow_template_with_http_info(self, namespace, uid, **kwargs): # noq _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def get_workflow_template2(self, namespace, uid, version, **kwargs): # noqa: E501 """get_workflow_template2 # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_workflow_template2(namespace, uid, version, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param version: (required) - :type version: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param str version: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: WorkflowTemplate If the method is called asynchronously, returns the request thread. - :rtype: WorkflowTemplate """ kwargs['_return_http_data_only'] = True return self.get_workflow_template2_with_http_info(namespace, uid, version, **kwargs) # noqa: E501 @@ -980,37 +847,25 @@ def get_workflow_template2_with_http_info(self, namespace, uid, version, **kwarg This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_workflow_template2_with_http_info(namespace, uid, version, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param version: (required) - :type version: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param str version: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(WorkflowTemplate, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(WorkflowTemplate, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -1025,8 +880,7 @@ def get_workflow_template2_with_http_info(self, namespace, uid, version, **kwarg 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -1090,36 +944,29 @@ def get_workflow_template2_with_http_info(self, namespace, uid, version, **kwarg _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def list_workflow_template_versions(self, namespace, uid, **kwargs): # noqa: E501 """list_workflow_template_versions # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_workflow_template_versions(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: ListWorkflowTemplateVersionsResponse If the method is called asynchronously, returns the request thread. - :rtype: ListWorkflowTemplateVersionsResponse """ kwargs['_return_http_data_only'] = True return self.list_workflow_template_versions_with_http_info(namespace, uid, **kwargs) # noqa: E501 @@ -1129,35 +976,24 @@ def list_workflow_template_versions_with_http_info(self, namespace, uid, **kwarg This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_workflow_template_versions_with_http_info(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(ListWorkflowTemplateVersionsResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(ListWorkflowTemplateVersionsResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -1171,8 +1007,7 @@ def list_workflow_template_versions_with_http_info(self, namespace, uid, **kwarg 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -1230,40 +1065,31 @@ def list_workflow_template_versions_with_http_info(self, namespace, uid, **kwarg _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def list_workflow_templates(self, namespace, **kwargs): # noqa: E501 """list_workflow_templates # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_workflow_templates(namespace, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param page_size: - :type page_size: int - :param page: - :type page: int - :param labels: - :type labels: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param int page_size: + :param int page: + :param str labels: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: ListWorkflowTemplatesResponse If the method is called asynchronously, returns the request thread. - :rtype: ListWorkflowTemplatesResponse """ kwargs['_return_http_data_only'] = True return self.list_workflow_templates_with_http_info(namespace, **kwargs) # noqa: E501 @@ -1273,39 +1099,26 @@ def list_workflow_templates_with_http_info(self, namespace, **kwargs): # noqa: This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_workflow_templates_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param page_size: - :type page_size: int - :param page: - :type page: int - :param labels: - :type labels: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param int page_size: + :param int page: + :param str labels: :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(ListWorkflowTemplatesResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(ListWorkflowTemplatesResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -1321,8 +1134,7 @@ def list_workflow_templates_with_http_info(self, namespace, **kwargs): # noqa: 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -1380,5 +1192,4 @@ def list_workflow_templates_with_http_info(self, namespace, **kwargs): # noqa: _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) diff --git a/onepanel/core/api/api/workspace_service_api.py b/onepanel/core/api/api/workspace_service_api.py index c959677..7ce4645 100644 --- a/onepanel/core/api/api/workspace_service_api.py +++ b/onepanel/core/api/api/workspace_service_api.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -41,28 +41,22 @@ def create_workspace(self, namespace, body, **kwargs): # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_workspace(namespace, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param body: (required) - :type body: CreateWorkspaceBody - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param CreateWorkspaceBody body: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: Workspace If the method is called asynchronously, returns the request thread. - :rtype: Workspace """ kwargs['_return_http_data_only'] = True return self.create_workspace_with_http_info(namespace, body, **kwargs) # noqa: E501 @@ -72,35 +66,24 @@ def create_workspace_with_http_info(self, namespace, body, **kwargs): # noqa: E This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_workspace_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param body: (required) - :type body: CreateWorkspaceBody - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param CreateWorkspaceBody body: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(Workspace, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(Workspace, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -114,8 +97,7 @@ def create_workspace_with_http_info(self, namespace, body, **kwargs): # noqa: E 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -177,36 +159,29 @@ def create_workspace_with_http_info(self, namespace, body, **kwargs): # noqa: E _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def delete_workspace(self, namespace, uid, **kwargs): # noqa: E501 """delete_workspace # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_workspace(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: object If the method is called asynchronously, returns the request thread. - :rtype: object """ kwargs['_return_http_data_only'] = True return self.delete_workspace_with_http_info(namespace, uid, **kwargs) # noqa: E501 @@ -216,35 +191,24 @@ def delete_workspace_with_http_info(self, namespace, uid, **kwargs): # noqa: E5 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_workspace_with_http_info(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -258,8 +222,7 @@ def delete_workspace_with_http_info(self, namespace, uid, **kwargs): # noqa: E5 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -317,36 +280,29 @@ def delete_workspace_with_http_info(self, namespace, uid, **kwargs): # noqa: E5 _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def get_workspace(self, namespace, uid, **kwargs): # noqa: E501 """get_workspace # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_workspace(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: Workspace If the method is called asynchronously, returns the request thread. - :rtype: Workspace """ kwargs['_return_http_data_only'] = True return self.get_workspace_with_http_info(namespace, uid, **kwargs) # noqa: E501 @@ -356,35 +312,24 @@ def get_workspace_with_http_info(self, namespace, uid, **kwargs): # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_workspace_with_http_info(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(Workspace, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(Workspace, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -398,8 +343,7 @@ def get_workspace_with_http_info(self, namespace, uid, **kwargs): # noqa: E501 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -457,38 +401,145 @@ def get_workspace_with_http_info(self, namespace, uid, **kwargs): # noqa: E501 _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) + + def get_workspace_statistics_for_namespace(self, namespace, **kwargs): # noqa: E501 + """get_workspace_statistics_for_namespace # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_workspace_statistics_for_namespace(namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: GetWorkspaceStatisticsForNamespaceResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.get_workspace_statistics_for_namespace_with_http_info(namespace, **kwargs) # noqa: E501 + + def get_workspace_statistics_for_namespace_with_http_info(self, namespace, **kwargs): # noqa: E501 + """get_workspace_statistics_for_namespace # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_workspace_statistics_for_namespace_with_http_info(namespace, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(GetWorkspaceStatisticsForNamespaceResponse, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'namespace' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method get_workspace_statistics_for_namespace" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `get_workspace_statistics_for_namespace`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/octet-stream']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/{namespace}/workspace/statistics', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GetWorkspaceStatisticsForNamespaceResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) def list_workspaces(self, namespace, **kwargs): # noqa: E501 """list_workspaces # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_workspaces(namespace, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param page_size: - :type page_size: int - :param page: - :type page: int - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param int page_size: + :param int page: + :param str order: + :param str labels: + :param str phase: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: ListWorkspaceResponse If the method is called asynchronously, returns the request thread. - :rtype: ListWorkspaceResponse """ kwargs['_return_http_data_only'] = True return self.list_workspaces_with_http_info(namespace, **kwargs) # noqa: E501 @@ -498,37 +549,28 @@ def list_workspaces_with_http_info(self, namespace, **kwargs): # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_workspaces_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param page_size: - :type page_size: int - :param page: - :type page: int - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param int page_size: + :param int page: + :param str order: + :param str labels: + :param str phase: :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(ListWorkspaceResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(ListWorkspaceResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -536,15 +578,17 @@ def list_workspaces_with_http_info(self, namespace, **kwargs): # noqa: E501 all_params = [ 'namespace', 'page_size', - 'page' + 'page', + 'order', + 'labels', + 'phase' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -572,6 +616,12 @@ def list_workspaces_with_http_info(self, namespace, **kwargs): # noqa: E501 query_params.append(('pageSize', local_var_params['page_size'])) # noqa: E501 if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'order' in local_var_params and local_var_params['order'] is not None: # noqa: E501 + query_params.append(('order', local_var_params['order'])) # noqa: E501 + if 'labels' in local_var_params and local_var_params['labels'] is not None: # noqa: E501 + query_params.append(('labels', local_var_params['labels'])) # noqa: E501 + if 'phase' in local_var_params and local_var_params['phase'] is not None: # noqa: E501 + query_params.append(('phase', local_var_params['phase'])) # noqa: E501 header_params = {} @@ -600,36 +650,29 @@ def list_workspaces_with_http_info(self, namespace, **kwargs): # noqa: E501 _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def pause_workspace(self, namespace, uid, **kwargs): # noqa: E501 """pause_workspace # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.pause_workspace(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: object If the method is called asynchronously, returns the request thread. - :rtype: object """ kwargs['_return_http_data_only'] = True return self.pause_workspace_with_http_info(namespace, uid, **kwargs) # noqa: E501 @@ -639,35 +682,24 @@ def pause_workspace_with_http_info(self, namespace, uid, **kwargs): # noqa: E50 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.pause_workspace_with_http_info(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -681,8 +713,7 @@ def pause_workspace_with_http_info(self, namespace, uid, **kwargs): # noqa: E50 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -740,36 +771,29 @@ def pause_workspace_with_http_info(self, namespace, uid, **kwargs): # noqa: E50 _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def resume_workspace(self, namespace, uid, **kwargs): # noqa: E501 """resume_workspace # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.resume_workspace(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: object If the method is called asynchronously, returns the request thread. - :rtype: object """ kwargs['_return_http_data_only'] = True return self.resume_workspace_with_http_info(namespace, uid, **kwargs) # noqa: E501 @@ -779,35 +803,24 @@ def resume_workspace_with_http_info(self, namespace, uid, **kwargs): # noqa: E5 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.resume_workspace_with_http_info(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -821,8 +834,7 @@ def resume_workspace_with_http_info(self, namespace, uid, **kwargs): # noqa: E5 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -880,38 +892,151 @@ def resume_workspace_with_http_info(self, namespace, uid, **kwargs): # noqa: E5 _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) + + def retry_last_workspace_action(self, namespace, uid, **kwargs): # noqa: E501 + """retry_last_workspace_action # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.retry_last_workspace_action(namespace, uid, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.retry_last_workspace_action_with_http_info(namespace, uid, **kwargs) # noqa: E501 + + def retry_last_workspace_action_with_http_info(self, namespace, uid, **kwargs): # noqa: E501 + """retry_last_workspace_action # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.retry_last_workspace_action_with_http_info(namespace, uid, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'namespace', + 'uid' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method retry_last_workspace_action" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'namespace' is set + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `retry_last_workspace_action`") # noqa: E501 + # verify the required parameter 'uid' is set + if self.api_client.client_side_validation and ('uid' not in local_var_params or # noqa: E501 + local_var_params['uid'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `uid` when calling `retry_last_workspace_action`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'uid' in local_var_params: + path_params['uid'] = local_var_params['uid'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/octet-stream']) # noqa: E501 + + # Authentication setting + auth_settings = ['Bearer'] # noqa: E501 + + return self.api_client.call_api( + '/apis/v1beta1/{namespace}/workspaces/{uid}/retry', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) def update_workspace(self, namespace, uid, body, **kwargs): # noqa: E501 """update_workspace # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_workspace(namespace, uid, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param body: (required) - :type body: UpdateWorkspaceBody - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param UpdateWorkspaceBody body: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: object If the method is called asynchronously, returns the request thread. - :rtype: object """ kwargs['_return_http_data_only'] = True return self.update_workspace_with_http_info(namespace, uid, body, **kwargs) # noqa: E501 @@ -921,37 +1046,25 @@ def update_workspace_with_http_info(self, namespace, uid, body, **kwargs): # no This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_workspace_with_http_info(namespace, uid, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param body: (required) - :type body: UpdateWorkspaceBody - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param UpdateWorkspaceBody body: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -966,8 +1079,7 @@ def update_workspace_with_http_info(self, namespace, uid, body, **kwargs): # no 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -1035,38 +1147,30 @@ def update_workspace_with_http_info(self, namespace, uid, body, **kwargs): # no _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def update_workspace_status(self, namespace, uid, body, **kwargs): # noqa: E501 """update_workspace_status # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_workspace_status(namespace, uid, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param body: (required) - :type body: WorkspaceStatus - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param WorkspaceStatus body: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: object If the method is called asynchronously, returns the request thread. - :rtype: object """ kwargs['_return_http_data_only'] = True return self.update_workspace_status_with_http_info(namespace, uid, body, **kwargs) # noqa: E501 @@ -1076,37 +1180,25 @@ def update_workspace_status_with_http_info(self, namespace, uid, body, **kwargs) This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_workspace_status_with_http_info(namespace, uid, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param body: (required) - :type body: WorkspaceStatus - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param WorkspaceStatus body: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -1121,8 +1213,7 @@ def update_workspace_status_with_http_info(self, namespace, uid, body, **kwargs) 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -1190,5 +1281,4 @@ def update_workspace_status_with_http_info(self, namespace, uid, body, **kwargs) _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) diff --git a/onepanel/core/api/api/workspace_template_service_api.py b/onepanel/core/api/api/workspace_template_service_api.py index 72de595..0435ce0 100644 --- a/onepanel/core/api/api/workspace_template_service_api.py +++ b/onepanel/core/api/api/workspace_template_service_api.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -41,28 +41,22 @@ def archive_workspace_template(self, namespace, uid, **kwargs): # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.archive_workspace_template(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: WorkspaceTemplate If the method is called asynchronously, returns the request thread. - :rtype: WorkspaceTemplate """ kwargs['_return_http_data_only'] = True return self.archive_workspace_template_with_http_info(namespace, uid, **kwargs) # noqa: E501 @@ -72,35 +66,24 @@ def archive_workspace_template_with_http_info(self, namespace, uid, **kwargs): This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.archive_workspace_template_with_http_info(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(WorkspaceTemplate, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(WorkspaceTemplate, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -114,8 +97,7 @@ def archive_workspace_template_with_http_info(self, namespace, uid, **kwargs): 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -173,36 +155,29 @@ def archive_workspace_template_with_http_info(self, namespace, uid, **kwargs): _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def create_workspace_template(self, namespace, body, **kwargs): # noqa: E501 """create_workspace_template # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_workspace_template(namespace, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param body: (required) - :type body: WorkspaceTemplate - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param WorkspaceTemplate body: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: WorkspaceTemplate If the method is called asynchronously, returns the request thread. - :rtype: WorkspaceTemplate """ kwargs['_return_http_data_only'] = True return self.create_workspace_template_with_http_info(namespace, body, **kwargs) # noqa: E501 @@ -212,35 +187,24 @@ def create_workspace_template_with_http_info(self, namespace, body, **kwargs): This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_workspace_template_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param body: (required) - :type body: WorkspaceTemplate - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param WorkspaceTemplate body: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(WorkspaceTemplate, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(WorkspaceTemplate, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -254,8 +218,7 @@ def create_workspace_template_with_http_info(self, namespace, body, **kwargs): 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -317,38 +280,30 @@ def create_workspace_template_with_http_info(self, namespace, body, **kwargs): _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def generate_workspace_template_workflow_template(self, namespace, uid, body, **kwargs): # noqa: E501 """generate_workspace_template_workflow_template # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.generate_workspace_template_workflow_template(namespace, uid, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param body: (required) - :type body: WorkspaceTemplate - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param WorkspaceTemplate body: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: WorkflowTemplate If the method is called asynchronously, returns the request thread. - :rtype: WorkflowTemplate """ kwargs['_return_http_data_only'] = True return self.generate_workspace_template_workflow_template_with_http_info(namespace, uid, body, **kwargs) # noqa: E501 @@ -358,37 +313,25 @@ def generate_workspace_template_workflow_template_with_http_info(self, namespace This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.generate_workspace_template_workflow_template_with_http_info(namespace, uid, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param body: (required) - :type body: WorkspaceTemplate - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param WorkspaceTemplate body: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(WorkflowTemplate, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(WorkflowTemplate, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -403,8 +346,7 @@ def generate_workspace_template_workflow_template_with_http_info(self, namespace 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -472,38 +414,30 @@ def generate_workspace_template_workflow_template_with_http_info(self, namespace _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def get_workspace_template(self, namespace, uid, **kwargs): # noqa: E501 """get_workspace_template # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_workspace_template(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param version: - :type version: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param str version: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: WorkspaceTemplate If the method is called asynchronously, returns the request thread. - :rtype: WorkspaceTemplate """ kwargs['_return_http_data_only'] = True return self.get_workspace_template_with_http_info(namespace, uid, **kwargs) # noqa: E501 @@ -513,37 +447,25 @@ def get_workspace_template_with_http_info(self, namespace, uid, **kwargs): # no This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_workspace_template_with_http_info(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param version: - :type version: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param str version: :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(WorkspaceTemplate, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(WorkspaceTemplate, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -558,8 +480,7 @@ def get_workspace_template_with_http_info(self, namespace, uid, **kwargs): # no 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -619,36 +540,29 @@ def get_workspace_template_with_http_info(self, namespace, uid, **kwargs): # no _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def list_workspace_template_versions(self, namespace, uid, **kwargs): # noqa: E501 """list_workspace_template_versions # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_workspace_template_versions(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: ListWorkspaceTemplateVersionsResponse If the method is called asynchronously, returns the request thread. - :rtype: ListWorkspaceTemplateVersionsResponse """ kwargs['_return_http_data_only'] = True return self.list_workspace_template_versions_with_http_info(namespace, uid, **kwargs) # noqa: E501 @@ -658,35 +572,24 @@ def list_workspace_template_versions_with_http_info(self, namespace, uid, **kwar This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_workspace_template_versions_with_http_info(namespace, uid, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(ListWorkspaceTemplateVersionsResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(ListWorkspaceTemplateVersionsResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -700,8 +603,7 @@ def list_workspace_template_versions_with_http_info(self, namespace, uid, **kwar 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -759,38 +661,33 @@ def list_workspace_template_versions_with_http_info(self, namespace, uid, **kwar _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def list_workspace_templates(self, namespace, **kwargs): # noqa: E501 """list_workspace_templates # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_workspace_templates(namespace, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param page_size: - :type page_size: int - :param page: - :type page: int - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param int page_size: + :param int page: + :param str order: + :param str labels: + :param str uid: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: ListWorkspaceTemplatesResponse If the method is called asynchronously, returns the request thread. - :rtype: ListWorkspaceTemplatesResponse """ kwargs['_return_http_data_only'] = True return self.list_workspace_templates_with_http_info(namespace, **kwargs) # noqa: E501 @@ -800,37 +697,28 @@ def list_workspace_templates_with_http_info(self, namespace, **kwargs): # noqa: This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_workspace_templates_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param page_size: - :type page_size: int - :param page: - :type page: int - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param int page_size: + :param int page: + :param str order: + :param str labels: + :param str uid: :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(ListWorkspaceTemplatesResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(ListWorkspaceTemplatesResponse, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -838,15 +726,17 @@ def list_workspace_templates_with_http_info(self, namespace, **kwargs): # noqa: all_params = [ 'namespace', 'page_size', - 'page' + 'page', + 'order', + 'labels', + 'uid' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -874,6 +764,12 @@ def list_workspace_templates_with_http_info(self, namespace, **kwargs): # noqa: query_params.append(('pageSize', local_var_params['page_size'])) # noqa: E501 if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'order' in local_var_params and local_var_params['order'] is not None: # noqa: E501 + query_params.append(('order', local_var_params['order'])) # noqa: E501 + if 'labels' in local_var_params and local_var_params['labels'] is not None: # noqa: E501 + query_params.append(('labels', local_var_params['labels'])) # noqa: E501 + if 'uid' in local_var_params and local_var_params['uid'] is not None: # noqa: E501 + query_params.append(('uid', local_var_params['uid'])) # noqa: E501 header_params = {} @@ -902,38 +798,30 @@ def list_workspace_templates_with_http_info(self, namespace, **kwargs): # noqa: _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) def update_workspace_template(self, namespace, uid, body, **kwargs): # noqa: E501 """update_workspace_template # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_workspace_template(namespace, uid, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param body: (required) - :type body: WorkspaceTemplate - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param WorkspaceTemplate body: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Returns the result object. + :return: WorkspaceTemplate If the method is called asynchronously, returns the request thread. - :rtype: WorkspaceTemplate """ kwargs['_return_http_data_only'] = True return self.update_workspace_template_with_http_info(namespace, uid, body, **kwargs) # noqa: E501 @@ -943,37 +831,25 @@ def update_workspace_template_with_http_info(self, namespace, uid, body, **kwarg This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_workspace_template_with_http_info(namespace, uid, body, async_req=True) >>> result = thread.get() - :param namespace: (required) - :type namespace: str - :param uid: (required) - :type uid: str - :param body: (required) - :type body: WorkspaceTemplate - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional + :param async_req bool: execute request asynchronously + :param str namespace: (required) + :param str uid: (required) + :param WorkspaceTemplate body: (required) :param _return_http_data_only: response data without head status code and headers - :type _return_http_data_only: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. - :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :return: Returns the result object. + :return: tuple(WorkspaceTemplate, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. - :rtype: tuple(WorkspaceTemplate, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -988,8 +864,7 @@ def update_workspace_template_with_http_info(self, namespace, uid, body, **kwarg 'async_req', '_return_http_data_only', '_preload_content', - '_request_timeout', - '_request_auth' + '_request_timeout' ] ) @@ -1057,5 +932,4 @@ def update_workspace_template_with_http_info(self, namespace, uid, body, **kwarg _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - _request_auth=local_var_params.get('_request_auth')) + collection_formats=collection_formats) diff --git a/onepanel/core/api/api_client.py b/onepanel/core/api/api_client.py index d3441ca..38ce855 100644 --- a/onepanel/core/api/api_client.py +++ b/onepanel/core/api/api_client.py @@ -4,7 +4,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -78,7 +78,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/0.12.0/python' + self.user_agent = 'OpenAPI-Generator/v0.13.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): @@ -122,8 +122,7 @@ def __call_api( query_params=None, header_params=None, body=None, post_params=None, files=None, response_type=None, auth_settings=None, _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None, _host=None, - _request_auth=None): + _preload_content=True, _request_timeout=None, _host=None): config = self.configuration @@ -164,9 +163,7 @@ def __call_api( post_params.extend(self.files_parameters(files)) # auth setting - self.update_params_for_auth( - header_params, query_params, auth_settings, - request_auth=_request_auth) + self.update_params_for_auth(header_params, query_params, auth_settings) # body if body: @@ -326,8 +323,7 @@ def call_api(self, resource_path, method, body=None, post_params=None, files=None, response_type=None, auth_settings=None, async_req=None, _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None, _host=None, - _request_auth=None): + _preload_content=True, _request_timeout=None, _host=None): """Makes the HTTP request (synchronous) and returns deserialized data. To make an async_req request, set the async_req parameter. @@ -357,10 +353,6 @@ def call_api(self, resource_path, method, number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_token: dict, optional :return: If async_req parameter is True, the request will be called asynchronously. @@ -374,8 +366,7 @@ def call_api(self, resource_path, method, body, post_params, files, response_type, auth_settings, _return_http_data_only, collection_formats, - _preload_content, _request_timeout, _host, - _request_auth) + _preload_content, _request_timeout, _host) return self.pool.apply_async(self.__call_api, (resource_path, method, path_params, @@ -388,7 +379,7 @@ def call_api(self, resource_path, method, collection_formats, _preload_content, _request_timeout, - _host, _request_auth)) + _host)) def request(self, method, url, query_params=None, headers=None, post_params=None, body=None, _preload_content=True, @@ -535,45 +526,29 @@ def select_header_content_type(self, content_types): else: return content_types[0] - def update_params_for_auth(self, headers, querys, auth_settings, - request_auth=None): + def update_params_for_auth(self, headers, querys, auth_settings): """Updates header and query params based on authentication setting. :param headers: Header parameters dict to be updated. :param querys: Query parameters tuple list to be updated. :param auth_settings: Authentication setting identifiers list. - :param request_auth: if set, the provided settings will - override the token in the configuration. """ if not auth_settings: return - if request_auth: - self._apply_auth_params(headers, querys, request_auth) - return - for auth in auth_settings: auth_setting = self.configuration.auth_settings().get(auth) if auth_setting: - self._apply_auth_params(headers, querys, auth_setting) - - def _apply_auth_params(self, headers, querys, auth_setting): - """Updates the request parameters based on a single auth_setting - - :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. - :param auth_setting: auth settings for the endpoint - """ - if auth_setting['in'] == 'cookie': - headers['Cookie'] = auth_setting['value'] - elif auth_setting['in'] == 'header': - headers[auth_setting['key']] = auth_setting['value'] - elif auth_setting['in'] == 'query': - querys.append((auth_setting['key'], auth_setting['value'])) - else: - raise ApiValueError( - 'Authentication token must be in `query` or `header`' - ) + if auth_setting['in'] == 'cookie': + headers['Cookie'] = auth_setting['value'] + elif auth_setting['in'] == 'header': + headers[auth_setting['key']] = auth_setting['value'] + elif auth_setting['in'] == 'query': + querys.append((auth_setting['key'], auth_setting['value'])) + else: + raise ApiValueError( + 'Authentication token must be in `query` or `header`' + ) def __deserialize_file(self, response): """Deserializes body to file diff --git a/onepanel/core/api/configuration.py b/onepanel/core/api/configuration.py index 0d9d7cd..94bfe95 100644 --- a/onepanel/core/api/configuration.py +++ b/onepanel/core/api/configuration.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -20,15 +20,8 @@ import six from six.moves import http_client as httplib -from onepanel.core.api.exceptions import ApiValueError -JSON_SCHEMA_VALIDATION_KEYWORDS = { - 'multipleOf', 'maximum', 'exclusiveMaximum', - 'minimum', 'exclusiveMinimum', 'maxLength', - 'minLength', 'pattern', 'maxItems', 'minItems' -} - class Configuration(object): """NOTE: This class is auto generated by OpenAPI Generator @@ -56,28 +49,6 @@ class Configuration(object): then all undeclared properties received by the server are injected into the additional properties map. In that case, there are undeclared properties, and nothing to discard. - :param disabled_client_side_validations (string): Comma-separated list of - JSON schema validation keywords to disable JSON schema structural validation - rules. The following keywords may be specified: multipleOf, maximum, - exclusiveMaximum, minimum, exclusiveMinimum, maxLength, minLength, pattern, - maxItems, minItems. - By default, the validation is performed for data generated locally by the client - and data received from the server, independent of any validation performed by - the server side. If the input data does not satisfy the JSON schema validation - rules specified in the OpenAPI document, an exception is raised. - If disabled_client_side_validations is set, structural validation is - disabled. This can be useful to troubleshoot data validation problem, such as - when the OpenAPI document validation rules do not match the actual API data - received by the server. - :param server_index: Index to servers configuration. - :param server_variables: Mapping with string values to replace variables in - templated server configuration. The validation of enums is performed for - variables with defined enum values before. - :param server_operation_index: Mapping from operation ID to an index to server - configuration. - :param server_operation_variables: Mapping from operation ID to a mapping with - string values to replace variables in templated server configuration. - The validation of enums is performed for variables with defined enum values before. :Example: @@ -103,27 +74,16 @@ class Configuration(object): _default = None - def __init__(self, host=None, + def __init__(self, host="http://localhost:8888", api_key=None, api_key_prefix=None, username=None, password=None, discard_unknown_keys=False, - disabled_client_side_validations="", - server_index=None, server_variables=None, - server_operation_index=None, server_operation_variables=None, ): """Constructor """ - self._base_path = "http://localhost:8888" if host is None else host + self.host = host """Default Base url """ - self.server_index = 0 if server_index is None and host is None else server_index - self.server_operation_index = server_operation_index or {} - """Default server index - """ - self.server_variables = server_variables or {} - self.server_operation_variables = server_operation_variables or {} - """Default server variables - """ self.temp_folder_path = None """Temp file folder for downloading files """ @@ -148,7 +108,6 @@ def __init__(self, host=None, """Password for HTTP basic authentication """ self.discard_unknown_keys = discard_unknown_keys - self.disabled_client_side_validations = disabled_client_side_validations self.logger = {} """Logging Settings """ @@ -208,7 +167,7 @@ def __init__(self, host=None, self.retries = None """Adding retries to override urllib3 default value 3 """ - # Enable client side validation + # Disable client side validation self.client_side_validation = True def __deepcopy__(self, memo): @@ -227,13 +186,6 @@ def __deepcopy__(self, memo): def __setattr__(self, name, value): object.__setattr__(self, name, value) - if name == 'disabled_client_side_validations': - s = set(filter(None, value.split(','))) - for v in s: - if v not in JSON_SCHEMA_VALIDATION_KEYWORDS: - raise ApiValueError( - "Invalid keyword: '{0}''".format(v)) - self._disabled_client_side_validations = s @classmethod def set_default(cls, default): @@ -345,16 +297,15 @@ def logger_format(self, value): self.__logger_format = value self.logger_formatter = logging.Formatter(self.__logger_format) - def get_api_key_with_prefix(self, identifier, alias=None): + def get_api_key_with_prefix(self, identifier): """Gets API key (with prefix if set). :param identifier: The identifier of apiKey. - :param alias: The alternative identifier of apiKey. :return: The token for api key authentication. """ if self.refresh_api_key_hook is not None: self.refresh_api_key_hook(self) - key = self.api_key.get(identifier, self.api_key.get(alias) if alias is not None else None) + key = self.api_key.get(identifier) if key: prefix = self.api_key_prefix.get(identifier) if prefix: @@ -383,14 +334,12 @@ def auth_settings(self): :return: The Auth Settings information dict. """ auth = {} - if 'Bearer' in self.api_key: + if 'authorization' in self.api_key: auth['Bearer'] = { 'type': 'api_key', 'in': 'header', 'key': 'authorization', - 'value': self.get_api_key_with_prefix( - 'Bearer', - ), + 'value': self.get_api_key_with_prefix('authorization') } return auth @@ -402,8 +351,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: v0.12.0\n"\ - "SDK Package Version: 0.12.0".\ + "Version of the API: 0.13.0\n"\ + "SDK Package Version: v0.13.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): @@ -422,18 +371,14 @@ def get_host_settings(self): } ] - def get_host_from_settings(self, index, variables=None, servers=None): + def get_host_from_settings(self, index, variables=None): """Gets host URL based on the index and variables :param index: array index of the host settings :param variables: hash of variable and the corresponding value - :param servers: an array of host settings or None :return: URL based on host settings """ - if index is None: - return self._base_path - variables = {} if variables is None else variables - servers = self.get_host_settings() if servers is None else servers + servers = self.get_host_settings() try: server = servers[index] @@ -445,7 +390,7 @@ def get_host_from_settings(self, index, variables=None, servers=None): url = server['url'] # go through variables and replace placeholders - for variable_name, variable in server.get('variables', {}).items(): + for variable_name, variable in server['variables'].items(): used_value = variables.get( variable_name, variable['default_value']) @@ -460,14 +405,3 @@ def get_host_from_settings(self, index, variables=None, servers=None): url = url.replace("{" + variable_name + "}", used_value) return url - - @property - def host(self): - """Return generated host.""" - return self.get_host_from_settings(self.server_index, variables=self.server_variables) - - @host.setter - def host(self, value): - """Fix base path.""" - self._base_path = value - self.server_index = None diff --git a/onepanel/core/api/exceptions.py b/onepanel/core/api/exceptions.py index 3509299..3e55d9d 100644 --- a/onepanel/core/api/exceptions.py +++ b/onepanel/core/api/exceptions.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -64,25 +64,6 @@ def __init__(self, msg, path_to_item=None): super(ApiValueError, self).__init__(full_msg) -class ApiAttributeError(OpenApiException, AttributeError): - def __init__(self, msg, path_to_item=None): - """ - Raised when an attribute reference or assignment fails. - - Args: - msg (str): the exception message - - Keyword Args: - path_to_item (None/list) the path to the exception in the - received_data dict - """ - self.path_to_item = path_to_item - full_msg = msg - if path_to_item: - full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) - super(ApiAttributeError, self).__init__(full_msg) - - class ApiKeyError(OpenApiException, KeyError): def __init__(self, msg, path_to_item=None): """ diff --git a/onepanel/core/api/models/__init__.py b/onepanel/core/api/models/__init__.py index 815b8f0..52e5b03 100644 --- a/onepanel/core/api/models/__init__.py +++ b/onepanel/core/api/models/__init__.py @@ -6,7 +6,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -27,6 +27,8 @@ from onepanel.core.api.models.get_config_response import GetConfigResponse from onepanel.core.api.models.get_labels_response import GetLabelsResponse from onepanel.core.api.models.get_workflow_execution_metrics_response import GetWorkflowExecutionMetricsResponse +from onepanel.core.api.models.get_workflow_execution_statistics_for_namespace_response import GetWorkflowExecutionStatisticsForNamespaceResponse +from onepanel.core.api.models.get_workspace_statistics_for_namespace_response import GetWorkspaceStatisticsForNamespaceResponse from onepanel.core.api.models.google_protobuf_any import GoogleProtobufAny from onepanel.core.api.models.grpc_gateway_runtime_error import GrpcGatewayRuntimeError from onepanel.core.api.models.grpc_gateway_runtime_stream_error import GrpcGatewayRuntimeStreamError @@ -68,5 +70,6 @@ from onepanel.core.api.models.workflow_execution_status import WorkflowExecutionStatus from onepanel.core.api.models.workflow_template import WorkflowTemplate from onepanel.core.api.models.workspace import Workspace +from onepanel.core.api.models.workspace_statistic_report import WorkspaceStatisticReport from onepanel.core.api.models.workspace_status import WorkspaceStatus from onepanel.core.api.models.workspace_template import WorkspaceTemplate diff --git a/onepanel/core/api/models/add_secret_key_value_response.py b/onepanel/core/api/models/add_secret_key_value_response.py index 3fbc076..d8733f6 100644 --- a/onepanel/core/api/models/add_secret_key_value_response.py +++ b/onepanel/core/api/models/add_secret_key_value_response.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -68,7 +68,7 @@ def inserted(self, inserted): :param inserted: The inserted of this AddSecretKeyValueResponse. # noqa: E501 - :type inserted: bool + :type: bool """ self._inserted = inserted diff --git a/onepanel/core/api/models/archive_workflow_template_response.py b/onepanel/core/api/models/archive_workflow_template_response.py index 03db312..1e19986 100644 --- a/onepanel/core/api/models/archive_workflow_template_response.py +++ b/onepanel/core/api/models/archive_workflow_template_response.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -68,7 +68,7 @@ def workflow_template(self, workflow_template): :param workflow_template: The workflow_template of this ArchiveWorkflowTemplateResponse. # noqa: E501 - :type workflow_template: WorkflowTemplate + :type: WorkflowTemplate """ self._workflow_template = workflow_template diff --git a/onepanel/core/api/models/artifact_response.py b/onepanel/core/api/models/artifact_response.py index f4019b4..0901ffb 100644 --- a/onepanel/core/api/models/artifact_response.py +++ b/onepanel/core/api/models/artifact_response.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -68,7 +68,7 @@ def data(self, data): :param data: The data of this ArtifactResponse. # noqa: E501 - :type data: str + :type: str """ if (self.local_vars_configuration.client_side_validation and data is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', data)): # noqa: E501 diff --git a/onepanel/core/api/models/create_workflow_execution_body.py b/onepanel/core/api/models/create_workflow_execution_body.py index 834a9fd..ad0b5de 100644 --- a/onepanel/core/api/models/create_workflow_execution_body.py +++ b/onepanel/core/api/models/create_workflow_execution_body.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -83,7 +83,7 @@ def workflow_template_uid(self, workflow_template_uid): :param workflow_template_uid: The workflow_template_uid of this CreateWorkflowExecutionBody. # noqa: E501 - :type workflow_template_uid: str + :type: str """ self._workflow_template_uid = workflow_template_uid @@ -104,7 +104,7 @@ def workflow_template_version(self, workflow_template_version): :param workflow_template_version: The workflow_template_version of this CreateWorkflowExecutionBody. # noqa: E501 - :type workflow_template_version: str + :type: str """ self._workflow_template_version = workflow_template_version @@ -125,7 +125,7 @@ def parameters(self, parameters): :param parameters: The parameters of this CreateWorkflowExecutionBody. # noqa: E501 - :type parameters: list[Parameter] + :type: list[Parameter] """ self._parameters = parameters @@ -146,7 +146,7 @@ def labels(self, labels): :param labels: The labels of this CreateWorkflowExecutionBody. # noqa: E501 - :type labels: list[KeyValue] + :type: list[KeyValue] """ self._labels = labels diff --git a/onepanel/core/api/models/create_workspace_body.py b/onepanel/core/api/models/create_workspace_body.py index 30a093e..ea119ce 100644 --- a/onepanel/core/api/models/create_workspace_body.py +++ b/onepanel/core/api/models/create_workspace_body.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -83,7 +83,7 @@ def workspace_template_uid(self, workspace_template_uid): :param workspace_template_uid: The workspace_template_uid of this CreateWorkspaceBody. # noqa: E501 - :type workspace_template_uid: str + :type: str """ self._workspace_template_uid = workspace_template_uid @@ -104,7 +104,7 @@ def workspace_template_version(self, workspace_template_version): :param workspace_template_version: The workspace_template_version of this CreateWorkspaceBody. # noqa: E501 - :type workspace_template_version: str + :type: str """ self._workspace_template_version = workspace_template_version @@ -125,7 +125,7 @@ def parameters(self, parameters): :param parameters: The parameters of this CreateWorkspaceBody. # noqa: E501 - :type parameters: list[Parameter] + :type: list[Parameter] """ self._parameters = parameters @@ -146,7 +146,7 @@ def labels(self, labels): :param labels: The labels of this CreateWorkspaceBody. # noqa: E501 - :type labels: list[KeyValue] + :type: list[KeyValue] """ self._labels = labels diff --git a/onepanel/core/api/models/cron_workflow.py b/onepanel/core/api/models/cron_workflow.py index 0c93bbc..2e76dd6 100644 --- a/onepanel/core/api/models/cron_workflow.py +++ b/onepanel/core/api/models/cron_workflow.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -93,7 +93,7 @@ def name(self, name): :param name: The name of this CronWorkflow. # noqa: E501 - :type name: str + :type: str """ self._name = name @@ -114,7 +114,7 @@ def uid(self, uid): :param uid: The uid of this CronWorkflow. # noqa: E501 - :type uid: str + :type: str """ self._uid = uid @@ -135,7 +135,7 @@ def manifest(self, manifest): :param manifest: The manifest of this CronWorkflow. # noqa: E501 - :type manifest: str + :type: str """ self._manifest = manifest @@ -156,7 +156,7 @@ def workflow_execution(self, workflow_execution): :param workflow_execution: The workflow_execution of this CronWorkflow. # noqa: E501 - :type workflow_execution: WorkflowExecution + :type: WorkflowExecution """ self._workflow_execution = workflow_execution @@ -177,7 +177,7 @@ def labels(self, labels): :param labels: The labels of this CronWorkflow. # noqa: E501 - :type labels: list[KeyValue] + :type: list[KeyValue] """ self._labels = labels @@ -198,7 +198,7 @@ def namespace(self, namespace): :param namespace: The namespace of this CronWorkflow. # noqa: E501 - :type namespace: str + :type: str """ self._namespace = namespace diff --git a/onepanel/core/api/models/cron_workflow_statistics_report.py b/onepanel/core/api/models/cron_workflow_statistics_report.py index 4708f4b..07b601e 100644 --- a/onepanel/core/api/models/cron_workflow_statistics_report.py +++ b/onepanel/core/api/models/cron_workflow_statistics_report.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -68,7 +68,7 @@ def total(self, total): :param total: The total of this CronWorkflowStatisticsReport. # noqa: E501 - :type total: int + :type: int """ self._total = total diff --git a/onepanel/core/api/models/delete_secret_key_response.py b/onepanel/core/api/models/delete_secret_key_response.py index daab3c6..29b7ba0 100644 --- a/onepanel/core/api/models/delete_secret_key_response.py +++ b/onepanel/core/api/models/delete_secret_key_response.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -68,7 +68,7 @@ def deleted(self, deleted): :param deleted: The deleted of this DeleteSecretKeyResponse. # noqa: E501 - :type deleted: bool + :type: bool """ self._deleted = deleted diff --git a/onepanel/core/api/models/delete_secret_response.py b/onepanel/core/api/models/delete_secret_response.py index b16399b..c8f7b8c 100644 --- a/onepanel/core/api/models/delete_secret_response.py +++ b/onepanel/core/api/models/delete_secret_response.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -68,7 +68,7 @@ def deleted(self, deleted): :param deleted: The deleted of this DeleteSecretResponse. # noqa: E501 - :type deleted: bool + :type: bool """ self._deleted = deleted diff --git a/onepanel/core/api/models/file.py b/onepanel/core/api/models/file.py index 3926f9c..7dec20c 100644 --- a/onepanel/core/api/models/file.py +++ b/onepanel/core/api/models/file.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -98,7 +98,7 @@ def path(self, path): :param path: The path of this File. # noqa: E501 - :type path: str + :type: str """ self._path = path @@ -119,7 +119,7 @@ def name(self, name): :param name: The name of this File. # noqa: E501 - :type name: str + :type: str """ self._name = name @@ -140,7 +140,7 @@ def extension(self, extension): :param extension: The extension of this File. # noqa: E501 - :type extension: str + :type: str """ self._extension = extension @@ -161,7 +161,7 @@ def size(self, size): :param size: The size of this File. # noqa: E501 - :type size: str + :type: str """ self._size = size @@ -182,7 +182,7 @@ def content_type(self, content_type): :param content_type: The content_type of this File. # noqa: E501 - :type content_type: str + :type: str """ self._content_type = content_type @@ -203,7 +203,7 @@ def last_modified(self, last_modified): :param last_modified: The last_modified of this File. # noqa: E501 - :type last_modified: str + :type: str """ self._last_modified = last_modified @@ -224,7 +224,7 @@ def directory(self, directory): :param directory: The directory of this File. # noqa: E501 - :type directory: bool + :type: bool """ self._directory = directory diff --git a/onepanel/core/api/models/get_config_response.py b/onepanel/core/api/models/get_config_response.py index 7a20d6f..212efff 100644 --- a/onepanel/core/api/models/get_config_response.py +++ b/onepanel/core/api/models/get_config_response.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -83,7 +83,7 @@ def api_url(self, api_url): :param api_url: The api_url of this GetConfigResponse. # noqa: E501 - :type api_url: str + :type: str """ self._api_url = api_url @@ -104,7 +104,7 @@ def domain(self, domain): :param domain: The domain of this GetConfigResponse. # noqa: E501 - :type domain: str + :type: str """ self._domain = domain @@ -125,7 +125,7 @@ def fqdn(self, fqdn): :param fqdn: The fqdn of this GetConfigResponse. # noqa: E501 - :type fqdn: str + :type: str """ self._fqdn = fqdn @@ -146,7 +146,7 @@ def node_pool(self, node_pool): :param node_pool: The node_pool of this GetConfigResponse. # noqa: E501 - :type node_pool: NodePool + :type: NodePool """ self._node_pool = node_pool diff --git a/onepanel/core/api/models/get_labels_response.py b/onepanel/core/api/models/get_labels_response.py index f16a302..1987c1c 100644 --- a/onepanel/core/api/models/get_labels_response.py +++ b/onepanel/core/api/models/get_labels_response.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -68,7 +68,7 @@ def labels(self, labels): :param labels: The labels of this GetLabelsResponse. # noqa: E501 - :type labels: list[KeyValue] + :type: list[KeyValue] """ self._labels = labels diff --git a/onepanel/core/api/models/get_workflow_execution_metrics_response.py b/onepanel/core/api/models/get_workflow_execution_metrics_response.py index 799e809..149b85e 100644 --- a/onepanel/core/api/models/get_workflow_execution_metrics_response.py +++ b/onepanel/core/api/models/get_workflow_execution_metrics_response.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -68,7 +68,7 @@ def metrics(self, metrics): :param metrics: The metrics of this GetWorkflowExecutionMetricsResponse. # noqa: E501 - :type metrics: list[Metric] + :type: list[Metric] """ self._metrics = metrics diff --git a/onepanel/core/api/models/get_workflow_execution_statistics_for_namespace_response.py b/onepanel/core/api/models/get_workflow_execution_statistics_for_namespace_response.py new file mode 100644 index 0000000..c312a18 --- /dev/null +++ b/onepanel/core/api/models/get_workflow_execution_statistics_for_namespace_response.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + Onepanel + + Onepanel API # noqa: E501 + + The version of the OpenAPI document: 0.13.0 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from onepanel.core.api.configuration import Configuration + + +class GetWorkflowExecutionStatisticsForNamespaceResponse(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'stats': 'WorkflowExecutionStatisticReport' + } + + attribute_map = { + 'stats': 'stats' + } + + def __init__(self, stats=None, local_vars_configuration=None): # noqa: E501 + """GetWorkflowExecutionStatisticsForNamespaceResponse - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._stats = None + self.discriminator = None + + if stats is not None: + self.stats = stats + + @property + def stats(self): + """Gets the stats of this GetWorkflowExecutionStatisticsForNamespaceResponse. # noqa: E501 + + + :return: The stats of this GetWorkflowExecutionStatisticsForNamespaceResponse. # noqa: E501 + :rtype: WorkflowExecutionStatisticReport + """ + return self._stats + + @stats.setter + def stats(self, stats): + """Sets the stats of this GetWorkflowExecutionStatisticsForNamespaceResponse. + + + :param stats: The stats of this GetWorkflowExecutionStatisticsForNamespaceResponse. # noqa: E501 + :type: WorkflowExecutionStatisticReport + """ + + self._stats = stats + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetWorkflowExecutionStatisticsForNamespaceResponse): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, GetWorkflowExecutionStatisticsForNamespaceResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/onepanel/core/api/models/get_workspace_statistics_for_namespace_response.py b/onepanel/core/api/models/get_workspace_statistics_for_namespace_response.py new file mode 100644 index 0000000..d0fcde0 --- /dev/null +++ b/onepanel/core/api/models/get_workspace_statistics_for_namespace_response.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + Onepanel + + Onepanel API # noqa: E501 + + The version of the OpenAPI document: 0.13.0 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from onepanel.core.api.configuration import Configuration + + +class GetWorkspaceStatisticsForNamespaceResponse(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'stats': 'WorkspaceStatisticReport' + } + + attribute_map = { + 'stats': 'stats' + } + + def __init__(self, stats=None, local_vars_configuration=None): # noqa: E501 + """GetWorkspaceStatisticsForNamespaceResponse - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._stats = None + self.discriminator = None + + if stats is not None: + self.stats = stats + + @property + def stats(self): + """Gets the stats of this GetWorkspaceStatisticsForNamespaceResponse. # noqa: E501 + + + :return: The stats of this GetWorkspaceStatisticsForNamespaceResponse. # noqa: E501 + :rtype: WorkspaceStatisticReport + """ + return self._stats + + @stats.setter + def stats(self, stats): + """Sets the stats of this GetWorkspaceStatisticsForNamespaceResponse. + + + :param stats: The stats of this GetWorkspaceStatisticsForNamespaceResponse. # noqa: E501 + :type: WorkspaceStatisticReport + """ + + self._stats = stats + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetWorkspaceStatisticsForNamespaceResponse): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, GetWorkspaceStatisticsForNamespaceResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/onepanel/core/api/models/google_protobuf_any.py b/onepanel/core/api/models/google_protobuf_any.py index 04f0cbf..8897553 100644 --- a/onepanel/core/api/models/google_protobuf_any.py +++ b/onepanel/core/api/models/google_protobuf_any.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -75,7 +75,7 @@ def type_url(self, type_url): A URL/resource name that uniquely identifies the type of the serialized protocol buffer message. This string must contain at least one \"/\" character. The last segment of the URL's path must represent the fully qualified name of the type (as in `path/google.protobuf.Duration`). The name should be in a canonical form (e.g., leading \".\" is not accepted). In practice, teams usually precompile into the binary all types that they expect it to use in the context of Any. However, for URLs which use the scheme `http`, `https`, or no scheme, one can optionally set up a type server that maps type URLs to message definitions as follows: * If no scheme is provided, `https` is assumed. * An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error. * Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.) Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be used with implementation specific semantics. # noqa: E501 :param type_url: The type_url of this GoogleProtobufAny. # noqa: E501 - :type type_url: str + :type: str """ self._type_url = type_url @@ -98,7 +98,7 @@ def value(self, value): Must be a valid serialized protocol buffer of the above specified type. # noqa: E501 :param value: The value of this GoogleProtobufAny. # noqa: E501 - :type value: str + :type: str """ if (self.local_vars_configuration.client_side_validation and value is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', value)): # noqa: E501 diff --git a/onepanel/core/api/models/grpc_gateway_runtime_error.py b/onepanel/core/api/models/grpc_gateway_runtime_error.py index 919667c..1ef024b 100644 --- a/onepanel/core/api/models/grpc_gateway_runtime_error.py +++ b/onepanel/core/api/models/grpc_gateway_runtime_error.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -83,7 +83,7 @@ def error(self, error): :param error: The error of this GrpcGatewayRuntimeError. # noqa: E501 - :type error: str + :type: str """ self._error = error @@ -104,7 +104,7 @@ def code(self, code): :param code: The code of this GrpcGatewayRuntimeError. # noqa: E501 - :type code: int + :type: int """ self._code = code @@ -125,7 +125,7 @@ def message(self, message): :param message: The message of this GrpcGatewayRuntimeError. # noqa: E501 - :type message: str + :type: str """ self._message = message @@ -146,7 +146,7 @@ def details(self, details): :param details: The details of this GrpcGatewayRuntimeError. # noqa: E501 - :type details: list[GoogleProtobufAny] + :type: list[GoogleProtobufAny] """ self._details = details diff --git a/onepanel/core/api/models/grpc_gateway_runtime_stream_error.py b/onepanel/core/api/models/grpc_gateway_runtime_stream_error.py index 1fa5622..56a85f6 100644 --- a/onepanel/core/api/models/grpc_gateway_runtime_stream_error.py +++ b/onepanel/core/api/models/grpc_gateway_runtime_stream_error.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -88,7 +88,7 @@ def grpc_code(self, grpc_code): :param grpc_code: The grpc_code of this GrpcGatewayRuntimeStreamError. # noqa: E501 - :type grpc_code: int + :type: int """ self._grpc_code = grpc_code @@ -109,7 +109,7 @@ def http_code(self, http_code): :param http_code: The http_code of this GrpcGatewayRuntimeStreamError. # noqa: E501 - :type http_code: int + :type: int """ self._http_code = http_code @@ -130,7 +130,7 @@ def message(self, message): :param message: The message of this GrpcGatewayRuntimeStreamError. # noqa: E501 - :type message: str + :type: str """ self._message = message @@ -151,7 +151,7 @@ def http_status(self, http_status): :param http_status: The http_status of this GrpcGatewayRuntimeStreamError. # noqa: E501 - :type http_status: str + :type: str """ self._http_status = http_status @@ -172,7 +172,7 @@ def details(self, details): :param details: The details of this GrpcGatewayRuntimeStreamError. # noqa: E501 - :type details: list[GoogleProtobufAny] + :type: list[GoogleProtobufAny] """ self._details = details diff --git a/onepanel/core/api/models/is_authorized.py b/onepanel/core/api/models/is_authorized.py index c548287..73d9720 100644 --- a/onepanel/core/api/models/is_authorized.py +++ b/onepanel/core/api/models/is_authorized.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -88,7 +88,7 @@ def namespace(self, namespace): :param namespace: The namespace of this IsAuthorized. # noqa: E501 - :type namespace: str + :type: str """ self._namespace = namespace @@ -109,7 +109,7 @@ def verb(self, verb): :param verb: The verb of this IsAuthorized. # noqa: E501 - :type verb: str + :type: str """ self._verb = verb @@ -130,7 +130,7 @@ def group(self, group): :param group: The group of this IsAuthorized. # noqa: E501 - :type group: str + :type: str """ self._group = group @@ -151,7 +151,7 @@ def resource(self, resource): :param resource: The resource of this IsAuthorized. # noqa: E501 - :type resource: str + :type: str """ self._resource = resource @@ -172,7 +172,7 @@ def resource_name(self, resource_name): :param resource_name: The resource_name of this IsAuthorized. # noqa: E501 - :type resource_name: str + :type: str """ self._resource_name = resource_name diff --git a/onepanel/core/api/models/is_authorized_response.py b/onepanel/core/api/models/is_authorized_response.py index c895434..af3f469 100644 --- a/onepanel/core/api/models/is_authorized_response.py +++ b/onepanel/core/api/models/is_authorized_response.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -68,7 +68,7 @@ def authorized(self, authorized): :param authorized: The authorized of this IsAuthorizedResponse. # noqa: E501 - :type authorized: bool + :type: bool """ self._authorized = authorized diff --git a/onepanel/core/api/models/is_valid_token_response.py b/onepanel/core/api/models/is_valid_token_response.py index 1524d58..2dbc132 100644 --- a/onepanel/core/api/models/is_valid_token_response.py +++ b/onepanel/core/api/models/is_valid_token_response.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -68,7 +68,7 @@ def domain(self, domain): :param domain: The domain of this IsValidTokenResponse. # noqa: E501 - :type domain: str + :type: str """ self._domain = domain diff --git a/onepanel/core/api/models/key_value.py b/onepanel/core/api/models/key_value.py index 875c6e3..afbb98e 100644 --- a/onepanel/core/api/models/key_value.py +++ b/onepanel/core/api/models/key_value.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -73,7 +73,7 @@ def key(self, key): :param key: The key of this KeyValue. # noqa: E501 - :type key: str + :type: str """ self._key = key @@ -94,7 +94,7 @@ def value(self, value): :param value: The value of this KeyValue. # noqa: E501 - :type value: str + :type: str """ self._value = value diff --git a/onepanel/core/api/models/labels.py b/onepanel/core/api/models/labels.py index 2f52078..d3bfb66 100644 --- a/onepanel/core/api/models/labels.py +++ b/onepanel/core/api/models/labels.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -68,7 +68,7 @@ def items(self, items): :param items: The items of this Labels. # noqa: E501 - :type items: list[KeyValue] + :type: list[KeyValue] """ self._items = items diff --git a/onepanel/core/api/models/list_cron_workflows_response.py b/onepanel/core/api/models/list_cron_workflows_response.py index 5c3ff15..dd64328 100644 --- a/onepanel/core/api/models/list_cron_workflows_response.py +++ b/onepanel/core/api/models/list_cron_workflows_response.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -88,7 +88,7 @@ def count(self, count): :param count: The count of this ListCronWorkflowsResponse. # noqa: E501 - :type count: int + :type: int """ self._count = count @@ -109,7 +109,7 @@ def cron_workflows(self, cron_workflows): :param cron_workflows: The cron_workflows of this ListCronWorkflowsResponse. # noqa: E501 - :type cron_workflows: list[CronWorkflow] + :type: list[CronWorkflow] """ self._cron_workflows = cron_workflows @@ -130,7 +130,7 @@ def page(self, page): :param page: The page of this ListCronWorkflowsResponse. # noqa: E501 - :type page: int + :type: int """ self._page = page @@ -151,7 +151,7 @@ def pages(self, pages): :param pages: The pages of this ListCronWorkflowsResponse. # noqa: E501 - :type pages: int + :type: int """ self._pages = pages @@ -172,7 +172,7 @@ def total_count(self, total_count): :param total_count: The total_count of this ListCronWorkflowsResponse. # noqa: E501 - :type total_count: int + :type: int """ self._total_count = total_count diff --git a/onepanel/core/api/models/list_files_response.py b/onepanel/core/api/models/list_files_response.py index 1a4973f..47a2981 100644 --- a/onepanel/core/api/models/list_files_response.py +++ b/onepanel/core/api/models/list_files_response.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -73,7 +73,7 @@ def files(self, files): :param files: The files of this ListFilesResponse. # noqa: E501 - :type files: list[File] + :type: list[File] """ self._files = files @@ -94,7 +94,7 @@ def parent_path(self, parent_path): :param parent_path: The parent_path of this ListFilesResponse. # noqa: E501 - :type parent_path: str + :type: str """ self._parent_path = parent_path diff --git a/onepanel/core/api/models/list_namespaces_response.py b/onepanel/core/api/models/list_namespaces_response.py index 6e0ea34..173c83e 100644 --- a/onepanel/core/api/models/list_namespaces_response.py +++ b/onepanel/core/api/models/list_namespaces_response.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -88,7 +88,7 @@ def count(self, count): :param count: The count of this ListNamespacesResponse. # noqa: E501 - :type count: int + :type: int """ self._count = count @@ -109,7 +109,7 @@ def namespaces(self, namespaces): :param namespaces: The namespaces of this ListNamespacesResponse. # noqa: E501 - :type namespaces: list[Namespace] + :type: list[Namespace] """ self._namespaces = namespaces @@ -130,7 +130,7 @@ def page(self, page): :param page: The page of this ListNamespacesResponse. # noqa: E501 - :type page: int + :type: int """ self._page = page @@ -151,7 +151,7 @@ def pages(self, pages): :param pages: The pages of this ListNamespacesResponse. # noqa: E501 - :type pages: int + :type: int """ self._pages = pages @@ -172,7 +172,7 @@ def total_count(self, total_count): :param total_count: The total_count of this ListNamespacesResponse. # noqa: E501 - :type total_count: int + :type: int """ self._total_count = total_count diff --git a/onepanel/core/api/models/list_secrets_response.py b/onepanel/core/api/models/list_secrets_response.py index 8925a2a..cbbaefc 100644 --- a/onepanel/core/api/models/list_secrets_response.py +++ b/onepanel/core/api/models/list_secrets_response.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -73,7 +73,7 @@ def count(self, count): :param count: The count of this ListSecretsResponse. # noqa: E501 - :type count: int + :type: int """ self._count = count @@ -94,7 +94,7 @@ def secrets(self, secrets): :param secrets: The secrets of this ListSecretsResponse. # noqa: E501 - :type secrets: list[Secret] + :type: list[Secret] """ self._secrets = secrets diff --git a/onepanel/core/api/models/list_services_response.py b/onepanel/core/api/models/list_services_response.py index 1fa1b63..38d517a 100644 --- a/onepanel/core/api/models/list_services_response.py +++ b/onepanel/core/api/models/list_services_response.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -88,7 +88,7 @@ def count(self, count): :param count: The count of this ListServicesResponse. # noqa: E501 - :type count: int + :type: int """ self._count = count @@ -109,7 +109,7 @@ def services(self, services): :param services: The services of this ListServicesResponse. # noqa: E501 - :type services: list[Service] + :type: list[Service] """ self._services = services @@ -130,7 +130,7 @@ def page(self, page): :param page: The page of this ListServicesResponse. # noqa: E501 - :type page: int + :type: int """ self._page = page @@ -151,7 +151,7 @@ def pages(self, pages): :param pages: The pages of this ListServicesResponse. # noqa: E501 - :type pages: int + :type: int """ self._pages = pages @@ -172,7 +172,7 @@ def total_count(self, total_count): :param total_count: The total_count of this ListServicesResponse. # noqa: E501 - :type total_count: int + :type: int """ self._total_count = total_count diff --git a/onepanel/core/api/models/list_workflow_executions_response.py b/onepanel/core/api/models/list_workflow_executions_response.py index 58330b7..bd6ad2f 100644 --- a/onepanel/core/api/models/list_workflow_executions_response.py +++ b/onepanel/core/api/models/list_workflow_executions_response.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -88,7 +88,7 @@ def count(self, count): :param count: The count of this ListWorkflowExecutionsResponse. # noqa: E501 - :type count: int + :type: int """ self._count = count @@ -109,7 +109,7 @@ def workflow_executions(self, workflow_executions): :param workflow_executions: The workflow_executions of this ListWorkflowExecutionsResponse. # noqa: E501 - :type workflow_executions: list[WorkflowExecution] + :type: list[WorkflowExecution] """ self._workflow_executions = workflow_executions @@ -130,7 +130,7 @@ def page(self, page): :param page: The page of this ListWorkflowExecutionsResponse. # noqa: E501 - :type page: int + :type: int """ self._page = page @@ -151,7 +151,7 @@ def pages(self, pages): :param pages: The pages of this ListWorkflowExecutionsResponse. # noqa: E501 - :type pages: int + :type: int """ self._pages = pages @@ -172,7 +172,7 @@ def total_count(self, total_count): :param total_count: The total_count of this ListWorkflowExecutionsResponse. # noqa: E501 - :type total_count: int + :type: int """ self._total_count = total_count diff --git a/onepanel/core/api/models/list_workflow_template_versions_response.py b/onepanel/core/api/models/list_workflow_template_versions_response.py index 2bf12b1..f0c189b 100644 --- a/onepanel/core/api/models/list_workflow_template_versions_response.py +++ b/onepanel/core/api/models/list_workflow_template_versions_response.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -73,7 +73,7 @@ def count(self, count): :param count: The count of this ListWorkflowTemplateVersionsResponse. # noqa: E501 - :type count: int + :type: int """ self._count = count @@ -94,7 +94,7 @@ def workflow_templates(self, workflow_templates): :param workflow_templates: The workflow_templates of this ListWorkflowTemplateVersionsResponse. # noqa: E501 - :type workflow_templates: list[WorkflowTemplate] + :type: list[WorkflowTemplate] """ self._workflow_templates = workflow_templates diff --git a/onepanel/core/api/models/list_workflow_templates_response.py b/onepanel/core/api/models/list_workflow_templates_response.py index bdbd745..1d68fa8 100644 --- a/onepanel/core/api/models/list_workflow_templates_response.py +++ b/onepanel/core/api/models/list_workflow_templates_response.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -88,7 +88,7 @@ def count(self, count): :param count: The count of this ListWorkflowTemplatesResponse. # noqa: E501 - :type count: int + :type: int """ self._count = count @@ -109,7 +109,7 @@ def workflow_templates(self, workflow_templates): :param workflow_templates: The workflow_templates of this ListWorkflowTemplatesResponse. # noqa: E501 - :type workflow_templates: list[WorkflowTemplate] + :type: list[WorkflowTemplate] """ self._workflow_templates = workflow_templates @@ -130,7 +130,7 @@ def page(self, page): :param page: The page of this ListWorkflowTemplatesResponse. # noqa: E501 - :type page: int + :type: int """ self._page = page @@ -151,7 +151,7 @@ def pages(self, pages): :param pages: The pages of this ListWorkflowTemplatesResponse. # noqa: E501 - :type pages: int + :type: int """ self._pages = pages @@ -172,7 +172,7 @@ def total_count(self, total_count): :param total_count: The total_count of this ListWorkflowTemplatesResponse. # noqa: E501 - :type total_count: int + :type: int """ self._total_count = total_count diff --git a/onepanel/core/api/models/list_workspace_response.py b/onepanel/core/api/models/list_workspace_response.py index c9a4862..ed8cc3b 100644 --- a/onepanel/core/api/models/list_workspace_response.py +++ b/onepanel/core/api/models/list_workspace_response.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -88,7 +88,7 @@ def count(self, count): :param count: The count of this ListWorkspaceResponse. # noqa: E501 - :type count: int + :type: int """ self._count = count @@ -109,7 +109,7 @@ def workspaces(self, workspaces): :param workspaces: The workspaces of this ListWorkspaceResponse. # noqa: E501 - :type workspaces: list[Workspace] + :type: list[Workspace] """ self._workspaces = workspaces @@ -130,7 +130,7 @@ def page(self, page): :param page: The page of this ListWorkspaceResponse. # noqa: E501 - :type page: int + :type: int """ self._page = page @@ -151,7 +151,7 @@ def pages(self, pages): :param pages: The pages of this ListWorkspaceResponse. # noqa: E501 - :type pages: int + :type: int """ self._pages = pages @@ -172,7 +172,7 @@ def total_count(self, total_count): :param total_count: The total_count of this ListWorkspaceResponse. # noqa: E501 - :type total_count: int + :type: int """ self._total_count = total_count diff --git a/onepanel/core/api/models/list_workspace_template_versions_response.py b/onepanel/core/api/models/list_workspace_template_versions_response.py index 4f1d745..8e444fd 100644 --- a/onepanel/core/api/models/list_workspace_template_versions_response.py +++ b/onepanel/core/api/models/list_workspace_template_versions_response.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -73,7 +73,7 @@ def count(self, count): :param count: The count of this ListWorkspaceTemplateVersionsResponse. # noqa: E501 - :type count: int + :type: int """ self._count = count @@ -94,7 +94,7 @@ def workspace_templates(self, workspace_templates): :param workspace_templates: The workspace_templates of this ListWorkspaceTemplateVersionsResponse. # noqa: E501 - :type workspace_templates: list[WorkspaceTemplate] + :type: list[WorkspaceTemplate] """ self._workspace_templates = workspace_templates diff --git a/onepanel/core/api/models/list_workspace_templates_response.py b/onepanel/core/api/models/list_workspace_templates_response.py index 566ad75..cc82f2f 100644 --- a/onepanel/core/api/models/list_workspace_templates_response.py +++ b/onepanel/core/api/models/list_workspace_templates_response.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -88,7 +88,7 @@ def count(self, count): :param count: The count of this ListWorkspaceTemplatesResponse. # noqa: E501 - :type count: int + :type: int """ self._count = count @@ -109,7 +109,7 @@ def workspace_templates(self, workspace_templates): :param workspace_templates: The workspace_templates of this ListWorkspaceTemplatesResponse. # noqa: E501 - :type workspace_templates: list[WorkspaceTemplate] + :type: list[WorkspaceTemplate] """ self._workspace_templates = workspace_templates @@ -130,7 +130,7 @@ def page(self, page): :param page: The page of this ListWorkspaceTemplatesResponse. # noqa: E501 - :type page: int + :type: int """ self._page = page @@ -151,7 +151,7 @@ def pages(self, pages): :param pages: The pages of this ListWorkspaceTemplatesResponse. # noqa: E501 - :type pages: int + :type: int """ self._pages = pages @@ -172,7 +172,7 @@ def total_count(self, total_count): :param total_count: The total_count of this ListWorkspaceTemplatesResponse. # noqa: E501 - :type total_count: int + :type: int """ self._total_count = total_count diff --git a/onepanel/core/api/models/log_entry.py b/onepanel/core/api/models/log_entry.py index 94dbcf2..b198552 100644 --- a/onepanel/core/api/models/log_entry.py +++ b/onepanel/core/api/models/log_entry.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -73,7 +73,7 @@ def timestamp(self, timestamp): :param timestamp: The timestamp of this LogEntry. # noqa: E501 - :type timestamp: str + :type: str """ self._timestamp = timestamp @@ -94,7 +94,7 @@ def content(self, content): :param content: The content of this LogEntry. # noqa: E501 - :type content: str + :type: str """ self._content = content diff --git a/onepanel/core/api/models/metric.py b/onepanel/core/api/models/metric.py index 4b72234..c753788 100644 --- a/onepanel/core/api/models/metric.py +++ b/onepanel/core/api/models/metric.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -78,7 +78,7 @@ def name(self, name): :param name: The name of this Metric. # noqa: E501 - :type name: str + :type: str """ self._name = name @@ -99,7 +99,7 @@ def value(self, value): :param value: The value of this Metric. # noqa: E501 - :type value: float + :type: float """ self._value = value @@ -120,7 +120,7 @@ def format(self, format): :param format: The format of this Metric. # noqa: E501 - :type format: str + :type: str """ self._format = format diff --git a/onepanel/core/api/models/namespace.py b/onepanel/core/api/models/namespace.py index c353358..3c41244 100644 --- a/onepanel/core/api/models/namespace.py +++ b/onepanel/core/api/models/namespace.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -68,7 +68,7 @@ def name(self, name): :param name: The name of this Namespace. # noqa: E501 - :type name: str + :type: str """ self._name = name diff --git a/onepanel/core/api/models/node_pool.py b/onepanel/core/api/models/node_pool.py index 7d63683..92a4a43 100644 --- a/onepanel/core/api/models/node_pool.py +++ b/onepanel/core/api/models/node_pool.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -73,7 +73,7 @@ def label(self, label): :param label: The label of this NodePool. # noqa: E501 - :type label: str + :type: str """ self._label = label @@ -94,7 +94,7 @@ def options(self, options): :param options: The options of this NodePool. # noqa: E501 - :type options: list[NodePoolOption] + :type: list[NodePoolOption] """ self._options = options diff --git a/onepanel/core/api/models/node_pool_option.py b/onepanel/core/api/models/node_pool_option.py index c310ed0..1497e92 100644 --- a/onepanel/core/api/models/node_pool_option.py +++ b/onepanel/core/api/models/node_pool_option.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -73,7 +73,7 @@ def name(self, name): :param name: The name of this NodePoolOption. # noqa: E501 - :type name: str + :type: str """ self._name = name @@ -94,7 +94,7 @@ def value(self, value): :param value: The value of this NodePoolOption. # noqa: E501 - :type value: str + :type: str """ self._value = value diff --git a/onepanel/core/api/models/parameter.py b/onepanel/core/api/models/parameter.py index 07ddd00..0e098f7 100644 --- a/onepanel/core/api/models/parameter.py +++ b/onepanel/core/api/models/parameter.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -103,7 +103,7 @@ def name(self, name): :param name: The name of this Parameter. # noqa: E501 - :type name: str + :type: str """ self._name = name @@ -124,7 +124,7 @@ def value(self, value): :param value: The value of this Parameter. # noqa: E501 - :type value: str + :type: str """ self._value = value @@ -145,7 +145,7 @@ def type(self, type): :param type: The type of this Parameter. # noqa: E501 - :type type: str + :type: str """ self._type = type @@ -166,7 +166,7 @@ def display_name(self, display_name): :param display_name: The display_name of this Parameter. # noqa: E501 - :type display_name: str + :type: str """ self._display_name = display_name @@ -187,7 +187,7 @@ def hint(self, hint): :param hint: The hint of this Parameter. # noqa: E501 - :type hint: str + :type: str """ self._hint = hint @@ -208,7 +208,7 @@ def required(self, required): :param required: The required of this Parameter. # noqa: E501 - :type required: bool + :type: bool """ self._required = required @@ -229,7 +229,7 @@ def visibility(self, visibility): :param visibility: The visibility of this Parameter. # noqa: E501 - :type visibility: str + :type: str """ self._visibility = visibility @@ -250,7 +250,7 @@ def options(self, options): :param options: The options of this Parameter. # noqa: E501 - :type options: list[ParameterOption] + :type: list[ParameterOption] """ self._options = options diff --git a/onepanel/core/api/models/parameter_option.py b/onepanel/core/api/models/parameter_option.py index a77cafe..6f28171 100644 --- a/onepanel/core/api/models/parameter_option.py +++ b/onepanel/core/api/models/parameter_option.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -73,7 +73,7 @@ def name(self, name): :param name: The name of this ParameterOption. # noqa: E501 - :type name: str + :type: str """ self._name = name @@ -94,7 +94,7 @@ def value(self, value): :param value: The value of this ParameterOption. # noqa: E501 - :type value: str + :type: str """ self._value = value diff --git a/onepanel/core/api/models/secret.py b/onepanel/core/api/models/secret.py index 013d61f..ac3ba08 100644 --- a/onepanel/core/api/models/secret.py +++ b/onepanel/core/api/models/secret.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -73,7 +73,7 @@ def name(self, name): :param name: The name of this Secret. # noqa: E501 - :type name: str + :type: str """ self._name = name @@ -94,7 +94,7 @@ def data(self, data): :param data: The data of this Secret. # noqa: E501 - :type data: dict(str, str) + :type: dict(str, str) """ self._data = data diff --git a/onepanel/core/api/models/secret_exists_response.py b/onepanel/core/api/models/secret_exists_response.py index cd470bc..9aeb610 100644 --- a/onepanel/core/api/models/secret_exists_response.py +++ b/onepanel/core/api/models/secret_exists_response.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -68,7 +68,7 @@ def exists(self, exists): :param exists: The exists of this SecretExistsResponse. # noqa: E501 - :type exists: bool + :type: bool """ self._exists = exists diff --git a/onepanel/core/api/models/service.py b/onepanel/core/api/models/service.py index 8d62449..caf2112 100644 --- a/onepanel/core/api/models/service.py +++ b/onepanel/core/api/models/service.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -73,7 +73,7 @@ def name(self, name): :param name: The name of this Service. # noqa: E501 - :type name: str + :type: str """ self._name = name @@ -94,7 +94,7 @@ def url(self, url): :param url: The url of this Service. # noqa: E501 - :type url: str + :type: str """ self._url = url diff --git a/onepanel/core/api/models/statistics.py b/onepanel/core/api/models/statistics.py index 1244e13..609f462 100644 --- a/onepanel/core/api/models/statistics.py +++ b/onepanel/core/api/models/statistics.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -73,7 +73,7 @@ def workflow_status(self, workflow_status): :param workflow_status: The workflow_status of this Statistics. # noqa: E501 - :type workflow_status: str + :type: str """ self._workflow_status = workflow_status @@ -94,7 +94,7 @@ def workflow_template_id(self, workflow_template_id): :param workflow_template_id: The workflow_template_id of this Statistics. # noqa: E501 - :type workflow_template_id: str + :type: str """ self._workflow_template_id = workflow_template_id diff --git a/onepanel/core/api/models/stream_result_of_log_entry.py b/onepanel/core/api/models/stream_result_of_log_entry.py index 80e9bf6..a6bc885 100644 --- a/onepanel/core/api/models/stream_result_of_log_entry.py +++ b/onepanel/core/api/models/stream_result_of_log_entry.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -73,7 +73,7 @@ def result(self, result): :param result: The result of this StreamResultOfLogEntry. # noqa: E501 - :type result: LogEntry + :type: LogEntry """ self._result = result @@ -94,7 +94,7 @@ def error(self, error): :param error: The error of this StreamResultOfLogEntry. # noqa: E501 - :type error: GrpcGatewayRuntimeStreamError + :type: GrpcGatewayRuntimeStreamError """ self._error = error diff --git a/onepanel/core/api/models/stream_result_of_workflow_execution.py b/onepanel/core/api/models/stream_result_of_workflow_execution.py index 9f4ca0e..327a771 100644 --- a/onepanel/core/api/models/stream_result_of_workflow_execution.py +++ b/onepanel/core/api/models/stream_result_of_workflow_execution.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -73,7 +73,7 @@ def result(self, result): :param result: The result of this StreamResultOfWorkflowExecution. # noqa: E501 - :type result: WorkflowExecution + :type: WorkflowExecution """ self._result = result @@ -94,7 +94,7 @@ def error(self, error): :param error: The error of this StreamResultOfWorkflowExecution. # noqa: E501 - :type error: GrpcGatewayRuntimeStreamError + :type: GrpcGatewayRuntimeStreamError """ self._error = error diff --git a/onepanel/core/api/models/token_wrapper.py b/onepanel/core/api/models/token_wrapper.py index b801e97..261264b 100644 --- a/onepanel/core/api/models/token_wrapper.py +++ b/onepanel/core/api/models/token_wrapper.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -68,7 +68,7 @@ def token(self, token): :param token: The token of this TokenWrapper. # noqa: E501 - :type token: str + :type: str """ self._token = token diff --git a/onepanel/core/api/models/update_secret_key_value_response.py b/onepanel/core/api/models/update_secret_key_value_response.py index d752e14..92b6588 100644 --- a/onepanel/core/api/models/update_secret_key_value_response.py +++ b/onepanel/core/api/models/update_secret_key_value_response.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -68,7 +68,7 @@ def updated(self, updated): :param updated: The updated of this UpdateSecretKeyValueResponse. # noqa: E501 - :type updated: bool + :type: bool """ self._updated = updated diff --git a/onepanel/core/api/models/update_workspace_body.py b/onepanel/core/api/models/update_workspace_body.py index 6ae2d82..b31e4aa 100644 --- a/onepanel/core/api/models/update_workspace_body.py +++ b/onepanel/core/api/models/update_workspace_body.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -73,7 +73,7 @@ def parameters(self, parameters): :param parameters: The parameters of this UpdateWorkspaceBody. # noqa: E501 - :type parameters: list[Parameter] + :type: list[Parameter] """ self._parameters = parameters @@ -94,7 +94,7 @@ def labels(self, labels): :param labels: The labels of this UpdateWorkspaceBody. # noqa: E501 - :type labels: list[KeyValue] + :type: list[KeyValue] """ self._labels = labels diff --git a/onepanel/core/api/models/workflow_execution.py b/onepanel/core/api/models/workflow_execution.py index cd0a0bd..0b44b65 100644 --- a/onepanel/core/api/models/workflow_execution.py +++ b/onepanel/core/api/models/workflow_execution.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -118,7 +118,7 @@ def created_at(self, created_at): :param created_at: The created_at of this WorkflowExecution. # noqa: E501 - :type created_at: str + :type: str """ self._created_at = created_at @@ -139,7 +139,7 @@ def uid(self, uid): :param uid: The uid of this WorkflowExecution. # noqa: E501 - :type uid: str + :type: str """ self._uid = uid @@ -160,7 +160,7 @@ def name(self, name): :param name: The name of this WorkflowExecution. # noqa: E501 - :type name: str + :type: str """ self._name = name @@ -181,7 +181,7 @@ def phase(self, phase): :param phase: The phase of this WorkflowExecution. # noqa: E501 - :type phase: str + :type: str """ self._phase = phase @@ -202,7 +202,7 @@ def started_at(self, started_at): :param started_at: The started_at of this WorkflowExecution. # noqa: E501 - :type started_at: str + :type: str """ self._started_at = started_at @@ -223,7 +223,7 @@ def finished_at(self, finished_at): :param finished_at: The finished_at of this WorkflowExecution. # noqa: E501 - :type finished_at: str + :type: str """ self._finished_at = finished_at @@ -244,7 +244,7 @@ def manifest(self, manifest): :param manifest: The manifest of this WorkflowExecution. # noqa: E501 - :type manifest: str + :type: str """ self._manifest = manifest @@ -265,7 +265,7 @@ def parameters(self, parameters): :param parameters: The parameters of this WorkflowExecution. # noqa: E501 - :type parameters: list[Parameter] + :type: list[Parameter] """ self._parameters = parameters @@ -286,7 +286,7 @@ def workflow_template(self, workflow_template): :param workflow_template: The workflow_template of this WorkflowExecution. # noqa: E501 - :type workflow_template: WorkflowTemplate + :type: WorkflowTemplate """ self._workflow_template = workflow_template @@ -307,7 +307,7 @@ def labels(self, labels): :param labels: The labels of this WorkflowExecution. # noqa: E501 - :type labels: list[KeyValue] + :type: list[KeyValue] """ self._labels = labels @@ -328,7 +328,7 @@ def metadata(self, metadata): :param metadata: The metadata of this WorkflowExecution. # noqa: E501 - :type metadata: WorkflowExecutionMetadata + :type: WorkflowExecutionMetadata """ self._metadata = metadata diff --git a/onepanel/core/api/models/workflow_execution_metadata.py b/onepanel/core/api/models/workflow_execution_metadata.py index a4e3779..b330705 100644 --- a/onepanel/core/api/models/workflow_execution_metadata.py +++ b/onepanel/core/api/models/workflow_execution_metadata.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -68,7 +68,7 @@ def url(self, url): :param url: The url of this WorkflowExecutionMetadata. # noqa: E501 - :type url: str + :type: str """ self._url = url diff --git a/onepanel/core/api/models/workflow_execution_statistic_report.py b/onepanel/core/api/models/workflow_execution_statistic_report.py index f602661..b3ec16f 100644 --- a/onepanel/core/api/models/workflow_execution_statistic_report.py +++ b/onepanel/core/api/models/workflow_execution_statistic_report.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -93,7 +93,7 @@ def total(self, total): :param total: The total of this WorkflowExecutionStatisticReport. # noqa: E501 - :type total: int + :type: int """ self._total = total @@ -114,7 +114,7 @@ def last_executed(self, last_executed): :param last_executed: The last_executed of this WorkflowExecutionStatisticReport. # noqa: E501 - :type last_executed: str + :type: str """ self._last_executed = last_executed @@ -135,7 +135,7 @@ def running(self, running): :param running: The running of this WorkflowExecutionStatisticReport. # noqa: E501 - :type running: int + :type: int """ self._running = running @@ -156,7 +156,7 @@ def completed(self, completed): :param completed: The completed of this WorkflowExecutionStatisticReport. # noqa: E501 - :type completed: int + :type: int """ self._completed = completed @@ -177,7 +177,7 @@ def failed(self, failed): :param failed: The failed of this WorkflowExecutionStatisticReport. # noqa: E501 - :type failed: int + :type: int """ self._failed = failed @@ -198,7 +198,7 @@ def terminated(self, terminated): :param terminated: The terminated of this WorkflowExecutionStatisticReport. # noqa: E501 - :type terminated: int + :type: int """ self._terminated = terminated diff --git a/onepanel/core/api/models/workflow_execution_status.py b/onepanel/core/api/models/workflow_execution_status.py index 5ae164e..af969ff 100644 --- a/onepanel/core/api/models/workflow_execution_status.py +++ b/onepanel/core/api/models/workflow_execution_status.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -68,7 +68,7 @@ def phase(self, phase): :param phase: The phase of this WorkflowExecutionStatus. # noqa: E501 - :type phase: str + :type: str """ self._phase = phase diff --git a/onepanel/core/api/models/workflow_template.py b/onepanel/core/api/models/workflow_template.py index c3bb83a..f75b794 100644 --- a/onepanel/core/api/models/workflow_template.py +++ b/onepanel/core/api/models/workflow_template.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -128,7 +128,7 @@ def created_at(self, created_at): :param created_at: The created_at of this WorkflowTemplate. # noqa: E501 - :type created_at: str + :type: str """ self._created_at = created_at @@ -149,7 +149,7 @@ def modified_at(self, modified_at): :param modified_at: The modified_at of this WorkflowTemplate. # noqa: E501 - :type modified_at: str + :type: str """ self._modified_at = modified_at @@ -170,7 +170,7 @@ def uid(self, uid): :param uid: The uid of this WorkflowTemplate. # noqa: E501 - :type uid: str + :type: str """ self._uid = uid @@ -191,7 +191,7 @@ def name(self, name): :param name: The name of this WorkflowTemplate. # noqa: E501 - :type name: str + :type: str """ self._name = name @@ -212,7 +212,7 @@ def version(self, version): :param version: The version of this WorkflowTemplate. # noqa: E501 - :type version: str + :type: str """ self._version = version @@ -233,7 +233,7 @@ def versions(self, versions): :param versions: The versions of this WorkflowTemplate. # noqa: E501 - :type versions: str + :type: str """ self._versions = versions @@ -254,7 +254,7 @@ def manifest(self, manifest): :param manifest: The manifest of this WorkflowTemplate. # noqa: E501 - :type manifest: str + :type: str """ self._manifest = manifest @@ -275,7 +275,7 @@ def is_latest(self, is_latest): :param is_latest: The is_latest of this WorkflowTemplate. # noqa: E501 - :type is_latest: bool + :type: bool """ self._is_latest = is_latest @@ -296,7 +296,7 @@ def is_archived(self, is_archived): :param is_archived: The is_archived of this WorkflowTemplate. # noqa: E501 - :type is_archived: bool + :type: bool """ self._is_archived = is_archived @@ -317,7 +317,7 @@ def labels(self, labels): :param labels: The labels of this WorkflowTemplate. # noqa: E501 - :type labels: list[KeyValue] + :type: list[KeyValue] """ self._labels = labels @@ -338,7 +338,7 @@ def stats(self, stats): :param stats: The stats of this WorkflowTemplate. # noqa: E501 - :type stats: WorkflowExecutionStatisticReport + :type: WorkflowExecutionStatisticReport """ self._stats = stats @@ -359,7 +359,7 @@ def cron_stats(self, cron_stats): :param cron_stats: The cron_stats of this WorkflowTemplate. # noqa: E501 - :type cron_stats: CronWorkflowStatisticsReport + :type: CronWorkflowStatisticsReport """ self._cron_stats = cron_stats @@ -380,7 +380,7 @@ def parameters(self, parameters): :param parameters: The parameters of this WorkflowTemplate. # noqa: E501 - :type parameters: list[Parameter] + :type: list[Parameter] """ self._parameters = parameters diff --git a/onepanel/core/api/models/workspace.py b/onepanel/core/api/models/workspace.py index 12ba853..2b07324 100644 --- a/onepanel/core/api/models/workspace.py +++ b/onepanel/core/api/models/workspace.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -113,7 +113,7 @@ def uid(self, uid): :param uid: The uid of this Workspace. # noqa: E501 - :type uid: str + :type: str """ self._uid = uid @@ -134,7 +134,7 @@ def name(self, name): :param name: The name of this Workspace. # noqa: E501 - :type name: str + :type: str """ self._name = name @@ -155,7 +155,7 @@ def version(self, version): :param version: The version of this Workspace. # noqa: E501 - :type version: str + :type: str """ self._version = version @@ -176,7 +176,7 @@ def created_at(self, created_at): :param created_at: The created_at of this Workspace. # noqa: E501 - :type created_at: str + :type: str """ self._created_at = created_at @@ -197,7 +197,7 @@ def parameters(self, parameters): :param parameters: The parameters of this Workspace. # noqa: E501 - :type parameters: list[Parameter] + :type: list[Parameter] """ self._parameters = parameters @@ -218,7 +218,7 @@ def workspace_template(self, workspace_template): :param workspace_template: The workspace_template of this Workspace. # noqa: E501 - :type workspace_template: WorkspaceTemplate + :type: WorkspaceTemplate """ self._workspace_template = workspace_template @@ -239,7 +239,7 @@ def status(self, status): :param status: The status of this Workspace. # noqa: E501 - :type status: WorkspaceStatus + :type: WorkspaceStatus """ self._status = status @@ -260,7 +260,7 @@ def labels(self, labels): :param labels: The labels of this Workspace. # noqa: E501 - :type labels: list[KeyValue] + :type: list[KeyValue] """ self._labels = labels @@ -281,7 +281,7 @@ def url(self, url): :param url: The url of this Workspace. # noqa: E501 - :type url: str + :type: str """ self._url = url @@ -302,7 +302,7 @@ def template_parameters(self, template_parameters): :param template_parameters: The template_parameters of this Workspace. # noqa: E501 - :type template_parameters: list[Parameter] + :type: list[Parameter] """ self._template_parameters = template_parameters diff --git a/onepanel/core/api/models/workspace_statistic_report.py b/onepanel/core/api/models/workspace_statistic_report.py new file mode 100644 index 0000000..e1718e8 --- /dev/null +++ b/onepanel/core/api/models/workspace_statistic_report.py @@ -0,0 +1,484 @@ +# coding: utf-8 + +""" + Onepanel + + Onepanel API # noqa: E501 + + The version of the OpenAPI document: 0.13.0 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from onepanel.core.api.configuration import Configuration + + +class WorkspaceStatisticReport(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'total': 'int', + 'last_created': 'str', + 'launching': 'int', + 'running': 'int', + 'updating': 'int', + 'pausing': 'int', + 'paused': 'int', + 'terminating': 'int', + 'terminated': 'int', + 'failed_to_pause': 'int', + 'failed_to_resume': 'int', + 'failed_to_terminate': 'int', + 'failed_to_launch': 'int', + 'failed_to_update': 'int', + 'failed': 'int' + } + + attribute_map = { + 'total': 'total', + 'last_created': 'lastCreated', + 'launching': 'launching', + 'running': 'running', + 'updating': 'updating', + 'pausing': 'pausing', + 'paused': 'paused', + 'terminating': 'terminating', + 'terminated': 'terminated', + 'failed_to_pause': 'failedToPause', + 'failed_to_resume': 'failedToResume', + 'failed_to_terminate': 'failedToTerminate', + 'failed_to_launch': 'failedToLaunch', + 'failed_to_update': 'failedToUpdate', + 'failed': 'failed' + } + + def __init__(self, total=None, last_created=None, launching=None, running=None, updating=None, pausing=None, paused=None, terminating=None, terminated=None, failed_to_pause=None, failed_to_resume=None, failed_to_terminate=None, failed_to_launch=None, failed_to_update=None, failed=None, local_vars_configuration=None): # noqa: E501 + """WorkspaceStatisticReport - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._total = None + self._last_created = None + self._launching = None + self._running = None + self._updating = None + self._pausing = None + self._paused = None + self._terminating = None + self._terminated = None + self._failed_to_pause = None + self._failed_to_resume = None + self._failed_to_terminate = None + self._failed_to_launch = None + self._failed_to_update = None + self._failed = None + self.discriminator = None + + if total is not None: + self.total = total + if last_created is not None: + self.last_created = last_created + if launching is not None: + self.launching = launching + if running is not None: + self.running = running + if updating is not None: + self.updating = updating + if pausing is not None: + self.pausing = pausing + if paused is not None: + self.paused = paused + if terminating is not None: + self.terminating = terminating + if terminated is not None: + self.terminated = terminated + if failed_to_pause is not None: + self.failed_to_pause = failed_to_pause + if failed_to_resume is not None: + self.failed_to_resume = failed_to_resume + if failed_to_terminate is not None: + self.failed_to_terminate = failed_to_terminate + if failed_to_launch is not None: + self.failed_to_launch = failed_to_launch + if failed_to_update is not None: + self.failed_to_update = failed_to_update + if failed is not None: + self.failed = failed + + @property + def total(self): + """Gets the total of this WorkspaceStatisticReport. # noqa: E501 + + + :return: The total of this WorkspaceStatisticReport. # noqa: E501 + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this WorkspaceStatisticReport. + + + :param total: The total of this WorkspaceStatisticReport. # noqa: E501 + :type: int + """ + + self._total = total + + @property + def last_created(self): + """Gets the last_created of this WorkspaceStatisticReport. # noqa: E501 + + + :return: The last_created of this WorkspaceStatisticReport. # noqa: E501 + :rtype: str + """ + return self._last_created + + @last_created.setter + def last_created(self, last_created): + """Sets the last_created of this WorkspaceStatisticReport. + + + :param last_created: The last_created of this WorkspaceStatisticReport. # noqa: E501 + :type: str + """ + + self._last_created = last_created + + @property + def launching(self): + """Gets the launching of this WorkspaceStatisticReport. # noqa: E501 + + + :return: The launching of this WorkspaceStatisticReport. # noqa: E501 + :rtype: int + """ + return self._launching + + @launching.setter + def launching(self, launching): + """Sets the launching of this WorkspaceStatisticReport. + + + :param launching: The launching of this WorkspaceStatisticReport. # noqa: E501 + :type: int + """ + + self._launching = launching + + @property + def running(self): + """Gets the running of this WorkspaceStatisticReport. # noqa: E501 + + + :return: The running of this WorkspaceStatisticReport. # noqa: E501 + :rtype: int + """ + return self._running + + @running.setter + def running(self, running): + """Sets the running of this WorkspaceStatisticReport. + + + :param running: The running of this WorkspaceStatisticReport. # noqa: E501 + :type: int + """ + + self._running = running + + @property + def updating(self): + """Gets the updating of this WorkspaceStatisticReport. # noqa: E501 + + + :return: The updating of this WorkspaceStatisticReport. # noqa: E501 + :rtype: int + """ + return self._updating + + @updating.setter + def updating(self, updating): + """Sets the updating of this WorkspaceStatisticReport. + + + :param updating: The updating of this WorkspaceStatisticReport. # noqa: E501 + :type: int + """ + + self._updating = updating + + @property + def pausing(self): + """Gets the pausing of this WorkspaceStatisticReport. # noqa: E501 + + + :return: The pausing of this WorkspaceStatisticReport. # noqa: E501 + :rtype: int + """ + return self._pausing + + @pausing.setter + def pausing(self, pausing): + """Sets the pausing of this WorkspaceStatisticReport. + + + :param pausing: The pausing of this WorkspaceStatisticReport. # noqa: E501 + :type: int + """ + + self._pausing = pausing + + @property + def paused(self): + """Gets the paused of this WorkspaceStatisticReport. # noqa: E501 + + + :return: The paused of this WorkspaceStatisticReport. # noqa: E501 + :rtype: int + """ + return self._paused + + @paused.setter + def paused(self, paused): + """Sets the paused of this WorkspaceStatisticReport. + + + :param paused: The paused of this WorkspaceStatisticReport. # noqa: E501 + :type: int + """ + + self._paused = paused + + @property + def terminating(self): + """Gets the terminating of this WorkspaceStatisticReport. # noqa: E501 + + + :return: The terminating of this WorkspaceStatisticReport. # noqa: E501 + :rtype: int + """ + return self._terminating + + @terminating.setter + def terminating(self, terminating): + """Sets the terminating of this WorkspaceStatisticReport. + + + :param terminating: The terminating of this WorkspaceStatisticReport. # noqa: E501 + :type: int + """ + + self._terminating = terminating + + @property + def terminated(self): + """Gets the terminated of this WorkspaceStatisticReport. # noqa: E501 + + + :return: The terminated of this WorkspaceStatisticReport. # noqa: E501 + :rtype: int + """ + return self._terminated + + @terminated.setter + def terminated(self, terminated): + """Sets the terminated of this WorkspaceStatisticReport. + + + :param terminated: The terminated of this WorkspaceStatisticReport. # noqa: E501 + :type: int + """ + + self._terminated = terminated + + @property + def failed_to_pause(self): + """Gets the failed_to_pause of this WorkspaceStatisticReport. # noqa: E501 + + + :return: The failed_to_pause of this WorkspaceStatisticReport. # noqa: E501 + :rtype: int + """ + return self._failed_to_pause + + @failed_to_pause.setter + def failed_to_pause(self, failed_to_pause): + """Sets the failed_to_pause of this WorkspaceStatisticReport. + + + :param failed_to_pause: The failed_to_pause of this WorkspaceStatisticReport. # noqa: E501 + :type: int + """ + + self._failed_to_pause = failed_to_pause + + @property + def failed_to_resume(self): + """Gets the failed_to_resume of this WorkspaceStatisticReport. # noqa: E501 + + + :return: The failed_to_resume of this WorkspaceStatisticReport. # noqa: E501 + :rtype: int + """ + return self._failed_to_resume + + @failed_to_resume.setter + def failed_to_resume(self, failed_to_resume): + """Sets the failed_to_resume of this WorkspaceStatisticReport. + + + :param failed_to_resume: The failed_to_resume of this WorkspaceStatisticReport. # noqa: E501 + :type: int + """ + + self._failed_to_resume = failed_to_resume + + @property + def failed_to_terminate(self): + """Gets the failed_to_terminate of this WorkspaceStatisticReport. # noqa: E501 + + + :return: The failed_to_terminate of this WorkspaceStatisticReport. # noqa: E501 + :rtype: int + """ + return self._failed_to_terminate + + @failed_to_terminate.setter + def failed_to_terminate(self, failed_to_terminate): + """Sets the failed_to_terminate of this WorkspaceStatisticReport. + + + :param failed_to_terminate: The failed_to_terminate of this WorkspaceStatisticReport. # noqa: E501 + :type: int + """ + + self._failed_to_terminate = failed_to_terminate + + @property + def failed_to_launch(self): + """Gets the failed_to_launch of this WorkspaceStatisticReport. # noqa: E501 + + + :return: The failed_to_launch of this WorkspaceStatisticReport. # noqa: E501 + :rtype: int + """ + return self._failed_to_launch + + @failed_to_launch.setter + def failed_to_launch(self, failed_to_launch): + """Sets the failed_to_launch of this WorkspaceStatisticReport. + + + :param failed_to_launch: The failed_to_launch of this WorkspaceStatisticReport. # noqa: E501 + :type: int + """ + + self._failed_to_launch = failed_to_launch + + @property + def failed_to_update(self): + """Gets the failed_to_update of this WorkspaceStatisticReport. # noqa: E501 + + + :return: The failed_to_update of this WorkspaceStatisticReport. # noqa: E501 + :rtype: int + """ + return self._failed_to_update + + @failed_to_update.setter + def failed_to_update(self, failed_to_update): + """Sets the failed_to_update of this WorkspaceStatisticReport. + + + :param failed_to_update: The failed_to_update of this WorkspaceStatisticReport. # noqa: E501 + :type: int + """ + + self._failed_to_update = failed_to_update + + @property + def failed(self): + """Gets the failed of this WorkspaceStatisticReport. # noqa: E501 + + + :return: The failed of this WorkspaceStatisticReport. # noqa: E501 + :rtype: int + """ + return self._failed + + @failed.setter + def failed(self, failed): + """Sets the failed of this WorkspaceStatisticReport. + + + :param failed: The failed of this WorkspaceStatisticReport. # noqa: E501 + :type: int + """ + + self._failed = failed + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, WorkspaceStatisticReport): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, WorkspaceStatisticReport): + return True + + return self.to_dict() != other.to_dict() diff --git a/onepanel/core/api/models/workspace_status.py b/onepanel/core/api/models/workspace_status.py index 8f1eca9..f170637 100644 --- a/onepanel/core/api/models/workspace_status.py +++ b/onepanel/core/api/models/workspace_status.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -83,7 +83,7 @@ def phase(self, phase): :param phase: The phase of this WorkspaceStatus. # noqa: E501 - :type phase: str + :type: str """ self._phase = phase @@ -104,7 +104,7 @@ def started_at(self, started_at): :param started_at: The started_at of this WorkspaceStatus. # noqa: E501 - :type started_at: str + :type: str """ self._started_at = started_at @@ -125,7 +125,7 @@ def paused_at(self, paused_at): :param paused_at: The paused_at of this WorkspaceStatus. # noqa: E501 - :type paused_at: str + :type: str """ self._paused_at = paused_at @@ -146,7 +146,7 @@ def terminated_at(self, terminated_at): :param terminated_at: The terminated_at of this WorkspaceStatus. # noqa: E501 - :type terminated_at: str + :type: str """ self._terminated_at = terminated_at diff --git a/onepanel/core/api/models/workspace_template.py b/onepanel/core/api/models/workspace_template.py index 2cca608..b4df1bc 100644 --- a/onepanel/core/api/models/workspace_template.py +++ b/onepanel/core/api/models/workspace_template.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -113,7 +113,7 @@ def uid(self, uid): :param uid: The uid of this WorkspaceTemplate. # noqa: E501 - :type uid: str + :type: str """ self._uid = uid @@ -134,7 +134,7 @@ def name(self, name): :param name: The name of this WorkspaceTemplate. # noqa: E501 - :type name: str + :type: str """ self._name = name @@ -155,7 +155,7 @@ def version(self, version): :param version: The version of this WorkspaceTemplate. # noqa: E501 - :type version: str + :type: str """ self._version = version @@ -176,7 +176,7 @@ def manifest(self, manifest): :param manifest: The manifest of this WorkspaceTemplate. # noqa: E501 - :type manifest: str + :type: str """ self._manifest = manifest @@ -197,7 +197,7 @@ def is_latest(self, is_latest): :param is_latest: The is_latest of this WorkspaceTemplate. # noqa: E501 - :type is_latest: bool + :type: bool """ self._is_latest = is_latest @@ -218,7 +218,7 @@ def created_at(self, created_at): :param created_at: The created_at of this WorkspaceTemplate. # noqa: E501 - :type created_at: str + :type: str """ self._created_at = created_at @@ -239,7 +239,7 @@ def workflow_template(self, workflow_template): :param workflow_template: The workflow_template of this WorkspaceTemplate. # noqa: E501 - :type workflow_template: WorkflowTemplate + :type: WorkflowTemplate """ self._workflow_template = workflow_template @@ -260,7 +260,7 @@ def labels(self, labels): :param labels: The labels of this WorkspaceTemplate. # noqa: E501 - :type labels: list[KeyValue] + :type: list[KeyValue] """ self._labels = labels @@ -281,7 +281,7 @@ def is_archived(self, is_archived): :param is_archived: The is_archived of this WorkspaceTemplate. # noqa: E501 - :type is_archived: bool + :type: bool """ self._is_archived = is_archived @@ -302,7 +302,7 @@ def description(self, description): :param description: The description of this WorkspaceTemplate. # noqa: E501 - :type description: str + :type: str """ self._description = description diff --git a/onepanel/core/api/rest.py b/onepanel/core/api/rest.py index 327bf15..cded4b8 100644 --- a/onepanel/core/api/rest.py +++ b/onepanel/core/api/rest.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -141,7 +141,7 @@ def request(self, method, url, query_params=None, headers=None, timeout = None if _request_timeout: - if isinstance(_request_timeout, six.integer_types + (float, )): # noqa: E501,F821 + if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821 timeout = urllib3.Timeout(total=_request_timeout) elif (isinstance(_request_timeout, tuple) and len(_request_timeout) == 2): diff --git a/setup.py b/setup.py index 10f3056..351d4d7 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: v0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ @@ -13,7 +13,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "onepanel-sdk" -VERSION = "0.12.0" +VERSION = "v0.13.0" # To install the library, run the following # # python setup.py install diff --git a/test/test_add_secret_key_value_response.py b/test/test_add_secret_key_value_response.py index 653ea13..52b8697 100644 --- a/test/test_add_secret_key_value_response.py +++ b/test/test_add_secret_key_value_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + workflow.proto - Onepanel API # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ diff --git a/test/test_archive_workflow_template_response.py b/test/test_archive_workflow_template_response.py index 0852180..3d2849e 100644 --- a/test/test_archive_workflow_template_response.py +++ b/test/test_archive_workflow_template_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + workflow.proto - Onepanel API # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ @@ -38,28 +38,12 @@ def make_instance(self, include_optional): return ArchiveWorkflowTemplateResponse( workflow_template = onepanel.core.api.models.workflow_template.WorkflowTemplate( created_at = '0', - modified_at = '0', uid = '0', name = '0', - version = '0', - versions = '0', + version = 56, manifest = '0', is_latest = True, - is_archived = True, - labels = [ - onepanel.core.api.models.key_value.KeyValue( - key = '0', - value = '0', ) - ], - stats = onepanel.core.api.models.workflow_execution_statistic_report.WorkflowExecutionStatisticReport( - total = 56, - last_executed = '0', - running = 56, - completed = 56, - failed = 56, - terminated = 56, ), - cron_stats = onepanel.core.api.models.cron_workflow_statistics_report.CronWorkflowStatisticsReport( - total = 56, ), ) + is_archived = True, ) ) else : return ArchiveWorkflowTemplateResponse( diff --git a/test/test_artifact_response.py b/test/test_artifact_response.py index f2d2238..18fb70f 100644 --- a/test/test_artifact_response.py +++ b/test/test_artifact_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ diff --git a/test/test_auth_service_api.py b/test/test_auth_service_api.py index aea83e6..0b1af83 100644 --- a/test/test_auth_service_api.py +++ b/test/test_auth_service_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ @@ -28,14 +28,8 @@ def setUp(self): def tearDown(self): pass - def test_is_authorized(self): - """Test case for is_authorized - - """ - pass - - def test_is_valid_token(self): - """Test case for is_valid_token + def test_auth_service_is_valid_token(self): + """Test case for auth_service_is_valid_token """ pass diff --git a/test/test_config_service_api.py b/test/test_config_service_api.py index 82e0b92..2a3ab2f 100644 --- a/test/test_config_service_api.py +++ b/test/test_config_service_api.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 0.11.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_create_workflow_execution_body.py b/test/test_create_workflow_execution_body.py index f56c32b..0d9ac69 100644 --- a/test/test_create_workflow_execution_body.py +++ b/test/test_create_workflow_execution_body.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ diff --git a/test/test_create_workspace_body.py b/test/test_create_workspace_body.py index 682072f..efe61ef 100644 --- a/test/test_create_workspace_body.py +++ b/test/test_create_workspace_body.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ diff --git a/test/test_cron_workflow.py b/test/test_cron_workflow.py index e37f644..93777ea 100644 --- a/test/test_cron_workflow.py +++ b/test/test_cron_workflow.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ @@ -37,7 +37,6 @@ def make_instance(self, include_optional): if include_optional : return CronWorkflow( name = '0', - uid = '0', manifest = '0', workflow_execution = onepanel.core.api.models.workflow_execution.WorkflowExecution( created_at = '0', @@ -63,7 +62,6 @@ def make_instance(self, include_optional): ], workflow_template = onepanel.core.api.models.workflow_template.WorkflowTemplate( created_at = '0', - modified_at = '0', uid = '0', name = '0', version = '0', @@ -81,8 +79,7 @@ def make_instance(self, include_optional): last_executed = '0', running = 56, completed = 56, - failed = 56, - terminated = 56, ), + failed = 56, ), cron_stats = onepanel.core.api.models.cron_workflow_statistics_report.CronWorkflowStatisticsReport( total = 56, ), ), labels = [ @@ -94,8 +91,7 @@ def make_instance(self, include_optional): onepanel.core.api.models.key_value.KeyValue( key = '0', value = '0', ) - ], - namespace = '0' + ] ) else : return CronWorkflow( diff --git a/test/test_cron_workflow_service_api.py b/test/test_cron_workflow_service_api.py index 5336b5f..b7f8515 100644 --- a/test/test_cron_workflow_service_api.py +++ b/test/test_cron_workflow_service_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ @@ -28,38 +28,38 @@ def setUp(self): def tearDown(self): pass - def test_create_cron_workflow(self): - """Test case for create_cron_workflow + def test_cron_workflow_service_create_cron_workflow(self): + """Test case for cron_workflow_service_create_cron_workflow """ pass - def test_delete_cron_workflow(self): - """Test case for delete_cron_workflow + def test_cron_workflow_service_get_cron_workflow(self): + """Test case for cron_workflow_service_get_cron_workflow """ pass - def test_get_cron_workflow(self): - """Test case for get_cron_workflow + def test_cron_workflow_service_list_cron_workflows(self): + """Test case for cron_workflow_service_list_cron_workflows """ pass - def test_list_cron_workflows(self): - """Test case for list_cron_workflows + def test_cron_workflow_service_list_cron_workflows2(self): + """Test case for cron_workflow_service_list_cron_workflows2 """ pass - def test_list_cron_workflows2(self): - """Test case for list_cron_workflows2 + def test_cron_workflow_service_terminate_cron_workflow(self): + """Test case for cron_workflow_service_terminate_cron_workflow """ pass - def test_update_cron_workflow(self): - """Test case for update_cron_workflow + def test_cron_workflow_service_update_cron_workflow(self): + """Test case for cron_workflow_service_update_cron_workflow """ pass diff --git a/test/test_cron_workflow_statistics_report.py b/test/test_cron_workflow_statistics_report.py index 8d6defc..ba28e5b 100644 --- a/test/test_cron_workflow_statistics_report.py +++ b/test/test_cron_workflow_statistics_report.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ diff --git a/test/test_delete_secret_key_response.py b/test/test_delete_secret_key_response.py index b3d6abb..e21f941 100644 --- a/test/test_delete_secret_key_response.py +++ b/test/test_delete_secret_key_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + workflow.proto - Onepanel API # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ diff --git a/test/test_delete_secret_response.py b/test/test_delete_secret_response.py index 1fc9fe8..e59f55a 100644 --- a/test/test_delete_secret_response.py +++ b/test/test_delete_secret_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + workflow.proto - Onepanel API # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ diff --git a/test/test_file.py b/test/test_file.py index 379ef21..0a168f2 100644 --- a/test/test_file.py +++ b/test/test_file.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ diff --git a/test/test_get_config_response.py b/test/test_get_config_response.py index 3cf090f..e33057c 100644 --- a/test/test_get_config_response.py +++ b/test/test_get_config_response.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 0.11.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_get_labels_response.py b/test/test_get_labels_response.py index 0095772..ed9f060 100644 --- a/test/test_get_labels_response.py +++ b/test/test_get_labels_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ diff --git a/test/test_get_workflow_execution_metrics_response.py b/test/test_get_workflow_execution_metrics_response.py index 459f511..39c33e4 100644 --- a/test/test_get_workflow_execution_metrics_response.py +++ b/test/test_get_workflow_execution_metrics_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + workflow.proto - Onepanel API # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ diff --git a/test/test_get_workflow_execution_statistics_for_namespace_response.py b/test/test_get_workflow_execution_statistics_for_namespace_response.py new file mode 100644 index 0000000..abe3c54 --- /dev/null +++ b/test/test_get_workflow_execution_statistics_for_namespace_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Onepanel + + Onepanel API # noqa: E501 + + The version of the OpenAPI document: 0.13.0 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import onepanel.core.api +from onepanel.core.api.models.get_workflow_execution_statistics_for_namespace_response import GetWorkflowExecutionStatisticsForNamespaceResponse # noqa: E501 +from onepanel.core.api.rest import ApiException + +class TestGetWorkflowExecutionStatisticsForNamespaceResponse(unittest.TestCase): + """GetWorkflowExecutionStatisticsForNamespaceResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test GetWorkflowExecutionStatisticsForNamespaceResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = onepanel.core.api.models.get_workflow_execution_statistics_for_namespace_response.GetWorkflowExecutionStatisticsForNamespaceResponse() # noqa: E501 + if include_optional : + return GetWorkflowExecutionStatisticsForNamespaceResponse( + stats = onepanel.core.api.models.workflow_execution_statistic_report.WorkflowExecutionStatisticReport( + total = 56, + last_executed = '0', + running = 56, + completed = 56, + failed = 56, + terminated = 56, ) + ) + else : + return GetWorkflowExecutionStatisticsForNamespaceResponse( + ) + + def testGetWorkflowExecutionStatisticsForNamespaceResponse(self): + """Test GetWorkflowExecutionStatisticsForNamespaceResponse""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_workspace_statistics_for_namespace_response.py b/test/test_get_workspace_statistics_for_namespace_response.py new file mode 100644 index 0000000..16c4532 --- /dev/null +++ b/test/test_get_workspace_statistics_for_namespace_response.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Onepanel + + Onepanel API # noqa: E501 + + The version of the OpenAPI document: 0.13.0 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import onepanel.core.api +from onepanel.core.api.models.get_workspace_statistics_for_namespace_response import GetWorkspaceStatisticsForNamespaceResponse # noqa: E501 +from onepanel.core.api.rest import ApiException + +class TestGetWorkspaceStatisticsForNamespaceResponse(unittest.TestCase): + """GetWorkspaceStatisticsForNamespaceResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test GetWorkspaceStatisticsForNamespaceResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = onepanel.core.api.models.get_workspace_statistics_for_namespace_response.GetWorkspaceStatisticsForNamespaceResponse() # noqa: E501 + if include_optional : + return GetWorkspaceStatisticsForNamespaceResponse( + stats = onepanel.core.api.models.workspace_statistic_report.WorkspaceStatisticReport( + total = 56, + last_created = '0', + launching = 56, + running = 56, + updating = 56, + pausing = 56, + paused = 56, + terminating = 56, + terminated = 56, + failed_to_pause = 56, + failed_to_resume = 56, + failed_to_terminate = 56, + failed_to_launch = 56, + failed_to_update = 56, + failed = 56, ) + ) + else : + return GetWorkspaceStatisticsForNamespaceResponse( + ) + + def testGetWorkspaceStatisticsForNamespaceResponse(self): + """Test GetWorkspaceStatisticsForNamespaceResponse""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_google_protobuf_any.py b/test/test_google_protobuf_any.py index 1220cd4..25c1835 100644 --- a/test/test_google_protobuf_any.py +++ b/test/test_google_protobuf_any.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + workflow.proto - Onepanel API # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ diff --git a/test/test_grpc_gateway_runtime_error.py b/test/test_grpc_gateway_runtime_error.py index 8fcfe38..3062013 100644 --- a/test/test_grpc_gateway_runtime_error.py +++ b/test/test_grpc_gateway_runtime_error.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + workflow.proto - Onepanel API # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ diff --git a/test/test_grpc_gateway_runtime_stream_error.py b/test/test_grpc_gateway_runtime_stream_error.py index 1c934d6..b9725ec 100644 --- a/test/test_grpc_gateway_runtime_stream_error.py +++ b/test/test_grpc_gateway_runtime_stream_error.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + workflow.proto - Onepanel API # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ diff --git a/test/test_is_authorized.py b/test/test_is_authorized.py index b21203c..d387b4c 100644 --- a/test/test_is_authorized.py +++ b/test/test_is_authorized.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 0.11.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_is_authorized_response.py b/test/test_is_authorized_response.py index 05aef12..f95ca2a 100644 --- a/test/test_is_authorized_response.py +++ b/test/test_is_authorized_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ diff --git a/test/test_is_valid_token_response.py b/test/test_is_valid_token_response.py index 1250a1d..c4bd2f0 100644 --- a/test/test_is_valid_token_response.py +++ b/test/test_is_valid_token_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ diff --git a/test/test_key_value.py b/test/test_key_value.py index f8d96f6..ba68511 100644 --- a/test/test_key_value.py +++ b/test/test_key_value.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ diff --git a/test/test_label_service_api.py b/test/test_label_service_api.py index da34de0..23e769d 100644 --- a/test/test_label_service_api.py +++ b/test/test_label_service_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ @@ -28,26 +28,26 @@ def setUp(self): def tearDown(self): pass - def test_add_labels(self): - """Test case for add_labels + def test_label_service_add_labels(self): + """Test case for label_service_add_labels """ pass - def test_delete_label(self): - """Test case for delete_label + def test_label_service_delete_label(self): + """Test case for label_service_delete_label """ pass - def test_get_labels(self): - """Test case for get_labels + def test_label_service_get_labels(self): + """Test case for label_service_get_labels """ pass - def test_replace_labels(self): - """Test case for replace_labels + def test_label_service_replace_labels(self): + """Test case for label_service_replace_labels """ pass diff --git a/test/test_labels.py b/test/test_labels.py index 20b4b97..fef83ae 100644 --- a/test/test_labels.py +++ b/test/test_labels.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ diff --git a/test/test_list_cron_workflows_response.py b/test/test_list_cron_workflows_response.py index e0431a3..bc45432 100644 --- a/test/test_list_cron_workflows_response.py +++ b/test/test_list_cron_workflows_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ @@ -40,7 +40,6 @@ def make_instance(self, include_optional): cron_workflows = [ onepanel.core.api.models.cron_workflow.CronWorkflow( name = '0', - uid = '0', manifest = '0', workflow_execution = onepanel.core.api.models.workflow_execution.WorkflowExecution( created_at = '0', @@ -66,7 +65,6 @@ def make_instance(self, include_optional): ], workflow_template = onepanel.core.api.models.workflow_template.WorkflowTemplate( created_at = '0', - modified_at = '0', uid = '0', name = '0', version = '0', @@ -84,8 +82,7 @@ def make_instance(self, include_optional): last_executed = '0', running = 56, completed = 56, - failed = 56, - terminated = 56, ), + failed = 56, ), cron_stats = onepanel.core.api.models.cron_workflow_statistics_report.CronWorkflowStatisticsReport( total = 56, ), ), labels = [ @@ -97,8 +94,7 @@ def make_instance(self, include_optional): onepanel.core.api.models.key_value.KeyValue( key = '0', value = '0', ) - ], - namespace = '0', ) + ], ) ], page = 56, pages = 56, diff --git a/test/test_list_files_response.py b/test/test_list_files_response.py index 7d3f36e..c4dd1cf 100644 --- a/test/test_list_files_response.py +++ b/test/test_list_files_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ diff --git a/test/test_list_namespaces_response.py b/test/test_list_namespaces_response.py index 92bfcec..a5bfbce 100644 --- a/test/test_list_namespaces_response.py +++ b/test/test_list_namespaces_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + workflow.proto - Onepanel API # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ @@ -40,10 +40,7 @@ def make_instance(self, include_optional): namespaces = [ onepanel.core.api.models.namespace.Namespace( name = '0', ) - ], - page = 56, - pages = 56, - total_count = 56 + ] ) else : return ListNamespacesResponse( diff --git a/test/test_list_secrets_response.py b/test/test_list_secrets_response.py index 91ba16e..24e3f06 100644 --- a/test/test_list_secrets_response.py +++ b/test/test_list_secrets_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + workflow.proto - Onepanel API # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ diff --git a/test/test_list_services_response.py b/test/test_list_services_response.py index 2faa9ee..d248bda 100644 --- a/test/test_list_services_response.py +++ b/test/test_list_services_response.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_list_workflow_executions_response.py b/test/test_list_workflow_executions_response.py index 2bfa55c..6d90ccb 100644 --- a/test/test_list_workflow_executions_response.py +++ b/test/test_list_workflow_executions_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + workflow.proto - Onepanel API # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ @@ -47,48 +47,18 @@ def make_instance(self, include_optional): finished_at = '0', manifest = '0', parameters = [ - onepanel.core.api.models.parameter.Parameter( + onepanel.core.api.models.workflow_execution_parameter.WorkflowExecutionParameter( name = '0', - value = '0', - type = '0', - display_name = '0', - hint = '0', - required = True, - options = [ - onepanel.core.api.models.parameter_option.ParameterOption( - name = '0', - value = '0', ) - ], ) + value = '0', ) ], workflow_template = onepanel.core.api.models.workflow_template.WorkflowTemplate( created_at = '0', - modified_at = '0', uid = '0', name = '0', - version = '0', - versions = '0', + version = 56, manifest = '0', is_latest = True, - is_archived = True, - labels = [ - onepanel.core.api.models.key_value.KeyValue( - key = '0', - value = '0', ) - ], - stats = onepanel.core.api.models.workflow_execution_statistic_report.WorkflowExecutionStatisticReport( - total = 56, - last_executed = '0', - running = 56, - completed = 56, - failed = 56, - terminated = 56, ), - cron_stats = onepanel.core.api.models.cron_workflow_statistics_report.CronWorkflowStatisticsReport( - total = 56, ), ), - labels = [ - onepanel.core.api.models.key_value.KeyValue( - key = '0', - value = '0', ) - ], ) + is_archived = True, ), ) ], page = 56, pages = 56, diff --git a/test/test_list_workflow_template_versions_response.py b/test/test_list_workflow_template_versions_response.py index 9e64274..a0cc6ad 100644 --- a/test/test_list_workflow_template_versions_response.py +++ b/test/test_list_workflow_template_versions_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + workflow.proto - Onepanel API # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ @@ -40,28 +40,12 @@ def make_instance(self, include_optional): workflow_templates = [ onepanel.core.api.models.workflow_template.WorkflowTemplate( created_at = '0', - modified_at = '0', uid = '0', name = '0', - version = '0', - versions = '0', + version = 56, manifest = '0', is_latest = True, - is_archived = True, - labels = [ - onepanel.core.api.models.key_value.KeyValue( - key = '0', - value = '0', ) - ], - stats = onepanel.core.api.models.workflow_execution_statistic_report.WorkflowExecutionStatisticReport( - total = 56, - last_executed = '0', - running = 56, - completed = 56, - failed = 56, - terminated = 56, ), - cron_stats = onepanel.core.api.models.cron_workflow_statistics_report.CronWorkflowStatisticsReport( - total = 56, ), ) + is_archived = True, ) ] ) else : diff --git a/test/test_list_workflow_templates_response.py b/test/test_list_workflow_templates_response.py index aa96fa7..20a17de 100644 --- a/test/test_list_workflow_templates_response.py +++ b/test/test_list_workflow_templates_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + workflow.proto - Onepanel API # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ @@ -40,32 +40,13 @@ def make_instance(self, include_optional): workflow_templates = [ onepanel.core.api.models.workflow_template.WorkflowTemplate( created_at = '0', - modified_at = '0', uid = '0', name = '0', - version = '0', - versions = '0', + version = 56, manifest = '0', is_latest = True, - is_archived = True, - labels = [ - onepanel.core.api.models.key_value.KeyValue( - key = '0', - value = '0', ) - ], - stats = onepanel.core.api.models.workflow_execution_statistic_report.WorkflowExecutionStatisticReport( - total = 56, - last_executed = '0', - running = 56, - completed = 56, - failed = 56, - terminated = 56, ), - cron_stats = onepanel.core.api.models.cron_workflow_statistics_report.CronWorkflowStatisticsReport( - total = 56, ), ) - ], - page = 56, - pages = 56, - total_count = 56 + is_archived = True, ) + ] ) else : return ListWorkflowTemplatesResponse( diff --git a/test/test_list_workspace_response.py b/test/test_list_workspace_response.py index 0b04a1f..fccf3ba 100644 --- a/test/test_list_workspace_response.py +++ b/test/test_list_workspace_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ @@ -66,7 +66,6 @@ def make_instance(self, include_optional): created_at = '0', workflow_template = onepanel.core.api.models.workflow_template.WorkflowTemplate( created_at = '0', - modified_at = '0', uid = '0', name = '0', version = '0', @@ -84,16 +83,9 @@ def make_instance(self, include_optional): last_executed = '0', running = 56, completed = 56, - failed = 56, - terminated = 56, ), + failed = 56, ), cron_stats = onepanel.core.api.models.cron_workflow_statistics_report.CronWorkflowStatisticsReport( - total = 56, ), ), - labels = [ - onepanel.core.api.models.key_value.KeyValue( - key = '0', - value = '0', ) - ], - is_archived = True, ), + total = 56, ), ), ), status = onepanel.core.api.models.workspace_status.WorkspaceStatus( phase = '0', started_at = '0', @@ -103,16 +95,6 @@ def make_instance(self, include_optional): onepanel.core.api.models.key_value.KeyValue( key = '0', value = '0', ) - ], - url = '0', - template_parameters = [ - onepanel.core.api.models.parameter.Parameter( - name = '0', - value = '0', - type = '0', - display_name = '0', - hint = '0', - required = True, ) ], ) ], page = 56, diff --git a/test/test_list_workspace_template_versions_response.py b/test/test_list_workspace_template_versions_response.py index 2b5b92f..509ca24 100644 --- a/test/test_list_workspace_template_versions_response.py +++ b/test/test_list_workspace_template_versions_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ @@ -47,7 +47,6 @@ def make_instance(self, include_optional): created_at = '0', workflow_template = onepanel.core.api.models.workflow_template.WorkflowTemplate( created_at = '0', - modified_at = '0', uid = '0', name = '0', version = '0', @@ -65,16 +64,9 @@ def make_instance(self, include_optional): last_executed = '0', running = 56, completed = 56, - failed = 56, - terminated = 56, ), + failed = 56, ), cron_stats = onepanel.core.api.models.cron_workflow_statistics_report.CronWorkflowStatisticsReport( - total = 56, ), ), - labels = [ - onepanel.core.api.models.key_value.KeyValue( - key = '0', - value = '0', ) - ], - is_archived = True, ) + total = 56, ), ), ) ] ) else : diff --git a/test/test_list_workspace_templates_response.py b/test/test_list_workspace_templates_response.py index b7613e9..3d7e7f6 100644 --- a/test/test_list_workspace_templates_response.py +++ b/test/test_list_workspace_templates_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ @@ -47,7 +47,6 @@ def make_instance(self, include_optional): created_at = '0', workflow_template = onepanel.core.api.models.workflow_template.WorkflowTemplate( created_at = '0', - modified_at = '0', uid = '0', name = '0', version = '0', @@ -65,16 +64,9 @@ def make_instance(self, include_optional): last_executed = '0', running = 56, completed = 56, - failed = 56, - terminated = 56, ), + failed = 56, ), cron_stats = onepanel.core.api.models.cron_workflow_statistics_report.CronWorkflowStatisticsReport( - total = 56, ), ), - labels = [ - onepanel.core.api.models.key_value.KeyValue( - key = '0', - value = '0', ) - ], - is_archived = True, ) + total = 56, ), ), ) ], page = 56, pages = 56, diff --git a/test/test_log_entry.py b/test/test_log_entry.py index 73d2d41..64b6803 100644 --- a/test/test_log_entry.py +++ b/test/test_log_entry.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + workflow.proto - Onepanel API # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ diff --git a/test/test_metric.py b/test/test_metric.py index 24a3c65..fb634fa 100644 --- a/test/test_metric.py +++ b/test/test_metric.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + workflow.proto - Onepanel API # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ diff --git a/test/test_namespace.py b/test/test_namespace.py index 129c60e..e34735d 100644 --- a/test/test_namespace.py +++ b/test/test_namespace.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + workflow.proto - Onepanel API # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ diff --git a/test/test_namespace_service_api.py b/test/test_namespace_service_api.py index fa9d642..babb30b 100644 --- a/test/test_namespace_service_api.py +++ b/test/test_namespace_service_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + workflow.proto - Onepanel API # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ @@ -28,12 +28,6 @@ def setUp(self): def tearDown(self): pass - def test_create_namespace(self): - """Test case for create_namespace - - """ - pass - def test_list_namespaces(self): """Test case for list_namespaces diff --git a/test/test_node_pool.py b/test/test_node_pool.py index f8ef843..1d48bb9 100644 --- a/test/test_node_pool.py +++ b/test/test_node_pool.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 0.11.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_node_pool_option.py b/test/test_node_pool_option.py index cb40539..f7e73bb 100644 --- a/test/test_node_pool_option.py +++ b/test/test_node_pool_option.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 0.11.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_parameter.py b/test/test_parameter.py index fbf4e8d..5ff9cff 100644 --- a/test/test_parameter.py +++ b/test/test_parameter.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ diff --git a/test/test_parameter_option.py b/test/test_parameter_option.py index ca657c1..490a9fb 100644 --- a/test/test_parameter_option.py +++ b/test/test_parameter_option.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ diff --git a/test/test_secret.py b/test/test_secret.py index 9742a8a..683ef29 100644 --- a/test/test_secret.py +++ b/test/test_secret.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + workflow.proto - Onepanel API # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ diff --git a/test/test_secret_exists_response.py b/test/test_secret_exists_response.py index 2816caf..982287f 100644 --- a/test/test_secret_exists_response.py +++ b/test/test_secret_exists_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + workflow.proto - Onepanel API # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ diff --git a/test/test_secret_service_api.py b/test/test_secret_service_api.py index b5a36e8..3a32ca3 100644 --- a/test/test_secret_service_api.py +++ b/test/test_secret_service_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + workflow.proto - Onepanel API # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ diff --git a/test/test_service.py b/test/test_service.py index 6b4211a..9e323d3 100644 --- a/test/test_service.py +++ b/test/test_service.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_service_service_api.py b/test/test_service_service_api.py index 2b5a31a..8db7a01 100644 --- a/test/test_service_service_api.py +++ b/test/test_service_service_api.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_statistics.py b/test/test_statistics.py index 78f546d..89710b0 100644 --- a/test/test_statistics.py +++ b/test/test_statistics.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ diff --git a/test/test_stream_result_of_log_entry.py b/test/test_stream_result_of_log_entry.py index 4f200fe..46be39a 100644 --- a/test/test_stream_result_of_log_entry.py +++ b/test/test_stream_result_of_log_entry.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + workflow.proto - Onepanel API # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ diff --git a/test/test_stream_result_of_workflow_execution.py b/test/test_stream_result_of_workflow_execution.py index c701dc3..72e2013 100644 --- a/test/test_stream_result_of_workflow_execution.py +++ b/test/test_stream_result_of_workflow_execution.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + workflow.proto - Onepanel API # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ @@ -45,48 +45,18 @@ def make_instance(self, include_optional): finished_at = '0', manifest = '0', parameters = [ - onepanel.core.api.models.parameter.Parameter( + onepanel.core.api.models.workflow_execution_parameter.WorkflowExecutionParameter( name = '0', - value = '0', - type = '0', - display_name = '0', - hint = '0', - required = True, - options = [ - onepanel.core.api.models.parameter_option.ParameterOption( - name = '0', - value = '0', ) - ], ) + value = '0', ) ], workflow_template = onepanel.core.api.models.workflow_template.WorkflowTemplate( created_at = '0', - modified_at = '0', uid = '0', name = '0', - version = '0', - versions = '0', + version = 56, manifest = '0', is_latest = True, - is_archived = True, - labels = [ - onepanel.core.api.models.key_value.KeyValue( - key = '0', - value = '0', ) - ], - stats = onepanel.core.api.models.workflow_execution_statistic_report.WorkflowExecutionStatisticReport( - total = 56, - last_executed = '0', - running = 56, - completed = 56, - failed = 56, - terminated = 56, ), - cron_stats = onepanel.core.api.models.cron_workflow_statistics_report.CronWorkflowStatisticsReport( - total = 56, ), ), - labels = [ - onepanel.core.api.models.key_value.KeyValue( - key = '0', - value = '0', ) - ], ), + is_archived = True, ), ), error = onepanel.core.api.models.grpc/gateway/runtime/stream_error.grpc.gateway.runtime.StreamError( grpc_code = 56, http_code = 56, diff --git a/test/test_token_wrapper.py b/test/test_token_wrapper.py index 92bb4c4..4b34cc3 100644 --- a/test/test_token_wrapper.py +++ b/test/test_token_wrapper.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ diff --git a/test/test_update_secret_key_value_response.py b/test/test_update_secret_key_value_response.py index 10a2f78..6902aa6 100644 --- a/test/test_update_secret_key_value_response.py +++ b/test/test_update_secret_key_value_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + workflow.proto - Onepanel API # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ diff --git a/test/test_update_workspace_body.py b/test/test_update_workspace_body.py index d5087f1..e50898d 100644 --- a/test/test_update_workspace_body.py +++ b/test/test_update_workspace_body.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ diff --git a/test/test_workflow_execution.py b/test/test_workflow_execution.py index 262bda8..9fa6092 100644 --- a/test/test_workflow_execution.py +++ b/test/test_workflow_execution.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + workflow.proto - Onepanel API # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ @@ -44,48 +44,18 @@ def make_instance(self, include_optional): finished_at = '0', manifest = '0', parameters = [ - onepanel.core.api.models.parameter.Parameter( + onepanel.core.api.models.workflow_execution_parameter.WorkflowExecutionParameter( name = '0', - value = '0', - type = '0', - display_name = '0', - hint = '0', - required = True, - options = [ - onepanel.core.api.models.parameter_option.ParameterOption( - name = '0', - value = '0', ) - ], ) + value = '0', ) ], workflow_template = onepanel.core.api.models.workflow_template.WorkflowTemplate( created_at = '0', - modified_at = '0', uid = '0', name = '0', - version = '0', - versions = '0', + version = 56, manifest = '0', is_latest = True, - is_archived = True, - labels = [ - onepanel.core.api.models.key_value.KeyValue( - key = '0', - value = '0', ) - ], - stats = onepanel.core.api.models.workflow_execution_statistic_report.WorkflowExecutionStatisticReport( - total = 56, - last_executed = '0', - running = 56, - completed = 56, - failed = 56, - terminated = 56, ), - cron_stats = onepanel.core.api.models.cron_workflow_statistics_report.CronWorkflowStatisticsReport( - total = 56, ), ), - labels = [ - onepanel.core.api.models.key_value.KeyValue( - key = '0', - value = '0', ) - ] + is_archived = True, ) ) else : return WorkflowExecution( diff --git a/test/test_workflow_execution_metadata.py b/test/test_workflow_execution_metadata.py index c9827bd..3d0cb5e 100644 --- a/test/test_workflow_execution_metadata.py +++ b/test/test_workflow_execution_metadata.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 0.13.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_workflow_execution_statistic_report.py b/test/test_workflow_execution_statistic_report.py index 3449e91..b1287aa 100644 --- a/test/test_workflow_execution_statistic_report.py +++ b/test/test_workflow_execution_statistic_report.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ @@ -40,8 +40,7 @@ def make_instance(self, include_optional): last_executed = '0', running = 56, completed = 56, - failed = 56, - terminated = 56 + failed = 56 ) else : return WorkflowExecutionStatisticReport( diff --git a/test/test_workflow_execution_status.py b/test/test_workflow_execution_status.py index 70d7bbe..d26bd64 100644 --- a/test/test_workflow_execution_status.py +++ b/test/test_workflow_execution_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ diff --git a/test/test_workflow_service_api.py b/test/test_workflow_service_api.py index 0aa1549..f2e9753 100644 --- a/test/test_workflow_service_api.py +++ b/test/test_workflow_service_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + workflow.proto - Onepanel API # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ @@ -28,14 +28,8 @@ def setUp(self): def tearDown(self): pass - def test_add_workflow_execution_statistics(self): - """Test case for add_workflow_execution_statistics - - """ - pass - - def test_clone_workflow_execution(self): - """Test case for clone_workflow_execution + def test_archive_workflow_template(self): + """Test case for archive_workflow_template """ pass @@ -46,14 +40,14 @@ def test_create_workflow_execution(self): """ pass - def test_cron_start_workflow_execution_statistic(self): - """Test case for cron_start_workflow_execution_statistic + def test_create_workflow_template(self): + """Test case for create_workflow_template """ pass - def test_get_artifact(self): - """Test case for get_artifact + def test_create_workflow_template_version(self): + """Test case for create_workflow_template_version """ pass @@ -76,8 +70,14 @@ def test_get_workflow_execution_metrics(self): """ pass - def test_list_files(self): - """Test case for list_files + def test_get_workflow_template(self): + """Test case for get_workflow_template + + """ + pass + + def test_get_workflow_template2(self): + """Test case for get_workflow_template2 """ pass @@ -88,6 +88,18 @@ def test_list_workflow_executions(self): """ pass + def test_list_workflow_template_versions(self): + """Test case for list_workflow_template_versions + + """ + pass + + def test_list_workflow_templates(self): + """Test case for list_workflow_templates + + """ + pass + def test_resubmit_workflow_execution(self): """Test case for resubmit_workflow_execution @@ -100,8 +112,8 @@ def test_terminate_workflow_execution(self): """ pass - def test_update_workflow_execution_status(self): - """Test case for update_workflow_execution_status + def test_update_workflow_template_version(self): + """Test case for update_workflow_template_version """ pass diff --git a/test/test_workflow_template.py b/test/test_workflow_template.py index 68ef33b..633b0a3 100644 --- a/test/test_workflow_template.py +++ b/test/test_workflow_template.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + workflow.proto - Onepanel API # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ @@ -37,28 +37,12 @@ def make_instance(self, include_optional): if include_optional : return WorkflowTemplate( created_at = '0', - modified_at = '0', uid = '0', name = '0', - version = '0', - versions = '0', + version = 56, manifest = '0', is_latest = True, - is_archived = True, - labels = [ - onepanel.core.api.models.key_value.KeyValue( - key = '0', - value = '0', ) - ], - stats = onepanel.core.api.models.workflow_execution_statistic_report.WorkflowExecutionStatisticReport( - total = 56, - last_executed = '0', - running = 56, - completed = 56, - failed = 56, - terminated = 56, ), - cron_stats = onepanel.core.api.models.cron_workflow_statistics_report.CronWorkflowStatisticsReport( - total = 56, ) + is_archived = True ) else : return WorkflowTemplate( diff --git a/test/test_workflow_template_service_api.py b/test/test_workflow_template_service_api.py index 47d9ecd..beea7b8 100644 --- a/test/test_workflow_template_service_api.py +++ b/test/test_workflow_template_service_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ @@ -28,56 +28,62 @@ def setUp(self): def tearDown(self): pass - def test_archive_workflow_template(self): - """Test case for archive_workflow_template + def test_workflow_template_service_archive_workflow_template(self): + """Test case for workflow_template_service_archive_workflow_template """ pass - def test_clone_workflow_template(self): - """Test case for clone_workflow_template + def test_workflow_template_service_clone_workflow_template(self): + """Test case for workflow_template_service_clone_workflow_template """ pass - def test_clone_workflow_template2(self): - """Test case for clone_workflow_template2 + def test_workflow_template_service_clone_workflow_template2(self): + """Test case for workflow_template_service_clone_workflow_template2 """ pass - def test_create_workflow_template(self): - """Test case for create_workflow_template + def test_workflow_template_service_create_workflow_template(self): + """Test case for workflow_template_service_create_workflow_template """ pass - def test_create_workflow_template_version(self): - """Test case for create_workflow_template_version + def test_workflow_template_service_create_workflow_template_version(self): + """Test case for workflow_template_service_create_workflow_template_version """ pass - def test_get_workflow_template(self): - """Test case for get_workflow_template + def test_workflow_template_service_get_workflow_template(self): + """Test case for workflow_template_service_get_workflow_template """ pass - def test_get_workflow_template2(self): - """Test case for get_workflow_template2 + def test_workflow_template_service_get_workflow_template2(self): + """Test case for workflow_template_service_get_workflow_template2 """ pass - def test_list_workflow_template_versions(self): - """Test case for list_workflow_template_versions + def test_workflow_template_service_list_workflow_template_versions(self): + """Test case for workflow_template_service_list_workflow_template_versions """ pass - def test_list_workflow_templates(self): - """Test case for list_workflow_templates + def test_workflow_template_service_list_workflow_templates(self): + """Test case for workflow_template_service_list_workflow_templates + + """ + pass + + def test_workflow_template_service_update_workflow_template_version(self): + """Test case for workflow_template_service_update_workflow_template_version """ pass diff --git a/test/test_workspace.py b/test/test_workspace.py index 8369434..5dbf569 100644 --- a/test/test_workspace.py +++ b/test/test_workspace.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ @@ -63,7 +63,6 @@ def make_instance(self, include_optional): created_at = '0', workflow_template = onepanel.core.api.models.workflow_template.WorkflowTemplate( created_at = '0', - modified_at = '0', uid = '0', name = '0', version = '0', @@ -81,41 +80,14 @@ def make_instance(self, include_optional): last_executed = '0', running = 56, completed = 56, - failed = 56, - terminated = 56, ), + failed = 56, ), cron_stats = onepanel.core.api.models.cron_workflow_statistics_report.CronWorkflowStatisticsReport( - total = 56, ), ), - labels = [ - onepanel.core.api.models.key_value.KeyValue( - key = '0', - value = '0', ) - ], - is_archived = True, ), + total = 56, ), ), ), status = onepanel.core.api.models.workspace_status.WorkspaceStatus( phase = '0', started_at = '0', paused_at = '0', - terminated_at = '0', ), - labels = [ - onepanel.core.api.models.key_value.KeyValue( - key = '0', - value = '0', ) - ], - url = '0', - template_parameters = [ - onepanel.core.api.models.parameter.Parameter( - name = '0', - value = '0', - type = '0', - display_name = '0', - hint = '0', - required = True, - options = [ - onepanel.core.api.models.parameter_option.ParameterOption( - name = '0', - value = '0', ) - ], ) - ] + terminated_at = '0', ) ) else : return Workspace( diff --git a/test/test_workspace_service_api.py b/test/test_workspace_service_api.py index 88b5cd1..5c98aee 100644 --- a/test/test_workspace_service_api.py +++ b/test/test_workspace_service_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ @@ -28,50 +28,14 @@ def setUp(self): def tearDown(self): pass - def test_create_workspace(self): - """Test case for create_workspace + def test_workspace_service_create_workspace(self): + """Test case for workspace_service_create_workspace """ pass - def test_delete_workspace(self): - """Test case for delete_workspace - - """ - pass - - def test_get_workspace(self): - """Test case for get_workspace - - """ - pass - - def test_list_workspaces(self): - """Test case for list_workspaces - - """ - pass - - def test_pause_workspace(self): - """Test case for pause_workspace - - """ - pass - - def test_resume_workspace(self): - """Test case for resume_workspace - - """ - pass - - def test_update_workspace(self): - """Test case for update_workspace - - """ - pass - - def test_update_workspace_status(self): - """Test case for update_workspace_status + def test_workspace_service_update_workspace_status(self): + """Test case for workspace_service_update_workspace_status """ pass diff --git a/test/test_workspace_statistic_report.py b/test/test_workspace_statistic_report.py new file mode 100644 index 0000000..c906a4b --- /dev/null +++ b/test/test_workspace_statistic_report.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Onepanel + + Onepanel API # noqa: E501 + + The version of the OpenAPI document: 0.13.0 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import onepanel.core.api +from onepanel.core.api.models.workspace_statistic_report import WorkspaceStatisticReport # noqa: E501 +from onepanel.core.api.rest import ApiException + +class TestWorkspaceStatisticReport(unittest.TestCase): + """WorkspaceStatisticReport unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test WorkspaceStatisticReport + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = onepanel.core.api.models.workspace_statistic_report.WorkspaceStatisticReport() # noqa: E501 + if include_optional : + return WorkspaceStatisticReport( + total = 56, + last_created = '0', + launching = 56, + running = 56, + updating = 56, + pausing = 56, + paused = 56, + terminating = 56, + terminated = 56, + failed_to_pause = 56, + failed_to_resume = 56, + failed_to_terminate = 56, + failed_to_launch = 56, + failed_to_update = 56, + failed = 56 + ) + else : + return WorkspaceStatisticReport( + ) + + def testWorkspaceStatisticReport(self): + """Test WorkspaceStatisticReport""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_workspace_status.py b/test/test_workspace_status.py index 63d8e6a..0af650f 100644 --- a/test/test_workspace_status.py +++ b/test/test_workspace_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ diff --git a/test/test_workspace_template.py b/test/test_workspace_template.py index 53b2c70..772dcb4 100644 --- a/test/test_workspace_template.py +++ b/test/test_workspace_template.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ @@ -44,7 +44,6 @@ def make_instance(self, include_optional): created_at = '0', workflow_template = onepanel.core.api.models.workflow_template.WorkflowTemplate( created_at = '0', - modified_at = '0', uid = '0', name = '0', version = '0', @@ -62,16 +61,9 @@ def make_instance(self, include_optional): last_executed = '0', running = 56, completed = 56, - failed = 56, - terminated = 56, ), + failed = 56, ), cron_stats = onepanel.core.api.models.cron_workflow_statistics_report.CronWorkflowStatisticsReport( - total = 56, ), ), - labels = [ - onepanel.core.api.models.key_value.KeyValue( - key = '0', - value = '0', ) - ], - is_archived = True + total = 56, ), ) ) else : return WorkspaceTemplate( diff --git a/test/test_workspace_template_service_api.py b/test/test_workspace_template_service_api.py index ed00e8f..b42a89a 100644 --- a/test/test_workspace_template_service_api.py +++ b/test/test_workspace_template_service_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel + Onepanel Core - Onepanel API # noqa: E501 + Onepanel Core project API # noqa: E501 - The version of the OpenAPI document: 0.12.0 + The version of the OpenAPI document: 1.0.0-beta1 Generated by: https://openapi-generator.tech """ @@ -28,44 +28,38 @@ def setUp(self): def tearDown(self): pass - def test_archive_workspace_template(self): - """Test case for archive_workspace_template + def test_workspace_template_service_create_workspace_template(self): + """Test case for workspace_template_service_create_workspace_template """ pass - def test_create_workspace_template(self): - """Test case for create_workspace_template + def test_workspace_template_service_generate_workspace_template_workflow_template(self): + """Test case for workspace_template_service_generate_workspace_template_workflow_template """ pass - def test_generate_workspace_template_workflow_template(self): - """Test case for generate_workspace_template_workflow_template + def test_workspace_template_service_get_workspace_template(self): + """Test case for workspace_template_service_get_workspace_template """ pass - def test_get_workspace_template(self): - """Test case for get_workspace_template + def test_workspace_template_service_list_workspace_template_versions(self): + """Test case for workspace_template_service_list_workspace_template_versions """ pass - def test_list_workspace_template_versions(self): - """Test case for list_workspace_template_versions + def test_workspace_template_service_list_workspace_templates(self): + """Test case for workspace_template_service_list_workspace_templates """ pass - def test_list_workspace_templates(self): - """Test case for list_workspace_templates - - """ - pass - - def test_update_workspace_template(self): - """Test case for update_workspace_template + def test_workspace_template_service_update_workspace_template(self): + """Test case for workspace_template_service_update_workspace_template """ pass From d985842d91cef037be445ca423a7dad7a0543316 Mon Sep 17 00:00:00 2001 From: rushtehrani Date: Wed, 7 Oct 2020 11:19:21 -0700 Subject: [PATCH 2/2] update examples to use latest config --- examples/execute-workflow.ipynb | 6 +++--- examples/launch-workspace.ipynb | 6 +++--- examples/stream-workflow-logs.ipynb | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/execute-workflow.ipynb b/examples/execute-workflow.ipynb index 2bc2656..74c4fa8 100644 --- a/examples/execute-workflow.ipynb +++ b/examples/execute-workflow.ipynb @@ -194,10 +194,10 @@ "configuration = onepanel.core.api.Configuration(\n", " host=os.getenv('ONEPANEL_API_URL'),\n", " api_key={\n", - " 'Bearer': token\n", + " 'authorization': token\n", " }\n", ")\n", - "configuration.api_key_prefix['Bearer'] = 'Bearer'\n", + "configuration.api_key_prefix['authorization'] = 'Bearer'\n", "\n", "# Enter a context with an instance of the API client\n", "with onepanel.core.api.ApiClient(configuration) as api_client:\n", @@ -248,4 +248,4 @@ }, "nbformat": 4, "nbformat_minor": 4 -} +} \ No newline at end of file diff --git a/examples/launch-workspace.ipynb b/examples/launch-workspace.ipynb index 9a0307f..607bc3b 100644 --- a/examples/launch-workspace.ipynb +++ b/examples/launch-workspace.ipynb @@ -67,10 +67,10 @@ "configuration = onepanel.core.api.Configuration(\n", " host=os.getenv('ONEPANEL_API_URL'),\n", " api_key={\n", - " 'Bearer': token\n", + " 'authorization': token\n", " }\n", ")\n", - "configuration.api_key_prefix['Bearer'] = 'Bearer'\n", + "configuration.api_key_prefix['authorization'] = 'Bearer'\n", "\n", "# Enter a context with an instance of the API client\n", "with onepanel.core.api.ApiClient(configuration) as api_client:\n", @@ -126,4 +126,4 @@ }, "nbformat": 4, "nbformat_minor": 4 -} +} \ No newline at end of file diff --git a/examples/stream-workflow-logs.ipynb b/examples/stream-workflow-logs.ipynb index 59fe55f..1249a19 100644 --- a/examples/stream-workflow-logs.ipynb +++ b/examples/stream-workflow-logs.ipynb @@ -225,10 +225,10 @@ "configuration = onepanel.core.api.Configuration(\n", " host=os.getenv('ONEPANEL_API_URL'),\n", " api_key={\n", - " 'Bearer': token\n", + " 'authorization': token\n", " }\n", ")\n", - "configuration.api_key_prefix['Bearer'] = 'Bearer'\n", + "configuration.api_key_prefix['authorization'] = 'Bearer'\n", "\n", "# Enter a context with an instance of the API client\n", "with onepanel.core.api.ApiClient(configuration) as api_client:\n", @@ -279,4 +279,4 @@ }, "nbformat": 4, "nbformat_minor": 4 -} +} \ No newline at end of file