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,243 @@
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 ClusterProxyConnection(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
+ 'id': 'int',
32
+ 'host': 'str',
33
+ 'port': 'int',
34
+ 'type': 'ProxyType',
35
+ 'username': 'str',
36
+ 'password': 'str'
37
+ }
38
+
39
+ attribute_map = {
40
+ 'id': 'Id',
41
+ 'host': 'Host',
42
+ 'port': 'Port',
43
+ 'type': 'Type',
44
+ 'username': 'Username',
45
+ 'password': 'Password'
46
+ }
47
+
48
+ def __init__(self, id=None, host=None, port=None, type=None, username=None, password=None): # noqa: E501
49
+ """ClusterProxyConnection - a model defined in Swagger""" # noqa: E501
50
+ self._id = None
51
+ self._host = None
52
+ self._port = None
53
+ self._type = None
54
+ self._username = None
55
+ self._password = None
56
+ self.discriminator = None
57
+ if id is not None:
58
+ self.id = id
59
+ self.host = host
60
+ self.port = port
61
+ self.type = type
62
+ if username is not None:
63
+ self.username = username
64
+ if password is not None:
65
+ self.password = password
66
+
67
+ @property
68
+ def id(self):
69
+ """Gets the id of this ClusterProxyConnection. # noqa: E501
70
+
71
+
72
+ :return: The id of this ClusterProxyConnection. # noqa: E501
73
+ :rtype: int
74
+ """
75
+ return self._id
76
+
77
+ @id.setter
78
+ def id(self, id):
79
+ """Sets the id of this ClusterProxyConnection.
80
+
81
+
82
+ :param id: The id of this ClusterProxyConnection. # noqa: E501
83
+ :type: int
84
+ """
85
+
86
+ self._id = id
87
+
88
+ @property
89
+ def host(self):
90
+ """Gets the host of this ClusterProxyConnection. # noqa: E501
91
+
92
+
93
+ :return: The host of this ClusterProxyConnection. # noqa: E501
94
+ :rtype: str
95
+ """
96
+ return self._host
97
+
98
+ @host.setter
99
+ def host(self, host):
100
+ """Sets the host of this ClusterProxyConnection.
101
+
102
+
103
+ :param host: The host of this ClusterProxyConnection. # noqa: E501
104
+ :type: str
105
+ """
106
+ if host is None:
107
+ raise ValueError("Invalid value for `host`, must not be `None`") # noqa: E501
108
+
109
+ self._host = host
110
+
111
+ @property
112
+ def port(self):
113
+ """Gets the port of this ClusterProxyConnection. # noqa: E501
114
+
115
+
116
+ :return: The port of this ClusterProxyConnection. # noqa: E501
117
+ :rtype: int
118
+ """
119
+ return self._port
120
+
121
+ @port.setter
122
+ def port(self, port):
123
+ """Sets the port of this ClusterProxyConnection.
124
+
125
+
126
+ :param port: The port of this ClusterProxyConnection. # noqa: E501
127
+ :type: int
128
+ """
129
+ if port is None:
130
+ raise ValueError("Invalid value for `port`, must not be `None`") # noqa: E501
131
+
132
+ self._port = port
133
+
134
+ @property
135
+ def type(self):
136
+ """Gets the type of this ClusterProxyConnection. # noqa: E501
137
+
138
+
139
+ :return: The type of this ClusterProxyConnection. # noqa: E501
140
+ :rtype: ProxyType
141
+ """
142
+ return self._type
143
+
144
+ @type.setter
145
+ def type(self, type):
146
+ """Sets the type of this ClusterProxyConnection.
147
+
148
+
149
+ :param type: The type of this ClusterProxyConnection. # noqa: E501
150
+ :type: ProxyType
151
+ """
152
+ if type is None:
153
+ raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501
154
+
155
+ self._type = type
156
+
157
+ @property
158
+ def username(self):
159
+ """Gets the username of this ClusterProxyConnection. # noqa: E501
160
+
161
+
162
+ :return: The username of this ClusterProxyConnection. # noqa: E501
163
+ :rtype: str
164
+ """
165
+ return self._username
166
+
167
+ @username.setter
168
+ def username(self, username):
169
+ """Sets the username of this ClusterProxyConnection.
170
+
171
+
172
+ :param username: The username of this ClusterProxyConnection. # noqa: E501
173
+ :type: str
174
+ """
175
+
176
+ self._username = username
177
+
178
+ @property
179
+ def password(self):
180
+ """Gets the password of this ClusterProxyConnection. # noqa: E501
181
+
182
+
183
+ :return: The password of this ClusterProxyConnection. # noqa: E501
184
+ :rtype: str
185
+ """
186
+ return self._password
187
+
188
+ @password.setter
189
+ def password(self, password):
190
+ """Sets the password of this ClusterProxyConnection.
191
+
192
+
193
+ :param password: The password of this ClusterProxyConnection. # noqa: E501
194
+ :type: str
195
+ """
196
+
197
+ self._password = password
198
+
199
+ def to_dict(self):
200
+ """Returns the model properties as a dict"""
201
+ result = {}
202
+
203
+ for attr, _ in six.iteritems(self.swagger_types):
204
+ value = getattr(self, attr)
205
+ if isinstance(value, list):
206
+ result[attr] = list(map(
207
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
208
+ value
209
+ ))
210
+ elif hasattr(value, "to_dict"):
211
+ result[attr] = value.to_dict()
212
+ elif isinstance(value, dict):
213
+ result[attr] = dict(map(
214
+ lambda item: (item[0], item[1].to_dict())
215
+ if hasattr(item[1], "to_dict") else item,
216
+ value.items()
217
+ ))
218
+ else:
219
+ result[attr] = value
220
+ if issubclass(ClusterProxyConnection, dict):
221
+ for key, value in self.items():
222
+ result[key] = value
223
+
224
+ return result
225
+
226
+ def to_str(self):
227
+ """Returns the string representation of the model"""
228
+ return pprint.pformat(self.to_dict())
229
+
230
+ def __repr__(self):
231
+ """For `print` and `pprint`"""
232
+ return self.to_str()
233
+
234
+ def __eq__(self, other):
235
+ """Returns true if both objects are equal"""
236
+ if not isinstance(other, ClusterProxyConnection):
237
+ return False
238
+
239
+ return self.__dict__ == other.__dict__
240
+
241
+ def __ne__(self, other):
242
+ """Returns true if both objects are not equal"""
243
+ 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 ClusterProxyConnectionExt(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
+ 'host': 'str',
32
+ 'port': 'int',
33
+ 'type': 'ProxyTypeExt',
34
+ 'username': 'str',
35
+ 'password': 'str'
36
+ }
37
+
38
+ attribute_map = {
39
+ 'host': 'Host',
40
+ 'port': 'Port',
41
+ 'type': 'Type',
42
+ 'username': 'Username',
43
+ 'password': 'Password'
44
+ }
45
+
46
+ def __init__(self, host=None, port=None, type=None, username=None, password=None): # noqa: E501
47
+ """ClusterProxyConnectionExt - a model defined in Swagger""" # noqa: E501
48
+ self._host = None
49
+ self._port = None
50
+ self._type = None
51
+ self._username = None
52
+ self._password = None
53
+ self.discriminator = None
54
+ if host is not None:
55
+ self.host = host
56
+ if port is not None:
57
+ self.port = port
58
+ if type is not None:
59
+ self.type = type
60
+ if username is not None:
61
+ self.username = username
62
+ if password is not None:
63
+ self.password = password
64
+
65
+ @property
66
+ def host(self):
67
+ """Gets the host of this ClusterProxyConnectionExt. # noqa: E501
68
+
69
+
70
+ :return: The host of this ClusterProxyConnectionExt. # noqa: E501
71
+ :rtype: str
72
+ """
73
+ return self._host
74
+
75
+ @host.setter
76
+ def host(self, host):
77
+ """Sets the host of this ClusterProxyConnectionExt.
78
+
79
+
80
+ :param host: The host of this ClusterProxyConnectionExt. # noqa: E501
81
+ :type: str
82
+ """
83
+
84
+ self._host = host
85
+
86
+ @property
87
+ def port(self):
88
+ """Gets the port of this ClusterProxyConnectionExt. # noqa: E501
89
+
90
+
91
+ :return: The port of this ClusterProxyConnectionExt. # noqa: E501
92
+ :rtype: int
93
+ """
94
+ return self._port
95
+
96
+ @port.setter
97
+ def port(self, port):
98
+ """Sets the port of this ClusterProxyConnectionExt.
99
+
100
+
101
+ :param port: The port of this ClusterProxyConnectionExt. # noqa: E501
102
+ :type: int
103
+ """
104
+
105
+ self._port = port
106
+
107
+ @property
108
+ def type(self):
109
+ """Gets the type of this ClusterProxyConnectionExt. # noqa: E501
110
+
111
+
112
+ :return: The type of this ClusterProxyConnectionExt. # noqa: E501
113
+ :rtype: ProxyTypeExt
114
+ """
115
+ return self._type
116
+
117
+ @type.setter
118
+ def type(self, type):
119
+ """Sets the type of this ClusterProxyConnectionExt.
120
+
121
+
122
+ :param type: The type of this ClusterProxyConnectionExt. # noqa: E501
123
+ :type: ProxyTypeExt
124
+ """
125
+
126
+ self._type = type
127
+
128
+ @property
129
+ def username(self):
130
+ """Gets the username of this ClusterProxyConnectionExt. # noqa: E501
131
+
132
+
133
+ :return: The username of this ClusterProxyConnectionExt. # noqa: E501
134
+ :rtype: str
135
+ """
136
+ return self._username
137
+
138
+ @username.setter
139
+ def username(self, username):
140
+ """Sets the username of this ClusterProxyConnectionExt.
141
+
142
+
143
+ :param username: The username of this ClusterProxyConnectionExt. # noqa: E501
144
+ :type: str
145
+ """
146
+
147
+ self._username = username
148
+
149
+ @property
150
+ def password(self):
151
+ """Gets the password of this ClusterProxyConnectionExt. # noqa: E501
152
+
153
+
154
+ :return: The password of this ClusterProxyConnectionExt. # noqa: E501
155
+ :rtype: str
156
+ """
157
+ return self._password
158
+
159
+ @password.setter
160
+ def password(self, password):
161
+ """Sets the password of this ClusterProxyConnectionExt.
162
+
163
+
164
+ :param password: The password of this ClusterProxyConnectionExt. # noqa: E501
165
+ :type: str
166
+ """
167
+
168
+ self._password = password
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(ClusterProxyConnectionExt, 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, ClusterProxyConnectionExt):
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,215 @@
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 ClusterReportExt(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
+ 'id': 'int',
32
+ 'name': 'str',
33
+ 'description': 'str',
34
+ 'total_usage': 'float',
35
+ 'cluster_node_types': 'list[ClusterNodeTypeReportExt]'
36
+ }
37
+
38
+ attribute_map = {
39
+ 'id': 'Id',
40
+ 'name': 'Name',
41
+ 'description': 'Description',
42
+ 'total_usage': 'TotalUsage',
43
+ 'cluster_node_types': 'ClusterNodeTypes'
44
+ }
45
+
46
+ def __init__(self, id=None, name=None, description=None, total_usage=None, cluster_node_types=None): # noqa: E501
47
+ """ClusterReportExt - a model defined in Swagger""" # noqa: E501
48
+ self._id = None
49
+ self._name = None
50
+ self._description = None
51
+ self._total_usage = None
52
+ self._cluster_node_types = None
53
+ self.discriminator = None
54
+ if id is not None:
55
+ self.id = id
56
+ if name is not None:
57
+ self.name = name
58
+ self.description = description
59
+ if total_usage is not None:
60
+ self.total_usage = total_usage
61
+ if cluster_node_types is not None:
62
+ self.cluster_node_types = cluster_node_types
63
+
64
+ @property
65
+ def id(self):
66
+ """Gets the id of this ClusterReportExt. # noqa: E501
67
+
68
+
69
+ :return: The id of this ClusterReportExt. # noqa: E501
70
+ :rtype: int
71
+ """
72
+ return self._id
73
+
74
+ @id.setter
75
+ def id(self, id):
76
+ """Sets the id of this ClusterReportExt.
77
+
78
+
79
+ :param id: The id of this ClusterReportExt. # noqa: E501
80
+ :type: int
81
+ """
82
+
83
+ self._id = id
84
+
85
+ @property
86
+ def name(self):
87
+ """Gets the name of this ClusterReportExt. # noqa: E501
88
+
89
+
90
+ :return: The name of this ClusterReportExt. # noqa: E501
91
+ :rtype: str
92
+ """
93
+ return self._name
94
+
95
+ @name.setter
96
+ def name(self, name):
97
+ """Sets the name of this ClusterReportExt.
98
+
99
+
100
+ :param name: The name of this ClusterReportExt. # noqa: E501
101
+ :type: str
102
+ """
103
+
104
+ self._name = name
105
+
106
+ @property
107
+ def description(self):
108
+ """Gets the description of this ClusterReportExt. # noqa: E501
109
+
110
+
111
+ :return: The description of this ClusterReportExt. # noqa: E501
112
+ :rtype: str
113
+ """
114
+ return self._description
115
+
116
+ @description.setter
117
+ def description(self, description):
118
+ """Sets the description of this ClusterReportExt.
119
+
120
+
121
+ :param description: The description of this ClusterReportExt. # noqa: E501
122
+ :type: str
123
+ """
124
+ if description is None:
125
+ raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501
126
+
127
+ self._description = description
128
+
129
+ @property
130
+ def total_usage(self):
131
+ """Gets the total_usage of this ClusterReportExt. # noqa: E501
132
+
133
+
134
+ :return: The total_usage of this ClusterReportExt. # noqa: E501
135
+ :rtype: float
136
+ """
137
+ return self._total_usage
138
+
139
+ @total_usage.setter
140
+ def total_usage(self, total_usage):
141
+ """Sets the total_usage of this ClusterReportExt.
142
+
143
+
144
+ :param total_usage: The total_usage of this ClusterReportExt. # noqa: E501
145
+ :type: float
146
+ """
147
+
148
+ self._total_usage = total_usage
149
+
150
+ @property
151
+ def cluster_node_types(self):
152
+ """Gets the cluster_node_types of this ClusterReportExt. # noqa: E501
153
+
154
+
155
+ :return: The cluster_node_types of this ClusterReportExt. # noqa: E501
156
+ :rtype: list[ClusterNodeTypeReportExt]
157
+ """
158
+ return self._cluster_node_types
159
+
160
+ @cluster_node_types.setter
161
+ def cluster_node_types(self, cluster_node_types):
162
+ """Sets the cluster_node_types of this ClusterReportExt.
163
+
164
+
165
+ :param cluster_node_types: The cluster_node_types of this ClusterReportExt. # noqa: E501
166
+ :type: list[ClusterNodeTypeReportExt]
167
+ """
168
+
169
+ self._cluster_node_types = cluster_node_types
170
+
171
+ def to_dict(self):
172
+ """Returns the model properties as a dict"""
173
+ result = {}
174
+
175
+ for attr, _ in six.iteritems(self.swagger_types):
176
+ value = getattr(self, attr)
177
+ if isinstance(value, list):
178
+ result[attr] = list(map(
179
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
180
+ value
181
+ ))
182
+ elif hasattr(value, "to_dict"):
183
+ result[attr] = value.to_dict()
184
+ elif isinstance(value, dict):
185
+ result[attr] = dict(map(
186
+ lambda item: (item[0], item[1].to_dict())
187
+ if hasattr(item[1], "to_dict") else item,
188
+ value.items()
189
+ ))
190
+ else:
191
+ result[attr] = value
192
+ if issubclass(ClusterReportExt, dict):
193
+ for key, value in self.items():
194
+ result[key] = value
195
+
196
+ return result
197
+
198
+ def to_str(self):
199
+ """Returns the string representation of the model"""
200
+ return pprint.pformat(self.to_dict())
201
+
202
+ def __repr__(self):
203
+ """For `print` and `pprint`"""
204
+ return self.to_str()
205
+
206
+ def __eq__(self, other):
207
+ """Returns true if both objects are equal"""
208
+ if not isinstance(other, ClusterReportExt):
209
+ return False
210
+
211
+ return self.__dict__ == other.__dict__
212
+
213
+ def __ne__(self, other):
214
+ """Returns true if both objects are not equal"""
215
+ return not self == other