From cb20a72f303c89a84c58d1dff0b8362a9ec87c41 Mon Sep 17 00:00:00 2001 From: Andrey Melnikov Date: Tue, 20 Oct 2020 11:13:59 -0700 Subject: [PATCH] feat: update to v0.14.0 --- README.md | 6 +- docs/AuthServiceApi.md | 4 +- docs/IsValidTokenRequest.md | 11 ++ docs/IsValidTokenResponse.md | 2 + onepanel/core/api/__init__.py | 6 +- onepanel/core/api/api/auth_service_api.py | 6 +- onepanel/core/api/api/config_service_api.py | 2 +- .../core/api/api/cron_workflow_service_api.py | 2 +- onepanel/core/api/api/label_service_api.py | 2 +- .../core/api/api/namespace_service_api.py | 2 +- onepanel/core/api/api/secret_service_api.py | 2 +- onepanel/core/api/api/service_service_api.py | 2 +- onepanel/core/api/api/workflow_service_api.py | 2 +- .../api/api/workflow_template_service_api.py | 2 +- .../core/api/api/workspace_service_api.py | 2 +- .../api/api/workspace_template_service_api.py | 2 +- onepanel/core/api/api_client.py | 4 +- onepanel/core/api/configuration.py | 6 +- onepanel/core/api/exceptions.py | 2 +- onepanel/core/api/models/__init__.py | 4 +- .../models/add_secret_key_value_response.py | 2 +- .../archive_workflow_template_response.py | 2 +- onepanel/core/api/models/artifact_response.py | 2 +- .../models/create_workflow_execution_body.py | 2 +- .../core/api/models/create_workspace_body.py | 2 +- onepanel/core/api/models/cron_workflow.py | 2 +- .../models/cron_workflow_statistics_report.py | 2 +- .../api/models/delete_secret_key_response.py | 2 +- .../core/api/models/delete_secret_response.py | 2 +- onepanel/core/api/models/file.py | 2 +- .../core/api/models/get_config_response.py | 2 +- .../core/api/models/get_labels_response.py | 2 +- ...get_workflow_execution_metrics_response.py | 2 +- ...ution_statistics_for_namespace_response.py | 2 +- ...space_statistics_for_namespace_response.py | 2 +- .../core/api/models/google_protobuf_any.py | 2 +- .../api/models/grpc_gateway_runtime_error.py | 2 +- .../grpc_gateway_runtime_stream_error.py | 2 +- onepanel/core/api/models/is_authorized.py | 2 +- .../core/api/models/is_authorized_response.py | 2 +- .../core/api/models/is_valid_token_request.py | 146 ++++++++++++++++++ .../api/models/is_valid_token_response.py | 60 ++++++- onepanel/core/api/models/key_value.py | 2 +- onepanel/core/api/models/labels.py | 2 +- .../models/list_cron_workflows_response.py | 2 +- .../core/api/models/list_files_response.py | 2 +- .../api/models/list_namespaces_response.py | 2 +- .../core/api/models/list_secrets_response.py | 2 +- .../core/api/models/list_services_response.py | 2 +- .../list_workflow_executions_response.py | 2 +- ...ist_workflow_template_versions_response.py | 2 +- .../list_workflow_templates_response.py | 2 +- .../api/models/list_workspace_response.py | 2 +- ...st_workspace_template_versions_response.py | 2 +- .../list_workspace_templates_response.py | 2 +- onepanel/core/api/models/log_entry.py | 2 +- onepanel/core/api/models/metric.py | 2 +- onepanel/core/api/models/namespace.py | 2 +- onepanel/core/api/models/node_pool.py | 2 +- onepanel/core/api/models/node_pool_option.py | 2 +- onepanel/core/api/models/parameter.py | 2 +- onepanel/core/api/models/parameter_option.py | 2 +- onepanel/core/api/models/secret.py | 2 +- .../core/api/models/secret_exists_response.py | 2 +- onepanel/core/api/models/service.py | 2 +- onepanel/core/api/models/statistics.py | 2 +- .../api/models/stream_result_of_log_entry.py | 2 +- .../stream_result_of_workflow_execution.py | 2 +- .../update_secret_key_value_response.py | 2 +- .../core/api/models/update_workspace_body.py | 2 +- .../core/api/models/workflow_execution.py | 2 +- .../api/models/workflow_execution_metadata.py | 2 +- .../workflow_execution_statistic_report.py | 2 +- .../api/models/workflow_execution_status.py | 2 +- onepanel/core/api/models/workflow_template.py | 2 +- onepanel/core/api/models/workspace.py | 2 +- .../api/models/workspace_statistic_report.py | 2 +- onepanel/core/api/models/workspace_status.py | 2 +- .../core/api/models/workspace_template.py | 2 +- onepanel/core/api/rest.py | 2 +- 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 +- 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_request.py | 53 +++++++ 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_status.py | 6 +- test/test_workspace_template.py | 18 ++- test/test_workspace_template_service_api.py | 36 +++-- 149 files changed, 943 insertions(+), 404 deletions(-) create mode 100644 docs/IsValidTokenRequest.md create mode 100644 onepanel/core/api/models/is_valid_token_request.py create mode 100644 test/test_is_valid_token_request.py diff --git a/README.md b/README.md index 04478e8..5d8f05a 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: 0.13.0 -- Package version: v0.13.0 +- API version: 0.14.0 +- Package version: 0.14.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/onepanelio/core](https://github.com/onepanelio/core) @@ -185,6 +185,7 @@ Class | Method | HTTP request | Description - [GrpcGatewayRuntimeStreamError](docs/GrpcGatewayRuntimeStreamError.md) - [IsAuthorized](docs/IsAuthorized.md) - [IsAuthorizedResponse](docs/IsAuthorizedResponse.md) + - [IsValidTokenRequest](docs/IsValidTokenRequest.md) - [IsValidTokenResponse](docs/IsValidTokenResponse.md) - [KeyValue](docs/KeyValue.md) - [Labels](docs/Labels.md) @@ -212,7 +213,6 @@ Class | Method | HTTP request | Description - [Statistics](docs/Statistics.md) - [StreamResultOfLogEntry](docs/StreamResultOfLogEntry.md) - [StreamResultOfWorkflowExecution](docs/StreamResultOfWorkflowExecution.md) - - [TokenWrapper](docs/TokenWrapper.md) - [UpdateSecretKeyValueResponse](docs/UpdateSecretKeyValueResponse.md) - [UpdateWorkspaceBody](docs/UpdateWorkspaceBody.md) - [WorkflowExecution](docs/WorkflowExecution.md) diff --git a/docs/AuthServiceApi.md b/docs/AuthServiceApi.md index be6975f..a650835 100644 --- a/docs/AuthServiceApi.md +++ b/docs/AuthServiceApi.md @@ -122,7 +122,7 @@ configuration = onepanel.core.api.Configuration( with onepanel.core.api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = onepanel.core.api.AuthServiceApi(api_client) - body = onepanel.core.api.TokenWrapper() # TokenWrapper | + body = onepanel.core.api.IsValidTokenRequest() # IsValidTokenRequest | try: api_response = api_instance.is_valid_token(body) @@ -135,7 +135,7 @@ with onepanel.core.api.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**TokenWrapper**](TokenWrapper.md)| | + **body** | [**IsValidTokenRequest**](IsValidTokenRequest.md)| | ### Return type diff --git a/docs/IsValidTokenRequest.md b/docs/IsValidTokenRequest.md new file mode 100644 index 0000000..3424b91 --- /dev/null +++ b/docs/IsValidTokenRequest.md @@ -0,0 +1,11 @@ +# IsValidTokenRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**username** | **str** | | [optional] +**token** | **str** | | [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/IsValidTokenResponse.md b/docs/IsValidTokenResponse.md index 50da55a..c6fc0fe 100644 --- a/docs/IsValidTokenResponse.md +++ b/docs/IsValidTokenResponse.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **domain** | **str** | | [optional] +**token** | **str** | | [optional] +**username** | **str** | | [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/onepanel/core/api/__init__.py b/onepanel/core/api/__init__.py index f239201..600b7aa 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -__version__ = "v0.13.0" +__version__ = "0.14.0" # import apis into sdk package from onepanel.core.api.api.auth_service_api import AuthServiceApi @@ -58,6 +58,7 @@ from onepanel.core.api.models.grpc_gateway_runtime_stream_error import GrpcGatewayRuntimeStreamError from onepanel.core.api.models.is_authorized import IsAuthorized from onepanel.core.api.models.is_authorized_response import IsAuthorizedResponse +from onepanel.core.api.models.is_valid_token_request import IsValidTokenRequest from onepanel.core.api.models.is_valid_token_response import IsValidTokenResponse from onepanel.core.api.models.key_value import KeyValue from onepanel.core.api.models.labels import Labels @@ -85,7 +86,6 @@ from onepanel.core.api.models.statistics import Statistics from onepanel.core.api.models.stream_result_of_log_entry import StreamResultOfLogEntry from onepanel.core.api.models.stream_result_of_workflow_execution import StreamResultOfWorkflowExecution -from onepanel.core.api.models.token_wrapper import TokenWrapper from onepanel.core.api.models.update_secret_key_value_response import UpdateSecretKeyValueResponse from onepanel.core.api.models.update_workspace_body import UpdateWorkspaceBody from onepanel.core.api.models.workflow_execution import WorkflowExecution diff --git a/onepanel/core/api/api/auth_service_api.py b/onepanel/core/api/api/auth_service_api.py index 4c9070f..0ad5d6c 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ @@ -161,7 +161,7 @@ def is_valid_token(self, body, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param TokenWrapper body: (required) + :param IsValidTokenRequest body: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -185,7 +185,7 @@ def is_valid_token_with_http_info(self, body, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously - :param TokenWrapper body: (required) + :param IsValidTokenRequest body: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will diff --git a/onepanel/core/api/api/config_service_api.py b/onepanel/core/api/api/config_service_api.py index 532131c..8ae00c8 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/api/cron_workflow_service_api.py b/onepanel/core/api/api/cron_workflow_service_api.py index fd14e4b..d4ef347 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/api/label_service_api.py b/onepanel/core/api/api/label_service_api.py index 1140124..820b507 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/api/namespace_service_api.py b/onepanel/core/api/api/namespace_service_api.py index e1c9891..a09bb4d 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/api/secret_service_api.py b/onepanel/core/api/api/secret_service_api.py index 30b350e..2eacfb7 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/api/service_service_api.py b/onepanel/core/api/api/service_service_api.py index df556b1..541d550 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/api/workflow_service_api.py b/onepanel/core/api/api/workflow_service_api.py index 2112167..c8aa175 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/api/workflow_template_service_api.py b/onepanel/core/api/api/workflow_template_service_api.py index b36dc0c..8bd7e1c 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/api/workspace_service_api.py b/onepanel/core/api/api/workspace_service_api.py index 7ce4645..49479e0 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/api/workspace_template_service_api.py b/onepanel/core/api/api/workspace_template_service_api.py index 0435ce0..928b338 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/api_client.py b/onepanel/core/api/api_client.py index 38ce855..1f41f29 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: 0.13.0 + The version of the OpenAPI document: 0.14.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/v0.13.0/python' + self.user_agent = 'OpenAPI-Generator/0.14.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/onepanel/core/api/configuration.py b/onepanel/core/api/configuration.py index 94bfe95..5d94e78 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ @@ -351,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: 0.13.0\n"\ - "SDK Package Version: v0.13.0".\ + "Version of the API: 0.14.0\n"\ + "SDK Package Version: 0.14.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/onepanel/core/api/exceptions.py b/onepanel/core/api/exceptions.py index 3e55d9d..0b46772 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/__init__.py b/onepanel/core/api/models/__init__.py index 52e5b03..b88fe14 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ @@ -34,6 +34,7 @@ from onepanel.core.api.models.grpc_gateway_runtime_stream_error import GrpcGatewayRuntimeStreamError from onepanel.core.api.models.is_authorized import IsAuthorized from onepanel.core.api.models.is_authorized_response import IsAuthorizedResponse +from onepanel.core.api.models.is_valid_token_request import IsValidTokenRequest from onepanel.core.api.models.is_valid_token_response import IsValidTokenResponse from onepanel.core.api.models.key_value import KeyValue from onepanel.core.api.models.labels import Labels @@ -61,7 +62,6 @@ from onepanel.core.api.models.statistics import Statistics from onepanel.core.api.models.stream_result_of_log_entry import StreamResultOfLogEntry from onepanel.core.api.models.stream_result_of_workflow_execution import StreamResultOfWorkflowExecution -from onepanel.core.api.models.token_wrapper import TokenWrapper from onepanel.core.api.models.update_secret_key_value_response import UpdateSecretKeyValueResponse from onepanel.core.api.models.update_workspace_body import UpdateWorkspaceBody from onepanel.core.api.models.workflow_execution import WorkflowExecution 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 d8733f6..2ff0539 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/archive_workflow_template_response.py b/onepanel/core/api/models/archive_workflow_template_response.py index 1e19986..d1ff390 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/artifact_response.py b/onepanel/core/api/models/artifact_response.py index 0901ffb..764980b 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/create_workflow_execution_body.py b/onepanel/core/api/models/create_workflow_execution_body.py index ad0b5de..22e2fce 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/create_workspace_body.py b/onepanel/core/api/models/create_workspace_body.py index ea119ce..28830a2 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/cron_workflow.py b/onepanel/core/api/models/cron_workflow.py index 2e76dd6..dab9521 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/cron_workflow_statistics_report.py b/onepanel/core/api/models/cron_workflow_statistics_report.py index 07b601e..09cab7f 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/delete_secret_key_response.py b/onepanel/core/api/models/delete_secret_key_response.py index 29b7ba0..53f882a 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/delete_secret_response.py b/onepanel/core/api/models/delete_secret_response.py index c8f7b8c..34d3153 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/file.py b/onepanel/core/api/models/file.py index 7dec20c..46471e4 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/get_config_response.py b/onepanel/core/api/models/get_config_response.py index 212efff..81b1fc0 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/get_labels_response.py b/onepanel/core/api/models/get_labels_response.py index 1987c1c..30859ab 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ 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 149b85e..efcdd65 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ 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 index c312a18..31d6f7a 100644 --- 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 @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ 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 index d0fcde0..e60f7af 100644 --- a/onepanel/core/api/models/get_workspace_statistics_for_namespace_response.py +++ b/onepanel/core/api/models/get_workspace_statistics_for_namespace_response.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/google_protobuf_any.py b/onepanel/core/api/models/google_protobuf_any.py index 8897553..5395ff8 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/grpc_gateway_runtime_error.py b/onepanel/core/api/models/grpc_gateway_runtime_error.py index 1ef024b..3f0cf9a 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ 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 56a85f6..ce4f553 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/is_authorized.py b/onepanel/core/api/models/is_authorized.py index 73d9720..49d6f37 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/is_authorized_response.py b/onepanel/core/api/models/is_authorized_response.py index af3f469..aeafd6d 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/is_valid_token_request.py b/onepanel/core/api/models/is_valid_token_request.py new file mode 100644 index 0000000..fa0e21e --- /dev/null +++ b/onepanel/core/api/models/is_valid_token_request.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + Onepanel + + Onepanel API # noqa: E501 + + The version of the OpenAPI document: 0.14.0 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from onepanel.core.api.configuration import Configuration + + +class IsValidTokenRequest(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 = { + 'username': 'str', + 'token': 'str' + } + + attribute_map = { + 'username': 'username', + 'token': 'token' + } + + def __init__(self, username=None, token=None, local_vars_configuration=None): # noqa: E501 + """IsValidTokenRequest - 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._username = None + self._token = None + self.discriminator = None + + if username is not None: + self.username = username + if token is not None: + self.token = token + + @property + def username(self): + """Gets the username of this IsValidTokenRequest. # noqa: E501 + + + :return: The username of this IsValidTokenRequest. # noqa: E501 + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """Sets the username of this IsValidTokenRequest. + + + :param username: The username of this IsValidTokenRequest. # noqa: E501 + :type: str + """ + + self._username = username + + @property + def token(self): + """Gets the token of this IsValidTokenRequest. # noqa: E501 + + + :return: The token of this IsValidTokenRequest. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this IsValidTokenRequest. + + + :param token: The token of this IsValidTokenRequest. # noqa: E501 + :type: str + """ + + self._token = token + + 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, IsValidTokenRequest): + 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, IsValidTokenRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/onepanel/core/api/models/is_valid_token_response.py b/onepanel/core/api/models/is_valid_token_response.py index 2dbc132..25d401a 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ @@ -33,24 +33,34 @@ class IsValidTokenResponse(object): and the value is json key in definition. """ openapi_types = { - 'domain': 'str' + 'domain': 'str', + 'token': 'str', + 'username': 'str' } attribute_map = { - 'domain': 'domain' + 'domain': 'domain', + 'token': 'token', + 'username': 'username' } - def __init__(self, domain=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, domain=None, token=None, username=None, local_vars_configuration=None): # noqa: E501 """IsValidTokenResponse - 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._domain = None + self._token = None + self._username = None self.discriminator = None if domain is not None: self.domain = domain + if token is not None: + self.token = token + if username is not None: + self.username = username @property def domain(self): @@ -73,6 +83,48 @@ def domain(self, domain): self._domain = domain + @property + def token(self): + """Gets the token of this IsValidTokenResponse. # noqa: E501 + + + :return: The token of this IsValidTokenResponse. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this IsValidTokenResponse. + + + :param token: The token of this IsValidTokenResponse. # noqa: E501 + :type: str + """ + + self._token = token + + @property + def username(self): + """Gets the username of this IsValidTokenResponse. # noqa: E501 + + + :return: The username of this IsValidTokenResponse. # noqa: E501 + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """Sets the username of this IsValidTokenResponse. + + + :param username: The username of this IsValidTokenResponse. # noqa: E501 + :type: str + """ + + self._username = username + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/onepanel/core/api/models/key_value.py b/onepanel/core/api/models/key_value.py index afbb98e..7cd43e7 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/labels.py b/onepanel/core/api/models/labels.py index d3bfb66..686c1c9 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/list_cron_workflows_response.py b/onepanel/core/api/models/list_cron_workflows_response.py index dd64328..4dbd1a9 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/list_files_response.py b/onepanel/core/api/models/list_files_response.py index 47a2981..17a9fe2 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/list_namespaces_response.py b/onepanel/core/api/models/list_namespaces_response.py index 173c83e..421c5c4 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/list_secrets_response.py b/onepanel/core/api/models/list_secrets_response.py index cbbaefc..fbbeb4d 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/list_services_response.py b/onepanel/core/api/models/list_services_response.py index 38d517a..ebd2034 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/list_workflow_executions_response.py b/onepanel/core/api/models/list_workflow_executions_response.py index bd6ad2f..37f602b 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ 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 f0c189b..3284bc0 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/list_workflow_templates_response.py b/onepanel/core/api/models/list_workflow_templates_response.py index 1d68fa8..04c90c8 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/list_workspace_response.py b/onepanel/core/api/models/list_workspace_response.py index ed8cc3b..6636279 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ 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 8e444fd..af8dc73 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/list_workspace_templates_response.py b/onepanel/core/api/models/list_workspace_templates_response.py index cc82f2f..a075960 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/log_entry.py b/onepanel/core/api/models/log_entry.py index b198552..d868347 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/metric.py b/onepanel/core/api/models/metric.py index c753788..8bc89e8 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/namespace.py b/onepanel/core/api/models/namespace.py index 3c41244..4969395 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/node_pool.py b/onepanel/core/api/models/node_pool.py index 92a4a43..7e60421 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/node_pool_option.py b/onepanel/core/api/models/node_pool_option.py index 1497e92..9f093ff 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/parameter.py b/onepanel/core/api/models/parameter.py index 0e098f7..3e25d12 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/parameter_option.py b/onepanel/core/api/models/parameter_option.py index 6f28171..6a5f0c3 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/secret.py b/onepanel/core/api/models/secret.py index ac3ba08..f843b35 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/secret_exists_response.py b/onepanel/core/api/models/secret_exists_response.py index 9aeb610..258ff70 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/service.py b/onepanel/core/api/models/service.py index caf2112..0ec0317 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/statistics.py b/onepanel/core/api/models/statistics.py index 609f462..b3dcdf1 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ 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 a6bc885..581cb6e 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ 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 327a771..5015b5f 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ 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 92b6588..b2a5505 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/update_workspace_body.py b/onepanel/core/api/models/update_workspace_body.py index b31e4aa..31410b6 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/workflow_execution.py b/onepanel/core/api/models/workflow_execution.py index 0b44b65..e877973 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/workflow_execution_metadata.py b/onepanel/core/api/models/workflow_execution_metadata.py index b330705..26e6e04 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/workflow_execution_statistic_report.py b/onepanel/core/api/models/workflow_execution_statistic_report.py index b3ec16f..4e22446 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/workflow_execution_status.py b/onepanel/core/api/models/workflow_execution_status.py index af969ff..d409507 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/workflow_template.py b/onepanel/core/api/models/workflow_template.py index f75b794..014cd69 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/workspace.py b/onepanel/core/api/models/workspace.py index 2b07324..1f4fb46 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/workspace_statistic_report.py b/onepanel/core/api/models/workspace_statistic_report.py index e1718e8..3efa827 100644 --- a/onepanel/core/api/models/workspace_statistic_report.py +++ b/onepanel/core/api/models/workspace_statistic_report.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/workspace_status.py b/onepanel/core/api/models/workspace_status.py index f170637..c46e0ce 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/models/workspace_template.py b/onepanel/core/api/models/workspace_template.py index b4df1bc..af82925 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/onepanel/core/api/rest.py b/onepanel/core/api/rest.py index cded4b8..de35525 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: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ diff --git a/setup.py b/setup.py index 351d4d7..0e26bb8 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ Onepanel API # noqa: E501 - The version of the OpenAPI document: 0.13.0 + The version of the OpenAPI document: 0.14.0 Generated by: https://openapi-generator.tech """ @@ -13,7 +13,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "onepanel-sdk" -VERSION = "v0.13.0" +VERSION = "0.14.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 52b8697..653ea13 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 """ - workflow.proto + Onepanel - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: version not set + The version of the OpenAPI document: 0.12.0 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 3d2849e..0852180 100644 --- a/test/test_archive_workflow_template_response.py +++ b/test/test_archive_workflow_template_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - workflow.proto + Onepanel - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: version not set + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ @@ -38,12 +38,28 @@ 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 = 56, + version = '0', + versions = '0', manifest = '0', is_latest = True, - is_archived = 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, ), ) ) else : return ArchiveWorkflowTemplateResponse( diff --git a/test/test_artifact_response.py b/test/test_artifact_response.py index 18fb70f..f2d2238 100644 --- a/test/test_artifact_response.py +++ b/test/test_artifact_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_auth_service_api.py b/test/test_auth_service_api.py index 0b1af83..aea83e6 100644 --- a/test/test_auth_service_api.py +++ b/test/test_auth_service_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ @@ -28,8 +28,14 @@ def setUp(self): def tearDown(self): pass - def test_auth_service_is_valid_token(self): - """Test case for auth_service_is_valid_token + def test_is_authorized(self): + """Test case for is_authorized + + """ + pass + + def test_is_valid_token(self): + """Test case for is_valid_token """ pass diff --git a/test/test_config_service_api.py b/test/test_config_service_api.py index 2a3ab2f..82e0b92 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.11.0 + The version of the OpenAPI document: 0.12.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 0d9ac69..f56c32b 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 Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_create_workspace_body.py b/test/test_create_workspace_body.py index efe61ef..682072f 100644 --- a/test/test_create_workspace_body.py +++ b/test/test_create_workspace_body.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_cron_workflow.py b/test/test_cron_workflow.py index 93777ea..e37f644 100644 --- a/test/test_cron_workflow.py +++ b/test/test_cron_workflow.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ @@ -37,6 +37,7 @@ 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', @@ -62,6 +63,7 @@ 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', @@ -79,7 +81,8 @@ def make_instance(self, include_optional): last_executed = '0', running = 56, completed = 56, - failed = 56, ), + failed = 56, + terminated = 56, ), cron_stats = onepanel.core.api.models.cron_workflow_statistics_report.CronWorkflowStatisticsReport( total = 56, ), ), labels = [ @@ -91,7 +94,8 @@ 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 b7f8515..5336b5f 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 Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ @@ -28,38 +28,38 @@ def setUp(self): def tearDown(self): pass - def test_cron_workflow_service_create_cron_workflow(self): - """Test case for cron_workflow_service_create_cron_workflow + def test_create_cron_workflow(self): + """Test case for create_cron_workflow """ pass - def test_cron_workflow_service_get_cron_workflow(self): - """Test case for cron_workflow_service_get_cron_workflow + def test_delete_cron_workflow(self): + """Test case for delete_cron_workflow """ pass - def test_cron_workflow_service_list_cron_workflows(self): - """Test case for cron_workflow_service_list_cron_workflows + def test_get_cron_workflow(self): + """Test case for get_cron_workflow """ pass - def test_cron_workflow_service_list_cron_workflows2(self): - """Test case for cron_workflow_service_list_cron_workflows2 + def test_list_cron_workflows(self): + """Test case for list_cron_workflows """ pass - def test_cron_workflow_service_terminate_cron_workflow(self): - """Test case for cron_workflow_service_terminate_cron_workflow + def test_list_cron_workflows2(self): + """Test case for list_cron_workflows2 """ pass - def test_cron_workflow_service_update_cron_workflow(self): - """Test case for cron_workflow_service_update_cron_workflow + def test_update_cron_workflow(self): + """Test case for update_cron_workflow """ pass diff --git a/test/test_cron_workflow_statistics_report.py b/test/test_cron_workflow_statistics_report.py index ba28e5b..8d6defc 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 Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 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 e21f941..b3d6abb 100644 --- a/test/test_delete_secret_key_response.py +++ b/test/test_delete_secret_key_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - workflow.proto + Onepanel - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: version not set + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_delete_secret_response.py b/test/test_delete_secret_response.py index e59f55a..1fc9fe8 100644 --- a/test/test_delete_secret_response.py +++ b/test/test_delete_secret_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - workflow.proto + Onepanel - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: version not set + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_file.py b/test/test_file.py index 0a168f2..379ef21 100644 --- a/test/test_file.py +++ b/test/test_file.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_get_config_response.py b/test/test_get_config_response.py index e33057c..3cf090f 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.11.0 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_get_labels_response.py b/test/test_get_labels_response.py index ed9f060..0095772 100644 --- a/test/test_get_labels_response.py +++ b/test/test_get_labels_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 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 39c33e4..459f511 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 """ - workflow.proto + Onepanel - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: version not set + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_google_protobuf_any.py b/test/test_google_protobuf_any.py index 25c1835..1220cd4 100644 --- a/test/test_google_protobuf_any.py +++ b/test/test_google_protobuf_any.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - workflow.proto + Onepanel - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: version not set + The version of the OpenAPI document: 0.12.0 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 3062013..8fcfe38 100644 --- a/test/test_grpc_gateway_runtime_error.py +++ b/test/test_grpc_gateway_runtime_error.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - workflow.proto + Onepanel - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: version not set + The version of the OpenAPI document: 0.12.0 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 b9725ec..1c934d6 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 """ - workflow.proto + Onepanel - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: version not set + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_is_authorized.py b/test/test_is_authorized.py index d387b4c..b21203c 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.11.0 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_is_authorized_response.py b/test/test_is_authorized_response.py index f95ca2a..05aef12 100644 --- a/test/test_is_authorized_response.py +++ b/test/test_is_authorized_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_is_valid_token_request.py b/test/test_is_valid_token_request.py new file mode 100644 index 0000000..3063944 --- /dev/null +++ b/test/test_is_valid_token_request.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Onepanel + + Onepanel API # noqa: E501 + + The version of the OpenAPI document: 0.14.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.is_valid_token_request import IsValidTokenRequest # noqa: E501 +from onepanel.core.api.rest import ApiException + +class TestIsValidTokenRequest(unittest.TestCase): + """IsValidTokenRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test IsValidTokenRequest + 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.is_valid_token_request.IsValidTokenRequest() # noqa: E501 + if include_optional : + return IsValidTokenRequest( + username = '0', + token = '0' + ) + else : + return IsValidTokenRequest( + ) + + def testIsValidTokenRequest(self): + """Test IsValidTokenRequest""" + 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_is_valid_token_response.py b/test/test_is_valid_token_response.py index c4bd2f0..1250a1d 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 Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_key_value.py b/test/test_key_value.py index ba68511..f8d96f6 100644 --- a/test/test_key_value.py +++ b/test/test_key_value.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_label_service_api.py b/test/test_label_service_api.py index 23e769d..da34de0 100644 --- a/test/test_label_service_api.py +++ b/test/test_label_service_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ @@ -28,26 +28,26 @@ def setUp(self): def tearDown(self): pass - def test_label_service_add_labels(self): - """Test case for label_service_add_labels + def test_add_labels(self): + """Test case for add_labels """ pass - def test_label_service_delete_label(self): - """Test case for label_service_delete_label + def test_delete_label(self): + """Test case for delete_label """ pass - def test_label_service_get_labels(self): - """Test case for label_service_get_labels + def test_get_labels(self): + """Test case for get_labels """ pass - def test_label_service_replace_labels(self): - """Test case for label_service_replace_labels + def test_replace_labels(self): + """Test case for replace_labels """ pass diff --git a/test/test_labels.py b/test/test_labels.py index fef83ae..20b4b97 100644 --- a/test/test_labels.py +++ b/test/test_labels.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 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 bc45432..e0431a3 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 Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ @@ -40,6 +40,7 @@ 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', @@ -65,6 +66,7 @@ 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', @@ -82,7 +84,8 @@ def make_instance(self, include_optional): last_executed = '0', running = 56, completed = 56, - failed = 56, ), + failed = 56, + terminated = 56, ), cron_stats = onepanel.core.api.models.cron_workflow_statistics_report.CronWorkflowStatisticsReport( total = 56, ), ), labels = [ @@ -94,7 +97,8 @@ 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 c4dd1cf..7d3f36e 100644 --- a/test/test_list_files_response.py +++ b/test/test_list_files_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_list_namespaces_response.py b/test/test_list_namespaces_response.py index a5bfbce..92bfcec 100644 --- a/test/test_list_namespaces_response.py +++ b/test/test_list_namespaces_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - workflow.proto + Onepanel - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: version not set + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ @@ -40,7 +40,10 @@ 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 24e3f06..91ba16e 100644 --- a/test/test_list_secrets_response.py +++ b/test/test_list_secrets_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - workflow.proto + Onepanel - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: version not set + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_list_services_response.py b/test/test_list_services_response.py index d248bda..2faa9ee 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.13.0 + The version of the OpenAPI document: 0.12.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 6d90ccb..2bfa55c 100644 --- a/test/test_list_workflow_executions_response.py +++ b/test/test_list_workflow_executions_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - workflow.proto + Onepanel - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: version not set + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ @@ -47,18 +47,48 @@ def make_instance(self, include_optional): finished_at = '0', manifest = '0', parameters = [ - onepanel.core.api.models.workflow_execution_parameter.WorkflowExecutionParameter( + onepanel.core.api.models.parameter.Parameter( name = '0', - value = '0', ) + value = '0', + type = '0', + display_name = '0', + hint = '0', + required = True, + options = [ + onepanel.core.api.models.parameter_option.ParameterOption( + name = '0', + value = '0', ) + ], ) ], workflow_template = onepanel.core.api.models.workflow_template.WorkflowTemplate( created_at = '0', + modified_at = '0', uid = '0', name = '0', - version = 56, + version = '0', + versions = '0', manifest = '0', is_latest = True, - is_archived = 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', ) + ], ) ], 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 a0cc6ad..9e64274 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 """ - workflow.proto + Onepanel - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: version not set + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ @@ -40,12 +40,28 @@ 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 = 56, + version = '0', + versions = '0', manifest = '0', is_latest = True, - is_archived = 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, ), ) ] ) else : diff --git a/test/test_list_workflow_templates_response.py b/test/test_list_workflow_templates_response.py index 20a17de..aa96fa7 100644 --- a/test/test_list_workflow_templates_response.py +++ b/test/test_list_workflow_templates_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - workflow.proto + Onepanel - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: version not set + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ @@ -40,13 +40,32 @@ 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 = 56, + version = '0', + versions = '0', manifest = '0', is_latest = True, - is_archived = 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 ) else : return ListWorkflowTemplatesResponse( diff --git a/test/test_list_workspace_response.py b/test/test_list_workspace_response.py index fccf3ba..0b04a1f 100644 --- a/test/test_list_workspace_response.py +++ b/test/test_list_workspace_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ @@ -66,6 +66,7 @@ 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', @@ -83,9 +84,16 @@ def make_instance(self, include_optional): last_executed = '0', running = 56, completed = 56, - failed = 56, ), + failed = 56, + terminated = 56, ), cron_stats = onepanel.core.api.models.cron_workflow_statistics_report.CronWorkflowStatisticsReport( - total = 56, ), ), ), + total = 56, ), ), + labels = [ + onepanel.core.api.models.key_value.KeyValue( + key = '0', + value = '0', ) + ], + is_archived = True, ), status = onepanel.core.api.models.workspace_status.WorkspaceStatus( phase = '0', started_at = '0', @@ -95,6 +103,16 @@ 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 509ca24..2b5b92f 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 Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ @@ -47,6 +47,7 @@ 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', @@ -64,9 +65,16 @@ def make_instance(self, include_optional): last_executed = '0', running = 56, completed = 56, - failed = 56, ), + failed = 56, + terminated = 56, ), cron_stats = onepanel.core.api.models.cron_workflow_statistics_report.CronWorkflowStatisticsReport( - total = 56, ), ), ) + total = 56, ), ), + labels = [ + onepanel.core.api.models.key_value.KeyValue( + key = '0', + value = '0', ) + ], + is_archived = True, ) ] ) else : diff --git a/test/test_list_workspace_templates_response.py b/test/test_list_workspace_templates_response.py index 3d7e7f6..b7613e9 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 Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ @@ -47,6 +47,7 @@ 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', @@ -64,9 +65,16 @@ def make_instance(self, include_optional): last_executed = '0', running = 56, completed = 56, - failed = 56, ), + failed = 56, + terminated = 56, ), cron_stats = onepanel.core.api.models.cron_workflow_statistics_report.CronWorkflowStatisticsReport( - total = 56, ), ), ) + 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_log_entry.py b/test/test_log_entry.py index 64b6803..73d2d41 100644 --- a/test/test_log_entry.py +++ b/test/test_log_entry.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - workflow.proto + Onepanel - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: version not set + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_metric.py b/test/test_metric.py index fb634fa..24a3c65 100644 --- a/test/test_metric.py +++ b/test/test_metric.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - workflow.proto + Onepanel - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: version not set + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_namespace.py b/test/test_namespace.py index e34735d..129c60e 100644 --- a/test/test_namespace.py +++ b/test/test_namespace.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - workflow.proto + Onepanel - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: version not set + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_namespace_service_api.py b/test/test_namespace_service_api.py index babb30b..fa9d642 100644 --- a/test/test_namespace_service_api.py +++ b/test/test_namespace_service_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - workflow.proto + Onepanel - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: version not set + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ @@ -28,6 +28,12 @@ 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 1d48bb9..f8ef843 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.11.0 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_node_pool_option.py b/test/test_node_pool_option.py index f7e73bb..cb40539 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.11.0 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_parameter.py b/test/test_parameter.py index 5ff9cff..fbf4e8d 100644 --- a/test/test_parameter.py +++ b/test/test_parameter.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_parameter_option.py b/test/test_parameter_option.py index 490a9fb..ca657c1 100644 --- a/test/test_parameter_option.py +++ b/test/test_parameter_option.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_secret.py b/test/test_secret.py index 683ef29..9742a8a 100644 --- a/test/test_secret.py +++ b/test/test_secret.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - workflow.proto + Onepanel - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: version not set + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_secret_exists_response.py b/test/test_secret_exists_response.py index 982287f..2816caf 100644 --- a/test/test_secret_exists_response.py +++ b/test/test_secret_exists_response.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - workflow.proto + Onepanel - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: version not set + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_secret_service_api.py b/test/test_secret_service_api.py index 3a32ca3..b5a36e8 100644 --- a/test/test_secret_service_api.py +++ b/test/test_secret_service_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - workflow.proto + Onepanel - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: version not set + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_service.py b/test/test_service.py index 9e323d3..6b4211a 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.13.0 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_service_service_api.py b/test/test_service_service_api.py index 8db7a01..2b5a31a 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.13.0 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_statistics.py b/test/test_statistics.py index 89710b0..78f546d 100644 --- a/test/test_statistics.py +++ b/test/test_statistics.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 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 46be39a..4f200fe 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 """ - workflow.proto + Onepanel - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: version not set + The version of the OpenAPI document: 0.12.0 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 72e2013..c701dc3 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 """ - workflow.proto + Onepanel - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: version not set + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ @@ -45,18 +45,48 @@ def make_instance(self, include_optional): finished_at = '0', manifest = '0', parameters = [ - onepanel.core.api.models.workflow_execution_parameter.WorkflowExecutionParameter( + onepanel.core.api.models.parameter.Parameter( name = '0', - value = '0', ) + value = '0', + type = '0', + display_name = '0', + hint = '0', + required = True, + options = [ + onepanel.core.api.models.parameter_option.ParameterOption( + name = '0', + value = '0', ) + ], ) ], workflow_template = onepanel.core.api.models.workflow_template.WorkflowTemplate( created_at = '0', + modified_at = '0', uid = '0', name = '0', - version = 56, + version = '0', + versions = '0', manifest = '0', is_latest = True, - is_archived = 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', ) + ], ), 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 4b34cc3..92bb4c4 100644 --- a/test/test_token_wrapper.py +++ b/test/test_token_wrapper.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 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 6902aa6..10a2f78 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 """ - workflow.proto + Onepanel - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: version not set + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_update_workspace_body.py b/test/test_update_workspace_body.py index e50898d..d5087f1 100644 --- a/test/test_update_workspace_body.py +++ b/test/test_update_workspace_body.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_workflow_execution.py b/test/test_workflow_execution.py index 9fa6092..262bda8 100644 --- a/test/test_workflow_execution.py +++ b/test/test_workflow_execution.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - workflow.proto + Onepanel - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: version not set + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ @@ -44,18 +44,48 @@ def make_instance(self, include_optional): finished_at = '0', manifest = '0', parameters = [ - onepanel.core.api.models.workflow_execution_parameter.WorkflowExecutionParameter( + onepanel.core.api.models.parameter.Parameter( name = '0', - value = '0', ) + value = '0', + type = '0', + display_name = '0', + hint = '0', + required = True, + options = [ + onepanel.core.api.models.parameter_option.ParameterOption( + name = '0', + value = '0', ) + ], ) ], workflow_template = onepanel.core.api.models.workflow_template.WorkflowTemplate( created_at = '0', + modified_at = '0', uid = '0', name = '0', - version = 56, + version = '0', + versions = '0', manifest = '0', is_latest = True, - is_archived = 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', ) + ] ) else : return WorkflowExecution( diff --git a/test/test_workflow_execution_metadata.py b/test/test_workflow_execution_metadata.py index 3d0cb5e..c9827bd 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.13.0 + The version of the OpenAPI document: 0.12.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 b1287aa..3449e91 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 Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ @@ -40,7 +40,8 @@ def make_instance(self, include_optional): last_executed = '0', running = 56, completed = 56, - failed = 56 + failed = 56, + terminated = 56 ) else : return WorkflowExecutionStatisticReport( diff --git a/test/test_workflow_execution_status.py b/test/test_workflow_execution_status.py index d26bd64..70d7bbe 100644 --- a/test/test_workflow_execution_status.py +++ b/test/test_workflow_execution_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_workflow_service_api.py b/test/test_workflow_service_api.py index f2e9753..0aa1549 100644 --- a/test/test_workflow_service_api.py +++ b/test/test_workflow_service_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - workflow.proto + Onepanel - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: version not set + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ @@ -28,8 +28,14 @@ def setUp(self): def tearDown(self): pass - def test_archive_workflow_template(self): - """Test case for archive_workflow_template + 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 """ pass @@ -40,14 +46,14 @@ def test_create_workflow_execution(self): """ pass - def test_create_workflow_template(self): - """Test case for create_workflow_template + def test_cron_start_workflow_execution_statistic(self): + """Test case for cron_start_workflow_execution_statistic """ pass - def test_create_workflow_template_version(self): - """Test case for create_workflow_template_version + def test_get_artifact(self): + """Test case for get_artifact """ pass @@ -70,14 +76,8 @@ def test_get_workflow_execution_metrics(self): """ pass - 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 + def test_list_files(self): + """Test case for list_files """ pass @@ -88,18 +88,6 @@ 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 @@ -112,8 +100,8 @@ def test_terminate_workflow_execution(self): """ pass - def test_update_workflow_template_version(self): - """Test case for update_workflow_template_version + def test_update_workflow_execution_status(self): + """Test case for update_workflow_execution_status """ pass diff --git a/test/test_workflow_template.py b/test/test_workflow_template.py index 633b0a3..68ef33b 100644 --- a/test/test_workflow_template.py +++ b/test/test_workflow_template.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - workflow.proto + Onepanel - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: version not set + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ @@ -37,12 +37,28 @@ def make_instance(self, include_optional): if include_optional : return WorkflowTemplate( created_at = '0', + modified_at = '0', uid = '0', name = '0', - version = 56, + version = '0', + versions = '0', manifest = '0', is_latest = True, - is_archived = 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, ) ) else : return WorkflowTemplate( diff --git a/test/test_workflow_template_service_api.py b/test/test_workflow_template_service_api.py index beea7b8..47d9ecd 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 Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ @@ -28,62 +28,56 @@ def setUp(self): def tearDown(self): pass - def test_workflow_template_service_archive_workflow_template(self): - """Test case for workflow_template_service_archive_workflow_template + def test_archive_workflow_template(self): + """Test case for archive_workflow_template """ pass - def test_workflow_template_service_clone_workflow_template(self): - """Test case for workflow_template_service_clone_workflow_template + def test_clone_workflow_template(self): + """Test case for clone_workflow_template """ pass - def test_workflow_template_service_clone_workflow_template2(self): - """Test case for workflow_template_service_clone_workflow_template2 + def test_clone_workflow_template2(self): + """Test case for clone_workflow_template2 """ pass - def test_workflow_template_service_create_workflow_template(self): - """Test case for workflow_template_service_create_workflow_template + def test_create_workflow_template(self): + """Test case for create_workflow_template """ pass - def test_workflow_template_service_create_workflow_template_version(self): - """Test case for workflow_template_service_create_workflow_template_version + def test_create_workflow_template_version(self): + """Test case for create_workflow_template_version """ pass - def test_workflow_template_service_get_workflow_template(self): - """Test case for workflow_template_service_get_workflow_template + def test_get_workflow_template(self): + """Test case for get_workflow_template """ pass - def test_workflow_template_service_get_workflow_template2(self): - """Test case for workflow_template_service_get_workflow_template2 + def test_get_workflow_template2(self): + """Test case for get_workflow_template2 """ pass - def test_workflow_template_service_list_workflow_template_versions(self): - """Test case for workflow_template_service_list_workflow_template_versions + def test_list_workflow_template_versions(self): + """Test case for list_workflow_template_versions """ pass - 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 + def test_list_workflow_templates(self): + """Test case for list_workflow_templates """ pass diff --git a/test/test_workspace.py b/test/test_workspace.py index 5dbf569..8369434 100644 --- a/test/test_workspace.py +++ b/test/test_workspace.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ @@ -63,6 +63,7 @@ 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', @@ -80,14 +81,41 @@ def make_instance(self, include_optional): last_executed = '0', running = 56, completed = 56, - failed = 56, ), + failed = 56, + terminated = 56, ), cron_stats = onepanel.core.api.models.cron_workflow_statistics_report.CronWorkflowStatisticsReport( - total = 56, ), ), ), + total = 56, ), ), + labels = [ + onepanel.core.api.models.key_value.KeyValue( + key = '0', + value = '0', ) + ], + is_archived = True, ), status = onepanel.core.api.models.workspace_status.WorkspaceStatus( phase = '0', started_at = '0', paused_at = '0', - terminated_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', ) + ], ) + ] ) else : return Workspace( diff --git a/test/test_workspace_service_api.py b/test/test_workspace_service_api.py index 5c98aee..88b5cd1 100644 --- a/test/test_workspace_service_api.py +++ b/test/test_workspace_service_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ @@ -28,14 +28,50 @@ def setUp(self): def tearDown(self): pass - def test_workspace_service_create_workspace(self): - """Test case for workspace_service_create_workspace + def test_create_workspace(self): + """Test case for create_workspace """ pass - def test_workspace_service_update_workspace_status(self): - """Test case for workspace_service_update_workspace_status + 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 """ pass diff --git a/test/test_workspace_status.py b/test/test_workspace_status.py index 0af650f..63d8e6a 100644 --- a/test/test_workspace_status.py +++ b/test/test_workspace_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ diff --git a/test/test_workspace_template.py b/test/test_workspace_template.py index 772dcb4..53b2c70 100644 --- a/test/test_workspace_template.py +++ b/test/test_workspace_template.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Onepanel Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ @@ -44,6 +44,7 @@ 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', @@ -61,9 +62,16 @@ def make_instance(self, include_optional): last_executed = '0', running = 56, completed = 56, - failed = 56, ), + failed = 56, + terminated = 56, ), cron_stats = onepanel.core.api.models.cron_workflow_statistics_report.CronWorkflowStatisticsReport( - total = 56, ), ) + total = 56, ), ), + labels = [ + onepanel.core.api.models.key_value.KeyValue( + key = '0', + value = '0', ) + ], + is_archived = True ) else : return WorkspaceTemplate( diff --git a/test/test_workspace_template_service_api.py b/test/test_workspace_template_service_api.py index b42a89a..ed00e8f 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 Core + Onepanel - Onepanel Core project API # noqa: E501 + Onepanel API # noqa: E501 - The version of the OpenAPI document: 1.0.0-beta1 + The version of the OpenAPI document: 0.12.0 Generated by: https://openapi-generator.tech """ @@ -28,38 +28,44 @@ def setUp(self): def tearDown(self): pass - def test_workspace_template_service_create_workspace_template(self): - """Test case for workspace_template_service_create_workspace_template + def test_archive_workspace_template(self): + """Test case for archive_workspace_template """ pass - def test_workspace_template_service_generate_workspace_template_workflow_template(self): - """Test case for workspace_template_service_generate_workspace_template_workflow_template + def test_create_workspace_template(self): + """Test case for create_workspace_template """ pass - def test_workspace_template_service_get_workspace_template(self): - """Test case for workspace_template_service_get_workspace_template + def test_generate_workspace_template_workflow_template(self): + """Test case for generate_workspace_template_workflow_template """ pass - def test_workspace_template_service_list_workspace_template_versions(self): - """Test case for workspace_template_service_list_workspace_template_versions + def test_get_workspace_template(self): + """Test case for get_workspace_template """ pass - def test_workspace_template_service_list_workspace_templates(self): - """Test case for workspace_template_service_list_workspace_templates + def test_list_workspace_template_versions(self): + """Test case for list_workspace_template_versions """ pass - def test_workspace_template_service_update_workspace_template(self): - """Test case for workspace_template_service_update_workspace_template + 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 """ pass