Py4HEAppE 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- __init__.py +1 -0
- py4heappe/__init__.py +1 -0
- py4heappe/cli/__init__.py +1 -0
- py4heappe/cli/auth.py +153 -0
- py4heappe/cli/command_template.py +370 -0
- py4heappe/cli/configuration.py +65 -0
- py4heappe/cli/information.py +163 -0
- py4heappe/cli/job_management.py +211 -0
- py4heappe/cli/report.py +173 -0
- py4heappe/core/__init__.py +167 -0
- py4heappe/core/api/__init__.py +12 -0
- py4heappe/core/api/cluster_information_api.py +308 -0
- py4heappe/core/api/data_transfer_api.py +405 -0
- py4heappe/core/api/file_transfer_api.py +498 -0
- py4heappe/core/api/job_management_api.py +866 -0
- py4heappe/core/api/job_reporting_api.py +692 -0
- py4heappe/core/api/management_api.py +2540 -0
- py4heappe/core/api/user_and_limitation_management_api.py +676 -0
- py4heappe/core/api_client.py +632 -0
- py4heappe/core/base/__init__.py +1 -0
- py4heappe/core/base/exceptions.py +41 -0
- py4heappe/core/base/logger.py +11 -0
- py4heappe/core/base/utils.py +43 -0
- py4heappe/core/configuration.py +247 -0
- py4heappe/core/models/__init__.py +155 -0
- py4heappe/core/models/adaptor_user.py +398 -0
- py4heappe/core/models/adaptor_user_group.py +268 -0
- py4heappe/core/models/adaptor_user_role.py +242 -0
- py4heappe/core/models/adaptor_user_role_ext.py +138 -0
- py4heappe/core/models/adaptor_user_role_type.py +95 -0
- py4heappe/core/models/adaptor_user_type.py +91 -0
- py4heappe/core/models/adaptor_user_user_group_role.py +320 -0
- py4heappe/core/models/allocated_nodes_ips_model.py +136 -0
- py4heappe/core/models/authenticate_lexis_token_model.py +110 -0
- py4heappe/core/models/authenticate_user_digital_signature_model.py +110 -0
- py4heappe/core/models/authenticate_user_open_id_model.py +110 -0
- py4heappe/core/models/authenticate_user_open_id_open_stack_model.py +136 -0
- py4heappe/core/models/authenticate_user_password_model.py +110 -0
- py4heappe/core/models/authentication_credentials.py +110 -0
- py4heappe/core/models/bad_request_result.py +110 -0
- py4heappe/core/models/cancel_job_model.py +136 -0
- py4heappe/core/models/cluster.py +478 -0
- py4heappe/core/models/cluster_authentication_credentials.py +375 -0
- py4heappe/core/models/cluster_authentication_credentials_auth_type.py +97 -0
- py4heappe/core/models/cluster_connection_protocol.py +91 -0
- py4heappe/core/models/cluster_detailed_report_ext.py +214 -0
- py4heappe/core/models/cluster_ext.py +188 -0
- py4heappe/core/models/cluster_init_report_ext.py +136 -0
- py4heappe/core/models/cluster_node_type.py +528 -0
- py4heappe/core/models/cluster_node_type_detailed_report_ext.py +240 -0
- py4heappe/core/models/cluster_node_type_ext.py +292 -0
- py4heappe/core/models/cluster_node_type_for_task_ext.py +188 -0
- py4heappe/core/models/cluster_node_type_report_ext.py +214 -0
- py4heappe/core/models/cluster_node_type_requested_group.py +136 -0
- py4heappe/core/models/cluster_node_type_resource_usage_ext.py +292 -0
- py4heappe/core/models/cluster_node_usage_ext.py +318 -0
- py4heappe/core/models/cluster_project.py +347 -0
- py4heappe/core/models/cluster_project_credential.py +294 -0
- py4heappe/core/models/cluster_proxy_connection.py +243 -0
- py4heappe/core/models/cluster_proxy_connection_ext.py +214 -0
- py4heappe/core/models/cluster_report_ext.py +215 -0
- py4heappe/core/models/command_template.py +557 -0
- py4heappe/core/models/command_template_ext.py +240 -0
- py4heappe/core/models/command_template_parameter.py +347 -0
- py4heappe/core/models/command_template_parameter_ext.py +136 -0
- py4heappe/core/models/command_template_parameter_value_ext.py +136 -0
- py4heappe/core/models/contact.py +269 -0
- py4heappe/core/models/copy_job_data_from_temp_model.py +162 -0
- py4heappe/core/models/copy_job_data_to_temp_model.py +162 -0
- py4heappe/core/models/create_command_inner_template_parameter_model.py +162 -0
- py4heappe/core/models/create_command_template_from_generic_model.py +292 -0
- py4heappe/core/models/create_command_template_model.py +318 -0
- py4heappe/core/models/create_command_template_parameter_model.py +214 -0
- py4heappe/core/models/create_job_by_project_model.py +136 -0
- py4heappe/core/models/create_project_assignment_to_cluster_model.py +188 -0
- py4heappe/core/models/create_project_model.py +318 -0
- py4heappe/core/models/create_secure_shell_key_model.py +162 -0
- py4heappe/core/models/create_secure_shell_key_model_obsolete.py +188 -0
- py4heappe/core/models/current_cluster_node_usage_model.py +136 -0
- py4heappe/core/models/current_info_for_job_model.py +136 -0
- py4heappe/core/models/data_transfer_method_ext.py +188 -0
- py4heappe/core/models/delete_job_model.py +136 -0
- py4heappe/core/models/deployment_type_ext.py +91 -0
- py4heappe/core/models/digital_signature_credentials_ext.py +162 -0
- py4heappe/core/models/download_file_from_cluster_model.py +162 -0
- py4heappe/core/models/download_parts_of_job_files_from_cluster_model.py +162 -0
- py4heappe/core/models/end_data_transfer_model.py +136 -0
- py4heappe/core/models/end_file_transfer_model.py +162 -0
- py4heappe/core/models/environment_variable_ext.py +136 -0
- py4heappe/core/models/extended_command_template_ext.py +370 -0
- py4heappe/core/models/extended_command_template_parameter_ext.py +188 -0
- py4heappe/core/models/extended_project_info_ext.py +318 -0
- py4heappe/core/models/file_information_ext.py +136 -0
- py4heappe/core/models/file_transfer_cipher_type.py +94 -0
- py4heappe/core/models/file_transfer_cipher_type_ext.py +93 -0
- py4heappe/core/models/file_transfer_key_credentials_ext.py +240 -0
- py4heappe/core/models/file_transfer_method.py +294 -0
- py4heappe/core/models/file_transfer_method_ext.py +240 -0
- py4heappe/core/models/file_transfer_protocol.py +91 -0
- py4heappe/core/models/file_transfer_protocol_ext.py +91 -0
- py4heappe/core/models/get_command_template_parameters_name_model.py +188 -0
- py4heappe/core/models/get_current_usage_and_limitations_for_current_user_model.py +110 -0
- py4heappe/core/models/get_data_transfer_method_model.py +188 -0
- py4heappe/core/models/get_file_transfer_method_model.py +136 -0
- py4heappe/core/models/http_get_to_job_node_model.py +241 -0
- py4heappe/core/models/http_header_ext.py +136 -0
- py4heappe/core/models/http_post_to_job_node_model.py +267 -0
- py4heappe/core/models/initialize_cluster_script_directory_model.py +162 -0
- py4heappe/core/models/instance_information_ext.py +344 -0
- py4heappe/core/models/job_detailed_report_ext.py +318 -0
- py4heappe/core/models/job_file_content_ext.py +214 -0
- py4heappe/core/models/job_report_ext.py +188 -0
- py4heappe/core/models/job_specification_by_project_ext.py +448 -0
- py4heappe/core/models/job_specification_ext.py +448 -0
- py4heappe/core/models/job_state_aggregation_report_ext.py +162 -0
- py4heappe/core/models/job_state_ext.py +96 -0
- py4heappe/core/models/lexis_credentials_ext.py +137 -0
- py4heappe/core/models/list_changed_files_for_job_model.py +136 -0
- py4heappe/core/models/list_jobs_for_current_user_model.py +110 -0
- py4heappe/core/models/modify_command_template_from_generic_model.py +292 -0
- py4heappe/core/models/modify_command_template_model.py +292 -0
- py4heappe/core/models/modify_command_template_parameter_model.py +214 -0
- py4heappe/core/models/modify_project_assignment_to_cluster_model.py +188 -0
- py4heappe/core/models/modify_project_model.py +292 -0
- py4heappe/core/models/node_used_cores_and_limitation_ext.py +110 -0
- py4heappe/core/models/open_id_credentials_ext.py +137 -0
- py4heappe/core/models/open_stack_application_credentials_ext.py +136 -0
- py4heappe/core/models/password_credentials_ext.py +136 -0
- py4heappe/core/models/problem_details.py +89 -0
- py4heappe/core/models/project.py +482 -0
- py4heappe/core/models/project_contact.py +215 -0
- py4heappe/core/models/project_detailed_report_ext.py +292 -0
- py4heappe/core/models/project_ext.py +266 -0
- py4heappe/core/models/project_for_task_ext.py +214 -0
- py4heappe/core/models/project_list_report_ext.py +214 -0
- py4heappe/core/models/project_reference_ext.py +137 -0
- py4heappe/core/models/project_report_ext.py +240 -0
- py4heappe/core/models/project_resource_usage_ext.py +266 -0
- py4heappe/core/models/proxy_type.py +91 -0
- py4heappe/core/models/proxy_type_ext.py +91 -0
- py4heappe/core/models/public_key_ext.py +188 -0
- py4heappe/core/models/recreate_secure_shell_key_model.py +214 -0
- py4heappe/core/models/regenerate_secure_shell_key_model.py +188 -0
- py4heappe/core/models/regenerate_secure_shell_key_model_obsolete.py +188 -0
- py4heappe/core/models/remove_command_template_model.py +136 -0
- py4heappe/core/models/remove_command_template_parameter_model.py +136 -0
- py4heappe/core/models/remove_project_assignment_to_cluster_model.py +162 -0
- py4heappe/core/models/remove_project_model.py +136 -0
- py4heappe/core/models/remove_secure_shell_key_model.py +162 -0
- py4heappe/core/models/remove_secure_shell_key_model_obsolete.py +162 -0
- py4heappe/core/models/resource_allocation_type_ext.py +91 -0
- py4heappe/core/models/resource_limitation_ext.py +136 -0
- py4heappe/core/models/resource_usage_ext.py +163 -0
- py4heappe/core/models/scheduler_type.py +92 -0
- py4heappe/core/models/ssh_key_user_credentials_model.py +136 -0
- py4heappe/core/models/submit_job_model.py +136 -0
- py4heappe/core/models/submitted_job_info_ext.py +318 -0
- py4heappe/core/models/submitted_task_info_ext.py +370 -0
- py4heappe/core/models/synchronizable_files_ext.py +92 -0
- py4heappe/core/models/task_detailed_report_ext.py +318 -0
- py4heappe/core/models/task_file_offset_ext.py +162 -0
- py4heappe/core/models/task_paralization_parameter_ext.py +162 -0
- py4heappe/core/models/task_priority_ext.py +97 -0
- py4heappe/core/models/task_report_ext.py +266 -0
- py4heappe/core/models/task_specification_ext.py +682 -0
- py4heappe/core/models/task_state_ext.py +95 -0
- py4heappe/core/models/test_cluster_access_for_account_model.py +162 -0
- py4heappe/core/models/test_cluster_access_for_account_model_obsolete.py +162 -0
- py4heappe/core/models/unauthorized_result.py +110 -0
- py4heappe/core/models/usage_type.py +90 -0
- py4heappe/core/models/usage_type_ext.py +90 -0
- py4heappe/core/models/user_group_detailed_report_ext.py +240 -0
- py4heappe/core/models/user_group_list_report_ext.py +240 -0
- py4heappe/core/models/user_group_report_ext.py +240 -0
- py4heappe/core/models/version_information_ext.py +162 -0
- py4heappe/core/rest.py +311 -0
- py4heappe-1.0.0.dist-info/METADATA +147 -0
- py4heappe-1.0.0.dist-info/RECORD +183 -0
- py4heappe-1.0.0.dist-info/WHEEL +5 -0
- py4heappe-1.0.0.dist-info/entry_points.txt +2 -0
- py4heappe-1.0.0.dist-info/licenses/LICENSE +20 -0
- py4heappe-1.0.0.dist-info/top_level.txt +3 -0
- py4heappe_cli.py +22 -0
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
HEAppE Web API
|
|
5
|
+
|
|
6
|
+
HEAppE middleware API v4.2.1 # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: v4.2.1
|
|
9
|
+
Contact: support.heappe@it4i.cz
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
import pprint
|
|
14
|
+
import re # noqa: F401
|
|
15
|
+
|
|
16
|
+
import six
|
|
17
|
+
|
|
18
|
+
class CreateCommandTemplateModel(object):
|
|
19
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
20
|
+
|
|
21
|
+
Do not edit the class manually.
|
|
22
|
+
"""
|
|
23
|
+
"""
|
|
24
|
+
Attributes:
|
|
25
|
+
swagger_types (dict): The key is attribute name
|
|
26
|
+
and the value is attribute type.
|
|
27
|
+
attribute_map (dict): The key is attribute name
|
|
28
|
+
and the value is json key in definition.
|
|
29
|
+
"""
|
|
30
|
+
swagger_types = {
|
|
31
|
+
'session_code': 'str',
|
|
32
|
+
'name': 'str',
|
|
33
|
+
'description': 'str',
|
|
34
|
+
'extended_allocation_command': 'str',
|
|
35
|
+
'executable_file': 'str',
|
|
36
|
+
'preparation_script': 'str',
|
|
37
|
+
'cluster_node_type_id': 'int',
|
|
38
|
+
'project_id': 'int',
|
|
39
|
+
'template_parameters': 'list[CreateCommandInnerTemplateParameterModel]'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
'session_code': 'SessionCode',
|
|
44
|
+
'name': 'Name',
|
|
45
|
+
'description': 'Description',
|
|
46
|
+
'extended_allocation_command': 'ExtendedAllocationCommand',
|
|
47
|
+
'executable_file': 'ExecutableFile',
|
|
48
|
+
'preparation_script': 'PreparationScript',
|
|
49
|
+
'cluster_node_type_id': 'ClusterNodeTypeId',
|
|
50
|
+
'project_id': 'ProjectId',
|
|
51
|
+
'template_parameters': 'TemplateParameters'
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
def __init__(self, session_code=None, name=None, description=None, extended_allocation_command=None, executable_file=None, preparation_script=None, cluster_node_type_id=None, project_id=None, template_parameters=None): # noqa: E501
|
|
55
|
+
"""CreateCommandTemplateModel - a model defined in Swagger""" # noqa: E501
|
|
56
|
+
self._session_code = None
|
|
57
|
+
self._name = None
|
|
58
|
+
self._description = None
|
|
59
|
+
self._extended_allocation_command = None
|
|
60
|
+
self._executable_file = None
|
|
61
|
+
self._preparation_script = None
|
|
62
|
+
self._cluster_node_type_id = None
|
|
63
|
+
self._project_id = None
|
|
64
|
+
self._template_parameters = None
|
|
65
|
+
self.discriminator = None
|
|
66
|
+
if session_code is not None:
|
|
67
|
+
self.session_code = session_code
|
|
68
|
+
if name is not None:
|
|
69
|
+
self.name = name
|
|
70
|
+
if description is not None:
|
|
71
|
+
self.description = description
|
|
72
|
+
if extended_allocation_command is not None:
|
|
73
|
+
self.extended_allocation_command = extended_allocation_command
|
|
74
|
+
if executable_file is not None:
|
|
75
|
+
self.executable_file = executable_file
|
|
76
|
+
if preparation_script is not None:
|
|
77
|
+
self.preparation_script = preparation_script
|
|
78
|
+
if cluster_node_type_id is not None:
|
|
79
|
+
self.cluster_node_type_id = cluster_node_type_id
|
|
80
|
+
if project_id is not None:
|
|
81
|
+
self.project_id = project_id
|
|
82
|
+
if template_parameters is not None:
|
|
83
|
+
self.template_parameters = template_parameters
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
def session_code(self):
|
|
87
|
+
"""Gets the session_code of this CreateCommandTemplateModel. # noqa: E501
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
:return: The session_code of this CreateCommandTemplateModel. # noqa: E501
|
|
91
|
+
:rtype: str
|
|
92
|
+
"""
|
|
93
|
+
return self._session_code
|
|
94
|
+
|
|
95
|
+
@session_code.setter
|
|
96
|
+
def session_code(self, session_code):
|
|
97
|
+
"""Sets the session_code of this CreateCommandTemplateModel.
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
:param session_code: The session_code of this CreateCommandTemplateModel. # noqa: E501
|
|
101
|
+
:type: str
|
|
102
|
+
"""
|
|
103
|
+
|
|
104
|
+
self._session_code = session_code
|
|
105
|
+
|
|
106
|
+
@property
|
|
107
|
+
def name(self):
|
|
108
|
+
"""Gets the name of this CreateCommandTemplateModel. # noqa: E501
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
:return: The name of this CreateCommandTemplateModel. # noqa: E501
|
|
112
|
+
:rtype: str
|
|
113
|
+
"""
|
|
114
|
+
return self._name
|
|
115
|
+
|
|
116
|
+
@name.setter
|
|
117
|
+
def name(self, name):
|
|
118
|
+
"""Sets the name of this CreateCommandTemplateModel.
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
:param name: The name of this CreateCommandTemplateModel. # noqa: E501
|
|
122
|
+
:type: str
|
|
123
|
+
"""
|
|
124
|
+
|
|
125
|
+
self._name = name
|
|
126
|
+
|
|
127
|
+
@property
|
|
128
|
+
def description(self):
|
|
129
|
+
"""Gets the description of this CreateCommandTemplateModel. # noqa: E501
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
:return: The description of this CreateCommandTemplateModel. # noqa: E501
|
|
133
|
+
:rtype: str
|
|
134
|
+
"""
|
|
135
|
+
return self._description
|
|
136
|
+
|
|
137
|
+
@description.setter
|
|
138
|
+
def description(self, description):
|
|
139
|
+
"""Sets the description of this CreateCommandTemplateModel.
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
:param description: The description of this CreateCommandTemplateModel. # noqa: E501
|
|
143
|
+
:type: str
|
|
144
|
+
"""
|
|
145
|
+
|
|
146
|
+
self._description = description
|
|
147
|
+
|
|
148
|
+
@property
|
|
149
|
+
def extended_allocation_command(self):
|
|
150
|
+
"""Gets the extended_allocation_command of this CreateCommandTemplateModel. # noqa: E501
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
:return: The extended_allocation_command of this CreateCommandTemplateModel. # noqa: E501
|
|
154
|
+
:rtype: str
|
|
155
|
+
"""
|
|
156
|
+
return self._extended_allocation_command
|
|
157
|
+
|
|
158
|
+
@extended_allocation_command.setter
|
|
159
|
+
def extended_allocation_command(self, extended_allocation_command):
|
|
160
|
+
"""Sets the extended_allocation_command of this CreateCommandTemplateModel.
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
:param extended_allocation_command: The extended_allocation_command of this CreateCommandTemplateModel. # noqa: E501
|
|
164
|
+
:type: str
|
|
165
|
+
"""
|
|
166
|
+
|
|
167
|
+
self._extended_allocation_command = extended_allocation_command
|
|
168
|
+
|
|
169
|
+
@property
|
|
170
|
+
def executable_file(self):
|
|
171
|
+
"""Gets the executable_file of this CreateCommandTemplateModel. # noqa: E501
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
:return: The executable_file of this CreateCommandTemplateModel. # noqa: E501
|
|
175
|
+
:rtype: str
|
|
176
|
+
"""
|
|
177
|
+
return self._executable_file
|
|
178
|
+
|
|
179
|
+
@executable_file.setter
|
|
180
|
+
def executable_file(self, executable_file):
|
|
181
|
+
"""Sets the executable_file of this CreateCommandTemplateModel.
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
:param executable_file: The executable_file of this CreateCommandTemplateModel. # noqa: E501
|
|
185
|
+
:type: str
|
|
186
|
+
"""
|
|
187
|
+
|
|
188
|
+
self._executable_file = executable_file
|
|
189
|
+
|
|
190
|
+
@property
|
|
191
|
+
def preparation_script(self):
|
|
192
|
+
"""Gets the preparation_script of this CreateCommandTemplateModel. # noqa: E501
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
:return: The preparation_script of this CreateCommandTemplateModel. # noqa: E501
|
|
196
|
+
:rtype: str
|
|
197
|
+
"""
|
|
198
|
+
return self._preparation_script
|
|
199
|
+
|
|
200
|
+
@preparation_script.setter
|
|
201
|
+
def preparation_script(self, preparation_script):
|
|
202
|
+
"""Sets the preparation_script of this CreateCommandTemplateModel.
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
:param preparation_script: The preparation_script of this CreateCommandTemplateModel. # noqa: E501
|
|
206
|
+
:type: str
|
|
207
|
+
"""
|
|
208
|
+
|
|
209
|
+
self._preparation_script = preparation_script
|
|
210
|
+
|
|
211
|
+
@property
|
|
212
|
+
def cluster_node_type_id(self):
|
|
213
|
+
"""Gets the cluster_node_type_id of this CreateCommandTemplateModel. # noqa: E501
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
:return: The cluster_node_type_id of this CreateCommandTemplateModel. # noqa: E501
|
|
217
|
+
:rtype: int
|
|
218
|
+
"""
|
|
219
|
+
return self._cluster_node_type_id
|
|
220
|
+
|
|
221
|
+
@cluster_node_type_id.setter
|
|
222
|
+
def cluster_node_type_id(self, cluster_node_type_id):
|
|
223
|
+
"""Sets the cluster_node_type_id of this CreateCommandTemplateModel.
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
:param cluster_node_type_id: The cluster_node_type_id of this CreateCommandTemplateModel. # noqa: E501
|
|
227
|
+
:type: int
|
|
228
|
+
"""
|
|
229
|
+
|
|
230
|
+
self._cluster_node_type_id = cluster_node_type_id
|
|
231
|
+
|
|
232
|
+
@property
|
|
233
|
+
def project_id(self):
|
|
234
|
+
"""Gets the project_id of this CreateCommandTemplateModel. # noqa: E501
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
:return: The project_id of this CreateCommandTemplateModel. # noqa: E501
|
|
238
|
+
:rtype: int
|
|
239
|
+
"""
|
|
240
|
+
return self._project_id
|
|
241
|
+
|
|
242
|
+
@project_id.setter
|
|
243
|
+
def project_id(self, project_id):
|
|
244
|
+
"""Sets the project_id of this CreateCommandTemplateModel.
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
:param project_id: The project_id of this CreateCommandTemplateModel. # noqa: E501
|
|
248
|
+
:type: int
|
|
249
|
+
"""
|
|
250
|
+
|
|
251
|
+
self._project_id = project_id
|
|
252
|
+
|
|
253
|
+
@property
|
|
254
|
+
def template_parameters(self):
|
|
255
|
+
"""Gets the template_parameters of this CreateCommandTemplateModel. # noqa: E501
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
:return: The template_parameters of this CreateCommandTemplateModel. # noqa: E501
|
|
259
|
+
:rtype: list[CreateCommandInnerTemplateParameterModel]
|
|
260
|
+
"""
|
|
261
|
+
return self._template_parameters
|
|
262
|
+
|
|
263
|
+
@template_parameters.setter
|
|
264
|
+
def template_parameters(self, template_parameters):
|
|
265
|
+
"""Sets the template_parameters of this CreateCommandTemplateModel.
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
:param template_parameters: The template_parameters of this CreateCommandTemplateModel. # noqa: E501
|
|
269
|
+
:type: list[CreateCommandInnerTemplateParameterModel]
|
|
270
|
+
"""
|
|
271
|
+
|
|
272
|
+
self._template_parameters = template_parameters
|
|
273
|
+
|
|
274
|
+
def to_dict(self):
|
|
275
|
+
"""Returns the model properties as a dict"""
|
|
276
|
+
result = {}
|
|
277
|
+
|
|
278
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
279
|
+
value = getattr(self, attr)
|
|
280
|
+
if isinstance(value, list):
|
|
281
|
+
result[attr] = list(map(
|
|
282
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
283
|
+
value
|
|
284
|
+
))
|
|
285
|
+
elif hasattr(value, "to_dict"):
|
|
286
|
+
result[attr] = value.to_dict()
|
|
287
|
+
elif isinstance(value, dict):
|
|
288
|
+
result[attr] = dict(map(
|
|
289
|
+
lambda item: (item[0], item[1].to_dict())
|
|
290
|
+
if hasattr(item[1], "to_dict") else item,
|
|
291
|
+
value.items()
|
|
292
|
+
))
|
|
293
|
+
else:
|
|
294
|
+
result[attr] = value
|
|
295
|
+
if issubclass(CreateCommandTemplateModel, dict):
|
|
296
|
+
for key, value in self.items():
|
|
297
|
+
result[key] = value
|
|
298
|
+
|
|
299
|
+
return result
|
|
300
|
+
|
|
301
|
+
def to_str(self):
|
|
302
|
+
"""Returns the string representation of the model"""
|
|
303
|
+
return pprint.pformat(self.to_dict())
|
|
304
|
+
|
|
305
|
+
def __repr__(self):
|
|
306
|
+
"""For `print` and `pprint`"""
|
|
307
|
+
return self.to_str()
|
|
308
|
+
|
|
309
|
+
def __eq__(self, other):
|
|
310
|
+
"""Returns true if both objects are equal"""
|
|
311
|
+
if not isinstance(other, CreateCommandTemplateModel):
|
|
312
|
+
return False
|
|
313
|
+
|
|
314
|
+
return self.__dict__ == other.__dict__
|
|
315
|
+
|
|
316
|
+
def __ne__(self, other):
|
|
317
|
+
"""Returns true if both objects are not equal"""
|
|
318
|
+
return not self == other
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
HEAppE Web API
|
|
5
|
+
|
|
6
|
+
HEAppE middleware API v4.2.1 # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: v4.2.1
|
|
9
|
+
Contact: support.heappe@it4i.cz
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
import pprint
|
|
14
|
+
import re # noqa: F401
|
|
15
|
+
|
|
16
|
+
import six
|
|
17
|
+
|
|
18
|
+
class CreateCommandTemplateParameterModel(object):
|
|
19
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
20
|
+
|
|
21
|
+
Do not edit the class manually.
|
|
22
|
+
"""
|
|
23
|
+
"""
|
|
24
|
+
Attributes:
|
|
25
|
+
swagger_types (dict): The key is attribute name
|
|
26
|
+
and the value is attribute type.
|
|
27
|
+
attribute_map (dict): The key is attribute name
|
|
28
|
+
and the value is json key in definition.
|
|
29
|
+
"""
|
|
30
|
+
swagger_types = {
|
|
31
|
+
'session_code': 'str',
|
|
32
|
+
'identifier': 'str',
|
|
33
|
+
'query': 'str',
|
|
34
|
+
'description': 'str',
|
|
35
|
+
'command_template_id': 'int'
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
attribute_map = {
|
|
39
|
+
'session_code': 'SessionCode',
|
|
40
|
+
'identifier': 'Identifier',
|
|
41
|
+
'query': 'Query',
|
|
42
|
+
'description': 'Description',
|
|
43
|
+
'command_template_id': 'CommandTemplateId'
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
def __init__(self, session_code=None, identifier=None, query=None, description=None, command_template_id=None): # noqa: E501
|
|
47
|
+
"""CreateCommandTemplateParameterModel - a model defined in Swagger""" # noqa: E501
|
|
48
|
+
self._session_code = None
|
|
49
|
+
self._identifier = None
|
|
50
|
+
self._query = None
|
|
51
|
+
self._description = None
|
|
52
|
+
self._command_template_id = None
|
|
53
|
+
self.discriminator = None
|
|
54
|
+
if session_code is not None:
|
|
55
|
+
self.session_code = session_code
|
|
56
|
+
if identifier is not None:
|
|
57
|
+
self.identifier = identifier
|
|
58
|
+
if query is not None:
|
|
59
|
+
self.query = query
|
|
60
|
+
if description is not None:
|
|
61
|
+
self.description = description
|
|
62
|
+
if command_template_id is not None:
|
|
63
|
+
self.command_template_id = command_template_id
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def session_code(self):
|
|
67
|
+
"""Gets the session_code of this CreateCommandTemplateParameterModel. # noqa: E501
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
:return: The session_code of this CreateCommandTemplateParameterModel. # noqa: E501
|
|
71
|
+
:rtype: str
|
|
72
|
+
"""
|
|
73
|
+
return self._session_code
|
|
74
|
+
|
|
75
|
+
@session_code.setter
|
|
76
|
+
def session_code(self, session_code):
|
|
77
|
+
"""Sets the session_code of this CreateCommandTemplateParameterModel.
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
:param session_code: The session_code of this CreateCommandTemplateParameterModel. # noqa: E501
|
|
81
|
+
:type: str
|
|
82
|
+
"""
|
|
83
|
+
|
|
84
|
+
self._session_code = session_code
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def identifier(self):
|
|
88
|
+
"""Gets the identifier of this CreateCommandTemplateParameterModel. # noqa: E501
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
:return: The identifier of this CreateCommandTemplateParameterModel. # noqa: E501
|
|
92
|
+
:rtype: str
|
|
93
|
+
"""
|
|
94
|
+
return self._identifier
|
|
95
|
+
|
|
96
|
+
@identifier.setter
|
|
97
|
+
def identifier(self, identifier):
|
|
98
|
+
"""Sets the identifier of this CreateCommandTemplateParameterModel.
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
:param identifier: The identifier of this CreateCommandTemplateParameterModel. # noqa: E501
|
|
102
|
+
:type: str
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
self._identifier = identifier
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def query(self):
|
|
109
|
+
"""Gets the query of this CreateCommandTemplateParameterModel. # noqa: E501
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
:return: The query of this CreateCommandTemplateParameterModel. # noqa: E501
|
|
113
|
+
:rtype: str
|
|
114
|
+
"""
|
|
115
|
+
return self._query
|
|
116
|
+
|
|
117
|
+
@query.setter
|
|
118
|
+
def query(self, query):
|
|
119
|
+
"""Sets the query of this CreateCommandTemplateParameterModel.
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
:param query: The query of this CreateCommandTemplateParameterModel. # noqa: E501
|
|
123
|
+
:type: str
|
|
124
|
+
"""
|
|
125
|
+
|
|
126
|
+
self._query = query
|
|
127
|
+
|
|
128
|
+
@property
|
|
129
|
+
def description(self):
|
|
130
|
+
"""Gets the description of this CreateCommandTemplateParameterModel. # noqa: E501
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
:return: The description of this CreateCommandTemplateParameterModel. # noqa: E501
|
|
134
|
+
:rtype: str
|
|
135
|
+
"""
|
|
136
|
+
return self._description
|
|
137
|
+
|
|
138
|
+
@description.setter
|
|
139
|
+
def description(self, description):
|
|
140
|
+
"""Sets the description of this CreateCommandTemplateParameterModel.
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
:param description: The description of this CreateCommandTemplateParameterModel. # noqa: E501
|
|
144
|
+
:type: str
|
|
145
|
+
"""
|
|
146
|
+
|
|
147
|
+
self._description = description
|
|
148
|
+
|
|
149
|
+
@property
|
|
150
|
+
def command_template_id(self):
|
|
151
|
+
"""Gets the command_template_id of this CreateCommandTemplateParameterModel. # noqa: E501
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
:return: The command_template_id of this CreateCommandTemplateParameterModel. # noqa: E501
|
|
155
|
+
:rtype: int
|
|
156
|
+
"""
|
|
157
|
+
return self._command_template_id
|
|
158
|
+
|
|
159
|
+
@command_template_id.setter
|
|
160
|
+
def command_template_id(self, command_template_id):
|
|
161
|
+
"""Sets the command_template_id of this CreateCommandTemplateParameterModel.
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
:param command_template_id: The command_template_id of this CreateCommandTemplateParameterModel. # noqa: E501
|
|
165
|
+
:type: int
|
|
166
|
+
"""
|
|
167
|
+
|
|
168
|
+
self._command_template_id = command_template_id
|
|
169
|
+
|
|
170
|
+
def to_dict(self):
|
|
171
|
+
"""Returns the model properties as a dict"""
|
|
172
|
+
result = {}
|
|
173
|
+
|
|
174
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
175
|
+
value = getattr(self, attr)
|
|
176
|
+
if isinstance(value, list):
|
|
177
|
+
result[attr] = list(map(
|
|
178
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
179
|
+
value
|
|
180
|
+
))
|
|
181
|
+
elif hasattr(value, "to_dict"):
|
|
182
|
+
result[attr] = value.to_dict()
|
|
183
|
+
elif isinstance(value, dict):
|
|
184
|
+
result[attr] = dict(map(
|
|
185
|
+
lambda item: (item[0], item[1].to_dict())
|
|
186
|
+
if hasattr(item[1], "to_dict") else item,
|
|
187
|
+
value.items()
|
|
188
|
+
))
|
|
189
|
+
else:
|
|
190
|
+
result[attr] = value
|
|
191
|
+
if issubclass(CreateCommandTemplateParameterModel, dict):
|
|
192
|
+
for key, value in self.items():
|
|
193
|
+
result[key] = value
|
|
194
|
+
|
|
195
|
+
return result
|
|
196
|
+
|
|
197
|
+
def to_str(self):
|
|
198
|
+
"""Returns the string representation of the model"""
|
|
199
|
+
return pprint.pformat(self.to_dict())
|
|
200
|
+
|
|
201
|
+
def __repr__(self):
|
|
202
|
+
"""For `print` and `pprint`"""
|
|
203
|
+
return self.to_str()
|
|
204
|
+
|
|
205
|
+
def __eq__(self, other):
|
|
206
|
+
"""Returns true if both objects are equal"""
|
|
207
|
+
if not isinstance(other, CreateCommandTemplateParameterModel):
|
|
208
|
+
return False
|
|
209
|
+
|
|
210
|
+
return self.__dict__ == other.__dict__
|
|
211
|
+
|
|
212
|
+
def __ne__(self, other):
|
|
213
|
+
"""Returns true if both objects are not equal"""
|
|
214
|
+
return not self == other
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
HEAppE Web API
|
|
5
|
+
|
|
6
|
+
HEAppE middleware API v4.2.1 # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: v4.2.1
|
|
9
|
+
Contact: support.heappe@it4i.cz
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
import pprint
|
|
14
|
+
import re # noqa: F401
|
|
15
|
+
|
|
16
|
+
import six
|
|
17
|
+
|
|
18
|
+
class CreateJobByProjectModel(object):
|
|
19
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
20
|
+
|
|
21
|
+
Do not edit the class manually.
|
|
22
|
+
"""
|
|
23
|
+
"""
|
|
24
|
+
Attributes:
|
|
25
|
+
swagger_types (dict): The key is attribute name
|
|
26
|
+
and the value is attribute type.
|
|
27
|
+
attribute_map (dict): The key is attribute name
|
|
28
|
+
and the value is json key in definition.
|
|
29
|
+
"""
|
|
30
|
+
swagger_types = {
|
|
31
|
+
'session_code': 'str',
|
|
32
|
+
'job_specification': 'JobSpecificationExt'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
attribute_map = {
|
|
36
|
+
'session_code': 'SessionCode',
|
|
37
|
+
'job_specification': 'JobSpecification'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
def __init__(self, session_code=None, job_specification=None): # noqa: E501
|
|
41
|
+
"""CreateJobByProjectModel - a model defined in Swagger""" # noqa: E501
|
|
42
|
+
self._session_code = None
|
|
43
|
+
self._job_specification = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
if session_code is not None:
|
|
46
|
+
self.session_code = session_code
|
|
47
|
+
if job_specification is not None:
|
|
48
|
+
self.job_specification = job_specification
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def session_code(self):
|
|
52
|
+
"""Gets the session_code of this CreateJobByProjectModel. # noqa: E501
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
:return: The session_code of this CreateJobByProjectModel. # noqa: E501
|
|
56
|
+
:rtype: str
|
|
57
|
+
"""
|
|
58
|
+
return self._session_code
|
|
59
|
+
|
|
60
|
+
@session_code.setter
|
|
61
|
+
def session_code(self, session_code):
|
|
62
|
+
"""Sets the session_code of this CreateJobByProjectModel.
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
:param session_code: The session_code of this CreateJobByProjectModel. # noqa: E501
|
|
66
|
+
:type: str
|
|
67
|
+
"""
|
|
68
|
+
|
|
69
|
+
self._session_code = session_code
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def job_specification(self):
|
|
73
|
+
"""Gets the job_specification of this CreateJobByProjectModel. # noqa: E501
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
:return: The job_specification of this CreateJobByProjectModel. # noqa: E501
|
|
77
|
+
:rtype: JobSpecificationExt
|
|
78
|
+
"""
|
|
79
|
+
return self._job_specification
|
|
80
|
+
|
|
81
|
+
@job_specification.setter
|
|
82
|
+
def job_specification(self, job_specification):
|
|
83
|
+
"""Sets the job_specification of this CreateJobByProjectModel.
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
:param job_specification: The job_specification of this CreateJobByProjectModel. # noqa: E501
|
|
87
|
+
:type: JobSpecificationExt
|
|
88
|
+
"""
|
|
89
|
+
|
|
90
|
+
self._job_specification = job_specification
|
|
91
|
+
|
|
92
|
+
def to_dict(self):
|
|
93
|
+
"""Returns the model properties as a dict"""
|
|
94
|
+
result = {}
|
|
95
|
+
|
|
96
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
97
|
+
value = getattr(self, attr)
|
|
98
|
+
if isinstance(value, list):
|
|
99
|
+
result[attr] = list(map(
|
|
100
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
101
|
+
value
|
|
102
|
+
))
|
|
103
|
+
elif hasattr(value, "to_dict"):
|
|
104
|
+
result[attr] = value.to_dict()
|
|
105
|
+
elif isinstance(value, dict):
|
|
106
|
+
result[attr] = dict(map(
|
|
107
|
+
lambda item: (item[0], item[1].to_dict())
|
|
108
|
+
if hasattr(item[1], "to_dict") else item,
|
|
109
|
+
value.items()
|
|
110
|
+
))
|
|
111
|
+
else:
|
|
112
|
+
result[attr] = value
|
|
113
|
+
if issubclass(CreateJobByProjectModel, dict):
|
|
114
|
+
for key, value in self.items():
|
|
115
|
+
result[key] = value
|
|
116
|
+
|
|
117
|
+
return result
|
|
118
|
+
|
|
119
|
+
def to_str(self):
|
|
120
|
+
"""Returns the string representation of the model"""
|
|
121
|
+
return pprint.pformat(self.to_dict())
|
|
122
|
+
|
|
123
|
+
def __repr__(self):
|
|
124
|
+
"""For `print` and `pprint`"""
|
|
125
|
+
return self.to_str()
|
|
126
|
+
|
|
127
|
+
def __eq__(self, other):
|
|
128
|
+
"""Returns true if both objects are equal"""
|
|
129
|
+
if not isinstance(other, CreateJobByProjectModel):
|
|
130
|
+
return False
|
|
131
|
+
|
|
132
|
+
return self.__dict__ == other.__dict__
|
|
133
|
+
|
|
134
|
+
def __ne__(self, other):
|
|
135
|
+
"""Returns true if both objects are not equal"""
|
|
136
|
+
return not self == other
|