huaweicloudsdkoctopus 3.1.155__py2.py3-none-any.whl → 3.1.157__py2.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 (82) hide show
  1. huaweicloudsdkoctopus/v2/__init__.py +72 -0
  2. huaweicloudsdkoctopus/v2/model/__init__.py +72 -0
  3. huaweicloudsdkoctopus/v2/model/alg_image_create_srlz.py +350 -0
  4. huaweicloudsdkoctopus/v2/model/alg_image_list_srlz.py +266 -0
  5. huaweicloudsdkoctopus/v2/model/algorithm_create_srlz.py +399 -0
  6. huaweicloudsdkoctopus/v2/model/algorithm_list_srlz.py +266 -0
  7. huaweicloudsdkoctopus/v2/model/batch_config_abc_info_srlz.py +142 -0
  8. huaweicloudsdkoctopus/v2/model/batch_config_evaluation_info_srlz.py +142 -0
  9. huaweicloudsdkoctopus/v2/model/batch_config_image_info_srlz.py +198 -0
  10. huaweicloudsdkoctopus/v2/model/batch_config_msg_notify_srlz.py +115 -0
  11. huaweicloudsdkoctopus/v2/model/batch_config_scenario_srlz.py +173 -0
  12. huaweicloudsdkoctopus/v2/model/batch_config_srlz.py +806 -0
  13. huaweicloudsdkoctopus/v2/model/batch_srlz.py +604 -0
  14. huaweicloudsdkoctopus/v2/model/build_create_srlz.py +115 -0
  15. huaweicloudsdkoctopus/v2/model/build_update_srlz.py +143 -0
  16. huaweicloudsdkoctopus/v2/model/category_f62_enum.py +89 -0
  17. huaweicloudsdkoctopus/v2/model/compilation_create_srlz.py +255 -0
  18. huaweicloudsdkoctopus/v2/model/compilation_update_srlz.py +311 -0
  19. huaweicloudsdkoctopus/v2/model/create_sim_algorithm_images_request.py +111 -0
  20. huaweicloudsdkoctopus/v2/model/create_sim_algorithm_images_response.py +361 -0
  21. huaweicloudsdkoctopus/v2/model/create_sim_algorithms_request.py +111 -0
  22. huaweicloudsdkoctopus/v2/model/create_sim_algorithms_response.py +404 -0
  23. huaweicloudsdkoctopus/v2/model/create_sim_batch_configs_request.py +111 -0
  24. huaweicloudsdkoctopus/v2/model/create_sim_batch_configs_response.py +819 -0
  25. huaweicloudsdkoctopus/v2/model/create_sim_extensions_request.py +111 -0
  26. huaweicloudsdkoctopus/v2/model/create_sim_extensions_response.py +314 -0
  27. huaweicloudsdkoctopus/v2/model/delete_sim_algorithm_images_request.py +114 -0
  28. huaweicloudsdkoctopus/v2/model/delete_sim_algorithm_images_response.py +85 -0
  29. huaweicloudsdkoctopus/v2/model/delete_sim_algorithms_request.py +114 -0
  30. huaweicloudsdkoctopus/v2/model/delete_sim_algorithms_response.py +85 -0
  31. huaweicloudsdkoctopus/v2/model/delete_sim_batch_configs_request.py +114 -0
  32. huaweicloudsdkoctopus/v2/model/delete_sim_batch_configs_response.py +85 -0
  33. huaweicloudsdkoctopus/v2/model/delete_sim_batches_request.py +114 -0
  34. huaweicloudsdkoctopus/v2/model/delete_sim_batches_response.py +85 -0
  35. huaweicloudsdkoctopus/v2/model/delete_sim_extensions_request.py +114 -0
  36. huaweicloudsdkoctopus/v2/model/delete_sim_extensions_response.py +85 -0
  37. huaweicloudsdkoctopus/v2/model/extension_srlz.py +353 -0
  38. huaweicloudsdkoctopus/v2/model/extensions_create_srlz.py +306 -0
  39. huaweicloudsdkoctopus/v2/model/extensions_list_srlz.py +291 -0
  40. huaweicloudsdkoctopus/v2/model/file_nested_srlz.py +279 -0
  41. huaweicloudsdkoctopus/v2/model/file_retrieve_srlz.py +310 -0
  42. huaweicloudsdkoctopus/v2/model/list_sim_algorithm_images_request.py +339 -0
  43. huaweicloudsdkoctopus/v2/model/list_sim_algorithm_images_response.py +185 -0
  44. huaweicloudsdkoctopus/v2/model/list_sim_algorithms_request.py +281 -0
  45. huaweicloudsdkoctopus/v2/model/list_sim_algorithms_response.py +185 -0
  46. huaweicloudsdkoctopus/v2/model/list_sim_batch_configs_request.py +625 -0
  47. huaweicloudsdkoctopus/v2/model/list_sim_batch_configs_response.py +185 -0
  48. huaweicloudsdkoctopus/v2/model/list_sim_batches_request.py +426 -0
  49. huaweicloudsdkoctopus/v2/model/list_sim_batches_response.py +185 -0
  50. huaweicloudsdkoctopus/v2/model/list_sim_extensions_request.py +202 -0
  51. huaweicloudsdkoctopus/v2/model/list_sim_extensions_response.py +185 -0
  52. huaweicloudsdkoctopus/v2/model/patched_alg_image_update_srlz.py +302 -0
  53. huaweicloudsdkoctopus/v2/model/patched_algorithm_update_srlz.py +796 -0
  54. huaweicloudsdkoctopus/v2/model/record_mode_enum.py +88 -0
  55. huaweicloudsdkoctopus/v2/model/run_image_status_enum.py +91 -0
  56. huaweicloudsdkoctopus/v2/model/run_srlz.py +254 -0
  57. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_image_request.py +114 -0
  58. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_image_response.py +361 -0
  59. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_request.py +114 -0
  60. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_response.py +377 -0
  61. huaweicloudsdkoctopus/v2/model/show_sim_batch_config_request.py +114 -0
  62. huaweicloudsdkoctopus/v2/model/show_sim_batch_config_response.py +819 -0
  63. huaweicloudsdkoctopus/v2/model/show_sim_extension_request.py +110 -0
  64. huaweicloudsdkoctopus/v2/model/show_sim_extension_response.py +353 -0
  65. huaweicloudsdkoctopus/v2/model/status6a7_enum.py +106 -0
  66. huaweicloudsdkoctopus/v2/model/type87e_enum.py +88 -0
  67. huaweicloudsdkoctopus/v2/model/update_sim_algorithm_images_request.py +139 -0
  68. huaweicloudsdkoctopus/v2/model/update_sim_algorithm_images_response.py +303 -0
  69. huaweicloudsdkoctopus/v2/model/update_sim_algorithms_request.py +139 -0
  70. huaweicloudsdkoctopus/v2/model/update_sim_algorithms_response.py +431 -0
  71. huaweicloudsdkoctopus/v2/model/update_sim_batch_configs_extensions_request.py +138 -0
  72. huaweicloudsdkoctopus/v2/model/update_sim_batch_configs_extensions_response.py +85 -0
  73. huaweicloudsdkoctopus/v2/model/update_sim_extensions_request.py +139 -0
  74. huaweicloudsdkoctopus/v2/model/update_sim_extensions_response.py +356 -0
  75. huaweicloudsdkoctopus/v2/octopus_async_client.py +1679 -150
  76. huaweicloudsdkoctopus/v2/octopus_client.py +1679 -150
  77. {huaweicloudsdkoctopus-3.1.155.dist-info → huaweicloudsdkoctopus-3.1.157.dist-info}/METADATA +2 -2
  78. huaweicloudsdkoctopus-3.1.157.dist-info/RECORD +126 -0
  79. huaweicloudsdkoctopus-3.1.155.dist-info/RECORD +0 -54
  80. {huaweicloudsdkoctopus-3.1.155.dist-info → huaweicloudsdkoctopus-3.1.157.dist-info}/LICENSE +0 -0
  81. {huaweicloudsdkoctopus-3.1.155.dist-info → huaweicloudsdkoctopus-3.1.157.dist-info}/WHEEL +0 -0
  82. {huaweicloudsdkoctopus-3.1.155.dist-info → huaweicloudsdkoctopus-3.1.157.dist-info}/top_level.txt +0 -0
@@ -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 UpdateSimAlgorithmImagesRequest:
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': 'PatchedAlgImageUpdateSrlz'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'id': 'id',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, id=None, body=None):
30
+ r"""UpdateSimAlgorithmImagesRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param id: A unique integer value identifying this alg image.
35
+ :type id: int
36
+ :param body: Body of the UpdateSimAlgorithmImagesRequest
37
+ :type body: :class:`huaweicloudsdkoctopus.v2.PatchedAlgImageUpdateSrlz`
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 UpdateSimAlgorithmImagesRequest.
53
+
54
+ A unique integer value identifying this alg image.
55
+
56
+ :return: The id of this UpdateSimAlgorithmImagesRequest.
57
+ :rtype: int
58
+ """
59
+ return self._id
60
+
61
+ @id.setter
62
+ def id(self, id):
63
+ r"""Sets the id of this UpdateSimAlgorithmImagesRequest.
64
+
65
+ A unique integer value identifying this alg image.
66
+
67
+ :param id: The id of this UpdateSimAlgorithmImagesRequest.
68
+ :type id: int
69
+ """
70
+ self._id = id
71
+
72
+ @property
73
+ def body(self):
74
+ r"""Gets the body of this UpdateSimAlgorithmImagesRequest.
75
+
76
+ :return: The body of this UpdateSimAlgorithmImagesRequest.
77
+ :rtype: :class:`huaweicloudsdkoctopus.v2.PatchedAlgImageUpdateSrlz`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ r"""Sets the body of this UpdateSimAlgorithmImagesRequest.
84
+
85
+ :param body: The body of this UpdateSimAlgorithmImagesRequest.
86
+ :type body: :class:`huaweicloudsdkoctopus.v2.PatchedAlgImageUpdateSrlz`
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, UpdateSimAlgorithmImagesRequest):
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
@@ -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