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