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,2540 @@
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 ManagementApi(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_management_command_template_from_generic_post(self, **kwargs): # noqa: E501
36
+ """Create Command Template from Generic Command Template # 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_management_command_template_from_generic_post(async_req=True)
41
+ >>> result = thread.get()
42
+
43
+ :param async_req bool
44
+ :param CreateCommandTemplateFromGenericModel body: CreateCommandTemplateFromGenericModel
45
+ :return: CommandTemplateExt
46
+ If the method is called asynchronously,
47
+ returns the request thread.
48
+ """
49
+ kwargs['_return_http_data_only'] = True
50
+ if kwargs.get('async_req'):
51
+ return self.heappe_management_command_template_from_generic_post_with_http_info(**kwargs) # noqa: E501
52
+ else:
53
+ (data) = self.heappe_management_command_template_from_generic_post_with_http_info(**kwargs) # noqa: E501
54
+ return data
55
+
56
+ def heappe_management_command_template_from_generic_post_with_http_info(self, **kwargs): # noqa: E501
57
+ """Create Command Template from Generic Command Template # noqa: E501
58
+
59
+ This method makes a synchronous HTTP request by default. To make an
60
+ asynchronous HTTP request, please pass async_req=True
61
+ >>> thread = api.heappe_management_command_template_from_generic_post_with_http_info(async_req=True)
62
+ >>> result = thread.get()
63
+
64
+ :param async_req bool
65
+ :param CreateCommandTemplateFromGenericModel body: CreateCommandTemplateFromGenericModel
66
+ :return: CommandTemplateExt
67
+ If the method is called asynchronously,
68
+ returns the request thread.
69
+ """
70
+
71
+ all_params = ['body'] # noqa: E501
72
+ all_params.append('async_req')
73
+ all_params.append('_return_http_data_only')
74
+ all_params.append('_preload_content')
75
+ all_params.append('_request_timeout')
76
+
77
+ params = locals()
78
+ for key, val in six.iteritems(params['kwargs']):
79
+ if key not in all_params:
80
+ raise TypeError(
81
+ "Got an unexpected keyword argument '%s'"
82
+ " to method heappe_management_command_template_from_generic_post" % key
83
+ )
84
+ params[key] = val
85
+ del params['kwargs']
86
+
87
+ collection_formats = {}
88
+
89
+ path_params = {}
90
+
91
+ query_params = []
92
+
93
+ header_params = {}
94
+
95
+ form_params = []
96
+ local_var_files = {}
97
+
98
+ body_params = None
99
+ if 'body' in params:
100
+ body_params = params['body']
101
+ # HTTP header `Accept`
102
+ header_params['Accept'] = self.api_client.select_header_accept(
103
+ ['application/json']) # noqa: E501
104
+
105
+ # HTTP header `Content-Type`
106
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
107
+ ['application/json', 'text/json', 'application/*+json']) # noqa: E501
108
+
109
+ # Authentication setting
110
+ auth_settings = [] # noqa: E501
111
+
112
+ return self.api_client.call_api(
113
+ '/heappe/Management/CommandTemplateFromGeneric', 'POST',
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='CommandTemplateExt', # 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_management_command_template_from_generic_put(self, **kwargs): # noqa: E501
129
+ """Modify Command Template based on Generic Command Template # 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_management_command_template_from_generic_put(async_req=True)
134
+ >>> result = thread.get()
135
+
136
+ :param async_req bool
137
+ :param ModifyCommandTemplateFromGenericModel body: ModifyCommandTemplateFromGenericModel
138
+ :return: CommandTemplateExt
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_management_command_template_from_generic_put_with_http_info(**kwargs) # noqa: E501
145
+ else:
146
+ (data) = self.heappe_management_command_template_from_generic_put_with_http_info(**kwargs) # noqa: E501
147
+ return data
148
+
149
+ def heappe_management_command_template_from_generic_put_with_http_info(self, **kwargs): # noqa: E501
150
+ """Modify Command Template based on Generic Command Template # 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_management_command_template_from_generic_put_with_http_info(async_req=True)
155
+ >>> result = thread.get()
156
+
157
+ :param async_req bool
158
+ :param ModifyCommandTemplateFromGenericModel body: ModifyCommandTemplateFromGenericModel
159
+ :return: CommandTemplateExt
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_management_command_template_from_generic_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/Management/CommandTemplateFromGeneric', '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='CommandTemplateExt', # 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_management_command_template_get(self, **kwargs): # noqa: E501
222
+ """List Command Template # 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_management_command_template_get(async_req=True)
227
+ >>> result = thread.get()
228
+
229
+ :param async_req bool
230
+ :param str session_code:
231
+ :param int id:
232
+ :return: ExtendedCommandTemplateExt
233
+ If the method is called asynchronously,
234
+ returns the request thread.
235
+ """
236
+ kwargs['_return_http_data_only'] = True
237
+ if kwargs.get('async_req'):
238
+ return self.heappe_management_command_template_get_with_http_info(**kwargs) # noqa: E501
239
+ else:
240
+ (data) = self.heappe_management_command_template_get_with_http_info(**kwargs) # noqa: E501
241
+ return data
242
+
243
+ def heappe_management_command_template_get_with_http_info(self, **kwargs): # noqa: E501
244
+ """List Command Template # noqa: E501
245
+
246
+ This method makes a synchronous HTTP request by default. To make an
247
+ asynchronous HTTP request, please pass async_req=True
248
+ >>> thread = api.heappe_management_command_template_get_with_http_info(async_req=True)
249
+ >>> result = thread.get()
250
+
251
+ :param async_req bool
252
+ :param str SessionCode:
253
+ :param int Id:
254
+ :return: ExtendedCommandTemplateExt
255
+ If the method is called asynchronously,
256
+ returns the request thread.
257
+ """
258
+
259
+ all_params = ['SessionCode', 'Id'] # noqa: E501
260
+ all_params.append('async_req')
261
+ all_params.append('_return_http_data_only')
262
+ all_params.append('_preload_content')
263
+ all_params.append('_request_timeout')
264
+
265
+ params = locals()
266
+ for key, val in six.iteritems(params['kwargs']):
267
+ if key not in all_params:
268
+ raise TypeError(
269
+ "Got an unexpected keyword argument '%s'"
270
+ " to method heappe_management_command_template_get" % key
271
+ )
272
+ params[key] = val
273
+ del params['kwargs']
274
+
275
+ collection_formats = {}
276
+
277
+ path_params = {}
278
+
279
+ query_params = []
280
+ if 'SessionCode' in params:
281
+ query_params.append(('SessionCode', params['SessionCode'])) # noqa: E501
282
+ if 'Id' in params:
283
+ query_params.append(('Id', params['Id'])) # noqa: E501
284
+
285
+ header_params = {}
286
+
287
+ form_params = []
288
+ local_var_files = {}
289
+
290
+ body_params = None
291
+ # HTTP header `Accept`
292
+ header_params['Accept'] = self.api_client.select_header_accept(
293
+ ['application/json']) # noqa: E501
294
+
295
+ # Authentication setting
296
+ auth_settings = [] # noqa: E501
297
+
298
+ return self.api_client.call_api(
299
+ '/heappe/Management/CommandTemplate', 'GET',
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='ExtendedCommandTemplateExt', # 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_management_command_template_parameter_delete(self, **kwargs): # noqa: E501
315
+ """Remove Static Command Template # 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_management_command_template_parameter_delete(async_req=True)
320
+ >>> result = thread.get()
321
+
322
+ :param async_req bool
323
+ :param RemoveCommandTemplateParameterModel body: RemoveCommandTemplateParameterModel
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_management_command_template_parameter_delete_with_http_info(**kwargs) # noqa: E501
331
+ else:
332
+ (data) = self.heappe_management_command_template_parameter_delete_with_http_info(**kwargs) # noqa: E501
333
+ return data
334
+
335
+ def heappe_management_command_template_parameter_delete_with_http_info(self, **kwargs): # noqa: E501
336
+ """Remove Static Command Template # 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_management_command_template_parameter_delete_with_http_info(async_req=True)
341
+ >>> result = thread.get()
342
+
343
+ :param async_req bool
344
+ :param RemoveCommandTemplateParameterModel body: RemoveCommandTemplateParameterModel
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_management_command_template_parameter_delete" % 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/Management/CommandTemplateParameter', 'DELETE',
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_management_command_template_parameter_post(self, **kwargs): # noqa: E501
408
+ """Create Static Command Template # 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_management_command_template_parameter_post(async_req=True)
413
+ >>> result = thread.get()
414
+
415
+ :param async_req bool
416
+ :param CreateCommandTemplateParameterModel body: CreateCommandTemplateModel
417
+ :return: ExtendedCommandTemplateParameterExt
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_management_command_template_parameter_post_with_http_info(**kwargs) # noqa: E501
424
+ else:
425
+ (data) = self.heappe_management_command_template_parameter_post_with_http_info(**kwargs) # noqa: E501
426
+ return data
427
+
428
+ def heappe_management_command_template_parameter_post_with_http_info(self, **kwargs): # noqa: E501
429
+ """Create Static Command Template # 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_management_command_template_parameter_post_with_http_info(async_req=True)
434
+ >>> result = thread.get()
435
+
436
+ :param async_req bool
437
+ :param CreateCommandTemplateParameterModel body: CreateCommandTemplateModel
438
+ :return: ExtendedCommandTemplateParameterExt
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_management_command_template_parameter_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/Management/CommandTemplateParameter', '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='ExtendedCommandTemplateParameterExt', # 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_management_command_template_parameter_put(self, **kwargs): # noqa: E501
501
+ """Modify Static Command Template # 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_management_command_template_parameter_put(async_req=True)
506
+ >>> result = thread.get()
507
+
508
+ :param async_req bool
509
+ :param ModifyCommandTemplateParameterModel body: ModifyCommandTemplateParameterModel
510
+ :return: ExtendedCommandTemplateParameterExt
511
+ If the method is called asynchronously,
512
+ returns the request thread.
513
+ """
514
+ kwargs['_return_http_data_only'] = True
515
+ if kwargs.get('async_req'):
516
+ return self.heappe_management_command_template_parameter_put_with_http_info(**kwargs) # noqa: E501
517
+ else:
518
+ (data) = self.heappe_management_command_template_parameter_put_with_http_info(**kwargs) # noqa: E501
519
+ return data
520
+
521
+ def heappe_management_command_template_parameter_put_with_http_info(self, **kwargs): # noqa: E501
522
+ """Modify Static Command Template # noqa: E501
523
+
524
+ This method makes a synchronous HTTP request by default. To make an
525
+ asynchronous HTTP request, please pass async_req=True
526
+ >>> thread = api.heappe_management_command_template_parameter_put_with_http_info(async_req=True)
527
+ >>> result = thread.get()
528
+
529
+ :param async_req bool
530
+ :param ModifyCommandTemplateParameterModel body: ModifyCommandTemplateParameterModel
531
+ :return: ExtendedCommandTemplateParameterExt
532
+ If the method is called asynchronously,
533
+ returns the request thread.
534
+ """
535
+
536
+ all_params = ['body'] # noqa: E501
537
+ all_params.append('async_req')
538
+ all_params.append('_return_http_data_only')
539
+ all_params.append('_preload_content')
540
+ all_params.append('_request_timeout')
541
+
542
+ params = locals()
543
+ for key, val in six.iteritems(params['kwargs']):
544
+ if key not in all_params:
545
+ raise TypeError(
546
+ "Got an unexpected keyword argument '%s'"
547
+ " to method heappe_management_command_template_parameter_put" % key
548
+ )
549
+ params[key] = val
550
+ del params['kwargs']
551
+
552
+ collection_formats = {}
553
+
554
+ path_params = {}
555
+
556
+ query_params = []
557
+
558
+ header_params = {}
559
+
560
+ form_params = []
561
+ local_var_files = {}
562
+
563
+ body_params = None
564
+ if 'body' in params:
565
+ body_params = params['body']
566
+ # HTTP header `Accept`
567
+ header_params['Accept'] = self.api_client.select_header_accept(
568
+ ['application/json']) # noqa: E501
569
+
570
+ # HTTP header `Content-Type`
571
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
572
+ ['application/json', 'text/json', 'application/*+json']) # noqa: E501
573
+
574
+ # Authentication setting
575
+ auth_settings = [] # noqa: E501
576
+
577
+ return self.api_client.call_api(
578
+ '/heappe/Management/CommandTemplateParameter', 'PUT',
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='ExtendedCommandTemplateParameterExt', # 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_management_command_template_post(self, **kwargs): # noqa: E501
594
+ """Create Static Command Template # 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_management_command_template_post(async_req=True)
599
+ >>> result = thread.get()
600
+
601
+ :param async_req bool
602
+ :param CreateCommandTemplateModel body: CreateCommandTemplateModel
603
+ :return: ExtendedCommandTemplateExt
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_management_command_template_post_with_http_info(**kwargs) # noqa: E501
610
+ else:
611
+ (data) = self.heappe_management_command_template_post_with_http_info(**kwargs) # noqa: E501
612
+ return data
613
+
614
+ def heappe_management_command_template_post_with_http_info(self, **kwargs): # noqa: E501
615
+ """Create Static Command Template # 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_management_command_template_post_with_http_info(async_req=True)
620
+ >>> result = thread.get()
621
+
622
+ :param async_req bool
623
+ :param CreateCommandTemplateModel body: CreateCommandTemplateModel
624
+ :return: ExtendedCommandTemplateExt
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_management_command_template_post" % 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/Management/CommandTemplate', 'POST',
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='ExtendedCommandTemplateExt', # 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_management_command_template_put(self, **kwargs): # noqa: E501
687
+ """Modify Static Command Template # 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_management_command_template_put(async_req=True)
692
+ >>> result = thread.get()
693
+
694
+ :param async_req bool
695
+ :param ModifyCommandTemplateModel body: ModifyCommandTemplateModel
696
+ :return: ExtendedCommandTemplateExt
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_management_command_template_put_with_http_info(**kwargs) # noqa: E501
703
+ else:
704
+ (data) = self.heappe_management_command_template_put_with_http_info(**kwargs) # noqa: E501
705
+ return data
706
+
707
+ def heappe_management_command_template_put_with_http_info(self, **kwargs): # noqa: E501
708
+ """Modify Static Command Template # 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_management_command_template_put_with_http_info(async_req=True)
713
+ >>> result = thread.get()
714
+
715
+ :param async_req bool
716
+ :param ModifyCommandTemplateModel body: ModifyCommandTemplateModel
717
+ :return: ExtendedCommandTemplateExt
718
+ If the method is called asynchronously,
719
+ returns the request thread.
720
+ """
721
+
722
+ all_params = ['body'] # 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_management_command_template_put" % key
734
+ )
735
+ params[key] = val
736
+ del params['kwargs']
737
+
738
+ collection_formats = {}
739
+
740
+ path_params = {}
741
+
742
+ query_params = []
743
+
744
+ header_params = {}
745
+
746
+ form_params = []
747
+ local_var_files = {}
748
+
749
+ body_params = None
750
+ if 'body' in params:
751
+ body_params = params['body']
752
+ # HTTP header `Accept`
753
+ header_params['Accept'] = self.api_client.select_header_accept(
754
+ ['application/json']) # noqa: E501
755
+
756
+ # HTTP header `Content-Type`
757
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
758
+ ['application/json', 'text/json', 'application/*+json']) # noqa: E501
759
+
760
+ # Authentication setting
761
+ auth_settings = [] # noqa: E501
762
+
763
+ return self.api_client.call_api(
764
+ '/heappe/Management/CommandTemplate', 'PUT',
765
+ path_params,
766
+ query_params,
767
+ header_params,
768
+ body=body_params,
769
+ post_params=form_params,
770
+ files=local_var_files,
771
+ response_type='ExtendedCommandTemplateExt', # noqa: E501
772
+ auth_settings=auth_settings,
773
+ async_req=params.get('async_req'),
774
+ _return_http_data_only=params.get('_return_http_data_only'),
775
+ _preload_content=params.get('_preload_content', True),
776
+ _request_timeout=params.get('_request_timeout'),
777
+ collection_formats=collection_formats)
778
+
779
+ def heappe_management_command_templates_get(self, **kwargs): # noqa: E501
780
+ """List Command Templates # noqa: E501
781
+
782
+ This method makes a synchronous HTTP request by default. To make an
783
+ asynchronous HTTP request, please pass async_req=True
784
+ >>> thread = api.heappe_management_command_templates_get(async_req=True)
785
+ >>> result = thread.get()
786
+
787
+ :param async_req bool
788
+ :param str session_code:
789
+ :param int project_id:
790
+ :return: list[ExtendedCommandTemplateExt]
791
+ If the method is called asynchronously,
792
+ returns the request thread.
793
+ """
794
+ kwargs['_return_http_data_only'] = True
795
+ if kwargs.get('async_req'):
796
+ return self.heappe_management_command_templates_get_with_http_info(**kwargs) # noqa: E501
797
+ else:
798
+ (data) = self.heappe_management_command_templates_get_with_http_info(**kwargs) # noqa: E501
799
+ return data
800
+
801
+ def heappe_management_command_templates_get_with_http_info(self, **kwargs): # noqa: E501
802
+ """List Command Templates # noqa: E501
803
+
804
+ This method makes a synchronous HTTP request by default. To make an
805
+ asynchronous HTTP request, please pass async_req=True
806
+ >>> thread = api.heappe_management_command_templates_get_with_http_info(async_req=True)
807
+ >>> result = thread.get()
808
+
809
+ :param async_req bool
810
+ :param str SessionCode:
811
+ :param int ProjectId:
812
+ :return: list[ExtendedCommandTemplateExt]
813
+ If the method is called asynchronously,
814
+ returns the request thread.
815
+ """
816
+
817
+ all_params = ['SessionCode', 'ProjectId'] # noqa: E501
818
+ all_params.append('async_req')
819
+ all_params.append('_return_http_data_only')
820
+ all_params.append('_preload_content')
821
+ all_params.append('_request_timeout')
822
+
823
+ params = locals()
824
+ for key, val in six.iteritems(params['kwargs']):
825
+ if key not in all_params:
826
+ raise TypeError(
827
+ "Got an unexpected keyword argument '%s'"
828
+ " to method heappe_management_command_templates_get" % key
829
+ )
830
+ params[key] = val
831
+ del params['kwargs']
832
+
833
+ collection_formats = {}
834
+
835
+ path_params = {}
836
+
837
+ query_params = []
838
+ if 'SessionCode' in params:
839
+ query_params.append(('SessionCode', params['SessionCode'])) # noqa: E501
840
+ if 'ProjectId' in params:
841
+ query_params.append(('ProjectId', params['ProjectId'])) # noqa: E501
842
+
843
+ header_params = {}
844
+
845
+ form_params = []
846
+ local_var_files = {}
847
+
848
+ body_params = None
849
+ # HTTP header `Accept`
850
+ header_params['Accept'] = self.api_client.select_header_accept(
851
+ ['application/json']) # noqa: E501
852
+
853
+ # Authentication setting
854
+ auth_settings = [] # noqa: E501
855
+
856
+ return self.api_client.call_api(
857
+ '/heappe/Management/CommandTemplates', 'GET',
858
+ path_params,
859
+ query_params,
860
+ header_params,
861
+ body=body_params,
862
+ post_params=form_params,
863
+ files=local_var_files,
864
+ response_type='list[ExtendedCommandTemplateExt]', # noqa: E501
865
+ auth_settings=auth_settings,
866
+ async_req=params.get('async_req'),
867
+ _return_http_data_only=params.get('_return_http_data_only'),
868
+ _preload_content=params.get('_preload_content', True),
869
+ _request_timeout=params.get('_request_timeout'),
870
+ collection_formats=collection_formats)
871
+
872
+ def heappe_management_generate_secure_shell_key_post(self, **kwargs): # noqa: E501
873
+ """Generate SSH key # noqa: E501
874
+
875
+ This method makes a synchronous HTTP request by default. To make an
876
+ asynchronous HTTP request, please pass async_req=True
877
+ >>> thread = api.heappe_management_generate_secure_shell_key_post(async_req=True)
878
+ >>> result = thread.get()
879
+
880
+ :param async_req bool
881
+ :param CreateSecureShellKeyModel body:
882
+ :return: list[PublicKeyExt]
883
+ If the method is called asynchronously,
884
+ returns the request thread.
885
+ """
886
+ kwargs['_return_http_data_only'] = True
887
+ if kwargs.get('async_req'):
888
+ return self.heappe_management_generate_secure_shell_key_post_with_http_info(**kwargs) # noqa: E501
889
+ else:
890
+ (data) = self.heappe_management_generate_secure_shell_key_post_with_http_info(**kwargs) # noqa: E501
891
+ return data
892
+
893
+ def heappe_management_generate_secure_shell_key_post_with_http_info(self, **kwargs): # noqa: E501
894
+ """Generate SSH key # noqa: E501
895
+
896
+ This method makes a synchronous HTTP request by default. To make an
897
+ asynchronous HTTP request, please pass async_req=True
898
+ >>> thread = api.heappe_management_generate_secure_shell_key_post_with_http_info(async_req=True)
899
+ >>> result = thread.get()
900
+
901
+ :param async_req bool
902
+ :param CreateSecureShellKeyModel body:
903
+ :return: list[PublicKeyExt]
904
+ If the method is called asynchronously,
905
+ returns the request thread.
906
+ """
907
+
908
+ all_params = ['body'] # noqa: E501
909
+ all_params.append('async_req')
910
+ all_params.append('_return_http_data_only')
911
+ all_params.append('_preload_content')
912
+ all_params.append('_request_timeout')
913
+
914
+ params = locals()
915
+ for key, val in six.iteritems(params['kwargs']):
916
+ if key not in all_params:
917
+ raise TypeError(
918
+ "Got an unexpected keyword argument '%s'"
919
+ " to method heappe_management_generate_secure_shell_key_post" % key
920
+ )
921
+ params[key] = val
922
+ del params['kwargs']
923
+
924
+ collection_formats = {}
925
+
926
+ path_params = {}
927
+
928
+ query_params = []
929
+
930
+ header_params = {}
931
+
932
+ form_params = []
933
+ local_var_files = {}
934
+
935
+ body_params = None
936
+ if 'body' in params:
937
+ body_params = params['body']
938
+ # HTTP header `Accept`
939
+ header_params['Accept'] = self.api_client.select_header_accept(
940
+ ['application/json']) # noqa: E501
941
+
942
+ # HTTP header `Content-Type`
943
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
944
+ ['application/json', 'text/json', 'application/*+json']) # noqa: E501
945
+
946
+ # Authentication setting
947
+ auth_settings = [] # noqa: E501
948
+
949
+ return self.api_client.call_api(
950
+ '/heappe/Management/GenerateSecureShellKey', 'POST',
951
+ path_params,
952
+ query_params,
953
+ header_params,
954
+ body=body_params,
955
+ post_params=form_params,
956
+ files=local_var_files,
957
+ response_type='list[PublicKeyExt]', # noqa: E501
958
+ auth_settings=auth_settings,
959
+ async_req=params.get('async_req'),
960
+ _return_http_data_only=params.get('_return_http_data_only'),
961
+ _preload_content=params.get('_preload_content', True),
962
+ _request_timeout=params.get('_request_timeout'),
963
+ collection_formats=collection_formats)
964
+
965
+ def heappe_management_initialize_cluster_script_directory_post(self, **kwargs): # noqa: E501
966
+ """Initialize cluster script directory for SSH HPC Account # noqa: E501
967
+
968
+ This method makes a synchronous HTTP request by default. To make an
969
+ asynchronous HTTP request, please pass async_req=True
970
+ >>> thread = api.heappe_management_initialize_cluster_script_directory_post(async_req=True)
971
+ >>> result = thread.get()
972
+
973
+ :param async_req bool
974
+ :param InitializeClusterScriptDirectoryModel body:
975
+ :return: list[ClusterInitReportExt]
976
+ If the method is called asynchronously,
977
+ returns the request thread.
978
+ """
979
+ kwargs['_return_http_data_only'] = True
980
+ if kwargs.get('async_req'):
981
+ return self.heappe_management_initialize_cluster_script_directory_post_with_http_info(**kwargs) # noqa: E501
982
+ else:
983
+ (data) = self.heappe_management_initialize_cluster_script_directory_post_with_http_info(**kwargs) # noqa: E501
984
+ return data
985
+
986
+ def heappe_management_initialize_cluster_script_directory_post_with_http_info(self, **kwargs): # noqa: E501
987
+ """Initialize cluster script directory for SSH HPC Account # noqa: E501
988
+
989
+ This method makes a synchronous HTTP request by default. To make an
990
+ asynchronous HTTP request, please pass async_req=True
991
+ >>> thread = api.heappe_management_initialize_cluster_script_directory_post_with_http_info(async_req=True)
992
+ >>> result = thread.get()
993
+
994
+ :param async_req bool
995
+ :param InitializeClusterScriptDirectoryModel body:
996
+ :return: list[ClusterInitReportExt]
997
+ If the method is called asynchronously,
998
+ returns the request thread.
999
+ """
1000
+
1001
+ all_params = ['body'] # noqa: E501
1002
+ all_params.append('async_req')
1003
+ all_params.append('_return_http_data_only')
1004
+ all_params.append('_preload_content')
1005
+ all_params.append('_request_timeout')
1006
+
1007
+ params = locals()
1008
+ for key, val in six.iteritems(params['kwargs']):
1009
+ if key not in all_params:
1010
+ raise TypeError(
1011
+ "Got an unexpected keyword argument '%s'"
1012
+ " to method heappe_management_initialize_cluster_script_directory_post" % key
1013
+ )
1014
+ params[key] = val
1015
+ del params['kwargs']
1016
+
1017
+ collection_formats = {}
1018
+
1019
+ path_params = {}
1020
+
1021
+ query_params = []
1022
+
1023
+ header_params = {}
1024
+
1025
+ form_params = []
1026
+ local_var_files = {}
1027
+
1028
+ body_params = None
1029
+ if 'body' in params:
1030
+ body_params = params['body']
1031
+ # HTTP header `Accept`
1032
+ header_params['Accept'] = self.api_client.select_header_accept(
1033
+ ['application/json']) # noqa: E501
1034
+
1035
+ # HTTP header `Content-Type`
1036
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1037
+ ['application/json', 'text/json', 'application/*+json']) # noqa: E501
1038
+
1039
+ # Authentication setting
1040
+ auth_settings = [] # noqa: E501
1041
+
1042
+ return self.api_client.call_api(
1043
+ '/heappe/Management/InitializeClusterScriptDirectory', 'POST',
1044
+ path_params,
1045
+ query_params,
1046
+ header_params,
1047
+ body=body_params,
1048
+ post_params=form_params,
1049
+ files=local_var_files,
1050
+ response_type='list[ClusterInitReportExt]', # noqa: E501
1051
+ auth_settings=auth_settings,
1052
+ async_req=params.get('async_req'),
1053
+ _return_http_data_only=params.get('_return_http_data_only'),
1054
+ _preload_content=params.get('_preload_content', True),
1055
+ _request_timeout=params.get('_request_timeout'),
1056
+ collection_formats=collection_formats)
1057
+
1058
+ def heappe_management_instance_information_get(self, **kwargs): # noqa: E501
1059
+ """Get HEAppE Information # noqa: E501
1060
+
1061
+ This method makes a synchronous HTTP request by default. To make an
1062
+ asynchronous HTTP request, please pass async_req=True
1063
+ >>> thread = api.heappe_management_instance_information_get(async_req=True)
1064
+ >>> result = thread.get()
1065
+
1066
+ :param async_req bool
1067
+ :param str session_code: SessionCode
1068
+ :return: InstanceInformationExt
1069
+ If the method is called asynchronously,
1070
+ returns the request thread.
1071
+ """
1072
+ kwargs['_return_http_data_only'] = True
1073
+ if kwargs.get('async_req'):
1074
+ return self.heappe_management_instance_information_get_with_http_info(**kwargs) # noqa: E501
1075
+ else:
1076
+ (data) = self.heappe_management_instance_information_get_with_http_info(**kwargs) # noqa: E501
1077
+ return data
1078
+
1079
+ def heappe_management_instance_information_get_with_http_info(self, **kwargs): # noqa: E501
1080
+ """Get HEAppE Information # noqa: E501
1081
+
1082
+ This method makes a synchronous HTTP request by default. To make an
1083
+ asynchronous HTTP request, please pass async_req=True
1084
+ >>> thread = api.heappe_management_instance_information_get_with_http_info(async_req=True)
1085
+ >>> result = thread.get()
1086
+
1087
+ :param async_req bool
1088
+ :param str SessionCode: SessionCode
1089
+ :return: InstanceInformationExt
1090
+ If the method is called asynchronously,
1091
+ returns the request thread.
1092
+ """
1093
+
1094
+ all_params = ['SessionCode'] # noqa: E501
1095
+ all_params.append('async_req')
1096
+ all_params.append('_return_http_data_only')
1097
+ all_params.append('_preload_content')
1098
+ all_params.append('_request_timeout')
1099
+
1100
+ params = locals()
1101
+ for key, val in six.iteritems(params['kwargs']):
1102
+ if key not in all_params:
1103
+ raise TypeError(
1104
+ "Got an unexpected keyword argument '%s'"
1105
+ " to method heappe_management_instance_information_get" % key
1106
+ )
1107
+ params[key] = val
1108
+ del params['kwargs']
1109
+
1110
+ collection_formats = {}
1111
+
1112
+ path_params = {}
1113
+
1114
+ query_params = []
1115
+ if 'SessionCode' in params:
1116
+ query_params.append(('SessionCode', params['SessionCode'])) # noqa: E501
1117
+
1118
+ header_params = {}
1119
+
1120
+ form_params = []
1121
+ local_var_files = {}
1122
+
1123
+ body_params = None
1124
+ # HTTP header `Accept`
1125
+ header_params['Accept'] = self.api_client.select_header_accept(
1126
+ ['application/json']) # noqa: E501
1127
+
1128
+ # Authentication setting
1129
+ auth_settings = [] # noqa: E501
1130
+
1131
+ return self.api_client.call_api(
1132
+ '/heappe/Management/InstanceInformation', 'GET',
1133
+ path_params,
1134
+ query_params,
1135
+ header_params,
1136
+ body=body_params,
1137
+ post_params=form_params,
1138
+ files=local_var_files,
1139
+ response_type='InstanceInformationExt', # noqa: E501
1140
+ auth_settings=auth_settings,
1141
+ async_req=params.get('async_req'),
1142
+ _return_http_data_only=params.get('_return_http_data_only'),
1143
+ _preload_content=params.get('_preload_content', True),
1144
+ _request_timeout=params.get('_request_timeout'),
1145
+ collection_formats=collection_formats)
1146
+
1147
+ def heappe_management_project_assignment_to_cluster_delete(self, **kwargs): # noqa: E501
1148
+ """Remove project assignment to the cluster # noqa: E501
1149
+
1150
+ This method makes a synchronous HTTP request by default. To make an
1151
+ asynchronous HTTP request, please pass async_req=True
1152
+ >>> thread = api.heappe_management_project_assignment_to_cluster_delete(async_req=True)
1153
+ >>> result = thread.get()
1154
+
1155
+ :param async_req bool
1156
+ :param RemoveProjectAssignmentToClusterModel body:
1157
+ :return: str
1158
+ If the method is called asynchronously,
1159
+ returns the request thread.
1160
+ """
1161
+ kwargs['_return_http_data_only'] = True
1162
+ if kwargs.get('async_req'):
1163
+ return self.heappe_management_project_assignment_to_cluster_delete_with_http_info(**kwargs) # noqa: E501
1164
+ else:
1165
+ (data) = self.heappe_management_project_assignment_to_cluster_delete_with_http_info(**kwargs) # noqa: E501
1166
+ return data
1167
+
1168
+ def heappe_management_project_assignment_to_cluster_delete_with_http_info(self, **kwargs): # noqa: E501
1169
+ """Remove project assignment to the cluster # noqa: E501
1170
+
1171
+ This method makes a synchronous HTTP request by default. To make an
1172
+ asynchronous HTTP request, please pass async_req=True
1173
+ >>> thread = api.heappe_management_project_assignment_to_cluster_delete_with_http_info(async_req=True)
1174
+ >>> result = thread.get()
1175
+
1176
+ :param async_req bool
1177
+ :param RemoveProjectAssignmentToClusterModel body:
1178
+ :return: str
1179
+ If the method is called asynchronously,
1180
+ returns the request thread.
1181
+ """
1182
+
1183
+ all_params = ['body'] # noqa: E501
1184
+ all_params.append('async_req')
1185
+ all_params.append('_return_http_data_only')
1186
+ all_params.append('_preload_content')
1187
+ all_params.append('_request_timeout')
1188
+
1189
+ params = locals()
1190
+ for key, val in six.iteritems(params['kwargs']):
1191
+ if key not in all_params:
1192
+ raise TypeError(
1193
+ "Got an unexpected keyword argument '%s'"
1194
+ " to method heappe_management_project_assignment_to_cluster_delete" % key
1195
+ )
1196
+ params[key] = val
1197
+ del params['kwargs']
1198
+
1199
+ collection_formats = {}
1200
+
1201
+ path_params = {}
1202
+
1203
+ query_params = []
1204
+
1205
+ header_params = {}
1206
+
1207
+ form_params = []
1208
+ local_var_files = {}
1209
+
1210
+ body_params = None
1211
+ if 'body' in params:
1212
+ body_params = params['body']
1213
+ # HTTP header `Accept`
1214
+ header_params['Accept'] = self.api_client.select_header_accept(
1215
+ ['application/json']) # noqa: E501
1216
+
1217
+ # HTTP header `Content-Type`
1218
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1219
+ ['application/json', 'text/json', 'application/*+json']) # noqa: E501
1220
+
1221
+ # Authentication setting
1222
+ auth_settings = [] # noqa: E501
1223
+
1224
+ return self.api_client.call_api(
1225
+ '/heappe/Management/ProjectAssignmentToCluster', 'DELETE',
1226
+ path_params,
1227
+ query_params,
1228
+ header_params,
1229
+ body=body_params,
1230
+ post_params=form_params,
1231
+ files=local_var_files,
1232
+ response_type='str', # noqa: E501
1233
+ auth_settings=auth_settings,
1234
+ async_req=params.get('async_req'),
1235
+ _return_http_data_only=params.get('_return_http_data_only'),
1236
+ _preload_content=params.get('_preload_content', True),
1237
+ _request_timeout=params.get('_request_timeout'),
1238
+ collection_formats=collection_formats)
1239
+
1240
+ def heappe_management_project_assignment_to_cluster_post(self, **kwargs): # noqa: E501
1241
+ """Assign project to the cluster # noqa: E501
1242
+
1243
+ This method makes a synchronous HTTP request by default. To make an
1244
+ asynchronous HTTP request, please pass async_req=True
1245
+ >>> thread = api.heappe_management_project_assignment_to_cluster_post(async_req=True)
1246
+ >>> result = thread.get()
1247
+
1248
+ :param async_req bool
1249
+ :param CreateProjectAssignmentToClusterModel body:
1250
+ :return: ClusterProject
1251
+ If the method is called asynchronously,
1252
+ returns the request thread.
1253
+ """
1254
+ kwargs['_return_http_data_only'] = True
1255
+ if kwargs.get('async_req'):
1256
+ return self.heappe_management_project_assignment_to_cluster_post_with_http_info(**kwargs) # noqa: E501
1257
+ else:
1258
+ (data) = self.heappe_management_project_assignment_to_cluster_post_with_http_info(**kwargs) # noqa: E501
1259
+ return data
1260
+
1261
+ def heappe_management_project_assignment_to_cluster_post_with_http_info(self, **kwargs): # noqa: E501
1262
+ """Assign project to the cluster # noqa: E501
1263
+
1264
+ This method makes a synchronous HTTP request by default. To make an
1265
+ asynchronous HTTP request, please pass async_req=True
1266
+ >>> thread = api.heappe_management_project_assignment_to_cluster_post_with_http_info(async_req=True)
1267
+ >>> result = thread.get()
1268
+
1269
+ :param async_req bool
1270
+ :param CreateProjectAssignmentToClusterModel body:
1271
+ :return: ClusterProject
1272
+ If the method is called asynchronously,
1273
+ returns the request thread.
1274
+ """
1275
+
1276
+ all_params = ['body'] # noqa: E501
1277
+ all_params.append('async_req')
1278
+ all_params.append('_return_http_data_only')
1279
+ all_params.append('_preload_content')
1280
+ all_params.append('_request_timeout')
1281
+
1282
+ params = locals()
1283
+ for key, val in six.iteritems(params['kwargs']):
1284
+ if key not in all_params:
1285
+ raise TypeError(
1286
+ "Got an unexpected keyword argument '%s'"
1287
+ " to method heappe_management_project_assignment_to_cluster_post" % key
1288
+ )
1289
+ params[key] = val
1290
+ del params['kwargs']
1291
+
1292
+ collection_formats = {}
1293
+
1294
+ path_params = {}
1295
+
1296
+ query_params = []
1297
+
1298
+ header_params = {}
1299
+
1300
+ form_params = []
1301
+ local_var_files = {}
1302
+
1303
+ body_params = None
1304
+ if 'body' in params:
1305
+ body_params = params['body']
1306
+ # HTTP header `Accept`
1307
+ header_params['Accept'] = self.api_client.select_header_accept(
1308
+ ['application/json']) # noqa: E501
1309
+
1310
+ # HTTP header `Content-Type`
1311
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1312
+ ['application/json', 'text/json', 'application/*+json']) # noqa: E501
1313
+
1314
+ # Authentication setting
1315
+ auth_settings = [] # noqa: E501
1316
+
1317
+ return self.api_client.call_api(
1318
+ '/heappe/Management/ProjectAssignmentToCluster', 'POST',
1319
+ path_params,
1320
+ query_params,
1321
+ header_params,
1322
+ body=body_params,
1323
+ post_params=form_params,
1324
+ files=local_var_files,
1325
+ response_type='ClusterProject', # noqa: E501
1326
+ auth_settings=auth_settings,
1327
+ async_req=params.get('async_req'),
1328
+ _return_http_data_only=params.get('_return_http_data_only'),
1329
+ _preload_content=params.get('_preload_content', True),
1330
+ _request_timeout=params.get('_request_timeout'),
1331
+ collection_formats=collection_formats)
1332
+
1333
+ def heappe_management_project_assignment_to_cluster_put(self, **kwargs): # noqa: E501
1334
+ """Modify project assignment to the cluster # noqa: E501
1335
+
1336
+ This method makes a synchronous HTTP request by default. To make an
1337
+ asynchronous HTTP request, please pass async_req=True
1338
+ >>> thread = api.heappe_management_project_assignment_to_cluster_put(async_req=True)
1339
+ >>> result = thread.get()
1340
+
1341
+ :param async_req bool
1342
+ :param ModifyProjectAssignmentToClusterModel body:
1343
+ :return: ClusterProject
1344
+ If the method is called asynchronously,
1345
+ returns the request thread.
1346
+ """
1347
+ kwargs['_return_http_data_only'] = True
1348
+ if kwargs.get('async_req'):
1349
+ return self.heappe_management_project_assignment_to_cluster_put_with_http_info(**kwargs) # noqa: E501
1350
+ else:
1351
+ (data) = self.heappe_management_project_assignment_to_cluster_put_with_http_info(**kwargs) # noqa: E501
1352
+ return data
1353
+
1354
+ def heappe_management_project_assignment_to_cluster_put_with_http_info(self, **kwargs): # noqa: E501
1355
+ """Modify project assignment to the cluster # noqa: E501
1356
+
1357
+ This method makes a synchronous HTTP request by default. To make an
1358
+ asynchronous HTTP request, please pass async_req=True
1359
+ >>> thread = api.heappe_management_project_assignment_to_cluster_put_with_http_info(async_req=True)
1360
+ >>> result = thread.get()
1361
+
1362
+ :param async_req bool
1363
+ :param ModifyProjectAssignmentToClusterModel body:
1364
+ :return: ClusterProject
1365
+ If the method is called asynchronously,
1366
+ returns the request thread.
1367
+ """
1368
+
1369
+ all_params = ['body'] # noqa: E501
1370
+ all_params.append('async_req')
1371
+ all_params.append('_return_http_data_only')
1372
+ all_params.append('_preload_content')
1373
+ all_params.append('_request_timeout')
1374
+
1375
+ params = locals()
1376
+ for key, val in six.iteritems(params['kwargs']):
1377
+ if key not in all_params:
1378
+ raise TypeError(
1379
+ "Got an unexpected keyword argument '%s'"
1380
+ " to method heappe_management_project_assignment_to_cluster_put" % key
1381
+ )
1382
+ params[key] = val
1383
+ del params['kwargs']
1384
+
1385
+ collection_formats = {}
1386
+
1387
+ path_params = {}
1388
+
1389
+ query_params = []
1390
+
1391
+ header_params = {}
1392
+
1393
+ form_params = []
1394
+ local_var_files = {}
1395
+
1396
+ body_params = None
1397
+ if 'body' in params:
1398
+ body_params = params['body']
1399
+ # HTTP header `Accept`
1400
+ header_params['Accept'] = self.api_client.select_header_accept(
1401
+ ['application/json']) # noqa: E501
1402
+
1403
+ # HTTP header `Content-Type`
1404
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1405
+ ['application/json', 'text/json', 'application/*+json']) # noqa: E501
1406
+
1407
+ # Authentication setting
1408
+ auth_settings = [] # noqa: E501
1409
+
1410
+ return self.api_client.call_api(
1411
+ '/heappe/Management/ProjectAssignmentToCluster', 'PUT',
1412
+ path_params,
1413
+ query_params,
1414
+ header_params,
1415
+ body=body_params,
1416
+ post_params=form_params,
1417
+ files=local_var_files,
1418
+ response_type='ClusterProject', # noqa: E501
1419
+ auth_settings=auth_settings,
1420
+ async_req=params.get('async_req'),
1421
+ _return_http_data_only=params.get('_return_http_data_only'),
1422
+ _preload_content=params.get('_preload_content', True),
1423
+ _request_timeout=params.get('_request_timeout'),
1424
+ collection_formats=collection_formats)
1425
+
1426
+ def heappe_management_project_delete(self, **kwargs): # noqa: E501
1427
+ """Remove project # noqa: E501
1428
+
1429
+ This method makes a synchronous HTTP request by default. To make an
1430
+ asynchronous HTTP request, please pass async_req=True
1431
+ >>> thread = api.heappe_management_project_delete(async_req=True)
1432
+ >>> result = thread.get()
1433
+
1434
+ :param async_req bool
1435
+ :param RemoveProjectModel body:
1436
+ :return: str
1437
+ If the method is called asynchronously,
1438
+ returns the request thread.
1439
+ """
1440
+ kwargs['_return_http_data_only'] = True
1441
+ if kwargs.get('async_req'):
1442
+ return self.heappe_management_project_delete_with_http_info(**kwargs) # noqa: E501
1443
+ else:
1444
+ (data) = self.heappe_management_project_delete_with_http_info(**kwargs) # noqa: E501
1445
+ return data
1446
+
1447
+ def heappe_management_project_delete_with_http_info(self, **kwargs): # noqa: E501
1448
+ """Remove project # noqa: E501
1449
+
1450
+ This method makes a synchronous HTTP request by default. To make an
1451
+ asynchronous HTTP request, please pass async_req=True
1452
+ >>> thread = api.heappe_management_project_delete_with_http_info(async_req=True)
1453
+ >>> result = thread.get()
1454
+
1455
+ :param async_req bool
1456
+ :param RemoveProjectModel body:
1457
+ :return: str
1458
+ If the method is called asynchronously,
1459
+ returns the request thread.
1460
+ """
1461
+
1462
+ all_params = ['body'] # noqa: E501
1463
+ all_params.append('async_req')
1464
+ all_params.append('_return_http_data_only')
1465
+ all_params.append('_preload_content')
1466
+ all_params.append('_request_timeout')
1467
+
1468
+ params = locals()
1469
+ for key, val in six.iteritems(params['kwargs']):
1470
+ if key not in all_params:
1471
+ raise TypeError(
1472
+ "Got an unexpected keyword argument '%s'"
1473
+ " to method heappe_management_project_delete" % key
1474
+ )
1475
+ params[key] = val
1476
+ del params['kwargs']
1477
+
1478
+ collection_formats = {}
1479
+
1480
+ path_params = {}
1481
+
1482
+ query_params = []
1483
+
1484
+ header_params = {}
1485
+
1486
+ form_params = []
1487
+ local_var_files = {}
1488
+
1489
+ body_params = None
1490
+ if 'body' in params:
1491
+ body_params = params['body']
1492
+ # HTTP header `Accept`
1493
+ header_params['Accept'] = self.api_client.select_header_accept(
1494
+ ['application/json']) # noqa: E501
1495
+
1496
+ # HTTP header `Content-Type`
1497
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1498
+ ['application/json', 'text/json', 'application/*+json']) # noqa: E501
1499
+
1500
+ # Authentication setting
1501
+ auth_settings = [] # noqa: E501
1502
+
1503
+ return self.api_client.call_api(
1504
+ '/heappe/Management/Project', 'DELETE',
1505
+ path_params,
1506
+ query_params,
1507
+ header_params,
1508
+ body=body_params,
1509
+ post_params=form_params,
1510
+ files=local_var_files,
1511
+ response_type='str', # noqa: E501
1512
+ auth_settings=auth_settings,
1513
+ async_req=params.get('async_req'),
1514
+ _return_http_data_only=params.get('_return_http_data_only'),
1515
+ _preload_content=params.get('_preload_content', True),
1516
+ _request_timeout=params.get('_request_timeout'),
1517
+ collection_formats=collection_formats)
1518
+
1519
+ def heappe_management_project_post(self, **kwargs): # noqa: E501
1520
+ """Create project # noqa: E501
1521
+
1522
+ This method makes a synchronous HTTP request by default. To make an
1523
+ asynchronous HTTP request, please pass async_req=True
1524
+ >>> thread = api.heappe_management_project_post(async_req=True)
1525
+ >>> result = thread.get()
1526
+
1527
+ :param async_req bool
1528
+ :param CreateProjectModel body:
1529
+ :return: ProjectExt
1530
+ If the method is called asynchronously,
1531
+ returns the request thread.
1532
+ """
1533
+ kwargs['_return_http_data_only'] = True
1534
+ if kwargs.get('async_req'):
1535
+ return self.heappe_management_project_post_with_http_info(**kwargs) # noqa: E501
1536
+ else:
1537
+ (data) = self.heappe_management_project_post_with_http_info(**kwargs) # noqa: E501
1538
+ return data
1539
+
1540
+ def heappe_management_project_post_with_http_info(self, **kwargs): # noqa: E501
1541
+ """Create project # noqa: E501
1542
+
1543
+ This method makes a synchronous HTTP request by default. To make an
1544
+ asynchronous HTTP request, please pass async_req=True
1545
+ >>> thread = api.heappe_management_project_post_with_http_info(async_req=True)
1546
+ >>> result = thread.get()
1547
+
1548
+ :param async_req bool
1549
+ :param CreateProjectModel body:
1550
+ :return: ProjectExt
1551
+ If the method is called asynchronously,
1552
+ returns the request thread.
1553
+ """
1554
+
1555
+ all_params = ['body'] # noqa: E501
1556
+ all_params.append('async_req')
1557
+ all_params.append('_return_http_data_only')
1558
+ all_params.append('_preload_content')
1559
+ all_params.append('_request_timeout')
1560
+
1561
+ params = locals()
1562
+ for key, val in six.iteritems(params['kwargs']):
1563
+ if key not in all_params:
1564
+ raise TypeError(
1565
+ "Got an unexpected keyword argument '%s'"
1566
+ " to method heappe_management_project_post" % key
1567
+ )
1568
+ params[key] = val
1569
+ del params['kwargs']
1570
+
1571
+ collection_formats = {}
1572
+
1573
+ path_params = {}
1574
+
1575
+ query_params = []
1576
+
1577
+ header_params = {}
1578
+
1579
+ form_params = []
1580
+ local_var_files = {}
1581
+
1582
+ body_params = None
1583
+ if 'body' in params:
1584
+ body_params = params['body']
1585
+ # HTTP header `Accept`
1586
+ header_params['Accept'] = self.api_client.select_header_accept(
1587
+ ['application/json']) # noqa: E501
1588
+
1589
+ # HTTP header `Content-Type`
1590
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1591
+ ['application/json', 'text/json', 'application/*+json']) # noqa: E501
1592
+
1593
+ # Authentication setting
1594
+ auth_settings = [] # noqa: E501
1595
+
1596
+ return self.api_client.call_api(
1597
+ '/heappe/Management/Project', 'POST',
1598
+ path_params,
1599
+ query_params,
1600
+ header_params,
1601
+ body=body_params,
1602
+ post_params=form_params,
1603
+ files=local_var_files,
1604
+ response_type='ProjectExt', # noqa: E501
1605
+ auth_settings=auth_settings,
1606
+ async_req=params.get('async_req'),
1607
+ _return_http_data_only=params.get('_return_http_data_only'),
1608
+ _preload_content=params.get('_preload_content', True),
1609
+ _request_timeout=params.get('_request_timeout'),
1610
+ collection_formats=collection_formats)
1611
+
1612
+ def heappe_management_project_put(self, **kwargs): # noqa: E501
1613
+ """Modify project # noqa: E501
1614
+
1615
+ This method makes a synchronous HTTP request by default. To make an
1616
+ asynchronous HTTP request, please pass async_req=True
1617
+ >>> thread = api.heappe_management_project_put(async_req=True)
1618
+ >>> result = thread.get()
1619
+
1620
+ :param async_req bool
1621
+ :param ModifyProjectModel body:
1622
+ :return: ProjectExt
1623
+ If the method is called asynchronously,
1624
+ returns the request thread.
1625
+ """
1626
+ kwargs['_return_http_data_only'] = True
1627
+ if kwargs.get('async_req'):
1628
+ return self.heappe_management_project_put_with_http_info(**kwargs) # noqa: E501
1629
+ else:
1630
+ (data) = self.heappe_management_project_put_with_http_info(**kwargs) # noqa: E501
1631
+ return data
1632
+
1633
+ def heappe_management_project_put_with_http_info(self, **kwargs): # noqa: E501
1634
+ """Modify project # noqa: E501
1635
+
1636
+ This method makes a synchronous HTTP request by default. To make an
1637
+ asynchronous HTTP request, please pass async_req=True
1638
+ >>> thread = api.heappe_management_project_put_with_http_info(async_req=True)
1639
+ >>> result = thread.get()
1640
+
1641
+ :param async_req bool
1642
+ :param ModifyProjectModel body:
1643
+ :return: ProjectExt
1644
+ If the method is called asynchronously,
1645
+ returns the request thread.
1646
+ """
1647
+
1648
+ all_params = ['body'] # noqa: E501
1649
+ all_params.append('async_req')
1650
+ all_params.append('_return_http_data_only')
1651
+ all_params.append('_preload_content')
1652
+ all_params.append('_request_timeout')
1653
+
1654
+ params = locals()
1655
+ for key, val in six.iteritems(params['kwargs']):
1656
+ if key not in all_params:
1657
+ raise TypeError(
1658
+ "Got an unexpected keyword argument '%s'"
1659
+ " to method heappe_management_project_put" % key
1660
+ )
1661
+ params[key] = val
1662
+ del params['kwargs']
1663
+
1664
+ collection_formats = {}
1665
+
1666
+ path_params = {}
1667
+
1668
+ query_params = []
1669
+
1670
+ header_params = {}
1671
+
1672
+ form_params = []
1673
+ local_var_files = {}
1674
+
1675
+ body_params = None
1676
+ if 'body' in params:
1677
+ body_params = params['body']
1678
+ # HTTP header `Accept`
1679
+ header_params['Accept'] = self.api_client.select_header_accept(
1680
+ ['application/json']) # noqa: E501
1681
+
1682
+ # HTTP header `Content-Type`
1683
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1684
+ ['application/json', 'text/json', 'application/*+json']) # noqa: E501
1685
+
1686
+ # Authentication setting
1687
+ auth_settings = [] # noqa: E501
1688
+
1689
+ return self.api_client.call_api(
1690
+ '/heappe/Management/Project', 'PUT',
1691
+ path_params,
1692
+ query_params,
1693
+ header_params,
1694
+ body=body_params,
1695
+ post_params=form_params,
1696
+ files=local_var_files,
1697
+ response_type='ProjectExt', # noqa: E501
1698
+ auth_settings=auth_settings,
1699
+ async_req=params.get('async_req'),
1700
+ _return_http_data_only=params.get('_return_http_data_only'),
1701
+ _preload_content=params.get('_preload_content', True),
1702
+ _request_timeout=params.get('_request_timeout'),
1703
+ collection_formats=collection_formats)
1704
+
1705
+ def heappe_management_regenerate_secure_shell_key_put(self, **kwargs): # noqa: E501
1706
+ """Regenerate SSH key # noqa: E501
1707
+
1708
+ This method makes a synchronous HTTP request by default. To make an
1709
+ asynchronous HTTP request, please pass async_req=True
1710
+ >>> thread = api.heappe_management_regenerate_secure_shell_key_put(async_req=True)
1711
+ >>> result = thread.get()
1712
+
1713
+ :param async_req bool
1714
+ :param RegenerateSecureShellKeyModel body:
1715
+ :return: PublicKeyExt
1716
+ If the method is called asynchronously,
1717
+ returns the request thread.
1718
+ """
1719
+ kwargs['_return_http_data_only'] = True
1720
+ if kwargs.get('async_req'):
1721
+ return self.heappe_management_regenerate_secure_shell_key_put_with_http_info(**kwargs) # noqa: E501
1722
+ else:
1723
+ (data) = self.heappe_management_regenerate_secure_shell_key_put_with_http_info(**kwargs) # noqa: E501
1724
+ return data
1725
+
1726
+ def heappe_management_regenerate_secure_shell_key_put_with_http_info(self, **kwargs): # noqa: E501
1727
+ """Regenerate SSH key # noqa: E501
1728
+
1729
+ This method makes a synchronous HTTP request by default. To make an
1730
+ asynchronous HTTP request, please pass async_req=True
1731
+ >>> thread = api.heappe_management_regenerate_secure_shell_key_put_with_http_info(async_req=True)
1732
+ >>> result = thread.get()
1733
+
1734
+ :param async_req bool
1735
+ :param RegenerateSecureShellKeyModel body:
1736
+ :return: PublicKeyExt
1737
+ If the method is called asynchronously,
1738
+ returns the request thread.
1739
+ """
1740
+
1741
+ all_params = ['body'] # noqa: E501
1742
+ all_params.append('async_req')
1743
+ all_params.append('_return_http_data_only')
1744
+ all_params.append('_preload_content')
1745
+ all_params.append('_request_timeout')
1746
+
1747
+ params = locals()
1748
+ for key, val in six.iteritems(params['kwargs']):
1749
+ if key not in all_params:
1750
+ raise TypeError(
1751
+ "Got an unexpected keyword argument '%s'"
1752
+ " to method heappe_management_regenerate_secure_shell_key_put" % key
1753
+ )
1754
+ params[key] = val
1755
+ del params['kwargs']
1756
+
1757
+ collection_formats = {}
1758
+
1759
+ path_params = {}
1760
+
1761
+ query_params = []
1762
+
1763
+ header_params = {}
1764
+
1765
+ form_params = []
1766
+ local_var_files = {}
1767
+
1768
+ body_params = None
1769
+ if 'body' in params:
1770
+ body_params = params['body']
1771
+ # HTTP header `Accept`
1772
+ header_params['Accept'] = self.api_client.select_header_accept(
1773
+ ['application/json']) # noqa: E501
1774
+
1775
+ # HTTP header `Content-Type`
1776
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1777
+ ['application/json', 'text/json', 'application/*+json']) # noqa: E501
1778
+
1779
+ # Authentication setting
1780
+ auth_settings = [] # noqa: E501
1781
+
1782
+ return self.api_client.call_api(
1783
+ '/heappe/Management/RegenerateSecureShellKey', 'PUT',
1784
+ path_params,
1785
+ query_params,
1786
+ header_params,
1787
+ body=body_params,
1788
+ post_params=form_params,
1789
+ files=local_var_files,
1790
+ response_type='PublicKeyExt', # noqa: E501
1791
+ auth_settings=auth_settings,
1792
+ async_req=params.get('async_req'),
1793
+ _return_http_data_only=params.get('_return_http_data_only'),
1794
+ _preload_content=params.get('_preload_content', True),
1795
+ _request_timeout=params.get('_request_timeout'),
1796
+ collection_formats=collection_formats)
1797
+
1798
+ def heappe_management_remove_command_template_delete(self, **kwargs): # noqa: E501
1799
+ """Remove Command Template # noqa: E501
1800
+
1801
+ This method makes a synchronous HTTP request by default. To make an
1802
+ asynchronous HTTP request, please pass async_req=True
1803
+ >>> thread = api.heappe_management_remove_command_template_delete(async_req=True)
1804
+ >>> result = thread.get()
1805
+
1806
+ :param async_req bool
1807
+ :param RemoveCommandTemplateModel body: RemoveCommandTemplateModel
1808
+ :return: str
1809
+ If the method is called asynchronously,
1810
+ returns the request thread.
1811
+ """
1812
+ kwargs['_return_http_data_only'] = True
1813
+ if kwargs.get('async_req'):
1814
+ return self.heappe_management_remove_command_template_delete_with_http_info(**kwargs) # noqa: E501
1815
+ else:
1816
+ (data) = self.heappe_management_remove_command_template_delete_with_http_info(**kwargs) # noqa: E501
1817
+ return data
1818
+
1819
+ def heappe_management_remove_command_template_delete_with_http_info(self, **kwargs): # noqa: E501
1820
+ """Remove Command Template # noqa: E501
1821
+
1822
+ This method makes a synchronous HTTP request by default. To make an
1823
+ asynchronous HTTP request, please pass async_req=True
1824
+ >>> thread = api.heappe_management_remove_command_template_delete_with_http_info(async_req=True)
1825
+ >>> result = thread.get()
1826
+
1827
+ :param async_req bool
1828
+ :param RemoveCommandTemplateModel body: RemoveCommandTemplateModel
1829
+ :return: str
1830
+ If the method is called asynchronously,
1831
+ returns the request thread.
1832
+ """
1833
+
1834
+ all_params = ['body'] # noqa: E501
1835
+ all_params.append('async_req')
1836
+ all_params.append('_return_http_data_only')
1837
+ all_params.append('_preload_content')
1838
+ all_params.append('_request_timeout')
1839
+
1840
+ params = locals()
1841
+ for key, val in six.iteritems(params['kwargs']):
1842
+ if key not in all_params:
1843
+ raise TypeError(
1844
+ "Got an unexpected keyword argument '%s'"
1845
+ " to method heappe_management_remove_command_template_delete" % key
1846
+ )
1847
+ params[key] = val
1848
+ del params['kwargs']
1849
+
1850
+ collection_formats = {}
1851
+
1852
+ path_params = {}
1853
+
1854
+ query_params = []
1855
+
1856
+ header_params = {}
1857
+
1858
+ form_params = []
1859
+ local_var_files = {}
1860
+
1861
+ body_params = None
1862
+ if 'body' in params:
1863
+ body_params = params['body']
1864
+ # HTTP header `Accept`
1865
+ header_params['Accept'] = self.api_client.select_header_accept(
1866
+ ['application/json']) # noqa: E501
1867
+
1868
+ # HTTP header `Content-Type`
1869
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1870
+ ['application/json', 'text/json', 'application/*+json']) # noqa: E501
1871
+
1872
+ # Authentication setting
1873
+ auth_settings = [] # noqa: E501
1874
+
1875
+ return self.api_client.call_api(
1876
+ '/heappe/Management/RemoveCommandTemplate', 'DELETE',
1877
+ path_params,
1878
+ query_params,
1879
+ header_params,
1880
+ body=body_params,
1881
+ post_params=form_params,
1882
+ files=local_var_files,
1883
+ response_type='str', # noqa: E501
1884
+ auth_settings=auth_settings,
1885
+ async_req=params.get('async_req'),
1886
+ _return_http_data_only=params.get('_return_http_data_only'),
1887
+ _preload_content=params.get('_preload_content', True),
1888
+ _request_timeout=params.get('_request_timeout'),
1889
+ collection_formats=collection_formats)
1890
+
1891
+ def heappe_management_remove_secure_shell_key_delete(self, **kwargs): # noqa: E501
1892
+ """Remove SSH key # noqa: E501
1893
+
1894
+ This method makes a synchronous HTTP request by default. To make an
1895
+ asynchronous HTTP request, please pass async_req=True
1896
+ >>> thread = api.heappe_management_remove_secure_shell_key_delete(async_req=True)
1897
+ >>> result = thread.get()
1898
+
1899
+ :param async_req bool
1900
+ :param RemoveSecureShellKeyModel body:
1901
+ :return: str
1902
+ If the method is called asynchronously,
1903
+ returns the request thread.
1904
+ """
1905
+ kwargs['_return_http_data_only'] = True
1906
+ if kwargs.get('async_req'):
1907
+ return self.heappe_management_remove_secure_shell_key_delete_with_http_info(**kwargs) # noqa: E501
1908
+ else:
1909
+ (data) = self.heappe_management_remove_secure_shell_key_delete_with_http_info(**kwargs) # noqa: E501
1910
+ return data
1911
+
1912
+ def heappe_management_remove_secure_shell_key_delete_with_http_info(self, **kwargs): # noqa: E501
1913
+ """Remove SSH key # noqa: E501
1914
+
1915
+ This method makes a synchronous HTTP request by default. To make an
1916
+ asynchronous HTTP request, please pass async_req=True
1917
+ >>> thread = api.heappe_management_remove_secure_shell_key_delete_with_http_info(async_req=True)
1918
+ >>> result = thread.get()
1919
+
1920
+ :param async_req bool
1921
+ :param RemoveSecureShellKeyModel body:
1922
+ :return: str
1923
+ If the method is called asynchronously,
1924
+ returns the request thread.
1925
+ """
1926
+
1927
+ all_params = ['body'] # noqa: E501
1928
+ all_params.append('async_req')
1929
+ all_params.append('_return_http_data_only')
1930
+ all_params.append('_preload_content')
1931
+ all_params.append('_request_timeout')
1932
+
1933
+ params = locals()
1934
+ for key, val in six.iteritems(params['kwargs']):
1935
+ if key not in all_params:
1936
+ raise TypeError(
1937
+ "Got an unexpected keyword argument '%s'"
1938
+ " to method heappe_management_remove_secure_shell_key_delete" % key
1939
+ )
1940
+ params[key] = val
1941
+ del params['kwargs']
1942
+
1943
+ collection_formats = {}
1944
+
1945
+ path_params = {}
1946
+
1947
+ query_params = []
1948
+
1949
+ header_params = {}
1950
+
1951
+ form_params = []
1952
+ local_var_files = {}
1953
+
1954
+ body_params = None
1955
+ if 'body' in params:
1956
+ body_params = params['body']
1957
+ # HTTP header `Accept`
1958
+ header_params['Accept'] = self.api_client.select_header_accept(
1959
+ ['application/json']) # noqa: E501
1960
+
1961
+ # HTTP header `Content-Type`
1962
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1963
+ ['application/json', 'text/json', 'application/*+json']) # noqa: E501
1964
+
1965
+ # Authentication setting
1966
+ auth_settings = [] # noqa: E501
1967
+
1968
+ return self.api_client.call_api(
1969
+ '/heappe/Management/RemoveSecureShellKey', 'DELETE',
1970
+ path_params,
1971
+ query_params,
1972
+ header_params,
1973
+ body=body_params,
1974
+ post_params=form_params,
1975
+ files=local_var_files,
1976
+ response_type='str', # noqa: E501
1977
+ auth_settings=auth_settings,
1978
+ async_req=params.get('async_req'),
1979
+ _return_http_data_only=params.get('_return_http_data_only'),
1980
+ _preload_content=params.get('_preload_content', True),
1981
+ _request_timeout=params.get('_request_timeout'),
1982
+ collection_formats=collection_formats)
1983
+
1984
+ def heappe_management_secure_shell_key_delete(self, **kwargs): # noqa: E501
1985
+ """Remove SSH key # noqa: E501
1986
+
1987
+ This method makes a synchronous HTTP request by default. To make an
1988
+ asynchronous HTTP request, please pass async_req=True
1989
+ >>> thread = api.heappe_management_secure_shell_key_delete(async_req=True)
1990
+ >>> result = thread.get()
1991
+
1992
+ :param async_req bool
1993
+ :param RemoveSecureShellKeyModelObsolete body:
1994
+ :return: str
1995
+ If the method is called asynchronously,
1996
+ returns the request thread.
1997
+ """
1998
+ kwargs['_return_http_data_only'] = True
1999
+ if kwargs.get('async_req'):
2000
+ return self.heappe_management_secure_shell_key_delete_with_http_info(**kwargs) # noqa: E501
2001
+ else:
2002
+ (data) = self.heappe_management_secure_shell_key_delete_with_http_info(**kwargs) # noqa: E501
2003
+ return data
2004
+
2005
+ def heappe_management_secure_shell_key_delete_with_http_info(self, **kwargs): # noqa: E501
2006
+ """Remove SSH key # noqa: E501
2007
+
2008
+ This method makes a synchronous HTTP request by default. To make an
2009
+ asynchronous HTTP request, please pass async_req=True
2010
+ >>> thread = api.heappe_management_secure_shell_key_delete_with_http_info(async_req=True)
2011
+ >>> result = thread.get()
2012
+
2013
+ :param async_req bool
2014
+ :param RemoveSecureShellKeyModelObsolete body:
2015
+ :return: str
2016
+ If the method is called asynchronously,
2017
+ returns the request thread.
2018
+ """
2019
+
2020
+ all_params = ['body'] # noqa: E501
2021
+ all_params.append('async_req')
2022
+ all_params.append('_return_http_data_only')
2023
+ all_params.append('_preload_content')
2024
+ all_params.append('_request_timeout')
2025
+
2026
+ params = locals()
2027
+ for key, val in six.iteritems(params['kwargs']):
2028
+ if key not in all_params:
2029
+ raise TypeError(
2030
+ "Got an unexpected keyword argument '%s'"
2031
+ " to method heappe_management_secure_shell_key_delete" % key
2032
+ )
2033
+ params[key] = val
2034
+ del params['kwargs']
2035
+
2036
+ collection_formats = {}
2037
+
2038
+ path_params = {}
2039
+
2040
+ query_params = []
2041
+
2042
+ header_params = {}
2043
+
2044
+ form_params = []
2045
+ local_var_files = {}
2046
+
2047
+ body_params = None
2048
+ if 'body' in params:
2049
+ body_params = params['body']
2050
+ # HTTP header `Accept`
2051
+ header_params['Accept'] = self.api_client.select_header_accept(
2052
+ ['application/json']) # noqa: E501
2053
+
2054
+ # HTTP header `Content-Type`
2055
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2056
+ ['application/json', 'text/json', 'application/*+json']) # noqa: E501
2057
+
2058
+ # Authentication setting
2059
+ auth_settings = [] # noqa: E501
2060
+
2061
+ return self.api_client.call_api(
2062
+ '/heappe/Management/SecureShellKey', 'DELETE',
2063
+ path_params,
2064
+ query_params,
2065
+ header_params,
2066
+ body=body_params,
2067
+ post_params=form_params,
2068
+ files=local_var_files,
2069
+ response_type='str', # noqa: E501
2070
+ auth_settings=auth_settings,
2071
+ async_req=params.get('async_req'),
2072
+ _return_http_data_only=params.get('_return_http_data_only'),
2073
+ _preload_content=params.get('_preload_content', True),
2074
+ _request_timeout=params.get('_request_timeout'),
2075
+ collection_formats=collection_formats)
2076
+
2077
+ def heappe_management_secure_shell_key_post(self, **kwargs): # noqa: E501
2078
+ """Generate SSH key # noqa: E501
2079
+
2080
+ This method makes a synchronous HTTP request by default. To make an
2081
+ asynchronous HTTP request, please pass async_req=True
2082
+ >>> thread = api.heappe_management_secure_shell_key_post(async_req=True)
2083
+ >>> result = thread.get()
2084
+
2085
+ :param async_req bool
2086
+ :param CreateSecureShellKeyModelObsolete body:
2087
+ :return: list[PublicKeyExt]
2088
+ If the method is called asynchronously,
2089
+ returns the request thread.
2090
+ """
2091
+ kwargs['_return_http_data_only'] = True
2092
+ if kwargs.get('async_req'):
2093
+ return self.heappe_management_secure_shell_key_post_with_http_info(**kwargs) # noqa: E501
2094
+ else:
2095
+ (data) = self.heappe_management_secure_shell_key_post_with_http_info(**kwargs) # noqa: E501
2096
+ return data
2097
+
2098
+ def heappe_management_secure_shell_key_post_with_http_info(self, **kwargs): # noqa: E501
2099
+ """Generate SSH key # noqa: E501
2100
+
2101
+ This method makes a synchronous HTTP request by default. To make an
2102
+ asynchronous HTTP request, please pass async_req=True
2103
+ >>> thread = api.heappe_management_secure_shell_key_post_with_http_info(async_req=True)
2104
+ >>> result = thread.get()
2105
+
2106
+ :param async_req bool
2107
+ :param CreateSecureShellKeyModelObsolete body:
2108
+ :return: list[PublicKeyExt]
2109
+ If the method is called asynchronously,
2110
+ returns the request thread.
2111
+ """
2112
+
2113
+ all_params = ['body'] # noqa: E501
2114
+ all_params.append('async_req')
2115
+ all_params.append('_return_http_data_only')
2116
+ all_params.append('_preload_content')
2117
+ all_params.append('_request_timeout')
2118
+
2119
+ params = locals()
2120
+ for key, val in six.iteritems(params['kwargs']):
2121
+ if key not in all_params:
2122
+ raise TypeError(
2123
+ "Got an unexpected keyword argument '%s'"
2124
+ " to method heappe_management_secure_shell_key_post" % key
2125
+ )
2126
+ params[key] = val
2127
+ del params['kwargs']
2128
+
2129
+ collection_formats = {}
2130
+
2131
+ path_params = {}
2132
+
2133
+ query_params = []
2134
+
2135
+ header_params = {}
2136
+
2137
+ form_params = []
2138
+ local_var_files = {}
2139
+
2140
+ body_params = None
2141
+ if 'body' in params:
2142
+ body_params = params['body']
2143
+ # HTTP header `Accept`
2144
+ header_params['Accept'] = self.api_client.select_header_accept(
2145
+ ['application/json']) # noqa: E501
2146
+
2147
+ # HTTP header `Content-Type`
2148
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2149
+ ['application/json', 'text/json', 'application/*+json']) # noqa: E501
2150
+
2151
+ # Authentication setting
2152
+ auth_settings = [] # noqa: E501
2153
+
2154
+ return self.api_client.call_api(
2155
+ '/heappe/Management/SecureShellKey', 'POST',
2156
+ path_params,
2157
+ query_params,
2158
+ header_params,
2159
+ body=body_params,
2160
+ post_params=form_params,
2161
+ files=local_var_files,
2162
+ response_type='list[PublicKeyExt]', # noqa: E501
2163
+ auth_settings=auth_settings,
2164
+ async_req=params.get('async_req'),
2165
+ _return_http_data_only=params.get('_return_http_data_only'),
2166
+ _preload_content=params.get('_preload_content', True),
2167
+ _request_timeout=params.get('_request_timeout'),
2168
+ collection_formats=collection_formats)
2169
+
2170
+ def heappe_management_secure_shell_key_put(self, **kwargs): # noqa: E501
2171
+ """Regenerate SSH key # noqa: E501
2172
+
2173
+ This method makes a synchronous HTTP request by default. To make an
2174
+ asynchronous HTTP request, please pass async_req=True
2175
+ >>> thread = api.heappe_management_secure_shell_key_put(async_req=True)
2176
+ >>> result = thread.get()
2177
+
2178
+ :param async_req bool
2179
+ :param RegenerateSecureShellKeyModelObsolete body:
2180
+ :return: PublicKeyExt
2181
+ If the method is called asynchronously,
2182
+ returns the request thread.
2183
+ """
2184
+ kwargs['_return_http_data_only'] = True
2185
+ if kwargs.get('async_req'):
2186
+ return self.heappe_management_secure_shell_key_put_with_http_info(**kwargs) # noqa: E501
2187
+ else:
2188
+ (data) = self.heappe_management_secure_shell_key_put_with_http_info(**kwargs) # noqa: E501
2189
+ return data
2190
+
2191
+ def heappe_management_secure_shell_key_put_with_http_info(self, **kwargs): # noqa: E501
2192
+ """Regenerate SSH key # noqa: E501
2193
+
2194
+ This method makes a synchronous HTTP request by default. To make an
2195
+ asynchronous HTTP request, please pass async_req=True
2196
+ >>> thread = api.heappe_management_secure_shell_key_put_with_http_info(async_req=True)
2197
+ >>> result = thread.get()
2198
+
2199
+ :param async_req bool
2200
+ :param RegenerateSecureShellKeyModelObsolete body:
2201
+ :return: PublicKeyExt
2202
+ If the method is called asynchronously,
2203
+ returns the request thread.
2204
+ """
2205
+
2206
+ all_params = ['body'] # noqa: E501
2207
+ all_params.append('async_req')
2208
+ all_params.append('_return_http_data_only')
2209
+ all_params.append('_preload_content')
2210
+ all_params.append('_request_timeout')
2211
+
2212
+ params = locals()
2213
+ for key, val in six.iteritems(params['kwargs']):
2214
+ if key not in all_params:
2215
+ raise TypeError(
2216
+ "Got an unexpected keyword argument '%s'"
2217
+ " to method heappe_management_secure_shell_key_put" % key
2218
+ )
2219
+ params[key] = val
2220
+ del params['kwargs']
2221
+
2222
+ collection_formats = {}
2223
+
2224
+ path_params = {}
2225
+
2226
+ query_params = []
2227
+
2228
+ header_params = {}
2229
+
2230
+ form_params = []
2231
+ local_var_files = {}
2232
+
2233
+ body_params = None
2234
+ if 'body' in params:
2235
+ body_params = params['body']
2236
+ # HTTP header `Accept`
2237
+ header_params['Accept'] = self.api_client.select_header_accept(
2238
+ ['application/json']) # noqa: E501
2239
+
2240
+ # HTTP header `Content-Type`
2241
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2242
+ ['application/json', 'text/json', 'application/*+json']) # noqa: E501
2243
+
2244
+ # Authentication setting
2245
+ auth_settings = [] # noqa: E501
2246
+
2247
+ return self.api_client.call_api(
2248
+ '/heappe/Management/SecureShellKey', 'PUT',
2249
+ path_params,
2250
+ query_params,
2251
+ header_params,
2252
+ body=body_params,
2253
+ post_params=form_params,
2254
+ files=local_var_files,
2255
+ response_type='PublicKeyExt', # noqa: E501
2256
+ auth_settings=auth_settings,
2257
+ async_req=params.get('async_req'),
2258
+ _return_http_data_only=params.get('_return_http_data_only'),
2259
+ _preload_content=params.get('_preload_content', True),
2260
+ _request_timeout=params.get('_request_timeout'),
2261
+ collection_formats=collection_formats)
2262
+
2263
+ def heappe_management_test_cluster_access_for_account_get(self, **kwargs): # noqa: E501
2264
+ """Test cluster access for robot account # noqa: E501
2265
+
2266
+ This method makes a synchronous HTTP request by default. To make an
2267
+ asynchronous HTTP request, please pass async_req=True
2268
+ >>> thread = api.heappe_management_test_cluster_access_for_account_get(async_req=True)
2269
+ >>> result = thread.get()
2270
+
2271
+ :param async_req bool
2272
+ :param str username:
2273
+ :param int project_id:
2274
+ :param str session_code:
2275
+ :return: str
2276
+ If the method is called asynchronously,
2277
+ returns the request thread.
2278
+ """
2279
+ kwargs['_return_http_data_only'] = True
2280
+ if kwargs.get('async_req'):
2281
+ return self.heappe_management_test_cluster_access_for_account_get_with_http_info(**kwargs) # noqa: E501
2282
+ else:
2283
+ (data) = self.heappe_management_test_cluster_access_for_account_get_with_http_info(**kwargs) # noqa: E501
2284
+ return data
2285
+
2286
+ def heappe_management_test_cluster_access_for_account_get_with_http_info(self, **kwargs): # noqa: E501
2287
+ """Test cluster access for robot account # noqa: E501
2288
+
2289
+ This method makes a synchronous HTTP request by default. To make an
2290
+ asynchronous HTTP request, please pass async_req=True
2291
+ >>> thread = api.heappe_management_test_cluster_access_for_account_get_with_http_info(async_req=True)
2292
+ >>> result = thread.get()
2293
+
2294
+ :param async_req bool
2295
+ :param str Username:
2296
+ :param int ProjectId:
2297
+ :param str SessionCode:
2298
+ :return: str
2299
+ If the method is called asynchronously,
2300
+ returns the request thread.
2301
+ """
2302
+
2303
+ all_params = ['Username', 'ProjectId', 'SessionCode'] # noqa: E501
2304
+ all_params.append('async_req')
2305
+ all_params.append('_return_http_data_only')
2306
+ all_params.append('_preload_content')
2307
+ all_params.append('_request_timeout')
2308
+
2309
+ params = locals()
2310
+ for key, val in six.iteritems(params['kwargs']):
2311
+ if key not in all_params:
2312
+ raise TypeError(
2313
+ "Got an unexpected keyword argument '%s'"
2314
+ " to method heappe_management_test_cluster_access_for_account_get" % key
2315
+ )
2316
+ params[key] = val
2317
+ del params['kwargs']
2318
+
2319
+ collection_formats = {}
2320
+
2321
+ path_params = {}
2322
+
2323
+ query_params = []
2324
+ if 'Username' in params:
2325
+ query_params.append(('Username', params['Username'])) # noqa: E501
2326
+ if 'ProjectId' in params:
2327
+ query_params.append(('ProjectId', params['ProjectId'])) # noqa: E501
2328
+ if 'SessionCode' in params:
2329
+ query_params.append(('SessionCode', params['SessionCode'])) # noqa: E501
2330
+
2331
+ header_params = {}
2332
+
2333
+ form_params = []
2334
+ local_var_files = {}
2335
+
2336
+ body_params = None
2337
+ # HTTP header `Accept`
2338
+ header_params['Accept'] = self.api_client.select_header_accept(
2339
+ ['application/json']) # noqa: E501
2340
+
2341
+ # Authentication setting
2342
+ auth_settings = [] # noqa: E501
2343
+
2344
+ return self.api_client.call_api(
2345
+ '/heappe/Management/TestClusterAccessForAccount', 'GET',
2346
+ path_params,
2347
+ query_params,
2348
+ header_params,
2349
+ body=body_params,
2350
+ post_params=form_params,
2351
+ files=local_var_files,
2352
+ response_type='str', # noqa: E501
2353
+ auth_settings=auth_settings,
2354
+ async_req=params.get('async_req'),
2355
+ _return_http_data_only=params.get('_return_http_data_only'),
2356
+ _preload_content=params.get('_preload_content', True),
2357
+ _request_timeout=params.get('_request_timeout'),
2358
+ collection_formats=collection_formats)
2359
+
2360
+ def heappe_management_test_cluster_access_for_account_post(self, **kwargs): # noqa: E501
2361
+ """Test cluster access for robot account # noqa: E501
2362
+
2363
+ This method makes a synchronous HTTP request by default. To make an
2364
+ asynchronous HTTP request, please pass async_req=True
2365
+ >>> thread = api.heappe_management_test_cluster_access_for_account_post(async_req=True)
2366
+ >>> result = thread.get()
2367
+
2368
+ :param async_req bool
2369
+ :param TestClusterAccessForAccountModelObsolete body:
2370
+ :return: str
2371
+ If the method is called asynchronously,
2372
+ returns the request thread.
2373
+ """
2374
+ kwargs['_return_http_data_only'] = True
2375
+ if kwargs.get('async_req'):
2376
+ return self.heappe_management_test_cluster_access_for_account_post_with_http_info(**kwargs) # noqa: E501
2377
+ else:
2378
+ (data) = self.heappe_management_test_cluster_access_for_account_post_with_http_info(**kwargs) # noqa: E501
2379
+ return data
2380
+
2381
+ def heappe_management_test_cluster_access_for_account_post_with_http_info(self, **kwargs): # noqa: E501
2382
+ """Test cluster access for robot account # noqa: E501
2383
+
2384
+ This method makes a synchronous HTTP request by default. To make an
2385
+ asynchronous HTTP request, please pass async_req=True
2386
+ >>> thread = api.heappe_management_test_cluster_access_for_account_post_with_http_info(async_req=True)
2387
+ >>> result = thread.get()
2388
+
2389
+ :param async_req bool
2390
+ :param TestClusterAccessForAccountModelObsolete body:
2391
+ :return: str
2392
+ If the method is called asynchronously,
2393
+ returns the request thread.
2394
+ """
2395
+
2396
+ all_params = ['body'] # noqa: E501
2397
+ all_params.append('async_req')
2398
+ all_params.append('_return_http_data_only')
2399
+ all_params.append('_preload_content')
2400
+ all_params.append('_request_timeout')
2401
+
2402
+ params = locals()
2403
+ for key, val in six.iteritems(params['kwargs']):
2404
+ if key not in all_params:
2405
+ raise TypeError(
2406
+ "Got an unexpected keyword argument '%s'"
2407
+ " to method heappe_management_test_cluster_access_for_account_post" % key
2408
+ )
2409
+ params[key] = val
2410
+ del params['kwargs']
2411
+
2412
+ collection_formats = {}
2413
+
2414
+ path_params = {}
2415
+
2416
+ query_params = []
2417
+
2418
+ header_params = {}
2419
+
2420
+ form_params = []
2421
+ local_var_files = {}
2422
+
2423
+ body_params = None
2424
+ if 'body' in params:
2425
+ body_params = params['body']
2426
+ # HTTP header `Accept`
2427
+ header_params['Accept'] = self.api_client.select_header_accept(
2428
+ ['application/json']) # noqa: E501
2429
+
2430
+ # HTTP header `Content-Type`
2431
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2432
+ ['application/json', 'text/json', 'application/*+json']) # noqa: E501
2433
+
2434
+ # Authentication setting
2435
+ auth_settings = [] # noqa: E501
2436
+
2437
+ return self.api_client.call_api(
2438
+ '/heappe/Management/TestClusterAccessForAccount', 'POST',
2439
+ path_params,
2440
+ query_params,
2441
+ header_params,
2442
+ body=body_params,
2443
+ post_params=form_params,
2444
+ files=local_var_files,
2445
+ response_type='str', # noqa: E501
2446
+ auth_settings=auth_settings,
2447
+ async_req=params.get('async_req'),
2448
+ _return_http_data_only=params.get('_return_http_data_only'),
2449
+ _preload_content=params.get('_preload_content', True),
2450
+ _request_timeout=params.get('_request_timeout'),
2451
+ collection_formats=collection_formats)
2452
+
2453
+ def heappe_management_version_information_get(self, **kwargs): # noqa: E501
2454
+ """Get HEAppE Version Information # noqa: E501
2455
+
2456
+ This method makes a synchronous HTTP request by default. To make an
2457
+ asynchronous HTTP request, please pass async_req=True
2458
+ >>> thread = api.heappe_management_version_information_get(async_req=True)
2459
+ >>> result = thread.get()
2460
+
2461
+ :param async_req bool
2462
+ :param str session_code: SessionCode
2463
+ :return: VersionInformationExt
2464
+ If the method is called asynchronously,
2465
+ returns the request thread.
2466
+ """
2467
+ kwargs['_return_http_data_only'] = True
2468
+ if kwargs.get('async_req'):
2469
+ return self.heappe_management_version_information_get_with_http_info(**kwargs) # noqa: E501
2470
+ else:
2471
+ (data) = self.heappe_management_version_information_get_with_http_info(**kwargs) # noqa: E501
2472
+ return data
2473
+
2474
+ def heappe_management_version_information_get_with_http_info(self, **kwargs): # noqa: E501
2475
+ """Get HEAppE Version Information # noqa: E501
2476
+
2477
+ This method makes a synchronous HTTP request by default. To make an
2478
+ asynchronous HTTP request, please pass async_req=True
2479
+ >>> thread = api.heappe_management_version_information_get_with_http_info(async_req=True)
2480
+ >>> result = thread.get()
2481
+
2482
+ :param async_req bool
2483
+ :param str SessionCode: SessionCode
2484
+ :return: VersionInformationExt
2485
+ If the method is called asynchronously,
2486
+ returns the request thread.
2487
+ """
2488
+
2489
+ all_params = ['SessionCode'] # noqa: E501
2490
+ all_params.append('async_req')
2491
+ all_params.append('_return_http_data_only')
2492
+ all_params.append('_preload_content')
2493
+ all_params.append('_request_timeout')
2494
+
2495
+ params = locals()
2496
+ for key, val in six.iteritems(params['kwargs']):
2497
+ if key not in all_params:
2498
+ raise TypeError(
2499
+ "Got an unexpected keyword argument '%s'"
2500
+ " to method heappe_management_version_information_get" % key
2501
+ )
2502
+ params[key] = val
2503
+ del params['kwargs']
2504
+
2505
+ collection_formats = {}
2506
+
2507
+ path_params = {}
2508
+
2509
+ query_params = []
2510
+ if 'SessionCode' in params:
2511
+ query_params.append(('SessionCode', params['SessionCode'])) # noqa: E501
2512
+
2513
+ header_params = {}
2514
+
2515
+ form_params = []
2516
+ local_var_files = {}
2517
+
2518
+ body_params = None
2519
+ # HTTP header `Accept`
2520
+ header_params['Accept'] = self.api_client.select_header_accept(
2521
+ ['application/json']) # noqa: E501
2522
+
2523
+ # Authentication setting
2524
+ auth_settings = [] # noqa: E501
2525
+
2526
+ return self.api_client.call_api(
2527
+ '/heappe/Management/VersionInformation', 'GET',
2528
+ path_params,
2529
+ query_params,
2530
+ header_params,
2531
+ body=body_params,
2532
+ post_params=form_params,
2533
+ files=local_var_files,
2534
+ response_type='VersionInformationExt', # noqa: E501
2535
+ auth_settings=auth_settings,
2536
+ async_req=params.get('async_req'),
2537
+ _return_http_data_only=params.get('_return_http_data_only'),
2538
+ _preload_content=params.get('_preload_content', True),
2539
+ _request_timeout=params.get('_request_timeout'),
2540
+ collection_formats=collection_formats)