huaweicloudsdkoctopus 3.1.160__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.
- huaweicloudsdkoctopus/__init__.py +0 -0
- huaweicloudsdkoctopus/v2/__init__.py +122 -0
- huaweicloudsdkoctopus/v2/model/__init__.py +119 -0
- huaweicloudsdkoctopus/v2/model/alg_image_create_srlz.py +350 -0
- huaweicloudsdkoctopus/v2/model/alg_image_list_srlz.py +266 -0
- huaweicloudsdkoctopus/v2/model/algorithm_create_srlz.py +399 -0
- huaweicloudsdkoctopus/v2/model/algorithm_list_srlz.py +266 -0
- huaweicloudsdkoctopus/v2/model/batch_config_abc_info_srlz.py +142 -0
- huaweicloudsdkoctopus/v2/model/batch_config_evaluation_info_srlz.py +142 -0
- huaweicloudsdkoctopus/v2/model/batch_config_image_info_srlz.py +198 -0
- huaweicloudsdkoctopus/v2/model/batch_config_msg_notify_srlz.py +115 -0
- huaweicloudsdkoctopus/v2/model/batch_config_scenario_srlz.py +173 -0
- huaweicloudsdkoctopus/v2/model/batch_config_srlz.py +806 -0
- huaweicloudsdkoctopus/v2/model/batch_create_request.py +198 -0
- huaweicloudsdkoctopus/v2/model/batch_srlz.py +604 -0
- huaweicloudsdkoctopus/v2/model/build_create_srlz.py +115 -0
- huaweicloudsdkoctopus/v2/model/build_update_srlz.py +143 -0
- huaweicloudsdkoctopus/v2/model/category_f62_enum.py +89 -0
- huaweicloudsdkoctopus/v2/model/compilation_create_srlz.py +255 -0
- huaweicloudsdkoctopus/v2/model/compilation_update_srlz.py +311 -0
- huaweicloudsdkoctopus/v2/model/create_sim_algorithm_images_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_algorithm_images_response.py +361 -0
- huaweicloudsdkoctopus/v2/model/create_sim_algorithms_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_algorithms_response.py +404 -0
- huaweicloudsdkoctopus/v2/model/create_sim_batch_configs_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_batch_configs_response.py +819 -0
- huaweicloudsdkoctopus/v2/model/create_sim_batches_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_batches_response.py +619 -0
- huaweicloudsdkoctopus/v2/model/create_sim_extensions_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_extensions_response.py +314 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_maps_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_maps_response.py +253 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_files_request.py +139 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_files_response.py +377 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_response.py +618 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_algorithm_images_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_algorithm_images_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_algorithms_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_algorithms_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_batch_configs_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_batch_configs_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_batches_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_batches_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_extensions_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_extensions_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/extension_srlz.py +353 -0
- huaweicloudsdkoctopus/v2/model/extensions_create_srlz.py +306 -0
- huaweicloudsdkoctopus/v2/model/extensions_list_srlz.py +291 -0
- huaweicloudsdkoctopus/v2/model/family_enum.py +91 -0
- huaweicloudsdkoctopus/v2/model/file_create_req_srlz.py +142 -0
- huaweicloudsdkoctopus/v2/model/file_create_srlz.py +366 -0
- huaweicloudsdkoctopus/v2/model/file_nested_create_req_srlz.py +142 -0
- huaweicloudsdkoctopus/v2/model/file_nested_srlz.py +279 -0
- huaweicloudsdkoctopus/v2/model/file_retrieve_srlz.py +310 -0
- huaweicloudsdkoctopus/v2/model/label_brief_srlz.py +279 -0
- huaweicloudsdkoctopus/v2/model/list_sim_algorithm_images_request.py +339 -0
- huaweicloudsdkoctopus/v2/model/list_sim_algorithm_images_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/list_sim_algorithms_request.py +281 -0
- huaweicloudsdkoctopus/v2/model/list_sim_algorithms_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/list_sim_batch_configs_request.py +625 -0
- huaweicloudsdkoctopus/v2/model/list_sim_batch_configs_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/list_sim_batches_request.py +426 -0
- huaweicloudsdkoctopus/v2/model/list_sim_batches_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/list_sim_extensions_request.py +202 -0
- huaweicloudsdkoctopus/v2/model/list_sim_extensions_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/list_sim_simulations_request.py +401 -0
- huaweicloudsdkoctopus/v2/model/list_sim_simulations_response.py +189 -0
- huaweicloudsdkoctopus/v2/model/list_sim_sm_scenarios_request.py +547 -0
- huaweicloudsdkoctopus/v2/model/list_sim_sm_scenarios_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/map_create_req_srlz.py +162 -0
- huaweicloudsdkoctopus/v2/model/map_version_enum.py +91 -0
- huaweicloudsdkoctopus/v2/model/mutable_file_srlz.py +114 -0
- huaweicloudsdkoctopus/v2/model/patched_alg_image_update_srlz.py +302 -0
- huaweicloudsdkoctopus/v2/model/patched_algorithm_update_srlz.py +796 -0
- huaweicloudsdkoctopus/v2/model/patched_file_detail_srlz.py +144 -0
- huaweicloudsdkoctopus/v2/model/post_response.py +140 -0
- huaweicloudsdkoctopus/v2/model/post_response_field.py +236 -0
- huaweicloudsdkoctopus/v2/model/priority_enum.py +91 -0
- huaweicloudsdkoctopus/v2/model/record_mode_enum.py +88 -0
- huaweicloudsdkoctopus/v2/model/run_image_status_enum.py +91 -0
- huaweicloudsdkoctopus/v2/model/run_srlz.py +254 -0
- huaweicloudsdkoctopus/v2/model/scenario_create_req_srlz.py +439 -0
- huaweicloudsdkoctopus/v2/model/scenario_list_srlz.py +548 -0
- huaweicloudsdkoctopus/v2/model/scenario_status_enum.py +92 -0
- huaweicloudsdkoctopus/v2/model/scenario_version_enum.py +91 -0
- huaweicloudsdkoctopus/v2/model/show_sim_algorithm_image_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/show_sim_algorithm_image_response.py +361 -0
- huaweicloudsdkoctopus/v2/model/show_sim_algorithm_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/show_sim_algorithm_response.py +377 -0
- huaweicloudsdkoctopus/v2/model/show_sim_batch_config_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/show_sim_batch_config_response.py +819 -0
- huaweicloudsdkoctopus/v2/model/show_sim_extension_request.py +110 -0
- huaweicloudsdkoctopus/v2/model/show_sim_extension_response.py +353 -0
- huaweicloudsdkoctopus/v2/model/show_sim_simulations_files_request.py +142 -0
- huaweicloudsdkoctopus/v2/model/show_sim_simulations_files_response.py +290 -0
- huaweicloudsdkoctopus/v2/model/simulation_eva_result_metric_srlz.py +260 -0
- huaweicloudsdkoctopus/v2/model/simulation_eva_result_srlz.py +231 -0
- huaweicloudsdkoctopus/v2/model/simulation_evaluation_metric_srlz.py +289 -0
- huaweicloudsdkoctopus/v2/model/simulation_evaluation_srlz.py +231 -0
- huaweicloudsdkoctopus/v2/model/simulation_file_path_srlz.py +347 -0
- huaweicloudsdkoctopus/v2/model/simulation_srlz.py +708 -0
- huaweicloudsdkoctopus/v2/model/status15e_enum.py +99 -0
- huaweicloudsdkoctopus/v2/model/status6a7_enum.py +106 -0
- huaweicloudsdkoctopus/v2/model/type87e_enum.py +88 -0
- huaweicloudsdkoctopus/v2/model/update_sim_algorithm_images_request.py +139 -0
- huaweicloudsdkoctopus/v2/model/update_sim_algorithm_images_response.py +303 -0
- huaweicloudsdkoctopus/v2/model/update_sim_algorithms_request.py +139 -0
- huaweicloudsdkoctopus/v2/model/update_sim_algorithms_response.py +431 -0
- huaweicloudsdkoctopus/v2/model/update_sim_batch_configs_extensions_request.py +138 -0
- huaweicloudsdkoctopus/v2/model/update_sim_batch_configs_extensions_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/update_sim_extensions_request.py +139 -0
- huaweicloudsdkoctopus/v2/model/update_sim_extensions_response.py +356 -0
- huaweicloudsdkoctopus/v2/model/update_sim_sm_maps_files_request.py +167 -0
- huaweicloudsdkoctopus/v2/model/update_sim_sm_maps_files_response.py +435 -0
- huaweicloudsdkoctopus/v2/model/update_sim_sm_scenarios_files_request.py +167 -0
- huaweicloudsdkoctopus/v2/model/update_sim_sm_scenarios_files_response.py +435 -0
- huaweicloudsdkoctopus/v2/octopus_async_client.py +2262 -0
- huaweicloudsdkoctopus/v2/octopus_client.py +2259 -0
- huaweicloudsdkoctopus/v2/region/__init__.py +0 -0
- huaweicloudsdkoctopus/v2/region/octopus_region.py +31 -0
- huaweicloudsdkoctopus-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkoctopus-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkoctopus-3.1.160.dist-info/RECORD +126 -0
- huaweicloudsdkoctopus-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkoctopus-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,303 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class UpdateSimAlgorithmImagesResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'url': 'str',
|
22
|
+
'id': 'int',
|
23
|
+
'created_at': 'float',
|
24
|
+
'updated_at': 'float',
|
25
|
+
'command': 'str',
|
26
|
+
'workspace': 'str',
|
27
|
+
'keyword': 'str',
|
28
|
+
'pkg_log_dir': 'str'
|
29
|
+
}
|
30
|
+
|
31
|
+
attribute_map = {
|
32
|
+
'url': 'url',
|
33
|
+
'id': 'id',
|
34
|
+
'created_at': 'created_at',
|
35
|
+
'updated_at': 'updated_at',
|
36
|
+
'command': 'command',
|
37
|
+
'workspace': 'workspace',
|
38
|
+
'keyword': 'keyword',
|
39
|
+
'pkg_log_dir': 'pkg_log_dir'
|
40
|
+
}
|
41
|
+
|
42
|
+
def __init__(self, url=None, id=None, created_at=None, updated_at=None, command=None, workspace=None, keyword=None, pkg_log_dir=None):
|
43
|
+
r"""UpdateSimAlgorithmImagesResponse
|
44
|
+
|
45
|
+
The model defined in huaweicloud sdk
|
46
|
+
|
47
|
+
:param url:
|
48
|
+
:type url: str
|
49
|
+
:param id:
|
50
|
+
:type id: int
|
51
|
+
:param created_at:
|
52
|
+
:type created_at: float
|
53
|
+
:param updated_at:
|
54
|
+
:type updated_at: float
|
55
|
+
:param command: 运行命令
|
56
|
+
:type command: str
|
57
|
+
:param workspace: 运行目录,构建类型需要
|
58
|
+
:type workspace: str
|
59
|
+
:param keyword: 算法关键字
|
60
|
+
:type keyword: str
|
61
|
+
:param pkg_log_dir: 目录打包路径
|
62
|
+
:type pkg_log_dir: str
|
63
|
+
"""
|
64
|
+
|
65
|
+
super(UpdateSimAlgorithmImagesResponse, self).__init__()
|
66
|
+
|
67
|
+
self._url = None
|
68
|
+
self._id = None
|
69
|
+
self._created_at = None
|
70
|
+
self._updated_at = None
|
71
|
+
self._command = None
|
72
|
+
self._workspace = None
|
73
|
+
self._keyword = None
|
74
|
+
self._pkg_log_dir = None
|
75
|
+
self.discriminator = None
|
76
|
+
|
77
|
+
if url is not None:
|
78
|
+
self.url = url
|
79
|
+
if id is not None:
|
80
|
+
self.id = id
|
81
|
+
if created_at is not None:
|
82
|
+
self.created_at = created_at
|
83
|
+
if updated_at is not None:
|
84
|
+
self.updated_at = updated_at
|
85
|
+
if command is not None:
|
86
|
+
self.command = command
|
87
|
+
if workspace is not None:
|
88
|
+
self.workspace = workspace
|
89
|
+
if keyword is not None:
|
90
|
+
self.keyword = keyword
|
91
|
+
if pkg_log_dir is not None:
|
92
|
+
self.pkg_log_dir = pkg_log_dir
|
93
|
+
|
94
|
+
@property
|
95
|
+
def url(self):
|
96
|
+
r"""Gets the url of this UpdateSimAlgorithmImagesResponse.
|
97
|
+
|
98
|
+
:return: The url of this UpdateSimAlgorithmImagesResponse.
|
99
|
+
:rtype: str
|
100
|
+
"""
|
101
|
+
return self._url
|
102
|
+
|
103
|
+
@url.setter
|
104
|
+
def url(self, url):
|
105
|
+
r"""Sets the url of this UpdateSimAlgorithmImagesResponse.
|
106
|
+
|
107
|
+
:param url: The url of this UpdateSimAlgorithmImagesResponse.
|
108
|
+
:type url: str
|
109
|
+
"""
|
110
|
+
self._url = url
|
111
|
+
|
112
|
+
@property
|
113
|
+
def id(self):
|
114
|
+
r"""Gets the id of this UpdateSimAlgorithmImagesResponse.
|
115
|
+
|
116
|
+
:return: The id of this UpdateSimAlgorithmImagesResponse.
|
117
|
+
:rtype: int
|
118
|
+
"""
|
119
|
+
return self._id
|
120
|
+
|
121
|
+
@id.setter
|
122
|
+
def id(self, id):
|
123
|
+
r"""Sets the id of this UpdateSimAlgorithmImagesResponse.
|
124
|
+
|
125
|
+
:param id: The id of this UpdateSimAlgorithmImagesResponse.
|
126
|
+
:type id: int
|
127
|
+
"""
|
128
|
+
self._id = id
|
129
|
+
|
130
|
+
@property
|
131
|
+
def created_at(self):
|
132
|
+
r"""Gets the created_at of this UpdateSimAlgorithmImagesResponse.
|
133
|
+
|
134
|
+
:return: The created_at of this UpdateSimAlgorithmImagesResponse.
|
135
|
+
:rtype: float
|
136
|
+
"""
|
137
|
+
return self._created_at
|
138
|
+
|
139
|
+
@created_at.setter
|
140
|
+
def created_at(self, created_at):
|
141
|
+
r"""Sets the created_at of this UpdateSimAlgorithmImagesResponse.
|
142
|
+
|
143
|
+
:param created_at: The created_at of this UpdateSimAlgorithmImagesResponse.
|
144
|
+
:type created_at: float
|
145
|
+
"""
|
146
|
+
self._created_at = created_at
|
147
|
+
|
148
|
+
@property
|
149
|
+
def updated_at(self):
|
150
|
+
r"""Gets the updated_at of this UpdateSimAlgorithmImagesResponse.
|
151
|
+
|
152
|
+
:return: The updated_at of this UpdateSimAlgorithmImagesResponse.
|
153
|
+
:rtype: float
|
154
|
+
"""
|
155
|
+
return self._updated_at
|
156
|
+
|
157
|
+
@updated_at.setter
|
158
|
+
def updated_at(self, updated_at):
|
159
|
+
r"""Sets the updated_at of this UpdateSimAlgorithmImagesResponse.
|
160
|
+
|
161
|
+
:param updated_at: The updated_at of this UpdateSimAlgorithmImagesResponse.
|
162
|
+
:type updated_at: float
|
163
|
+
"""
|
164
|
+
self._updated_at = updated_at
|
165
|
+
|
166
|
+
@property
|
167
|
+
def command(self):
|
168
|
+
r"""Gets the command of this UpdateSimAlgorithmImagesResponse.
|
169
|
+
|
170
|
+
运行命令
|
171
|
+
|
172
|
+
:return: The command of this UpdateSimAlgorithmImagesResponse.
|
173
|
+
:rtype: str
|
174
|
+
"""
|
175
|
+
return self._command
|
176
|
+
|
177
|
+
@command.setter
|
178
|
+
def command(self, command):
|
179
|
+
r"""Sets the command of this UpdateSimAlgorithmImagesResponse.
|
180
|
+
|
181
|
+
运行命令
|
182
|
+
|
183
|
+
:param command: The command of this UpdateSimAlgorithmImagesResponse.
|
184
|
+
:type command: str
|
185
|
+
"""
|
186
|
+
self._command = command
|
187
|
+
|
188
|
+
@property
|
189
|
+
def workspace(self):
|
190
|
+
r"""Gets the workspace of this UpdateSimAlgorithmImagesResponse.
|
191
|
+
|
192
|
+
运行目录,构建类型需要
|
193
|
+
|
194
|
+
:return: The workspace of this UpdateSimAlgorithmImagesResponse.
|
195
|
+
:rtype: str
|
196
|
+
"""
|
197
|
+
return self._workspace
|
198
|
+
|
199
|
+
@workspace.setter
|
200
|
+
def workspace(self, workspace):
|
201
|
+
r"""Sets the workspace of this UpdateSimAlgorithmImagesResponse.
|
202
|
+
|
203
|
+
运行目录,构建类型需要
|
204
|
+
|
205
|
+
:param workspace: The workspace of this UpdateSimAlgorithmImagesResponse.
|
206
|
+
:type workspace: str
|
207
|
+
"""
|
208
|
+
self._workspace = workspace
|
209
|
+
|
210
|
+
@property
|
211
|
+
def keyword(self):
|
212
|
+
r"""Gets the keyword of this UpdateSimAlgorithmImagesResponse.
|
213
|
+
|
214
|
+
算法关键字
|
215
|
+
|
216
|
+
:return: The keyword of this UpdateSimAlgorithmImagesResponse.
|
217
|
+
:rtype: str
|
218
|
+
"""
|
219
|
+
return self._keyword
|
220
|
+
|
221
|
+
@keyword.setter
|
222
|
+
def keyword(self, keyword):
|
223
|
+
r"""Sets the keyword of this UpdateSimAlgorithmImagesResponse.
|
224
|
+
|
225
|
+
算法关键字
|
226
|
+
|
227
|
+
:param keyword: The keyword of this UpdateSimAlgorithmImagesResponse.
|
228
|
+
:type keyword: str
|
229
|
+
"""
|
230
|
+
self._keyword = keyword
|
231
|
+
|
232
|
+
@property
|
233
|
+
def pkg_log_dir(self):
|
234
|
+
r"""Gets the pkg_log_dir of this UpdateSimAlgorithmImagesResponse.
|
235
|
+
|
236
|
+
目录打包路径
|
237
|
+
|
238
|
+
:return: The pkg_log_dir of this UpdateSimAlgorithmImagesResponse.
|
239
|
+
:rtype: str
|
240
|
+
"""
|
241
|
+
return self._pkg_log_dir
|
242
|
+
|
243
|
+
@pkg_log_dir.setter
|
244
|
+
def pkg_log_dir(self, pkg_log_dir):
|
245
|
+
r"""Sets the pkg_log_dir of this UpdateSimAlgorithmImagesResponse.
|
246
|
+
|
247
|
+
目录打包路径
|
248
|
+
|
249
|
+
:param pkg_log_dir: The pkg_log_dir of this UpdateSimAlgorithmImagesResponse.
|
250
|
+
:type pkg_log_dir: str
|
251
|
+
"""
|
252
|
+
self._pkg_log_dir = pkg_log_dir
|
253
|
+
|
254
|
+
def to_dict(self):
|
255
|
+
"""Returns the model properties as a dict"""
|
256
|
+
result = {}
|
257
|
+
|
258
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
259
|
+
value = getattr(self, attr)
|
260
|
+
if isinstance(value, list):
|
261
|
+
result[attr] = list(map(
|
262
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
263
|
+
value
|
264
|
+
))
|
265
|
+
elif hasattr(value, "to_dict"):
|
266
|
+
result[attr] = value.to_dict()
|
267
|
+
elif isinstance(value, dict):
|
268
|
+
result[attr] = dict(map(
|
269
|
+
lambda item: (item[0], item[1].to_dict())
|
270
|
+
if hasattr(item[1], "to_dict") else item,
|
271
|
+
value.items()
|
272
|
+
))
|
273
|
+
else:
|
274
|
+
if attr in self.sensitive_list:
|
275
|
+
result[attr] = "****"
|
276
|
+
else:
|
277
|
+
result[attr] = value
|
278
|
+
|
279
|
+
return result
|
280
|
+
|
281
|
+
def to_str(self):
|
282
|
+
"""Returns the string representation of the model"""
|
283
|
+
import simplejson as json
|
284
|
+
if six.PY2:
|
285
|
+
import sys
|
286
|
+
reload(sys)
|
287
|
+
sys.setdefaultencoding("utf-8")
|
288
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
289
|
+
|
290
|
+
def __repr__(self):
|
291
|
+
"""For `print`"""
|
292
|
+
return self.to_str()
|
293
|
+
|
294
|
+
def __eq__(self, other):
|
295
|
+
"""Returns true if both objects are equal"""
|
296
|
+
if not isinstance(other, UpdateSimAlgorithmImagesResponse):
|
297
|
+
return False
|
298
|
+
|
299
|
+
return self.__dict__ == other.__dict__
|
300
|
+
|
301
|
+
def __ne__(self, other):
|
302
|
+
"""Returns true if both objects are not equal"""
|
303
|
+
return not self == other
|
@@ -0,0 +1,139 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UpdateSimAlgorithmsRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'id': 'int',
|
21
|
+
'body': 'PatchedAlgorithmUpdateSrlz'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'id': 'id',
|
26
|
+
'body': 'body'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, id=None, body=None):
|
30
|
+
r"""UpdateSimAlgorithmsRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param id: A unique integer value identifying this algorithm.
|
35
|
+
:type id: int
|
36
|
+
:param body: Body of the UpdateSimAlgorithmsRequest
|
37
|
+
:type body: :class:`huaweicloudsdkoctopus.v2.PatchedAlgorithmUpdateSrlz`
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._id = None
|
43
|
+
self._body = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.id = id
|
47
|
+
if body is not None:
|
48
|
+
self.body = body
|
49
|
+
|
50
|
+
@property
|
51
|
+
def id(self):
|
52
|
+
r"""Gets the id of this UpdateSimAlgorithmsRequest.
|
53
|
+
|
54
|
+
A unique integer value identifying this algorithm.
|
55
|
+
|
56
|
+
:return: The id of this UpdateSimAlgorithmsRequest.
|
57
|
+
:rtype: int
|
58
|
+
"""
|
59
|
+
return self._id
|
60
|
+
|
61
|
+
@id.setter
|
62
|
+
def id(self, id):
|
63
|
+
r"""Sets the id of this UpdateSimAlgorithmsRequest.
|
64
|
+
|
65
|
+
A unique integer value identifying this algorithm.
|
66
|
+
|
67
|
+
:param id: The id of this UpdateSimAlgorithmsRequest.
|
68
|
+
:type id: int
|
69
|
+
"""
|
70
|
+
self._id = id
|
71
|
+
|
72
|
+
@property
|
73
|
+
def body(self):
|
74
|
+
r"""Gets the body of this UpdateSimAlgorithmsRequest.
|
75
|
+
|
76
|
+
:return: The body of this UpdateSimAlgorithmsRequest.
|
77
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.PatchedAlgorithmUpdateSrlz`
|
78
|
+
"""
|
79
|
+
return self._body
|
80
|
+
|
81
|
+
@body.setter
|
82
|
+
def body(self, body):
|
83
|
+
r"""Sets the body of this UpdateSimAlgorithmsRequest.
|
84
|
+
|
85
|
+
:param body: The body of this UpdateSimAlgorithmsRequest.
|
86
|
+
:type body: :class:`huaweicloudsdkoctopus.v2.PatchedAlgorithmUpdateSrlz`
|
87
|
+
"""
|
88
|
+
self._body = body
|
89
|
+
|
90
|
+
def to_dict(self):
|
91
|
+
"""Returns the model properties as a dict"""
|
92
|
+
result = {}
|
93
|
+
|
94
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
95
|
+
value = getattr(self, attr)
|
96
|
+
if isinstance(value, list):
|
97
|
+
result[attr] = list(map(
|
98
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
99
|
+
value
|
100
|
+
))
|
101
|
+
elif hasattr(value, "to_dict"):
|
102
|
+
result[attr] = value.to_dict()
|
103
|
+
elif isinstance(value, dict):
|
104
|
+
result[attr] = dict(map(
|
105
|
+
lambda item: (item[0], item[1].to_dict())
|
106
|
+
if hasattr(item[1], "to_dict") else item,
|
107
|
+
value.items()
|
108
|
+
))
|
109
|
+
else:
|
110
|
+
if attr in self.sensitive_list:
|
111
|
+
result[attr] = "****"
|
112
|
+
else:
|
113
|
+
result[attr] = value
|
114
|
+
|
115
|
+
return result
|
116
|
+
|
117
|
+
def to_str(self):
|
118
|
+
"""Returns the string representation of the model"""
|
119
|
+
import simplejson as json
|
120
|
+
if six.PY2:
|
121
|
+
import sys
|
122
|
+
reload(sys)
|
123
|
+
sys.setdefaultencoding("utf-8")
|
124
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
125
|
+
|
126
|
+
def __repr__(self):
|
127
|
+
"""For `print`"""
|
128
|
+
return self.to_str()
|
129
|
+
|
130
|
+
def __eq__(self, other):
|
131
|
+
"""Returns true if both objects are equal"""
|
132
|
+
if not isinstance(other, UpdateSimAlgorithmsRequest):
|
133
|
+
return False
|
134
|
+
|
135
|
+
return self.__dict__ == other.__dict__
|
136
|
+
|
137
|
+
def __ne__(self, other):
|
138
|
+
"""Returns true if both objects are not equal"""
|
139
|
+
return not self == other
|