Py4HEAppE 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- __init__.py +1 -0
- py4heappe/__init__.py +1 -0
- py4heappe/cli/__init__.py +1 -0
- py4heappe/cli/auth.py +153 -0
- py4heappe/cli/command_template.py +370 -0
- py4heappe/cli/configuration.py +65 -0
- py4heappe/cli/information.py +163 -0
- py4heappe/cli/job_management.py +211 -0
- py4heappe/cli/report.py +173 -0
- py4heappe/core/__init__.py +167 -0
- py4heappe/core/api/__init__.py +12 -0
- py4heappe/core/api/cluster_information_api.py +308 -0
- py4heappe/core/api/data_transfer_api.py +405 -0
- py4heappe/core/api/file_transfer_api.py +498 -0
- py4heappe/core/api/job_management_api.py +866 -0
- py4heappe/core/api/job_reporting_api.py +692 -0
- py4heappe/core/api/management_api.py +2540 -0
- py4heappe/core/api/user_and_limitation_management_api.py +676 -0
- py4heappe/core/api_client.py +632 -0
- py4heappe/core/base/__init__.py +1 -0
- py4heappe/core/base/exceptions.py +41 -0
- py4heappe/core/base/logger.py +11 -0
- py4heappe/core/base/utils.py +43 -0
- py4heappe/core/configuration.py +247 -0
- py4heappe/core/models/__init__.py +155 -0
- py4heappe/core/models/adaptor_user.py +398 -0
- py4heappe/core/models/adaptor_user_group.py +268 -0
- py4heappe/core/models/adaptor_user_role.py +242 -0
- py4heappe/core/models/adaptor_user_role_ext.py +138 -0
- py4heappe/core/models/adaptor_user_role_type.py +95 -0
- py4heappe/core/models/adaptor_user_type.py +91 -0
- py4heappe/core/models/adaptor_user_user_group_role.py +320 -0
- py4heappe/core/models/allocated_nodes_ips_model.py +136 -0
- py4heappe/core/models/authenticate_lexis_token_model.py +110 -0
- py4heappe/core/models/authenticate_user_digital_signature_model.py +110 -0
- py4heappe/core/models/authenticate_user_open_id_model.py +110 -0
- py4heappe/core/models/authenticate_user_open_id_open_stack_model.py +136 -0
- py4heappe/core/models/authenticate_user_password_model.py +110 -0
- py4heappe/core/models/authentication_credentials.py +110 -0
- py4heappe/core/models/bad_request_result.py +110 -0
- py4heappe/core/models/cancel_job_model.py +136 -0
- py4heappe/core/models/cluster.py +478 -0
- py4heappe/core/models/cluster_authentication_credentials.py +375 -0
- py4heappe/core/models/cluster_authentication_credentials_auth_type.py +97 -0
- py4heappe/core/models/cluster_connection_protocol.py +91 -0
- py4heappe/core/models/cluster_detailed_report_ext.py +214 -0
- py4heappe/core/models/cluster_ext.py +188 -0
- py4heappe/core/models/cluster_init_report_ext.py +136 -0
- py4heappe/core/models/cluster_node_type.py +528 -0
- py4heappe/core/models/cluster_node_type_detailed_report_ext.py +240 -0
- py4heappe/core/models/cluster_node_type_ext.py +292 -0
- py4heappe/core/models/cluster_node_type_for_task_ext.py +188 -0
- py4heappe/core/models/cluster_node_type_report_ext.py +214 -0
- py4heappe/core/models/cluster_node_type_requested_group.py +136 -0
- py4heappe/core/models/cluster_node_type_resource_usage_ext.py +292 -0
- py4heappe/core/models/cluster_node_usage_ext.py +318 -0
- py4heappe/core/models/cluster_project.py +347 -0
- py4heappe/core/models/cluster_project_credential.py +294 -0
- py4heappe/core/models/cluster_proxy_connection.py +243 -0
- py4heappe/core/models/cluster_proxy_connection_ext.py +214 -0
- py4heappe/core/models/cluster_report_ext.py +215 -0
- py4heappe/core/models/command_template.py +557 -0
- py4heappe/core/models/command_template_ext.py +240 -0
- py4heappe/core/models/command_template_parameter.py +347 -0
- py4heappe/core/models/command_template_parameter_ext.py +136 -0
- py4heappe/core/models/command_template_parameter_value_ext.py +136 -0
- py4heappe/core/models/contact.py +269 -0
- py4heappe/core/models/copy_job_data_from_temp_model.py +162 -0
- py4heappe/core/models/copy_job_data_to_temp_model.py +162 -0
- py4heappe/core/models/create_command_inner_template_parameter_model.py +162 -0
- py4heappe/core/models/create_command_template_from_generic_model.py +292 -0
- py4heappe/core/models/create_command_template_model.py +318 -0
- py4heappe/core/models/create_command_template_parameter_model.py +214 -0
- py4heappe/core/models/create_job_by_project_model.py +136 -0
- py4heappe/core/models/create_project_assignment_to_cluster_model.py +188 -0
- py4heappe/core/models/create_project_model.py +318 -0
- py4heappe/core/models/create_secure_shell_key_model.py +162 -0
- py4heappe/core/models/create_secure_shell_key_model_obsolete.py +188 -0
- py4heappe/core/models/current_cluster_node_usage_model.py +136 -0
- py4heappe/core/models/current_info_for_job_model.py +136 -0
- py4heappe/core/models/data_transfer_method_ext.py +188 -0
- py4heappe/core/models/delete_job_model.py +136 -0
- py4heappe/core/models/deployment_type_ext.py +91 -0
- py4heappe/core/models/digital_signature_credentials_ext.py +162 -0
- py4heappe/core/models/download_file_from_cluster_model.py +162 -0
- py4heappe/core/models/download_parts_of_job_files_from_cluster_model.py +162 -0
- py4heappe/core/models/end_data_transfer_model.py +136 -0
- py4heappe/core/models/end_file_transfer_model.py +162 -0
- py4heappe/core/models/environment_variable_ext.py +136 -0
- py4heappe/core/models/extended_command_template_ext.py +370 -0
- py4heappe/core/models/extended_command_template_parameter_ext.py +188 -0
- py4heappe/core/models/extended_project_info_ext.py +318 -0
- py4heappe/core/models/file_information_ext.py +136 -0
- py4heappe/core/models/file_transfer_cipher_type.py +94 -0
- py4heappe/core/models/file_transfer_cipher_type_ext.py +93 -0
- py4heappe/core/models/file_transfer_key_credentials_ext.py +240 -0
- py4heappe/core/models/file_transfer_method.py +294 -0
- py4heappe/core/models/file_transfer_method_ext.py +240 -0
- py4heappe/core/models/file_transfer_protocol.py +91 -0
- py4heappe/core/models/file_transfer_protocol_ext.py +91 -0
- py4heappe/core/models/get_command_template_parameters_name_model.py +188 -0
- py4heappe/core/models/get_current_usage_and_limitations_for_current_user_model.py +110 -0
- py4heappe/core/models/get_data_transfer_method_model.py +188 -0
- py4heappe/core/models/get_file_transfer_method_model.py +136 -0
- py4heappe/core/models/http_get_to_job_node_model.py +241 -0
- py4heappe/core/models/http_header_ext.py +136 -0
- py4heappe/core/models/http_post_to_job_node_model.py +267 -0
- py4heappe/core/models/initialize_cluster_script_directory_model.py +162 -0
- py4heappe/core/models/instance_information_ext.py +344 -0
- py4heappe/core/models/job_detailed_report_ext.py +318 -0
- py4heappe/core/models/job_file_content_ext.py +214 -0
- py4heappe/core/models/job_report_ext.py +188 -0
- py4heappe/core/models/job_specification_by_project_ext.py +448 -0
- py4heappe/core/models/job_specification_ext.py +448 -0
- py4heappe/core/models/job_state_aggregation_report_ext.py +162 -0
- py4heappe/core/models/job_state_ext.py +96 -0
- py4heappe/core/models/lexis_credentials_ext.py +137 -0
- py4heappe/core/models/list_changed_files_for_job_model.py +136 -0
- py4heappe/core/models/list_jobs_for_current_user_model.py +110 -0
- py4heappe/core/models/modify_command_template_from_generic_model.py +292 -0
- py4heappe/core/models/modify_command_template_model.py +292 -0
- py4heappe/core/models/modify_command_template_parameter_model.py +214 -0
- py4heappe/core/models/modify_project_assignment_to_cluster_model.py +188 -0
- py4heappe/core/models/modify_project_model.py +292 -0
- py4heappe/core/models/node_used_cores_and_limitation_ext.py +110 -0
- py4heappe/core/models/open_id_credentials_ext.py +137 -0
- py4heappe/core/models/open_stack_application_credentials_ext.py +136 -0
- py4heappe/core/models/password_credentials_ext.py +136 -0
- py4heappe/core/models/problem_details.py +89 -0
- py4heappe/core/models/project.py +482 -0
- py4heappe/core/models/project_contact.py +215 -0
- py4heappe/core/models/project_detailed_report_ext.py +292 -0
- py4heappe/core/models/project_ext.py +266 -0
- py4heappe/core/models/project_for_task_ext.py +214 -0
- py4heappe/core/models/project_list_report_ext.py +214 -0
- py4heappe/core/models/project_reference_ext.py +137 -0
- py4heappe/core/models/project_report_ext.py +240 -0
- py4heappe/core/models/project_resource_usage_ext.py +266 -0
- py4heappe/core/models/proxy_type.py +91 -0
- py4heappe/core/models/proxy_type_ext.py +91 -0
- py4heappe/core/models/public_key_ext.py +188 -0
- py4heappe/core/models/recreate_secure_shell_key_model.py +214 -0
- py4heappe/core/models/regenerate_secure_shell_key_model.py +188 -0
- py4heappe/core/models/regenerate_secure_shell_key_model_obsolete.py +188 -0
- py4heappe/core/models/remove_command_template_model.py +136 -0
- py4heappe/core/models/remove_command_template_parameter_model.py +136 -0
- py4heappe/core/models/remove_project_assignment_to_cluster_model.py +162 -0
- py4heappe/core/models/remove_project_model.py +136 -0
- py4heappe/core/models/remove_secure_shell_key_model.py +162 -0
- py4heappe/core/models/remove_secure_shell_key_model_obsolete.py +162 -0
- py4heappe/core/models/resource_allocation_type_ext.py +91 -0
- py4heappe/core/models/resource_limitation_ext.py +136 -0
- py4heappe/core/models/resource_usage_ext.py +163 -0
- py4heappe/core/models/scheduler_type.py +92 -0
- py4heappe/core/models/ssh_key_user_credentials_model.py +136 -0
- py4heappe/core/models/submit_job_model.py +136 -0
- py4heappe/core/models/submitted_job_info_ext.py +318 -0
- py4heappe/core/models/submitted_task_info_ext.py +370 -0
- py4heappe/core/models/synchronizable_files_ext.py +92 -0
- py4heappe/core/models/task_detailed_report_ext.py +318 -0
- py4heappe/core/models/task_file_offset_ext.py +162 -0
- py4heappe/core/models/task_paralization_parameter_ext.py +162 -0
- py4heappe/core/models/task_priority_ext.py +97 -0
- py4heappe/core/models/task_report_ext.py +266 -0
- py4heappe/core/models/task_specification_ext.py +682 -0
- py4heappe/core/models/task_state_ext.py +95 -0
- py4heappe/core/models/test_cluster_access_for_account_model.py +162 -0
- py4heappe/core/models/test_cluster_access_for_account_model_obsolete.py +162 -0
- py4heappe/core/models/unauthorized_result.py +110 -0
- py4heappe/core/models/usage_type.py +90 -0
- py4heappe/core/models/usage_type_ext.py +90 -0
- py4heappe/core/models/user_group_detailed_report_ext.py +240 -0
- py4heappe/core/models/user_group_list_report_ext.py +240 -0
- py4heappe/core/models/user_group_report_ext.py +240 -0
- py4heappe/core/models/version_information_ext.py +162 -0
- py4heappe/core/rest.py +311 -0
- py4heappe-1.0.0.dist-info/METADATA +147 -0
- py4heappe-1.0.0.dist-info/RECORD +183 -0
- py4heappe-1.0.0.dist-info/WHEEL +5 -0
- py4heappe-1.0.0.dist-info/entry_points.txt +2 -0
- py4heappe-1.0.0.dist-info/licenses/LICENSE +20 -0
- py4heappe-1.0.0.dist-info/top_level.txt +3 -0
- py4heappe_cli.py +22 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
HEAppE Web API
|
|
7
|
+
|
|
8
|
+
HEAppE middleware API v4.2.1 # noqa: E501
|
|
9
|
+
|
|
10
|
+
OpenAPI spec version: v4.2.1
|
|
11
|
+
Contact: support.heappe@it4i.cz
|
|
12
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
from __future__ import absolute_import
|
|
16
|
+
|
|
17
|
+
# import apis into sdk package
|
|
18
|
+
from py4heappe.core.api.cluster_information_api import ClusterInformationApi
|
|
19
|
+
from py4heappe.core.api.data_transfer_api import DataTransferApi
|
|
20
|
+
from py4heappe.core.api.file_transfer_api import FileTransferApi
|
|
21
|
+
from py4heappe.core.api.job_management_api import JobManagementApi
|
|
22
|
+
from py4heappe.core.api.job_reporting_api import JobReportingApi
|
|
23
|
+
from py4heappe.core.api.management_api import ManagementApi
|
|
24
|
+
from py4heappe.core.api.user_and_limitation_management_api import UserAndLimitationManagementApi
|
|
25
|
+
# import ApiClient
|
|
26
|
+
from py4heappe.core.api_client import ApiClient
|
|
27
|
+
from py4heappe.core.configuration import Configuration
|
|
28
|
+
# import models into sdk package
|
|
29
|
+
from py4heappe.core.models.adaptor_user import AdaptorUser
|
|
30
|
+
from py4heappe.core.models.adaptor_user_group import AdaptorUserGroup
|
|
31
|
+
from py4heappe.core.models.adaptor_user_role import AdaptorUserRole
|
|
32
|
+
from py4heappe.core.models.adaptor_user_role_ext import AdaptorUserRoleExt
|
|
33
|
+
from py4heappe.core.models.adaptor_user_role_type import AdaptorUserRoleType
|
|
34
|
+
from py4heappe.core.models.adaptor_user_type import AdaptorUserType
|
|
35
|
+
from py4heappe.core.models.adaptor_user_user_group_role import AdaptorUserUserGroupRole
|
|
36
|
+
from py4heappe.core.models.authenticate_lexis_token_model import AuthenticateLexisTokenModel
|
|
37
|
+
from py4heappe.core.models.authenticate_user_digital_signature_model import AuthenticateUserDigitalSignatureModel
|
|
38
|
+
from py4heappe.core.models.authenticate_user_open_id_model import AuthenticateUserOpenIdModel
|
|
39
|
+
from py4heappe.core.models.authenticate_user_open_id_open_stack_model import AuthenticateUserOpenIdOpenStackModel
|
|
40
|
+
from py4heappe.core.models.authenticate_user_password_model import AuthenticateUserPasswordModel
|
|
41
|
+
from py4heappe.core.models.authentication_credentials import AuthenticationCredentials
|
|
42
|
+
from py4heappe.core.models.bad_request_result import BadRequestResult
|
|
43
|
+
from py4heappe.core.models.cancel_job_model import CancelJobModel
|
|
44
|
+
from py4heappe.core.models.cluster import Cluster
|
|
45
|
+
from py4heappe.core.models.cluster_authentication_credentials import ClusterAuthenticationCredentials
|
|
46
|
+
from py4heappe.core.models.cluster_authentication_credentials_auth_type import ClusterAuthenticationCredentialsAuthType
|
|
47
|
+
from py4heappe.core.models.cluster_connection_protocol import ClusterConnectionProtocol
|
|
48
|
+
from py4heappe.core.models.cluster_detailed_report_ext import ClusterDetailedReportExt
|
|
49
|
+
from py4heappe.core.models.cluster_ext import ClusterExt
|
|
50
|
+
from py4heappe.core.models.cluster_init_report_ext import ClusterInitReportExt
|
|
51
|
+
from py4heappe.core.models.cluster_node_type import ClusterNodeType
|
|
52
|
+
from py4heappe.core.models.cluster_node_type_detailed_report_ext import ClusterNodeTypeDetailedReportExt
|
|
53
|
+
from py4heappe.core.models.cluster_node_type_ext import ClusterNodeTypeExt
|
|
54
|
+
from py4heappe.core.models.cluster_node_type_for_task_ext import ClusterNodeTypeForTaskExt
|
|
55
|
+
from py4heappe.core.models.cluster_node_type_report_ext import ClusterNodeTypeReportExt
|
|
56
|
+
from py4heappe.core.models.cluster_node_type_requested_group import ClusterNodeTypeRequestedGroup
|
|
57
|
+
from py4heappe.core.models.cluster_node_type_resource_usage_ext import ClusterNodeTypeResourceUsageExt
|
|
58
|
+
from py4heappe.core.models.cluster_node_usage_ext import ClusterNodeUsageExt
|
|
59
|
+
from py4heappe.core.models.cluster_project import ClusterProject
|
|
60
|
+
from py4heappe.core.models.cluster_project_credential import ClusterProjectCredential
|
|
61
|
+
from py4heappe.core.models.cluster_proxy_connection import ClusterProxyConnection
|
|
62
|
+
from py4heappe.core.models.cluster_proxy_connection_ext import ClusterProxyConnectionExt
|
|
63
|
+
from py4heappe.core.models.cluster_report_ext import ClusterReportExt
|
|
64
|
+
from py4heappe.core.models.command_template import CommandTemplate
|
|
65
|
+
from py4heappe.core.models.command_template_ext import CommandTemplateExt
|
|
66
|
+
from py4heappe.core.models.command_template_parameter import CommandTemplateParameter
|
|
67
|
+
from py4heappe.core.models.command_template_parameter_ext import CommandTemplateParameterExt
|
|
68
|
+
from py4heappe.core.models.command_template_parameter_value_ext import CommandTemplateParameterValueExt
|
|
69
|
+
from py4heappe.core.models.contact import Contact
|
|
70
|
+
from py4heappe.core.models.copy_job_data_from_temp_model import CopyJobDataFromTempModel
|
|
71
|
+
from py4heappe.core.models.copy_job_data_to_temp_model import CopyJobDataToTempModel
|
|
72
|
+
from py4heappe.core.models.create_command_inner_template_parameter_model import CreateCommandInnerTemplateParameterModel
|
|
73
|
+
from py4heappe.core.models.create_command_template_from_generic_model import CreateCommandTemplateFromGenericModel
|
|
74
|
+
from py4heappe.core.models.create_command_template_model import CreateCommandTemplateModel
|
|
75
|
+
from py4heappe.core.models.create_command_template_parameter_model import CreateCommandTemplateParameterModel
|
|
76
|
+
from py4heappe.core.models.create_job_by_project_model import CreateJobByProjectModel
|
|
77
|
+
from py4heappe.core.models.create_project_assignment_to_cluster_model import CreateProjectAssignmentToClusterModel
|
|
78
|
+
from py4heappe.core.models.create_project_model import CreateProjectModel
|
|
79
|
+
from py4heappe.core.models.create_secure_shell_key_model import CreateSecureShellKeyModel
|
|
80
|
+
from py4heappe.core.models.create_secure_shell_key_model_obsolete import CreateSecureShellKeyModelObsolete
|
|
81
|
+
from py4heappe.core.models.data_transfer_method_ext import DataTransferMethodExt
|
|
82
|
+
from py4heappe.core.models.delete_job_model import DeleteJobModel
|
|
83
|
+
from py4heappe.core.models.deployment_type_ext import DeploymentTypeExt
|
|
84
|
+
from py4heappe.core.models.digital_signature_credentials_ext import DigitalSignatureCredentialsExt
|
|
85
|
+
from py4heappe.core.models.download_file_from_cluster_model import DownloadFileFromClusterModel
|
|
86
|
+
from py4heappe.core.models.download_parts_of_job_files_from_cluster_model import DownloadPartsOfJobFilesFromClusterModel
|
|
87
|
+
from py4heappe.core.models.end_data_transfer_model import EndDataTransferModel
|
|
88
|
+
from py4heappe.core.models.end_file_transfer_model import EndFileTransferModel
|
|
89
|
+
from py4heappe.core.models.environment_variable_ext import EnvironmentVariableExt
|
|
90
|
+
from py4heappe.core.models.extended_command_template_ext import ExtendedCommandTemplateExt
|
|
91
|
+
from py4heappe.core.models.extended_command_template_parameter_ext import ExtendedCommandTemplateParameterExt
|
|
92
|
+
from py4heappe.core.models.extended_project_info_ext import ExtendedProjectInfoExt
|
|
93
|
+
from py4heappe.core.models.file_information_ext import FileInformationExt
|
|
94
|
+
from py4heappe.core.models.file_transfer_cipher_type import FileTransferCipherType
|
|
95
|
+
from py4heappe.core.models.file_transfer_cipher_type_ext import FileTransferCipherTypeExt
|
|
96
|
+
from py4heappe.core.models.file_transfer_key_credentials_ext import FileTransferKeyCredentialsExt
|
|
97
|
+
from py4heappe.core.models.file_transfer_method import FileTransferMethod
|
|
98
|
+
from py4heappe.core.models.file_transfer_method_ext import FileTransferMethodExt
|
|
99
|
+
from py4heappe.core.models.file_transfer_protocol import FileTransferProtocol
|
|
100
|
+
from py4heappe.core.models.file_transfer_protocol_ext import FileTransferProtocolExt
|
|
101
|
+
from py4heappe.core.models.get_command_template_parameters_name_model import GetCommandTemplateParametersNameModel
|
|
102
|
+
from py4heappe.core.models.get_data_transfer_method_model import GetDataTransferMethodModel
|
|
103
|
+
from py4heappe.core.models.get_file_transfer_method_model import GetFileTransferMethodModel
|
|
104
|
+
from py4heappe.core.models.http_header_ext import HTTPHeaderExt
|
|
105
|
+
from py4heappe.core.models.http_get_to_job_node_model import HttpGetToJobNodeModel
|
|
106
|
+
from py4heappe.core.models.http_post_to_job_node_model import HttpPostToJobNodeModel
|
|
107
|
+
from py4heappe.core.models.initialize_cluster_script_directory_model import InitializeClusterScriptDirectoryModel
|
|
108
|
+
from py4heappe.core.models.instance_information_ext import InstanceInformationExt
|
|
109
|
+
from py4heappe.core.models.job_detailed_report_ext import JobDetailedReportExt
|
|
110
|
+
from py4heappe.core.models.job_file_content_ext import JobFileContentExt
|
|
111
|
+
from py4heappe.core.models.job_report_ext import JobReportExt
|
|
112
|
+
from py4heappe.core.models.job_specification_ext import JobSpecificationExt
|
|
113
|
+
from py4heappe.core.models.job_state_aggregation_report_ext import JobStateAggregationReportExt
|
|
114
|
+
from py4heappe.core.models.job_state_ext import JobStateExt
|
|
115
|
+
from py4heappe.core.models.lexis_credentials_ext import LexisCredentialsExt
|
|
116
|
+
from py4heappe.core.models.modify_command_template_from_generic_model import ModifyCommandTemplateFromGenericModel
|
|
117
|
+
from py4heappe.core.models.modify_command_template_model import ModifyCommandTemplateModel
|
|
118
|
+
from py4heappe.core.models.modify_command_template_parameter_model import ModifyCommandTemplateParameterModel
|
|
119
|
+
from py4heappe.core.models.modify_project_assignment_to_cluster_model import ModifyProjectAssignmentToClusterModel
|
|
120
|
+
from py4heappe.core.models.modify_project_model import ModifyProjectModel
|
|
121
|
+
from py4heappe.core.models.node_used_cores_and_limitation_ext import NodeUsedCoresAndLimitationExt
|
|
122
|
+
from py4heappe.core.models.open_id_credentials_ext import OpenIdCredentialsExt
|
|
123
|
+
from py4heappe.core.models.open_stack_application_credentials_ext import OpenStackApplicationCredentialsExt
|
|
124
|
+
from py4heappe.core.models.password_credentials_ext import PasswordCredentialsExt
|
|
125
|
+
from py4heappe.core.models.problem_details import ProblemDetails
|
|
126
|
+
from py4heappe.core.models.project import Project
|
|
127
|
+
from py4heappe.core.models.project_contact import ProjectContact
|
|
128
|
+
from py4heappe.core.models.project_detailed_report_ext import ProjectDetailedReportExt
|
|
129
|
+
from py4heappe.core.models.project_ext import ProjectExt
|
|
130
|
+
from py4heappe.core.models.project_for_task_ext import ProjectForTaskExt
|
|
131
|
+
from py4heappe.core.models.project_list_report_ext import ProjectListReportExt
|
|
132
|
+
from py4heappe.core.models.project_reference_ext import ProjectReferenceExt
|
|
133
|
+
from py4heappe.core.models.project_report_ext import ProjectReportExt
|
|
134
|
+
from py4heappe.core.models.project_resource_usage_ext import ProjectResourceUsageExt
|
|
135
|
+
from py4heappe.core.models.proxy_type import ProxyType
|
|
136
|
+
from py4heappe.core.models.proxy_type_ext import ProxyTypeExt
|
|
137
|
+
from py4heappe.core.models.public_key_ext import PublicKeyExt
|
|
138
|
+
from py4heappe.core.models.regenerate_secure_shell_key_model import RegenerateSecureShellKeyModel
|
|
139
|
+
from py4heappe.core.models.regenerate_secure_shell_key_model_obsolete import RegenerateSecureShellKeyModelObsolete
|
|
140
|
+
from py4heappe.core.models.remove_command_template_model import RemoveCommandTemplateModel
|
|
141
|
+
from py4heappe.core.models.remove_command_template_parameter_model import RemoveCommandTemplateParameterModel
|
|
142
|
+
from py4heappe.core.models.remove_project_assignment_to_cluster_model import RemoveProjectAssignmentToClusterModel
|
|
143
|
+
from py4heappe.core.models.remove_project_model import RemoveProjectModel
|
|
144
|
+
from py4heappe.core.models.remove_secure_shell_key_model import RemoveSecureShellKeyModel
|
|
145
|
+
from py4heappe.core.models.remove_secure_shell_key_model_obsolete import RemoveSecureShellKeyModelObsolete
|
|
146
|
+
from py4heappe.core.models.resource_allocation_type_ext import ResourceAllocationTypeExt
|
|
147
|
+
from py4heappe.core.models.scheduler_type import SchedulerType
|
|
148
|
+
from py4heappe.core.models.ssh_key_user_credentials_model import SshKeyUserCredentialsModel
|
|
149
|
+
from py4heappe.core.models.submit_job_model import SubmitJobModel
|
|
150
|
+
from py4heappe.core.models.submitted_job_info_ext import SubmittedJobInfoExt
|
|
151
|
+
from py4heappe.core.models.submitted_task_info_ext import SubmittedTaskInfoExt
|
|
152
|
+
from py4heappe.core.models.synchronizable_files_ext import SynchronizableFilesExt
|
|
153
|
+
from py4heappe.core.models.task_detailed_report_ext import TaskDetailedReportExt
|
|
154
|
+
from py4heappe.core.models.task_file_offset_ext import TaskFileOffsetExt
|
|
155
|
+
from py4heappe.core.models.task_paralization_parameter_ext import TaskParalizationParameterExt
|
|
156
|
+
from py4heappe.core.models.task_priority_ext import TaskPriorityExt
|
|
157
|
+
from py4heappe.core.models.task_report_ext import TaskReportExt
|
|
158
|
+
from py4heappe.core.models.task_specification_ext import TaskSpecificationExt
|
|
159
|
+
from py4heappe.core.models.task_state_ext import TaskStateExt
|
|
160
|
+
from py4heappe.core.models.test_cluster_access_for_account_model_obsolete import TestClusterAccessForAccountModelObsolete
|
|
161
|
+
from py4heappe.core.models.unauthorized_result import UnauthorizedResult
|
|
162
|
+
from py4heappe.core.models.usage_type import UsageType
|
|
163
|
+
from py4heappe.core.models.usage_type_ext import UsageTypeExt
|
|
164
|
+
from py4heappe.core.models.user_group_detailed_report_ext import UserGroupDetailedReportExt
|
|
165
|
+
from py4heappe.core.models.user_group_list_report_ext import UserGroupListReportExt
|
|
166
|
+
from py4heappe.core.models.user_group_report_ext import UserGroupReportExt
|
|
167
|
+
from py4heappe.core.models.version_information_ext import VersionInformationExt
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
from __future__ import absolute_import
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
# import apis into api package
|
|
6
|
+
from py4heappe.core.api.cluster_information_api import ClusterInformationApi
|
|
7
|
+
from py4heappe.core.api.data_transfer_api import DataTransferApi
|
|
8
|
+
from py4heappe.core.api.file_transfer_api import FileTransferApi
|
|
9
|
+
from py4heappe.core.api.job_management_api import JobManagementApi
|
|
10
|
+
from py4heappe.core.api.job_reporting_api import JobReportingApi
|
|
11
|
+
from py4heappe.core.api.management_api import ManagementApi
|
|
12
|
+
from py4heappe.core.api.user_and_limitation_management_api import UserAndLimitationManagementApi
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
HEAppE Web API
|
|
5
|
+
|
|
6
|
+
HEAppE middleware API v4.2.1 # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: v4.2.1
|
|
9
|
+
Contact: support.heappe@it4i.cz
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from __future__ import absolute_import
|
|
14
|
+
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
# python 2 and python 3 compatibility library
|
|
18
|
+
import six
|
|
19
|
+
|
|
20
|
+
from py4heappe.core.api_client import ApiClient
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class ClusterInformationApi(object):
|
|
24
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
25
|
+
|
|
26
|
+
Do not edit the class manually.
|
|
27
|
+
Ref: https://github.com/swagger-api/swagger-codegen
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
def __init__(self, api_client=None):
|
|
31
|
+
if api_client is None:
|
|
32
|
+
api_client = ApiClient()
|
|
33
|
+
self.api_client = api_client
|
|
34
|
+
|
|
35
|
+
def heappe_cluster_information_current_cluster_node_usage_get(self, **kwargs): # noqa: E501
|
|
36
|
+
"""Get actual cluster node usage # noqa: E501
|
|
37
|
+
|
|
38
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
39
|
+
asynchronous HTTP request, please pass async_req=True
|
|
40
|
+
>>> thread = api.heappe_cluster_information_current_cluster_node_usage_get(async_req=True)
|
|
41
|
+
>>> result = thread.get()
|
|
42
|
+
|
|
43
|
+
:param async_req bool
|
|
44
|
+
:param str SessionCode: Session code
|
|
45
|
+
:param int ClusterNodeId: ClusterNode ID
|
|
46
|
+
:param int ProjectId: Project ID
|
|
47
|
+
:return: ClusterNodeUsageExt
|
|
48
|
+
If the method is called asynchronously,
|
|
49
|
+
returns the request thread.
|
|
50
|
+
"""
|
|
51
|
+
kwargs['_return_http_data_only'] = True
|
|
52
|
+
if kwargs.get('async_req'):
|
|
53
|
+
return self.heappe_cluster_information_current_cluster_node_usage_get_with_http_info(**kwargs) # noqa: E501
|
|
54
|
+
else:
|
|
55
|
+
(data) = self.heappe_cluster_information_current_cluster_node_usage_get_with_http_info(**kwargs) # noqa: E501
|
|
56
|
+
return data
|
|
57
|
+
|
|
58
|
+
def heappe_cluster_information_current_cluster_node_usage_get_with_http_info(self, **kwargs): # noqa: E501
|
|
59
|
+
"""Get actual cluster node usage # noqa: E501
|
|
60
|
+
|
|
61
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
62
|
+
asynchronous HTTP request, please pass async_req=True
|
|
63
|
+
>>> thread = api.heappe_cluster_information_current_cluster_node_usage_get_with_http_info(async_req=True)
|
|
64
|
+
>>> result = thread.get()
|
|
65
|
+
|
|
66
|
+
:param async_req bool
|
|
67
|
+
:param str SessionCode: Session code
|
|
68
|
+
:param int ClusterNodeId: ClusterNode ID
|
|
69
|
+
:param int ProjectId: Project ID
|
|
70
|
+
:return: ClusterNodeUsageExt
|
|
71
|
+
If the method is called asynchronously,
|
|
72
|
+
returns the request thread.
|
|
73
|
+
"""
|
|
74
|
+
|
|
75
|
+
all_params = ['SessionCode', 'ClusterNodeId', 'ProjectId'] # noqa: E501
|
|
76
|
+
all_params.append('async_req')
|
|
77
|
+
all_params.append('_return_http_data_only')
|
|
78
|
+
all_params.append('_preload_content')
|
|
79
|
+
all_params.append('_request_timeout')
|
|
80
|
+
|
|
81
|
+
params = locals()
|
|
82
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
83
|
+
if key not in all_params:
|
|
84
|
+
raise TypeError(
|
|
85
|
+
"Got an unexpected keyword argument '%s'"
|
|
86
|
+
" to method heappe_cluster_information_current_cluster_node_usage_get" % key
|
|
87
|
+
)
|
|
88
|
+
params[key] = val
|
|
89
|
+
del params['kwargs']
|
|
90
|
+
|
|
91
|
+
collection_formats = {}
|
|
92
|
+
|
|
93
|
+
path_params = {}
|
|
94
|
+
|
|
95
|
+
query_params = []
|
|
96
|
+
if 'SessionCode' in params:
|
|
97
|
+
query_params.append(('SessionCode', params['SessionCode'])) # noqa: E501
|
|
98
|
+
if 'ClusterNodeId' in params:
|
|
99
|
+
query_params.append(('ClusterNodeId', params['ClusterNodeId'])) # noqa: E501
|
|
100
|
+
if 'ProjectId' in params:
|
|
101
|
+
query_params.append(('ProjectId', params['ProjectId'])) # noqa: E501
|
|
102
|
+
|
|
103
|
+
header_params = {}
|
|
104
|
+
|
|
105
|
+
form_params = []
|
|
106
|
+
local_var_files = {}
|
|
107
|
+
|
|
108
|
+
body_params = None
|
|
109
|
+
# HTTP header `Accept`
|
|
110
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
111
|
+
['application/json']) # noqa: E501
|
|
112
|
+
|
|
113
|
+
# Authentication setting
|
|
114
|
+
auth_settings = [] # noqa: E501
|
|
115
|
+
|
|
116
|
+
return self.api_client.call_api(
|
|
117
|
+
'/heappe/ClusterInformation/CurrentClusterNodeUsage', 'GET',
|
|
118
|
+
path_params,
|
|
119
|
+
query_params,
|
|
120
|
+
header_params,
|
|
121
|
+
body=body_params,
|
|
122
|
+
post_params=form_params,
|
|
123
|
+
files=local_var_files,
|
|
124
|
+
response_type='ClusterNodeUsageExt', # noqa: E501
|
|
125
|
+
auth_settings=auth_settings,
|
|
126
|
+
async_req=params.get('async_req'),
|
|
127
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
128
|
+
_preload_content=params.get('_preload_content', True),
|
|
129
|
+
_request_timeout=params.get('_request_timeout'),
|
|
130
|
+
collection_formats=collection_formats)
|
|
131
|
+
|
|
132
|
+
def heappe_cluster_information_list_available_clusters_get(self, **kwargs): # noqa: E501
|
|
133
|
+
"""Get available clusters # noqa: E501
|
|
134
|
+
|
|
135
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
136
|
+
asynchronous HTTP request, please pass async_req=True
|
|
137
|
+
>>> thread = api.heappe_cluster_information_list_available_clusters_get(async_req=True)
|
|
138
|
+
>>> result = thread.get()
|
|
139
|
+
|
|
140
|
+
:param async_req bool
|
|
141
|
+
:return: list[ClusterExt]
|
|
142
|
+
If the method is called asynchronously,
|
|
143
|
+
returns the request thread.
|
|
144
|
+
"""
|
|
145
|
+
kwargs['_return_http_data_only'] = True
|
|
146
|
+
if kwargs.get('async_req'):
|
|
147
|
+
return self.heappe_cluster_information_list_available_clusters_get_with_http_info(**kwargs) # noqa: E501
|
|
148
|
+
else:
|
|
149
|
+
(data) = self.heappe_cluster_information_list_available_clusters_get_with_http_info(**kwargs) # noqa: E501
|
|
150
|
+
return data
|
|
151
|
+
|
|
152
|
+
def heappe_cluster_information_list_available_clusters_get_with_http_info(self, **kwargs): # noqa: E501
|
|
153
|
+
"""Get available clusters # noqa: E501
|
|
154
|
+
|
|
155
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
156
|
+
asynchronous HTTP request, please pass async_req=True
|
|
157
|
+
>>> thread = api.heappe_cluster_information_list_available_clusters_get_with_http_info(async_req=True)
|
|
158
|
+
>>> result = thread.get()
|
|
159
|
+
|
|
160
|
+
:param async_req bool
|
|
161
|
+
:return: list[ClusterExt]
|
|
162
|
+
If the method is called asynchronously,
|
|
163
|
+
returns the request thread.
|
|
164
|
+
"""
|
|
165
|
+
|
|
166
|
+
all_params = [] # noqa: E501
|
|
167
|
+
all_params.append('async_req')
|
|
168
|
+
all_params.append('_return_http_data_only')
|
|
169
|
+
all_params.append('_preload_content')
|
|
170
|
+
all_params.append('_request_timeout')
|
|
171
|
+
|
|
172
|
+
params = locals()
|
|
173
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
174
|
+
if key not in all_params:
|
|
175
|
+
raise TypeError(
|
|
176
|
+
"Got an unexpected keyword argument '%s'"
|
|
177
|
+
" to method heappe_cluster_information_list_available_clusters_get" % key
|
|
178
|
+
)
|
|
179
|
+
params[key] = val
|
|
180
|
+
del params['kwargs']
|
|
181
|
+
|
|
182
|
+
collection_formats = {}
|
|
183
|
+
|
|
184
|
+
path_params = {}
|
|
185
|
+
|
|
186
|
+
query_params = []
|
|
187
|
+
|
|
188
|
+
header_params = {}
|
|
189
|
+
|
|
190
|
+
form_params = []
|
|
191
|
+
local_var_files = {}
|
|
192
|
+
|
|
193
|
+
body_params = None
|
|
194
|
+
# HTTP header `Accept`
|
|
195
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
196
|
+
['application/json']) # noqa: E501
|
|
197
|
+
|
|
198
|
+
# Authentication setting
|
|
199
|
+
auth_settings = [] # noqa: E501
|
|
200
|
+
|
|
201
|
+
return self.api_client.call_api(
|
|
202
|
+
'/heappe/ClusterInformation/ListAvailableClusters', 'GET',
|
|
203
|
+
path_params,
|
|
204
|
+
query_params,
|
|
205
|
+
header_params,
|
|
206
|
+
body=body_params,
|
|
207
|
+
post_params=form_params,
|
|
208
|
+
files=local_var_files,
|
|
209
|
+
response_type='list[ClusterExt]', # noqa: E501
|
|
210
|
+
auth_settings=auth_settings,
|
|
211
|
+
async_req=params.get('async_req'),
|
|
212
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
213
|
+
_preload_content=params.get('_preload_content', True),
|
|
214
|
+
_request_timeout=params.get('_request_timeout'),
|
|
215
|
+
collection_formats=collection_formats)
|
|
216
|
+
|
|
217
|
+
def heappe_cluster_information_request_command_template_parameters_name_post(self, **kwargs): # noqa: E501
|
|
218
|
+
"""Get command template parameters name # noqa: E501
|
|
219
|
+
|
|
220
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
221
|
+
asynchronous HTTP request, please pass async_req=True
|
|
222
|
+
>>> thread = api.heappe_cluster_information_request_command_template_parameters_name_post(async_req=True)
|
|
223
|
+
>>> result = thread.get()
|
|
224
|
+
|
|
225
|
+
:param async_req bool
|
|
226
|
+
:param GetCommandTemplateParametersNameModel body:
|
|
227
|
+
:return: list[str]
|
|
228
|
+
If the method is called asynchronously,
|
|
229
|
+
returns the request thread.
|
|
230
|
+
"""
|
|
231
|
+
kwargs['_return_http_data_only'] = True
|
|
232
|
+
if kwargs.get('async_req'):
|
|
233
|
+
return self.heappe_cluster_information_request_command_template_parameters_name_post_with_http_info(**kwargs) # noqa: E501
|
|
234
|
+
else:
|
|
235
|
+
(data) = self.heappe_cluster_information_request_command_template_parameters_name_post_with_http_info(**kwargs) # noqa: E501
|
|
236
|
+
return data
|
|
237
|
+
|
|
238
|
+
def heappe_cluster_information_request_command_template_parameters_name_post_with_http_info(self, **kwargs): # noqa: E501
|
|
239
|
+
"""Get command template parameters name # noqa: E501
|
|
240
|
+
|
|
241
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
242
|
+
asynchronous HTTP request, please pass async_req=True
|
|
243
|
+
>>> thread = api.heappe_cluster_information_request_command_template_parameters_name_post_with_http_info(async_req=True)
|
|
244
|
+
>>> result = thread.get()
|
|
245
|
+
|
|
246
|
+
:param async_req bool
|
|
247
|
+
:param GetCommandTemplateParametersNameModel body:
|
|
248
|
+
:return: list[str]
|
|
249
|
+
If the method is called asynchronously,
|
|
250
|
+
returns the request thread.
|
|
251
|
+
"""
|
|
252
|
+
|
|
253
|
+
all_params = ['body'] # noqa: E501
|
|
254
|
+
all_params.append('async_req')
|
|
255
|
+
all_params.append('_return_http_data_only')
|
|
256
|
+
all_params.append('_preload_content')
|
|
257
|
+
all_params.append('_request_timeout')
|
|
258
|
+
|
|
259
|
+
params = locals()
|
|
260
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
261
|
+
if key not in all_params:
|
|
262
|
+
raise TypeError(
|
|
263
|
+
"Got an unexpected keyword argument '%s'"
|
|
264
|
+
" to method heappe_cluster_information_request_command_template_parameters_name_post" % key
|
|
265
|
+
)
|
|
266
|
+
params[key] = val
|
|
267
|
+
del params['kwargs']
|
|
268
|
+
|
|
269
|
+
collection_formats = {}
|
|
270
|
+
|
|
271
|
+
path_params = {}
|
|
272
|
+
|
|
273
|
+
query_params = []
|
|
274
|
+
|
|
275
|
+
header_params = {}
|
|
276
|
+
|
|
277
|
+
form_params = []
|
|
278
|
+
local_var_files = {}
|
|
279
|
+
|
|
280
|
+
body_params = None
|
|
281
|
+
if 'body' in params:
|
|
282
|
+
body_params = params['body']
|
|
283
|
+
# HTTP header `Accept`
|
|
284
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
285
|
+
['application/json']) # noqa: E501
|
|
286
|
+
|
|
287
|
+
# HTTP header `Content-Type`
|
|
288
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
289
|
+
['application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
290
|
+
|
|
291
|
+
# Authentication setting
|
|
292
|
+
auth_settings = [] # noqa: E501
|
|
293
|
+
|
|
294
|
+
return self.api_client.call_api(
|
|
295
|
+
'/heappe/ClusterInformation/RequestCommandTemplateParametersName', 'POST',
|
|
296
|
+
path_params,
|
|
297
|
+
query_params,
|
|
298
|
+
header_params,
|
|
299
|
+
body=body_params,
|
|
300
|
+
post_params=form_params,
|
|
301
|
+
files=local_var_files,
|
|
302
|
+
response_type='list[str]', # noqa: E501
|
|
303
|
+
auth_settings=auth_settings,
|
|
304
|
+
async_req=params.get('async_req'),
|
|
305
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
306
|
+
_preload_content=params.get('_preload_content', True),
|
|
307
|
+
_request_timeout=params.get('_request_timeout'),
|
|
308
|
+
collection_formats=collection_formats)
|