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,347 @@
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 ClusterProject(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
+ 'cluster_id': 'int',
33
+ 'cluster': 'Cluster',
34
+ 'project_id': 'int',
35
+ 'project': 'Project',
36
+ 'local_basepath': 'str',
37
+ 'created_at': 'datetime',
38
+ 'modified_at': 'datetime',
39
+ 'is_deleted': 'bool',
40
+ 'cluster_project_credentials': 'list[ClusterProjectCredential]'
41
+ }
42
+
43
+ attribute_map = {
44
+ 'id': 'Id',
45
+ 'cluster_id': 'ClusterId',
46
+ 'cluster': 'Cluster',
47
+ 'project_id': 'ProjectId',
48
+ 'project': 'Project',
49
+ 'local_basepath': 'LocalBasepath',
50
+ 'created_at': 'CreatedAt',
51
+ 'modified_at': 'ModifiedAt',
52
+ 'is_deleted': 'IsDeleted',
53
+ 'cluster_project_credentials': 'ClusterProjectCredentials'
54
+ }
55
+
56
+ def __init__(self, id=None, cluster_id=None, cluster=None, project_id=None, project=None, local_basepath=None, created_at=None, modified_at=None, is_deleted=None, cluster_project_credentials=None): # noqa: E501
57
+ """ClusterProject - a model defined in Swagger""" # noqa: E501
58
+ self._id = None
59
+ self._cluster_id = None
60
+ self._cluster = None
61
+ self._project_id = None
62
+ self._project = None
63
+ self._local_basepath = None
64
+ self._created_at = None
65
+ self._modified_at = None
66
+ self._is_deleted = None
67
+ self._cluster_project_credentials = None
68
+ self.discriminator = None
69
+ if id is not None:
70
+ self.id = id
71
+ if cluster_id is not None:
72
+ self.cluster_id = cluster_id
73
+ if cluster is not None:
74
+ self.cluster = cluster
75
+ if project_id is not None:
76
+ self.project_id = project_id
77
+ if project is not None:
78
+ self.project = project
79
+ self.local_basepath = local_basepath
80
+ self.created_at = created_at
81
+ if modified_at is not None:
82
+ self.modified_at = modified_at
83
+ self.is_deleted = is_deleted
84
+ if cluster_project_credentials is not None:
85
+ self.cluster_project_credentials = cluster_project_credentials
86
+
87
+ @property
88
+ def id(self):
89
+ """Gets the id of this ClusterProject. # noqa: E501
90
+
91
+
92
+ :return: The id of this ClusterProject. # noqa: E501
93
+ :rtype: int
94
+ """
95
+ return self._id
96
+
97
+ @id.setter
98
+ def id(self, id):
99
+ """Sets the id of this ClusterProject.
100
+
101
+
102
+ :param id: The id of this ClusterProject. # noqa: E501
103
+ :type: int
104
+ """
105
+
106
+ self._id = id
107
+
108
+ @property
109
+ def cluster_id(self):
110
+ """Gets the cluster_id of this ClusterProject. # noqa: E501
111
+
112
+
113
+ :return: The cluster_id of this ClusterProject. # noqa: E501
114
+ :rtype: int
115
+ """
116
+ return self._cluster_id
117
+
118
+ @cluster_id.setter
119
+ def cluster_id(self, cluster_id):
120
+ """Sets the cluster_id of this ClusterProject.
121
+
122
+
123
+ :param cluster_id: The cluster_id of this ClusterProject. # noqa: E501
124
+ :type: int
125
+ """
126
+
127
+ self._cluster_id = cluster_id
128
+
129
+ @property
130
+ def cluster(self):
131
+ """Gets the cluster of this ClusterProject. # noqa: E501
132
+
133
+
134
+ :return: The cluster of this ClusterProject. # noqa: E501
135
+ :rtype: Cluster
136
+ """
137
+ return self._cluster
138
+
139
+ @cluster.setter
140
+ def cluster(self, cluster):
141
+ """Sets the cluster of this ClusterProject.
142
+
143
+
144
+ :param cluster: The cluster of this ClusterProject. # noqa: E501
145
+ :type: Cluster
146
+ """
147
+
148
+ self._cluster = cluster
149
+
150
+ @property
151
+ def project_id(self):
152
+ """Gets the project_id of this ClusterProject. # noqa: E501
153
+
154
+
155
+ :return: The project_id of this ClusterProject. # noqa: E501
156
+ :rtype: int
157
+ """
158
+ return self._project_id
159
+
160
+ @project_id.setter
161
+ def project_id(self, project_id):
162
+ """Sets the project_id of this ClusterProject.
163
+
164
+
165
+ :param project_id: The project_id of this ClusterProject. # noqa: E501
166
+ :type: int
167
+ """
168
+
169
+ self._project_id = project_id
170
+
171
+ @property
172
+ def project(self):
173
+ """Gets the project of this ClusterProject. # noqa: E501
174
+
175
+
176
+ :return: The project of this ClusterProject. # noqa: E501
177
+ :rtype: Project
178
+ """
179
+ return self._project
180
+
181
+ @project.setter
182
+ def project(self, project):
183
+ """Sets the project of this ClusterProject.
184
+
185
+
186
+ :param project: The project of this ClusterProject. # noqa: E501
187
+ :type: Project
188
+ """
189
+
190
+ self._project = project
191
+
192
+ @property
193
+ def local_basepath(self):
194
+ """Gets the local_basepath of this ClusterProject. # noqa: E501
195
+
196
+
197
+ :return: The local_basepath of this ClusterProject. # noqa: E501
198
+ :rtype: str
199
+ """
200
+ return self._local_basepath
201
+
202
+ @local_basepath.setter
203
+ def local_basepath(self, local_basepath):
204
+ """Sets the local_basepath of this ClusterProject.
205
+
206
+
207
+ :param local_basepath: The local_basepath of this ClusterProject. # noqa: E501
208
+ :type: str
209
+ """
210
+ if local_basepath is None:
211
+ raise ValueError("Invalid value for `local_basepath`, must not be `None`") # noqa: E501
212
+
213
+ self._local_basepath = local_basepath
214
+
215
+ @property
216
+ def created_at(self):
217
+ """Gets the created_at of this ClusterProject. # noqa: E501
218
+
219
+
220
+ :return: The created_at of this ClusterProject. # noqa: E501
221
+ :rtype: datetime
222
+ """
223
+ return self._created_at
224
+
225
+ @created_at.setter
226
+ def created_at(self, created_at):
227
+ """Sets the created_at of this ClusterProject.
228
+
229
+
230
+ :param created_at: The created_at of this ClusterProject. # noqa: E501
231
+ :type: datetime
232
+ """
233
+ if created_at is None:
234
+ raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501
235
+
236
+ self._created_at = created_at
237
+
238
+ @property
239
+ def modified_at(self):
240
+ """Gets the modified_at of this ClusterProject. # noqa: E501
241
+
242
+
243
+ :return: The modified_at of this ClusterProject. # noqa: E501
244
+ :rtype: datetime
245
+ """
246
+ return self._modified_at
247
+
248
+ @modified_at.setter
249
+ def modified_at(self, modified_at):
250
+ """Sets the modified_at of this ClusterProject.
251
+
252
+
253
+ :param modified_at: The modified_at of this ClusterProject. # noqa: E501
254
+ :type: datetime
255
+ """
256
+
257
+ self._modified_at = modified_at
258
+
259
+ @property
260
+ def is_deleted(self):
261
+ """Gets the is_deleted of this ClusterProject. # noqa: E501
262
+
263
+
264
+ :return: The is_deleted of this ClusterProject. # noqa: E501
265
+ :rtype: bool
266
+ """
267
+ return self._is_deleted
268
+
269
+ @is_deleted.setter
270
+ def is_deleted(self, is_deleted):
271
+ """Sets the is_deleted of this ClusterProject.
272
+
273
+
274
+ :param is_deleted: The is_deleted of this ClusterProject. # noqa: E501
275
+ :type: bool
276
+ """
277
+ if is_deleted is None:
278
+ raise ValueError("Invalid value for `is_deleted`, must not be `None`") # noqa: E501
279
+
280
+ self._is_deleted = is_deleted
281
+
282
+ @property
283
+ def cluster_project_credentials(self):
284
+ """Gets the cluster_project_credentials of this ClusterProject. # noqa: E501
285
+
286
+
287
+ :return: The cluster_project_credentials of this ClusterProject. # noqa: E501
288
+ :rtype: list[ClusterProjectCredential]
289
+ """
290
+ return self._cluster_project_credentials
291
+
292
+ @cluster_project_credentials.setter
293
+ def cluster_project_credentials(self, cluster_project_credentials):
294
+ """Sets the cluster_project_credentials of this ClusterProject.
295
+
296
+
297
+ :param cluster_project_credentials: The cluster_project_credentials of this ClusterProject. # noqa: E501
298
+ :type: list[ClusterProjectCredential]
299
+ """
300
+
301
+ self._cluster_project_credentials = cluster_project_credentials
302
+
303
+ def to_dict(self):
304
+ """Returns the model properties as a dict"""
305
+ result = {}
306
+
307
+ for attr, _ in six.iteritems(self.swagger_types):
308
+ value = getattr(self, attr)
309
+ if isinstance(value, list):
310
+ result[attr] = list(map(
311
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
312
+ value
313
+ ))
314
+ elif hasattr(value, "to_dict"):
315
+ result[attr] = value.to_dict()
316
+ elif isinstance(value, dict):
317
+ result[attr] = dict(map(
318
+ lambda item: (item[0], item[1].to_dict())
319
+ if hasattr(item[1], "to_dict") else item,
320
+ value.items()
321
+ ))
322
+ else:
323
+ result[attr] = value
324
+ if issubclass(ClusterProject, dict):
325
+ for key, value in self.items():
326
+ result[key] = value
327
+
328
+ return result
329
+
330
+ def to_str(self):
331
+ """Returns the string representation of the model"""
332
+ return pprint.pformat(self.to_dict())
333
+
334
+ def __repr__(self):
335
+ """For `print` and `pprint`"""
336
+ return self.to_str()
337
+
338
+ def __eq__(self, other):
339
+ """Returns true if both objects are equal"""
340
+ if not isinstance(other, ClusterProject):
341
+ return False
342
+
343
+ return self.__dict__ == other.__dict__
344
+
345
+ def __ne__(self, other):
346
+ """Returns true if both objects are not equal"""
347
+ return not self == other
@@ -0,0 +1,294 @@
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 ClusterProjectCredential(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
+ 'cluster_project_id': 'int',
32
+ 'cluster_project': 'ClusterProject',
33
+ 'cluster_authentication_credentials_id': 'int',
34
+ 'cluster_authentication_credentials': 'ClusterAuthenticationCredentials',
35
+ 'is_service_account': 'bool',
36
+ 'created_at': 'datetime',
37
+ 'modified_at': 'datetime',
38
+ 'is_deleted': 'bool'
39
+ }
40
+
41
+ attribute_map = {
42
+ 'cluster_project_id': 'ClusterProjectId',
43
+ 'cluster_project': 'ClusterProject',
44
+ 'cluster_authentication_credentials_id': 'ClusterAuthenticationCredentialsId',
45
+ 'cluster_authentication_credentials': 'ClusterAuthenticationCredentials',
46
+ 'is_service_account': 'IsServiceAccount',
47
+ 'created_at': 'CreatedAt',
48
+ 'modified_at': 'ModifiedAt',
49
+ 'is_deleted': 'IsDeleted'
50
+ }
51
+
52
+ def __init__(self, cluster_project_id=None, cluster_project=None, cluster_authentication_credentials_id=None, cluster_authentication_credentials=None, is_service_account=None, created_at=None, modified_at=None, is_deleted=None): # noqa: E501
53
+ """ClusterProjectCredential - a model defined in Swagger""" # noqa: E501
54
+ self._cluster_project_id = None
55
+ self._cluster_project = None
56
+ self._cluster_authentication_credentials_id = None
57
+ self._cluster_authentication_credentials = None
58
+ self._is_service_account = None
59
+ self._created_at = None
60
+ self._modified_at = None
61
+ self._is_deleted = None
62
+ self.discriminator = None
63
+ if cluster_project_id is not None:
64
+ self.cluster_project_id = cluster_project_id
65
+ if cluster_project is not None:
66
+ self.cluster_project = cluster_project
67
+ if cluster_authentication_credentials_id is not None:
68
+ self.cluster_authentication_credentials_id = cluster_authentication_credentials_id
69
+ if cluster_authentication_credentials is not None:
70
+ self.cluster_authentication_credentials = cluster_authentication_credentials
71
+ if is_service_account is not None:
72
+ self.is_service_account = is_service_account
73
+ self.created_at = created_at
74
+ if modified_at is not None:
75
+ self.modified_at = modified_at
76
+ self.is_deleted = is_deleted
77
+
78
+ @property
79
+ def cluster_project_id(self):
80
+ """Gets the cluster_project_id of this ClusterProjectCredential. # noqa: E501
81
+
82
+
83
+ :return: The cluster_project_id of this ClusterProjectCredential. # noqa: E501
84
+ :rtype: int
85
+ """
86
+ return self._cluster_project_id
87
+
88
+ @cluster_project_id.setter
89
+ def cluster_project_id(self, cluster_project_id):
90
+ """Sets the cluster_project_id of this ClusterProjectCredential.
91
+
92
+
93
+ :param cluster_project_id: The cluster_project_id of this ClusterProjectCredential. # noqa: E501
94
+ :type: int
95
+ """
96
+
97
+ self._cluster_project_id = cluster_project_id
98
+
99
+ @property
100
+ def cluster_project(self):
101
+ """Gets the cluster_project of this ClusterProjectCredential. # noqa: E501
102
+
103
+
104
+ :return: The cluster_project of this ClusterProjectCredential. # noqa: E501
105
+ :rtype: ClusterProject
106
+ """
107
+ return self._cluster_project
108
+
109
+ @cluster_project.setter
110
+ def cluster_project(self, cluster_project):
111
+ """Sets the cluster_project of this ClusterProjectCredential.
112
+
113
+
114
+ :param cluster_project: The cluster_project of this ClusterProjectCredential. # noqa: E501
115
+ :type: ClusterProject
116
+ """
117
+
118
+ self._cluster_project = cluster_project
119
+
120
+ @property
121
+ def cluster_authentication_credentials_id(self):
122
+ """Gets the cluster_authentication_credentials_id of this ClusterProjectCredential. # noqa: E501
123
+
124
+
125
+ :return: The cluster_authentication_credentials_id of this ClusterProjectCredential. # noqa: E501
126
+ :rtype: int
127
+ """
128
+ return self._cluster_authentication_credentials_id
129
+
130
+ @cluster_authentication_credentials_id.setter
131
+ def cluster_authentication_credentials_id(self, cluster_authentication_credentials_id):
132
+ """Sets the cluster_authentication_credentials_id of this ClusterProjectCredential.
133
+
134
+
135
+ :param cluster_authentication_credentials_id: The cluster_authentication_credentials_id of this ClusterProjectCredential. # noqa: E501
136
+ :type: int
137
+ """
138
+
139
+ self._cluster_authentication_credentials_id = cluster_authentication_credentials_id
140
+
141
+ @property
142
+ def cluster_authentication_credentials(self):
143
+ """Gets the cluster_authentication_credentials of this ClusterProjectCredential. # noqa: E501
144
+
145
+
146
+ :return: The cluster_authentication_credentials of this ClusterProjectCredential. # noqa: E501
147
+ :rtype: ClusterAuthenticationCredentials
148
+ """
149
+ return self._cluster_authentication_credentials
150
+
151
+ @cluster_authentication_credentials.setter
152
+ def cluster_authentication_credentials(self, cluster_authentication_credentials):
153
+ """Sets the cluster_authentication_credentials of this ClusterProjectCredential.
154
+
155
+
156
+ :param cluster_authentication_credentials: The cluster_authentication_credentials of this ClusterProjectCredential. # noqa: E501
157
+ :type: ClusterAuthenticationCredentials
158
+ """
159
+
160
+ self._cluster_authentication_credentials = cluster_authentication_credentials
161
+
162
+ @property
163
+ def is_service_account(self):
164
+ """Gets the is_service_account of this ClusterProjectCredential. # noqa: E501
165
+
166
+
167
+ :return: The is_service_account of this ClusterProjectCredential. # noqa: E501
168
+ :rtype: bool
169
+ """
170
+ return self._is_service_account
171
+
172
+ @is_service_account.setter
173
+ def is_service_account(self, is_service_account):
174
+ """Sets the is_service_account of this ClusterProjectCredential.
175
+
176
+
177
+ :param is_service_account: The is_service_account of this ClusterProjectCredential. # noqa: E501
178
+ :type: bool
179
+ """
180
+
181
+ self._is_service_account = is_service_account
182
+
183
+ @property
184
+ def created_at(self):
185
+ """Gets the created_at of this ClusterProjectCredential. # noqa: E501
186
+
187
+
188
+ :return: The created_at of this ClusterProjectCredential. # noqa: E501
189
+ :rtype: datetime
190
+ """
191
+ return self._created_at
192
+
193
+ @created_at.setter
194
+ def created_at(self, created_at):
195
+ """Sets the created_at of this ClusterProjectCredential.
196
+
197
+
198
+ :param created_at: The created_at of this ClusterProjectCredential. # noqa: E501
199
+ :type: datetime
200
+ """
201
+ if created_at is None:
202
+ raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501
203
+
204
+ self._created_at = created_at
205
+
206
+ @property
207
+ def modified_at(self):
208
+ """Gets the modified_at of this ClusterProjectCredential. # noqa: E501
209
+
210
+
211
+ :return: The modified_at of this ClusterProjectCredential. # noqa: E501
212
+ :rtype: datetime
213
+ """
214
+ return self._modified_at
215
+
216
+ @modified_at.setter
217
+ def modified_at(self, modified_at):
218
+ """Sets the modified_at of this ClusterProjectCredential.
219
+
220
+
221
+ :param modified_at: The modified_at of this ClusterProjectCredential. # noqa: E501
222
+ :type: datetime
223
+ """
224
+
225
+ self._modified_at = modified_at
226
+
227
+ @property
228
+ def is_deleted(self):
229
+ """Gets the is_deleted of this ClusterProjectCredential. # noqa: E501
230
+
231
+
232
+ :return: The is_deleted of this ClusterProjectCredential. # noqa: E501
233
+ :rtype: bool
234
+ """
235
+ return self._is_deleted
236
+
237
+ @is_deleted.setter
238
+ def is_deleted(self, is_deleted):
239
+ """Sets the is_deleted of this ClusterProjectCredential.
240
+
241
+
242
+ :param is_deleted: The is_deleted of this ClusterProjectCredential. # noqa: E501
243
+ :type: bool
244
+ """
245
+ if is_deleted is None:
246
+ raise ValueError("Invalid value for `is_deleted`, must not be `None`") # noqa: E501
247
+
248
+ self._is_deleted = is_deleted
249
+
250
+ def to_dict(self):
251
+ """Returns the model properties as a dict"""
252
+ result = {}
253
+
254
+ for attr, _ in six.iteritems(self.swagger_types):
255
+ value = getattr(self, attr)
256
+ if isinstance(value, list):
257
+ result[attr] = list(map(
258
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
259
+ value
260
+ ))
261
+ elif hasattr(value, "to_dict"):
262
+ result[attr] = value.to_dict()
263
+ elif isinstance(value, dict):
264
+ result[attr] = dict(map(
265
+ lambda item: (item[0], item[1].to_dict())
266
+ if hasattr(item[1], "to_dict") else item,
267
+ value.items()
268
+ ))
269
+ else:
270
+ result[attr] = value
271
+ if issubclass(ClusterProjectCredential, dict):
272
+ for key, value in self.items():
273
+ result[key] = value
274
+
275
+ return result
276
+
277
+ def to_str(self):
278
+ """Returns the string representation of the model"""
279
+ return pprint.pformat(self.to_dict())
280
+
281
+ def __repr__(self):
282
+ """For `print` and `pprint`"""
283
+ return self.to_str()
284
+
285
+ def __eq__(self, other):
286
+ """Returns true if both objects are equal"""
287
+ if not isinstance(other, ClusterProjectCredential):
288
+ return False
289
+
290
+ return self.__dict__ == other.__dict__
291
+
292
+ def __ne__(self, other):
293
+ """Returns true if both objects are not equal"""
294
+ return not self == other