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,188 @@
|
|
|
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
|
+
import pprint
|
|
14
|
+
import re # noqa: F401
|
|
15
|
+
|
|
16
|
+
import six
|
|
17
|
+
|
|
18
|
+
class CreateSecureShellKeyModelObsolete(object):
|
|
19
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
20
|
+
|
|
21
|
+
Do not edit the class manually.
|
|
22
|
+
"""
|
|
23
|
+
"""
|
|
24
|
+
Attributes:
|
|
25
|
+
swagger_types (dict): The key is attribute name
|
|
26
|
+
and the value is attribute type.
|
|
27
|
+
attribute_map (dict): The key is attribute name
|
|
28
|
+
and the value is json key in definition.
|
|
29
|
+
"""
|
|
30
|
+
swagger_types = {
|
|
31
|
+
'session_code': 'str',
|
|
32
|
+
'username': 'str',
|
|
33
|
+
'password': 'str',
|
|
34
|
+
'project_id': 'int'
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
attribute_map = {
|
|
38
|
+
'session_code': 'SessionCode',
|
|
39
|
+
'username': 'Username',
|
|
40
|
+
'password': 'Password',
|
|
41
|
+
'project_id': 'ProjectId'
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
def __init__(self, session_code=None, username=None, password=None, project_id=None): # noqa: E501
|
|
45
|
+
"""CreateSecureShellKeyModelObsolete - a model defined in Swagger""" # noqa: E501
|
|
46
|
+
self._session_code = None
|
|
47
|
+
self._username = None
|
|
48
|
+
self._password = None
|
|
49
|
+
self._project_id = None
|
|
50
|
+
self.discriminator = None
|
|
51
|
+
if session_code is not None:
|
|
52
|
+
self.session_code = session_code
|
|
53
|
+
if username is not None:
|
|
54
|
+
self.username = username
|
|
55
|
+
if password is not None:
|
|
56
|
+
self.password = password
|
|
57
|
+
if project_id is not None:
|
|
58
|
+
self.project_id = project_id
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def session_code(self):
|
|
62
|
+
"""Gets the session_code of this CreateSecureShellKeyModelObsolete. # noqa: E501
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
:return: The session_code of this CreateSecureShellKeyModelObsolete. # noqa: E501
|
|
66
|
+
:rtype: str
|
|
67
|
+
"""
|
|
68
|
+
return self._session_code
|
|
69
|
+
|
|
70
|
+
@session_code.setter
|
|
71
|
+
def session_code(self, session_code):
|
|
72
|
+
"""Sets the session_code of this CreateSecureShellKeyModelObsolete.
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:param session_code: The session_code of this CreateSecureShellKeyModelObsolete. # noqa: E501
|
|
76
|
+
:type: str
|
|
77
|
+
"""
|
|
78
|
+
|
|
79
|
+
self._session_code = session_code
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def username(self):
|
|
83
|
+
"""Gets the username of this CreateSecureShellKeyModelObsolete. # noqa: E501
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
:return: The username of this CreateSecureShellKeyModelObsolete. # noqa: E501
|
|
87
|
+
:rtype: str
|
|
88
|
+
"""
|
|
89
|
+
return self._username
|
|
90
|
+
|
|
91
|
+
@username.setter
|
|
92
|
+
def username(self, username):
|
|
93
|
+
"""Sets the username of this CreateSecureShellKeyModelObsolete.
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:param username: The username of this CreateSecureShellKeyModelObsolete. # noqa: E501
|
|
97
|
+
:type: str
|
|
98
|
+
"""
|
|
99
|
+
|
|
100
|
+
self._username = username
|
|
101
|
+
|
|
102
|
+
@property
|
|
103
|
+
def password(self):
|
|
104
|
+
"""Gets the password of this CreateSecureShellKeyModelObsolete. # noqa: E501
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
:return: The password of this CreateSecureShellKeyModelObsolete. # noqa: E501
|
|
108
|
+
:rtype: str
|
|
109
|
+
"""
|
|
110
|
+
return self._password
|
|
111
|
+
|
|
112
|
+
@password.setter
|
|
113
|
+
def password(self, password):
|
|
114
|
+
"""Sets the password of this CreateSecureShellKeyModelObsolete.
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
:param password: The password of this CreateSecureShellKeyModelObsolete. # noqa: E501
|
|
118
|
+
:type: str
|
|
119
|
+
"""
|
|
120
|
+
|
|
121
|
+
self._password = password
|
|
122
|
+
|
|
123
|
+
@property
|
|
124
|
+
def project_id(self):
|
|
125
|
+
"""Gets the project_id of this CreateSecureShellKeyModelObsolete. # noqa: E501
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
:return: The project_id of this CreateSecureShellKeyModelObsolete. # noqa: E501
|
|
129
|
+
:rtype: int
|
|
130
|
+
"""
|
|
131
|
+
return self._project_id
|
|
132
|
+
|
|
133
|
+
@project_id.setter
|
|
134
|
+
def project_id(self, project_id):
|
|
135
|
+
"""Sets the project_id of this CreateSecureShellKeyModelObsolete.
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:param project_id: The project_id of this CreateSecureShellKeyModelObsolete. # noqa: E501
|
|
139
|
+
:type: int
|
|
140
|
+
"""
|
|
141
|
+
|
|
142
|
+
self._project_id = project_id
|
|
143
|
+
|
|
144
|
+
def to_dict(self):
|
|
145
|
+
"""Returns the model properties as a dict"""
|
|
146
|
+
result = {}
|
|
147
|
+
|
|
148
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
149
|
+
value = getattr(self, attr)
|
|
150
|
+
if isinstance(value, list):
|
|
151
|
+
result[attr] = list(map(
|
|
152
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
153
|
+
value
|
|
154
|
+
))
|
|
155
|
+
elif hasattr(value, "to_dict"):
|
|
156
|
+
result[attr] = value.to_dict()
|
|
157
|
+
elif isinstance(value, dict):
|
|
158
|
+
result[attr] = dict(map(
|
|
159
|
+
lambda item: (item[0], item[1].to_dict())
|
|
160
|
+
if hasattr(item[1], "to_dict") else item,
|
|
161
|
+
value.items()
|
|
162
|
+
))
|
|
163
|
+
else:
|
|
164
|
+
result[attr] = value
|
|
165
|
+
if issubclass(CreateSecureShellKeyModelObsolete, dict):
|
|
166
|
+
for key, value in self.items():
|
|
167
|
+
result[key] = value
|
|
168
|
+
|
|
169
|
+
return result
|
|
170
|
+
|
|
171
|
+
def to_str(self):
|
|
172
|
+
"""Returns the string representation of the model"""
|
|
173
|
+
return pprint.pformat(self.to_dict())
|
|
174
|
+
|
|
175
|
+
def __repr__(self):
|
|
176
|
+
"""For `print` and `pprint`"""
|
|
177
|
+
return self.to_str()
|
|
178
|
+
|
|
179
|
+
def __eq__(self, other):
|
|
180
|
+
"""Returns true if both objects are equal"""
|
|
181
|
+
if not isinstance(other, CreateSecureShellKeyModelObsolete):
|
|
182
|
+
return False
|
|
183
|
+
|
|
184
|
+
return self.__dict__ == other.__dict__
|
|
185
|
+
|
|
186
|
+
def __ne__(self, other):
|
|
187
|
+
"""Returns true if both objects are not equal"""
|
|
188
|
+
return not self == other
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
HEAppE Web API
|
|
5
|
+
|
|
6
|
+
HEAppE middleware API v4.0.0 # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: v4.0.0
|
|
9
|
+
Contact: support.heappe@it4i.cz
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
import pprint
|
|
14
|
+
import re # noqa: F401
|
|
15
|
+
|
|
16
|
+
import six
|
|
17
|
+
|
|
18
|
+
class CurrentClusterNodeUsageModel(object):
|
|
19
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
20
|
+
|
|
21
|
+
Do not edit the class manually.
|
|
22
|
+
"""
|
|
23
|
+
"""
|
|
24
|
+
Attributes:
|
|
25
|
+
swagger_types (dict): The key is attribute name
|
|
26
|
+
and the value is attribute type.
|
|
27
|
+
attribute_map (dict): The key is attribute name
|
|
28
|
+
and the value is json key in definition.
|
|
29
|
+
"""
|
|
30
|
+
swagger_types = {
|
|
31
|
+
'session_code': 'str',
|
|
32
|
+
'cluster_node_id': 'int'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
attribute_map = {
|
|
36
|
+
'session_code': 'SessionCode',
|
|
37
|
+
'cluster_node_id': 'ClusterNodeId'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
def __init__(self, session_code=None, cluster_node_id=None): # noqa: E501
|
|
41
|
+
"""CurrentClusterNodeUsageModel - a model defined in Swagger""" # noqa: E501
|
|
42
|
+
self._session_code = None
|
|
43
|
+
self._cluster_node_id = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
if session_code is not None:
|
|
46
|
+
self.session_code = session_code
|
|
47
|
+
if cluster_node_id is not None:
|
|
48
|
+
self.cluster_node_id = cluster_node_id
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def session_code(self):
|
|
52
|
+
"""Gets the session_code of this CurrentClusterNodeUsageModel. # noqa: E501
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
:return: The session_code of this CurrentClusterNodeUsageModel. # noqa: E501
|
|
56
|
+
:rtype: str
|
|
57
|
+
"""
|
|
58
|
+
return self._session_code
|
|
59
|
+
|
|
60
|
+
@session_code.setter
|
|
61
|
+
def session_code(self, session_code):
|
|
62
|
+
"""Sets the session_code of this CurrentClusterNodeUsageModel.
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
:param session_code: The session_code of this CurrentClusterNodeUsageModel. # noqa: E501
|
|
66
|
+
:type: str
|
|
67
|
+
"""
|
|
68
|
+
|
|
69
|
+
self._session_code = session_code
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def cluster_node_id(self):
|
|
73
|
+
"""Gets the cluster_node_id of this CurrentClusterNodeUsageModel. # noqa: E501
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
:return: The cluster_node_id of this CurrentClusterNodeUsageModel. # noqa: E501
|
|
77
|
+
:rtype: int
|
|
78
|
+
"""
|
|
79
|
+
return self._cluster_node_id
|
|
80
|
+
|
|
81
|
+
@cluster_node_id.setter
|
|
82
|
+
def cluster_node_id(self, cluster_node_id):
|
|
83
|
+
"""Sets the cluster_node_id of this CurrentClusterNodeUsageModel.
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
:param cluster_node_id: The cluster_node_id of this CurrentClusterNodeUsageModel. # noqa: E501
|
|
87
|
+
:type: int
|
|
88
|
+
"""
|
|
89
|
+
|
|
90
|
+
self._cluster_node_id = cluster_node_id
|
|
91
|
+
|
|
92
|
+
def to_dict(self):
|
|
93
|
+
"""Returns the model properties as a dict"""
|
|
94
|
+
result = {}
|
|
95
|
+
|
|
96
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
97
|
+
value = getattr(self, attr)
|
|
98
|
+
if isinstance(value, list):
|
|
99
|
+
result[attr] = list(map(
|
|
100
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
101
|
+
value
|
|
102
|
+
))
|
|
103
|
+
elif hasattr(value, "to_dict"):
|
|
104
|
+
result[attr] = value.to_dict()
|
|
105
|
+
elif isinstance(value, dict):
|
|
106
|
+
result[attr] = dict(map(
|
|
107
|
+
lambda item: (item[0], item[1].to_dict())
|
|
108
|
+
if hasattr(item[1], "to_dict") else item,
|
|
109
|
+
value.items()
|
|
110
|
+
))
|
|
111
|
+
else:
|
|
112
|
+
result[attr] = value
|
|
113
|
+
if issubclass(CurrentClusterNodeUsageModel, dict):
|
|
114
|
+
for key, value in self.items():
|
|
115
|
+
result[key] = value
|
|
116
|
+
|
|
117
|
+
return result
|
|
118
|
+
|
|
119
|
+
def to_str(self):
|
|
120
|
+
"""Returns the string representation of the model"""
|
|
121
|
+
return pprint.pformat(self.to_dict())
|
|
122
|
+
|
|
123
|
+
def __repr__(self):
|
|
124
|
+
"""For `print` and `pprint`"""
|
|
125
|
+
return self.to_str()
|
|
126
|
+
|
|
127
|
+
def __eq__(self, other):
|
|
128
|
+
"""Returns true if both objects are equal"""
|
|
129
|
+
if not isinstance(other, CurrentClusterNodeUsageModel):
|
|
130
|
+
return False
|
|
131
|
+
|
|
132
|
+
return self.__dict__ == other.__dict__
|
|
133
|
+
|
|
134
|
+
def __ne__(self, other):
|
|
135
|
+
"""Returns true if both objects are not equal"""
|
|
136
|
+
return not self == other
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
HEAppE Web API
|
|
5
|
+
|
|
6
|
+
HEAppE middleware API v4.0.0 # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: v4.0.0
|
|
9
|
+
Contact: support.heappe@it4i.cz
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
import pprint
|
|
14
|
+
import re # noqa: F401
|
|
15
|
+
|
|
16
|
+
import six
|
|
17
|
+
|
|
18
|
+
class CurrentInfoForJobModel(object):
|
|
19
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
20
|
+
|
|
21
|
+
Do not edit the class manually.
|
|
22
|
+
"""
|
|
23
|
+
"""
|
|
24
|
+
Attributes:
|
|
25
|
+
swagger_types (dict): The key is attribute name
|
|
26
|
+
and the value is attribute type.
|
|
27
|
+
attribute_map (dict): The key is attribute name
|
|
28
|
+
and the value is json key in definition.
|
|
29
|
+
"""
|
|
30
|
+
swagger_types = {
|
|
31
|
+
'session_code': 'str',
|
|
32
|
+
'submitted_job_info_id': 'int'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
attribute_map = {
|
|
36
|
+
'session_code': 'SessionCode',
|
|
37
|
+
'submitted_job_info_id': 'SubmittedJobInfoId'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
def __init__(self, session_code=None, submitted_job_info_id=None): # noqa: E501
|
|
41
|
+
"""CurrentInfoForJobModel - a model defined in Swagger""" # noqa: E501
|
|
42
|
+
self._session_code = None
|
|
43
|
+
self._submitted_job_info_id = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
if session_code is not None:
|
|
46
|
+
self.session_code = session_code
|
|
47
|
+
if submitted_job_info_id is not None:
|
|
48
|
+
self.submitted_job_info_id = submitted_job_info_id
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def session_code(self):
|
|
52
|
+
"""Gets the session_code of this CurrentInfoForJobModel. # noqa: E501
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
:return: The session_code of this CurrentInfoForJobModel. # noqa: E501
|
|
56
|
+
:rtype: str
|
|
57
|
+
"""
|
|
58
|
+
return self._session_code
|
|
59
|
+
|
|
60
|
+
@session_code.setter
|
|
61
|
+
def session_code(self, session_code):
|
|
62
|
+
"""Sets the session_code of this CurrentInfoForJobModel.
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
:param session_code: The session_code of this CurrentInfoForJobModel. # noqa: E501
|
|
66
|
+
:type: str
|
|
67
|
+
"""
|
|
68
|
+
|
|
69
|
+
self._session_code = session_code
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def submitted_job_info_id(self):
|
|
73
|
+
"""Gets the submitted_job_info_id of this CurrentInfoForJobModel. # noqa: E501
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
:return: The submitted_job_info_id of this CurrentInfoForJobModel. # noqa: E501
|
|
77
|
+
:rtype: int
|
|
78
|
+
"""
|
|
79
|
+
return self._submitted_job_info_id
|
|
80
|
+
|
|
81
|
+
@submitted_job_info_id.setter
|
|
82
|
+
def submitted_job_info_id(self, submitted_job_info_id):
|
|
83
|
+
"""Sets the submitted_job_info_id of this CurrentInfoForJobModel.
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
:param submitted_job_info_id: The submitted_job_info_id of this CurrentInfoForJobModel. # noqa: E501
|
|
87
|
+
:type: int
|
|
88
|
+
"""
|
|
89
|
+
|
|
90
|
+
self._submitted_job_info_id = submitted_job_info_id
|
|
91
|
+
|
|
92
|
+
def to_dict(self):
|
|
93
|
+
"""Returns the model properties as a dict"""
|
|
94
|
+
result = {}
|
|
95
|
+
|
|
96
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
97
|
+
value = getattr(self, attr)
|
|
98
|
+
if isinstance(value, list):
|
|
99
|
+
result[attr] = list(map(
|
|
100
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
101
|
+
value
|
|
102
|
+
))
|
|
103
|
+
elif hasattr(value, "to_dict"):
|
|
104
|
+
result[attr] = value.to_dict()
|
|
105
|
+
elif isinstance(value, dict):
|
|
106
|
+
result[attr] = dict(map(
|
|
107
|
+
lambda item: (item[0], item[1].to_dict())
|
|
108
|
+
if hasattr(item[1], "to_dict") else item,
|
|
109
|
+
value.items()
|
|
110
|
+
))
|
|
111
|
+
else:
|
|
112
|
+
result[attr] = value
|
|
113
|
+
if issubclass(CurrentInfoForJobModel, dict):
|
|
114
|
+
for key, value in self.items():
|
|
115
|
+
result[key] = value
|
|
116
|
+
|
|
117
|
+
return result
|
|
118
|
+
|
|
119
|
+
def to_str(self):
|
|
120
|
+
"""Returns the string representation of the model"""
|
|
121
|
+
return pprint.pformat(self.to_dict())
|
|
122
|
+
|
|
123
|
+
def __repr__(self):
|
|
124
|
+
"""For `print` and `pprint`"""
|
|
125
|
+
return self.to_str()
|
|
126
|
+
|
|
127
|
+
def __eq__(self, other):
|
|
128
|
+
"""Returns true if both objects are equal"""
|
|
129
|
+
if not isinstance(other, CurrentInfoForJobModel):
|
|
130
|
+
return False
|
|
131
|
+
|
|
132
|
+
return self.__dict__ == other.__dict__
|
|
133
|
+
|
|
134
|
+
def __ne__(self, other):
|
|
135
|
+
"""Returns true if both objects are not equal"""
|
|
136
|
+
return not self == other
|
|
@@ -0,0 +1,188 @@
|
|
|
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
|
+
import pprint
|
|
14
|
+
import re # noqa: F401
|
|
15
|
+
|
|
16
|
+
import six
|
|
17
|
+
|
|
18
|
+
class DataTransferMethodExt(object):
|
|
19
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
20
|
+
|
|
21
|
+
Do not edit the class manually.
|
|
22
|
+
"""
|
|
23
|
+
"""
|
|
24
|
+
Attributes:
|
|
25
|
+
swagger_types (dict): The key is attribute name
|
|
26
|
+
and the value is attribute type.
|
|
27
|
+
attribute_map (dict): The key is attribute name
|
|
28
|
+
and the value is json key in definition.
|
|
29
|
+
"""
|
|
30
|
+
swagger_types = {
|
|
31
|
+
'submitted_task_id': 'int',
|
|
32
|
+
'port': 'int',
|
|
33
|
+
'node_ip_address': 'str',
|
|
34
|
+
'node_port': 'int'
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
attribute_map = {
|
|
38
|
+
'submitted_task_id': 'SubmittedTaskId',
|
|
39
|
+
'port': 'Port',
|
|
40
|
+
'node_ip_address': 'NodeIPAddress',
|
|
41
|
+
'node_port': 'NodePort'
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
def __init__(self, submitted_task_id=None, port=None, node_ip_address=None, node_port=None): # noqa: E501
|
|
45
|
+
"""DataTransferMethodExt - a model defined in Swagger""" # noqa: E501
|
|
46
|
+
self._submitted_task_id = None
|
|
47
|
+
self._port = None
|
|
48
|
+
self._node_ip_address = None
|
|
49
|
+
self._node_port = None
|
|
50
|
+
self.discriminator = None
|
|
51
|
+
if submitted_task_id is not None:
|
|
52
|
+
self.submitted_task_id = submitted_task_id
|
|
53
|
+
if port is not None:
|
|
54
|
+
self.port = port
|
|
55
|
+
if node_ip_address is not None:
|
|
56
|
+
self.node_ip_address = node_ip_address
|
|
57
|
+
if node_port is not None:
|
|
58
|
+
self.node_port = node_port
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def submitted_task_id(self):
|
|
62
|
+
"""Gets the submitted_task_id of this DataTransferMethodExt. # noqa: E501
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
:return: The submitted_task_id of this DataTransferMethodExt. # noqa: E501
|
|
66
|
+
:rtype: int
|
|
67
|
+
"""
|
|
68
|
+
return self._submitted_task_id
|
|
69
|
+
|
|
70
|
+
@submitted_task_id.setter
|
|
71
|
+
def submitted_task_id(self, submitted_task_id):
|
|
72
|
+
"""Sets the submitted_task_id of this DataTransferMethodExt.
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:param submitted_task_id: The submitted_task_id of this DataTransferMethodExt. # noqa: E501
|
|
76
|
+
:type: int
|
|
77
|
+
"""
|
|
78
|
+
|
|
79
|
+
self._submitted_task_id = submitted_task_id
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def port(self):
|
|
83
|
+
"""Gets the port of this DataTransferMethodExt. # noqa: E501
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
:return: The port of this DataTransferMethodExt. # noqa: E501
|
|
87
|
+
:rtype: int
|
|
88
|
+
"""
|
|
89
|
+
return self._port
|
|
90
|
+
|
|
91
|
+
@port.setter
|
|
92
|
+
def port(self, port):
|
|
93
|
+
"""Sets the port of this DataTransferMethodExt.
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:param port: The port of this DataTransferMethodExt. # noqa: E501
|
|
97
|
+
:type: int
|
|
98
|
+
"""
|
|
99
|
+
|
|
100
|
+
self._port = port
|
|
101
|
+
|
|
102
|
+
@property
|
|
103
|
+
def node_ip_address(self):
|
|
104
|
+
"""Gets the node_ip_address of this DataTransferMethodExt. # noqa: E501
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
:return: The node_ip_address of this DataTransferMethodExt. # noqa: E501
|
|
108
|
+
:rtype: str
|
|
109
|
+
"""
|
|
110
|
+
return self._node_ip_address
|
|
111
|
+
|
|
112
|
+
@node_ip_address.setter
|
|
113
|
+
def node_ip_address(self, node_ip_address):
|
|
114
|
+
"""Sets the node_ip_address of this DataTransferMethodExt.
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
:param node_ip_address: The node_ip_address of this DataTransferMethodExt. # noqa: E501
|
|
118
|
+
:type: str
|
|
119
|
+
"""
|
|
120
|
+
|
|
121
|
+
self._node_ip_address = node_ip_address
|
|
122
|
+
|
|
123
|
+
@property
|
|
124
|
+
def node_port(self):
|
|
125
|
+
"""Gets the node_port of this DataTransferMethodExt. # noqa: E501
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
:return: The node_port of this DataTransferMethodExt. # noqa: E501
|
|
129
|
+
:rtype: int
|
|
130
|
+
"""
|
|
131
|
+
return self._node_port
|
|
132
|
+
|
|
133
|
+
@node_port.setter
|
|
134
|
+
def node_port(self, node_port):
|
|
135
|
+
"""Sets the node_port of this DataTransferMethodExt.
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:param node_port: The node_port of this DataTransferMethodExt. # noqa: E501
|
|
139
|
+
:type: int
|
|
140
|
+
"""
|
|
141
|
+
|
|
142
|
+
self._node_port = node_port
|
|
143
|
+
|
|
144
|
+
def to_dict(self):
|
|
145
|
+
"""Returns the model properties as a dict"""
|
|
146
|
+
result = {}
|
|
147
|
+
|
|
148
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
149
|
+
value = getattr(self, attr)
|
|
150
|
+
if isinstance(value, list):
|
|
151
|
+
result[attr] = list(map(
|
|
152
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
153
|
+
value
|
|
154
|
+
))
|
|
155
|
+
elif hasattr(value, "to_dict"):
|
|
156
|
+
result[attr] = value.to_dict()
|
|
157
|
+
elif isinstance(value, dict):
|
|
158
|
+
result[attr] = dict(map(
|
|
159
|
+
lambda item: (item[0], item[1].to_dict())
|
|
160
|
+
if hasattr(item[1], "to_dict") else item,
|
|
161
|
+
value.items()
|
|
162
|
+
))
|
|
163
|
+
else:
|
|
164
|
+
result[attr] = value
|
|
165
|
+
if issubclass(DataTransferMethodExt, dict):
|
|
166
|
+
for key, value in self.items():
|
|
167
|
+
result[key] = value
|
|
168
|
+
|
|
169
|
+
return result
|
|
170
|
+
|
|
171
|
+
def to_str(self):
|
|
172
|
+
"""Returns the string representation of the model"""
|
|
173
|
+
return pprint.pformat(self.to_dict())
|
|
174
|
+
|
|
175
|
+
def __repr__(self):
|
|
176
|
+
"""For `print` and `pprint`"""
|
|
177
|
+
return self.to_str()
|
|
178
|
+
|
|
179
|
+
def __eq__(self, other):
|
|
180
|
+
"""Returns true if both objects are equal"""
|
|
181
|
+
if not isinstance(other, DataTransferMethodExt):
|
|
182
|
+
return False
|
|
183
|
+
|
|
184
|
+
return self.__dict__ == other.__dict__
|
|
185
|
+
|
|
186
|
+
def __ne__(self, other):
|
|
187
|
+
"""Returns true if both objects are not equal"""
|
|
188
|
+
return not self == other
|