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
@@ -33,31 +33,31 @@ class OctopusAsyncClient(Client):
|
|
33
33
|
|
34
34
|
return client_builder
|
35
35
|
|
36
|
-
def
|
37
|
-
r"""
|
36
|
+
def create_sim_algorithm_images_async(self, request):
|
37
|
+
r"""创建算法镜像
|
38
38
|
|
39
|
-
A DRF ViewSet for
|
39
|
+
A DRF ViewSet for algorithm image.
|
40
40
|
|
41
41
|
Please refer to HUAWEI cloud API Explorer for details.
|
42
42
|
|
43
43
|
|
44
|
-
:param request: Request instance for
|
45
|
-
:type request: :class:`huaweicloudsdkoctopus.v2.
|
46
|
-
:rtype: :class:`huaweicloudsdkoctopus.v2.
|
44
|
+
:param request: Request instance for CreateSimAlgorithmImages
|
45
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.CreateSimAlgorithmImagesRequest`
|
46
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.CreateSimAlgorithmImagesResponse`
|
47
47
|
"""
|
48
|
-
http_info = self.
|
48
|
+
http_info = self._create_sim_algorithm_images_http_info(request)
|
49
49
|
return self._call_api(**http_info)
|
50
50
|
|
51
|
-
def
|
52
|
-
http_info = self.
|
51
|
+
def create_sim_algorithm_images_async_invoker(self, request):
|
52
|
+
http_info = self._create_sim_algorithm_images_http_info(request)
|
53
53
|
return AsyncInvoker(self, http_info)
|
54
54
|
|
55
|
-
def
|
55
|
+
def _create_sim_algorithm_images_http_info(self, request):
|
56
56
|
http_info = {
|
57
57
|
"method": "POST",
|
58
|
-
"resource_path": "/v2/{project_id}/sim/pm/
|
58
|
+
"resource_path": "/v2/{project_id}/sim/pm/algorithm-images",
|
59
59
|
"request_type": request.__class__.__name__,
|
60
|
-
"response_type": "
|
60
|
+
"response_type": "CreateSimAlgorithmImagesResponse"
|
61
61
|
}
|
62
62
|
|
63
63
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -98,31 +98,31 @@ class OctopusAsyncClient(Client):
|
|
98
98
|
|
99
99
|
return http_info
|
100
100
|
|
101
|
-
def
|
102
|
-
r"""
|
101
|
+
def create_sim_algorithms_async(self, request):
|
102
|
+
r"""创建算法
|
103
103
|
|
104
|
-
|
104
|
+
A DRF ViewSet for algorithm.
|
105
105
|
|
106
106
|
Please refer to HUAWEI cloud API Explorer for details.
|
107
107
|
|
108
108
|
|
109
|
-
:param request: Request instance for
|
110
|
-
:type request: :class:`huaweicloudsdkoctopus.v2.
|
111
|
-
:rtype: :class:`huaweicloudsdkoctopus.v2.
|
109
|
+
:param request: Request instance for CreateSimAlgorithms
|
110
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.CreateSimAlgorithmsRequest`
|
111
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.CreateSimAlgorithmsResponse`
|
112
112
|
"""
|
113
|
-
http_info = self.
|
113
|
+
http_info = self._create_sim_algorithms_http_info(request)
|
114
114
|
return self._call_api(**http_info)
|
115
115
|
|
116
|
-
def
|
117
|
-
http_info = self.
|
116
|
+
def create_sim_algorithms_async_invoker(self, request):
|
117
|
+
http_info = self._create_sim_algorithms_http_info(request)
|
118
118
|
return AsyncInvoker(self, http_info)
|
119
119
|
|
120
|
-
def
|
120
|
+
def _create_sim_algorithms_http_info(self, request):
|
121
121
|
http_info = {
|
122
122
|
"method": "POST",
|
123
|
-
"resource_path": "/v2/{project_id}/sim/
|
123
|
+
"resource_path": "/v2/{project_id}/sim/pm/algorithms",
|
124
124
|
"request_type": request.__class__.__name__,
|
125
|
-
"response_type": "
|
125
|
+
"response_type": "CreateSimAlgorithmsResponse"
|
126
126
|
}
|
127
127
|
|
128
128
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -163,31 +163,31 @@ class OctopusAsyncClient(Client):
|
|
163
163
|
|
164
164
|
return http_info
|
165
165
|
|
166
|
-
def
|
167
|
-
r"""
|
166
|
+
def create_sim_batch_configs_async(self, request):
|
167
|
+
r"""创建仿真任务配置
|
168
168
|
|
169
|
-
|
169
|
+
A DRF ViewSet for BatchConfig.
|
170
170
|
|
171
171
|
Please refer to HUAWEI cloud API Explorer for details.
|
172
172
|
|
173
173
|
|
174
|
-
:param request: Request instance for
|
175
|
-
:type request: :class:`huaweicloudsdkoctopus.v2.
|
176
|
-
:rtype: :class:`huaweicloudsdkoctopus.v2.
|
174
|
+
:param request: Request instance for CreateSimBatchConfigs
|
175
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.CreateSimBatchConfigsRequest`
|
176
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.CreateSimBatchConfigsResponse`
|
177
177
|
"""
|
178
|
-
http_info = self.
|
178
|
+
http_info = self._create_sim_batch_configs_http_info(request)
|
179
179
|
return self._call_api(**http_info)
|
180
180
|
|
181
|
-
def
|
182
|
-
http_info = self.
|
181
|
+
def create_sim_batch_configs_async_invoker(self, request):
|
182
|
+
http_info = self._create_sim_batch_configs_http_info(request)
|
183
183
|
return AsyncInvoker(self, http_info)
|
184
184
|
|
185
|
-
def
|
185
|
+
def _create_sim_batch_configs_http_info(self, request):
|
186
186
|
http_info = {
|
187
187
|
"method": "POST",
|
188
|
-
"resource_path": "/v2/{project_id}/sim/
|
188
|
+
"resource_path": "/v2/{project_id}/sim/pm/batch-configs",
|
189
189
|
"request_type": request.__class__.__name__,
|
190
|
-
"response_type": "
|
190
|
+
"response_type": "CreateSimBatchConfigsResponse"
|
191
191
|
}
|
192
192
|
|
193
193
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -228,31 +228,31 @@ class OctopusAsyncClient(Client):
|
|
228
228
|
|
229
229
|
return http_info
|
230
230
|
|
231
|
-
def
|
232
|
-
r"""
|
231
|
+
def create_sim_batches_async(self, request):
|
232
|
+
r"""创建仿真任务
|
233
233
|
|
234
|
-
|
234
|
+
A DRF ViewSet for Batch.
|
235
235
|
|
236
236
|
Please refer to HUAWEI cloud API Explorer for details.
|
237
237
|
|
238
238
|
|
239
|
-
:param request: Request instance for
|
240
|
-
:type request: :class:`huaweicloudsdkoctopus.v2.
|
241
|
-
:rtype: :class:`huaweicloudsdkoctopus.v2.
|
239
|
+
:param request: Request instance for CreateSimBatches
|
240
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.CreateSimBatchesRequest`
|
241
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.CreateSimBatchesResponse`
|
242
242
|
"""
|
243
|
-
http_info = self.
|
243
|
+
http_info = self._create_sim_batches_http_info(request)
|
244
244
|
return self._call_api(**http_info)
|
245
245
|
|
246
|
-
def
|
247
|
-
http_info = self.
|
246
|
+
def create_sim_batches_async_invoker(self, request):
|
247
|
+
http_info = self._create_sim_batches_http_info(request)
|
248
248
|
return AsyncInvoker(self, http_info)
|
249
249
|
|
250
|
-
def
|
250
|
+
def _create_sim_batches_http_info(self, request):
|
251
251
|
http_info = {
|
252
252
|
"method": "POST",
|
253
|
-
"resource_path": "/v2/{project_id}/sim/
|
253
|
+
"resource_path": "/v2/{project_id}/sim/pm/batches",
|
254
254
|
"request_type": request.__class__.__name__,
|
255
|
-
"response_type": "
|
255
|
+
"response_type": "CreateSimBatchesResponse"
|
256
256
|
}
|
257
257
|
|
258
258
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -262,8 +262,6 @@ class OctopusAsyncClient(Client):
|
|
262
262
|
collection_formats = {}
|
263
263
|
|
264
264
|
path_params = {}
|
265
|
-
if 'parent_lookup_id' in local_var_params:
|
266
|
-
path_params['parent_lookup_id'] = local_var_params['parent_lookup_id']
|
267
265
|
|
268
266
|
query_params = []
|
269
267
|
|
@@ -295,31 +293,31 @@ class OctopusAsyncClient(Client):
|
|
295
293
|
|
296
294
|
return http_info
|
297
295
|
|
298
|
-
def
|
299
|
-
r"""
|
296
|
+
def create_sim_extensions_async(self, request):
|
297
|
+
r"""创建扩展文件
|
300
298
|
|
301
|
-
|
299
|
+
此接口用于创建扩展文件。接口基于地图文件的sha256判断扩展文件是否已存在,如果扩展文件不存在,响应中提供预签链接用于上传文件。
|
302
300
|
|
303
301
|
Please refer to HUAWEI cloud API Explorer for details.
|
304
302
|
|
305
303
|
|
306
|
-
:param request: Request instance for
|
307
|
-
:type request: :class:`huaweicloudsdkoctopus.v2.
|
308
|
-
:rtype: :class:`huaweicloudsdkoctopus.v2.
|
304
|
+
:param request: Request instance for CreateSimExtensions
|
305
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.CreateSimExtensionsRequest`
|
306
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.CreateSimExtensionsResponse`
|
309
307
|
"""
|
310
|
-
http_info = self.
|
308
|
+
http_info = self._create_sim_extensions_http_info(request)
|
311
309
|
return self._call_api(**http_info)
|
312
310
|
|
313
|
-
def
|
314
|
-
http_info = self.
|
311
|
+
def create_sim_extensions_async_invoker(self, request):
|
312
|
+
http_info = self._create_sim_extensions_http_info(request)
|
315
313
|
return AsyncInvoker(self, http_info)
|
316
314
|
|
317
|
-
def
|
315
|
+
def _create_sim_extensions_http_info(self, request):
|
318
316
|
http_info = {
|
319
|
-
"method": "
|
320
|
-
"resource_path": "/v2/{project_id}/sim/pm/
|
317
|
+
"method": "POST",
|
318
|
+
"resource_path": "/v2/{project_id}/sim/pm/extensions",
|
321
319
|
"request_type": request.__class__.__name__,
|
322
|
-
"response_type": "
|
320
|
+
"response_type": "CreateSimExtensionsResponse"
|
323
321
|
}
|
324
322
|
|
325
323
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -331,34 +329,14 @@ class OctopusAsyncClient(Client):
|
|
331
329
|
path_params = {}
|
332
330
|
|
333
331
|
query_params = []
|
334
|
-
if 'algorithm_name' in local_var_params:
|
335
|
-
query_params.append(('algorithm_name', local_var_params['algorithm_name']))
|
336
|
-
if 'batch_id' in local_var_params:
|
337
|
-
query_params.append(('batch_id', local_var_params['batch_id']))
|
338
|
-
if 'batch_name' in local_var_params:
|
339
|
-
query_params.append(('batch_name', local_var_params['batch_name']))
|
340
|
-
if 'id' in local_var_params:
|
341
|
-
query_params.append(('id', local_var_params['id']))
|
342
|
-
if 'label' in local_var_params:
|
343
|
-
query_params.append(('label', local_var_params['label']))
|
344
|
-
if 'limit' in local_var_params:
|
345
|
-
query_params.append(('limit', local_var_params['limit']))
|
346
|
-
if 'offset' in local_var_params:
|
347
|
-
query_params.append(('offset', local_var_params['offset']))
|
348
|
-
if 'ordering' in local_var_params:
|
349
|
-
query_params.append(('ordering', local_var_params['ordering']))
|
350
|
-
if 'scenario_resource_id' in local_var_params:
|
351
|
-
query_params.append(('scenario_resource_id', local_var_params['scenario_resource_id']))
|
352
|
-
if 'scenario_resource_type' in local_var_params:
|
353
|
-
query_params.append(('scenario_resource_type', local_var_params['scenario_resource_type']))
|
354
|
-
if 'status' in local_var_params:
|
355
|
-
query_params.append(('status', local_var_params['status']))
|
356
332
|
|
357
333
|
header_params = {}
|
358
334
|
|
359
335
|
form_params = {}
|
360
336
|
|
361
337
|
body = None
|
338
|
+
if 'body' in local_var_params:
|
339
|
+
body = local_var_params['body']
|
362
340
|
if isinstance(request, SdkStreamRequest):
|
363
341
|
body = request.get_file_stream()
|
364
342
|
|
@@ -380,31 +358,31 @@ class OctopusAsyncClient(Client):
|
|
380
358
|
|
381
359
|
return http_info
|
382
360
|
|
383
|
-
def
|
384
|
-
r"""
|
361
|
+
def create_sim_sm_maps_async(self, request):
|
362
|
+
r"""创建场景地图
|
385
363
|
|
386
|
-
|
364
|
+
创建场景地图.
|
387
365
|
|
388
366
|
Please refer to HUAWEI cloud API Explorer for details.
|
389
367
|
|
390
368
|
|
391
|
-
:param request: Request instance for
|
392
|
-
:type request: :class:`huaweicloudsdkoctopus.v2.
|
393
|
-
:rtype: :class:`huaweicloudsdkoctopus.v2.
|
369
|
+
:param request: Request instance for CreateSimSmMaps
|
370
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.CreateSimSmMapsRequest`
|
371
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.CreateSimSmMapsResponse`
|
394
372
|
"""
|
395
|
-
http_info = self.
|
373
|
+
http_info = self._create_sim_sm_maps_http_info(request)
|
396
374
|
return self._call_api(**http_info)
|
397
375
|
|
398
|
-
def
|
399
|
-
http_info = self.
|
376
|
+
def create_sim_sm_maps_async_invoker(self, request):
|
377
|
+
http_info = self._create_sim_sm_maps_http_info(request)
|
400
378
|
return AsyncInvoker(self, http_info)
|
401
379
|
|
402
|
-
def
|
380
|
+
def _create_sim_sm_maps_http_info(self, request):
|
403
381
|
http_info = {
|
404
|
-
"method": "
|
405
|
-
"resource_path": "/v2/{project_id}/sim/sm/
|
382
|
+
"method": "POST",
|
383
|
+
"resource_path": "/v2/{project_id}/sim/sm/maps",
|
406
384
|
"request_type": request.__class__.__name__,
|
407
|
-
"response_type": "
|
385
|
+
"response_type": "CreateSimSmMapsResponse"
|
408
386
|
}
|
409
387
|
|
410
388
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -416,47 +394,14 @@ class OctopusAsyncClient(Client):
|
|
416
394
|
path_params = {}
|
417
395
|
|
418
396
|
query_params = []
|
419
|
-
if 'exclude_group' in local_var_params:
|
420
|
-
query_params.append(('exclude_group', local_var_params['exclude_group']))
|
421
|
-
if 'file' in local_var_params:
|
422
|
-
query_params.append(('file', local_var_params['file']))
|
423
|
-
if 'gen_scenario' in local_var_params:
|
424
|
-
query_params.append(('gen_scenario', local_var_params['gen_scenario']))
|
425
|
-
if 'group' in local_var_params:
|
426
|
-
query_params.append(('group', local_var_params['group']))
|
427
|
-
collection_formats['group'] = 'multi'
|
428
|
-
if 'id' in local_var_params:
|
429
|
-
query_params.append(('id', local_var_params['id']))
|
430
|
-
if 'label' in local_var_params:
|
431
|
-
query_params.append(('label', local_var_params['label']))
|
432
|
-
if 'map' in local_var_params:
|
433
|
-
query_params.append(('map', local_var_params['map']))
|
434
|
-
if 'name' in local_var_params:
|
435
|
-
query_params.append(('name', local_var_params['name']))
|
436
|
-
if 'ordering' in local_var_params:
|
437
|
-
query_params.append(('ordering', local_var_params['ordering']))
|
438
|
-
if 'offset' in local_var_params:
|
439
|
-
query_params.append(('offset', local_var_params['offset']))
|
440
|
-
if 'limit' in local_var_params:
|
441
|
-
query_params.append(('limit', local_var_params['limit']))
|
442
|
-
if 'search' in local_var_params:
|
443
|
-
query_params.append(('search', local_var_params['search']))
|
444
|
-
if 'simulator' in local_var_params:
|
445
|
-
query_params.append(('simulator', local_var_params['simulator']))
|
446
|
-
if 'source' in local_var_params:
|
447
|
-
query_params.append(('source', local_var_params['source']))
|
448
|
-
if 'status' in local_var_params:
|
449
|
-
query_params.append(('status', local_var_params['status']))
|
450
|
-
if 'user_name' in local_var_params:
|
451
|
-
query_params.append(('user_name', local_var_params['user_name']))
|
452
|
-
if 'version' in local_var_params:
|
453
|
-
query_params.append(('version', local_var_params['version']))
|
454
397
|
|
455
398
|
header_params = {}
|
456
399
|
|
457
400
|
form_params = {}
|
458
401
|
|
459
402
|
body = None
|
403
|
+
if 'body' in local_var_params:
|
404
|
+
body = local_var_params['body']
|
460
405
|
if isinstance(request, SdkStreamRequest):
|
461
406
|
body = request.get_file_stream()
|
462
407
|
|
@@ -478,31 +423,31 @@ class OctopusAsyncClient(Client):
|
|
478
423
|
|
479
424
|
return http_info
|
480
425
|
|
481
|
-
def
|
482
|
-
r"""
|
426
|
+
def create_sim_sm_scenarios_async(self, request):
|
427
|
+
r"""创建仿真场景
|
483
428
|
|
484
|
-
|
429
|
+
创建仿真场景.
|
485
430
|
|
486
431
|
Please refer to HUAWEI cloud API Explorer for details.
|
487
432
|
|
488
433
|
|
489
|
-
:param request: Request instance for
|
490
|
-
:type request: :class:`huaweicloudsdkoctopus.v2.
|
491
|
-
:rtype: :class:`huaweicloudsdkoctopus.v2.
|
434
|
+
:param request: Request instance for CreateSimSmScenarios
|
435
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.CreateSimSmScenariosRequest`
|
436
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.CreateSimSmScenariosResponse`
|
492
437
|
"""
|
493
|
-
http_info = self.
|
438
|
+
http_info = self._create_sim_sm_scenarios_http_info(request)
|
494
439
|
return self._call_api(**http_info)
|
495
440
|
|
496
|
-
def
|
497
|
-
http_info = self.
|
441
|
+
def create_sim_sm_scenarios_async_invoker(self, request):
|
442
|
+
http_info = self._create_sim_sm_scenarios_http_info(request)
|
498
443
|
return AsyncInvoker(self, http_info)
|
499
444
|
|
500
|
-
def
|
445
|
+
def _create_sim_sm_scenarios_http_info(self, request):
|
501
446
|
http_info = {
|
502
|
-
"method": "
|
503
|
-
"resource_path": "/v2/{project_id}/sim/
|
447
|
+
"method": "POST",
|
448
|
+
"resource_path": "/v2/{project_id}/sim/sm/scenarios",
|
504
449
|
"request_type": request.__class__.__name__,
|
505
|
-
"response_type": "
|
450
|
+
"response_type": "CreateSimSmScenariosResponse"
|
506
451
|
}
|
507
452
|
|
508
453
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -512,18 +457,1602 @@ class OctopusAsyncClient(Client):
|
|
512
457
|
collection_formats = {}
|
513
458
|
|
514
459
|
path_params = {}
|
515
|
-
if 'id' in local_var_params:
|
516
|
-
path_params['id'] = local_var_params['id']
|
517
460
|
|
518
461
|
query_params = []
|
519
|
-
if 'type' in local_var_params:
|
520
|
-
query_params.append(('type', local_var_params['type']))
|
521
462
|
|
522
463
|
header_params = {}
|
523
464
|
|
524
465
|
form_params = {}
|
525
466
|
|
526
467
|
body = None
|
468
|
+
if 'body' in local_var_params:
|
469
|
+
body = local_var_params['body']
|
470
|
+
if isinstance(request, SdkStreamRequest):
|
471
|
+
body = request.get_file_stream()
|
472
|
+
|
473
|
+
response_headers = []
|
474
|
+
|
475
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
476
|
+
['application/json'])
|
477
|
+
|
478
|
+
auth_settings = []
|
479
|
+
|
480
|
+
http_info["cname"] = cname
|
481
|
+
http_info["collection_formats"] = collection_formats
|
482
|
+
http_info["path_params"] = path_params
|
483
|
+
http_info["query_params"] = query_params
|
484
|
+
http_info["header_params"] = header_params
|
485
|
+
http_info["post_params"] = form_params
|
486
|
+
http_info["body"] = body
|
487
|
+
http_info["response_headers"] = response_headers
|
488
|
+
|
489
|
+
return http_info
|
490
|
+
|
491
|
+
def create_sim_sm_scenarios_files_async(self, request):
|
492
|
+
r"""创建场景文件
|
493
|
+
|
494
|
+
创建场景文件.
|
495
|
+
|
496
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
497
|
+
|
498
|
+
|
499
|
+
:param request: Request instance for CreateSimSmScenariosFiles
|
500
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.CreateSimSmScenariosFilesRequest`
|
501
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.CreateSimSmScenariosFilesResponse`
|
502
|
+
"""
|
503
|
+
http_info = self._create_sim_sm_scenarios_files_http_info(request)
|
504
|
+
return self._call_api(**http_info)
|
505
|
+
|
506
|
+
def create_sim_sm_scenarios_files_async_invoker(self, request):
|
507
|
+
http_info = self._create_sim_sm_scenarios_files_http_info(request)
|
508
|
+
return AsyncInvoker(self, http_info)
|
509
|
+
|
510
|
+
def _create_sim_sm_scenarios_files_http_info(self, request):
|
511
|
+
http_info = {
|
512
|
+
"method": "POST",
|
513
|
+
"resource_path": "/v2/{project_id}/sim/sm/scenarios/{parent_lookup_id}/files",
|
514
|
+
"request_type": request.__class__.__name__,
|
515
|
+
"response_type": "CreateSimSmScenariosFilesResponse"
|
516
|
+
}
|
517
|
+
|
518
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
519
|
+
|
520
|
+
cname = None
|
521
|
+
|
522
|
+
collection_formats = {}
|
523
|
+
|
524
|
+
path_params = {}
|
525
|
+
if 'parent_lookup_id' in local_var_params:
|
526
|
+
path_params['parent_lookup_id'] = local_var_params['parent_lookup_id']
|
527
|
+
|
528
|
+
query_params = []
|
529
|
+
|
530
|
+
header_params = {}
|
531
|
+
|
532
|
+
form_params = {}
|
533
|
+
|
534
|
+
body = None
|
535
|
+
if 'body' in local_var_params:
|
536
|
+
body = local_var_params['body']
|
537
|
+
if isinstance(request, SdkStreamRequest):
|
538
|
+
body = request.get_file_stream()
|
539
|
+
|
540
|
+
response_headers = []
|
541
|
+
|
542
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
543
|
+
['application/json'])
|
544
|
+
|
545
|
+
auth_settings = []
|
546
|
+
|
547
|
+
http_info["cname"] = cname
|
548
|
+
http_info["collection_formats"] = collection_formats
|
549
|
+
http_info["path_params"] = path_params
|
550
|
+
http_info["query_params"] = query_params
|
551
|
+
http_info["header_params"] = header_params
|
552
|
+
http_info["post_params"] = form_params
|
553
|
+
http_info["body"] = body
|
554
|
+
http_info["response_headers"] = response_headers
|
555
|
+
|
556
|
+
return http_info
|
557
|
+
|
558
|
+
def delete_sim_algorithm_images_async(self, request):
|
559
|
+
r"""删除算法镜像
|
560
|
+
|
561
|
+
A DRF ViewSet for algorithm image.
|
562
|
+
|
563
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
564
|
+
|
565
|
+
|
566
|
+
:param request: Request instance for DeleteSimAlgorithmImages
|
567
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.DeleteSimAlgorithmImagesRequest`
|
568
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.DeleteSimAlgorithmImagesResponse`
|
569
|
+
"""
|
570
|
+
http_info = self._delete_sim_algorithm_images_http_info(request)
|
571
|
+
return self._call_api(**http_info)
|
572
|
+
|
573
|
+
def delete_sim_algorithm_images_async_invoker(self, request):
|
574
|
+
http_info = self._delete_sim_algorithm_images_http_info(request)
|
575
|
+
return AsyncInvoker(self, http_info)
|
576
|
+
|
577
|
+
def _delete_sim_algorithm_images_http_info(self, request):
|
578
|
+
http_info = {
|
579
|
+
"method": "DELETE",
|
580
|
+
"resource_path": "/v2/{project_id}/sim/pm/algorithm-images/{id}",
|
581
|
+
"request_type": request.__class__.__name__,
|
582
|
+
"response_type": "DeleteSimAlgorithmImagesResponse"
|
583
|
+
}
|
584
|
+
|
585
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
586
|
+
|
587
|
+
cname = None
|
588
|
+
|
589
|
+
collection_formats = {}
|
590
|
+
|
591
|
+
path_params = {}
|
592
|
+
if 'id' in local_var_params:
|
593
|
+
path_params['id'] = local_var_params['id']
|
594
|
+
|
595
|
+
query_params = []
|
596
|
+
|
597
|
+
header_params = {}
|
598
|
+
|
599
|
+
form_params = {}
|
600
|
+
|
601
|
+
body = None
|
602
|
+
if isinstance(request, SdkStreamRequest):
|
603
|
+
body = request.get_file_stream()
|
604
|
+
|
605
|
+
response_headers = []
|
606
|
+
|
607
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
608
|
+
['application/json'])
|
609
|
+
|
610
|
+
auth_settings = []
|
611
|
+
|
612
|
+
http_info["cname"] = cname
|
613
|
+
http_info["collection_formats"] = collection_formats
|
614
|
+
http_info["path_params"] = path_params
|
615
|
+
http_info["query_params"] = query_params
|
616
|
+
http_info["header_params"] = header_params
|
617
|
+
http_info["post_params"] = form_params
|
618
|
+
http_info["body"] = body
|
619
|
+
http_info["response_headers"] = response_headers
|
620
|
+
|
621
|
+
return http_info
|
622
|
+
|
623
|
+
def delete_sim_algorithms_async(self, request):
|
624
|
+
r"""删除算法
|
625
|
+
|
626
|
+
A DRF ViewSet for algorithm.
|
627
|
+
|
628
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
629
|
+
|
630
|
+
|
631
|
+
:param request: Request instance for DeleteSimAlgorithms
|
632
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.DeleteSimAlgorithmsRequest`
|
633
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.DeleteSimAlgorithmsResponse`
|
634
|
+
"""
|
635
|
+
http_info = self._delete_sim_algorithms_http_info(request)
|
636
|
+
return self._call_api(**http_info)
|
637
|
+
|
638
|
+
def delete_sim_algorithms_async_invoker(self, request):
|
639
|
+
http_info = self._delete_sim_algorithms_http_info(request)
|
640
|
+
return AsyncInvoker(self, http_info)
|
641
|
+
|
642
|
+
def _delete_sim_algorithms_http_info(self, request):
|
643
|
+
http_info = {
|
644
|
+
"method": "DELETE",
|
645
|
+
"resource_path": "/v2/{project_id}/sim/pm/algorithms/{id}",
|
646
|
+
"request_type": request.__class__.__name__,
|
647
|
+
"response_type": "DeleteSimAlgorithmsResponse"
|
648
|
+
}
|
649
|
+
|
650
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
651
|
+
|
652
|
+
cname = None
|
653
|
+
|
654
|
+
collection_formats = {}
|
655
|
+
|
656
|
+
path_params = {}
|
657
|
+
if 'id' in local_var_params:
|
658
|
+
path_params['id'] = local_var_params['id']
|
659
|
+
|
660
|
+
query_params = []
|
661
|
+
|
662
|
+
header_params = {}
|
663
|
+
|
664
|
+
form_params = {}
|
665
|
+
|
666
|
+
body = None
|
667
|
+
if isinstance(request, SdkStreamRequest):
|
668
|
+
body = request.get_file_stream()
|
669
|
+
|
670
|
+
response_headers = []
|
671
|
+
|
672
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
673
|
+
['application/json'])
|
674
|
+
|
675
|
+
auth_settings = []
|
676
|
+
|
677
|
+
http_info["cname"] = cname
|
678
|
+
http_info["collection_formats"] = collection_formats
|
679
|
+
http_info["path_params"] = path_params
|
680
|
+
http_info["query_params"] = query_params
|
681
|
+
http_info["header_params"] = header_params
|
682
|
+
http_info["post_params"] = form_params
|
683
|
+
http_info["body"] = body
|
684
|
+
http_info["response_headers"] = response_headers
|
685
|
+
|
686
|
+
return http_info
|
687
|
+
|
688
|
+
def delete_sim_batch_configs_async(self, request):
|
689
|
+
r"""删除仿真任务配置
|
690
|
+
|
691
|
+
A DRF ViewSet for BatchConfig.
|
692
|
+
|
693
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
694
|
+
|
695
|
+
|
696
|
+
:param request: Request instance for DeleteSimBatchConfigs
|
697
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.DeleteSimBatchConfigsRequest`
|
698
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.DeleteSimBatchConfigsResponse`
|
699
|
+
"""
|
700
|
+
http_info = self._delete_sim_batch_configs_http_info(request)
|
701
|
+
return self._call_api(**http_info)
|
702
|
+
|
703
|
+
def delete_sim_batch_configs_async_invoker(self, request):
|
704
|
+
http_info = self._delete_sim_batch_configs_http_info(request)
|
705
|
+
return AsyncInvoker(self, http_info)
|
706
|
+
|
707
|
+
def _delete_sim_batch_configs_http_info(self, request):
|
708
|
+
http_info = {
|
709
|
+
"method": "DELETE",
|
710
|
+
"resource_path": "/v2/{project_id}/sim/pm/batch-configs/{id}",
|
711
|
+
"request_type": request.__class__.__name__,
|
712
|
+
"response_type": "DeleteSimBatchConfigsResponse"
|
713
|
+
}
|
714
|
+
|
715
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
716
|
+
|
717
|
+
cname = None
|
718
|
+
|
719
|
+
collection_formats = {}
|
720
|
+
|
721
|
+
path_params = {}
|
722
|
+
if 'id' in local_var_params:
|
723
|
+
path_params['id'] = local_var_params['id']
|
724
|
+
|
725
|
+
query_params = []
|
726
|
+
|
727
|
+
header_params = {}
|
728
|
+
|
729
|
+
form_params = {}
|
730
|
+
|
731
|
+
body = None
|
732
|
+
if isinstance(request, SdkStreamRequest):
|
733
|
+
body = request.get_file_stream()
|
734
|
+
|
735
|
+
response_headers = []
|
736
|
+
|
737
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
738
|
+
['application/json'])
|
739
|
+
|
740
|
+
auth_settings = []
|
741
|
+
|
742
|
+
http_info["cname"] = cname
|
743
|
+
http_info["collection_formats"] = collection_formats
|
744
|
+
http_info["path_params"] = path_params
|
745
|
+
http_info["query_params"] = query_params
|
746
|
+
http_info["header_params"] = header_params
|
747
|
+
http_info["post_params"] = form_params
|
748
|
+
http_info["body"] = body
|
749
|
+
http_info["response_headers"] = response_headers
|
750
|
+
|
751
|
+
return http_info
|
752
|
+
|
753
|
+
def delete_sim_batches_async(self, request):
|
754
|
+
r"""删除仿真任务
|
755
|
+
|
756
|
+
A DRF ViewSet for Batch.
|
757
|
+
|
758
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
759
|
+
|
760
|
+
|
761
|
+
:param request: Request instance for DeleteSimBatches
|
762
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.DeleteSimBatchesRequest`
|
763
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.DeleteSimBatchesResponse`
|
764
|
+
"""
|
765
|
+
http_info = self._delete_sim_batches_http_info(request)
|
766
|
+
return self._call_api(**http_info)
|
767
|
+
|
768
|
+
def delete_sim_batches_async_invoker(self, request):
|
769
|
+
http_info = self._delete_sim_batches_http_info(request)
|
770
|
+
return AsyncInvoker(self, http_info)
|
771
|
+
|
772
|
+
def _delete_sim_batches_http_info(self, request):
|
773
|
+
http_info = {
|
774
|
+
"method": "DELETE",
|
775
|
+
"resource_path": "/v2/{project_id}/sim/pm/batches/{id}",
|
776
|
+
"request_type": request.__class__.__name__,
|
777
|
+
"response_type": "DeleteSimBatchesResponse"
|
778
|
+
}
|
779
|
+
|
780
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
781
|
+
|
782
|
+
cname = None
|
783
|
+
|
784
|
+
collection_formats = {}
|
785
|
+
|
786
|
+
path_params = {}
|
787
|
+
if 'id' in local_var_params:
|
788
|
+
path_params['id'] = local_var_params['id']
|
789
|
+
|
790
|
+
query_params = []
|
791
|
+
|
792
|
+
header_params = {}
|
793
|
+
|
794
|
+
form_params = {}
|
795
|
+
|
796
|
+
body = None
|
797
|
+
if isinstance(request, SdkStreamRequest):
|
798
|
+
body = request.get_file_stream()
|
799
|
+
|
800
|
+
response_headers = []
|
801
|
+
|
802
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
803
|
+
['application/json'])
|
804
|
+
|
805
|
+
auth_settings = []
|
806
|
+
|
807
|
+
http_info["cname"] = cname
|
808
|
+
http_info["collection_formats"] = collection_formats
|
809
|
+
http_info["path_params"] = path_params
|
810
|
+
http_info["query_params"] = query_params
|
811
|
+
http_info["header_params"] = header_params
|
812
|
+
http_info["post_params"] = form_params
|
813
|
+
http_info["body"] = body
|
814
|
+
http_info["response_headers"] = response_headers
|
815
|
+
|
816
|
+
return http_info
|
817
|
+
|
818
|
+
def delete_sim_extensions_async(self, request):
|
819
|
+
r"""删除扩展文件
|
820
|
+
|
821
|
+
|
822
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
823
|
+
|
824
|
+
|
825
|
+
:param request: Request instance for DeleteSimExtensions
|
826
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.DeleteSimExtensionsRequest`
|
827
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.DeleteSimExtensionsResponse`
|
828
|
+
"""
|
829
|
+
http_info = self._delete_sim_extensions_http_info(request)
|
830
|
+
return self._call_api(**http_info)
|
831
|
+
|
832
|
+
def delete_sim_extensions_async_invoker(self, request):
|
833
|
+
http_info = self._delete_sim_extensions_http_info(request)
|
834
|
+
return AsyncInvoker(self, http_info)
|
835
|
+
|
836
|
+
def _delete_sim_extensions_http_info(self, request):
|
837
|
+
http_info = {
|
838
|
+
"method": "DELETE",
|
839
|
+
"resource_path": "/v2/{project_id}/sim/pm/extensions/{id}",
|
840
|
+
"request_type": request.__class__.__name__,
|
841
|
+
"response_type": "DeleteSimExtensionsResponse"
|
842
|
+
}
|
843
|
+
|
844
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
845
|
+
|
846
|
+
cname = None
|
847
|
+
|
848
|
+
collection_formats = {}
|
849
|
+
|
850
|
+
path_params = {}
|
851
|
+
if 'id' in local_var_params:
|
852
|
+
path_params['id'] = local_var_params['id']
|
853
|
+
|
854
|
+
query_params = []
|
855
|
+
|
856
|
+
header_params = {}
|
857
|
+
|
858
|
+
form_params = {}
|
859
|
+
|
860
|
+
body = None
|
861
|
+
if isinstance(request, SdkStreamRequest):
|
862
|
+
body = request.get_file_stream()
|
863
|
+
|
864
|
+
response_headers = []
|
865
|
+
|
866
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
867
|
+
['application/json'])
|
868
|
+
|
869
|
+
auth_settings = []
|
870
|
+
|
871
|
+
http_info["cname"] = cname
|
872
|
+
http_info["collection_formats"] = collection_formats
|
873
|
+
http_info["path_params"] = path_params
|
874
|
+
http_info["query_params"] = query_params
|
875
|
+
http_info["header_params"] = header_params
|
876
|
+
http_info["post_params"] = form_params
|
877
|
+
http_info["body"] = body
|
878
|
+
http_info["response_headers"] = response_headers
|
879
|
+
|
880
|
+
return http_info
|
881
|
+
|
882
|
+
def list_sim_algorithm_images_async(self, request):
|
883
|
+
r"""获取算法镜像列表
|
884
|
+
|
885
|
+
A DRF ViewSet for algorithm image.
|
886
|
+
|
887
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
888
|
+
|
889
|
+
|
890
|
+
:param request: Request instance for ListSimAlgorithmImages
|
891
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.ListSimAlgorithmImagesRequest`
|
892
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.ListSimAlgorithmImagesResponse`
|
893
|
+
"""
|
894
|
+
http_info = self._list_sim_algorithm_images_http_info(request)
|
895
|
+
return self._call_api(**http_info)
|
896
|
+
|
897
|
+
def list_sim_algorithm_images_async_invoker(self, request):
|
898
|
+
http_info = self._list_sim_algorithm_images_http_info(request)
|
899
|
+
return AsyncInvoker(self, http_info)
|
900
|
+
|
901
|
+
def _list_sim_algorithm_images_http_info(self, request):
|
902
|
+
http_info = {
|
903
|
+
"method": "GET",
|
904
|
+
"resource_path": "/v2/{project_id}/sim/pm/algorithm-images",
|
905
|
+
"request_type": request.__class__.__name__,
|
906
|
+
"response_type": "ListSimAlgorithmImagesResponse"
|
907
|
+
}
|
908
|
+
|
909
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
910
|
+
|
911
|
+
cname = None
|
912
|
+
|
913
|
+
collection_formats = {}
|
914
|
+
|
915
|
+
path_params = {}
|
916
|
+
|
917
|
+
query_params = []
|
918
|
+
if 'algorithm' in local_var_params:
|
919
|
+
query_params.append(('algorithm', local_var_params['algorithm']))
|
920
|
+
if 'algorithm_id' in local_var_params:
|
921
|
+
query_params.append(('algorithm_id', local_var_params['algorithm_id']))
|
922
|
+
if 'limit' in local_var_params:
|
923
|
+
query_params.append(('limit', local_var_params['limit']))
|
924
|
+
if 'offset' in local_var_params:
|
925
|
+
query_params.append(('offset', local_var_params['offset']))
|
926
|
+
if 'ordering' in local_var_params:
|
927
|
+
query_params.append(('ordering', local_var_params['ordering']))
|
928
|
+
if 'search' in local_var_params:
|
929
|
+
query_params.append(('search', local_var_params['search']))
|
930
|
+
if 'status' in local_var_params:
|
931
|
+
query_params.append(('status', local_var_params['status']))
|
932
|
+
if 'type' in local_var_params:
|
933
|
+
query_params.append(('type', local_var_params['type']))
|
934
|
+
if 'version' in local_var_params:
|
935
|
+
query_params.append(('version', local_var_params['version']))
|
936
|
+
|
937
|
+
header_params = {}
|
938
|
+
|
939
|
+
form_params = {}
|
940
|
+
|
941
|
+
body = None
|
942
|
+
if isinstance(request, SdkStreamRequest):
|
943
|
+
body = request.get_file_stream()
|
944
|
+
|
945
|
+
response_headers = []
|
946
|
+
|
947
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
948
|
+
['application/json'])
|
949
|
+
|
950
|
+
auth_settings = []
|
951
|
+
|
952
|
+
http_info["cname"] = cname
|
953
|
+
http_info["collection_formats"] = collection_formats
|
954
|
+
http_info["path_params"] = path_params
|
955
|
+
http_info["query_params"] = query_params
|
956
|
+
http_info["header_params"] = header_params
|
957
|
+
http_info["post_params"] = form_params
|
958
|
+
http_info["body"] = body
|
959
|
+
http_info["response_headers"] = response_headers
|
960
|
+
|
961
|
+
return http_info
|
962
|
+
|
963
|
+
def list_sim_algorithms_async(self, request):
|
964
|
+
r"""获取算法列表
|
965
|
+
|
966
|
+
A DRF ViewSet for algorithm.
|
967
|
+
|
968
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
969
|
+
|
970
|
+
|
971
|
+
:param request: Request instance for ListSimAlgorithms
|
972
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.ListSimAlgorithmsRequest`
|
973
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.ListSimAlgorithmsResponse`
|
974
|
+
"""
|
975
|
+
http_info = self._list_sim_algorithms_http_info(request)
|
976
|
+
return self._call_api(**http_info)
|
977
|
+
|
978
|
+
def list_sim_algorithms_async_invoker(self, request):
|
979
|
+
http_info = self._list_sim_algorithms_http_info(request)
|
980
|
+
return AsyncInvoker(self, http_info)
|
981
|
+
|
982
|
+
def _list_sim_algorithms_http_info(self, request):
|
983
|
+
http_info = {
|
984
|
+
"method": "GET",
|
985
|
+
"resource_path": "/v2/{project_id}/sim/pm/algorithms",
|
986
|
+
"request_type": request.__class__.__name__,
|
987
|
+
"response_type": "ListSimAlgorithmsResponse"
|
988
|
+
}
|
989
|
+
|
990
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
991
|
+
|
992
|
+
cname = None
|
993
|
+
|
994
|
+
collection_formats = {}
|
995
|
+
|
996
|
+
path_params = {}
|
997
|
+
|
998
|
+
query_params = []
|
999
|
+
if 'category' in local_var_params:
|
1000
|
+
query_params.append(('category', local_var_params['category']))
|
1001
|
+
if 'limit' in local_var_params:
|
1002
|
+
query_params.append(('limit', local_var_params['limit']))
|
1003
|
+
if 'name' in local_var_params:
|
1004
|
+
query_params.append(('name', local_var_params['name']))
|
1005
|
+
if 'offset' in local_var_params:
|
1006
|
+
query_params.append(('offset', local_var_params['offset']))
|
1007
|
+
if 'ordering' in local_var_params:
|
1008
|
+
query_params.append(('ordering', local_var_params['ordering']))
|
1009
|
+
if 'image_repo_id' in local_var_params:
|
1010
|
+
query_params.append(('image_repo_id', local_var_params['image_repo_id']))
|
1011
|
+
if 'search' in local_var_params:
|
1012
|
+
query_params.append(('search', local_var_params['search']))
|
1013
|
+
|
1014
|
+
header_params = {}
|
1015
|
+
|
1016
|
+
form_params = {}
|
1017
|
+
|
1018
|
+
body = None
|
1019
|
+
if isinstance(request, SdkStreamRequest):
|
1020
|
+
body = request.get_file_stream()
|
1021
|
+
|
1022
|
+
response_headers = []
|
1023
|
+
|
1024
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1025
|
+
['application/json'])
|
1026
|
+
|
1027
|
+
auth_settings = []
|
1028
|
+
|
1029
|
+
http_info["cname"] = cname
|
1030
|
+
http_info["collection_formats"] = collection_formats
|
1031
|
+
http_info["path_params"] = path_params
|
1032
|
+
http_info["query_params"] = query_params
|
1033
|
+
http_info["header_params"] = header_params
|
1034
|
+
http_info["post_params"] = form_params
|
1035
|
+
http_info["body"] = body
|
1036
|
+
http_info["response_headers"] = response_headers
|
1037
|
+
|
1038
|
+
return http_info
|
1039
|
+
|
1040
|
+
def list_sim_batch_configs_async(self, request):
|
1041
|
+
r"""获取仿真任务配置列表
|
1042
|
+
|
1043
|
+
A DRF ViewSet for BatchConfig.
|
1044
|
+
|
1045
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1046
|
+
|
1047
|
+
|
1048
|
+
:param request: Request instance for ListSimBatchConfigs
|
1049
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.ListSimBatchConfigsRequest`
|
1050
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.ListSimBatchConfigsResponse`
|
1051
|
+
"""
|
1052
|
+
http_info = self._list_sim_batch_configs_http_info(request)
|
1053
|
+
return self._call_api(**http_info)
|
1054
|
+
|
1055
|
+
def list_sim_batch_configs_async_invoker(self, request):
|
1056
|
+
http_info = self._list_sim_batch_configs_http_info(request)
|
1057
|
+
return AsyncInvoker(self, http_info)
|
1058
|
+
|
1059
|
+
def _list_sim_batch_configs_http_info(self, request):
|
1060
|
+
http_info = {
|
1061
|
+
"method": "GET",
|
1062
|
+
"resource_path": "/v2/{project_id}/sim/pm/batch-configs",
|
1063
|
+
"request_type": request.__class__.__name__,
|
1064
|
+
"response_type": "ListSimBatchConfigsResponse"
|
1065
|
+
}
|
1066
|
+
|
1067
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1068
|
+
|
1069
|
+
cname = None
|
1070
|
+
|
1071
|
+
collection_formats = {}
|
1072
|
+
|
1073
|
+
path_params = {}
|
1074
|
+
|
1075
|
+
query_params = []
|
1076
|
+
if 'algorithm_id' in local_var_params:
|
1077
|
+
query_params.append(('algorithm_id', local_var_params['algorithm_id']))
|
1078
|
+
if 'algorithm_name' in local_var_params:
|
1079
|
+
query_params.append(('algorithm_name', local_var_params['algorithm_name']))
|
1080
|
+
if 'builtins_algorithm' in local_var_params:
|
1081
|
+
query_params.append(('builtins_algorithm', local_var_params['builtins_algorithm']))
|
1082
|
+
if 'custom_evaluation_image_id' in local_var_params:
|
1083
|
+
query_params.append(('custom_evaluation_image_id', local_var_params['custom_evaluation_image_id']))
|
1084
|
+
if 'custom_simulator_image_id' in local_var_params:
|
1085
|
+
query_params.append(('custom_simulator_image_id', local_var_params['custom_simulator_image_id']))
|
1086
|
+
if 'description' in local_var_params:
|
1087
|
+
query_params.append(('description', local_var_params['description']))
|
1088
|
+
if 'evaluation_id' in local_var_params:
|
1089
|
+
query_params.append(('evaluation_id', local_var_params['evaluation_id']))
|
1090
|
+
if 'evaluation_name' in local_var_params:
|
1091
|
+
query_params.append(('evaluation_name', local_var_params['evaluation_name']))
|
1092
|
+
if 'evaluations' in local_var_params:
|
1093
|
+
query_params.append(('evaluations', local_var_params['evaluations']))
|
1094
|
+
collection_formats['evaluations'] = 'multi'
|
1095
|
+
if 'generalization_id' in local_var_params:
|
1096
|
+
query_params.append(('generalization_id', local_var_params['generalization_id']))
|
1097
|
+
if 'group_id' in local_var_params:
|
1098
|
+
query_params.append(('group_id', local_var_params['group_id']))
|
1099
|
+
if 'id' in local_var_params:
|
1100
|
+
query_params.append(('id', local_var_params['id']))
|
1101
|
+
if 'limit' in local_var_params:
|
1102
|
+
query_params.append(('limit', local_var_params['limit']))
|
1103
|
+
if 'name' in local_var_params:
|
1104
|
+
query_params.append(('name', local_var_params['name']))
|
1105
|
+
if 'offset' in local_var_params:
|
1106
|
+
query_params.append(('offset', local_var_params['offset']))
|
1107
|
+
if 'ordering' in local_var_params:
|
1108
|
+
query_params.append(('ordering', local_var_params['ordering']))
|
1109
|
+
if 'search' in local_var_params:
|
1110
|
+
query_params.append(('search', local_var_params['search']))
|
1111
|
+
if 'suit_id' in local_var_params:
|
1112
|
+
query_params.append(('suit_id', local_var_params['suit_id']))
|
1113
|
+
if 'triggerable' in local_var_params:
|
1114
|
+
query_params.append(('triggerable', local_var_params['triggerable']))
|
1115
|
+
|
1116
|
+
header_params = {}
|
1117
|
+
|
1118
|
+
form_params = {}
|
1119
|
+
|
1120
|
+
body = None
|
1121
|
+
if isinstance(request, SdkStreamRequest):
|
1122
|
+
body = request.get_file_stream()
|
1123
|
+
|
1124
|
+
response_headers = []
|
1125
|
+
|
1126
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1127
|
+
['application/json'])
|
1128
|
+
|
1129
|
+
auth_settings = []
|
1130
|
+
|
1131
|
+
http_info["cname"] = cname
|
1132
|
+
http_info["collection_formats"] = collection_formats
|
1133
|
+
http_info["path_params"] = path_params
|
1134
|
+
http_info["query_params"] = query_params
|
1135
|
+
http_info["header_params"] = header_params
|
1136
|
+
http_info["post_params"] = form_params
|
1137
|
+
http_info["body"] = body
|
1138
|
+
http_info["response_headers"] = response_headers
|
1139
|
+
|
1140
|
+
return http_info
|
1141
|
+
|
1142
|
+
def list_sim_batches_async(self, request):
|
1143
|
+
r"""获取仿真任务列表
|
1144
|
+
|
1145
|
+
A DRF ViewSet for Batch.
|
1146
|
+
|
1147
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1148
|
+
|
1149
|
+
|
1150
|
+
:param request: Request instance for ListSimBatches
|
1151
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.ListSimBatchesRequest`
|
1152
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.ListSimBatchesResponse`
|
1153
|
+
"""
|
1154
|
+
http_info = self._list_sim_batches_http_info(request)
|
1155
|
+
return self._call_api(**http_info)
|
1156
|
+
|
1157
|
+
def list_sim_batches_async_invoker(self, request):
|
1158
|
+
http_info = self._list_sim_batches_http_info(request)
|
1159
|
+
return AsyncInvoker(self, http_info)
|
1160
|
+
|
1161
|
+
def _list_sim_batches_http_info(self, request):
|
1162
|
+
http_info = {
|
1163
|
+
"method": "GET",
|
1164
|
+
"resource_path": "/v2/{project_id}/sim/pm/batches",
|
1165
|
+
"request_type": request.__class__.__name__,
|
1166
|
+
"response_type": "ListSimBatchesResponse"
|
1167
|
+
}
|
1168
|
+
|
1169
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1170
|
+
|
1171
|
+
cname = None
|
1172
|
+
|
1173
|
+
collection_formats = {}
|
1174
|
+
|
1175
|
+
path_params = {}
|
1176
|
+
|
1177
|
+
query_params = []
|
1178
|
+
if 'algorithm_image_version' in local_var_params:
|
1179
|
+
query_params.append(('algorithm_image_version', local_var_params['algorithm_image_version']))
|
1180
|
+
if 'algorithm_name' in local_var_params:
|
1181
|
+
query_params.append(('algorithm_name', local_var_params['algorithm_name']))
|
1182
|
+
if 'batch_config_id' in local_var_params:
|
1183
|
+
query_params.append(('batch_config_id', local_var_params['batch_config_id']))
|
1184
|
+
if 'description' in local_var_params:
|
1185
|
+
query_params.append(('description', local_var_params['description']))
|
1186
|
+
if 'generalization_id' in local_var_params:
|
1187
|
+
query_params.append(('generalization_id', local_var_params['generalization_id']))
|
1188
|
+
if 'id' in local_var_params:
|
1189
|
+
query_params.append(('id', local_var_params['id']))
|
1190
|
+
if 'limit' in local_var_params:
|
1191
|
+
query_params.append(('limit', local_var_params['limit']))
|
1192
|
+
if 'name' in local_var_params:
|
1193
|
+
query_params.append(('name', local_var_params['name']))
|
1194
|
+
if 'offset' in local_var_params:
|
1195
|
+
query_params.append(('offset', local_var_params['offset']))
|
1196
|
+
if 'ordering' in local_var_params:
|
1197
|
+
query_params.append(('ordering', local_var_params['ordering']))
|
1198
|
+
if 'search' in local_var_params:
|
1199
|
+
query_params.append(('search', local_var_params['search']))
|
1200
|
+
if 'status' in local_var_params:
|
1201
|
+
query_params.append(('status', local_var_params['status']))
|
1202
|
+
|
1203
|
+
header_params = {}
|
1204
|
+
|
1205
|
+
form_params = {}
|
1206
|
+
|
1207
|
+
body = None
|
1208
|
+
if isinstance(request, SdkStreamRequest):
|
1209
|
+
body = request.get_file_stream()
|
1210
|
+
|
1211
|
+
response_headers = []
|
1212
|
+
|
1213
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1214
|
+
['application/json'])
|
1215
|
+
|
1216
|
+
auth_settings = []
|
1217
|
+
|
1218
|
+
http_info["cname"] = cname
|
1219
|
+
http_info["collection_formats"] = collection_formats
|
1220
|
+
http_info["path_params"] = path_params
|
1221
|
+
http_info["query_params"] = query_params
|
1222
|
+
http_info["header_params"] = header_params
|
1223
|
+
http_info["post_params"] = form_params
|
1224
|
+
http_info["body"] = body
|
1225
|
+
http_info["response_headers"] = response_headers
|
1226
|
+
|
1227
|
+
return http_info
|
1228
|
+
|
1229
|
+
def list_sim_extensions_async(self, request):
|
1230
|
+
r"""获取扩展文件列表
|
1231
|
+
|
1232
|
+
A DRF ViewSet for Extensions.
|
1233
|
+
|
1234
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1235
|
+
|
1236
|
+
|
1237
|
+
:param request: Request instance for ListSimExtensions
|
1238
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.ListSimExtensionsRequest`
|
1239
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.ListSimExtensionsResponse`
|
1240
|
+
"""
|
1241
|
+
http_info = self._list_sim_extensions_http_info(request)
|
1242
|
+
return self._call_api(**http_info)
|
1243
|
+
|
1244
|
+
def list_sim_extensions_async_invoker(self, request):
|
1245
|
+
http_info = self._list_sim_extensions_http_info(request)
|
1246
|
+
return AsyncInvoker(self, http_info)
|
1247
|
+
|
1248
|
+
def _list_sim_extensions_http_info(self, request):
|
1249
|
+
http_info = {
|
1250
|
+
"method": "GET",
|
1251
|
+
"resource_path": "/v2/{project_id}/sim/pm/extensions",
|
1252
|
+
"request_type": request.__class__.__name__,
|
1253
|
+
"response_type": "ListSimExtensionsResponse"
|
1254
|
+
}
|
1255
|
+
|
1256
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1257
|
+
|
1258
|
+
cname = None
|
1259
|
+
|
1260
|
+
collection_formats = {}
|
1261
|
+
|
1262
|
+
path_params = {}
|
1263
|
+
|
1264
|
+
query_params = []
|
1265
|
+
if 'offset' in local_var_params:
|
1266
|
+
query_params.append(('offset', local_var_params['offset']))
|
1267
|
+
if 'limit' in local_var_params:
|
1268
|
+
query_params.append(('limit', local_var_params['limit']))
|
1269
|
+
if 'ordering' in local_var_params:
|
1270
|
+
query_params.append(('ordering', local_var_params['ordering']))
|
1271
|
+
if 'search' in local_var_params:
|
1272
|
+
query_params.append(('search', local_var_params['search']))
|
1273
|
+
|
1274
|
+
header_params = {}
|
1275
|
+
|
1276
|
+
form_params = {}
|
1277
|
+
|
1278
|
+
body = None
|
1279
|
+
if isinstance(request, SdkStreamRequest):
|
1280
|
+
body = request.get_file_stream()
|
1281
|
+
|
1282
|
+
response_headers = []
|
1283
|
+
|
1284
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1285
|
+
['application/json'])
|
1286
|
+
|
1287
|
+
auth_settings = []
|
1288
|
+
|
1289
|
+
http_info["cname"] = cname
|
1290
|
+
http_info["collection_formats"] = collection_formats
|
1291
|
+
http_info["path_params"] = path_params
|
1292
|
+
http_info["query_params"] = query_params
|
1293
|
+
http_info["header_params"] = header_params
|
1294
|
+
http_info["post_params"] = form_params
|
1295
|
+
http_info["body"] = body
|
1296
|
+
http_info["response_headers"] = response_headers
|
1297
|
+
|
1298
|
+
return http_info
|
1299
|
+
|
1300
|
+
def list_sim_simulations_async(self, request):
|
1301
|
+
r"""获取仿真子任务列表
|
1302
|
+
|
1303
|
+
List simulations data.
|
1304
|
+
|
1305
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1306
|
+
|
1307
|
+
|
1308
|
+
:param request: Request instance for ListSimSimulations
|
1309
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.ListSimSimulationsRequest`
|
1310
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.ListSimSimulationsResponse`
|
1311
|
+
"""
|
1312
|
+
http_info = self._list_sim_simulations_http_info(request)
|
1313
|
+
return self._call_api(**http_info)
|
1314
|
+
|
1315
|
+
def list_sim_simulations_async_invoker(self, request):
|
1316
|
+
http_info = self._list_sim_simulations_http_info(request)
|
1317
|
+
return AsyncInvoker(self, http_info)
|
1318
|
+
|
1319
|
+
def _list_sim_simulations_http_info(self, request):
|
1320
|
+
http_info = {
|
1321
|
+
"method": "GET",
|
1322
|
+
"resource_path": "/v2/{project_id}/sim/pm/simulations",
|
1323
|
+
"request_type": request.__class__.__name__,
|
1324
|
+
"response_type": "ListSimSimulationsResponse"
|
1325
|
+
}
|
1326
|
+
|
1327
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1328
|
+
|
1329
|
+
cname = None
|
1330
|
+
|
1331
|
+
collection_formats = {}
|
1332
|
+
|
1333
|
+
path_params = {}
|
1334
|
+
|
1335
|
+
query_params = []
|
1336
|
+
if 'algorithm_name' in local_var_params:
|
1337
|
+
query_params.append(('algorithm_name', local_var_params['algorithm_name']))
|
1338
|
+
if 'batch_id' in local_var_params:
|
1339
|
+
query_params.append(('batch_id', local_var_params['batch_id']))
|
1340
|
+
if 'batch_name' in local_var_params:
|
1341
|
+
query_params.append(('batch_name', local_var_params['batch_name']))
|
1342
|
+
if 'id' in local_var_params:
|
1343
|
+
query_params.append(('id', local_var_params['id']))
|
1344
|
+
if 'label' in local_var_params:
|
1345
|
+
query_params.append(('label', local_var_params['label']))
|
1346
|
+
if 'limit' in local_var_params:
|
1347
|
+
query_params.append(('limit', local_var_params['limit']))
|
1348
|
+
if 'offset' in local_var_params:
|
1349
|
+
query_params.append(('offset', local_var_params['offset']))
|
1350
|
+
if 'ordering' in local_var_params:
|
1351
|
+
query_params.append(('ordering', local_var_params['ordering']))
|
1352
|
+
if 'scenario_resource_id' in local_var_params:
|
1353
|
+
query_params.append(('scenario_resource_id', local_var_params['scenario_resource_id']))
|
1354
|
+
if 'scenario_resource_type' in local_var_params:
|
1355
|
+
query_params.append(('scenario_resource_type', local_var_params['scenario_resource_type']))
|
1356
|
+
if 'status' in local_var_params:
|
1357
|
+
query_params.append(('status', local_var_params['status']))
|
1358
|
+
|
1359
|
+
header_params = {}
|
1360
|
+
|
1361
|
+
form_params = {}
|
1362
|
+
|
1363
|
+
body = None
|
1364
|
+
if isinstance(request, SdkStreamRequest):
|
1365
|
+
body = request.get_file_stream()
|
1366
|
+
|
1367
|
+
response_headers = []
|
1368
|
+
|
1369
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1370
|
+
['application/json'])
|
1371
|
+
|
1372
|
+
auth_settings = []
|
1373
|
+
|
1374
|
+
http_info["cname"] = cname
|
1375
|
+
http_info["collection_formats"] = collection_formats
|
1376
|
+
http_info["path_params"] = path_params
|
1377
|
+
http_info["query_params"] = query_params
|
1378
|
+
http_info["header_params"] = header_params
|
1379
|
+
http_info["post_params"] = form_params
|
1380
|
+
http_info["body"] = body
|
1381
|
+
http_info["response_headers"] = response_headers
|
1382
|
+
|
1383
|
+
return http_info
|
1384
|
+
|
1385
|
+
def list_sim_sm_scenarios_async(self, request):
|
1386
|
+
r"""场景列表
|
1387
|
+
|
1388
|
+
A DRF ViewSet for Scenario.
|
1389
|
+
|
1390
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1391
|
+
|
1392
|
+
|
1393
|
+
:param request: Request instance for ListSimSmScenarios
|
1394
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.ListSimSmScenariosRequest`
|
1395
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.ListSimSmScenariosResponse`
|
1396
|
+
"""
|
1397
|
+
http_info = self._list_sim_sm_scenarios_http_info(request)
|
1398
|
+
return self._call_api(**http_info)
|
1399
|
+
|
1400
|
+
def list_sim_sm_scenarios_async_invoker(self, request):
|
1401
|
+
http_info = self._list_sim_sm_scenarios_http_info(request)
|
1402
|
+
return AsyncInvoker(self, http_info)
|
1403
|
+
|
1404
|
+
def _list_sim_sm_scenarios_http_info(self, request):
|
1405
|
+
http_info = {
|
1406
|
+
"method": "GET",
|
1407
|
+
"resource_path": "/v2/{project_id}/sim/sm/scenarios",
|
1408
|
+
"request_type": request.__class__.__name__,
|
1409
|
+
"response_type": "ListSimSmScenariosResponse"
|
1410
|
+
}
|
1411
|
+
|
1412
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1413
|
+
|
1414
|
+
cname = None
|
1415
|
+
|
1416
|
+
collection_formats = {}
|
1417
|
+
|
1418
|
+
path_params = {}
|
1419
|
+
|
1420
|
+
query_params = []
|
1421
|
+
if 'exclude_group' in local_var_params:
|
1422
|
+
query_params.append(('exclude_group', local_var_params['exclude_group']))
|
1423
|
+
if 'file' in local_var_params:
|
1424
|
+
query_params.append(('file', local_var_params['file']))
|
1425
|
+
if 'gen_scenario' in local_var_params:
|
1426
|
+
query_params.append(('gen_scenario', local_var_params['gen_scenario']))
|
1427
|
+
if 'group' in local_var_params:
|
1428
|
+
query_params.append(('group', local_var_params['group']))
|
1429
|
+
collection_formats['group'] = 'multi'
|
1430
|
+
if 'id' in local_var_params:
|
1431
|
+
query_params.append(('id', local_var_params['id']))
|
1432
|
+
if 'label' in local_var_params:
|
1433
|
+
query_params.append(('label', local_var_params['label']))
|
1434
|
+
if 'map' in local_var_params:
|
1435
|
+
query_params.append(('map', local_var_params['map']))
|
1436
|
+
if 'name' in local_var_params:
|
1437
|
+
query_params.append(('name', local_var_params['name']))
|
1438
|
+
if 'ordering' in local_var_params:
|
1439
|
+
query_params.append(('ordering', local_var_params['ordering']))
|
1440
|
+
if 'offset' in local_var_params:
|
1441
|
+
query_params.append(('offset', local_var_params['offset']))
|
1442
|
+
if 'limit' in local_var_params:
|
1443
|
+
query_params.append(('limit', local_var_params['limit']))
|
1444
|
+
if 'search' in local_var_params:
|
1445
|
+
query_params.append(('search', local_var_params['search']))
|
1446
|
+
if 'simulator' in local_var_params:
|
1447
|
+
query_params.append(('simulator', local_var_params['simulator']))
|
1448
|
+
if 'source' in local_var_params:
|
1449
|
+
query_params.append(('source', local_var_params['source']))
|
1450
|
+
if 'status' in local_var_params:
|
1451
|
+
query_params.append(('status', local_var_params['status']))
|
1452
|
+
if 'user_name' in local_var_params:
|
1453
|
+
query_params.append(('user_name', local_var_params['user_name']))
|
1454
|
+
if 'version' in local_var_params:
|
1455
|
+
query_params.append(('version', local_var_params['version']))
|
1456
|
+
|
1457
|
+
header_params = {}
|
1458
|
+
|
1459
|
+
form_params = {}
|
1460
|
+
|
1461
|
+
body = None
|
1462
|
+
if isinstance(request, SdkStreamRequest):
|
1463
|
+
body = request.get_file_stream()
|
1464
|
+
|
1465
|
+
response_headers = []
|
1466
|
+
|
1467
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1468
|
+
['application/json'])
|
1469
|
+
|
1470
|
+
auth_settings = []
|
1471
|
+
|
1472
|
+
http_info["cname"] = cname
|
1473
|
+
http_info["collection_formats"] = collection_formats
|
1474
|
+
http_info["path_params"] = path_params
|
1475
|
+
http_info["query_params"] = query_params
|
1476
|
+
http_info["header_params"] = header_params
|
1477
|
+
http_info["post_params"] = form_params
|
1478
|
+
http_info["body"] = body
|
1479
|
+
http_info["response_headers"] = response_headers
|
1480
|
+
|
1481
|
+
return http_info
|
1482
|
+
|
1483
|
+
def show_sim_algorithm_async(self, request):
|
1484
|
+
r"""获取算法详情
|
1485
|
+
|
1486
|
+
A DRF ViewSet for algorithm.
|
1487
|
+
|
1488
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1489
|
+
|
1490
|
+
|
1491
|
+
:param request: Request instance for ShowSimAlgorithm
|
1492
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.ShowSimAlgorithmRequest`
|
1493
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.ShowSimAlgorithmResponse`
|
1494
|
+
"""
|
1495
|
+
http_info = self._show_sim_algorithm_http_info(request)
|
1496
|
+
return self._call_api(**http_info)
|
1497
|
+
|
1498
|
+
def show_sim_algorithm_async_invoker(self, request):
|
1499
|
+
http_info = self._show_sim_algorithm_http_info(request)
|
1500
|
+
return AsyncInvoker(self, http_info)
|
1501
|
+
|
1502
|
+
def _show_sim_algorithm_http_info(self, request):
|
1503
|
+
http_info = {
|
1504
|
+
"method": "GET",
|
1505
|
+
"resource_path": "/v2/{project_id}/sim/pm/algorithms/{id}",
|
1506
|
+
"request_type": request.__class__.__name__,
|
1507
|
+
"response_type": "ShowSimAlgorithmResponse"
|
1508
|
+
}
|
1509
|
+
|
1510
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1511
|
+
|
1512
|
+
cname = None
|
1513
|
+
|
1514
|
+
collection_formats = {}
|
1515
|
+
|
1516
|
+
path_params = {}
|
1517
|
+
if 'id' in local_var_params:
|
1518
|
+
path_params['id'] = local_var_params['id']
|
1519
|
+
|
1520
|
+
query_params = []
|
1521
|
+
|
1522
|
+
header_params = {}
|
1523
|
+
|
1524
|
+
form_params = {}
|
1525
|
+
|
1526
|
+
body = None
|
1527
|
+
if isinstance(request, SdkStreamRequest):
|
1528
|
+
body = request.get_file_stream()
|
1529
|
+
|
1530
|
+
response_headers = []
|
1531
|
+
|
1532
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1533
|
+
['application/json'])
|
1534
|
+
|
1535
|
+
auth_settings = []
|
1536
|
+
|
1537
|
+
http_info["cname"] = cname
|
1538
|
+
http_info["collection_formats"] = collection_formats
|
1539
|
+
http_info["path_params"] = path_params
|
1540
|
+
http_info["query_params"] = query_params
|
1541
|
+
http_info["header_params"] = header_params
|
1542
|
+
http_info["post_params"] = form_params
|
1543
|
+
http_info["body"] = body
|
1544
|
+
http_info["response_headers"] = response_headers
|
1545
|
+
|
1546
|
+
return http_info
|
1547
|
+
|
1548
|
+
def show_sim_algorithm_image_async(self, request):
|
1549
|
+
r"""获取算法镜像详情
|
1550
|
+
|
1551
|
+
A DRF ViewSet for algorithm image.
|
1552
|
+
|
1553
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1554
|
+
|
1555
|
+
|
1556
|
+
:param request: Request instance for ShowSimAlgorithmImage
|
1557
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.ShowSimAlgorithmImageRequest`
|
1558
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.ShowSimAlgorithmImageResponse`
|
1559
|
+
"""
|
1560
|
+
http_info = self._show_sim_algorithm_image_http_info(request)
|
1561
|
+
return self._call_api(**http_info)
|
1562
|
+
|
1563
|
+
def show_sim_algorithm_image_async_invoker(self, request):
|
1564
|
+
http_info = self._show_sim_algorithm_image_http_info(request)
|
1565
|
+
return AsyncInvoker(self, http_info)
|
1566
|
+
|
1567
|
+
def _show_sim_algorithm_image_http_info(self, request):
|
1568
|
+
http_info = {
|
1569
|
+
"method": "GET",
|
1570
|
+
"resource_path": "/v2/{project_id}/sim/pm/algorithm-images/{id}",
|
1571
|
+
"request_type": request.__class__.__name__,
|
1572
|
+
"response_type": "ShowSimAlgorithmImageResponse"
|
1573
|
+
}
|
1574
|
+
|
1575
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1576
|
+
|
1577
|
+
cname = None
|
1578
|
+
|
1579
|
+
collection_formats = {}
|
1580
|
+
|
1581
|
+
path_params = {}
|
1582
|
+
if 'id' in local_var_params:
|
1583
|
+
path_params['id'] = local_var_params['id']
|
1584
|
+
|
1585
|
+
query_params = []
|
1586
|
+
|
1587
|
+
header_params = {}
|
1588
|
+
|
1589
|
+
form_params = {}
|
1590
|
+
|
1591
|
+
body = None
|
1592
|
+
if isinstance(request, SdkStreamRequest):
|
1593
|
+
body = request.get_file_stream()
|
1594
|
+
|
1595
|
+
response_headers = []
|
1596
|
+
|
1597
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1598
|
+
['application/json'])
|
1599
|
+
|
1600
|
+
auth_settings = []
|
1601
|
+
|
1602
|
+
http_info["cname"] = cname
|
1603
|
+
http_info["collection_formats"] = collection_formats
|
1604
|
+
http_info["path_params"] = path_params
|
1605
|
+
http_info["query_params"] = query_params
|
1606
|
+
http_info["header_params"] = header_params
|
1607
|
+
http_info["post_params"] = form_params
|
1608
|
+
http_info["body"] = body
|
1609
|
+
http_info["response_headers"] = response_headers
|
1610
|
+
|
1611
|
+
return http_info
|
1612
|
+
|
1613
|
+
def show_sim_batch_config_async(self, request):
|
1614
|
+
r"""获取仿真任务配置详情
|
1615
|
+
|
1616
|
+
A DRF ViewSet for BatchConfig.
|
1617
|
+
|
1618
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1619
|
+
|
1620
|
+
|
1621
|
+
:param request: Request instance for ShowSimBatchConfig
|
1622
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.ShowSimBatchConfigRequest`
|
1623
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.ShowSimBatchConfigResponse`
|
1624
|
+
"""
|
1625
|
+
http_info = self._show_sim_batch_config_http_info(request)
|
1626
|
+
return self._call_api(**http_info)
|
1627
|
+
|
1628
|
+
def show_sim_batch_config_async_invoker(self, request):
|
1629
|
+
http_info = self._show_sim_batch_config_http_info(request)
|
1630
|
+
return AsyncInvoker(self, http_info)
|
1631
|
+
|
1632
|
+
def _show_sim_batch_config_http_info(self, request):
|
1633
|
+
http_info = {
|
1634
|
+
"method": "GET",
|
1635
|
+
"resource_path": "/v2/{project_id}/sim/pm/batch-configs/{id}",
|
1636
|
+
"request_type": request.__class__.__name__,
|
1637
|
+
"response_type": "ShowSimBatchConfigResponse"
|
1638
|
+
}
|
1639
|
+
|
1640
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1641
|
+
|
1642
|
+
cname = None
|
1643
|
+
|
1644
|
+
collection_formats = {}
|
1645
|
+
|
1646
|
+
path_params = {}
|
1647
|
+
if 'id' in local_var_params:
|
1648
|
+
path_params['id'] = local_var_params['id']
|
1649
|
+
|
1650
|
+
query_params = []
|
1651
|
+
|
1652
|
+
header_params = {}
|
1653
|
+
|
1654
|
+
form_params = {}
|
1655
|
+
|
1656
|
+
body = None
|
1657
|
+
if isinstance(request, SdkStreamRequest):
|
1658
|
+
body = request.get_file_stream()
|
1659
|
+
|
1660
|
+
response_headers = []
|
1661
|
+
|
1662
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1663
|
+
['application/json'])
|
1664
|
+
|
1665
|
+
auth_settings = []
|
1666
|
+
|
1667
|
+
http_info["cname"] = cname
|
1668
|
+
http_info["collection_formats"] = collection_formats
|
1669
|
+
http_info["path_params"] = path_params
|
1670
|
+
http_info["query_params"] = query_params
|
1671
|
+
http_info["header_params"] = header_params
|
1672
|
+
http_info["post_params"] = form_params
|
1673
|
+
http_info["body"] = body
|
1674
|
+
http_info["response_headers"] = response_headers
|
1675
|
+
|
1676
|
+
return http_info
|
1677
|
+
|
1678
|
+
def show_sim_extension_async(self, request):
|
1679
|
+
r"""获取扩展文件详情
|
1680
|
+
|
1681
|
+
A DRF ViewSet for Extensions.
|
1682
|
+
|
1683
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1684
|
+
|
1685
|
+
|
1686
|
+
:param request: Request instance for ShowSimExtension
|
1687
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.ShowSimExtensionRequest`
|
1688
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.ShowSimExtensionResponse`
|
1689
|
+
"""
|
1690
|
+
http_info = self._show_sim_extension_http_info(request)
|
1691
|
+
return self._call_api(**http_info)
|
1692
|
+
|
1693
|
+
def show_sim_extension_async_invoker(self, request):
|
1694
|
+
http_info = self._show_sim_extension_http_info(request)
|
1695
|
+
return AsyncInvoker(self, http_info)
|
1696
|
+
|
1697
|
+
def _show_sim_extension_http_info(self, request):
|
1698
|
+
http_info = {
|
1699
|
+
"method": "GET",
|
1700
|
+
"resource_path": "/v2/{project_id}/sim/pm/extensions/{id}",
|
1701
|
+
"request_type": request.__class__.__name__,
|
1702
|
+
"response_type": "ShowSimExtensionResponse"
|
1703
|
+
}
|
1704
|
+
|
1705
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1706
|
+
|
1707
|
+
cname = None
|
1708
|
+
|
1709
|
+
collection_formats = {}
|
1710
|
+
|
1711
|
+
path_params = {}
|
1712
|
+
if 'id' in local_var_params:
|
1713
|
+
path_params['id'] = local_var_params['id']
|
1714
|
+
|
1715
|
+
query_params = []
|
1716
|
+
|
1717
|
+
header_params = {}
|
1718
|
+
|
1719
|
+
form_params = {}
|
1720
|
+
|
1721
|
+
body = None
|
1722
|
+
if isinstance(request, SdkStreamRequest):
|
1723
|
+
body = request.get_file_stream()
|
1724
|
+
|
1725
|
+
response_headers = []
|
1726
|
+
|
1727
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1728
|
+
['application/json'])
|
1729
|
+
|
1730
|
+
auth_settings = []
|
1731
|
+
|
1732
|
+
http_info["cname"] = cname
|
1733
|
+
http_info["collection_formats"] = collection_formats
|
1734
|
+
http_info["path_params"] = path_params
|
1735
|
+
http_info["query_params"] = query_params
|
1736
|
+
http_info["header_params"] = header_params
|
1737
|
+
http_info["post_params"] = form_params
|
1738
|
+
http_info["body"] = body
|
1739
|
+
http_info["response_headers"] = response_headers
|
1740
|
+
|
1741
|
+
return http_info
|
1742
|
+
|
1743
|
+
def show_sim_simulations_files_async(self, request):
|
1744
|
+
r"""获取指定的仿真任务下的pb、日志、回放文件
|
1745
|
+
|
1746
|
+
Get obs file pre-signed url in simulation.
|
1747
|
+
|
1748
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1749
|
+
|
1750
|
+
|
1751
|
+
:param request: Request instance for ShowSimSimulationsFiles
|
1752
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.ShowSimSimulationsFilesRequest`
|
1753
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.ShowSimSimulationsFilesResponse`
|
1754
|
+
"""
|
1755
|
+
http_info = self._show_sim_simulations_files_http_info(request)
|
1756
|
+
return self._call_api(**http_info)
|
1757
|
+
|
1758
|
+
def show_sim_simulations_files_async_invoker(self, request):
|
1759
|
+
http_info = self._show_sim_simulations_files_http_info(request)
|
1760
|
+
return AsyncInvoker(self, http_info)
|
1761
|
+
|
1762
|
+
def _show_sim_simulations_files_http_info(self, request):
|
1763
|
+
http_info = {
|
1764
|
+
"method": "GET",
|
1765
|
+
"resource_path": "/v2/{project_id}/sim/pm/simulations/{id}/files",
|
1766
|
+
"request_type": request.__class__.__name__,
|
1767
|
+
"response_type": "ShowSimSimulationsFilesResponse"
|
1768
|
+
}
|
1769
|
+
|
1770
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1771
|
+
|
1772
|
+
cname = None
|
1773
|
+
|
1774
|
+
collection_formats = {}
|
1775
|
+
|
1776
|
+
path_params = {}
|
1777
|
+
if 'id' in local_var_params:
|
1778
|
+
path_params['id'] = local_var_params['id']
|
1779
|
+
|
1780
|
+
query_params = []
|
1781
|
+
if 'type' in local_var_params:
|
1782
|
+
query_params.append(('type', local_var_params['type']))
|
1783
|
+
|
1784
|
+
header_params = {}
|
1785
|
+
|
1786
|
+
form_params = {}
|
1787
|
+
|
1788
|
+
body = None
|
1789
|
+
if isinstance(request, SdkStreamRequest):
|
1790
|
+
body = request.get_file_stream()
|
1791
|
+
|
1792
|
+
response_headers = []
|
1793
|
+
|
1794
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1795
|
+
['application/json'])
|
1796
|
+
|
1797
|
+
auth_settings = []
|
1798
|
+
|
1799
|
+
http_info["cname"] = cname
|
1800
|
+
http_info["collection_formats"] = collection_formats
|
1801
|
+
http_info["path_params"] = path_params
|
1802
|
+
http_info["query_params"] = query_params
|
1803
|
+
http_info["header_params"] = header_params
|
1804
|
+
http_info["post_params"] = form_params
|
1805
|
+
http_info["body"] = body
|
1806
|
+
http_info["response_headers"] = response_headers
|
1807
|
+
|
1808
|
+
return http_info
|
1809
|
+
|
1810
|
+
def update_sim_algorithm_images_async(self, request):
|
1811
|
+
r"""更新算法镜像
|
1812
|
+
|
1813
|
+
A DRF ViewSet for algorithm image.
|
1814
|
+
|
1815
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1816
|
+
|
1817
|
+
|
1818
|
+
:param request: Request instance for UpdateSimAlgorithmImages
|
1819
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.UpdateSimAlgorithmImagesRequest`
|
1820
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.UpdateSimAlgorithmImagesResponse`
|
1821
|
+
"""
|
1822
|
+
http_info = self._update_sim_algorithm_images_http_info(request)
|
1823
|
+
return self._call_api(**http_info)
|
1824
|
+
|
1825
|
+
def update_sim_algorithm_images_async_invoker(self, request):
|
1826
|
+
http_info = self._update_sim_algorithm_images_http_info(request)
|
1827
|
+
return AsyncInvoker(self, http_info)
|
1828
|
+
|
1829
|
+
def _update_sim_algorithm_images_http_info(self, request):
|
1830
|
+
http_info = {
|
1831
|
+
"method": "PATCH",
|
1832
|
+
"resource_path": "/v2/{project_id}/sim/pm/algorithm-images/{id}",
|
1833
|
+
"request_type": request.__class__.__name__,
|
1834
|
+
"response_type": "UpdateSimAlgorithmImagesResponse"
|
1835
|
+
}
|
1836
|
+
|
1837
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1838
|
+
|
1839
|
+
cname = None
|
1840
|
+
|
1841
|
+
collection_formats = {}
|
1842
|
+
|
1843
|
+
path_params = {}
|
1844
|
+
if 'id' in local_var_params:
|
1845
|
+
path_params['id'] = local_var_params['id']
|
1846
|
+
|
1847
|
+
query_params = []
|
1848
|
+
|
1849
|
+
header_params = {}
|
1850
|
+
|
1851
|
+
form_params = {}
|
1852
|
+
|
1853
|
+
body = None
|
1854
|
+
if 'body' in local_var_params:
|
1855
|
+
body = local_var_params['body']
|
1856
|
+
if isinstance(request, SdkStreamRequest):
|
1857
|
+
body = request.get_file_stream()
|
1858
|
+
|
1859
|
+
response_headers = []
|
1860
|
+
|
1861
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1862
|
+
['application/json'])
|
1863
|
+
|
1864
|
+
auth_settings = []
|
1865
|
+
|
1866
|
+
http_info["cname"] = cname
|
1867
|
+
http_info["collection_formats"] = collection_formats
|
1868
|
+
http_info["path_params"] = path_params
|
1869
|
+
http_info["query_params"] = query_params
|
1870
|
+
http_info["header_params"] = header_params
|
1871
|
+
http_info["post_params"] = form_params
|
1872
|
+
http_info["body"] = body
|
1873
|
+
http_info["response_headers"] = response_headers
|
1874
|
+
|
1875
|
+
return http_info
|
1876
|
+
|
1877
|
+
def update_sim_algorithms_async(self, request):
|
1878
|
+
r"""更新算法
|
1879
|
+
|
1880
|
+
A DRF ViewSet for algorithm.
|
1881
|
+
|
1882
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1883
|
+
|
1884
|
+
|
1885
|
+
:param request: Request instance for UpdateSimAlgorithms
|
1886
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.UpdateSimAlgorithmsRequest`
|
1887
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.UpdateSimAlgorithmsResponse`
|
1888
|
+
"""
|
1889
|
+
http_info = self._update_sim_algorithms_http_info(request)
|
1890
|
+
return self._call_api(**http_info)
|
1891
|
+
|
1892
|
+
def update_sim_algorithms_async_invoker(self, request):
|
1893
|
+
http_info = self._update_sim_algorithms_http_info(request)
|
1894
|
+
return AsyncInvoker(self, http_info)
|
1895
|
+
|
1896
|
+
def _update_sim_algorithms_http_info(self, request):
|
1897
|
+
http_info = {
|
1898
|
+
"method": "PATCH",
|
1899
|
+
"resource_path": "/v2/{project_id}/sim/pm/algorithms/{id}",
|
1900
|
+
"request_type": request.__class__.__name__,
|
1901
|
+
"response_type": "UpdateSimAlgorithmsResponse"
|
1902
|
+
}
|
1903
|
+
|
1904
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1905
|
+
|
1906
|
+
cname = None
|
1907
|
+
|
1908
|
+
collection_formats = {}
|
1909
|
+
|
1910
|
+
path_params = {}
|
1911
|
+
if 'id' in local_var_params:
|
1912
|
+
path_params['id'] = local_var_params['id']
|
1913
|
+
|
1914
|
+
query_params = []
|
1915
|
+
|
1916
|
+
header_params = {}
|
1917
|
+
|
1918
|
+
form_params = {}
|
1919
|
+
|
1920
|
+
body = None
|
1921
|
+
if 'body' in local_var_params:
|
1922
|
+
body = local_var_params['body']
|
1923
|
+
if isinstance(request, SdkStreamRequest):
|
1924
|
+
body = request.get_file_stream()
|
1925
|
+
|
1926
|
+
response_headers = []
|
1927
|
+
|
1928
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1929
|
+
['application/json'])
|
1930
|
+
|
1931
|
+
auth_settings = []
|
1932
|
+
|
1933
|
+
http_info["cname"] = cname
|
1934
|
+
http_info["collection_formats"] = collection_formats
|
1935
|
+
http_info["path_params"] = path_params
|
1936
|
+
http_info["query_params"] = query_params
|
1937
|
+
http_info["header_params"] = header_params
|
1938
|
+
http_info["post_params"] = form_params
|
1939
|
+
http_info["body"] = body
|
1940
|
+
http_info["response_headers"] = response_headers
|
1941
|
+
|
1942
|
+
return http_info
|
1943
|
+
|
1944
|
+
def update_sim_batch_configs_extensions_async(self, request):
|
1945
|
+
r"""配置任务关联扩展文件
|
1946
|
+
|
1947
|
+
A DRF ViewSet for `/batch-configs/x/extensions/`.
|
1948
|
+
|
1949
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1950
|
+
|
1951
|
+
|
1952
|
+
:param request: Request instance for UpdateSimBatchConfigsExtensions
|
1953
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.UpdateSimBatchConfigsExtensionsRequest`
|
1954
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.UpdateSimBatchConfigsExtensionsResponse`
|
1955
|
+
"""
|
1956
|
+
http_info = self._update_sim_batch_configs_extensions_http_info(request)
|
1957
|
+
return self._call_api(**http_info)
|
1958
|
+
|
1959
|
+
def update_sim_batch_configs_extensions_async_invoker(self, request):
|
1960
|
+
http_info = self._update_sim_batch_configs_extensions_http_info(request)
|
1961
|
+
return AsyncInvoker(self, http_info)
|
1962
|
+
|
1963
|
+
def _update_sim_batch_configs_extensions_http_info(self, request):
|
1964
|
+
http_info = {
|
1965
|
+
"method": "PUT",
|
1966
|
+
"resource_path": "/v2/{project_id}/sim/pm/batch-configs/{batch_config_id}/extensions/{id}",
|
1967
|
+
"request_type": request.__class__.__name__,
|
1968
|
+
"response_type": "UpdateSimBatchConfigsExtensionsResponse"
|
1969
|
+
}
|
1970
|
+
|
1971
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1972
|
+
|
1973
|
+
cname = None
|
1974
|
+
|
1975
|
+
collection_formats = {}
|
1976
|
+
|
1977
|
+
path_params = {}
|
1978
|
+
if 'id' in local_var_params:
|
1979
|
+
path_params['id'] = local_var_params['id']
|
1980
|
+
if 'batch_config_id' in local_var_params:
|
1981
|
+
path_params['batch_config_id'] = local_var_params['batch_config_id']
|
1982
|
+
|
1983
|
+
query_params = []
|
1984
|
+
|
1985
|
+
header_params = {}
|
1986
|
+
|
1987
|
+
form_params = {}
|
1988
|
+
|
1989
|
+
body = None
|
1990
|
+
if isinstance(request, SdkStreamRequest):
|
1991
|
+
body = request.get_file_stream()
|
1992
|
+
|
1993
|
+
response_headers = []
|
1994
|
+
|
1995
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1996
|
+
['application/json'])
|
1997
|
+
|
1998
|
+
auth_settings = []
|
1999
|
+
|
2000
|
+
http_info["cname"] = cname
|
2001
|
+
http_info["collection_formats"] = collection_formats
|
2002
|
+
http_info["path_params"] = path_params
|
2003
|
+
http_info["query_params"] = query_params
|
2004
|
+
http_info["header_params"] = header_params
|
2005
|
+
http_info["post_params"] = form_params
|
2006
|
+
http_info["body"] = body
|
2007
|
+
http_info["response_headers"] = response_headers
|
2008
|
+
|
2009
|
+
return http_info
|
2010
|
+
|
2011
|
+
def update_sim_extensions_async(self, request):
|
2012
|
+
r"""修改扩展文件
|
2013
|
+
|
2014
|
+
|
2015
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2016
|
+
|
2017
|
+
|
2018
|
+
:param request: Request instance for UpdateSimExtensions
|
2019
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.UpdateSimExtensionsRequest`
|
2020
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.UpdateSimExtensionsResponse`
|
2021
|
+
"""
|
2022
|
+
http_info = self._update_sim_extensions_http_info(request)
|
2023
|
+
return self._call_api(**http_info)
|
2024
|
+
|
2025
|
+
def update_sim_extensions_async_invoker(self, request):
|
2026
|
+
http_info = self._update_sim_extensions_http_info(request)
|
2027
|
+
return AsyncInvoker(self, http_info)
|
2028
|
+
|
2029
|
+
def _update_sim_extensions_http_info(self, request):
|
2030
|
+
http_info = {
|
2031
|
+
"method": "PATCH",
|
2032
|
+
"resource_path": "/v2/{project_id}/sim/pm/extensions/{id}",
|
2033
|
+
"request_type": request.__class__.__name__,
|
2034
|
+
"response_type": "UpdateSimExtensionsResponse"
|
2035
|
+
}
|
2036
|
+
|
2037
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2038
|
+
|
2039
|
+
cname = None
|
2040
|
+
|
2041
|
+
collection_formats = {}
|
2042
|
+
|
2043
|
+
path_params = {}
|
2044
|
+
if 'id' in local_var_params:
|
2045
|
+
path_params['id'] = local_var_params['id']
|
2046
|
+
|
2047
|
+
query_params = []
|
2048
|
+
|
2049
|
+
header_params = {}
|
2050
|
+
|
2051
|
+
form_params = {}
|
2052
|
+
|
2053
|
+
body = None
|
2054
|
+
if 'body' in local_var_params:
|
2055
|
+
body = local_var_params['body']
|
527
2056
|
if isinstance(request, SdkStreamRequest):
|
528
2057
|
body = request.get_file_stream()
|
529
2058
|
|