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,162 @@
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 CopyJobDataToTempModel(object):
19
+ """NOTE: This class is auto generated by the swagger code generator program.
20
+
21
+ Do not edit the class manually.
22
+ """
23
+ """
24
+ Attributes:
25
+ swagger_types (dict): The key is attribute name
26
+ and the value is attribute type.
27
+ attribute_map (dict): The key is attribute name
28
+ and the value is json key in definition.
29
+ """
30
+ swagger_types = {
31
+ 'session_code': 'str',
32
+ 'submitted_job_info_id': 'int',
33
+ 'path': 'str'
34
+ }
35
+
36
+ attribute_map = {
37
+ 'session_code': 'SessionCode',
38
+ 'submitted_job_info_id': 'SubmittedJobInfoId',
39
+ 'path': 'Path'
40
+ }
41
+
42
+ def __init__(self, session_code=None, submitted_job_info_id=None, path=None): # noqa: E501
43
+ """CopyJobDataToTempModel - a model defined in Swagger""" # noqa: E501
44
+ self._session_code = None
45
+ self._submitted_job_info_id = None
46
+ self._path = None
47
+ self.discriminator = None
48
+ if session_code is not None:
49
+ self.session_code = session_code
50
+ if submitted_job_info_id is not None:
51
+ self.submitted_job_info_id = submitted_job_info_id
52
+ if path is not None:
53
+ self.path = path
54
+
55
+ @property
56
+ def session_code(self):
57
+ """Gets the session_code of this CopyJobDataToTempModel. # noqa: E501
58
+
59
+
60
+ :return: The session_code of this CopyJobDataToTempModel. # noqa: E501
61
+ :rtype: str
62
+ """
63
+ return self._session_code
64
+
65
+ @session_code.setter
66
+ def session_code(self, session_code):
67
+ """Sets the session_code of this CopyJobDataToTempModel.
68
+
69
+
70
+ :param session_code: The session_code of this CopyJobDataToTempModel. # noqa: E501
71
+ :type: str
72
+ """
73
+
74
+ self._session_code = session_code
75
+
76
+ @property
77
+ def submitted_job_info_id(self):
78
+ """Gets the submitted_job_info_id of this CopyJobDataToTempModel. # noqa: E501
79
+
80
+
81
+ :return: The submitted_job_info_id of this CopyJobDataToTempModel. # noqa: E501
82
+ :rtype: int
83
+ """
84
+ return self._submitted_job_info_id
85
+
86
+ @submitted_job_info_id.setter
87
+ def submitted_job_info_id(self, submitted_job_info_id):
88
+ """Sets the submitted_job_info_id of this CopyJobDataToTempModel.
89
+
90
+
91
+ :param submitted_job_info_id: The submitted_job_info_id of this CopyJobDataToTempModel. # noqa: E501
92
+ :type: int
93
+ """
94
+
95
+ self._submitted_job_info_id = submitted_job_info_id
96
+
97
+ @property
98
+ def path(self):
99
+ """Gets the path of this CopyJobDataToTempModel. # noqa: E501
100
+
101
+
102
+ :return: The path of this CopyJobDataToTempModel. # noqa: E501
103
+ :rtype: str
104
+ """
105
+ return self._path
106
+
107
+ @path.setter
108
+ def path(self, path):
109
+ """Sets the path of this CopyJobDataToTempModel.
110
+
111
+
112
+ :param path: The path of this CopyJobDataToTempModel. # noqa: E501
113
+ :type: str
114
+ """
115
+
116
+ self._path = path
117
+
118
+ def to_dict(self):
119
+ """Returns the model properties as a dict"""
120
+ result = {}
121
+
122
+ for attr, _ in six.iteritems(self.swagger_types):
123
+ value = getattr(self, attr)
124
+ if isinstance(value, list):
125
+ result[attr] = list(map(
126
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
127
+ value
128
+ ))
129
+ elif hasattr(value, "to_dict"):
130
+ result[attr] = value.to_dict()
131
+ elif isinstance(value, dict):
132
+ result[attr] = dict(map(
133
+ lambda item: (item[0], item[1].to_dict())
134
+ if hasattr(item[1], "to_dict") else item,
135
+ value.items()
136
+ ))
137
+ else:
138
+ result[attr] = value
139
+ if issubclass(CopyJobDataToTempModel, dict):
140
+ for key, value in self.items():
141
+ result[key] = value
142
+
143
+ return result
144
+
145
+ def to_str(self):
146
+ """Returns the string representation of the model"""
147
+ return pprint.pformat(self.to_dict())
148
+
149
+ def __repr__(self):
150
+ """For `print` and `pprint`"""
151
+ return self.to_str()
152
+
153
+ def __eq__(self, other):
154
+ """Returns true if both objects are equal"""
155
+ if not isinstance(other, CopyJobDataToTempModel):
156
+ return False
157
+
158
+ return self.__dict__ == other.__dict__
159
+
160
+ def __ne__(self, other):
161
+ """Returns true if both objects are not equal"""
162
+ return not self == other
@@ -0,0 +1,162 @@
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 CreateCommandInnerTemplateParameterModel(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
+ 'identifier': 'str',
32
+ 'query': 'str',
33
+ 'description': 'str'
34
+ }
35
+
36
+ attribute_map = {
37
+ 'identifier': 'Identifier',
38
+ 'query': 'Query',
39
+ 'description': 'Description'
40
+ }
41
+
42
+ def __init__(self, identifier=None, query=None, description=None): # noqa: E501
43
+ """CreateCommandInnerTemplateParameterModel - a model defined in Swagger""" # noqa: E501
44
+ self._identifier = None
45
+ self._query = None
46
+ self._description = None
47
+ self.discriminator = None
48
+ if identifier is not None:
49
+ self.identifier = identifier
50
+ if query is not None:
51
+ self.query = query
52
+ if description is not None:
53
+ self.description = description
54
+
55
+ @property
56
+ def identifier(self):
57
+ """Gets the identifier of this CreateCommandInnerTemplateParameterModel. # noqa: E501
58
+
59
+
60
+ :return: The identifier of this CreateCommandInnerTemplateParameterModel. # noqa: E501
61
+ :rtype: str
62
+ """
63
+ return self._identifier
64
+
65
+ @identifier.setter
66
+ def identifier(self, identifier):
67
+ """Sets the identifier of this CreateCommandInnerTemplateParameterModel.
68
+
69
+
70
+ :param identifier: The identifier of this CreateCommandInnerTemplateParameterModel. # noqa: E501
71
+ :type: str
72
+ """
73
+
74
+ self._identifier = identifier
75
+
76
+ @property
77
+ def query(self):
78
+ """Gets the query of this CreateCommandInnerTemplateParameterModel. # noqa: E501
79
+
80
+
81
+ :return: The query of this CreateCommandInnerTemplateParameterModel. # noqa: E501
82
+ :rtype: str
83
+ """
84
+ return self._query
85
+
86
+ @query.setter
87
+ def query(self, query):
88
+ """Sets the query of this CreateCommandInnerTemplateParameterModel.
89
+
90
+
91
+ :param query: The query of this CreateCommandInnerTemplateParameterModel. # noqa: E501
92
+ :type: str
93
+ """
94
+
95
+ self._query = query
96
+
97
+ @property
98
+ def description(self):
99
+ """Gets the description of this CreateCommandInnerTemplateParameterModel. # noqa: E501
100
+
101
+
102
+ :return: The description of this CreateCommandInnerTemplateParameterModel. # noqa: E501
103
+ :rtype: str
104
+ """
105
+ return self._description
106
+
107
+ @description.setter
108
+ def description(self, description):
109
+ """Sets the description of this CreateCommandInnerTemplateParameterModel.
110
+
111
+
112
+ :param description: The description of this CreateCommandInnerTemplateParameterModel. # noqa: E501
113
+ :type: str
114
+ """
115
+
116
+ self._description = description
117
+
118
+ def to_dict(self):
119
+ """Returns the model properties as a dict"""
120
+ result = {}
121
+
122
+ for attr, _ in six.iteritems(self.swagger_types):
123
+ value = getattr(self, attr)
124
+ if isinstance(value, list):
125
+ result[attr] = list(map(
126
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
127
+ value
128
+ ))
129
+ elif hasattr(value, "to_dict"):
130
+ result[attr] = value.to_dict()
131
+ elif isinstance(value, dict):
132
+ result[attr] = dict(map(
133
+ lambda item: (item[0], item[1].to_dict())
134
+ if hasattr(item[1], "to_dict") else item,
135
+ value.items()
136
+ ))
137
+ else:
138
+ result[attr] = value
139
+ if issubclass(CreateCommandInnerTemplateParameterModel, dict):
140
+ for key, value in self.items():
141
+ result[key] = value
142
+
143
+ return result
144
+
145
+ def to_str(self):
146
+ """Returns the string representation of the model"""
147
+ return pprint.pformat(self.to_dict())
148
+
149
+ def __repr__(self):
150
+ """For `print` and `pprint`"""
151
+ return self.to_str()
152
+
153
+ def __eq__(self, other):
154
+ """Returns true if both objects are equal"""
155
+ if not isinstance(other, CreateCommandInnerTemplateParameterModel):
156
+ return False
157
+
158
+ return self.__dict__ == other.__dict__
159
+
160
+ def __ne__(self, other):
161
+ """Returns true if both objects are not equal"""
162
+ return not self == other
@@ -0,0 +1,292 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ HEAppE Web API
5
+
6
+ HEAppE middleware API v4.2.1 # noqa: E501
7
+
8
+ OpenAPI spec version: v4.2.1
9
+ Contact: support.heappe@it4i.cz
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ class CreateCommandTemplateFromGenericModel(object):
19
+ """NOTE: This class is auto generated by the swagger code generator program.
20
+
21
+ Do not edit the class manually.
22
+ """
23
+ """
24
+ Attributes:
25
+ swagger_types (dict): The key is attribute name
26
+ and the value is attribute type.
27
+ attribute_map (dict): The key is attribute name
28
+ and the value is json key in definition.
29
+ """
30
+ swagger_types = {
31
+ 'session_code': 'str',
32
+ 'generic_command_template_id': 'int',
33
+ 'name': 'str',
34
+ 'project_id': 'int',
35
+ 'description': 'str',
36
+ 'extended_allocation_command': 'str',
37
+ 'executable_file': 'str',
38
+ 'preparation_script': 'str'
39
+ }
40
+
41
+ attribute_map = {
42
+ 'session_code': 'SessionCode',
43
+ 'generic_command_template_id': 'GenericCommandTemplateId',
44
+ 'name': 'Name',
45
+ 'project_id': 'ProjectId',
46
+ 'description': 'Description',
47
+ 'extended_allocation_command': 'ExtendedAllocationCommand',
48
+ 'executable_file': 'ExecutableFile',
49
+ 'preparation_script': 'PreparationScript'
50
+ }
51
+
52
+ def __init__(self, session_code=None, generic_command_template_id=None, name=None, project_id=None, description=None, extended_allocation_command=None, executable_file=None, preparation_script=None): # noqa: E501
53
+ """CreateCommandTemplateFromGenericModel - a model defined in Swagger""" # noqa: E501
54
+ self._session_code = None
55
+ self._generic_command_template_id = None
56
+ self._name = None
57
+ self._project_id = None
58
+ self._description = None
59
+ self._extended_allocation_command = None
60
+ self._executable_file = None
61
+ self._preparation_script = None
62
+ self.discriminator = None
63
+ if session_code is not None:
64
+ self.session_code = session_code
65
+ if generic_command_template_id is not None:
66
+ self.generic_command_template_id = generic_command_template_id
67
+ if name is not None:
68
+ self.name = name
69
+ if project_id is not None:
70
+ self.project_id = project_id
71
+ if description is not None:
72
+ self.description = description
73
+ if extended_allocation_command is not None:
74
+ self.extended_allocation_command = extended_allocation_command
75
+ if executable_file is not None:
76
+ self.executable_file = executable_file
77
+ if preparation_script is not None:
78
+ self.preparation_script = preparation_script
79
+
80
+ @property
81
+ def session_code(self):
82
+ """Gets the session_code of this CreateCommandTemplateFromGenericModel. # noqa: E501
83
+
84
+
85
+ :return: The session_code of this CreateCommandTemplateFromGenericModel. # noqa: E501
86
+ :rtype: str
87
+ """
88
+ return self._session_code
89
+
90
+ @session_code.setter
91
+ def session_code(self, session_code):
92
+ """Sets the session_code of this CreateCommandTemplateFromGenericModel.
93
+
94
+
95
+ :param session_code: The session_code of this CreateCommandTemplateFromGenericModel. # noqa: E501
96
+ :type: str
97
+ """
98
+
99
+ self._session_code = session_code
100
+
101
+ @property
102
+ def generic_command_template_id(self):
103
+ """Gets the generic_command_template_id of this CreateCommandTemplateFromGenericModel. # noqa: E501
104
+
105
+
106
+ :return: The generic_command_template_id of this CreateCommandTemplateFromGenericModel. # noqa: E501
107
+ :rtype: int
108
+ """
109
+ return self._generic_command_template_id
110
+
111
+ @generic_command_template_id.setter
112
+ def generic_command_template_id(self, generic_command_template_id):
113
+ """Sets the generic_command_template_id of this CreateCommandTemplateFromGenericModel.
114
+
115
+
116
+ :param generic_command_template_id: The generic_command_template_id of this CreateCommandTemplateFromGenericModel. # noqa: E501
117
+ :type: int
118
+ """
119
+
120
+ self._generic_command_template_id = generic_command_template_id
121
+
122
+ @property
123
+ def name(self):
124
+ """Gets the name of this CreateCommandTemplateFromGenericModel. # noqa: E501
125
+
126
+
127
+ :return: The name of this CreateCommandTemplateFromGenericModel. # noqa: E501
128
+ :rtype: str
129
+ """
130
+ return self._name
131
+
132
+ @name.setter
133
+ def name(self, name):
134
+ """Sets the name of this CreateCommandTemplateFromGenericModel.
135
+
136
+
137
+ :param name: The name of this CreateCommandTemplateFromGenericModel. # noqa: E501
138
+ :type: str
139
+ """
140
+
141
+ self._name = name
142
+
143
+ @property
144
+ def project_id(self):
145
+ """Gets the project_id of this CreateCommandTemplateFromGenericModel. # noqa: E501
146
+
147
+
148
+ :return: The project_id of this CreateCommandTemplateFromGenericModel. # noqa: E501
149
+ :rtype: int
150
+ """
151
+ return self._project_id
152
+
153
+ @project_id.setter
154
+ def project_id(self, project_id):
155
+ """Sets the project_id of this CreateCommandTemplateFromGenericModel.
156
+
157
+
158
+ :param project_id: The project_id of this CreateCommandTemplateFromGenericModel. # noqa: E501
159
+ :type: int
160
+ """
161
+
162
+ self._project_id = project_id
163
+
164
+ @property
165
+ def description(self):
166
+ """Gets the description of this CreateCommandTemplateFromGenericModel. # noqa: E501
167
+
168
+
169
+ :return: The description of this CreateCommandTemplateFromGenericModel. # noqa: E501
170
+ :rtype: str
171
+ """
172
+ return self._description
173
+
174
+ @description.setter
175
+ def description(self, description):
176
+ """Sets the description of this CreateCommandTemplateFromGenericModel.
177
+
178
+
179
+ :param description: The description of this CreateCommandTemplateFromGenericModel. # noqa: E501
180
+ :type: str
181
+ """
182
+
183
+ self._description = description
184
+
185
+ @property
186
+ def extended_allocation_command(self):
187
+ """Gets the extended_allocation_command of this CreateCommandTemplateFromGenericModel. # noqa: E501
188
+
189
+
190
+ :return: The extended_allocation_command of this CreateCommandTemplateFromGenericModel. # noqa: E501
191
+ :rtype: str
192
+ """
193
+ return self._extended_allocation_command
194
+
195
+ @extended_allocation_command.setter
196
+ def extended_allocation_command(self, extended_allocation_command):
197
+ """Sets the extended_allocation_command of this CreateCommandTemplateFromGenericModel.
198
+
199
+
200
+ :param extended_allocation_command: The extended_allocation_command of this CreateCommandTemplateFromGenericModel. # noqa: E501
201
+ :type: str
202
+ """
203
+
204
+ self._extended_allocation_command = extended_allocation_command
205
+
206
+ @property
207
+ def executable_file(self):
208
+ """Gets the executable_file of this CreateCommandTemplateFromGenericModel. # noqa: E501
209
+
210
+
211
+ :return: The executable_file of this CreateCommandTemplateFromGenericModel. # noqa: E501
212
+ :rtype: str
213
+ """
214
+ return self._executable_file
215
+
216
+ @executable_file.setter
217
+ def executable_file(self, executable_file):
218
+ """Sets the executable_file of this CreateCommandTemplateFromGenericModel.
219
+
220
+
221
+ :param executable_file: The executable_file of this CreateCommandTemplateFromGenericModel. # noqa: E501
222
+ :type: str
223
+ """
224
+
225
+ self._executable_file = executable_file
226
+
227
+ @property
228
+ def preparation_script(self):
229
+ """Gets the preparation_script of this CreateCommandTemplateFromGenericModel. # noqa: E501
230
+
231
+
232
+ :return: The preparation_script of this CreateCommandTemplateFromGenericModel. # noqa: E501
233
+ :rtype: str
234
+ """
235
+ return self._preparation_script
236
+
237
+ @preparation_script.setter
238
+ def preparation_script(self, preparation_script):
239
+ """Sets the preparation_script of this CreateCommandTemplateFromGenericModel.
240
+
241
+
242
+ :param preparation_script: The preparation_script of this CreateCommandTemplateFromGenericModel. # noqa: E501
243
+ :type: str
244
+ """
245
+
246
+ self._preparation_script = preparation_script
247
+
248
+ def to_dict(self):
249
+ """Returns the model properties as a dict"""
250
+ result = {}
251
+
252
+ for attr, _ in six.iteritems(self.swagger_types):
253
+ value = getattr(self, attr)
254
+ if isinstance(value, list):
255
+ result[attr] = list(map(
256
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
257
+ value
258
+ ))
259
+ elif hasattr(value, "to_dict"):
260
+ result[attr] = value.to_dict()
261
+ elif isinstance(value, dict):
262
+ result[attr] = dict(map(
263
+ lambda item: (item[0], item[1].to_dict())
264
+ if hasattr(item[1], "to_dict") else item,
265
+ value.items()
266
+ ))
267
+ else:
268
+ result[attr] = value
269
+ if issubclass(CreateCommandTemplateFromGenericModel, dict):
270
+ for key, value in self.items():
271
+ result[key] = value
272
+
273
+ return result
274
+
275
+ def to_str(self):
276
+ """Returns the string representation of the model"""
277
+ return pprint.pformat(self.to_dict())
278
+
279
+ def __repr__(self):
280
+ """For `print` and `pprint`"""
281
+ return self.to_str()
282
+
283
+ def __eq__(self, other):
284
+ """Returns true if both objects are equal"""
285
+ if not isinstance(other, CreateCommandTemplateFromGenericModel):
286
+ return False
287
+
288
+ return self.__dict__ == other.__dict__
289
+
290
+ def __ne__(self, other):
291
+ """Returns true if both objects are not equal"""
292
+ return not self == other