huaweicloudsdkoctopus 3.1.160__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkoctopus/__init__.py +0 -0
- huaweicloudsdkoctopus/v2/__init__.py +122 -0
- huaweicloudsdkoctopus/v2/model/__init__.py +119 -0
- huaweicloudsdkoctopus/v2/model/alg_image_create_srlz.py +350 -0
- huaweicloudsdkoctopus/v2/model/alg_image_list_srlz.py +266 -0
- huaweicloudsdkoctopus/v2/model/algorithm_create_srlz.py +399 -0
- huaweicloudsdkoctopus/v2/model/algorithm_list_srlz.py +266 -0
- huaweicloudsdkoctopus/v2/model/batch_config_abc_info_srlz.py +142 -0
- huaweicloudsdkoctopus/v2/model/batch_config_evaluation_info_srlz.py +142 -0
- huaweicloudsdkoctopus/v2/model/batch_config_image_info_srlz.py +198 -0
- huaweicloudsdkoctopus/v2/model/batch_config_msg_notify_srlz.py +115 -0
- huaweicloudsdkoctopus/v2/model/batch_config_scenario_srlz.py +173 -0
- huaweicloudsdkoctopus/v2/model/batch_config_srlz.py +806 -0
- huaweicloudsdkoctopus/v2/model/batch_create_request.py +198 -0
- huaweicloudsdkoctopus/v2/model/batch_srlz.py +604 -0
- huaweicloudsdkoctopus/v2/model/build_create_srlz.py +115 -0
- huaweicloudsdkoctopus/v2/model/build_update_srlz.py +143 -0
- huaweicloudsdkoctopus/v2/model/category_f62_enum.py +89 -0
- huaweicloudsdkoctopus/v2/model/compilation_create_srlz.py +255 -0
- huaweicloudsdkoctopus/v2/model/compilation_update_srlz.py +311 -0
- huaweicloudsdkoctopus/v2/model/create_sim_algorithm_images_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_algorithm_images_response.py +361 -0
- huaweicloudsdkoctopus/v2/model/create_sim_algorithms_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_algorithms_response.py +404 -0
- huaweicloudsdkoctopus/v2/model/create_sim_batch_configs_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_batch_configs_response.py +819 -0
- huaweicloudsdkoctopus/v2/model/create_sim_batches_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_batches_response.py +619 -0
- huaweicloudsdkoctopus/v2/model/create_sim_extensions_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_extensions_response.py +314 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_maps_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_maps_response.py +253 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_files_request.py +139 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_files_response.py +377 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_response.py +618 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_algorithm_images_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_algorithm_images_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_algorithms_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_algorithms_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_batch_configs_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_batch_configs_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_batches_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_batches_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_extensions_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_extensions_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/extension_srlz.py +353 -0
- huaweicloudsdkoctopus/v2/model/extensions_create_srlz.py +306 -0
- huaweicloudsdkoctopus/v2/model/extensions_list_srlz.py +291 -0
- huaweicloudsdkoctopus/v2/model/family_enum.py +91 -0
- huaweicloudsdkoctopus/v2/model/file_create_req_srlz.py +142 -0
- huaweicloudsdkoctopus/v2/model/file_create_srlz.py +366 -0
- huaweicloudsdkoctopus/v2/model/file_nested_create_req_srlz.py +142 -0
- huaweicloudsdkoctopus/v2/model/file_nested_srlz.py +279 -0
- huaweicloudsdkoctopus/v2/model/file_retrieve_srlz.py +310 -0
- huaweicloudsdkoctopus/v2/model/label_brief_srlz.py +279 -0
- huaweicloudsdkoctopus/v2/model/list_sim_algorithm_images_request.py +339 -0
- huaweicloudsdkoctopus/v2/model/list_sim_algorithm_images_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/list_sim_algorithms_request.py +281 -0
- huaweicloudsdkoctopus/v2/model/list_sim_algorithms_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/list_sim_batch_configs_request.py +625 -0
- huaweicloudsdkoctopus/v2/model/list_sim_batch_configs_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/list_sim_batches_request.py +426 -0
- huaweicloudsdkoctopus/v2/model/list_sim_batches_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/list_sim_extensions_request.py +202 -0
- huaweicloudsdkoctopus/v2/model/list_sim_extensions_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/list_sim_simulations_request.py +401 -0
- huaweicloudsdkoctopus/v2/model/list_sim_simulations_response.py +189 -0
- huaweicloudsdkoctopus/v2/model/list_sim_sm_scenarios_request.py +547 -0
- huaweicloudsdkoctopus/v2/model/list_sim_sm_scenarios_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/map_create_req_srlz.py +162 -0
- huaweicloudsdkoctopus/v2/model/map_version_enum.py +91 -0
- huaweicloudsdkoctopus/v2/model/mutable_file_srlz.py +114 -0
- huaweicloudsdkoctopus/v2/model/patched_alg_image_update_srlz.py +302 -0
- huaweicloudsdkoctopus/v2/model/patched_algorithm_update_srlz.py +796 -0
- huaweicloudsdkoctopus/v2/model/patched_file_detail_srlz.py +144 -0
- huaweicloudsdkoctopus/v2/model/post_response.py +140 -0
- huaweicloudsdkoctopus/v2/model/post_response_field.py +236 -0
- huaweicloudsdkoctopus/v2/model/priority_enum.py +91 -0
- huaweicloudsdkoctopus/v2/model/record_mode_enum.py +88 -0
- huaweicloudsdkoctopus/v2/model/run_image_status_enum.py +91 -0
- huaweicloudsdkoctopus/v2/model/run_srlz.py +254 -0
- huaweicloudsdkoctopus/v2/model/scenario_create_req_srlz.py +439 -0
- huaweicloudsdkoctopus/v2/model/scenario_list_srlz.py +548 -0
- huaweicloudsdkoctopus/v2/model/scenario_status_enum.py +92 -0
- huaweicloudsdkoctopus/v2/model/scenario_version_enum.py +91 -0
- huaweicloudsdkoctopus/v2/model/show_sim_algorithm_image_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/show_sim_algorithm_image_response.py +361 -0
- huaweicloudsdkoctopus/v2/model/show_sim_algorithm_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/show_sim_algorithm_response.py +377 -0
- huaweicloudsdkoctopus/v2/model/show_sim_batch_config_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/show_sim_batch_config_response.py +819 -0
- huaweicloudsdkoctopus/v2/model/show_sim_extension_request.py +110 -0
- huaweicloudsdkoctopus/v2/model/show_sim_extension_response.py +353 -0
- huaweicloudsdkoctopus/v2/model/show_sim_simulations_files_request.py +142 -0
- huaweicloudsdkoctopus/v2/model/show_sim_simulations_files_response.py +290 -0
- huaweicloudsdkoctopus/v2/model/simulation_eva_result_metric_srlz.py +260 -0
- huaweicloudsdkoctopus/v2/model/simulation_eva_result_srlz.py +231 -0
- huaweicloudsdkoctopus/v2/model/simulation_evaluation_metric_srlz.py +289 -0
- huaweicloudsdkoctopus/v2/model/simulation_evaluation_srlz.py +231 -0
- huaweicloudsdkoctopus/v2/model/simulation_file_path_srlz.py +347 -0
- huaweicloudsdkoctopus/v2/model/simulation_srlz.py +708 -0
- huaweicloudsdkoctopus/v2/model/status15e_enum.py +99 -0
- huaweicloudsdkoctopus/v2/model/status6a7_enum.py +106 -0
- huaweicloudsdkoctopus/v2/model/type87e_enum.py +88 -0
- huaweicloudsdkoctopus/v2/model/update_sim_algorithm_images_request.py +139 -0
- huaweicloudsdkoctopus/v2/model/update_sim_algorithm_images_response.py +303 -0
- huaweicloudsdkoctopus/v2/model/update_sim_algorithms_request.py +139 -0
- huaweicloudsdkoctopus/v2/model/update_sim_algorithms_response.py +431 -0
- huaweicloudsdkoctopus/v2/model/update_sim_batch_configs_extensions_request.py +138 -0
- huaweicloudsdkoctopus/v2/model/update_sim_batch_configs_extensions_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/update_sim_extensions_request.py +139 -0
- huaweicloudsdkoctopus/v2/model/update_sim_extensions_response.py +356 -0
- huaweicloudsdkoctopus/v2/model/update_sim_sm_maps_files_request.py +167 -0
- huaweicloudsdkoctopus/v2/model/update_sim_sm_maps_files_response.py +435 -0
- huaweicloudsdkoctopus/v2/model/update_sim_sm_scenarios_files_request.py +167 -0
- huaweicloudsdkoctopus/v2/model/update_sim_sm_scenarios_files_response.py +435 -0
- huaweicloudsdkoctopus/v2/octopus_async_client.py +2262 -0
- huaweicloudsdkoctopus/v2/octopus_client.py +2259 -0
- huaweicloudsdkoctopus/v2/region/__init__.py +0 -0
- huaweicloudsdkoctopus/v2/region/octopus_region.py +31 -0
- huaweicloudsdkoctopus-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkoctopus-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkoctopus-3.1.160.dist-info/RECORD +126 -0
- huaweicloudsdkoctopus-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkoctopus-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,2262 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
from __future__ import absolute_import
|
4
|
+
|
5
|
+
import importlib
|
6
|
+
import warnings
|
7
|
+
|
8
|
+
from huaweicloudsdkcore.client import Client, ClientBuilder
|
9
|
+
from huaweicloudsdkcore.utils import http_utils
|
10
|
+
from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest
|
11
|
+
|
12
|
+
try:
|
13
|
+
from huaweicloudsdkcore.invoker.invoker import AsyncInvoker
|
14
|
+
except ImportError as e:
|
15
|
+
warnings.warn(str(e) + ", please check if you are using the same versions of 'huaweicloudsdkcore' and 'huaweicloudsdkoctopus'")
|
16
|
+
|
17
|
+
|
18
|
+
class OctopusAsyncClient(Client):
|
19
|
+
def __init__(self):
|
20
|
+
super(OctopusAsyncClient, self).__init__()
|
21
|
+
self.model_package = importlib.import_module("huaweicloudsdkoctopus.v2.model")
|
22
|
+
|
23
|
+
@classmethod
|
24
|
+
def new_builder(cls, clazz=None):
|
25
|
+
if not clazz:
|
26
|
+
client_builder = ClientBuilder(cls)
|
27
|
+
else:
|
28
|
+
if clazz.__name__ != "OctopusAsyncClient":
|
29
|
+
raise TypeError("client type error, support client type is OctopusAsyncClient")
|
30
|
+
client_builder = ClientBuilder(clazz)
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
return client_builder
|
35
|
+
|
36
|
+
def create_sim_algorithm_images_async(self, request):
|
37
|
+
r"""创建算法镜像
|
38
|
+
|
39
|
+
A DRF ViewSet for algorithm image.
|
40
|
+
|
41
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
42
|
+
|
43
|
+
|
44
|
+
:param request: Request instance for CreateSimAlgorithmImages
|
45
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.CreateSimAlgorithmImagesRequest`
|
46
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.CreateSimAlgorithmImagesResponse`
|
47
|
+
"""
|
48
|
+
http_info = self._create_sim_algorithm_images_http_info(request)
|
49
|
+
return self._call_api(**http_info)
|
50
|
+
|
51
|
+
def create_sim_algorithm_images_async_invoker(self, request):
|
52
|
+
http_info = self._create_sim_algorithm_images_http_info(request)
|
53
|
+
return AsyncInvoker(self, http_info)
|
54
|
+
|
55
|
+
def _create_sim_algorithm_images_http_info(self, request):
|
56
|
+
http_info = {
|
57
|
+
"method": "POST",
|
58
|
+
"resource_path": "/v2/{project_id}/sim/pm/algorithm-images",
|
59
|
+
"request_type": request.__class__.__name__,
|
60
|
+
"response_type": "CreateSimAlgorithmImagesResponse"
|
61
|
+
}
|
62
|
+
|
63
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
64
|
+
|
65
|
+
cname = None
|
66
|
+
|
67
|
+
collection_formats = {}
|
68
|
+
|
69
|
+
path_params = {}
|
70
|
+
|
71
|
+
query_params = []
|
72
|
+
|
73
|
+
header_params = {}
|
74
|
+
|
75
|
+
form_params = {}
|
76
|
+
|
77
|
+
body = None
|
78
|
+
if 'body' in local_var_params:
|
79
|
+
body = local_var_params['body']
|
80
|
+
if isinstance(request, SdkStreamRequest):
|
81
|
+
body = request.get_file_stream()
|
82
|
+
|
83
|
+
response_headers = []
|
84
|
+
|
85
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
86
|
+
['application/json'])
|
87
|
+
|
88
|
+
auth_settings = []
|
89
|
+
|
90
|
+
http_info["cname"] = cname
|
91
|
+
http_info["collection_formats"] = collection_formats
|
92
|
+
http_info["path_params"] = path_params
|
93
|
+
http_info["query_params"] = query_params
|
94
|
+
http_info["header_params"] = header_params
|
95
|
+
http_info["post_params"] = form_params
|
96
|
+
http_info["body"] = body
|
97
|
+
http_info["response_headers"] = response_headers
|
98
|
+
|
99
|
+
return http_info
|
100
|
+
|
101
|
+
def create_sim_algorithms_async(self, request):
|
102
|
+
r"""创建算法
|
103
|
+
|
104
|
+
A DRF ViewSet for algorithm.
|
105
|
+
|
106
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
107
|
+
|
108
|
+
|
109
|
+
:param request: Request instance for CreateSimAlgorithms
|
110
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.CreateSimAlgorithmsRequest`
|
111
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.CreateSimAlgorithmsResponse`
|
112
|
+
"""
|
113
|
+
http_info = self._create_sim_algorithms_http_info(request)
|
114
|
+
return self._call_api(**http_info)
|
115
|
+
|
116
|
+
def create_sim_algorithms_async_invoker(self, request):
|
117
|
+
http_info = self._create_sim_algorithms_http_info(request)
|
118
|
+
return AsyncInvoker(self, http_info)
|
119
|
+
|
120
|
+
def _create_sim_algorithms_http_info(self, request):
|
121
|
+
http_info = {
|
122
|
+
"method": "POST",
|
123
|
+
"resource_path": "/v2/{project_id}/sim/pm/algorithms",
|
124
|
+
"request_type": request.__class__.__name__,
|
125
|
+
"response_type": "CreateSimAlgorithmsResponse"
|
126
|
+
}
|
127
|
+
|
128
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
129
|
+
|
130
|
+
cname = None
|
131
|
+
|
132
|
+
collection_formats = {}
|
133
|
+
|
134
|
+
path_params = {}
|
135
|
+
|
136
|
+
query_params = []
|
137
|
+
|
138
|
+
header_params = {}
|
139
|
+
|
140
|
+
form_params = {}
|
141
|
+
|
142
|
+
body = None
|
143
|
+
if 'body' in local_var_params:
|
144
|
+
body = local_var_params['body']
|
145
|
+
if isinstance(request, SdkStreamRequest):
|
146
|
+
body = request.get_file_stream()
|
147
|
+
|
148
|
+
response_headers = []
|
149
|
+
|
150
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
151
|
+
['application/json'])
|
152
|
+
|
153
|
+
auth_settings = []
|
154
|
+
|
155
|
+
http_info["cname"] = cname
|
156
|
+
http_info["collection_formats"] = collection_formats
|
157
|
+
http_info["path_params"] = path_params
|
158
|
+
http_info["query_params"] = query_params
|
159
|
+
http_info["header_params"] = header_params
|
160
|
+
http_info["post_params"] = form_params
|
161
|
+
http_info["body"] = body
|
162
|
+
http_info["response_headers"] = response_headers
|
163
|
+
|
164
|
+
return http_info
|
165
|
+
|
166
|
+
def create_sim_batch_configs_async(self, request):
|
167
|
+
r"""创建仿真任务配置
|
168
|
+
|
169
|
+
A DRF ViewSet for BatchConfig.
|
170
|
+
|
171
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
172
|
+
|
173
|
+
|
174
|
+
:param request: Request instance for CreateSimBatchConfigs
|
175
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.CreateSimBatchConfigsRequest`
|
176
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.CreateSimBatchConfigsResponse`
|
177
|
+
"""
|
178
|
+
http_info = self._create_sim_batch_configs_http_info(request)
|
179
|
+
return self._call_api(**http_info)
|
180
|
+
|
181
|
+
def create_sim_batch_configs_async_invoker(self, request):
|
182
|
+
http_info = self._create_sim_batch_configs_http_info(request)
|
183
|
+
return AsyncInvoker(self, http_info)
|
184
|
+
|
185
|
+
def _create_sim_batch_configs_http_info(self, request):
|
186
|
+
http_info = {
|
187
|
+
"method": "POST",
|
188
|
+
"resource_path": "/v2/{project_id}/sim/pm/batch-configs",
|
189
|
+
"request_type": request.__class__.__name__,
|
190
|
+
"response_type": "CreateSimBatchConfigsResponse"
|
191
|
+
}
|
192
|
+
|
193
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
194
|
+
|
195
|
+
cname = None
|
196
|
+
|
197
|
+
collection_formats = {}
|
198
|
+
|
199
|
+
path_params = {}
|
200
|
+
|
201
|
+
query_params = []
|
202
|
+
|
203
|
+
header_params = {}
|
204
|
+
|
205
|
+
form_params = {}
|
206
|
+
|
207
|
+
body = None
|
208
|
+
if 'body' in local_var_params:
|
209
|
+
body = local_var_params['body']
|
210
|
+
if isinstance(request, SdkStreamRequest):
|
211
|
+
body = request.get_file_stream()
|
212
|
+
|
213
|
+
response_headers = []
|
214
|
+
|
215
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
216
|
+
['application/json'])
|
217
|
+
|
218
|
+
auth_settings = []
|
219
|
+
|
220
|
+
http_info["cname"] = cname
|
221
|
+
http_info["collection_formats"] = collection_formats
|
222
|
+
http_info["path_params"] = path_params
|
223
|
+
http_info["query_params"] = query_params
|
224
|
+
http_info["header_params"] = header_params
|
225
|
+
http_info["post_params"] = form_params
|
226
|
+
http_info["body"] = body
|
227
|
+
http_info["response_headers"] = response_headers
|
228
|
+
|
229
|
+
return http_info
|
230
|
+
|
231
|
+
def create_sim_batches_async(self, request):
|
232
|
+
r"""创建仿真任务
|
233
|
+
|
234
|
+
A DRF ViewSet for Batch.
|
235
|
+
|
236
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
237
|
+
|
238
|
+
|
239
|
+
:param request: Request instance for CreateSimBatches
|
240
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.CreateSimBatchesRequest`
|
241
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.CreateSimBatchesResponse`
|
242
|
+
"""
|
243
|
+
http_info = self._create_sim_batches_http_info(request)
|
244
|
+
return self._call_api(**http_info)
|
245
|
+
|
246
|
+
def create_sim_batches_async_invoker(self, request):
|
247
|
+
http_info = self._create_sim_batches_http_info(request)
|
248
|
+
return AsyncInvoker(self, http_info)
|
249
|
+
|
250
|
+
def _create_sim_batches_http_info(self, request):
|
251
|
+
http_info = {
|
252
|
+
"method": "POST",
|
253
|
+
"resource_path": "/v2/{project_id}/sim/pm/batches",
|
254
|
+
"request_type": request.__class__.__name__,
|
255
|
+
"response_type": "CreateSimBatchesResponse"
|
256
|
+
}
|
257
|
+
|
258
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
259
|
+
|
260
|
+
cname = None
|
261
|
+
|
262
|
+
collection_formats = {}
|
263
|
+
|
264
|
+
path_params = {}
|
265
|
+
|
266
|
+
query_params = []
|
267
|
+
|
268
|
+
header_params = {}
|
269
|
+
|
270
|
+
form_params = {}
|
271
|
+
|
272
|
+
body = None
|
273
|
+
if 'body' in local_var_params:
|
274
|
+
body = local_var_params['body']
|
275
|
+
if isinstance(request, SdkStreamRequest):
|
276
|
+
body = request.get_file_stream()
|
277
|
+
|
278
|
+
response_headers = []
|
279
|
+
|
280
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
281
|
+
['application/json'])
|
282
|
+
|
283
|
+
auth_settings = []
|
284
|
+
|
285
|
+
http_info["cname"] = cname
|
286
|
+
http_info["collection_formats"] = collection_formats
|
287
|
+
http_info["path_params"] = path_params
|
288
|
+
http_info["query_params"] = query_params
|
289
|
+
http_info["header_params"] = header_params
|
290
|
+
http_info["post_params"] = form_params
|
291
|
+
http_info["body"] = body
|
292
|
+
http_info["response_headers"] = response_headers
|
293
|
+
|
294
|
+
return http_info
|
295
|
+
|
296
|
+
def create_sim_extensions_async(self, request):
|
297
|
+
r"""创建扩展文件
|
298
|
+
|
299
|
+
此接口用于创建扩展文件。接口基于地图文件的sha256判断扩展文件是否已存在,如果扩展文件不存在,响应中提供预签链接用于上传文件。
|
300
|
+
|
301
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
302
|
+
|
303
|
+
|
304
|
+
:param request: Request instance for CreateSimExtensions
|
305
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.CreateSimExtensionsRequest`
|
306
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.CreateSimExtensionsResponse`
|
307
|
+
"""
|
308
|
+
http_info = self._create_sim_extensions_http_info(request)
|
309
|
+
return self._call_api(**http_info)
|
310
|
+
|
311
|
+
def create_sim_extensions_async_invoker(self, request):
|
312
|
+
http_info = self._create_sim_extensions_http_info(request)
|
313
|
+
return AsyncInvoker(self, http_info)
|
314
|
+
|
315
|
+
def _create_sim_extensions_http_info(self, request):
|
316
|
+
http_info = {
|
317
|
+
"method": "POST",
|
318
|
+
"resource_path": "/v2/{project_id}/sim/pm/extensions",
|
319
|
+
"request_type": request.__class__.__name__,
|
320
|
+
"response_type": "CreateSimExtensionsResponse"
|
321
|
+
}
|
322
|
+
|
323
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
324
|
+
|
325
|
+
cname = None
|
326
|
+
|
327
|
+
collection_formats = {}
|
328
|
+
|
329
|
+
path_params = {}
|
330
|
+
|
331
|
+
query_params = []
|
332
|
+
|
333
|
+
header_params = {}
|
334
|
+
|
335
|
+
form_params = {}
|
336
|
+
|
337
|
+
body = None
|
338
|
+
if 'body' in local_var_params:
|
339
|
+
body = local_var_params['body']
|
340
|
+
if isinstance(request, SdkStreamRequest):
|
341
|
+
body = request.get_file_stream()
|
342
|
+
|
343
|
+
response_headers = []
|
344
|
+
|
345
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
346
|
+
['application/json'])
|
347
|
+
|
348
|
+
auth_settings = []
|
349
|
+
|
350
|
+
http_info["cname"] = cname
|
351
|
+
http_info["collection_formats"] = collection_formats
|
352
|
+
http_info["path_params"] = path_params
|
353
|
+
http_info["query_params"] = query_params
|
354
|
+
http_info["header_params"] = header_params
|
355
|
+
http_info["post_params"] = form_params
|
356
|
+
http_info["body"] = body
|
357
|
+
http_info["response_headers"] = response_headers
|
358
|
+
|
359
|
+
return http_info
|
360
|
+
|
361
|
+
def create_sim_sm_maps_async(self, request):
|
362
|
+
r"""创建场景地图
|
363
|
+
|
364
|
+
创建场景地图.
|
365
|
+
|
366
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
367
|
+
|
368
|
+
|
369
|
+
:param request: Request instance for CreateSimSmMaps
|
370
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.CreateSimSmMapsRequest`
|
371
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.CreateSimSmMapsResponse`
|
372
|
+
"""
|
373
|
+
http_info = self._create_sim_sm_maps_http_info(request)
|
374
|
+
return self._call_api(**http_info)
|
375
|
+
|
376
|
+
def create_sim_sm_maps_async_invoker(self, request):
|
377
|
+
http_info = self._create_sim_sm_maps_http_info(request)
|
378
|
+
return AsyncInvoker(self, http_info)
|
379
|
+
|
380
|
+
def _create_sim_sm_maps_http_info(self, request):
|
381
|
+
http_info = {
|
382
|
+
"method": "POST",
|
383
|
+
"resource_path": "/v2/{project_id}/sim/sm/maps",
|
384
|
+
"request_type": request.__class__.__name__,
|
385
|
+
"response_type": "CreateSimSmMapsResponse"
|
386
|
+
}
|
387
|
+
|
388
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
389
|
+
|
390
|
+
cname = None
|
391
|
+
|
392
|
+
collection_formats = {}
|
393
|
+
|
394
|
+
path_params = {}
|
395
|
+
|
396
|
+
query_params = []
|
397
|
+
|
398
|
+
header_params = {}
|
399
|
+
|
400
|
+
form_params = {}
|
401
|
+
|
402
|
+
body = None
|
403
|
+
if 'body' in local_var_params:
|
404
|
+
body = local_var_params['body']
|
405
|
+
if isinstance(request, SdkStreamRequest):
|
406
|
+
body = request.get_file_stream()
|
407
|
+
|
408
|
+
response_headers = []
|
409
|
+
|
410
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
411
|
+
['application/json'])
|
412
|
+
|
413
|
+
auth_settings = []
|
414
|
+
|
415
|
+
http_info["cname"] = cname
|
416
|
+
http_info["collection_formats"] = collection_formats
|
417
|
+
http_info["path_params"] = path_params
|
418
|
+
http_info["query_params"] = query_params
|
419
|
+
http_info["header_params"] = header_params
|
420
|
+
http_info["post_params"] = form_params
|
421
|
+
http_info["body"] = body
|
422
|
+
http_info["response_headers"] = response_headers
|
423
|
+
|
424
|
+
return http_info
|
425
|
+
|
426
|
+
def create_sim_sm_scenarios_async(self, request):
|
427
|
+
r"""创建仿真场景
|
428
|
+
|
429
|
+
创建仿真场景.
|
430
|
+
|
431
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
432
|
+
|
433
|
+
|
434
|
+
:param request: Request instance for CreateSimSmScenarios
|
435
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.CreateSimSmScenariosRequest`
|
436
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.CreateSimSmScenariosResponse`
|
437
|
+
"""
|
438
|
+
http_info = self._create_sim_sm_scenarios_http_info(request)
|
439
|
+
return self._call_api(**http_info)
|
440
|
+
|
441
|
+
def create_sim_sm_scenarios_async_invoker(self, request):
|
442
|
+
http_info = self._create_sim_sm_scenarios_http_info(request)
|
443
|
+
return AsyncInvoker(self, http_info)
|
444
|
+
|
445
|
+
def _create_sim_sm_scenarios_http_info(self, request):
|
446
|
+
http_info = {
|
447
|
+
"method": "POST",
|
448
|
+
"resource_path": "/v2/{project_id}/sim/sm/scenarios",
|
449
|
+
"request_type": request.__class__.__name__,
|
450
|
+
"response_type": "CreateSimSmScenariosResponse"
|
451
|
+
}
|
452
|
+
|
453
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
454
|
+
|
455
|
+
cname = None
|
456
|
+
|
457
|
+
collection_formats = {}
|
458
|
+
|
459
|
+
path_params = {}
|
460
|
+
|
461
|
+
query_params = []
|
462
|
+
|
463
|
+
header_params = {}
|
464
|
+
|
465
|
+
form_params = {}
|
466
|
+
|
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']
|
2056
|
+
if isinstance(request, SdkStreamRequest):
|
2057
|
+
body = request.get_file_stream()
|
2058
|
+
|
2059
|
+
response_headers = []
|
2060
|
+
|
2061
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2062
|
+
['application/json'])
|
2063
|
+
|
2064
|
+
auth_settings = []
|
2065
|
+
|
2066
|
+
http_info["cname"] = cname
|
2067
|
+
http_info["collection_formats"] = collection_formats
|
2068
|
+
http_info["path_params"] = path_params
|
2069
|
+
http_info["query_params"] = query_params
|
2070
|
+
http_info["header_params"] = header_params
|
2071
|
+
http_info["post_params"] = form_params
|
2072
|
+
http_info["body"] = body
|
2073
|
+
http_info["response_headers"] = response_headers
|
2074
|
+
|
2075
|
+
return http_info
|
2076
|
+
|
2077
|
+
def update_sim_sm_maps_files_async(self, request):
|
2078
|
+
r"""修改场景地图文件
|
2079
|
+
|
2080
|
+
修改场景地图文件.
|
2081
|
+
|
2082
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2083
|
+
|
2084
|
+
|
2085
|
+
:param request: Request instance for UpdateSimSmMapsFiles
|
2086
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.UpdateSimSmMapsFilesRequest`
|
2087
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.UpdateSimSmMapsFilesResponse`
|
2088
|
+
"""
|
2089
|
+
http_info = self._update_sim_sm_maps_files_http_info(request)
|
2090
|
+
return self._call_api(**http_info)
|
2091
|
+
|
2092
|
+
def update_sim_sm_maps_files_async_invoker(self, request):
|
2093
|
+
http_info = self._update_sim_sm_maps_files_http_info(request)
|
2094
|
+
return AsyncInvoker(self, http_info)
|
2095
|
+
|
2096
|
+
def _update_sim_sm_maps_files_http_info(self, request):
|
2097
|
+
http_info = {
|
2098
|
+
"method": "PATCH",
|
2099
|
+
"resource_path": "/v2/{project_id}/sim/sm/maps/{parent_lookup_id}/files/{sha256}",
|
2100
|
+
"request_type": request.__class__.__name__,
|
2101
|
+
"response_type": "UpdateSimSmMapsFilesResponse"
|
2102
|
+
}
|
2103
|
+
|
2104
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2105
|
+
|
2106
|
+
cname = None
|
2107
|
+
|
2108
|
+
collection_formats = {}
|
2109
|
+
|
2110
|
+
path_params = {}
|
2111
|
+
if 'parent_lookup_id' in local_var_params:
|
2112
|
+
path_params['parent_lookup_id'] = local_var_params['parent_lookup_id']
|
2113
|
+
if 'sha256' in local_var_params:
|
2114
|
+
path_params['sha256'] = local_var_params['sha256']
|
2115
|
+
|
2116
|
+
query_params = []
|
2117
|
+
|
2118
|
+
header_params = {}
|
2119
|
+
|
2120
|
+
form_params = {}
|
2121
|
+
|
2122
|
+
body = None
|
2123
|
+
if 'body' in local_var_params:
|
2124
|
+
body = local_var_params['body']
|
2125
|
+
if isinstance(request, SdkStreamRequest):
|
2126
|
+
body = request.get_file_stream()
|
2127
|
+
|
2128
|
+
response_headers = []
|
2129
|
+
|
2130
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2131
|
+
['application/json'])
|
2132
|
+
|
2133
|
+
auth_settings = []
|
2134
|
+
|
2135
|
+
http_info["cname"] = cname
|
2136
|
+
http_info["collection_formats"] = collection_formats
|
2137
|
+
http_info["path_params"] = path_params
|
2138
|
+
http_info["query_params"] = query_params
|
2139
|
+
http_info["header_params"] = header_params
|
2140
|
+
http_info["post_params"] = form_params
|
2141
|
+
http_info["body"] = body
|
2142
|
+
http_info["response_headers"] = response_headers
|
2143
|
+
|
2144
|
+
return http_info
|
2145
|
+
|
2146
|
+
def update_sim_sm_scenarios_files_async(self, request):
|
2147
|
+
r"""修改场景文件
|
2148
|
+
|
2149
|
+
修改场景文件.
|
2150
|
+
|
2151
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2152
|
+
|
2153
|
+
|
2154
|
+
:param request: Request instance for UpdateSimSmScenariosFiles
|
2155
|
+
:type request: :class:`huaweicloudsdkoctopus.v2.UpdateSimSmScenariosFilesRequest`
|
2156
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.UpdateSimSmScenariosFilesResponse`
|
2157
|
+
"""
|
2158
|
+
http_info = self._update_sim_sm_scenarios_files_http_info(request)
|
2159
|
+
return self._call_api(**http_info)
|
2160
|
+
|
2161
|
+
def update_sim_sm_scenarios_files_async_invoker(self, request):
|
2162
|
+
http_info = self._update_sim_sm_scenarios_files_http_info(request)
|
2163
|
+
return AsyncInvoker(self, http_info)
|
2164
|
+
|
2165
|
+
def _update_sim_sm_scenarios_files_http_info(self, request):
|
2166
|
+
http_info = {
|
2167
|
+
"method": "PATCH",
|
2168
|
+
"resource_path": "/v2/{project_id}/sim/sm/scenarios/{parent_lookup_id}/files/{sha256}",
|
2169
|
+
"request_type": request.__class__.__name__,
|
2170
|
+
"response_type": "UpdateSimSmScenariosFilesResponse"
|
2171
|
+
}
|
2172
|
+
|
2173
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2174
|
+
|
2175
|
+
cname = None
|
2176
|
+
|
2177
|
+
collection_formats = {}
|
2178
|
+
|
2179
|
+
path_params = {}
|
2180
|
+
if 'parent_lookup_id' in local_var_params:
|
2181
|
+
path_params['parent_lookup_id'] = local_var_params['parent_lookup_id']
|
2182
|
+
if 'sha256' in local_var_params:
|
2183
|
+
path_params['sha256'] = local_var_params['sha256']
|
2184
|
+
|
2185
|
+
query_params = []
|
2186
|
+
|
2187
|
+
header_params = {}
|
2188
|
+
|
2189
|
+
form_params = {}
|
2190
|
+
|
2191
|
+
body = None
|
2192
|
+
if 'body' in local_var_params:
|
2193
|
+
body = local_var_params['body']
|
2194
|
+
if isinstance(request, SdkStreamRequest):
|
2195
|
+
body = request.get_file_stream()
|
2196
|
+
|
2197
|
+
response_headers = []
|
2198
|
+
|
2199
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2200
|
+
['application/json'])
|
2201
|
+
|
2202
|
+
auth_settings = []
|
2203
|
+
|
2204
|
+
http_info["cname"] = cname
|
2205
|
+
http_info["collection_formats"] = collection_formats
|
2206
|
+
http_info["path_params"] = path_params
|
2207
|
+
http_info["query_params"] = query_params
|
2208
|
+
http_info["header_params"] = header_params
|
2209
|
+
http_info["post_params"] = form_params
|
2210
|
+
http_info["body"] = body
|
2211
|
+
http_info["response_headers"] = response_headers
|
2212
|
+
|
2213
|
+
return http_info
|
2214
|
+
|
2215
|
+
def _call_api(self, **kwargs):
|
2216
|
+
try:
|
2217
|
+
kwargs["async_request"] = True
|
2218
|
+
return self.do_http_request(**kwargs)
|
2219
|
+
except TypeError:
|
2220
|
+
import inspect
|
2221
|
+
params = inspect.signature(self.do_http_request).parameters
|
2222
|
+
http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs}
|
2223
|
+
return self.do_http_request(**http_info)
|
2224
|
+
|
2225
|
+
def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None,
|
2226
|
+
post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None,
|
2227
|
+
collection_formats=None, request_type=None):
|
2228
|
+
"""Makes the HTTP request and returns deserialized data.
|
2229
|
+
|
2230
|
+
:param resource_path: Path to method endpoint.
|
2231
|
+
:param method: Method to call.
|
2232
|
+
:param path_params: Path parameters in the url.
|
2233
|
+
:param query_params: Query parameters in the url.
|
2234
|
+
:param header_params: Header parameters to be
|
2235
|
+
placed in the request header.
|
2236
|
+
:param body: Request body.
|
2237
|
+
:param post_params: Request post form parameters,
|
2238
|
+
for `application/x-www-form-urlencoded`, `multipart/form-data`.
|
2239
|
+
:param cname: Used for obs endpoint.
|
2240
|
+
:param auth_settings: Auth Settings names for the request.
|
2241
|
+
:param response_type: Response data type.
|
2242
|
+
:param response_headers: Header should be added to response data.
|
2243
|
+
:param collection_formats: dict of collection formats for path, query,
|
2244
|
+
header, and post parameters.
|
2245
|
+
:param request_type: Request data type.
|
2246
|
+
:return:
|
2247
|
+
Return the response directly.
|
2248
|
+
"""
|
2249
|
+
return self.do_http_request(
|
2250
|
+
method=method,
|
2251
|
+
resource_path=resource_path,
|
2252
|
+
path_params=path_params,
|
2253
|
+
query_params=query_params,
|
2254
|
+
header_params=header_params,
|
2255
|
+
body=body,
|
2256
|
+
post_params=post_params,
|
2257
|
+
cname=cname,
|
2258
|
+
response_type=response_type,
|
2259
|
+
response_headers=response_headers,
|
2260
|
+
collection_formats=collection_formats,
|
2261
|
+
request_type=request_type,
|
2262
|
+
async_request=True)
|