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.
- huaweicloudsdkoctopus/v2/__init__.py +72 -0
- huaweicloudsdkoctopus/v2/model/__init__.py +72 -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_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_extensions_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_extensions_response.py +314 -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/file_nested_srlz.py +279 -0
- huaweicloudsdkoctopus/v2/model/file_retrieve_srlz.py +310 -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/patched_alg_image_update_srlz.py +302 -0
- huaweicloudsdkoctopus/v2/model/patched_algorithm_update_srlz.py +796 -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/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/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/octopus_async_client.py +1679 -150
- huaweicloudsdkoctopus/v2/octopus_client.py +1679 -150
- {huaweicloudsdkoctopus-3.1.155.dist-info → huaweicloudsdkoctopus-3.1.157.dist-info}/METADATA +2 -2
- huaweicloudsdkoctopus-3.1.157.dist-info/RECORD +126 -0
- huaweicloudsdkoctopus-3.1.155.dist-info/RECORD +0 -54
- {huaweicloudsdkoctopus-3.1.155.dist-info → huaweicloudsdkoctopus-3.1.157.dist-info}/LICENSE +0 -0
- {huaweicloudsdkoctopus-3.1.155.dist-info → huaweicloudsdkoctopus-3.1.157.dist-info}/WHEEL +0 -0
- {huaweicloudsdkoctopus-3.1.155.dist-info → huaweicloudsdkoctopus-3.1.157.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,302 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class PatchedAlgImageUpdateSrlz:
|
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
|
+
'url': 'str',
|
21
|
+
'id': 'int',
|
22
|
+
'created_at': 'float',
|
23
|
+
'updated_at': 'float',
|
24
|
+
'command': 'str',
|
25
|
+
'workspace': 'str',
|
26
|
+
'keyword': 'str',
|
27
|
+
'pkg_log_dir': 'str'
|
28
|
+
}
|
29
|
+
|
30
|
+
attribute_map = {
|
31
|
+
'url': 'url',
|
32
|
+
'id': 'id',
|
33
|
+
'created_at': 'created_at',
|
34
|
+
'updated_at': 'updated_at',
|
35
|
+
'command': 'command',
|
36
|
+
'workspace': 'workspace',
|
37
|
+
'keyword': 'keyword',
|
38
|
+
'pkg_log_dir': 'pkg_log_dir'
|
39
|
+
}
|
40
|
+
|
41
|
+
def __init__(self, url=None, id=None, created_at=None, updated_at=None, command=None, workspace=None, keyword=None, pkg_log_dir=None):
|
42
|
+
r"""PatchedAlgImageUpdateSrlz
|
43
|
+
|
44
|
+
The model defined in huaweicloud sdk
|
45
|
+
|
46
|
+
:param url:
|
47
|
+
:type url: str
|
48
|
+
:param id:
|
49
|
+
:type id: int
|
50
|
+
:param created_at:
|
51
|
+
:type created_at: float
|
52
|
+
:param updated_at:
|
53
|
+
:type updated_at: float
|
54
|
+
:param command: 运行命令
|
55
|
+
:type command: str
|
56
|
+
:param workspace: 运行目录,构建类型需要
|
57
|
+
:type workspace: str
|
58
|
+
:param keyword: 算法关键字
|
59
|
+
:type keyword: str
|
60
|
+
:param pkg_log_dir: 目录打包路径
|
61
|
+
:type pkg_log_dir: str
|
62
|
+
"""
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
self._url = None
|
67
|
+
self._id = None
|
68
|
+
self._created_at = None
|
69
|
+
self._updated_at = None
|
70
|
+
self._command = None
|
71
|
+
self._workspace = None
|
72
|
+
self._keyword = None
|
73
|
+
self._pkg_log_dir = None
|
74
|
+
self.discriminator = None
|
75
|
+
|
76
|
+
if url is not None:
|
77
|
+
self.url = url
|
78
|
+
if id is not None:
|
79
|
+
self.id = id
|
80
|
+
if created_at is not None:
|
81
|
+
self.created_at = created_at
|
82
|
+
if updated_at is not None:
|
83
|
+
self.updated_at = updated_at
|
84
|
+
if command is not None:
|
85
|
+
self.command = command
|
86
|
+
if workspace is not None:
|
87
|
+
self.workspace = workspace
|
88
|
+
if keyword is not None:
|
89
|
+
self.keyword = keyword
|
90
|
+
if pkg_log_dir is not None:
|
91
|
+
self.pkg_log_dir = pkg_log_dir
|
92
|
+
|
93
|
+
@property
|
94
|
+
def url(self):
|
95
|
+
r"""Gets the url of this PatchedAlgImageUpdateSrlz.
|
96
|
+
|
97
|
+
:return: The url of this PatchedAlgImageUpdateSrlz.
|
98
|
+
:rtype: str
|
99
|
+
"""
|
100
|
+
return self._url
|
101
|
+
|
102
|
+
@url.setter
|
103
|
+
def url(self, url):
|
104
|
+
r"""Sets the url of this PatchedAlgImageUpdateSrlz.
|
105
|
+
|
106
|
+
:param url: The url of this PatchedAlgImageUpdateSrlz.
|
107
|
+
:type url: str
|
108
|
+
"""
|
109
|
+
self._url = url
|
110
|
+
|
111
|
+
@property
|
112
|
+
def id(self):
|
113
|
+
r"""Gets the id of this PatchedAlgImageUpdateSrlz.
|
114
|
+
|
115
|
+
:return: The id of this PatchedAlgImageUpdateSrlz.
|
116
|
+
:rtype: int
|
117
|
+
"""
|
118
|
+
return self._id
|
119
|
+
|
120
|
+
@id.setter
|
121
|
+
def id(self, id):
|
122
|
+
r"""Sets the id of this PatchedAlgImageUpdateSrlz.
|
123
|
+
|
124
|
+
:param id: The id of this PatchedAlgImageUpdateSrlz.
|
125
|
+
:type id: int
|
126
|
+
"""
|
127
|
+
self._id = id
|
128
|
+
|
129
|
+
@property
|
130
|
+
def created_at(self):
|
131
|
+
r"""Gets the created_at of this PatchedAlgImageUpdateSrlz.
|
132
|
+
|
133
|
+
:return: The created_at of this PatchedAlgImageUpdateSrlz.
|
134
|
+
:rtype: float
|
135
|
+
"""
|
136
|
+
return self._created_at
|
137
|
+
|
138
|
+
@created_at.setter
|
139
|
+
def created_at(self, created_at):
|
140
|
+
r"""Sets the created_at of this PatchedAlgImageUpdateSrlz.
|
141
|
+
|
142
|
+
:param created_at: The created_at of this PatchedAlgImageUpdateSrlz.
|
143
|
+
:type created_at: float
|
144
|
+
"""
|
145
|
+
self._created_at = created_at
|
146
|
+
|
147
|
+
@property
|
148
|
+
def updated_at(self):
|
149
|
+
r"""Gets the updated_at of this PatchedAlgImageUpdateSrlz.
|
150
|
+
|
151
|
+
:return: The updated_at of this PatchedAlgImageUpdateSrlz.
|
152
|
+
:rtype: float
|
153
|
+
"""
|
154
|
+
return self._updated_at
|
155
|
+
|
156
|
+
@updated_at.setter
|
157
|
+
def updated_at(self, updated_at):
|
158
|
+
r"""Sets the updated_at of this PatchedAlgImageUpdateSrlz.
|
159
|
+
|
160
|
+
:param updated_at: The updated_at of this PatchedAlgImageUpdateSrlz.
|
161
|
+
:type updated_at: float
|
162
|
+
"""
|
163
|
+
self._updated_at = updated_at
|
164
|
+
|
165
|
+
@property
|
166
|
+
def command(self):
|
167
|
+
r"""Gets the command of this PatchedAlgImageUpdateSrlz.
|
168
|
+
|
169
|
+
运行命令
|
170
|
+
|
171
|
+
:return: The command of this PatchedAlgImageUpdateSrlz.
|
172
|
+
:rtype: str
|
173
|
+
"""
|
174
|
+
return self._command
|
175
|
+
|
176
|
+
@command.setter
|
177
|
+
def command(self, command):
|
178
|
+
r"""Sets the command of this PatchedAlgImageUpdateSrlz.
|
179
|
+
|
180
|
+
运行命令
|
181
|
+
|
182
|
+
:param command: The command of this PatchedAlgImageUpdateSrlz.
|
183
|
+
:type command: str
|
184
|
+
"""
|
185
|
+
self._command = command
|
186
|
+
|
187
|
+
@property
|
188
|
+
def workspace(self):
|
189
|
+
r"""Gets the workspace of this PatchedAlgImageUpdateSrlz.
|
190
|
+
|
191
|
+
运行目录,构建类型需要
|
192
|
+
|
193
|
+
:return: The workspace of this PatchedAlgImageUpdateSrlz.
|
194
|
+
:rtype: str
|
195
|
+
"""
|
196
|
+
return self._workspace
|
197
|
+
|
198
|
+
@workspace.setter
|
199
|
+
def workspace(self, workspace):
|
200
|
+
r"""Sets the workspace of this PatchedAlgImageUpdateSrlz.
|
201
|
+
|
202
|
+
运行目录,构建类型需要
|
203
|
+
|
204
|
+
:param workspace: The workspace of this PatchedAlgImageUpdateSrlz.
|
205
|
+
:type workspace: str
|
206
|
+
"""
|
207
|
+
self._workspace = workspace
|
208
|
+
|
209
|
+
@property
|
210
|
+
def keyword(self):
|
211
|
+
r"""Gets the keyword of this PatchedAlgImageUpdateSrlz.
|
212
|
+
|
213
|
+
算法关键字
|
214
|
+
|
215
|
+
:return: The keyword of this PatchedAlgImageUpdateSrlz.
|
216
|
+
:rtype: str
|
217
|
+
"""
|
218
|
+
return self._keyword
|
219
|
+
|
220
|
+
@keyword.setter
|
221
|
+
def keyword(self, keyword):
|
222
|
+
r"""Sets the keyword of this PatchedAlgImageUpdateSrlz.
|
223
|
+
|
224
|
+
算法关键字
|
225
|
+
|
226
|
+
:param keyword: The keyword of this PatchedAlgImageUpdateSrlz.
|
227
|
+
:type keyword: str
|
228
|
+
"""
|
229
|
+
self._keyword = keyword
|
230
|
+
|
231
|
+
@property
|
232
|
+
def pkg_log_dir(self):
|
233
|
+
r"""Gets the pkg_log_dir of this PatchedAlgImageUpdateSrlz.
|
234
|
+
|
235
|
+
目录打包路径
|
236
|
+
|
237
|
+
:return: The pkg_log_dir of this PatchedAlgImageUpdateSrlz.
|
238
|
+
:rtype: str
|
239
|
+
"""
|
240
|
+
return self._pkg_log_dir
|
241
|
+
|
242
|
+
@pkg_log_dir.setter
|
243
|
+
def pkg_log_dir(self, pkg_log_dir):
|
244
|
+
r"""Sets the pkg_log_dir of this PatchedAlgImageUpdateSrlz.
|
245
|
+
|
246
|
+
目录打包路径
|
247
|
+
|
248
|
+
:param pkg_log_dir: The pkg_log_dir of this PatchedAlgImageUpdateSrlz.
|
249
|
+
:type pkg_log_dir: str
|
250
|
+
"""
|
251
|
+
self._pkg_log_dir = pkg_log_dir
|
252
|
+
|
253
|
+
def to_dict(self):
|
254
|
+
"""Returns the model properties as a dict"""
|
255
|
+
result = {}
|
256
|
+
|
257
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
258
|
+
value = getattr(self, attr)
|
259
|
+
if isinstance(value, list):
|
260
|
+
result[attr] = list(map(
|
261
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
262
|
+
value
|
263
|
+
))
|
264
|
+
elif hasattr(value, "to_dict"):
|
265
|
+
result[attr] = value.to_dict()
|
266
|
+
elif isinstance(value, dict):
|
267
|
+
result[attr] = dict(map(
|
268
|
+
lambda item: (item[0], item[1].to_dict())
|
269
|
+
if hasattr(item[1], "to_dict") else item,
|
270
|
+
value.items()
|
271
|
+
))
|
272
|
+
else:
|
273
|
+
if attr in self.sensitive_list:
|
274
|
+
result[attr] = "****"
|
275
|
+
else:
|
276
|
+
result[attr] = value
|
277
|
+
|
278
|
+
return result
|
279
|
+
|
280
|
+
def to_str(self):
|
281
|
+
"""Returns the string representation of the model"""
|
282
|
+
import simplejson as json
|
283
|
+
if six.PY2:
|
284
|
+
import sys
|
285
|
+
reload(sys)
|
286
|
+
sys.setdefaultencoding("utf-8")
|
287
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
288
|
+
|
289
|
+
def __repr__(self):
|
290
|
+
"""For `print`"""
|
291
|
+
return self.to_str()
|
292
|
+
|
293
|
+
def __eq__(self, other):
|
294
|
+
"""Returns true if both objects are equal"""
|
295
|
+
if not isinstance(other, PatchedAlgImageUpdateSrlz):
|
296
|
+
return False
|
297
|
+
|
298
|
+
return self.__dict__ == other.__dict__
|
299
|
+
|
300
|
+
def __ne__(self, other):
|
301
|
+
"""Returns true if both objects are not equal"""
|
302
|
+
return not self == other
|