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,292 @@
|
|
|
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 ModifyProjectModel(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
|
+
'id': 'int',
|
|
33
|
+
'name': 'str',
|
|
34
|
+
'description': 'str',
|
|
35
|
+
'start_date': 'datetime',
|
|
36
|
+
'end_date': 'datetime',
|
|
37
|
+
'usage_type': 'UsageTypeExt',
|
|
38
|
+
'use_accounting_string_for_scheduler': 'bool'
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
attribute_map = {
|
|
42
|
+
'session_code': 'SessionCode',
|
|
43
|
+
'id': 'Id',
|
|
44
|
+
'name': 'Name',
|
|
45
|
+
'description': 'Description',
|
|
46
|
+
'start_date': 'StartDate',
|
|
47
|
+
'end_date': 'EndDate',
|
|
48
|
+
'usage_type': 'UsageType',
|
|
49
|
+
'use_accounting_string_for_scheduler': 'UseAccountingStringForScheduler'
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
def __init__(self, session_code=None, id=None, name=None, description=None, start_date=None, end_date=None, usage_type=None, use_accounting_string_for_scheduler=None): # noqa: E501
|
|
53
|
+
"""ModifyProjectModel - a model defined in Swagger""" # noqa: E501
|
|
54
|
+
self._session_code = None
|
|
55
|
+
self._id = None
|
|
56
|
+
self._name = None
|
|
57
|
+
self._description = None
|
|
58
|
+
self._start_date = None
|
|
59
|
+
self._end_date = None
|
|
60
|
+
self._usage_type = None
|
|
61
|
+
self._use_accounting_string_for_scheduler = None
|
|
62
|
+
self.discriminator = None
|
|
63
|
+
if session_code is not None:
|
|
64
|
+
self.session_code = session_code
|
|
65
|
+
if id is not None:
|
|
66
|
+
self.id = id
|
|
67
|
+
if name is not None:
|
|
68
|
+
self.name = name
|
|
69
|
+
if description is not None:
|
|
70
|
+
self.description = description
|
|
71
|
+
if start_date is not None:
|
|
72
|
+
self.start_date = start_date
|
|
73
|
+
if end_date is not None:
|
|
74
|
+
self.end_date = end_date
|
|
75
|
+
if usage_type is not None:
|
|
76
|
+
self.usage_type = usage_type
|
|
77
|
+
if use_accounting_string_for_scheduler is not None:
|
|
78
|
+
self.use_accounting_string_for_scheduler = use_accounting_string_for_scheduler
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
def session_code(self):
|
|
82
|
+
"""Gets the session_code of this ModifyProjectModel. # noqa: E501
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:return: The session_code of this ModifyProjectModel. # noqa: E501
|
|
86
|
+
:rtype: str
|
|
87
|
+
"""
|
|
88
|
+
return self._session_code
|
|
89
|
+
|
|
90
|
+
@session_code.setter
|
|
91
|
+
def session_code(self, session_code):
|
|
92
|
+
"""Sets the session_code of this ModifyProjectModel.
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
:param session_code: The session_code of this ModifyProjectModel. # noqa: E501
|
|
96
|
+
:type: str
|
|
97
|
+
"""
|
|
98
|
+
|
|
99
|
+
self._session_code = session_code
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
def id(self):
|
|
103
|
+
"""Gets the id of this ModifyProjectModel. # noqa: E501
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:return: The id of this ModifyProjectModel. # noqa: E501
|
|
107
|
+
:rtype: int
|
|
108
|
+
"""
|
|
109
|
+
return self._id
|
|
110
|
+
|
|
111
|
+
@id.setter
|
|
112
|
+
def id(self, id):
|
|
113
|
+
"""Sets the id of this ModifyProjectModel.
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
:param id: The id of this ModifyProjectModel. # noqa: E501
|
|
117
|
+
:type: int
|
|
118
|
+
"""
|
|
119
|
+
|
|
120
|
+
self._id = id
|
|
121
|
+
|
|
122
|
+
@property
|
|
123
|
+
def name(self):
|
|
124
|
+
"""Gets the name of this ModifyProjectModel. # noqa: E501
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:return: The name of this ModifyProjectModel. # noqa: E501
|
|
128
|
+
:rtype: str
|
|
129
|
+
"""
|
|
130
|
+
return self._name
|
|
131
|
+
|
|
132
|
+
@name.setter
|
|
133
|
+
def name(self, name):
|
|
134
|
+
"""Sets the name of this ModifyProjectModel.
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
:param name: The name of this ModifyProjectModel. # noqa: E501
|
|
138
|
+
:type: str
|
|
139
|
+
"""
|
|
140
|
+
|
|
141
|
+
self._name = name
|
|
142
|
+
|
|
143
|
+
@property
|
|
144
|
+
def description(self):
|
|
145
|
+
"""Gets the description of this ModifyProjectModel. # noqa: E501
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:return: The description of this ModifyProjectModel. # noqa: E501
|
|
149
|
+
:rtype: str
|
|
150
|
+
"""
|
|
151
|
+
return self._description
|
|
152
|
+
|
|
153
|
+
@description.setter
|
|
154
|
+
def description(self, description):
|
|
155
|
+
"""Sets the description of this ModifyProjectModel.
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
:param description: The description of this ModifyProjectModel. # noqa: E501
|
|
159
|
+
:type: str
|
|
160
|
+
"""
|
|
161
|
+
|
|
162
|
+
self._description = description
|
|
163
|
+
|
|
164
|
+
@property
|
|
165
|
+
def start_date(self):
|
|
166
|
+
"""Gets the start_date of this ModifyProjectModel. # noqa: E501
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
:return: The start_date of this ModifyProjectModel. # noqa: E501
|
|
170
|
+
:rtype: datetime
|
|
171
|
+
"""
|
|
172
|
+
return self._start_date
|
|
173
|
+
|
|
174
|
+
@start_date.setter
|
|
175
|
+
def start_date(self, start_date):
|
|
176
|
+
"""Sets the start_date of this ModifyProjectModel.
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
:param start_date: The start_date of this ModifyProjectModel. # noqa: E501
|
|
180
|
+
:type: datetime
|
|
181
|
+
"""
|
|
182
|
+
|
|
183
|
+
self._start_date = start_date
|
|
184
|
+
|
|
185
|
+
@property
|
|
186
|
+
def end_date(self):
|
|
187
|
+
"""Gets the end_date of this ModifyProjectModel. # noqa: E501
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
:return: The end_date of this ModifyProjectModel. # noqa: E501
|
|
191
|
+
:rtype: datetime
|
|
192
|
+
"""
|
|
193
|
+
return self._end_date
|
|
194
|
+
|
|
195
|
+
@end_date.setter
|
|
196
|
+
def end_date(self, end_date):
|
|
197
|
+
"""Sets the end_date of this ModifyProjectModel.
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
:param end_date: The end_date of this ModifyProjectModel. # noqa: E501
|
|
201
|
+
:type: datetime
|
|
202
|
+
"""
|
|
203
|
+
|
|
204
|
+
self._end_date = end_date
|
|
205
|
+
|
|
206
|
+
@property
|
|
207
|
+
def usage_type(self):
|
|
208
|
+
"""Gets the usage_type of this ModifyProjectModel. # noqa: E501
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
:return: The usage_type of this ModifyProjectModel. # noqa: E501
|
|
212
|
+
:rtype: UsageTypeExt
|
|
213
|
+
"""
|
|
214
|
+
return self._usage_type
|
|
215
|
+
|
|
216
|
+
@usage_type.setter
|
|
217
|
+
def usage_type(self, usage_type):
|
|
218
|
+
"""Sets the usage_type of this ModifyProjectModel.
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
:param usage_type: The usage_type of this ModifyProjectModel. # noqa: E501
|
|
222
|
+
:type: UsageTypeExt
|
|
223
|
+
"""
|
|
224
|
+
|
|
225
|
+
self._usage_type = usage_type
|
|
226
|
+
|
|
227
|
+
@property
|
|
228
|
+
def use_accounting_string_for_scheduler(self):
|
|
229
|
+
"""Gets the use_accounting_string_for_scheduler of this ModifyProjectModel. # noqa: E501
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
:return: The use_accounting_string_for_scheduler of this ModifyProjectModel. # noqa: E501
|
|
233
|
+
:rtype: bool
|
|
234
|
+
"""
|
|
235
|
+
return self._use_accounting_string_for_scheduler
|
|
236
|
+
|
|
237
|
+
@use_accounting_string_for_scheduler.setter
|
|
238
|
+
def use_accounting_string_for_scheduler(self, use_accounting_string_for_scheduler):
|
|
239
|
+
"""Sets the use_accounting_string_for_scheduler of this ModifyProjectModel.
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
:param use_accounting_string_for_scheduler: The use_accounting_string_for_scheduler of this ModifyProjectModel. # noqa: E501
|
|
243
|
+
:type: bool
|
|
244
|
+
"""
|
|
245
|
+
|
|
246
|
+
self._use_accounting_string_for_scheduler = use_accounting_string_for_scheduler
|
|
247
|
+
|
|
248
|
+
def to_dict(self):
|
|
249
|
+
"""Returns the model properties as a dict"""
|
|
250
|
+
result = {}
|
|
251
|
+
|
|
252
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
253
|
+
value = getattr(self, attr)
|
|
254
|
+
if isinstance(value, list):
|
|
255
|
+
result[attr] = list(map(
|
|
256
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
257
|
+
value
|
|
258
|
+
))
|
|
259
|
+
elif hasattr(value, "to_dict"):
|
|
260
|
+
result[attr] = value.to_dict()
|
|
261
|
+
elif isinstance(value, dict):
|
|
262
|
+
result[attr] = dict(map(
|
|
263
|
+
lambda item: (item[0], item[1].to_dict())
|
|
264
|
+
if hasattr(item[1], "to_dict") else item,
|
|
265
|
+
value.items()
|
|
266
|
+
))
|
|
267
|
+
else:
|
|
268
|
+
result[attr] = value
|
|
269
|
+
if issubclass(ModifyProjectModel, dict):
|
|
270
|
+
for key, value in self.items():
|
|
271
|
+
result[key] = value
|
|
272
|
+
|
|
273
|
+
return result
|
|
274
|
+
|
|
275
|
+
def to_str(self):
|
|
276
|
+
"""Returns the string representation of the model"""
|
|
277
|
+
return pprint.pformat(self.to_dict())
|
|
278
|
+
|
|
279
|
+
def __repr__(self):
|
|
280
|
+
"""For `print` and `pprint`"""
|
|
281
|
+
return self.to_str()
|
|
282
|
+
|
|
283
|
+
def __eq__(self, other):
|
|
284
|
+
"""Returns true if both objects are equal"""
|
|
285
|
+
if not isinstance(other, ModifyProjectModel):
|
|
286
|
+
return False
|
|
287
|
+
|
|
288
|
+
return self.__dict__ == other.__dict__
|
|
289
|
+
|
|
290
|
+
def __ne__(self, other):
|
|
291
|
+
"""Returns true if both objects are not equal"""
|
|
292
|
+
return not self == other
|
|
@@ -0,0 +1,110 @@
|
|
|
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 NodeUsedCoresAndLimitationExt(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
|
+
'cores_used': 'int'
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
attribute_map = {
|
|
35
|
+
'cores_used': 'CoresUsed'
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
def __init__(self, cores_used=None): # noqa: E501
|
|
39
|
+
"""NodeUsedCoresAndLimitationExt - a model defined in Swagger""" # noqa: E501
|
|
40
|
+
self._cores_used = None
|
|
41
|
+
self.discriminator = None
|
|
42
|
+
if cores_used is not None:
|
|
43
|
+
self.cores_used = cores_used
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
def cores_used(self):
|
|
47
|
+
"""Gets the cores_used of this NodeUsedCoresAndLimitationExt. # noqa: E501
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
:return: The cores_used of this NodeUsedCoresAndLimitationExt. # noqa: E501
|
|
51
|
+
:rtype: int
|
|
52
|
+
"""
|
|
53
|
+
return self._cores_used
|
|
54
|
+
|
|
55
|
+
@cores_used.setter
|
|
56
|
+
def cores_used(self, cores_used):
|
|
57
|
+
"""Sets the cores_used of this NodeUsedCoresAndLimitationExt.
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
:param cores_used: The cores_used of this NodeUsedCoresAndLimitationExt. # noqa: E501
|
|
61
|
+
:type: int
|
|
62
|
+
"""
|
|
63
|
+
|
|
64
|
+
self._cores_used = cores_used
|
|
65
|
+
|
|
66
|
+
def to_dict(self):
|
|
67
|
+
"""Returns the model properties as a dict"""
|
|
68
|
+
result = {}
|
|
69
|
+
|
|
70
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
71
|
+
value = getattr(self, attr)
|
|
72
|
+
if isinstance(value, list):
|
|
73
|
+
result[attr] = list(map(
|
|
74
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
75
|
+
value
|
|
76
|
+
))
|
|
77
|
+
elif hasattr(value, "to_dict"):
|
|
78
|
+
result[attr] = value.to_dict()
|
|
79
|
+
elif isinstance(value, dict):
|
|
80
|
+
result[attr] = dict(map(
|
|
81
|
+
lambda item: (item[0], item[1].to_dict())
|
|
82
|
+
if hasattr(item[1], "to_dict") else item,
|
|
83
|
+
value.items()
|
|
84
|
+
))
|
|
85
|
+
else:
|
|
86
|
+
result[attr] = value
|
|
87
|
+
if issubclass(NodeUsedCoresAndLimitationExt, dict):
|
|
88
|
+
for key, value in self.items():
|
|
89
|
+
result[key] = value
|
|
90
|
+
|
|
91
|
+
return result
|
|
92
|
+
|
|
93
|
+
def to_str(self):
|
|
94
|
+
"""Returns the string representation of the model"""
|
|
95
|
+
return pprint.pformat(self.to_dict())
|
|
96
|
+
|
|
97
|
+
def __repr__(self):
|
|
98
|
+
"""For `print` and `pprint`"""
|
|
99
|
+
return self.to_str()
|
|
100
|
+
|
|
101
|
+
def __eq__(self, other):
|
|
102
|
+
"""Returns true if both objects are equal"""
|
|
103
|
+
if not isinstance(other, NodeUsedCoresAndLimitationExt):
|
|
104
|
+
return False
|
|
105
|
+
|
|
106
|
+
return self.__dict__ == other.__dict__
|
|
107
|
+
|
|
108
|
+
def __ne__(self, other):
|
|
109
|
+
"""Returns true if both objects are not equal"""
|
|
110
|
+
return not self == other
|
|
@@ -0,0 +1,137 @@
|
|
|
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 OpenIdCredentialsExt(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
|
+
'username': 'str',
|
|
32
|
+
'open_id_access_token': 'str'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
attribute_map = {
|
|
36
|
+
'username': 'Username',
|
|
37
|
+
'open_id_access_token': 'OpenIdAccessToken'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
def __init__(self, username=None, open_id_access_token=None): # noqa: E501
|
|
41
|
+
"""OpenIdCredentialsExt - a model defined in Swagger""" # noqa: E501
|
|
42
|
+
self._username = None
|
|
43
|
+
self._open_id_access_token = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
if username is not None:
|
|
46
|
+
self.username = username
|
|
47
|
+
self.open_id_access_token = open_id_access_token
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
def username(self):
|
|
51
|
+
"""Gets the username of this OpenIdCredentialsExt. # noqa: E501
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
:return: The username of this OpenIdCredentialsExt. # noqa: E501
|
|
55
|
+
:rtype: str
|
|
56
|
+
"""
|
|
57
|
+
return self._username
|
|
58
|
+
|
|
59
|
+
@username.setter
|
|
60
|
+
def username(self, username):
|
|
61
|
+
"""Sets the username of this OpenIdCredentialsExt.
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
:param username: The username of this OpenIdCredentialsExt. # noqa: E501
|
|
65
|
+
:type: str
|
|
66
|
+
"""
|
|
67
|
+
|
|
68
|
+
self._username = username
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def open_id_access_token(self):
|
|
72
|
+
"""Gets the open_id_access_token of this OpenIdCredentialsExt. # noqa: E501
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:return: The open_id_access_token of this OpenIdCredentialsExt. # noqa: E501
|
|
76
|
+
:rtype: str
|
|
77
|
+
"""
|
|
78
|
+
return self._open_id_access_token
|
|
79
|
+
|
|
80
|
+
@open_id_access_token.setter
|
|
81
|
+
def open_id_access_token(self, open_id_access_token):
|
|
82
|
+
"""Sets the open_id_access_token of this OpenIdCredentialsExt.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:param open_id_access_token: The open_id_access_token of this OpenIdCredentialsExt. # noqa: E501
|
|
86
|
+
:type: str
|
|
87
|
+
"""
|
|
88
|
+
if open_id_access_token is None:
|
|
89
|
+
raise ValueError("Invalid value for `open_id_access_token`, must not be `None`") # noqa: E501
|
|
90
|
+
|
|
91
|
+
self._open_id_access_token = open_id_access_token
|
|
92
|
+
|
|
93
|
+
def to_dict(self):
|
|
94
|
+
"""Returns the model properties as a dict"""
|
|
95
|
+
result = {}
|
|
96
|
+
|
|
97
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
98
|
+
value = getattr(self, attr)
|
|
99
|
+
if isinstance(value, list):
|
|
100
|
+
result[attr] = list(map(
|
|
101
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
102
|
+
value
|
|
103
|
+
))
|
|
104
|
+
elif hasattr(value, "to_dict"):
|
|
105
|
+
result[attr] = value.to_dict()
|
|
106
|
+
elif isinstance(value, dict):
|
|
107
|
+
result[attr] = dict(map(
|
|
108
|
+
lambda item: (item[0], item[1].to_dict())
|
|
109
|
+
if hasattr(item[1], "to_dict") else item,
|
|
110
|
+
value.items()
|
|
111
|
+
))
|
|
112
|
+
else:
|
|
113
|
+
result[attr] = value
|
|
114
|
+
if issubclass(OpenIdCredentialsExt, dict):
|
|
115
|
+
for key, value in self.items():
|
|
116
|
+
result[key] = value
|
|
117
|
+
|
|
118
|
+
return result
|
|
119
|
+
|
|
120
|
+
def to_str(self):
|
|
121
|
+
"""Returns the string representation of the model"""
|
|
122
|
+
return pprint.pformat(self.to_dict())
|
|
123
|
+
|
|
124
|
+
def __repr__(self):
|
|
125
|
+
"""For `print` and `pprint`"""
|
|
126
|
+
return self.to_str()
|
|
127
|
+
|
|
128
|
+
def __eq__(self, other):
|
|
129
|
+
"""Returns true if both objects are equal"""
|
|
130
|
+
if not isinstance(other, OpenIdCredentialsExt):
|
|
131
|
+
return False
|
|
132
|
+
|
|
133
|
+
return self.__dict__ == other.__dict__
|
|
134
|
+
|
|
135
|
+
def __ne__(self, other):
|
|
136
|
+
"""Returns true if both objects are not equal"""
|
|
137
|
+
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 OpenStackApplicationCredentialsExt(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
|
+
'application_credentials_id': 'str',
|
|
32
|
+
'application_credentials_secret': 'str'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
attribute_map = {
|
|
36
|
+
'application_credentials_id': 'ApplicationCredentialsId',
|
|
37
|
+
'application_credentials_secret': 'ApplicationCredentialsSecret'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
def __init__(self, application_credentials_id=None, application_credentials_secret=None): # noqa: E501
|
|
41
|
+
"""OpenStackApplicationCredentialsExt - a model defined in Swagger""" # noqa: E501
|
|
42
|
+
self._application_credentials_id = None
|
|
43
|
+
self._application_credentials_secret = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
if application_credentials_id is not None:
|
|
46
|
+
self.application_credentials_id = application_credentials_id
|
|
47
|
+
if application_credentials_secret is not None:
|
|
48
|
+
self.application_credentials_secret = application_credentials_secret
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def application_credentials_id(self):
|
|
52
|
+
"""Gets the application_credentials_id of this OpenStackApplicationCredentialsExt. # noqa: E501
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
:return: The application_credentials_id of this OpenStackApplicationCredentialsExt. # noqa: E501
|
|
56
|
+
:rtype: str
|
|
57
|
+
"""
|
|
58
|
+
return self._application_credentials_id
|
|
59
|
+
|
|
60
|
+
@application_credentials_id.setter
|
|
61
|
+
def application_credentials_id(self, application_credentials_id):
|
|
62
|
+
"""Sets the application_credentials_id of this OpenStackApplicationCredentialsExt.
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
:param application_credentials_id: The application_credentials_id of this OpenStackApplicationCredentialsExt. # noqa: E501
|
|
66
|
+
:type: str
|
|
67
|
+
"""
|
|
68
|
+
|
|
69
|
+
self._application_credentials_id = application_credentials_id
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def application_credentials_secret(self):
|
|
73
|
+
"""Gets the application_credentials_secret of this OpenStackApplicationCredentialsExt. # noqa: E501
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
:return: The application_credentials_secret of this OpenStackApplicationCredentialsExt. # noqa: E501
|
|
77
|
+
:rtype: str
|
|
78
|
+
"""
|
|
79
|
+
return self._application_credentials_secret
|
|
80
|
+
|
|
81
|
+
@application_credentials_secret.setter
|
|
82
|
+
def application_credentials_secret(self, application_credentials_secret):
|
|
83
|
+
"""Sets the application_credentials_secret of this OpenStackApplicationCredentialsExt.
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
:param application_credentials_secret: The application_credentials_secret of this OpenStackApplicationCredentialsExt. # noqa: E501
|
|
87
|
+
:type: str
|
|
88
|
+
"""
|
|
89
|
+
|
|
90
|
+
self._application_credentials_secret = application_credentials_secret
|
|
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(OpenStackApplicationCredentialsExt, 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, OpenStackApplicationCredentialsExt):
|
|
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
|