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.
Files changed (183) hide show
  1. __init__.py +1 -0
  2. py4heappe/__init__.py +1 -0
  3. py4heappe/cli/__init__.py +1 -0
  4. py4heappe/cli/auth.py +153 -0
  5. py4heappe/cli/command_template.py +370 -0
  6. py4heappe/cli/configuration.py +65 -0
  7. py4heappe/cli/information.py +163 -0
  8. py4heappe/cli/job_management.py +211 -0
  9. py4heappe/cli/report.py +173 -0
  10. py4heappe/core/__init__.py +167 -0
  11. py4heappe/core/api/__init__.py +12 -0
  12. py4heappe/core/api/cluster_information_api.py +308 -0
  13. py4heappe/core/api/data_transfer_api.py +405 -0
  14. py4heappe/core/api/file_transfer_api.py +498 -0
  15. py4heappe/core/api/job_management_api.py +866 -0
  16. py4heappe/core/api/job_reporting_api.py +692 -0
  17. py4heappe/core/api/management_api.py +2540 -0
  18. py4heappe/core/api/user_and_limitation_management_api.py +676 -0
  19. py4heappe/core/api_client.py +632 -0
  20. py4heappe/core/base/__init__.py +1 -0
  21. py4heappe/core/base/exceptions.py +41 -0
  22. py4heappe/core/base/logger.py +11 -0
  23. py4heappe/core/base/utils.py +43 -0
  24. py4heappe/core/configuration.py +247 -0
  25. py4heappe/core/models/__init__.py +155 -0
  26. py4heappe/core/models/adaptor_user.py +398 -0
  27. py4heappe/core/models/adaptor_user_group.py +268 -0
  28. py4heappe/core/models/adaptor_user_role.py +242 -0
  29. py4heappe/core/models/adaptor_user_role_ext.py +138 -0
  30. py4heappe/core/models/adaptor_user_role_type.py +95 -0
  31. py4heappe/core/models/adaptor_user_type.py +91 -0
  32. py4heappe/core/models/adaptor_user_user_group_role.py +320 -0
  33. py4heappe/core/models/allocated_nodes_ips_model.py +136 -0
  34. py4heappe/core/models/authenticate_lexis_token_model.py +110 -0
  35. py4heappe/core/models/authenticate_user_digital_signature_model.py +110 -0
  36. py4heappe/core/models/authenticate_user_open_id_model.py +110 -0
  37. py4heappe/core/models/authenticate_user_open_id_open_stack_model.py +136 -0
  38. py4heappe/core/models/authenticate_user_password_model.py +110 -0
  39. py4heappe/core/models/authentication_credentials.py +110 -0
  40. py4heappe/core/models/bad_request_result.py +110 -0
  41. py4heappe/core/models/cancel_job_model.py +136 -0
  42. py4heappe/core/models/cluster.py +478 -0
  43. py4heappe/core/models/cluster_authentication_credentials.py +375 -0
  44. py4heappe/core/models/cluster_authentication_credentials_auth_type.py +97 -0
  45. py4heappe/core/models/cluster_connection_protocol.py +91 -0
  46. py4heappe/core/models/cluster_detailed_report_ext.py +214 -0
  47. py4heappe/core/models/cluster_ext.py +188 -0
  48. py4heappe/core/models/cluster_init_report_ext.py +136 -0
  49. py4heappe/core/models/cluster_node_type.py +528 -0
  50. py4heappe/core/models/cluster_node_type_detailed_report_ext.py +240 -0
  51. py4heappe/core/models/cluster_node_type_ext.py +292 -0
  52. py4heappe/core/models/cluster_node_type_for_task_ext.py +188 -0
  53. py4heappe/core/models/cluster_node_type_report_ext.py +214 -0
  54. py4heappe/core/models/cluster_node_type_requested_group.py +136 -0
  55. py4heappe/core/models/cluster_node_type_resource_usage_ext.py +292 -0
  56. py4heappe/core/models/cluster_node_usage_ext.py +318 -0
  57. py4heappe/core/models/cluster_project.py +347 -0
  58. py4heappe/core/models/cluster_project_credential.py +294 -0
  59. py4heappe/core/models/cluster_proxy_connection.py +243 -0
  60. py4heappe/core/models/cluster_proxy_connection_ext.py +214 -0
  61. py4heappe/core/models/cluster_report_ext.py +215 -0
  62. py4heappe/core/models/command_template.py +557 -0
  63. py4heappe/core/models/command_template_ext.py +240 -0
  64. py4heappe/core/models/command_template_parameter.py +347 -0
  65. py4heappe/core/models/command_template_parameter_ext.py +136 -0
  66. py4heappe/core/models/command_template_parameter_value_ext.py +136 -0
  67. py4heappe/core/models/contact.py +269 -0
  68. py4heappe/core/models/copy_job_data_from_temp_model.py +162 -0
  69. py4heappe/core/models/copy_job_data_to_temp_model.py +162 -0
  70. py4heappe/core/models/create_command_inner_template_parameter_model.py +162 -0
  71. py4heappe/core/models/create_command_template_from_generic_model.py +292 -0
  72. py4heappe/core/models/create_command_template_model.py +318 -0
  73. py4heappe/core/models/create_command_template_parameter_model.py +214 -0
  74. py4heappe/core/models/create_job_by_project_model.py +136 -0
  75. py4heappe/core/models/create_project_assignment_to_cluster_model.py +188 -0
  76. py4heappe/core/models/create_project_model.py +318 -0
  77. py4heappe/core/models/create_secure_shell_key_model.py +162 -0
  78. py4heappe/core/models/create_secure_shell_key_model_obsolete.py +188 -0
  79. py4heappe/core/models/current_cluster_node_usage_model.py +136 -0
  80. py4heappe/core/models/current_info_for_job_model.py +136 -0
  81. py4heappe/core/models/data_transfer_method_ext.py +188 -0
  82. py4heappe/core/models/delete_job_model.py +136 -0
  83. py4heappe/core/models/deployment_type_ext.py +91 -0
  84. py4heappe/core/models/digital_signature_credentials_ext.py +162 -0
  85. py4heappe/core/models/download_file_from_cluster_model.py +162 -0
  86. py4heappe/core/models/download_parts_of_job_files_from_cluster_model.py +162 -0
  87. py4heappe/core/models/end_data_transfer_model.py +136 -0
  88. py4heappe/core/models/end_file_transfer_model.py +162 -0
  89. py4heappe/core/models/environment_variable_ext.py +136 -0
  90. py4heappe/core/models/extended_command_template_ext.py +370 -0
  91. py4heappe/core/models/extended_command_template_parameter_ext.py +188 -0
  92. py4heappe/core/models/extended_project_info_ext.py +318 -0
  93. py4heappe/core/models/file_information_ext.py +136 -0
  94. py4heappe/core/models/file_transfer_cipher_type.py +94 -0
  95. py4heappe/core/models/file_transfer_cipher_type_ext.py +93 -0
  96. py4heappe/core/models/file_transfer_key_credentials_ext.py +240 -0
  97. py4heappe/core/models/file_transfer_method.py +294 -0
  98. py4heappe/core/models/file_transfer_method_ext.py +240 -0
  99. py4heappe/core/models/file_transfer_protocol.py +91 -0
  100. py4heappe/core/models/file_transfer_protocol_ext.py +91 -0
  101. py4heappe/core/models/get_command_template_parameters_name_model.py +188 -0
  102. py4heappe/core/models/get_current_usage_and_limitations_for_current_user_model.py +110 -0
  103. py4heappe/core/models/get_data_transfer_method_model.py +188 -0
  104. py4heappe/core/models/get_file_transfer_method_model.py +136 -0
  105. py4heappe/core/models/http_get_to_job_node_model.py +241 -0
  106. py4heappe/core/models/http_header_ext.py +136 -0
  107. py4heappe/core/models/http_post_to_job_node_model.py +267 -0
  108. py4heappe/core/models/initialize_cluster_script_directory_model.py +162 -0
  109. py4heappe/core/models/instance_information_ext.py +344 -0
  110. py4heappe/core/models/job_detailed_report_ext.py +318 -0
  111. py4heappe/core/models/job_file_content_ext.py +214 -0
  112. py4heappe/core/models/job_report_ext.py +188 -0
  113. py4heappe/core/models/job_specification_by_project_ext.py +448 -0
  114. py4heappe/core/models/job_specification_ext.py +448 -0
  115. py4heappe/core/models/job_state_aggregation_report_ext.py +162 -0
  116. py4heappe/core/models/job_state_ext.py +96 -0
  117. py4heappe/core/models/lexis_credentials_ext.py +137 -0
  118. py4heappe/core/models/list_changed_files_for_job_model.py +136 -0
  119. py4heappe/core/models/list_jobs_for_current_user_model.py +110 -0
  120. py4heappe/core/models/modify_command_template_from_generic_model.py +292 -0
  121. py4heappe/core/models/modify_command_template_model.py +292 -0
  122. py4heappe/core/models/modify_command_template_parameter_model.py +214 -0
  123. py4heappe/core/models/modify_project_assignment_to_cluster_model.py +188 -0
  124. py4heappe/core/models/modify_project_model.py +292 -0
  125. py4heappe/core/models/node_used_cores_and_limitation_ext.py +110 -0
  126. py4heappe/core/models/open_id_credentials_ext.py +137 -0
  127. py4heappe/core/models/open_stack_application_credentials_ext.py +136 -0
  128. py4heappe/core/models/password_credentials_ext.py +136 -0
  129. py4heappe/core/models/problem_details.py +89 -0
  130. py4heappe/core/models/project.py +482 -0
  131. py4heappe/core/models/project_contact.py +215 -0
  132. py4heappe/core/models/project_detailed_report_ext.py +292 -0
  133. py4heappe/core/models/project_ext.py +266 -0
  134. py4heappe/core/models/project_for_task_ext.py +214 -0
  135. py4heappe/core/models/project_list_report_ext.py +214 -0
  136. py4heappe/core/models/project_reference_ext.py +137 -0
  137. py4heappe/core/models/project_report_ext.py +240 -0
  138. py4heappe/core/models/project_resource_usage_ext.py +266 -0
  139. py4heappe/core/models/proxy_type.py +91 -0
  140. py4heappe/core/models/proxy_type_ext.py +91 -0
  141. py4heappe/core/models/public_key_ext.py +188 -0
  142. py4heappe/core/models/recreate_secure_shell_key_model.py +214 -0
  143. py4heappe/core/models/regenerate_secure_shell_key_model.py +188 -0
  144. py4heappe/core/models/regenerate_secure_shell_key_model_obsolete.py +188 -0
  145. py4heappe/core/models/remove_command_template_model.py +136 -0
  146. py4heappe/core/models/remove_command_template_parameter_model.py +136 -0
  147. py4heappe/core/models/remove_project_assignment_to_cluster_model.py +162 -0
  148. py4heappe/core/models/remove_project_model.py +136 -0
  149. py4heappe/core/models/remove_secure_shell_key_model.py +162 -0
  150. py4heappe/core/models/remove_secure_shell_key_model_obsolete.py +162 -0
  151. py4heappe/core/models/resource_allocation_type_ext.py +91 -0
  152. py4heappe/core/models/resource_limitation_ext.py +136 -0
  153. py4heappe/core/models/resource_usage_ext.py +163 -0
  154. py4heappe/core/models/scheduler_type.py +92 -0
  155. py4heappe/core/models/ssh_key_user_credentials_model.py +136 -0
  156. py4heappe/core/models/submit_job_model.py +136 -0
  157. py4heappe/core/models/submitted_job_info_ext.py +318 -0
  158. py4heappe/core/models/submitted_task_info_ext.py +370 -0
  159. py4heappe/core/models/synchronizable_files_ext.py +92 -0
  160. py4heappe/core/models/task_detailed_report_ext.py +318 -0
  161. py4heappe/core/models/task_file_offset_ext.py +162 -0
  162. py4heappe/core/models/task_paralization_parameter_ext.py +162 -0
  163. py4heappe/core/models/task_priority_ext.py +97 -0
  164. py4heappe/core/models/task_report_ext.py +266 -0
  165. py4heappe/core/models/task_specification_ext.py +682 -0
  166. py4heappe/core/models/task_state_ext.py +95 -0
  167. py4heappe/core/models/test_cluster_access_for_account_model.py +162 -0
  168. py4heappe/core/models/test_cluster_access_for_account_model_obsolete.py +162 -0
  169. py4heappe/core/models/unauthorized_result.py +110 -0
  170. py4heappe/core/models/usage_type.py +90 -0
  171. py4heappe/core/models/usage_type_ext.py +90 -0
  172. py4heappe/core/models/user_group_detailed_report_ext.py +240 -0
  173. py4heappe/core/models/user_group_list_report_ext.py +240 -0
  174. py4heappe/core/models/user_group_report_ext.py +240 -0
  175. py4heappe/core/models/version_information_ext.py +162 -0
  176. py4heappe/core/rest.py +311 -0
  177. py4heappe-1.0.0.dist-info/METADATA +147 -0
  178. py4heappe-1.0.0.dist-info/RECORD +183 -0
  179. py4heappe-1.0.0.dist-info/WHEEL +5 -0
  180. py4heappe-1.0.0.dist-info/entry_points.txt +2 -0
  181. py4heappe-1.0.0.dist-info/licenses/LICENSE +20 -0
  182. py4heappe-1.0.0.dist-info/top_level.txt +3 -0
  183. py4heappe_cli.py +22 -0
@@ -0,0 +1,692 @@
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 JobReportingApi(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_reporting_aggregated_user_group_resource_usage_report_get(self, **kwargs): # noqa: E501
36
+ """Get aggregated resource report usage for user groups # 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_reporting_aggregated_user_group_resource_usage_report_get(async_req=True)
41
+ >>> result = thread.get()
42
+
43
+ :param async_req bool
44
+ :param datetime StartTime:
45
+ :param datetime EndTime:
46
+ :param str SessionCode:
47
+ :return: list[UserGroupReportExt]
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_job_reporting_aggregated_user_group_resource_usage_report_get_with_http_info(**kwargs) # noqa: E501
54
+ else:
55
+ (data) = self.heappe_job_reporting_aggregated_user_group_resource_usage_report_get_with_http_info(**kwargs) # noqa: E501
56
+ return data
57
+
58
+ def heappe_job_reporting_aggregated_user_group_resource_usage_report_get_with_http_info(self, **kwargs): # noqa: E501
59
+ """Get aggregated resource report usage for user groups # 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_job_reporting_aggregated_user_group_resource_usage_report_get_with_http_info(async_req=True)
64
+ >>> result = thread.get()
65
+
66
+ :param async_req bool
67
+ :param datetime StartTime:
68
+ :param datetime EndTime:
69
+ :param str SessionCode:
70
+ :return: list[UserGroupReportExt]
71
+ If the method is called asynchronously,
72
+ returns the request thread.
73
+ """
74
+
75
+ all_params = ['StartTime', 'EndTime', 'SessionCode'] # 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_job_reporting_aggregated_user_group_resource_usage_report_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 'StartTime' in params:
97
+ query_params.append(('StartTime', params['StartTime'])) # noqa: E501
98
+ if 'EndTime' in params:
99
+ query_params.append(('EndTime', params['EndTime'])) # noqa: E501
100
+ if 'SessionCode' in params:
101
+ query_params.append(('SessionCode', params['SessionCode'])) # 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/JobReporting/AggregatedUserGroupResourceUsageReport', '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='list[UserGroupReportExt]', # 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_job_reporting_jobs_detailed_report_get(self, **kwargs): # noqa: E501
133
+ """Get job detailed report # 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_job_reporting_jobs_detailed_report_get(async_req=True)
138
+ >>> result = thread.get()
139
+
140
+ :param async_req bool
141
+ :param str SessionCode: Session code
142
+ :return: list[UserGroupDetailedReportExt]
143
+ If the method is called asynchronously,
144
+ returns the request thread.
145
+ """
146
+ kwargs['_return_http_data_only'] = True
147
+ if kwargs.get('async_req'):
148
+ return self.heappe_job_reporting_jobs_detailed_report_get_with_http_info(**kwargs) # noqa: E501
149
+ else:
150
+ (data) = self.heappe_job_reporting_jobs_detailed_report_get_with_http_info(**kwargs) # noqa: E501
151
+ return data
152
+
153
+ def heappe_job_reporting_jobs_detailed_report_get_with_http_info(self, **kwargs): # noqa: E501
154
+ """Get job detailed report # noqa: E501
155
+
156
+ This method makes a synchronous HTTP request by default. To make an
157
+ asynchronous HTTP request, please pass async_req=True
158
+ >>> thread = api.heappe_job_reporting_jobs_detailed_report_get_with_http_info(async_req=True)
159
+ >>> result = thread.get()
160
+
161
+ :param async_req bool
162
+ :param str SessionCode: Session code
163
+ :return: list[UserGroupDetailedReportExt]
164
+ If the method is called asynchronously,
165
+ returns the request thread.
166
+ """
167
+
168
+ all_params = ['SessionCode'] # noqa: E501
169
+ all_params.append('async_req')
170
+ all_params.append('_return_http_data_only')
171
+ all_params.append('_preload_content')
172
+ all_params.append('_request_timeout')
173
+
174
+ params = locals()
175
+ for key, val in six.iteritems(params['kwargs']):
176
+ if key not in all_params:
177
+ raise TypeError(
178
+ "Got an unexpected keyword argument '%s'"
179
+ " to method heappe_job_reporting_jobs_detailed_report_get" % key
180
+ )
181
+ params[key] = val
182
+ del params['kwargs']
183
+
184
+ collection_formats = {}
185
+
186
+ path_params = {}
187
+
188
+ query_params = []
189
+ if 'SessionCode' in params:
190
+ query_params.append(('SessionCode', params['SessionCode'])) # noqa: E501
191
+
192
+ header_params = {}
193
+
194
+ form_params = []
195
+ local_var_files = {}
196
+
197
+ body_params = None
198
+ # HTTP header `Accept`
199
+ header_params['Accept'] = self.api_client.select_header_accept(
200
+ ['application/json']) # noqa: E501
201
+
202
+ # Authentication setting
203
+ auth_settings = [] # noqa: E501
204
+
205
+ return self.api_client.call_api(
206
+ '/heappe/JobReporting/JobsDetailedReport', 'GET',
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='list[UserGroupDetailedReportExt]', # 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_reporting_jobs_state_agregation_report_get(self, **kwargs): # noqa: E501
222
+ """Get job state aggregation report # 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_reporting_jobs_state_agregation_report_get(async_req=True)
227
+ >>> result = thread.get()
228
+
229
+ :param async_req bool
230
+ :param str SessionCode: Session code
231
+ :return: list[JobStateAggregationReportExt]
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_reporting_jobs_state_agregation_report_get_with_http_info(**kwargs) # noqa: E501
238
+ else:
239
+ (data) = self.heappe_job_reporting_jobs_state_agregation_report_get_with_http_info(**kwargs) # noqa: E501
240
+ return data
241
+
242
+ def heappe_job_reporting_jobs_state_agregation_report_get_with_http_info(self, **kwargs): # noqa: E501
243
+ """Get job state aggregation report # 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_reporting_jobs_state_agregation_report_get_with_http_info(async_req=True)
248
+ >>> result = thread.get()
249
+
250
+ :param async_req bool
251
+ :param str SessionCode: Session code
252
+ :return: list[JobStateAggregationReportExt]
253
+ If the method is called asynchronously,
254
+ returns the request thread.
255
+ """
256
+
257
+ all_params = ['SessionCode'] # 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_reporting_jobs_state_agregation_report_get" % key
269
+ )
270
+ params[key] = val
271
+ del params['kwargs']
272
+
273
+ collection_formats = {}
274
+
275
+ path_params = {}
276
+
277
+ query_params = []
278
+ if 'SessionCode' in params:
279
+ query_params.append(('SessionCode', params['SessionCode'])) # noqa: E501
280
+
281
+ header_params = {}
282
+
283
+ form_params = []
284
+ local_var_files = {}
285
+
286
+ body_params = None
287
+ # HTTP header `Accept`
288
+ header_params['Accept'] = self.api_client.select_header_accept(
289
+ ['application/json']) # noqa: E501
290
+
291
+ # Authentication setting
292
+ auth_settings = [] # noqa: E501
293
+
294
+ return self.api_client.call_api(
295
+ '/heappe/JobReporting/JobsStateAgregationReport', 'GET',
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[JobStateAggregationReportExt]', # 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)
309
+
310
+ def heappe_job_reporting_list_adaptor_user_groups_get(self, **kwargs): # noqa: E501
311
+ """Get user groups # noqa: E501
312
+
313
+ This method makes a synchronous HTTP request by default. To make an
314
+ asynchronous HTTP request, please pass async_req=True
315
+ >>> thread = api.heappe_job_reporting_list_adaptor_user_groups_get(async_req=True)
316
+ >>> result = thread.get()
317
+
318
+ :param async_req bool
319
+ :param str SessionCode: Session code
320
+ :return: UserGroupListReportExt
321
+ If the method is called asynchronously,
322
+ returns the request thread.
323
+ """
324
+ kwargs['_return_http_data_only'] = True
325
+ if kwargs.get('async_req'):
326
+ return self.heappe_job_reporting_list_adaptor_user_groups_get_with_http_info(**kwargs) # noqa: E501
327
+ else:
328
+ (data) = self.heappe_job_reporting_list_adaptor_user_groups_get_with_http_info(**kwargs) # noqa: E501
329
+ return data
330
+
331
+ def heappe_job_reporting_list_adaptor_user_groups_get_with_http_info(self, **kwargs): # noqa: E501
332
+ """Get user groups # noqa: E501
333
+
334
+ This method makes a synchronous HTTP request by default. To make an
335
+ asynchronous HTTP request, please pass async_req=True
336
+ >>> thread = api.heappe_job_reporting_list_adaptor_user_groups_get_with_http_info(async_req=True)
337
+ >>> result = thread.get()
338
+
339
+ :param async_req bool
340
+ :param str SessionCode: Session code
341
+ :return: UserGroupListReportExt
342
+ If the method is called asynchronously,
343
+ returns the request thread.
344
+ """
345
+
346
+ all_params = ['SessionCode'] # noqa: E501
347
+ all_params.append('async_req')
348
+ all_params.append('_return_http_data_only')
349
+ all_params.append('_preload_content')
350
+ all_params.append('_request_timeout')
351
+
352
+ params = locals()
353
+ for key, val in six.iteritems(params['kwargs']):
354
+ if key not in all_params:
355
+ raise TypeError(
356
+ "Got an unexpected keyword argument '%s'"
357
+ " to method heappe_job_reporting_list_adaptor_user_groups_get" % key
358
+ )
359
+ params[key] = val
360
+ del params['kwargs']
361
+
362
+ collection_formats = {}
363
+
364
+ path_params = {}
365
+
366
+ query_params = []
367
+ if 'SessionCode' in params:
368
+ query_params.append(('SessionCode', params['SessionCode'])) # noqa: E501
369
+
370
+ header_params = {}
371
+
372
+ form_params = []
373
+ local_var_files = {}
374
+
375
+ body_params = None
376
+ # HTTP header `Accept`
377
+ header_params['Accept'] = self.api_client.select_header_accept(
378
+ ['application/json']) # noqa: E501
379
+
380
+ # Authentication setting
381
+ auth_settings = [] # noqa: E501
382
+
383
+ return self.api_client.call_api(
384
+ '/heappe/JobReporting/ListAdaptorUserGroups', 'GET',
385
+ path_params,
386
+ query_params,
387
+ header_params,
388
+ body=body_params,
389
+ post_params=form_params,
390
+ files=local_var_files,
391
+ response_type='UserGroupListReportExt', # noqa: E501
392
+ auth_settings=auth_settings,
393
+ async_req=params.get('async_req'),
394
+ _return_http_data_only=params.get('_return_http_data_only'),
395
+ _preload_content=params.get('_preload_content', True),
396
+ _request_timeout=params.get('_request_timeout'),
397
+ collection_formats=collection_formats)
398
+
399
+ def heappe_job_reporting_resource_usage_report_for_job_get(self, **kwargs): # noqa: E501
400
+ """Get resource usage for executed job # noqa: E501
401
+
402
+ This method makes a synchronous HTTP request by default. To make an
403
+ asynchronous HTTP request, please pass async_req=True
404
+ >>> thread = api.heappe_job_reporting_resource_usage_report_for_job_get(async_req=True)
405
+ >>> result = thread.get()
406
+
407
+ :param async_req bool
408
+ :param str SessionCode: Session code
409
+ :param int JobId: Job ID
410
+ :return: ProjectReportExt
411
+ If the method is called asynchronously,
412
+ returns the request thread.
413
+ """
414
+ kwargs['_return_http_data_only'] = True
415
+ if kwargs.get('async_req'):
416
+ return self.heappe_job_reporting_resource_usage_report_for_job_get_with_http_info(**kwargs) # noqa: E501
417
+ else:
418
+ (data) = self.heappe_job_reporting_resource_usage_report_for_job_get_with_http_info(**kwargs) # noqa: E501
419
+ return data
420
+
421
+ def heappe_job_reporting_resource_usage_report_for_job_get_with_http_info(self, **kwargs): # noqa: E501
422
+ """Get resource usage for executed job # noqa: E501
423
+
424
+ This method makes a synchronous HTTP request by default. To make an
425
+ asynchronous HTTP request, please pass async_req=True
426
+ >>> thread = api.heappe_job_reporting_resource_usage_report_for_job_get_with_http_info(async_req=True)
427
+ >>> result = thread.get()
428
+
429
+ :param async_req bool
430
+ :param str SessionCode: Session code
431
+ :param int JobId: Job ID
432
+ :return: ProjectReportExt
433
+ If the method is called asynchronously,
434
+ returns the request thread.
435
+ """
436
+
437
+ all_params = ['SessionCode', 'JobId'] # noqa: E501
438
+ all_params.append('async_req')
439
+ all_params.append('_return_http_data_only')
440
+ all_params.append('_preload_content')
441
+ all_params.append('_request_timeout')
442
+
443
+ params = locals()
444
+ for key, val in six.iteritems(params['kwargs']):
445
+ if key not in all_params:
446
+ raise TypeError(
447
+ "Got an unexpected keyword argument '%s'"
448
+ " to method heappe_job_reporting_resource_usage_report_for_job_get" % key
449
+ )
450
+ params[key] = val
451
+ del params['kwargs']
452
+
453
+ collection_formats = {}
454
+
455
+ path_params = {}
456
+
457
+ query_params = []
458
+ if 'SessionCode' in params:
459
+ query_params.append(('SessionCode', params['SessionCode'])) # noqa: E501
460
+ if 'JobId' in params:
461
+ query_params.append(('JobId', params['JobId'])) # noqa: E501
462
+
463
+ header_params = {}
464
+
465
+ form_params = []
466
+ local_var_files = {}
467
+
468
+ body_params = None
469
+ # HTTP header `Accept`
470
+ header_params['Accept'] = self.api_client.select_header_accept(
471
+ ['application/json']) # noqa: E501
472
+
473
+ # Authentication setting
474
+ auth_settings = [] # noqa: E501
475
+
476
+ return self.api_client.call_api(
477
+ '/heappe/JobReporting/ResourceUsageReportForJob', 'GET',
478
+ path_params,
479
+ query_params,
480
+ header_params,
481
+ body=body_params,
482
+ post_params=form_params,
483
+ files=local_var_files,
484
+ response_type='ProjectReportExt', # noqa: E501
485
+ auth_settings=auth_settings,
486
+ async_req=params.get('async_req'),
487
+ _return_http_data_only=params.get('_return_http_data_only'),
488
+ _preload_content=params.get('_preload_content', True),
489
+ _request_timeout=params.get('_request_timeout'),
490
+ collection_formats=collection_formats)
491
+
492
+ def heappe_job_reporting_user_group_resource_usage_report_get(self, **kwargs): # noqa: E501
493
+ """Get resource usage for user group # noqa: E501
494
+
495
+ This method makes a synchronous HTTP request by default. To make an
496
+ asynchronous HTTP request, please pass async_req=True
497
+ >>> thread = api.heappe_job_reporting_user_group_resource_usage_report_get(async_req=True)
498
+ >>> result = thread.get()
499
+
500
+ :param async_req bool
501
+ :param int GroupId: Group ID
502
+ :param datetime StartTime: StartTime
503
+ :param datetime EndTime: EndTime
504
+ :param str SessionCode: SessionCode
505
+ :return: UserGroupReportExt
506
+ If the method is called asynchronously,
507
+ returns the request thread.
508
+ """
509
+ kwargs['_return_http_data_only'] = True
510
+ if kwargs.get('async_req'):
511
+ return self.heappe_job_reporting_user_group_resource_usage_report_get_with_http_info(**kwargs) # noqa: E501
512
+ else:
513
+ (data) = self.heappe_job_reporting_user_group_resource_usage_report_get_with_http_info(**kwargs) # noqa: E501
514
+ return data
515
+
516
+ def heappe_job_reporting_user_group_resource_usage_report_get_with_http_info(self, **kwargs): # noqa: E501
517
+ """Get resource usage for user group # noqa: E501
518
+
519
+ This method makes a synchronous HTTP request by default. To make an
520
+ asynchronous HTTP request, please pass async_req=True
521
+ >>> thread = api.heappe_job_reporting_user_group_resource_usage_report_get_with_http_info(async_req=True)
522
+ >>> result = thread.get()
523
+
524
+ :param async_req bool
525
+ :param int GroupId: Group ID
526
+ :param datetime StartTime: StartTime
527
+ :param datetime EndTime: EndTime
528
+ :param str SessionCode: SessionCode
529
+ :return: UserGroupReportExt
530
+ If the method is called asynchronously,
531
+ returns the request thread.
532
+ """
533
+
534
+ all_params = ['GroupId', 'StartTime', 'EndTime', 'SessionCode'] # noqa: E501
535
+ all_params.append('async_req')
536
+ all_params.append('_return_http_data_only')
537
+ all_params.append('_preload_content')
538
+ all_params.append('_request_timeout')
539
+
540
+ params = locals()
541
+ for key, val in six.iteritems(params['kwargs']):
542
+ if key not in all_params:
543
+ raise TypeError(
544
+ "Got an unexpected keyword argument '%s'"
545
+ " to method heappe_job_reporting_user_group_resource_usage_report_get" % key
546
+ )
547
+ params[key] = val
548
+ del params['kwargs']
549
+
550
+ collection_formats = {}
551
+
552
+ path_params = {}
553
+
554
+ query_params = []
555
+ if 'GroupId' in params:
556
+ query_params.append(('GroupId', params['GroupId'])) # noqa: E501
557
+ if 'StartTime' in params:
558
+ query_params.append(('StartTime', params['StartTime'])) # noqa: E501
559
+ if 'EndTime' in params:
560
+ query_params.append(('EndTime', params['EndTime'])) # noqa: E501
561
+ if 'SessionCode' in params:
562
+ query_params.append(('SessionCode', params['SessionCode'])) # 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/JobReporting/UserGroupResourceUsageReport', '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='UserGroupReportExt', # 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_reporting_user_resource_usage_report_get(self, **kwargs): # noqa: E501
594
+ """Get resource usage report for user # 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_reporting_user_resource_usage_report_get(async_req=True)
599
+ >>> result = thread.get()
600
+
601
+ :param async_req bool
602
+ :param int UserId: User ID
603
+ :param datetime StartTime: StartTime
604
+ :param datetime EndTime: EndTime
605
+ :param str SessionCode: SessionCode
606
+ :return: list[UserGroupReportExt]
607
+ If the method is called asynchronously,
608
+ returns the request thread.
609
+ """
610
+ kwargs['_return_http_data_only'] = True
611
+ if kwargs.get('async_req'):
612
+ return self.heappe_job_reporting_user_resource_usage_report_get_with_http_info(**kwargs) # noqa: E501
613
+ else:
614
+ (data) = self.heappe_job_reporting_user_resource_usage_report_get_with_http_info(**kwargs) # noqa: E501
615
+ return data
616
+
617
+ def heappe_job_reporting_user_resource_usage_report_get_with_http_info(self, **kwargs): # noqa: E501
618
+ """Get resource usage report for user # noqa: E501
619
+
620
+ This method makes a synchronous HTTP request by default. To make an
621
+ asynchronous HTTP request, please pass async_req=True
622
+ >>> thread = api.heappe_job_reporting_user_resource_usage_report_get_with_http_info(async_req=True)
623
+ >>> result = thread.get()
624
+
625
+ :param async_req bool
626
+ :param int UserId: User ID
627
+ :param datetime StartTime: StartTime
628
+ :param datetime EndTime: EndTime
629
+ :param str SessionCode: SessionCode
630
+ :return: list[UserGroupReportExt]
631
+ If the method is called asynchronously,
632
+ returns the request thread.
633
+ """
634
+
635
+ all_params = ['UserId', 'StartTime', 'EndTime', 'SessionCode'] # noqa: E501
636
+ all_params.append('async_req')
637
+ all_params.append('_return_http_data_only')
638
+ all_params.append('_preload_content')
639
+ all_params.append('_request_timeout')
640
+
641
+ params = locals()
642
+ for key, val in six.iteritems(params['kwargs']):
643
+ if key not in all_params:
644
+ raise TypeError(
645
+ "Got an unexpected keyword argument '%s'"
646
+ " to method heappe_job_reporting_user_resource_usage_report_get" % key
647
+ )
648
+ params[key] = val
649
+ del params['kwargs']
650
+
651
+ collection_formats = {}
652
+
653
+ path_params = {}
654
+
655
+ query_params = []
656
+ if 'UserId' in params:
657
+ query_params.append(('UserId', params['UserId'])) # noqa: E501
658
+ if 'StartTime' in params:
659
+ query_params.append(('StartTime', params['StartTime'])) # noqa: E501
660
+ if 'EndTime' in params:
661
+ query_params.append(('EndTime', params['EndTime'])) # noqa: E501
662
+ if 'SessionCode' in params:
663
+ query_params.append(('SessionCode', params['SessionCode'])) # noqa: E501
664
+
665
+ header_params = {}
666
+
667
+ form_params = []
668
+ local_var_files = {}
669
+
670
+ body_params = None
671
+ # HTTP header `Accept`
672
+ header_params['Accept'] = self.api_client.select_header_accept(
673
+ ['application/json']) # noqa: E501
674
+
675
+ # Authentication setting
676
+ auth_settings = [] # noqa: E501
677
+
678
+ return self.api_client.call_api(
679
+ '/heappe/JobReporting/UserResourceUsageReport', 'GET',
680
+ path_params,
681
+ query_params,
682
+ header_params,
683
+ body=body_params,
684
+ post_params=form_params,
685
+ files=local_var_files,
686
+ response_type='list[UserGroupReportExt]', # noqa: E501
687
+ auth_settings=auth_settings,
688
+ async_req=params.get('async_req'),
689
+ _return_http_data_only=params.get('_return_http_data_only'),
690
+ _preload_content=params.get('_preload_content', True),
691
+ _request_timeout=params.get('_request_timeout'),
692
+ collection_formats=collection_formats)