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.
Files changed (126) hide show
  1. huaweicloudsdkoctopus/__init__.py +0 -0
  2. huaweicloudsdkoctopus/v2/__init__.py +122 -0
  3. huaweicloudsdkoctopus/v2/model/__init__.py +119 -0
  4. huaweicloudsdkoctopus/v2/model/alg_image_create_srlz.py +350 -0
  5. huaweicloudsdkoctopus/v2/model/alg_image_list_srlz.py +266 -0
  6. huaweicloudsdkoctopus/v2/model/algorithm_create_srlz.py +399 -0
  7. huaweicloudsdkoctopus/v2/model/algorithm_list_srlz.py +266 -0
  8. huaweicloudsdkoctopus/v2/model/batch_config_abc_info_srlz.py +142 -0
  9. huaweicloudsdkoctopus/v2/model/batch_config_evaluation_info_srlz.py +142 -0
  10. huaweicloudsdkoctopus/v2/model/batch_config_image_info_srlz.py +198 -0
  11. huaweicloudsdkoctopus/v2/model/batch_config_msg_notify_srlz.py +115 -0
  12. huaweicloudsdkoctopus/v2/model/batch_config_scenario_srlz.py +173 -0
  13. huaweicloudsdkoctopus/v2/model/batch_config_srlz.py +806 -0
  14. huaweicloudsdkoctopus/v2/model/batch_create_request.py +198 -0
  15. huaweicloudsdkoctopus/v2/model/batch_srlz.py +604 -0
  16. huaweicloudsdkoctopus/v2/model/build_create_srlz.py +115 -0
  17. huaweicloudsdkoctopus/v2/model/build_update_srlz.py +143 -0
  18. huaweicloudsdkoctopus/v2/model/category_f62_enum.py +89 -0
  19. huaweicloudsdkoctopus/v2/model/compilation_create_srlz.py +255 -0
  20. huaweicloudsdkoctopus/v2/model/compilation_update_srlz.py +311 -0
  21. huaweicloudsdkoctopus/v2/model/create_sim_algorithm_images_request.py +111 -0
  22. huaweicloudsdkoctopus/v2/model/create_sim_algorithm_images_response.py +361 -0
  23. huaweicloudsdkoctopus/v2/model/create_sim_algorithms_request.py +111 -0
  24. huaweicloudsdkoctopus/v2/model/create_sim_algorithms_response.py +404 -0
  25. huaweicloudsdkoctopus/v2/model/create_sim_batch_configs_request.py +111 -0
  26. huaweicloudsdkoctopus/v2/model/create_sim_batch_configs_response.py +819 -0
  27. huaweicloudsdkoctopus/v2/model/create_sim_batches_request.py +111 -0
  28. huaweicloudsdkoctopus/v2/model/create_sim_batches_response.py +619 -0
  29. huaweicloudsdkoctopus/v2/model/create_sim_extensions_request.py +111 -0
  30. huaweicloudsdkoctopus/v2/model/create_sim_extensions_response.py +314 -0
  31. huaweicloudsdkoctopus/v2/model/create_sim_sm_maps_request.py +111 -0
  32. huaweicloudsdkoctopus/v2/model/create_sim_sm_maps_response.py +253 -0
  33. huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_files_request.py +139 -0
  34. huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_files_response.py +377 -0
  35. huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_request.py +111 -0
  36. huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_response.py +618 -0
  37. huaweicloudsdkoctopus/v2/model/delete_sim_algorithm_images_request.py +114 -0
  38. huaweicloudsdkoctopus/v2/model/delete_sim_algorithm_images_response.py +85 -0
  39. huaweicloudsdkoctopus/v2/model/delete_sim_algorithms_request.py +114 -0
  40. huaweicloudsdkoctopus/v2/model/delete_sim_algorithms_response.py +85 -0
  41. huaweicloudsdkoctopus/v2/model/delete_sim_batch_configs_request.py +114 -0
  42. huaweicloudsdkoctopus/v2/model/delete_sim_batch_configs_response.py +85 -0
  43. huaweicloudsdkoctopus/v2/model/delete_sim_batches_request.py +114 -0
  44. huaweicloudsdkoctopus/v2/model/delete_sim_batches_response.py +85 -0
  45. huaweicloudsdkoctopus/v2/model/delete_sim_extensions_request.py +114 -0
  46. huaweicloudsdkoctopus/v2/model/delete_sim_extensions_response.py +85 -0
  47. huaweicloudsdkoctopus/v2/model/extension_srlz.py +353 -0
  48. huaweicloudsdkoctopus/v2/model/extensions_create_srlz.py +306 -0
  49. huaweicloudsdkoctopus/v2/model/extensions_list_srlz.py +291 -0
  50. huaweicloudsdkoctopus/v2/model/family_enum.py +91 -0
  51. huaweicloudsdkoctopus/v2/model/file_create_req_srlz.py +142 -0
  52. huaweicloudsdkoctopus/v2/model/file_create_srlz.py +366 -0
  53. huaweicloudsdkoctopus/v2/model/file_nested_create_req_srlz.py +142 -0
  54. huaweicloudsdkoctopus/v2/model/file_nested_srlz.py +279 -0
  55. huaweicloudsdkoctopus/v2/model/file_retrieve_srlz.py +310 -0
  56. huaweicloudsdkoctopus/v2/model/label_brief_srlz.py +279 -0
  57. huaweicloudsdkoctopus/v2/model/list_sim_algorithm_images_request.py +339 -0
  58. huaweicloudsdkoctopus/v2/model/list_sim_algorithm_images_response.py +185 -0
  59. huaweicloudsdkoctopus/v2/model/list_sim_algorithms_request.py +281 -0
  60. huaweicloudsdkoctopus/v2/model/list_sim_algorithms_response.py +185 -0
  61. huaweicloudsdkoctopus/v2/model/list_sim_batch_configs_request.py +625 -0
  62. huaweicloudsdkoctopus/v2/model/list_sim_batch_configs_response.py +185 -0
  63. huaweicloudsdkoctopus/v2/model/list_sim_batches_request.py +426 -0
  64. huaweicloudsdkoctopus/v2/model/list_sim_batches_response.py +185 -0
  65. huaweicloudsdkoctopus/v2/model/list_sim_extensions_request.py +202 -0
  66. huaweicloudsdkoctopus/v2/model/list_sim_extensions_response.py +185 -0
  67. huaweicloudsdkoctopus/v2/model/list_sim_simulations_request.py +401 -0
  68. huaweicloudsdkoctopus/v2/model/list_sim_simulations_response.py +189 -0
  69. huaweicloudsdkoctopus/v2/model/list_sim_sm_scenarios_request.py +547 -0
  70. huaweicloudsdkoctopus/v2/model/list_sim_sm_scenarios_response.py +185 -0
  71. huaweicloudsdkoctopus/v2/model/map_create_req_srlz.py +162 -0
  72. huaweicloudsdkoctopus/v2/model/map_version_enum.py +91 -0
  73. huaweicloudsdkoctopus/v2/model/mutable_file_srlz.py +114 -0
  74. huaweicloudsdkoctopus/v2/model/patched_alg_image_update_srlz.py +302 -0
  75. huaweicloudsdkoctopus/v2/model/patched_algorithm_update_srlz.py +796 -0
  76. huaweicloudsdkoctopus/v2/model/patched_file_detail_srlz.py +144 -0
  77. huaweicloudsdkoctopus/v2/model/post_response.py +140 -0
  78. huaweicloudsdkoctopus/v2/model/post_response_field.py +236 -0
  79. huaweicloudsdkoctopus/v2/model/priority_enum.py +91 -0
  80. huaweicloudsdkoctopus/v2/model/record_mode_enum.py +88 -0
  81. huaweicloudsdkoctopus/v2/model/run_image_status_enum.py +91 -0
  82. huaweicloudsdkoctopus/v2/model/run_srlz.py +254 -0
  83. huaweicloudsdkoctopus/v2/model/scenario_create_req_srlz.py +439 -0
  84. huaweicloudsdkoctopus/v2/model/scenario_list_srlz.py +548 -0
  85. huaweicloudsdkoctopus/v2/model/scenario_status_enum.py +92 -0
  86. huaweicloudsdkoctopus/v2/model/scenario_version_enum.py +91 -0
  87. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_image_request.py +114 -0
  88. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_image_response.py +361 -0
  89. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_request.py +114 -0
  90. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_response.py +377 -0
  91. huaweicloudsdkoctopus/v2/model/show_sim_batch_config_request.py +114 -0
  92. huaweicloudsdkoctopus/v2/model/show_sim_batch_config_response.py +819 -0
  93. huaweicloudsdkoctopus/v2/model/show_sim_extension_request.py +110 -0
  94. huaweicloudsdkoctopus/v2/model/show_sim_extension_response.py +353 -0
  95. huaweicloudsdkoctopus/v2/model/show_sim_simulations_files_request.py +142 -0
  96. huaweicloudsdkoctopus/v2/model/show_sim_simulations_files_response.py +290 -0
  97. huaweicloudsdkoctopus/v2/model/simulation_eva_result_metric_srlz.py +260 -0
  98. huaweicloudsdkoctopus/v2/model/simulation_eva_result_srlz.py +231 -0
  99. huaweicloudsdkoctopus/v2/model/simulation_evaluation_metric_srlz.py +289 -0
  100. huaweicloudsdkoctopus/v2/model/simulation_evaluation_srlz.py +231 -0
  101. huaweicloudsdkoctopus/v2/model/simulation_file_path_srlz.py +347 -0
  102. huaweicloudsdkoctopus/v2/model/simulation_srlz.py +708 -0
  103. huaweicloudsdkoctopus/v2/model/status15e_enum.py +99 -0
  104. huaweicloudsdkoctopus/v2/model/status6a7_enum.py +106 -0
  105. huaweicloudsdkoctopus/v2/model/type87e_enum.py +88 -0
  106. huaweicloudsdkoctopus/v2/model/update_sim_algorithm_images_request.py +139 -0
  107. huaweicloudsdkoctopus/v2/model/update_sim_algorithm_images_response.py +303 -0
  108. huaweicloudsdkoctopus/v2/model/update_sim_algorithms_request.py +139 -0
  109. huaweicloudsdkoctopus/v2/model/update_sim_algorithms_response.py +431 -0
  110. huaweicloudsdkoctopus/v2/model/update_sim_batch_configs_extensions_request.py +138 -0
  111. huaweicloudsdkoctopus/v2/model/update_sim_batch_configs_extensions_response.py +85 -0
  112. huaweicloudsdkoctopus/v2/model/update_sim_extensions_request.py +139 -0
  113. huaweicloudsdkoctopus/v2/model/update_sim_extensions_response.py +356 -0
  114. huaweicloudsdkoctopus/v2/model/update_sim_sm_maps_files_request.py +167 -0
  115. huaweicloudsdkoctopus/v2/model/update_sim_sm_maps_files_response.py +435 -0
  116. huaweicloudsdkoctopus/v2/model/update_sim_sm_scenarios_files_request.py +167 -0
  117. huaweicloudsdkoctopus/v2/model/update_sim_sm_scenarios_files_response.py +435 -0
  118. huaweicloudsdkoctopus/v2/octopus_async_client.py +2262 -0
  119. huaweicloudsdkoctopus/v2/octopus_client.py +2259 -0
  120. huaweicloudsdkoctopus/v2/region/__init__.py +0 -0
  121. huaweicloudsdkoctopus/v2/region/octopus_region.py +31 -0
  122. huaweicloudsdkoctopus-3.1.160.dist-info/LICENSE +13 -0
  123. huaweicloudsdkoctopus-3.1.160.dist-info/METADATA +26 -0
  124. huaweicloudsdkoctopus-3.1.160.dist-info/RECORD +126 -0
  125. huaweicloudsdkoctopus-3.1.160.dist-info/WHEEL +5 -0
  126. huaweicloudsdkoctopus-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,548 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ScenarioListSrlz:
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
+ 'labels': 'list[LabelBriefSrlz]',
25
+ 'gen_scenario': 'str',
26
+ 'road_scenario': 'str',
27
+ 'simulator': 'str',
28
+ 'version': 'ScenarioVersionEnum',
29
+ 'filename': 'str',
30
+ 'map_filename': 'str',
31
+ 'model_filename': 'str',
32
+ 'user_id': 'str',
33
+ 'user_name': 'str',
34
+ 'name': 'str',
35
+ 'priority': 'PriorityEnum',
36
+ 'status': 'ScenarioStatusEnum',
37
+ 'map': 'str',
38
+ 'model': 'str'
39
+ }
40
+
41
+ attribute_map = {
42
+ 'url': 'url',
43
+ 'id': 'id',
44
+ 'created_at': 'created_at',
45
+ 'updated_at': 'updated_at',
46
+ 'labels': 'labels',
47
+ 'gen_scenario': 'gen_scenario',
48
+ 'road_scenario': 'road_scenario',
49
+ 'simulator': 'simulator',
50
+ 'version': 'version',
51
+ 'filename': 'filename',
52
+ 'map_filename': 'map_filename',
53
+ 'model_filename': 'model_filename',
54
+ 'user_id': 'user_id',
55
+ 'user_name': 'user_name',
56
+ 'name': 'name',
57
+ 'priority': 'priority',
58
+ 'status': 'status',
59
+ 'map': 'map',
60
+ 'model': 'model'
61
+ }
62
+
63
+ def __init__(self, url=None, id=None, created_at=None, updated_at=None, labels=None, gen_scenario=None, road_scenario=None, simulator=None, version=None, filename=None, map_filename=None, model_filename=None, user_id=None, user_name=None, name=None, priority=None, status=None, map=None, model=None):
64
+ r"""ScenarioListSrlz
65
+
66
+ The model defined in huaweicloud sdk
67
+
68
+ :param url:
69
+ :type url: str
70
+ :param id:
71
+ :type id: int
72
+ :param created_at:
73
+ :type created_at: float
74
+ :param updated_at:
75
+ :type updated_at: float
76
+ :param labels:
77
+ :type labels: list[:class:`huaweicloudsdkoctopus.v2.LabelBriefSrlz`]
78
+ :param gen_scenario:
79
+ :type gen_scenario: str
80
+ :param road_scenario:
81
+ :type road_scenario: str
82
+ :param simulator: 仿真器名称,取值范围:A,B,C,D,E
83
+ :type simulator: str
84
+ :param version:
85
+ :type version: :class:`huaweicloudsdkoctopus.v2.ScenarioVersionEnum`
86
+ :param filename:
87
+ :type filename: str
88
+ :param map_filename:
89
+ :type map_filename: str
90
+ :param model_filename:
91
+ :type model_filename: str
92
+ :param user_id:
93
+ :type user_id: str
94
+ :param user_name:
95
+ :type user_name: str
96
+ :param name:
97
+ :type name: str
98
+ :param priority:
99
+ :type priority: :class:`huaweicloudsdkoctopus.v2.PriorityEnum`
100
+ :param status:
101
+ :type status: :class:`huaweicloudsdkoctopus.v2.ScenarioStatusEnum`
102
+ :param map:
103
+ :type map: str
104
+ :param model:
105
+ :type model: str
106
+ """
107
+
108
+
109
+
110
+ self._url = None
111
+ self._id = None
112
+ self._created_at = None
113
+ self._updated_at = None
114
+ self._labels = None
115
+ self._gen_scenario = None
116
+ self._road_scenario = None
117
+ self._simulator = None
118
+ self._version = None
119
+ self._filename = None
120
+ self._map_filename = None
121
+ self._model_filename = None
122
+ self._user_id = None
123
+ self._user_name = None
124
+ self._name = None
125
+ self._priority = None
126
+ self._status = None
127
+ self._map = None
128
+ self._model = None
129
+ self.discriminator = None
130
+
131
+ self.url = url
132
+ self.id = id
133
+ self.created_at = created_at
134
+ self.updated_at = updated_at
135
+ self.labels = labels
136
+ self.gen_scenario = gen_scenario
137
+ self.road_scenario = road_scenario
138
+ self.simulator = simulator
139
+ self.version = version
140
+ self.filename = filename
141
+ self.map_filename = map_filename
142
+ self.model_filename = model_filename
143
+ self.user_id = user_id
144
+ self.user_name = user_name
145
+ self.name = name
146
+ if priority is not None:
147
+ self.priority = priority
148
+ if status is not None:
149
+ self.status = status
150
+ self.map = map
151
+ self.model = model
152
+
153
+ @property
154
+ def url(self):
155
+ r"""Gets the url of this ScenarioListSrlz.
156
+
157
+ :return: The url of this ScenarioListSrlz.
158
+ :rtype: str
159
+ """
160
+ return self._url
161
+
162
+ @url.setter
163
+ def url(self, url):
164
+ r"""Sets the url of this ScenarioListSrlz.
165
+
166
+ :param url: The url of this ScenarioListSrlz.
167
+ :type url: str
168
+ """
169
+ self._url = url
170
+
171
+ @property
172
+ def id(self):
173
+ r"""Gets the id of this ScenarioListSrlz.
174
+
175
+ :return: The id of this ScenarioListSrlz.
176
+ :rtype: int
177
+ """
178
+ return self._id
179
+
180
+ @id.setter
181
+ def id(self, id):
182
+ r"""Sets the id of this ScenarioListSrlz.
183
+
184
+ :param id: The id of this ScenarioListSrlz.
185
+ :type id: int
186
+ """
187
+ self._id = id
188
+
189
+ @property
190
+ def created_at(self):
191
+ r"""Gets the created_at of this ScenarioListSrlz.
192
+
193
+ :return: The created_at of this ScenarioListSrlz.
194
+ :rtype: float
195
+ """
196
+ return self._created_at
197
+
198
+ @created_at.setter
199
+ def created_at(self, created_at):
200
+ r"""Sets the created_at of this ScenarioListSrlz.
201
+
202
+ :param created_at: The created_at of this ScenarioListSrlz.
203
+ :type created_at: float
204
+ """
205
+ self._created_at = created_at
206
+
207
+ @property
208
+ def updated_at(self):
209
+ r"""Gets the updated_at of this ScenarioListSrlz.
210
+
211
+ :return: The updated_at of this ScenarioListSrlz.
212
+ :rtype: float
213
+ """
214
+ return self._updated_at
215
+
216
+ @updated_at.setter
217
+ def updated_at(self, updated_at):
218
+ r"""Sets the updated_at of this ScenarioListSrlz.
219
+
220
+ :param updated_at: The updated_at of this ScenarioListSrlz.
221
+ :type updated_at: float
222
+ """
223
+ self._updated_at = updated_at
224
+
225
+ @property
226
+ def labels(self):
227
+ r"""Gets the labels of this ScenarioListSrlz.
228
+
229
+ :return: The labels of this ScenarioListSrlz.
230
+ :rtype: list[:class:`huaweicloudsdkoctopus.v2.LabelBriefSrlz`]
231
+ """
232
+ return self._labels
233
+
234
+ @labels.setter
235
+ def labels(self, labels):
236
+ r"""Sets the labels of this ScenarioListSrlz.
237
+
238
+ :param labels: The labels of this ScenarioListSrlz.
239
+ :type labels: list[:class:`huaweicloudsdkoctopus.v2.LabelBriefSrlz`]
240
+ """
241
+ self._labels = labels
242
+
243
+ @property
244
+ def gen_scenario(self):
245
+ r"""Gets the gen_scenario of this ScenarioListSrlz.
246
+
247
+ :return: The gen_scenario of this ScenarioListSrlz.
248
+ :rtype: str
249
+ """
250
+ return self._gen_scenario
251
+
252
+ @gen_scenario.setter
253
+ def gen_scenario(self, gen_scenario):
254
+ r"""Sets the gen_scenario of this ScenarioListSrlz.
255
+
256
+ :param gen_scenario: The gen_scenario of this ScenarioListSrlz.
257
+ :type gen_scenario: str
258
+ """
259
+ self._gen_scenario = gen_scenario
260
+
261
+ @property
262
+ def road_scenario(self):
263
+ r"""Gets the road_scenario of this ScenarioListSrlz.
264
+
265
+ :return: The road_scenario of this ScenarioListSrlz.
266
+ :rtype: str
267
+ """
268
+ return self._road_scenario
269
+
270
+ @road_scenario.setter
271
+ def road_scenario(self, road_scenario):
272
+ r"""Sets the road_scenario of this ScenarioListSrlz.
273
+
274
+ :param road_scenario: The road_scenario of this ScenarioListSrlz.
275
+ :type road_scenario: str
276
+ """
277
+ self._road_scenario = road_scenario
278
+
279
+ @property
280
+ def simulator(self):
281
+ r"""Gets the simulator of this ScenarioListSrlz.
282
+
283
+ 仿真器名称,取值范围:A,B,C,D,E
284
+
285
+ :return: The simulator of this ScenarioListSrlz.
286
+ :rtype: str
287
+ """
288
+ return self._simulator
289
+
290
+ @simulator.setter
291
+ def simulator(self, simulator):
292
+ r"""Sets the simulator of this ScenarioListSrlz.
293
+
294
+ 仿真器名称,取值范围:A,B,C,D,E
295
+
296
+ :param simulator: The simulator of this ScenarioListSrlz.
297
+ :type simulator: str
298
+ """
299
+ self._simulator = simulator
300
+
301
+ @property
302
+ def version(self):
303
+ r"""Gets the version of this ScenarioListSrlz.
304
+
305
+ :return: The version of this ScenarioListSrlz.
306
+ :rtype: :class:`huaweicloudsdkoctopus.v2.ScenarioVersionEnum`
307
+ """
308
+ return self._version
309
+
310
+ @version.setter
311
+ def version(self, version):
312
+ r"""Sets the version of this ScenarioListSrlz.
313
+
314
+ :param version: The version of this ScenarioListSrlz.
315
+ :type version: :class:`huaweicloudsdkoctopus.v2.ScenarioVersionEnum`
316
+ """
317
+ self._version = version
318
+
319
+ @property
320
+ def filename(self):
321
+ r"""Gets the filename of this ScenarioListSrlz.
322
+
323
+ :return: The filename of this ScenarioListSrlz.
324
+ :rtype: str
325
+ """
326
+ return self._filename
327
+
328
+ @filename.setter
329
+ def filename(self, filename):
330
+ r"""Sets the filename of this ScenarioListSrlz.
331
+
332
+ :param filename: The filename of this ScenarioListSrlz.
333
+ :type filename: str
334
+ """
335
+ self._filename = filename
336
+
337
+ @property
338
+ def map_filename(self):
339
+ r"""Gets the map_filename of this ScenarioListSrlz.
340
+
341
+ :return: The map_filename of this ScenarioListSrlz.
342
+ :rtype: str
343
+ """
344
+ return self._map_filename
345
+
346
+ @map_filename.setter
347
+ def map_filename(self, map_filename):
348
+ r"""Sets the map_filename of this ScenarioListSrlz.
349
+
350
+ :param map_filename: The map_filename of this ScenarioListSrlz.
351
+ :type map_filename: str
352
+ """
353
+ self._map_filename = map_filename
354
+
355
+ @property
356
+ def model_filename(self):
357
+ r"""Gets the model_filename of this ScenarioListSrlz.
358
+
359
+ :return: The model_filename of this ScenarioListSrlz.
360
+ :rtype: str
361
+ """
362
+ return self._model_filename
363
+
364
+ @model_filename.setter
365
+ def model_filename(self, model_filename):
366
+ r"""Sets the model_filename of this ScenarioListSrlz.
367
+
368
+ :param model_filename: The model_filename of this ScenarioListSrlz.
369
+ :type model_filename: str
370
+ """
371
+ self._model_filename = model_filename
372
+
373
+ @property
374
+ def user_id(self):
375
+ r"""Gets the user_id of this ScenarioListSrlz.
376
+
377
+ :return: The user_id of this ScenarioListSrlz.
378
+ :rtype: str
379
+ """
380
+ return self._user_id
381
+
382
+ @user_id.setter
383
+ def user_id(self, user_id):
384
+ r"""Sets the user_id of this ScenarioListSrlz.
385
+
386
+ :param user_id: The user_id of this ScenarioListSrlz.
387
+ :type user_id: str
388
+ """
389
+ self._user_id = user_id
390
+
391
+ @property
392
+ def user_name(self):
393
+ r"""Gets the user_name of this ScenarioListSrlz.
394
+
395
+ :return: The user_name of this ScenarioListSrlz.
396
+ :rtype: str
397
+ """
398
+ return self._user_name
399
+
400
+ @user_name.setter
401
+ def user_name(self, user_name):
402
+ r"""Sets the user_name of this ScenarioListSrlz.
403
+
404
+ :param user_name: The user_name of this ScenarioListSrlz.
405
+ :type user_name: str
406
+ """
407
+ self._user_name = user_name
408
+
409
+ @property
410
+ def name(self):
411
+ r"""Gets the name of this ScenarioListSrlz.
412
+
413
+ :return: The name of this ScenarioListSrlz.
414
+ :rtype: str
415
+ """
416
+ return self._name
417
+
418
+ @name.setter
419
+ def name(self, name):
420
+ r"""Sets the name of this ScenarioListSrlz.
421
+
422
+ :param name: The name of this ScenarioListSrlz.
423
+ :type name: str
424
+ """
425
+ self._name = name
426
+
427
+ @property
428
+ def priority(self):
429
+ r"""Gets the priority of this ScenarioListSrlz.
430
+
431
+ :return: The priority of this ScenarioListSrlz.
432
+ :rtype: :class:`huaweicloudsdkoctopus.v2.PriorityEnum`
433
+ """
434
+ return self._priority
435
+
436
+ @priority.setter
437
+ def priority(self, priority):
438
+ r"""Sets the priority of this ScenarioListSrlz.
439
+
440
+ :param priority: The priority of this ScenarioListSrlz.
441
+ :type priority: :class:`huaweicloudsdkoctopus.v2.PriorityEnum`
442
+ """
443
+ self._priority = priority
444
+
445
+ @property
446
+ def status(self):
447
+ r"""Gets the status of this ScenarioListSrlz.
448
+
449
+ :return: The status of this ScenarioListSrlz.
450
+ :rtype: :class:`huaweicloudsdkoctopus.v2.ScenarioStatusEnum`
451
+ """
452
+ return self._status
453
+
454
+ @status.setter
455
+ def status(self, status):
456
+ r"""Sets the status of this ScenarioListSrlz.
457
+
458
+ :param status: The status of this ScenarioListSrlz.
459
+ :type status: :class:`huaweicloudsdkoctopus.v2.ScenarioStatusEnum`
460
+ """
461
+ self._status = status
462
+
463
+ @property
464
+ def map(self):
465
+ r"""Gets the map of this ScenarioListSrlz.
466
+
467
+ :return: The map of this ScenarioListSrlz.
468
+ :rtype: str
469
+ """
470
+ return self._map
471
+
472
+ @map.setter
473
+ def map(self, map):
474
+ r"""Sets the map of this ScenarioListSrlz.
475
+
476
+ :param map: The map of this ScenarioListSrlz.
477
+ :type map: str
478
+ """
479
+ self._map = map
480
+
481
+ @property
482
+ def model(self):
483
+ r"""Gets the model of this ScenarioListSrlz.
484
+
485
+ :return: The model of this ScenarioListSrlz.
486
+ :rtype: str
487
+ """
488
+ return self._model
489
+
490
+ @model.setter
491
+ def model(self, model):
492
+ r"""Sets the model of this ScenarioListSrlz.
493
+
494
+ :param model: The model of this ScenarioListSrlz.
495
+ :type model: str
496
+ """
497
+ self._model = model
498
+
499
+ def to_dict(self):
500
+ """Returns the model properties as a dict"""
501
+ result = {}
502
+
503
+ for attr, _ in six.iteritems(self.openapi_types):
504
+ value = getattr(self, attr)
505
+ if isinstance(value, list):
506
+ result[attr] = list(map(
507
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
508
+ value
509
+ ))
510
+ elif hasattr(value, "to_dict"):
511
+ result[attr] = value.to_dict()
512
+ elif isinstance(value, dict):
513
+ result[attr] = dict(map(
514
+ lambda item: (item[0], item[1].to_dict())
515
+ if hasattr(item[1], "to_dict") else item,
516
+ value.items()
517
+ ))
518
+ else:
519
+ if attr in self.sensitive_list:
520
+ result[attr] = "****"
521
+ else:
522
+ result[attr] = value
523
+
524
+ return result
525
+
526
+ def to_str(self):
527
+ """Returns the string representation of the model"""
528
+ import simplejson as json
529
+ if six.PY2:
530
+ import sys
531
+ reload(sys)
532
+ sys.setdefaultencoding("utf-8")
533
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
534
+
535
+ def __repr__(self):
536
+ """For `print`"""
537
+ return self.to_str()
538
+
539
+ def __eq__(self, other):
540
+ """Returns true if both objects are equal"""
541
+ if not isinstance(other, ScenarioListSrlz):
542
+ return False
543
+
544
+ return self.__dict__ == other.__dict__
545
+
546
+ def __ne__(self, other):
547
+ """Returns true if both objects are not equal"""
548
+ return not self == other
@@ -0,0 +1,92 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ScenarioStatusEnum:
9
+ """
10
+ allowed enum values
11
+ """
12
+ _0 = "0"
13
+ _1 = "1"
14
+ _10 = "10"
15
+ _11 = "11"
16
+ _12 = "12"
17
+ _100 = "100"
18
+ """
19
+ Attributes:
20
+ openapi_types (dict): The key is attribute name
21
+ and the value is attribute type.
22
+ attribute_map (dict): The key is attribute name
23
+ and the value is json key in definition.
24
+ """
25
+ sensitive_list = []
26
+
27
+ openapi_types = {
28
+ }
29
+
30
+ attribute_map = {
31
+ }
32
+
33
+ def __init__(self):
34
+ r"""ScenarioStatusEnum
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ """
39
+
40
+
41
+ self.discriminator = None
42
+
43
+ def to_dict(self):
44
+ """Returns the model properties as a dict"""
45
+ result = {}
46
+
47
+ for attr, _ in six.iteritems(self.openapi_types):
48
+ value = getattr(self, attr)
49
+ if isinstance(value, list):
50
+ result[attr] = list(map(
51
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
52
+ value
53
+ ))
54
+ elif hasattr(value, "to_dict"):
55
+ result[attr] = value.to_dict()
56
+ elif isinstance(value, dict):
57
+ result[attr] = dict(map(
58
+ lambda item: (item[0], item[1].to_dict())
59
+ if hasattr(item[1], "to_dict") else item,
60
+ value.items()
61
+ ))
62
+ else:
63
+ if attr in self.sensitive_list:
64
+ result[attr] = "****"
65
+ else:
66
+ result[attr] = value
67
+
68
+ return result
69
+
70
+ def to_str(self):
71
+ """Returns the string representation of the model"""
72
+ import simplejson as json
73
+ if six.PY2:
74
+ import sys
75
+ reload(sys)
76
+ sys.setdefaultencoding("utf-8")
77
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
78
+
79
+ def __repr__(self):
80
+ """For `print`"""
81
+ return self.to_str()
82
+
83
+ def __eq__(self, other):
84
+ """Returns true if both objects are equal"""
85
+ if not isinstance(other, ScenarioStatusEnum):
86
+ return False
87
+
88
+ return self.__dict__ == other.__dict__
89
+
90
+ def __ne__(self, other):
91
+ """Returns true if both objects are not equal"""
92
+ return not self == other