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,866 @@
|
|
|
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 JobManagementApi(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_job_management_allocated_nodes_ips_get(self, **kwargs): # noqa: E501
|
|
36
|
+
"""Get Allocated Nodes IPs # 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_job_management_allocated_nodes_ips_get(async_req=True)
|
|
41
|
+
>>> result = thread.get()
|
|
42
|
+
|
|
43
|
+
:param async_req bool
|
|
44
|
+
:param str SessionCode: Session code
|
|
45
|
+
:param int SubmittedTaskInfoId: SubmittedTaskInfo ID
|
|
46
|
+
:return: list[str]
|
|
47
|
+
If the method is called asynchronously,
|
|
48
|
+
returns the request thread.
|
|
49
|
+
"""
|
|
50
|
+
kwargs['_return_http_data_only'] = True
|
|
51
|
+
if kwargs.get('async_req'):
|
|
52
|
+
return self.heappe_job_management_allocated_nodes_ips_get_with_http_info(**kwargs) # noqa: E501
|
|
53
|
+
else:
|
|
54
|
+
(data) = self.heappe_job_management_allocated_nodes_ips_get_with_http_info(**kwargs) # noqa: E501
|
|
55
|
+
return data
|
|
56
|
+
|
|
57
|
+
def heappe_job_management_allocated_nodes_ips_get_with_http_info(self, **kwargs): # noqa: E501
|
|
58
|
+
"""Get Allocated Nodes IPs # noqa: E501
|
|
59
|
+
|
|
60
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
61
|
+
asynchronous HTTP request, please pass async_req=True
|
|
62
|
+
>>> thread = api.heappe_job_management_allocated_nodes_ips_get_with_http_info(async_req=True)
|
|
63
|
+
>>> result = thread.get()
|
|
64
|
+
|
|
65
|
+
:param async_req bool
|
|
66
|
+
:param str SessionCode: Session code
|
|
67
|
+
:param int SubmittedTaskInfoId: SubmittedTaskInfo ID
|
|
68
|
+
:return: list[str]
|
|
69
|
+
If the method is called asynchronously,
|
|
70
|
+
returns the request thread.
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
all_params = ['SessionCode', 'SubmittedTaskInfoId'] # noqa: E501
|
|
74
|
+
all_params.append('async_req')
|
|
75
|
+
all_params.append('_return_http_data_only')
|
|
76
|
+
all_params.append('_preload_content')
|
|
77
|
+
all_params.append('_request_timeout')
|
|
78
|
+
|
|
79
|
+
params = locals()
|
|
80
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
81
|
+
if key not in all_params:
|
|
82
|
+
raise TypeError(
|
|
83
|
+
"Got an unexpected keyword argument '%s'"
|
|
84
|
+
" to method heappe_job_management_allocated_nodes_ips_get" % key
|
|
85
|
+
)
|
|
86
|
+
params[key] = val
|
|
87
|
+
del params['kwargs']
|
|
88
|
+
|
|
89
|
+
collection_formats = {}
|
|
90
|
+
|
|
91
|
+
path_params = {}
|
|
92
|
+
|
|
93
|
+
query_params = []
|
|
94
|
+
if 'SessionCode' in params:
|
|
95
|
+
query_params.append(('SessionCode', params['SessionCode'])) # noqa: E501
|
|
96
|
+
if 'SubmittedTaskInfoId' in params:
|
|
97
|
+
query_params.append(('SubmittedTaskInfoId', params['SubmittedTaskInfoId'])) # noqa: E501
|
|
98
|
+
|
|
99
|
+
header_params = {}
|
|
100
|
+
|
|
101
|
+
form_params = []
|
|
102
|
+
local_var_files = {}
|
|
103
|
+
|
|
104
|
+
body_params = None
|
|
105
|
+
# HTTP header `Accept`
|
|
106
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
107
|
+
['application/json']) # noqa: E501
|
|
108
|
+
|
|
109
|
+
# Authentication setting
|
|
110
|
+
auth_settings = [] # noqa: E501
|
|
111
|
+
|
|
112
|
+
return self.api_client.call_api(
|
|
113
|
+
'/heappe/JobManagement/AllocatedNodesIPs', 'GET',
|
|
114
|
+
path_params,
|
|
115
|
+
query_params,
|
|
116
|
+
header_params,
|
|
117
|
+
body=body_params,
|
|
118
|
+
post_params=form_params,
|
|
119
|
+
files=local_var_files,
|
|
120
|
+
response_type='list[str]', # noqa: E501
|
|
121
|
+
auth_settings=auth_settings,
|
|
122
|
+
async_req=params.get('async_req'),
|
|
123
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
124
|
+
_preload_content=params.get('_preload_content', True),
|
|
125
|
+
_request_timeout=params.get('_request_timeout'),
|
|
126
|
+
collection_formats=collection_formats)
|
|
127
|
+
|
|
128
|
+
def heappe_job_management_cancel_job_put(self, **kwargs): # noqa: E501
|
|
129
|
+
"""Cancel job # noqa: E501
|
|
130
|
+
|
|
131
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
132
|
+
asynchronous HTTP request, please pass async_req=True
|
|
133
|
+
>>> thread = api.heappe_job_management_cancel_job_put(async_req=True)
|
|
134
|
+
>>> result = thread.get()
|
|
135
|
+
|
|
136
|
+
:param async_req bool
|
|
137
|
+
:param CancelJobModel body:
|
|
138
|
+
:return: SubmittedJobInfoExt
|
|
139
|
+
If the method is called asynchronously,
|
|
140
|
+
returns the request thread.
|
|
141
|
+
"""
|
|
142
|
+
kwargs['_return_http_data_only'] = True
|
|
143
|
+
if kwargs.get('async_req'):
|
|
144
|
+
return self.heappe_job_management_cancel_job_put_with_http_info(**kwargs) # noqa: E501
|
|
145
|
+
else:
|
|
146
|
+
(data) = self.heappe_job_management_cancel_job_put_with_http_info(**kwargs) # noqa: E501
|
|
147
|
+
return data
|
|
148
|
+
|
|
149
|
+
def heappe_job_management_cancel_job_put_with_http_info(self, **kwargs): # noqa: E501
|
|
150
|
+
"""Cancel job # noqa: E501
|
|
151
|
+
|
|
152
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
153
|
+
asynchronous HTTP request, please pass async_req=True
|
|
154
|
+
>>> thread = api.heappe_job_management_cancel_job_put_with_http_info(async_req=True)
|
|
155
|
+
>>> result = thread.get()
|
|
156
|
+
|
|
157
|
+
:param async_req bool
|
|
158
|
+
:param CancelJobModel body:
|
|
159
|
+
:return: SubmittedJobInfoExt
|
|
160
|
+
If the method is called asynchronously,
|
|
161
|
+
returns the request thread.
|
|
162
|
+
"""
|
|
163
|
+
|
|
164
|
+
all_params = ['body'] # noqa: E501
|
|
165
|
+
all_params.append('async_req')
|
|
166
|
+
all_params.append('_return_http_data_only')
|
|
167
|
+
all_params.append('_preload_content')
|
|
168
|
+
all_params.append('_request_timeout')
|
|
169
|
+
|
|
170
|
+
params = locals()
|
|
171
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
172
|
+
if key not in all_params:
|
|
173
|
+
raise TypeError(
|
|
174
|
+
"Got an unexpected keyword argument '%s'"
|
|
175
|
+
" to method heappe_job_management_cancel_job_put" % key
|
|
176
|
+
)
|
|
177
|
+
params[key] = val
|
|
178
|
+
del params['kwargs']
|
|
179
|
+
|
|
180
|
+
collection_formats = {}
|
|
181
|
+
|
|
182
|
+
path_params = {}
|
|
183
|
+
|
|
184
|
+
query_params = []
|
|
185
|
+
|
|
186
|
+
header_params = {}
|
|
187
|
+
|
|
188
|
+
form_params = []
|
|
189
|
+
local_var_files = {}
|
|
190
|
+
|
|
191
|
+
body_params = None
|
|
192
|
+
if 'body' in params:
|
|
193
|
+
body_params = params['body']
|
|
194
|
+
# HTTP header `Accept`
|
|
195
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
196
|
+
['application/json']) # noqa: E501
|
|
197
|
+
|
|
198
|
+
# HTTP header `Content-Type`
|
|
199
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
200
|
+
['application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
201
|
+
|
|
202
|
+
# Authentication setting
|
|
203
|
+
auth_settings = [] # noqa: E501
|
|
204
|
+
|
|
205
|
+
return self.api_client.call_api(
|
|
206
|
+
'/heappe/JobManagement/CancelJob', 'PUT',
|
|
207
|
+
path_params,
|
|
208
|
+
query_params,
|
|
209
|
+
header_params,
|
|
210
|
+
body=body_params,
|
|
211
|
+
post_params=form_params,
|
|
212
|
+
files=local_var_files,
|
|
213
|
+
response_type='SubmittedJobInfoExt', # noqa: E501
|
|
214
|
+
auth_settings=auth_settings,
|
|
215
|
+
async_req=params.get('async_req'),
|
|
216
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
217
|
+
_preload_content=params.get('_preload_content', True),
|
|
218
|
+
_request_timeout=params.get('_request_timeout'),
|
|
219
|
+
collection_formats=collection_formats)
|
|
220
|
+
|
|
221
|
+
def heappe_job_management_copy_job_data_from_temp_post(self, **kwargs): # noqa: E501
|
|
222
|
+
"""Copy job data from temp folder # noqa: E501
|
|
223
|
+
|
|
224
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
225
|
+
asynchronous HTTP request, please pass async_req=True
|
|
226
|
+
>>> thread = api.heappe_job_management_copy_job_data_from_temp_post(async_req=True)
|
|
227
|
+
>>> result = thread.get()
|
|
228
|
+
|
|
229
|
+
:param async_req bool
|
|
230
|
+
:param CopyJobDataFromTempModel body:
|
|
231
|
+
:return: str
|
|
232
|
+
If the method is called asynchronously,
|
|
233
|
+
returns the request thread.
|
|
234
|
+
"""
|
|
235
|
+
kwargs['_return_http_data_only'] = True
|
|
236
|
+
if kwargs.get('async_req'):
|
|
237
|
+
return self.heappe_job_management_copy_job_data_from_temp_post_with_http_info(**kwargs) # noqa: E501
|
|
238
|
+
else:
|
|
239
|
+
(data) = self.heappe_job_management_copy_job_data_from_temp_post_with_http_info(**kwargs) # noqa: E501
|
|
240
|
+
return data
|
|
241
|
+
|
|
242
|
+
def heappe_job_management_copy_job_data_from_temp_post_with_http_info(self, **kwargs): # noqa: E501
|
|
243
|
+
"""Copy job data from temp folder # noqa: E501
|
|
244
|
+
|
|
245
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
246
|
+
asynchronous HTTP request, please pass async_req=True
|
|
247
|
+
>>> thread = api.heappe_job_management_copy_job_data_from_temp_post_with_http_info(async_req=True)
|
|
248
|
+
>>> result = thread.get()
|
|
249
|
+
|
|
250
|
+
:param async_req bool
|
|
251
|
+
:param CopyJobDataFromTempModel body:
|
|
252
|
+
:return: str
|
|
253
|
+
If the method is called asynchronously,
|
|
254
|
+
returns the request thread.
|
|
255
|
+
"""
|
|
256
|
+
|
|
257
|
+
all_params = ['body'] # noqa: E501
|
|
258
|
+
all_params.append('async_req')
|
|
259
|
+
all_params.append('_return_http_data_only')
|
|
260
|
+
all_params.append('_preload_content')
|
|
261
|
+
all_params.append('_request_timeout')
|
|
262
|
+
|
|
263
|
+
params = locals()
|
|
264
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
265
|
+
if key not in all_params:
|
|
266
|
+
raise TypeError(
|
|
267
|
+
"Got an unexpected keyword argument '%s'"
|
|
268
|
+
" to method heappe_job_management_copy_job_data_from_temp_post" % key
|
|
269
|
+
)
|
|
270
|
+
params[key] = val
|
|
271
|
+
del params['kwargs']
|
|
272
|
+
|
|
273
|
+
collection_formats = {}
|
|
274
|
+
|
|
275
|
+
path_params = {}
|
|
276
|
+
|
|
277
|
+
query_params = []
|
|
278
|
+
|
|
279
|
+
header_params = {}
|
|
280
|
+
|
|
281
|
+
form_params = []
|
|
282
|
+
local_var_files = {}
|
|
283
|
+
|
|
284
|
+
body_params = None
|
|
285
|
+
if 'body' in params:
|
|
286
|
+
body_params = params['body']
|
|
287
|
+
# HTTP header `Accept`
|
|
288
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
289
|
+
['application/json']) # noqa: E501
|
|
290
|
+
|
|
291
|
+
# HTTP header `Content-Type`
|
|
292
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
293
|
+
['application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
294
|
+
|
|
295
|
+
# Authentication setting
|
|
296
|
+
auth_settings = [] # noqa: E501
|
|
297
|
+
|
|
298
|
+
return self.api_client.call_api(
|
|
299
|
+
'/heappe/JobManagement/CopyJobDataFromTemp', 'POST',
|
|
300
|
+
path_params,
|
|
301
|
+
query_params,
|
|
302
|
+
header_params,
|
|
303
|
+
body=body_params,
|
|
304
|
+
post_params=form_params,
|
|
305
|
+
files=local_var_files,
|
|
306
|
+
response_type='str', # noqa: E501
|
|
307
|
+
auth_settings=auth_settings,
|
|
308
|
+
async_req=params.get('async_req'),
|
|
309
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
310
|
+
_preload_content=params.get('_preload_content', True),
|
|
311
|
+
_request_timeout=params.get('_request_timeout'),
|
|
312
|
+
collection_formats=collection_formats)
|
|
313
|
+
|
|
314
|
+
def heappe_job_management_copy_job_data_to_temp_post(self, **kwargs): # noqa: E501
|
|
315
|
+
"""Copy job data to temp folder # noqa: E501
|
|
316
|
+
|
|
317
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
318
|
+
asynchronous HTTP request, please pass async_req=True
|
|
319
|
+
>>> thread = api.heappe_job_management_copy_job_data_to_temp_post(async_req=True)
|
|
320
|
+
>>> result = thread.get()
|
|
321
|
+
|
|
322
|
+
:param async_req bool
|
|
323
|
+
:param CopyJobDataToTempModel body:
|
|
324
|
+
:return: str
|
|
325
|
+
If the method is called asynchronously,
|
|
326
|
+
returns the request thread.
|
|
327
|
+
"""
|
|
328
|
+
kwargs['_return_http_data_only'] = True
|
|
329
|
+
if kwargs.get('async_req'):
|
|
330
|
+
return self.heappe_job_management_copy_job_data_to_temp_post_with_http_info(**kwargs) # noqa: E501
|
|
331
|
+
else:
|
|
332
|
+
(data) = self.heappe_job_management_copy_job_data_to_temp_post_with_http_info(**kwargs) # noqa: E501
|
|
333
|
+
return data
|
|
334
|
+
|
|
335
|
+
def heappe_job_management_copy_job_data_to_temp_post_with_http_info(self, **kwargs): # noqa: E501
|
|
336
|
+
"""Copy job data to temp folder # noqa: E501
|
|
337
|
+
|
|
338
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
339
|
+
asynchronous HTTP request, please pass async_req=True
|
|
340
|
+
>>> thread = api.heappe_job_management_copy_job_data_to_temp_post_with_http_info(async_req=True)
|
|
341
|
+
>>> result = thread.get()
|
|
342
|
+
|
|
343
|
+
:param async_req bool
|
|
344
|
+
:param CopyJobDataToTempModel body:
|
|
345
|
+
:return: str
|
|
346
|
+
If the method is called asynchronously,
|
|
347
|
+
returns the request thread.
|
|
348
|
+
"""
|
|
349
|
+
|
|
350
|
+
all_params = ['body'] # noqa: E501
|
|
351
|
+
all_params.append('async_req')
|
|
352
|
+
all_params.append('_return_http_data_only')
|
|
353
|
+
all_params.append('_preload_content')
|
|
354
|
+
all_params.append('_request_timeout')
|
|
355
|
+
|
|
356
|
+
params = locals()
|
|
357
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
358
|
+
if key not in all_params:
|
|
359
|
+
raise TypeError(
|
|
360
|
+
"Got an unexpected keyword argument '%s'"
|
|
361
|
+
" to method heappe_job_management_copy_job_data_to_temp_post" % key
|
|
362
|
+
)
|
|
363
|
+
params[key] = val
|
|
364
|
+
del params['kwargs']
|
|
365
|
+
|
|
366
|
+
collection_formats = {}
|
|
367
|
+
|
|
368
|
+
path_params = {}
|
|
369
|
+
|
|
370
|
+
query_params = []
|
|
371
|
+
|
|
372
|
+
header_params = {}
|
|
373
|
+
|
|
374
|
+
form_params = []
|
|
375
|
+
local_var_files = {}
|
|
376
|
+
|
|
377
|
+
body_params = None
|
|
378
|
+
if 'body' in params:
|
|
379
|
+
body_params = params['body']
|
|
380
|
+
# HTTP header `Accept`
|
|
381
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
382
|
+
['application/json']) # noqa: E501
|
|
383
|
+
|
|
384
|
+
# HTTP header `Content-Type`
|
|
385
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
386
|
+
['application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
387
|
+
|
|
388
|
+
# Authentication setting
|
|
389
|
+
auth_settings = [] # noqa: E501
|
|
390
|
+
|
|
391
|
+
return self.api_client.call_api(
|
|
392
|
+
'/heappe/JobManagement/CopyJobDataToTemp', 'POST',
|
|
393
|
+
path_params,
|
|
394
|
+
query_params,
|
|
395
|
+
header_params,
|
|
396
|
+
body=body_params,
|
|
397
|
+
post_params=form_params,
|
|
398
|
+
files=local_var_files,
|
|
399
|
+
response_type='str', # noqa: E501
|
|
400
|
+
auth_settings=auth_settings,
|
|
401
|
+
async_req=params.get('async_req'),
|
|
402
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
403
|
+
_preload_content=params.get('_preload_content', True),
|
|
404
|
+
_request_timeout=params.get('_request_timeout'),
|
|
405
|
+
collection_formats=collection_formats)
|
|
406
|
+
|
|
407
|
+
def heappe_job_management_create_job_post(self, **kwargs): # noqa: E501
|
|
408
|
+
"""Create job specification # noqa: E501
|
|
409
|
+
|
|
410
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
411
|
+
asynchronous HTTP request, please pass async_req=True
|
|
412
|
+
>>> thread = api.heappe_job_management_create_job_post(async_req=True)
|
|
413
|
+
>>> result = thread.get()
|
|
414
|
+
|
|
415
|
+
:param async_req bool
|
|
416
|
+
:param CreateJobByProjectModel body:
|
|
417
|
+
:return: SubmittedJobInfoExt
|
|
418
|
+
If the method is called asynchronously,
|
|
419
|
+
returns the request thread.
|
|
420
|
+
"""
|
|
421
|
+
kwargs['_return_http_data_only'] = True
|
|
422
|
+
if kwargs.get('async_req'):
|
|
423
|
+
return self.heappe_job_management_create_job_post_with_http_info(**kwargs) # noqa: E501
|
|
424
|
+
else:
|
|
425
|
+
(data) = self.heappe_job_management_create_job_post_with_http_info(**kwargs) # noqa: E501
|
|
426
|
+
return data
|
|
427
|
+
|
|
428
|
+
def heappe_job_management_create_job_post_with_http_info(self, **kwargs): # noqa: E501
|
|
429
|
+
"""Create job specification # noqa: E501
|
|
430
|
+
|
|
431
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
432
|
+
asynchronous HTTP request, please pass async_req=True
|
|
433
|
+
>>> thread = api.heappe_job_management_create_job_post_with_http_info(async_req=True)
|
|
434
|
+
>>> result = thread.get()
|
|
435
|
+
|
|
436
|
+
:param async_req bool
|
|
437
|
+
:param CreateJobByProjectModel body:
|
|
438
|
+
:return: SubmittedJobInfoExt
|
|
439
|
+
If the method is called asynchronously,
|
|
440
|
+
returns the request thread.
|
|
441
|
+
"""
|
|
442
|
+
|
|
443
|
+
all_params = ['body'] # noqa: E501
|
|
444
|
+
all_params.append('async_req')
|
|
445
|
+
all_params.append('_return_http_data_only')
|
|
446
|
+
all_params.append('_preload_content')
|
|
447
|
+
all_params.append('_request_timeout')
|
|
448
|
+
|
|
449
|
+
params = locals()
|
|
450
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
451
|
+
if key not in all_params:
|
|
452
|
+
raise TypeError(
|
|
453
|
+
"Got an unexpected keyword argument '%s'"
|
|
454
|
+
" to method heappe_job_management_create_job_post" % key
|
|
455
|
+
)
|
|
456
|
+
params[key] = val
|
|
457
|
+
del params['kwargs']
|
|
458
|
+
|
|
459
|
+
collection_formats = {}
|
|
460
|
+
|
|
461
|
+
path_params = {}
|
|
462
|
+
|
|
463
|
+
query_params = []
|
|
464
|
+
|
|
465
|
+
header_params = {}
|
|
466
|
+
|
|
467
|
+
form_params = []
|
|
468
|
+
local_var_files = {}
|
|
469
|
+
|
|
470
|
+
body_params = None
|
|
471
|
+
if 'body' in params:
|
|
472
|
+
body_params = params['body']
|
|
473
|
+
# HTTP header `Accept`
|
|
474
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
475
|
+
['application/json']) # noqa: E501
|
|
476
|
+
|
|
477
|
+
# HTTP header `Content-Type`
|
|
478
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
479
|
+
['application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
480
|
+
|
|
481
|
+
# Authentication setting
|
|
482
|
+
auth_settings = [] # noqa: E501
|
|
483
|
+
|
|
484
|
+
return self.api_client.call_api(
|
|
485
|
+
'/heappe/JobManagement/CreateJob', 'POST',
|
|
486
|
+
path_params,
|
|
487
|
+
query_params,
|
|
488
|
+
header_params,
|
|
489
|
+
body=body_params,
|
|
490
|
+
post_params=form_params,
|
|
491
|
+
files=local_var_files,
|
|
492
|
+
response_type='SubmittedJobInfoExt', # noqa: E501
|
|
493
|
+
auth_settings=auth_settings,
|
|
494
|
+
async_req=params.get('async_req'),
|
|
495
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
496
|
+
_preload_content=params.get('_preload_content', True),
|
|
497
|
+
_request_timeout=params.get('_request_timeout'),
|
|
498
|
+
collection_formats=collection_formats)
|
|
499
|
+
|
|
500
|
+
def heappe_job_management_current_info_for_job_get(self, **kwargs): # noqa: E501
|
|
501
|
+
"""Get current info for job # noqa: E501
|
|
502
|
+
|
|
503
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
504
|
+
asynchronous HTTP request, please pass async_req=True
|
|
505
|
+
>>> thread = api.heappe_job_management_current_info_for_job_get(async_req=True)
|
|
506
|
+
>>> result = thread.get()
|
|
507
|
+
|
|
508
|
+
:param async_req bool
|
|
509
|
+
:param str SessionCode: Session code
|
|
510
|
+
:param int SubmittedJobInfoId: SubmittedJobInfo ID
|
|
511
|
+
:return: SubmittedJobInfoExt
|
|
512
|
+
If the method is called asynchronously,
|
|
513
|
+
returns the request thread.
|
|
514
|
+
"""
|
|
515
|
+
kwargs['_return_http_data_only'] = True
|
|
516
|
+
if kwargs.get('async_req'):
|
|
517
|
+
return self.heappe_job_management_current_info_for_job_get_with_http_info(**kwargs) # noqa: E501
|
|
518
|
+
else:
|
|
519
|
+
(data) = self.heappe_job_management_current_info_for_job_get_with_http_info(**kwargs) # noqa: E501
|
|
520
|
+
return data
|
|
521
|
+
|
|
522
|
+
def heappe_job_management_current_info_for_job_get_with_http_info(self, **kwargs): # noqa: E501
|
|
523
|
+
"""Get current info for job # noqa: E501
|
|
524
|
+
|
|
525
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
526
|
+
asynchronous HTTP request, please pass async_req=True
|
|
527
|
+
>>> thread = api.heappe_job_management_current_info_for_job_get_with_http_info(async_req=True)
|
|
528
|
+
>>> result = thread.get()
|
|
529
|
+
|
|
530
|
+
:param async_req bool
|
|
531
|
+
:param str SessionCode: Session code
|
|
532
|
+
:param int SubmittedJobInfoId: SubmittedJobInfo ID
|
|
533
|
+
:return: SubmittedJobInfoExt
|
|
534
|
+
If the method is called asynchronously,
|
|
535
|
+
returns the request thread.
|
|
536
|
+
"""
|
|
537
|
+
|
|
538
|
+
all_params = ['SessionCode', 'SubmittedJobInfoId'] # noqa: E501
|
|
539
|
+
all_params.append('async_req')
|
|
540
|
+
all_params.append('_return_http_data_only')
|
|
541
|
+
all_params.append('_preload_content')
|
|
542
|
+
all_params.append('_request_timeout')
|
|
543
|
+
|
|
544
|
+
params = locals()
|
|
545
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
546
|
+
if key not in all_params:
|
|
547
|
+
raise TypeError(
|
|
548
|
+
"Got an unexpected keyword argument '%s'"
|
|
549
|
+
" to method heappe_job_management_current_info_for_job_get" % key
|
|
550
|
+
)
|
|
551
|
+
params[key] = val
|
|
552
|
+
del params['kwargs']
|
|
553
|
+
|
|
554
|
+
collection_formats = {}
|
|
555
|
+
|
|
556
|
+
path_params = {}
|
|
557
|
+
|
|
558
|
+
query_params = []
|
|
559
|
+
if 'SessionCode' in params:
|
|
560
|
+
query_params.append(('SessionCode', params['SessionCode'])) # noqa: E501
|
|
561
|
+
if 'SubmittedJobInfoId' in params:
|
|
562
|
+
query_params.append(('SubmittedJobInfoId', params['SubmittedJobInfoId'])) # noqa: E501
|
|
563
|
+
|
|
564
|
+
header_params = {}
|
|
565
|
+
|
|
566
|
+
form_params = []
|
|
567
|
+
local_var_files = {}
|
|
568
|
+
|
|
569
|
+
body_params = None
|
|
570
|
+
# HTTP header `Accept`
|
|
571
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
572
|
+
['application/json']) # noqa: E501
|
|
573
|
+
|
|
574
|
+
# Authentication setting
|
|
575
|
+
auth_settings = [] # noqa: E501
|
|
576
|
+
|
|
577
|
+
return self.api_client.call_api(
|
|
578
|
+
'/heappe/JobManagement/CurrentInfoForJob', 'GET',
|
|
579
|
+
path_params,
|
|
580
|
+
query_params,
|
|
581
|
+
header_params,
|
|
582
|
+
body=body_params,
|
|
583
|
+
post_params=form_params,
|
|
584
|
+
files=local_var_files,
|
|
585
|
+
response_type='SubmittedJobInfoExt', # noqa: E501
|
|
586
|
+
auth_settings=auth_settings,
|
|
587
|
+
async_req=params.get('async_req'),
|
|
588
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
589
|
+
_preload_content=params.get('_preload_content', True),
|
|
590
|
+
_request_timeout=params.get('_request_timeout'),
|
|
591
|
+
collection_formats=collection_formats)
|
|
592
|
+
|
|
593
|
+
def heappe_job_management_delete_job_delete(self, **kwargs): # noqa: E501
|
|
594
|
+
"""Delete job # noqa: E501
|
|
595
|
+
|
|
596
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
597
|
+
asynchronous HTTP request, please pass async_req=True
|
|
598
|
+
>>> thread = api.heappe_job_management_delete_job_delete(async_req=True)
|
|
599
|
+
>>> result = thread.get()
|
|
600
|
+
|
|
601
|
+
:param async_req bool
|
|
602
|
+
:param DeleteJobModel body:
|
|
603
|
+
:return: str
|
|
604
|
+
If the method is called asynchronously,
|
|
605
|
+
returns the request thread.
|
|
606
|
+
"""
|
|
607
|
+
kwargs['_return_http_data_only'] = True
|
|
608
|
+
if kwargs.get('async_req'):
|
|
609
|
+
return self.heappe_job_management_delete_job_delete_with_http_info(**kwargs) # noqa: E501
|
|
610
|
+
else:
|
|
611
|
+
(data) = self.heappe_job_management_delete_job_delete_with_http_info(**kwargs) # noqa: E501
|
|
612
|
+
return data
|
|
613
|
+
|
|
614
|
+
def heappe_job_management_delete_job_delete_with_http_info(self, **kwargs): # noqa: E501
|
|
615
|
+
"""Delete job # noqa: E501
|
|
616
|
+
|
|
617
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
618
|
+
asynchronous HTTP request, please pass async_req=True
|
|
619
|
+
>>> thread = api.heappe_job_management_delete_job_delete_with_http_info(async_req=True)
|
|
620
|
+
>>> result = thread.get()
|
|
621
|
+
|
|
622
|
+
:param async_req bool
|
|
623
|
+
:param DeleteJobModel body:
|
|
624
|
+
:return: str
|
|
625
|
+
If the method is called asynchronously,
|
|
626
|
+
returns the request thread.
|
|
627
|
+
"""
|
|
628
|
+
|
|
629
|
+
all_params = ['body'] # noqa: E501
|
|
630
|
+
all_params.append('async_req')
|
|
631
|
+
all_params.append('_return_http_data_only')
|
|
632
|
+
all_params.append('_preload_content')
|
|
633
|
+
all_params.append('_request_timeout')
|
|
634
|
+
|
|
635
|
+
params = locals()
|
|
636
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
637
|
+
if key not in all_params:
|
|
638
|
+
raise TypeError(
|
|
639
|
+
"Got an unexpected keyword argument '%s'"
|
|
640
|
+
" to method heappe_job_management_delete_job_delete" % key
|
|
641
|
+
)
|
|
642
|
+
params[key] = val
|
|
643
|
+
del params['kwargs']
|
|
644
|
+
|
|
645
|
+
collection_formats = {}
|
|
646
|
+
|
|
647
|
+
path_params = {}
|
|
648
|
+
|
|
649
|
+
query_params = []
|
|
650
|
+
|
|
651
|
+
header_params = {}
|
|
652
|
+
|
|
653
|
+
form_params = []
|
|
654
|
+
local_var_files = {}
|
|
655
|
+
|
|
656
|
+
body_params = None
|
|
657
|
+
if 'body' in params:
|
|
658
|
+
body_params = params['body']
|
|
659
|
+
# HTTP header `Accept`
|
|
660
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
661
|
+
['application/json']) # noqa: E501
|
|
662
|
+
|
|
663
|
+
# HTTP header `Content-Type`
|
|
664
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
665
|
+
['application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
666
|
+
|
|
667
|
+
# Authentication setting
|
|
668
|
+
auth_settings = [] # noqa: E501
|
|
669
|
+
|
|
670
|
+
return self.api_client.call_api(
|
|
671
|
+
'/heappe/JobManagement/DeleteJob', 'DELETE',
|
|
672
|
+
path_params,
|
|
673
|
+
query_params,
|
|
674
|
+
header_params,
|
|
675
|
+
body=body_params,
|
|
676
|
+
post_params=form_params,
|
|
677
|
+
files=local_var_files,
|
|
678
|
+
response_type='str', # noqa: E501
|
|
679
|
+
auth_settings=auth_settings,
|
|
680
|
+
async_req=params.get('async_req'),
|
|
681
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
682
|
+
_preload_content=params.get('_preload_content', True),
|
|
683
|
+
_request_timeout=params.get('_request_timeout'),
|
|
684
|
+
collection_formats=collection_formats)
|
|
685
|
+
|
|
686
|
+
def heappe_job_management_list_jobs_for_current_user_get(self, **kwargs): # noqa: E501
|
|
687
|
+
"""Get all jobs for user # noqa: E501
|
|
688
|
+
|
|
689
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
690
|
+
asynchronous HTTP request, please pass async_req=True
|
|
691
|
+
>>> thread = api.heappe_job_management_list_jobs_for_current_user_get(async_req=True)
|
|
692
|
+
>>> result = thread.get()
|
|
693
|
+
|
|
694
|
+
:param async_req bool
|
|
695
|
+
:param str SessionCode: Session code
|
|
696
|
+
:return: list[SubmittedJobInfoExt]
|
|
697
|
+
If the method is called asynchronously,
|
|
698
|
+
returns the request thread.
|
|
699
|
+
"""
|
|
700
|
+
kwargs['_return_http_data_only'] = True
|
|
701
|
+
if kwargs.get('async_req'):
|
|
702
|
+
return self.heappe_job_management_list_jobs_for_current_user_get_with_http_info(**kwargs) # noqa: E501
|
|
703
|
+
else:
|
|
704
|
+
(data) = self.heappe_job_management_list_jobs_for_current_user_get_with_http_info(**kwargs) # noqa: E501
|
|
705
|
+
return data
|
|
706
|
+
|
|
707
|
+
def heappe_job_management_list_jobs_for_current_user_get_with_http_info(self, **kwargs): # noqa: E501
|
|
708
|
+
"""Get all jobs for user # noqa: E501
|
|
709
|
+
|
|
710
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
711
|
+
asynchronous HTTP request, please pass async_req=True
|
|
712
|
+
>>> thread = api.heappe_job_management_list_jobs_for_current_user_get_with_http_info(async_req=True)
|
|
713
|
+
>>> result = thread.get()
|
|
714
|
+
|
|
715
|
+
:param async_req bool
|
|
716
|
+
:param str SessionCode: Session code
|
|
717
|
+
:return: list[SubmittedJobInfoExt]
|
|
718
|
+
If the method is called asynchronously,
|
|
719
|
+
returns the request thread.
|
|
720
|
+
"""
|
|
721
|
+
|
|
722
|
+
all_params = ['SessionCode'] # noqa: E501
|
|
723
|
+
all_params.append('async_req')
|
|
724
|
+
all_params.append('_return_http_data_only')
|
|
725
|
+
all_params.append('_preload_content')
|
|
726
|
+
all_params.append('_request_timeout')
|
|
727
|
+
|
|
728
|
+
params = locals()
|
|
729
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
730
|
+
if key not in all_params:
|
|
731
|
+
raise TypeError(
|
|
732
|
+
"Got an unexpected keyword argument '%s'"
|
|
733
|
+
" to method heappe_job_management_list_jobs_for_current_user_get" % key
|
|
734
|
+
)
|
|
735
|
+
params[key] = val
|
|
736
|
+
del params['kwargs']
|
|
737
|
+
|
|
738
|
+
collection_formats = {}
|
|
739
|
+
|
|
740
|
+
path_params = {}
|
|
741
|
+
|
|
742
|
+
query_params = []
|
|
743
|
+
if 'SessionCode' in params:
|
|
744
|
+
query_params.append(('SessionCode', params['SessionCode'])) # noqa: E501
|
|
745
|
+
|
|
746
|
+
header_params = {}
|
|
747
|
+
|
|
748
|
+
form_params = []
|
|
749
|
+
local_var_files = {}
|
|
750
|
+
|
|
751
|
+
body_params = None
|
|
752
|
+
# HTTP header `Accept`
|
|
753
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
754
|
+
['application/json']) # noqa: E501
|
|
755
|
+
|
|
756
|
+
# Authentication setting
|
|
757
|
+
auth_settings = [] # noqa: E501
|
|
758
|
+
|
|
759
|
+
return self.api_client.call_api(
|
|
760
|
+
'/heappe/JobManagement/ListJobsForCurrentUser', 'GET',
|
|
761
|
+
path_params,
|
|
762
|
+
query_params,
|
|
763
|
+
header_params,
|
|
764
|
+
body=body_params,
|
|
765
|
+
post_params=form_params,
|
|
766
|
+
files=local_var_files,
|
|
767
|
+
response_type='list[SubmittedJobInfoExt]', # noqa: E501
|
|
768
|
+
auth_settings=auth_settings,
|
|
769
|
+
async_req=params.get('async_req'),
|
|
770
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
771
|
+
_preload_content=params.get('_preload_content', True),
|
|
772
|
+
_request_timeout=params.get('_request_timeout'),
|
|
773
|
+
collection_formats=collection_formats)
|
|
774
|
+
|
|
775
|
+
def heappe_job_management_submit_job_put(self, **kwargs): # noqa: E501
|
|
776
|
+
"""Submit job # noqa: E501
|
|
777
|
+
|
|
778
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
779
|
+
asynchronous HTTP request, please pass async_req=True
|
|
780
|
+
>>> thread = api.heappe_job_management_submit_job_put(async_req=True)
|
|
781
|
+
>>> result = thread.get()
|
|
782
|
+
|
|
783
|
+
:param async_req bool
|
|
784
|
+
:param SubmitJobModel body:
|
|
785
|
+
:return: SubmittedJobInfoExt
|
|
786
|
+
If the method is called asynchronously,
|
|
787
|
+
returns the request thread.
|
|
788
|
+
"""
|
|
789
|
+
kwargs['_return_http_data_only'] = True
|
|
790
|
+
if kwargs.get('async_req'):
|
|
791
|
+
return self.heappe_job_management_submit_job_put_with_http_info(**kwargs) # noqa: E501
|
|
792
|
+
else:
|
|
793
|
+
(data) = self.heappe_job_management_submit_job_put_with_http_info(**kwargs) # noqa: E501
|
|
794
|
+
return data
|
|
795
|
+
|
|
796
|
+
def heappe_job_management_submit_job_put_with_http_info(self, **kwargs): # noqa: E501
|
|
797
|
+
"""Submit job # noqa: E501
|
|
798
|
+
|
|
799
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
800
|
+
asynchronous HTTP request, please pass async_req=True
|
|
801
|
+
>>> thread = api.heappe_job_management_submit_job_put_with_http_info(async_req=True)
|
|
802
|
+
>>> result = thread.get()
|
|
803
|
+
|
|
804
|
+
:param async_req bool
|
|
805
|
+
:param SubmitJobModel body:
|
|
806
|
+
:return: SubmittedJobInfoExt
|
|
807
|
+
If the method is called asynchronously,
|
|
808
|
+
returns the request thread.
|
|
809
|
+
"""
|
|
810
|
+
|
|
811
|
+
all_params = ['body'] # noqa: E501
|
|
812
|
+
all_params.append('async_req')
|
|
813
|
+
all_params.append('_return_http_data_only')
|
|
814
|
+
all_params.append('_preload_content')
|
|
815
|
+
all_params.append('_request_timeout')
|
|
816
|
+
|
|
817
|
+
params = locals()
|
|
818
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
819
|
+
if key not in all_params:
|
|
820
|
+
raise TypeError(
|
|
821
|
+
"Got an unexpected keyword argument '%s'"
|
|
822
|
+
" to method heappe_job_management_submit_job_put" % key
|
|
823
|
+
)
|
|
824
|
+
params[key] = val
|
|
825
|
+
del params['kwargs']
|
|
826
|
+
|
|
827
|
+
collection_formats = {}
|
|
828
|
+
|
|
829
|
+
path_params = {}
|
|
830
|
+
|
|
831
|
+
query_params = []
|
|
832
|
+
|
|
833
|
+
header_params = {}
|
|
834
|
+
|
|
835
|
+
form_params = []
|
|
836
|
+
local_var_files = {}
|
|
837
|
+
|
|
838
|
+
body_params = None
|
|
839
|
+
if 'body' in params:
|
|
840
|
+
body_params = params['body']
|
|
841
|
+
# HTTP header `Accept`
|
|
842
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
843
|
+
['application/json']) # noqa: E501
|
|
844
|
+
|
|
845
|
+
# HTTP header `Content-Type`
|
|
846
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
847
|
+
['application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
848
|
+
|
|
849
|
+
# Authentication setting
|
|
850
|
+
auth_settings = [] # noqa: E501
|
|
851
|
+
|
|
852
|
+
return self.api_client.call_api(
|
|
853
|
+
'/heappe/JobManagement/SubmitJob', 'PUT',
|
|
854
|
+
path_params,
|
|
855
|
+
query_params,
|
|
856
|
+
header_params,
|
|
857
|
+
body=body_params,
|
|
858
|
+
post_params=form_params,
|
|
859
|
+
files=local_var_files,
|
|
860
|
+
response_type='SubmittedJobInfoExt', # noqa: E501
|
|
861
|
+
auth_settings=auth_settings,
|
|
862
|
+
async_req=params.get('async_req'),
|
|
863
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
864
|
+
_preload_content=params.get('_preload_content', True),
|
|
865
|
+
_request_timeout=params.get('_request_timeout'),
|
|
866
|
+
collection_formats=collection_formats)
|