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,557 @@
|
|
|
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 CommandTemplate(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
|
+
'extended_allocation_command': 'str',
|
|
35
|
+
'executable_file': 'str',
|
|
36
|
+
'command_parameters': 'str',
|
|
37
|
+
'preparation_script': 'str',
|
|
38
|
+
'is_generic': 'bool',
|
|
39
|
+
'is_enabled': 'bool',
|
|
40
|
+
'template_parameters': 'list[CommandTemplateParameter]',
|
|
41
|
+
'cluster_node_type_id': 'int',
|
|
42
|
+
'cluster_node_type': 'ClusterNodeType',
|
|
43
|
+
'project_id': 'int',
|
|
44
|
+
'project': 'Project',
|
|
45
|
+
'created_from_id': 'int',
|
|
46
|
+
'created_from': 'CommandTemplate',
|
|
47
|
+
'created_at': 'datetime',
|
|
48
|
+
'modified_at': 'datetime'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
attribute_map = {
|
|
52
|
+
'id': 'Id',
|
|
53
|
+
'name': 'Name',
|
|
54
|
+
'description': 'Description',
|
|
55
|
+
'extended_allocation_command': 'ExtendedAllocationCommand',
|
|
56
|
+
'executable_file': 'ExecutableFile',
|
|
57
|
+
'command_parameters': 'CommandParameters',
|
|
58
|
+
'preparation_script': 'PreparationScript',
|
|
59
|
+
'is_generic': 'IsGeneric',
|
|
60
|
+
'is_enabled': 'IsEnabled',
|
|
61
|
+
'template_parameters': 'TemplateParameters',
|
|
62
|
+
'cluster_node_type_id': 'ClusterNodeTypeId',
|
|
63
|
+
'cluster_node_type': 'ClusterNodeType',
|
|
64
|
+
'project_id': 'ProjectId',
|
|
65
|
+
'project': 'Project',
|
|
66
|
+
'created_from_id': 'CreatedFromId',
|
|
67
|
+
'created_from': 'CreatedFrom',
|
|
68
|
+
'created_at': 'CreatedAt',
|
|
69
|
+
'modified_at': 'ModifiedAt'
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
def __init__(self, id=None, name=None, description=None, extended_allocation_command=None, executable_file=None, command_parameters=None, preparation_script=None, is_generic=None, is_enabled=None, template_parameters=None, cluster_node_type_id=None, cluster_node_type=None, project_id=None, project=None, created_from_id=None, created_from=None, created_at=None, modified_at=None): # noqa: E501
|
|
73
|
+
"""CommandTemplate - a model defined in Swagger""" # noqa: E501
|
|
74
|
+
self._id = None
|
|
75
|
+
self._name = None
|
|
76
|
+
self._description = None
|
|
77
|
+
self._extended_allocation_command = None
|
|
78
|
+
self._executable_file = None
|
|
79
|
+
self._command_parameters = None
|
|
80
|
+
self._preparation_script = None
|
|
81
|
+
self._is_generic = None
|
|
82
|
+
self._is_enabled = None
|
|
83
|
+
self._template_parameters = None
|
|
84
|
+
self._cluster_node_type_id = None
|
|
85
|
+
self._cluster_node_type = None
|
|
86
|
+
self._project_id = None
|
|
87
|
+
self._project = None
|
|
88
|
+
self._created_from_id = None
|
|
89
|
+
self._created_from = None
|
|
90
|
+
self._created_at = None
|
|
91
|
+
self._modified_at = None
|
|
92
|
+
self.discriminator = None
|
|
93
|
+
if id is not None:
|
|
94
|
+
self.id = id
|
|
95
|
+
self.name = name
|
|
96
|
+
self.description = description
|
|
97
|
+
if extended_allocation_command is not None:
|
|
98
|
+
self.extended_allocation_command = extended_allocation_command
|
|
99
|
+
self.executable_file = executable_file
|
|
100
|
+
if command_parameters is not None:
|
|
101
|
+
self.command_parameters = command_parameters
|
|
102
|
+
if preparation_script is not None:
|
|
103
|
+
self.preparation_script = preparation_script
|
|
104
|
+
self.is_generic = is_generic
|
|
105
|
+
self.is_enabled = is_enabled
|
|
106
|
+
if template_parameters is not None:
|
|
107
|
+
self.template_parameters = template_parameters
|
|
108
|
+
if cluster_node_type_id is not None:
|
|
109
|
+
self.cluster_node_type_id = cluster_node_type_id
|
|
110
|
+
if cluster_node_type is not None:
|
|
111
|
+
self.cluster_node_type = cluster_node_type
|
|
112
|
+
if project_id is not None:
|
|
113
|
+
self.project_id = project_id
|
|
114
|
+
if project is not None:
|
|
115
|
+
self.project = project
|
|
116
|
+
if created_from_id is not None:
|
|
117
|
+
self.created_from_id = created_from_id
|
|
118
|
+
if created_from is not None:
|
|
119
|
+
self.created_from = created_from
|
|
120
|
+
if created_at is not None:
|
|
121
|
+
self.created_at = created_at
|
|
122
|
+
if modified_at is not None:
|
|
123
|
+
self.modified_at = modified_at
|
|
124
|
+
|
|
125
|
+
@property
|
|
126
|
+
def id(self):
|
|
127
|
+
"""Gets the id of this CommandTemplate. # noqa: E501
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:return: The id of this CommandTemplate. # noqa: E501
|
|
131
|
+
:rtype: int
|
|
132
|
+
"""
|
|
133
|
+
return self._id
|
|
134
|
+
|
|
135
|
+
@id.setter
|
|
136
|
+
def id(self, id):
|
|
137
|
+
"""Sets the id of this CommandTemplate.
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
:param id: The id of this CommandTemplate. # noqa: E501
|
|
141
|
+
:type: int
|
|
142
|
+
"""
|
|
143
|
+
|
|
144
|
+
self._id = id
|
|
145
|
+
|
|
146
|
+
@property
|
|
147
|
+
def name(self):
|
|
148
|
+
"""Gets the name of this CommandTemplate. # noqa: E501
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:return: The name of this CommandTemplate. # noqa: E501
|
|
152
|
+
:rtype: str
|
|
153
|
+
"""
|
|
154
|
+
return self._name
|
|
155
|
+
|
|
156
|
+
@name.setter
|
|
157
|
+
def name(self, name):
|
|
158
|
+
"""Sets the name of this CommandTemplate.
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
:param name: The name of this CommandTemplate. # noqa: E501
|
|
162
|
+
:type: str
|
|
163
|
+
"""
|
|
164
|
+
if name is None:
|
|
165
|
+
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
|
166
|
+
|
|
167
|
+
self._name = name
|
|
168
|
+
|
|
169
|
+
@property
|
|
170
|
+
def description(self):
|
|
171
|
+
"""Gets the description of this CommandTemplate. # noqa: E501
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
:return: The description of this CommandTemplate. # noqa: E501
|
|
175
|
+
:rtype: str
|
|
176
|
+
"""
|
|
177
|
+
return self._description
|
|
178
|
+
|
|
179
|
+
@description.setter
|
|
180
|
+
def description(self, description):
|
|
181
|
+
"""Sets the description of this CommandTemplate.
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
:param description: The description of this CommandTemplate. # noqa: E501
|
|
185
|
+
:type: str
|
|
186
|
+
"""
|
|
187
|
+
if description is None:
|
|
188
|
+
raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501
|
|
189
|
+
|
|
190
|
+
self._description = description
|
|
191
|
+
|
|
192
|
+
@property
|
|
193
|
+
def extended_allocation_command(self):
|
|
194
|
+
"""Gets the extended_allocation_command of this CommandTemplate. # noqa: E501
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
:return: The extended_allocation_command of this CommandTemplate. # noqa: E501
|
|
198
|
+
:rtype: str
|
|
199
|
+
"""
|
|
200
|
+
return self._extended_allocation_command
|
|
201
|
+
|
|
202
|
+
@extended_allocation_command.setter
|
|
203
|
+
def extended_allocation_command(self, extended_allocation_command):
|
|
204
|
+
"""Sets the extended_allocation_command of this CommandTemplate.
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
:param extended_allocation_command: The extended_allocation_command of this CommandTemplate. # noqa: E501
|
|
208
|
+
:type: str
|
|
209
|
+
"""
|
|
210
|
+
|
|
211
|
+
self._extended_allocation_command = extended_allocation_command
|
|
212
|
+
|
|
213
|
+
@property
|
|
214
|
+
def executable_file(self):
|
|
215
|
+
"""Gets the executable_file of this CommandTemplate. # noqa: E501
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
:return: The executable_file of this CommandTemplate. # noqa: E501
|
|
219
|
+
:rtype: str
|
|
220
|
+
"""
|
|
221
|
+
return self._executable_file
|
|
222
|
+
|
|
223
|
+
@executable_file.setter
|
|
224
|
+
def executable_file(self, executable_file):
|
|
225
|
+
"""Sets the executable_file of this CommandTemplate.
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
:param executable_file: The executable_file of this CommandTemplate. # noqa: E501
|
|
229
|
+
:type: str
|
|
230
|
+
"""
|
|
231
|
+
if executable_file is None:
|
|
232
|
+
raise ValueError("Invalid value for `executable_file`, must not be `None`") # noqa: E501
|
|
233
|
+
|
|
234
|
+
self._executable_file = executable_file
|
|
235
|
+
|
|
236
|
+
@property
|
|
237
|
+
def command_parameters(self):
|
|
238
|
+
"""Gets the command_parameters of this CommandTemplate. # noqa: E501
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
:return: The command_parameters of this CommandTemplate. # noqa: E501
|
|
242
|
+
:rtype: str
|
|
243
|
+
"""
|
|
244
|
+
return self._command_parameters
|
|
245
|
+
|
|
246
|
+
@command_parameters.setter
|
|
247
|
+
def command_parameters(self, command_parameters):
|
|
248
|
+
"""Sets the command_parameters of this CommandTemplate.
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
:param command_parameters: The command_parameters of this CommandTemplate. # noqa: E501
|
|
252
|
+
:type: str
|
|
253
|
+
"""
|
|
254
|
+
|
|
255
|
+
self._command_parameters = command_parameters
|
|
256
|
+
|
|
257
|
+
@property
|
|
258
|
+
def preparation_script(self):
|
|
259
|
+
"""Gets the preparation_script of this CommandTemplate. # noqa: E501
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
:return: The preparation_script of this CommandTemplate. # noqa: E501
|
|
263
|
+
:rtype: str
|
|
264
|
+
"""
|
|
265
|
+
return self._preparation_script
|
|
266
|
+
|
|
267
|
+
@preparation_script.setter
|
|
268
|
+
def preparation_script(self, preparation_script):
|
|
269
|
+
"""Sets the preparation_script of this CommandTemplate.
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
:param preparation_script: The preparation_script of this CommandTemplate. # noqa: E501
|
|
273
|
+
:type: str
|
|
274
|
+
"""
|
|
275
|
+
|
|
276
|
+
self._preparation_script = preparation_script
|
|
277
|
+
|
|
278
|
+
@property
|
|
279
|
+
def is_generic(self):
|
|
280
|
+
"""Gets the is_generic of this CommandTemplate. # noqa: E501
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
:return: The is_generic of this CommandTemplate. # noqa: E501
|
|
284
|
+
:rtype: bool
|
|
285
|
+
"""
|
|
286
|
+
return self._is_generic
|
|
287
|
+
|
|
288
|
+
@is_generic.setter
|
|
289
|
+
def is_generic(self, is_generic):
|
|
290
|
+
"""Sets the is_generic of this CommandTemplate.
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
:param is_generic: The is_generic of this CommandTemplate. # noqa: E501
|
|
294
|
+
:type: bool
|
|
295
|
+
"""
|
|
296
|
+
if is_generic is None:
|
|
297
|
+
raise ValueError("Invalid value for `is_generic`, must not be `None`") # noqa: E501
|
|
298
|
+
|
|
299
|
+
self._is_generic = is_generic
|
|
300
|
+
|
|
301
|
+
@property
|
|
302
|
+
def is_enabled(self):
|
|
303
|
+
"""Gets the is_enabled of this CommandTemplate. # noqa: E501
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
:return: The is_enabled of this CommandTemplate. # noqa: E501
|
|
307
|
+
:rtype: bool
|
|
308
|
+
"""
|
|
309
|
+
return self._is_enabled
|
|
310
|
+
|
|
311
|
+
@is_enabled.setter
|
|
312
|
+
def is_enabled(self, is_enabled):
|
|
313
|
+
"""Sets the is_enabled of this CommandTemplate.
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
:param is_enabled: The is_enabled of this CommandTemplate. # noqa: E501
|
|
317
|
+
:type: bool
|
|
318
|
+
"""
|
|
319
|
+
if is_enabled is None:
|
|
320
|
+
raise ValueError("Invalid value for `is_enabled`, must not be `None`") # noqa: E501
|
|
321
|
+
|
|
322
|
+
self._is_enabled = is_enabled
|
|
323
|
+
|
|
324
|
+
@property
|
|
325
|
+
def template_parameters(self):
|
|
326
|
+
"""Gets the template_parameters of this CommandTemplate. # noqa: E501
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
:return: The template_parameters of this CommandTemplate. # noqa: E501
|
|
330
|
+
:rtype: list[CommandTemplateParameter]
|
|
331
|
+
"""
|
|
332
|
+
return self._template_parameters
|
|
333
|
+
|
|
334
|
+
@template_parameters.setter
|
|
335
|
+
def template_parameters(self, template_parameters):
|
|
336
|
+
"""Sets the template_parameters of this CommandTemplate.
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
:param template_parameters: The template_parameters of this CommandTemplate. # noqa: E501
|
|
340
|
+
:type: list[CommandTemplateParameter]
|
|
341
|
+
"""
|
|
342
|
+
|
|
343
|
+
self._template_parameters = template_parameters
|
|
344
|
+
|
|
345
|
+
@property
|
|
346
|
+
def cluster_node_type_id(self):
|
|
347
|
+
"""Gets the cluster_node_type_id of this CommandTemplate. # noqa: E501
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
:return: The cluster_node_type_id of this CommandTemplate. # noqa: E501
|
|
351
|
+
:rtype: int
|
|
352
|
+
"""
|
|
353
|
+
return self._cluster_node_type_id
|
|
354
|
+
|
|
355
|
+
@cluster_node_type_id.setter
|
|
356
|
+
def cluster_node_type_id(self, cluster_node_type_id):
|
|
357
|
+
"""Sets the cluster_node_type_id of this CommandTemplate.
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
:param cluster_node_type_id: The cluster_node_type_id of this CommandTemplate. # noqa: E501
|
|
361
|
+
:type: int
|
|
362
|
+
"""
|
|
363
|
+
|
|
364
|
+
self._cluster_node_type_id = cluster_node_type_id
|
|
365
|
+
|
|
366
|
+
@property
|
|
367
|
+
def cluster_node_type(self):
|
|
368
|
+
"""Gets the cluster_node_type of this CommandTemplate. # noqa: E501
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
:return: The cluster_node_type of this CommandTemplate. # noqa: E501
|
|
372
|
+
:rtype: ClusterNodeType
|
|
373
|
+
"""
|
|
374
|
+
return self._cluster_node_type
|
|
375
|
+
|
|
376
|
+
@cluster_node_type.setter
|
|
377
|
+
def cluster_node_type(self, cluster_node_type):
|
|
378
|
+
"""Sets the cluster_node_type of this CommandTemplate.
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
:param cluster_node_type: The cluster_node_type of this CommandTemplate. # noqa: E501
|
|
382
|
+
:type: ClusterNodeType
|
|
383
|
+
"""
|
|
384
|
+
|
|
385
|
+
self._cluster_node_type = cluster_node_type
|
|
386
|
+
|
|
387
|
+
@property
|
|
388
|
+
def project_id(self):
|
|
389
|
+
"""Gets the project_id of this CommandTemplate. # noqa: E501
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
:return: The project_id of this CommandTemplate. # noqa: E501
|
|
393
|
+
:rtype: int
|
|
394
|
+
"""
|
|
395
|
+
return self._project_id
|
|
396
|
+
|
|
397
|
+
@project_id.setter
|
|
398
|
+
def project_id(self, project_id):
|
|
399
|
+
"""Sets the project_id of this CommandTemplate.
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
:param project_id: The project_id of this CommandTemplate. # noqa: E501
|
|
403
|
+
:type: int
|
|
404
|
+
"""
|
|
405
|
+
|
|
406
|
+
self._project_id = project_id
|
|
407
|
+
|
|
408
|
+
@property
|
|
409
|
+
def project(self):
|
|
410
|
+
"""Gets the project of this CommandTemplate. # noqa: E501
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
:return: The project of this CommandTemplate. # noqa: E501
|
|
414
|
+
:rtype: Project
|
|
415
|
+
"""
|
|
416
|
+
return self._project
|
|
417
|
+
|
|
418
|
+
@project.setter
|
|
419
|
+
def project(self, project):
|
|
420
|
+
"""Sets the project of this CommandTemplate.
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
:param project: The project of this CommandTemplate. # noqa: E501
|
|
424
|
+
:type: Project
|
|
425
|
+
"""
|
|
426
|
+
|
|
427
|
+
self._project = project
|
|
428
|
+
|
|
429
|
+
@property
|
|
430
|
+
def created_from_id(self):
|
|
431
|
+
"""Gets the created_from_id of this CommandTemplate. # noqa: E501
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
:return: The created_from_id of this CommandTemplate. # noqa: E501
|
|
435
|
+
:rtype: int
|
|
436
|
+
"""
|
|
437
|
+
return self._created_from_id
|
|
438
|
+
|
|
439
|
+
@created_from_id.setter
|
|
440
|
+
def created_from_id(self, created_from_id):
|
|
441
|
+
"""Sets the created_from_id of this CommandTemplate.
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
:param created_from_id: The created_from_id of this CommandTemplate. # noqa: E501
|
|
445
|
+
:type: int
|
|
446
|
+
"""
|
|
447
|
+
|
|
448
|
+
self._created_from_id = created_from_id
|
|
449
|
+
|
|
450
|
+
@property
|
|
451
|
+
def created_from(self):
|
|
452
|
+
"""Gets the created_from of this CommandTemplate. # noqa: E501
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
:return: The created_from of this CommandTemplate. # noqa: E501
|
|
456
|
+
:rtype: CommandTemplate
|
|
457
|
+
"""
|
|
458
|
+
return self._created_from
|
|
459
|
+
|
|
460
|
+
@created_from.setter
|
|
461
|
+
def created_from(self, created_from):
|
|
462
|
+
"""Sets the created_from of this CommandTemplate.
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
:param created_from: The created_from of this CommandTemplate. # noqa: E501
|
|
466
|
+
:type: CommandTemplate
|
|
467
|
+
"""
|
|
468
|
+
|
|
469
|
+
self._created_from = created_from
|
|
470
|
+
|
|
471
|
+
@property
|
|
472
|
+
def created_at(self):
|
|
473
|
+
"""Gets the created_at of this CommandTemplate. # noqa: E501
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
:return: The created_at of this CommandTemplate. # noqa: E501
|
|
477
|
+
:rtype: datetime
|
|
478
|
+
"""
|
|
479
|
+
return self._created_at
|
|
480
|
+
|
|
481
|
+
@created_at.setter
|
|
482
|
+
def created_at(self, created_at):
|
|
483
|
+
"""Sets the created_at of this CommandTemplate.
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
:param created_at: The created_at of this CommandTemplate. # noqa: E501
|
|
487
|
+
:type: datetime
|
|
488
|
+
"""
|
|
489
|
+
|
|
490
|
+
self._created_at = created_at
|
|
491
|
+
|
|
492
|
+
@property
|
|
493
|
+
def modified_at(self):
|
|
494
|
+
"""Gets the modified_at of this CommandTemplate. # noqa: E501
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
:return: The modified_at of this CommandTemplate. # noqa: E501
|
|
498
|
+
:rtype: datetime
|
|
499
|
+
"""
|
|
500
|
+
return self._modified_at
|
|
501
|
+
|
|
502
|
+
@modified_at.setter
|
|
503
|
+
def modified_at(self, modified_at):
|
|
504
|
+
"""Sets the modified_at of this CommandTemplate.
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
:param modified_at: The modified_at of this CommandTemplate. # noqa: E501
|
|
508
|
+
:type: datetime
|
|
509
|
+
"""
|
|
510
|
+
|
|
511
|
+
self._modified_at = modified_at
|
|
512
|
+
|
|
513
|
+
def to_dict(self):
|
|
514
|
+
"""Returns the model properties as a dict"""
|
|
515
|
+
result = {}
|
|
516
|
+
|
|
517
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
518
|
+
value = getattr(self, attr)
|
|
519
|
+
if isinstance(value, list):
|
|
520
|
+
result[attr] = list(map(
|
|
521
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
522
|
+
value
|
|
523
|
+
))
|
|
524
|
+
elif hasattr(value, "to_dict"):
|
|
525
|
+
result[attr] = value.to_dict()
|
|
526
|
+
elif isinstance(value, dict):
|
|
527
|
+
result[attr] = dict(map(
|
|
528
|
+
lambda item: (item[0], item[1].to_dict())
|
|
529
|
+
if hasattr(item[1], "to_dict") else item,
|
|
530
|
+
value.items()
|
|
531
|
+
))
|
|
532
|
+
else:
|
|
533
|
+
result[attr] = value
|
|
534
|
+
if issubclass(CommandTemplate, dict):
|
|
535
|
+
for key, value in self.items():
|
|
536
|
+
result[key] = value
|
|
537
|
+
|
|
538
|
+
return result
|
|
539
|
+
|
|
540
|
+
def to_str(self):
|
|
541
|
+
"""Returns the string representation of the model"""
|
|
542
|
+
return pprint.pformat(self.to_dict())
|
|
543
|
+
|
|
544
|
+
def __repr__(self):
|
|
545
|
+
"""For `print` and `pprint`"""
|
|
546
|
+
return self.to_str()
|
|
547
|
+
|
|
548
|
+
def __eq__(self, other):
|
|
549
|
+
"""Returns true if both objects are equal"""
|
|
550
|
+
if not isinstance(other, CommandTemplate):
|
|
551
|
+
return False
|
|
552
|
+
|
|
553
|
+
return self.__dict__ == other.__dict__
|
|
554
|
+
|
|
555
|
+
def __ne__(self, other):
|
|
556
|
+
"""Returns true if both objects are not equal"""
|
|
557
|
+
return not self == other
|