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,279 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class LabelBriefSrlz:
|
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
|
+
'name': 'str',
|
21
|
+
'url': 'str',
|
22
|
+
'id': 'int',
|
23
|
+
'family': 'FamilyEnum',
|
24
|
+
'root': 'int',
|
25
|
+
'tag_type': 'str',
|
26
|
+
'parent_names': 'list[object]'
|
27
|
+
}
|
28
|
+
|
29
|
+
attribute_map = {
|
30
|
+
'name': 'name',
|
31
|
+
'url': 'url',
|
32
|
+
'id': 'id',
|
33
|
+
'family': 'family',
|
34
|
+
'root': 'root',
|
35
|
+
'tag_type': 'tag_type',
|
36
|
+
'parent_names': 'parent_names'
|
37
|
+
}
|
38
|
+
|
39
|
+
def __init__(self, name=None, url=None, id=None, family=None, root=None, tag_type=None, parent_names=None):
|
40
|
+
r"""LabelBriefSrlz
|
41
|
+
|
42
|
+
The model defined in huaweicloud sdk
|
43
|
+
|
44
|
+
:param name: 标签名称
|
45
|
+
:type name: str
|
46
|
+
:param url: 标签地址
|
47
|
+
:type url: str
|
48
|
+
:param id: 标签ID
|
49
|
+
:type id: int
|
50
|
+
:param family:
|
51
|
+
:type family: :class:`huaweicloudsdkoctopus.v2.FamilyEnum`
|
52
|
+
:param root: 根标签
|
53
|
+
:type root: int
|
54
|
+
:param tag_type: 标签类型
|
55
|
+
:type tag_type: str
|
56
|
+
:param parent_names: 父标签名称
|
57
|
+
:type parent_names: list[object]
|
58
|
+
"""
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
self._name = None
|
63
|
+
self._url = None
|
64
|
+
self._id = None
|
65
|
+
self._family = None
|
66
|
+
self._root = None
|
67
|
+
self._tag_type = None
|
68
|
+
self._parent_names = None
|
69
|
+
self.discriminator = None
|
70
|
+
|
71
|
+
self.name = name
|
72
|
+
self.url = url
|
73
|
+
self.id = id
|
74
|
+
if family is not None:
|
75
|
+
self.family = family
|
76
|
+
self.root = root
|
77
|
+
self.tag_type = tag_type
|
78
|
+
self.parent_names = parent_names
|
79
|
+
|
80
|
+
@property
|
81
|
+
def name(self):
|
82
|
+
r"""Gets the name of this LabelBriefSrlz.
|
83
|
+
|
84
|
+
标签名称
|
85
|
+
|
86
|
+
:return: The name of this LabelBriefSrlz.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._name
|
90
|
+
|
91
|
+
@name.setter
|
92
|
+
def name(self, name):
|
93
|
+
r"""Sets the name of this LabelBriefSrlz.
|
94
|
+
|
95
|
+
标签名称
|
96
|
+
|
97
|
+
:param name: The name of this LabelBriefSrlz.
|
98
|
+
:type name: str
|
99
|
+
"""
|
100
|
+
self._name = name
|
101
|
+
|
102
|
+
@property
|
103
|
+
def url(self):
|
104
|
+
r"""Gets the url of this LabelBriefSrlz.
|
105
|
+
|
106
|
+
标签地址
|
107
|
+
|
108
|
+
:return: The url of this LabelBriefSrlz.
|
109
|
+
:rtype: str
|
110
|
+
"""
|
111
|
+
return self._url
|
112
|
+
|
113
|
+
@url.setter
|
114
|
+
def url(self, url):
|
115
|
+
r"""Sets the url of this LabelBriefSrlz.
|
116
|
+
|
117
|
+
标签地址
|
118
|
+
|
119
|
+
:param url: The url of this LabelBriefSrlz.
|
120
|
+
:type url: str
|
121
|
+
"""
|
122
|
+
self._url = url
|
123
|
+
|
124
|
+
@property
|
125
|
+
def id(self):
|
126
|
+
r"""Gets the id of this LabelBriefSrlz.
|
127
|
+
|
128
|
+
标签ID
|
129
|
+
|
130
|
+
:return: The id of this LabelBriefSrlz.
|
131
|
+
:rtype: int
|
132
|
+
"""
|
133
|
+
return self._id
|
134
|
+
|
135
|
+
@id.setter
|
136
|
+
def id(self, id):
|
137
|
+
r"""Sets the id of this LabelBriefSrlz.
|
138
|
+
|
139
|
+
标签ID
|
140
|
+
|
141
|
+
:param id: The id of this LabelBriefSrlz.
|
142
|
+
:type id: int
|
143
|
+
"""
|
144
|
+
self._id = id
|
145
|
+
|
146
|
+
@property
|
147
|
+
def family(self):
|
148
|
+
r"""Gets the family of this LabelBriefSrlz.
|
149
|
+
|
150
|
+
:return: The family of this LabelBriefSrlz.
|
151
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.FamilyEnum`
|
152
|
+
"""
|
153
|
+
return self._family
|
154
|
+
|
155
|
+
@family.setter
|
156
|
+
def family(self, family):
|
157
|
+
r"""Sets the family of this LabelBriefSrlz.
|
158
|
+
|
159
|
+
:param family: The family of this LabelBriefSrlz.
|
160
|
+
:type family: :class:`huaweicloudsdkoctopus.v2.FamilyEnum`
|
161
|
+
"""
|
162
|
+
self._family = family
|
163
|
+
|
164
|
+
@property
|
165
|
+
def root(self):
|
166
|
+
r"""Gets the root of this LabelBriefSrlz.
|
167
|
+
|
168
|
+
根标签
|
169
|
+
|
170
|
+
:return: The root of this LabelBriefSrlz.
|
171
|
+
:rtype: int
|
172
|
+
"""
|
173
|
+
return self._root
|
174
|
+
|
175
|
+
@root.setter
|
176
|
+
def root(self, root):
|
177
|
+
r"""Sets the root of this LabelBriefSrlz.
|
178
|
+
|
179
|
+
根标签
|
180
|
+
|
181
|
+
:param root: The root of this LabelBriefSrlz.
|
182
|
+
:type root: int
|
183
|
+
"""
|
184
|
+
self._root = root
|
185
|
+
|
186
|
+
@property
|
187
|
+
def tag_type(self):
|
188
|
+
r"""Gets the tag_type of this LabelBriefSrlz.
|
189
|
+
|
190
|
+
标签类型
|
191
|
+
|
192
|
+
:return: The tag_type of this LabelBriefSrlz.
|
193
|
+
:rtype: str
|
194
|
+
"""
|
195
|
+
return self._tag_type
|
196
|
+
|
197
|
+
@tag_type.setter
|
198
|
+
def tag_type(self, tag_type):
|
199
|
+
r"""Sets the tag_type of this LabelBriefSrlz.
|
200
|
+
|
201
|
+
标签类型
|
202
|
+
|
203
|
+
:param tag_type: The tag_type of this LabelBriefSrlz.
|
204
|
+
:type tag_type: str
|
205
|
+
"""
|
206
|
+
self._tag_type = tag_type
|
207
|
+
|
208
|
+
@property
|
209
|
+
def parent_names(self):
|
210
|
+
r"""Gets the parent_names of this LabelBriefSrlz.
|
211
|
+
|
212
|
+
父标签名称
|
213
|
+
|
214
|
+
:return: The parent_names of this LabelBriefSrlz.
|
215
|
+
:rtype: list[object]
|
216
|
+
"""
|
217
|
+
return self._parent_names
|
218
|
+
|
219
|
+
@parent_names.setter
|
220
|
+
def parent_names(self, parent_names):
|
221
|
+
r"""Sets the parent_names of this LabelBriefSrlz.
|
222
|
+
|
223
|
+
父标签名称
|
224
|
+
|
225
|
+
:param parent_names: The parent_names of this LabelBriefSrlz.
|
226
|
+
:type parent_names: list[object]
|
227
|
+
"""
|
228
|
+
self._parent_names = parent_names
|
229
|
+
|
230
|
+
def to_dict(self):
|
231
|
+
"""Returns the model properties as a dict"""
|
232
|
+
result = {}
|
233
|
+
|
234
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
235
|
+
value = getattr(self, attr)
|
236
|
+
if isinstance(value, list):
|
237
|
+
result[attr] = list(map(
|
238
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
239
|
+
value
|
240
|
+
))
|
241
|
+
elif hasattr(value, "to_dict"):
|
242
|
+
result[attr] = value.to_dict()
|
243
|
+
elif isinstance(value, dict):
|
244
|
+
result[attr] = dict(map(
|
245
|
+
lambda item: (item[0], item[1].to_dict())
|
246
|
+
if hasattr(item[1], "to_dict") else item,
|
247
|
+
value.items()
|
248
|
+
))
|
249
|
+
else:
|
250
|
+
if attr in self.sensitive_list:
|
251
|
+
result[attr] = "****"
|
252
|
+
else:
|
253
|
+
result[attr] = value
|
254
|
+
|
255
|
+
return result
|
256
|
+
|
257
|
+
def to_str(self):
|
258
|
+
"""Returns the string representation of the model"""
|
259
|
+
import simplejson as json
|
260
|
+
if six.PY2:
|
261
|
+
import sys
|
262
|
+
reload(sys)
|
263
|
+
sys.setdefaultencoding("utf-8")
|
264
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
265
|
+
|
266
|
+
def __repr__(self):
|
267
|
+
"""For `print`"""
|
268
|
+
return self.to_str()
|
269
|
+
|
270
|
+
def __eq__(self, other):
|
271
|
+
"""Returns true if both objects are equal"""
|
272
|
+
if not isinstance(other, LabelBriefSrlz):
|
273
|
+
return False
|
274
|
+
|
275
|
+
return self.__dict__ == other.__dict__
|
276
|
+
|
277
|
+
def __ne__(self, other):
|
278
|
+
"""Returns true if both objects are not equal"""
|
279
|
+
return not self == other
|
@@ -0,0 +1,339 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListSimAlgorithmImagesRequest:
|
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
|
+
'algorithm': 'int',
|
21
|
+
'algorithm_id': 'int',
|
22
|
+
'limit': 'int',
|
23
|
+
'offset': 'int',
|
24
|
+
'ordering': 'str',
|
25
|
+
'search': 'str',
|
26
|
+
'status': 'int',
|
27
|
+
'type': 'str',
|
28
|
+
'version': 'str'
|
29
|
+
}
|
30
|
+
|
31
|
+
attribute_map = {
|
32
|
+
'algorithm': 'algorithm',
|
33
|
+
'algorithm_id': 'algorithm_id',
|
34
|
+
'limit': 'limit',
|
35
|
+
'offset': 'offset',
|
36
|
+
'ordering': 'ordering',
|
37
|
+
'search': 'search',
|
38
|
+
'status': 'status',
|
39
|
+
'type': 'type',
|
40
|
+
'version': 'version'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, algorithm=None, algorithm_id=None, limit=None, offset=None, ordering=None, search=None, status=None, type=None, version=None):
|
44
|
+
r"""ListSimAlgorithmImagesRequest
|
45
|
+
|
46
|
+
The model defined in huaweicloud sdk
|
47
|
+
|
48
|
+
:param algorithm:
|
49
|
+
:type algorithm: int
|
50
|
+
:param algorithm_id: 算法
|
51
|
+
:type algorithm_id: int
|
52
|
+
:param limit: Number of results to return per page.
|
53
|
+
:type limit: int
|
54
|
+
:param offset: The initial index from which to return the results.
|
55
|
+
:type offset: int
|
56
|
+
:param ordering: Which field to use when ordering the results.
|
57
|
+
:type ordering: str
|
58
|
+
:param search: A search term.
|
59
|
+
:type search: str
|
60
|
+
:param status: 镜像状态 * `0` - Success * `1` - Pending * `2` - Type Error * `3` - Not Found * `4` - Download Fail * `5` - Build Fail * `32` - Unknown * `100` - Init * `101` - Init Failed * `200` - To Push * `201` - Uploading
|
61
|
+
:type status: int
|
62
|
+
:param type: 镜像类型 * `build` - Build * `upload` - Upload
|
63
|
+
:type type: str
|
64
|
+
:param version:
|
65
|
+
:type version: str
|
66
|
+
"""
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
self._algorithm = None
|
71
|
+
self._algorithm_id = None
|
72
|
+
self._limit = None
|
73
|
+
self._offset = None
|
74
|
+
self._ordering = None
|
75
|
+
self._search = None
|
76
|
+
self._status = None
|
77
|
+
self._type = None
|
78
|
+
self._version = None
|
79
|
+
self.discriminator = None
|
80
|
+
|
81
|
+
if algorithm is not None:
|
82
|
+
self.algorithm = algorithm
|
83
|
+
if algorithm_id is not None:
|
84
|
+
self.algorithm_id = algorithm_id
|
85
|
+
if limit is not None:
|
86
|
+
self.limit = limit
|
87
|
+
if offset is not None:
|
88
|
+
self.offset = offset
|
89
|
+
if ordering is not None:
|
90
|
+
self.ordering = ordering
|
91
|
+
if search is not None:
|
92
|
+
self.search = search
|
93
|
+
if status is not None:
|
94
|
+
self.status = status
|
95
|
+
if type is not None:
|
96
|
+
self.type = type
|
97
|
+
if version is not None:
|
98
|
+
self.version = version
|
99
|
+
|
100
|
+
@property
|
101
|
+
def algorithm(self):
|
102
|
+
r"""Gets the algorithm of this ListSimAlgorithmImagesRequest.
|
103
|
+
|
104
|
+
:return: The algorithm of this ListSimAlgorithmImagesRequest.
|
105
|
+
:rtype: int
|
106
|
+
"""
|
107
|
+
return self._algorithm
|
108
|
+
|
109
|
+
@algorithm.setter
|
110
|
+
def algorithm(self, algorithm):
|
111
|
+
r"""Sets the algorithm of this ListSimAlgorithmImagesRequest.
|
112
|
+
|
113
|
+
:param algorithm: The algorithm of this ListSimAlgorithmImagesRequest.
|
114
|
+
:type algorithm: int
|
115
|
+
"""
|
116
|
+
self._algorithm = algorithm
|
117
|
+
|
118
|
+
@property
|
119
|
+
def algorithm_id(self):
|
120
|
+
r"""Gets the algorithm_id of this ListSimAlgorithmImagesRequest.
|
121
|
+
|
122
|
+
算法
|
123
|
+
|
124
|
+
:return: The algorithm_id of this ListSimAlgorithmImagesRequest.
|
125
|
+
:rtype: int
|
126
|
+
"""
|
127
|
+
return self._algorithm_id
|
128
|
+
|
129
|
+
@algorithm_id.setter
|
130
|
+
def algorithm_id(self, algorithm_id):
|
131
|
+
r"""Sets the algorithm_id of this ListSimAlgorithmImagesRequest.
|
132
|
+
|
133
|
+
算法
|
134
|
+
|
135
|
+
:param algorithm_id: The algorithm_id of this ListSimAlgorithmImagesRequest.
|
136
|
+
:type algorithm_id: int
|
137
|
+
"""
|
138
|
+
self._algorithm_id = algorithm_id
|
139
|
+
|
140
|
+
@property
|
141
|
+
def limit(self):
|
142
|
+
r"""Gets the limit of this ListSimAlgorithmImagesRequest.
|
143
|
+
|
144
|
+
Number of results to return per page.
|
145
|
+
|
146
|
+
:return: The limit of this ListSimAlgorithmImagesRequest.
|
147
|
+
:rtype: int
|
148
|
+
"""
|
149
|
+
return self._limit
|
150
|
+
|
151
|
+
@limit.setter
|
152
|
+
def limit(self, limit):
|
153
|
+
r"""Sets the limit of this ListSimAlgorithmImagesRequest.
|
154
|
+
|
155
|
+
Number of results to return per page.
|
156
|
+
|
157
|
+
:param limit: The limit of this ListSimAlgorithmImagesRequest.
|
158
|
+
:type limit: int
|
159
|
+
"""
|
160
|
+
self._limit = limit
|
161
|
+
|
162
|
+
@property
|
163
|
+
def offset(self):
|
164
|
+
r"""Gets the offset of this ListSimAlgorithmImagesRequest.
|
165
|
+
|
166
|
+
The initial index from which to return the results.
|
167
|
+
|
168
|
+
:return: The offset of this ListSimAlgorithmImagesRequest.
|
169
|
+
:rtype: int
|
170
|
+
"""
|
171
|
+
return self._offset
|
172
|
+
|
173
|
+
@offset.setter
|
174
|
+
def offset(self, offset):
|
175
|
+
r"""Sets the offset of this ListSimAlgorithmImagesRequest.
|
176
|
+
|
177
|
+
The initial index from which to return the results.
|
178
|
+
|
179
|
+
:param offset: The offset of this ListSimAlgorithmImagesRequest.
|
180
|
+
:type offset: int
|
181
|
+
"""
|
182
|
+
self._offset = offset
|
183
|
+
|
184
|
+
@property
|
185
|
+
def ordering(self):
|
186
|
+
r"""Gets the ordering of this ListSimAlgorithmImagesRequest.
|
187
|
+
|
188
|
+
Which field to use when ordering the results.
|
189
|
+
|
190
|
+
:return: The ordering of this ListSimAlgorithmImagesRequest.
|
191
|
+
:rtype: str
|
192
|
+
"""
|
193
|
+
return self._ordering
|
194
|
+
|
195
|
+
@ordering.setter
|
196
|
+
def ordering(self, ordering):
|
197
|
+
r"""Sets the ordering of this ListSimAlgorithmImagesRequest.
|
198
|
+
|
199
|
+
Which field to use when ordering the results.
|
200
|
+
|
201
|
+
:param ordering: The ordering of this ListSimAlgorithmImagesRequest.
|
202
|
+
:type ordering: str
|
203
|
+
"""
|
204
|
+
self._ordering = ordering
|
205
|
+
|
206
|
+
@property
|
207
|
+
def search(self):
|
208
|
+
r"""Gets the search of this ListSimAlgorithmImagesRequest.
|
209
|
+
|
210
|
+
A search term.
|
211
|
+
|
212
|
+
:return: The search of this ListSimAlgorithmImagesRequest.
|
213
|
+
:rtype: str
|
214
|
+
"""
|
215
|
+
return self._search
|
216
|
+
|
217
|
+
@search.setter
|
218
|
+
def search(self, search):
|
219
|
+
r"""Sets the search of this ListSimAlgorithmImagesRequest.
|
220
|
+
|
221
|
+
A search term.
|
222
|
+
|
223
|
+
:param search: The search of this ListSimAlgorithmImagesRequest.
|
224
|
+
:type search: str
|
225
|
+
"""
|
226
|
+
self._search = search
|
227
|
+
|
228
|
+
@property
|
229
|
+
def status(self):
|
230
|
+
r"""Gets the status of this ListSimAlgorithmImagesRequest.
|
231
|
+
|
232
|
+
镜像状态 * `0` - Success * `1` - Pending * `2` - Type Error * `3` - Not Found * `4` - Download Fail * `5` - Build Fail * `32` - Unknown * `100` - Init * `101` - Init Failed * `200` - To Push * `201` - Uploading
|
233
|
+
|
234
|
+
:return: The status of this ListSimAlgorithmImagesRequest.
|
235
|
+
:rtype: int
|
236
|
+
"""
|
237
|
+
return self._status
|
238
|
+
|
239
|
+
@status.setter
|
240
|
+
def status(self, status):
|
241
|
+
r"""Sets the status of this ListSimAlgorithmImagesRequest.
|
242
|
+
|
243
|
+
镜像状态 * `0` - Success * `1` - Pending * `2` - Type Error * `3` - Not Found * `4` - Download Fail * `5` - Build Fail * `32` - Unknown * `100` - Init * `101` - Init Failed * `200` - To Push * `201` - Uploading
|
244
|
+
|
245
|
+
:param status: The status of this ListSimAlgorithmImagesRequest.
|
246
|
+
:type status: int
|
247
|
+
"""
|
248
|
+
self._status = status
|
249
|
+
|
250
|
+
@property
|
251
|
+
def type(self):
|
252
|
+
r"""Gets the type of this ListSimAlgorithmImagesRequest.
|
253
|
+
|
254
|
+
镜像类型 * `build` - Build * `upload` - Upload
|
255
|
+
|
256
|
+
:return: The type of this ListSimAlgorithmImagesRequest.
|
257
|
+
:rtype: str
|
258
|
+
"""
|
259
|
+
return self._type
|
260
|
+
|
261
|
+
@type.setter
|
262
|
+
def type(self, type):
|
263
|
+
r"""Sets the type of this ListSimAlgorithmImagesRequest.
|
264
|
+
|
265
|
+
镜像类型 * `build` - Build * `upload` - Upload
|
266
|
+
|
267
|
+
:param type: The type of this ListSimAlgorithmImagesRequest.
|
268
|
+
:type type: str
|
269
|
+
"""
|
270
|
+
self._type = type
|
271
|
+
|
272
|
+
@property
|
273
|
+
def version(self):
|
274
|
+
r"""Gets the version of this ListSimAlgorithmImagesRequest.
|
275
|
+
|
276
|
+
:return: The version of this ListSimAlgorithmImagesRequest.
|
277
|
+
:rtype: str
|
278
|
+
"""
|
279
|
+
return self._version
|
280
|
+
|
281
|
+
@version.setter
|
282
|
+
def version(self, version):
|
283
|
+
r"""Sets the version of this ListSimAlgorithmImagesRequest.
|
284
|
+
|
285
|
+
:param version: The version of this ListSimAlgorithmImagesRequest.
|
286
|
+
:type version: str
|
287
|
+
"""
|
288
|
+
self._version = version
|
289
|
+
|
290
|
+
def to_dict(self):
|
291
|
+
"""Returns the model properties as a dict"""
|
292
|
+
result = {}
|
293
|
+
|
294
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
295
|
+
value = getattr(self, attr)
|
296
|
+
if isinstance(value, list):
|
297
|
+
result[attr] = list(map(
|
298
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
299
|
+
value
|
300
|
+
))
|
301
|
+
elif hasattr(value, "to_dict"):
|
302
|
+
result[attr] = value.to_dict()
|
303
|
+
elif isinstance(value, dict):
|
304
|
+
result[attr] = dict(map(
|
305
|
+
lambda item: (item[0], item[1].to_dict())
|
306
|
+
if hasattr(item[1], "to_dict") else item,
|
307
|
+
value.items()
|
308
|
+
))
|
309
|
+
else:
|
310
|
+
if attr in self.sensitive_list:
|
311
|
+
result[attr] = "****"
|
312
|
+
else:
|
313
|
+
result[attr] = value
|
314
|
+
|
315
|
+
return result
|
316
|
+
|
317
|
+
def to_str(self):
|
318
|
+
"""Returns the string representation of the model"""
|
319
|
+
import simplejson as json
|
320
|
+
if six.PY2:
|
321
|
+
import sys
|
322
|
+
reload(sys)
|
323
|
+
sys.setdefaultencoding("utf-8")
|
324
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
325
|
+
|
326
|
+
def __repr__(self):
|
327
|
+
"""For `print`"""
|
328
|
+
return self.to_str()
|
329
|
+
|
330
|
+
def __eq__(self, other):
|
331
|
+
"""Returns true if both objects are equal"""
|
332
|
+
if not isinstance(other, ListSimAlgorithmImagesRequest):
|
333
|
+
return False
|
334
|
+
|
335
|
+
return self.__dict__ == other.__dict__
|
336
|
+
|
337
|
+
def __ne__(self, other):
|
338
|
+
"""Returns true if both objects are not equal"""
|
339
|
+
return not self == other
|