huaweicloudsdkoctopus 3.1.160__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. huaweicloudsdkoctopus/__init__.py +0 -0
  2. huaweicloudsdkoctopus/v2/__init__.py +122 -0
  3. huaweicloudsdkoctopus/v2/model/__init__.py +119 -0
  4. huaweicloudsdkoctopus/v2/model/alg_image_create_srlz.py +350 -0
  5. huaweicloudsdkoctopus/v2/model/alg_image_list_srlz.py +266 -0
  6. huaweicloudsdkoctopus/v2/model/algorithm_create_srlz.py +399 -0
  7. huaweicloudsdkoctopus/v2/model/algorithm_list_srlz.py +266 -0
  8. huaweicloudsdkoctopus/v2/model/batch_config_abc_info_srlz.py +142 -0
  9. huaweicloudsdkoctopus/v2/model/batch_config_evaluation_info_srlz.py +142 -0
  10. huaweicloudsdkoctopus/v2/model/batch_config_image_info_srlz.py +198 -0
  11. huaweicloudsdkoctopus/v2/model/batch_config_msg_notify_srlz.py +115 -0
  12. huaweicloudsdkoctopus/v2/model/batch_config_scenario_srlz.py +173 -0
  13. huaweicloudsdkoctopus/v2/model/batch_config_srlz.py +806 -0
  14. huaweicloudsdkoctopus/v2/model/batch_create_request.py +198 -0
  15. huaweicloudsdkoctopus/v2/model/batch_srlz.py +604 -0
  16. huaweicloudsdkoctopus/v2/model/build_create_srlz.py +115 -0
  17. huaweicloudsdkoctopus/v2/model/build_update_srlz.py +143 -0
  18. huaweicloudsdkoctopus/v2/model/category_f62_enum.py +89 -0
  19. huaweicloudsdkoctopus/v2/model/compilation_create_srlz.py +255 -0
  20. huaweicloudsdkoctopus/v2/model/compilation_update_srlz.py +311 -0
  21. huaweicloudsdkoctopus/v2/model/create_sim_algorithm_images_request.py +111 -0
  22. huaweicloudsdkoctopus/v2/model/create_sim_algorithm_images_response.py +361 -0
  23. huaweicloudsdkoctopus/v2/model/create_sim_algorithms_request.py +111 -0
  24. huaweicloudsdkoctopus/v2/model/create_sim_algorithms_response.py +404 -0
  25. huaweicloudsdkoctopus/v2/model/create_sim_batch_configs_request.py +111 -0
  26. huaweicloudsdkoctopus/v2/model/create_sim_batch_configs_response.py +819 -0
  27. huaweicloudsdkoctopus/v2/model/create_sim_batches_request.py +111 -0
  28. huaweicloudsdkoctopus/v2/model/create_sim_batches_response.py +619 -0
  29. huaweicloudsdkoctopus/v2/model/create_sim_extensions_request.py +111 -0
  30. huaweicloudsdkoctopus/v2/model/create_sim_extensions_response.py +314 -0
  31. huaweicloudsdkoctopus/v2/model/create_sim_sm_maps_request.py +111 -0
  32. huaweicloudsdkoctopus/v2/model/create_sim_sm_maps_response.py +253 -0
  33. huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_files_request.py +139 -0
  34. huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_files_response.py +377 -0
  35. huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_request.py +111 -0
  36. huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_response.py +618 -0
  37. huaweicloudsdkoctopus/v2/model/delete_sim_algorithm_images_request.py +114 -0
  38. huaweicloudsdkoctopus/v2/model/delete_sim_algorithm_images_response.py +85 -0
  39. huaweicloudsdkoctopus/v2/model/delete_sim_algorithms_request.py +114 -0
  40. huaweicloudsdkoctopus/v2/model/delete_sim_algorithms_response.py +85 -0
  41. huaweicloudsdkoctopus/v2/model/delete_sim_batch_configs_request.py +114 -0
  42. huaweicloudsdkoctopus/v2/model/delete_sim_batch_configs_response.py +85 -0
  43. huaweicloudsdkoctopus/v2/model/delete_sim_batches_request.py +114 -0
  44. huaweicloudsdkoctopus/v2/model/delete_sim_batches_response.py +85 -0
  45. huaweicloudsdkoctopus/v2/model/delete_sim_extensions_request.py +114 -0
  46. huaweicloudsdkoctopus/v2/model/delete_sim_extensions_response.py +85 -0
  47. huaweicloudsdkoctopus/v2/model/extension_srlz.py +353 -0
  48. huaweicloudsdkoctopus/v2/model/extensions_create_srlz.py +306 -0
  49. huaweicloudsdkoctopus/v2/model/extensions_list_srlz.py +291 -0
  50. huaweicloudsdkoctopus/v2/model/family_enum.py +91 -0
  51. huaweicloudsdkoctopus/v2/model/file_create_req_srlz.py +142 -0
  52. huaweicloudsdkoctopus/v2/model/file_create_srlz.py +366 -0
  53. huaweicloudsdkoctopus/v2/model/file_nested_create_req_srlz.py +142 -0
  54. huaweicloudsdkoctopus/v2/model/file_nested_srlz.py +279 -0
  55. huaweicloudsdkoctopus/v2/model/file_retrieve_srlz.py +310 -0
  56. huaweicloudsdkoctopus/v2/model/label_brief_srlz.py +279 -0
  57. huaweicloudsdkoctopus/v2/model/list_sim_algorithm_images_request.py +339 -0
  58. huaweicloudsdkoctopus/v2/model/list_sim_algorithm_images_response.py +185 -0
  59. huaweicloudsdkoctopus/v2/model/list_sim_algorithms_request.py +281 -0
  60. huaweicloudsdkoctopus/v2/model/list_sim_algorithms_response.py +185 -0
  61. huaweicloudsdkoctopus/v2/model/list_sim_batch_configs_request.py +625 -0
  62. huaweicloudsdkoctopus/v2/model/list_sim_batch_configs_response.py +185 -0
  63. huaweicloudsdkoctopus/v2/model/list_sim_batches_request.py +426 -0
  64. huaweicloudsdkoctopus/v2/model/list_sim_batches_response.py +185 -0
  65. huaweicloudsdkoctopus/v2/model/list_sim_extensions_request.py +202 -0
  66. huaweicloudsdkoctopus/v2/model/list_sim_extensions_response.py +185 -0
  67. huaweicloudsdkoctopus/v2/model/list_sim_simulations_request.py +401 -0
  68. huaweicloudsdkoctopus/v2/model/list_sim_simulations_response.py +189 -0
  69. huaweicloudsdkoctopus/v2/model/list_sim_sm_scenarios_request.py +547 -0
  70. huaweicloudsdkoctopus/v2/model/list_sim_sm_scenarios_response.py +185 -0
  71. huaweicloudsdkoctopus/v2/model/map_create_req_srlz.py +162 -0
  72. huaweicloudsdkoctopus/v2/model/map_version_enum.py +91 -0
  73. huaweicloudsdkoctopus/v2/model/mutable_file_srlz.py +114 -0
  74. huaweicloudsdkoctopus/v2/model/patched_alg_image_update_srlz.py +302 -0
  75. huaweicloudsdkoctopus/v2/model/patched_algorithm_update_srlz.py +796 -0
  76. huaweicloudsdkoctopus/v2/model/patched_file_detail_srlz.py +144 -0
  77. huaweicloudsdkoctopus/v2/model/post_response.py +140 -0
  78. huaweicloudsdkoctopus/v2/model/post_response_field.py +236 -0
  79. huaweicloudsdkoctopus/v2/model/priority_enum.py +91 -0
  80. huaweicloudsdkoctopus/v2/model/record_mode_enum.py +88 -0
  81. huaweicloudsdkoctopus/v2/model/run_image_status_enum.py +91 -0
  82. huaweicloudsdkoctopus/v2/model/run_srlz.py +254 -0
  83. huaweicloudsdkoctopus/v2/model/scenario_create_req_srlz.py +439 -0
  84. huaweicloudsdkoctopus/v2/model/scenario_list_srlz.py +548 -0
  85. huaweicloudsdkoctopus/v2/model/scenario_status_enum.py +92 -0
  86. huaweicloudsdkoctopus/v2/model/scenario_version_enum.py +91 -0
  87. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_image_request.py +114 -0
  88. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_image_response.py +361 -0
  89. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_request.py +114 -0
  90. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_response.py +377 -0
  91. huaweicloudsdkoctopus/v2/model/show_sim_batch_config_request.py +114 -0
  92. huaweicloudsdkoctopus/v2/model/show_sim_batch_config_response.py +819 -0
  93. huaweicloudsdkoctopus/v2/model/show_sim_extension_request.py +110 -0
  94. huaweicloudsdkoctopus/v2/model/show_sim_extension_response.py +353 -0
  95. huaweicloudsdkoctopus/v2/model/show_sim_simulations_files_request.py +142 -0
  96. huaweicloudsdkoctopus/v2/model/show_sim_simulations_files_response.py +290 -0
  97. huaweicloudsdkoctopus/v2/model/simulation_eva_result_metric_srlz.py +260 -0
  98. huaweicloudsdkoctopus/v2/model/simulation_eva_result_srlz.py +231 -0
  99. huaweicloudsdkoctopus/v2/model/simulation_evaluation_metric_srlz.py +289 -0
  100. huaweicloudsdkoctopus/v2/model/simulation_evaluation_srlz.py +231 -0
  101. huaweicloudsdkoctopus/v2/model/simulation_file_path_srlz.py +347 -0
  102. huaweicloudsdkoctopus/v2/model/simulation_srlz.py +708 -0
  103. huaweicloudsdkoctopus/v2/model/status15e_enum.py +99 -0
  104. huaweicloudsdkoctopus/v2/model/status6a7_enum.py +106 -0
  105. huaweicloudsdkoctopus/v2/model/type87e_enum.py +88 -0
  106. huaweicloudsdkoctopus/v2/model/update_sim_algorithm_images_request.py +139 -0
  107. huaweicloudsdkoctopus/v2/model/update_sim_algorithm_images_response.py +303 -0
  108. huaweicloudsdkoctopus/v2/model/update_sim_algorithms_request.py +139 -0
  109. huaweicloudsdkoctopus/v2/model/update_sim_algorithms_response.py +431 -0
  110. huaweicloudsdkoctopus/v2/model/update_sim_batch_configs_extensions_request.py +138 -0
  111. huaweicloudsdkoctopus/v2/model/update_sim_batch_configs_extensions_response.py +85 -0
  112. huaweicloudsdkoctopus/v2/model/update_sim_extensions_request.py +139 -0
  113. huaweicloudsdkoctopus/v2/model/update_sim_extensions_response.py +356 -0
  114. huaweicloudsdkoctopus/v2/model/update_sim_sm_maps_files_request.py +167 -0
  115. huaweicloudsdkoctopus/v2/model/update_sim_sm_maps_files_response.py +435 -0
  116. huaweicloudsdkoctopus/v2/model/update_sim_sm_scenarios_files_request.py +167 -0
  117. huaweicloudsdkoctopus/v2/model/update_sim_sm_scenarios_files_response.py +435 -0
  118. huaweicloudsdkoctopus/v2/octopus_async_client.py +2262 -0
  119. huaweicloudsdkoctopus/v2/octopus_client.py +2259 -0
  120. huaweicloudsdkoctopus/v2/region/__init__.py +0 -0
  121. huaweicloudsdkoctopus/v2/region/octopus_region.py +31 -0
  122. huaweicloudsdkoctopus-3.1.160.dist-info/LICENSE +13 -0
  123. huaweicloudsdkoctopus-3.1.160.dist-info/METADATA +26 -0
  124. huaweicloudsdkoctopus-3.1.160.dist-info/RECORD +126 -0
  125. huaweicloudsdkoctopus-3.1.160.dist-info/WHEEL +5 -0
  126. huaweicloudsdkoctopus-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,2259 @@
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 SyncInvoker
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 OctopusClient(Client):
19
+ def __init__(self):
20
+ super(OctopusClient, 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__ != "OctopusClient":
29
+ raise TypeError("client type error, support client type is OctopusClient")
30
+ client_builder = ClientBuilder(clazz)
31
+
32
+
33
+
34
+ return client_builder
35
+
36
+ def create_sim_algorithm_images(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
+ :param request: Request instance for CreateSimAlgorithmImages
44
+ :type request: :class:`huaweicloudsdkoctopus.v2.CreateSimAlgorithmImagesRequest`
45
+ :rtype: :class:`huaweicloudsdkoctopus.v2.CreateSimAlgorithmImagesResponse`
46
+ """
47
+ http_info = self._create_sim_algorithm_images_http_info(request)
48
+ return self._call_api(**http_info)
49
+
50
+ def create_sim_algorithm_images_invoker(self, request):
51
+ http_info = self._create_sim_algorithm_images_http_info(request)
52
+ return SyncInvoker(self, http_info)
53
+
54
+ @classmethod
55
+ def _create_sim_algorithm_images_http_info(cls, 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(self, request):
102
+ r"""创建算法
103
+
104
+ A DRF ViewSet for algorithm.
105
+
106
+ Please refer to HUAWEI cloud API Explorer for details.
107
+
108
+ :param request: Request instance for CreateSimAlgorithms
109
+ :type request: :class:`huaweicloudsdkoctopus.v2.CreateSimAlgorithmsRequest`
110
+ :rtype: :class:`huaweicloudsdkoctopus.v2.CreateSimAlgorithmsResponse`
111
+ """
112
+ http_info = self._create_sim_algorithms_http_info(request)
113
+ return self._call_api(**http_info)
114
+
115
+ def create_sim_algorithms_invoker(self, request):
116
+ http_info = self._create_sim_algorithms_http_info(request)
117
+ return SyncInvoker(self, http_info)
118
+
119
+ @classmethod
120
+ def _create_sim_algorithms_http_info(cls, 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(self, request):
167
+ r"""创建仿真任务配置
168
+
169
+ A DRF ViewSet for BatchConfig.
170
+
171
+ Please refer to HUAWEI cloud API Explorer for details.
172
+
173
+ :param request: Request instance for CreateSimBatchConfigs
174
+ :type request: :class:`huaweicloudsdkoctopus.v2.CreateSimBatchConfigsRequest`
175
+ :rtype: :class:`huaweicloudsdkoctopus.v2.CreateSimBatchConfigsResponse`
176
+ """
177
+ http_info = self._create_sim_batch_configs_http_info(request)
178
+ return self._call_api(**http_info)
179
+
180
+ def create_sim_batch_configs_invoker(self, request):
181
+ http_info = self._create_sim_batch_configs_http_info(request)
182
+ return SyncInvoker(self, http_info)
183
+
184
+ @classmethod
185
+ def _create_sim_batch_configs_http_info(cls, 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(self, request):
232
+ r"""创建仿真任务
233
+
234
+ A DRF ViewSet for Batch.
235
+
236
+ Please refer to HUAWEI cloud API Explorer for details.
237
+
238
+ :param request: Request instance for CreateSimBatches
239
+ :type request: :class:`huaweicloudsdkoctopus.v2.CreateSimBatchesRequest`
240
+ :rtype: :class:`huaweicloudsdkoctopus.v2.CreateSimBatchesResponse`
241
+ """
242
+ http_info = self._create_sim_batches_http_info(request)
243
+ return self._call_api(**http_info)
244
+
245
+ def create_sim_batches_invoker(self, request):
246
+ http_info = self._create_sim_batches_http_info(request)
247
+ return SyncInvoker(self, http_info)
248
+
249
+ @classmethod
250
+ def _create_sim_batches_http_info(cls, 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(self, request):
297
+ r"""创建扩展文件
298
+
299
+ 此接口用于创建扩展文件。接口基于地图文件的sha256判断扩展文件是否已存在,如果扩展文件不存在,响应中提供预签链接用于上传文件。
300
+
301
+ Please refer to HUAWEI cloud API Explorer for details.
302
+
303
+ :param request: Request instance for CreateSimExtensions
304
+ :type request: :class:`huaweicloudsdkoctopus.v2.CreateSimExtensionsRequest`
305
+ :rtype: :class:`huaweicloudsdkoctopus.v2.CreateSimExtensionsResponse`
306
+ """
307
+ http_info = self._create_sim_extensions_http_info(request)
308
+ return self._call_api(**http_info)
309
+
310
+ def create_sim_extensions_invoker(self, request):
311
+ http_info = self._create_sim_extensions_http_info(request)
312
+ return SyncInvoker(self, http_info)
313
+
314
+ @classmethod
315
+ def _create_sim_extensions_http_info(cls, 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(self, request):
362
+ r"""创建场景地图
363
+
364
+ 创建场景地图.
365
+
366
+ Please refer to HUAWEI cloud API Explorer for details.
367
+
368
+ :param request: Request instance for CreateSimSmMaps
369
+ :type request: :class:`huaweicloudsdkoctopus.v2.CreateSimSmMapsRequest`
370
+ :rtype: :class:`huaweicloudsdkoctopus.v2.CreateSimSmMapsResponse`
371
+ """
372
+ http_info = self._create_sim_sm_maps_http_info(request)
373
+ return self._call_api(**http_info)
374
+
375
+ def create_sim_sm_maps_invoker(self, request):
376
+ http_info = self._create_sim_sm_maps_http_info(request)
377
+ return SyncInvoker(self, http_info)
378
+
379
+ @classmethod
380
+ def _create_sim_sm_maps_http_info(cls, 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(self, request):
427
+ r"""创建仿真场景
428
+
429
+ 创建仿真场景.
430
+
431
+ Please refer to HUAWEI cloud API Explorer for details.
432
+
433
+ :param request: Request instance for CreateSimSmScenarios
434
+ :type request: :class:`huaweicloudsdkoctopus.v2.CreateSimSmScenariosRequest`
435
+ :rtype: :class:`huaweicloudsdkoctopus.v2.CreateSimSmScenariosResponse`
436
+ """
437
+ http_info = self._create_sim_sm_scenarios_http_info(request)
438
+ return self._call_api(**http_info)
439
+
440
+ def create_sim_sm_scenarios_invoker(self, request):
441
+ http_info = self._create_sim_sm_scenarios_http_info(request)
442
+ return SyncInvoker(self, http_info)
443
+
444
+ @classmethod
445
+ def _create_sim_sm_scenarios_http_info(cls, 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(self, request):
492
+ r"""创建场景文件
493
+
494
+ 创建场景文件.
495
+
496
+ Please refer to HUAWEI cloud API Explorer for details.
497
+
498
+ :param request: Request instance for CreateSimSmScenariosFiles
499
+ :type request: :class:`huaweicloudsdkoctopus.v2.CreateSimSmScenariosFilesRequest`
500
+ :rtype: :class:`huaweicloudsdkoctopus.v2.CreateSimSmScenariosFilesResponse`
501
+ """
502
+ http_info = self._create_sim_sm_scenarios_files_http_info(request)
503
+ return self._call_api(**http_info)
504
+
505
+ def create_sim_sm_scenarios_files_invoker(self, request):
506
+ http_info = self._create_sim_sm_scenarios_files_http_info(request)
507
+ return SyncInvoker(self, http_info)
508
+
509
+ @classmethod
510
+ def _create_sim_sm_scenarios_files_http_info(cls, 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(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
+ :param request: Request instance for DeleteSimAlgorithmImages
566
+ :type request: :class:`huaweicloudsdkoctopus.v2.DeleteSimAlgorithmImagesRequest`
567
+ :rtype: :class:`huaweicloudsdkoctopus.v2.DeleteSimAlgorithmImagesResponse`
568
+ """
569
+ http_info = self._delete_sim_algorithm_images_http_info(request)
570
+ return self._call_api(**http_info)
571
+
572
+ def delete_sim_algorithm_images_invoker(self, request):
573
+ http_info = self._delete_sim_algorithm_images_http_info(request)
574
+ return SyncInvoker(self, http_info)
575
+
576
+ @classmethod
577
+ def _delete_sim_algorithm_images_http_info(cls, 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(self, request):
624
+ r"""删除算法
625
+
626
+ A DRF ViewSet for algorithm.
627
+
628
+ Please refer to HUAWEI cloud API Explorer for details.
629
+
630
+ :param request: Request instance for DeleteSimAlgorithms
631
+ :type request: :class:`huaweicloudsdkoctopus.v2.DeleteSimAlgorithmsRequest`
632
+ :rtype: :class:`huaweicloudsdkoctopus.v2.DeleteSimAlgorithmsResponse`
633
+ """
634
+ http_info = self._delete_sim_algorithms_http_info(request)
635
+ return self._call_api(**http_info)
636
+
637
+ def delete_sim_algorithms_invoker(self, request):
638
+ http_info = self._delete_sim_algorithms_http_info(request)
639
+ return SyncInvoker(self, http_info)
640
+
641
+ @classmethod
642
+ def _delete_sim_algorithms_http_info(cls, 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(self, request):
689
+ r"""删除仿真任务配置
690
+
691
+ A DRF ViewSet for BatchConfig.
692
+
693
+ Please refer to HUAWEI cloud API Explorer for details.
694
+
695
+ :param request: Request instance for DeleteSimBatchConfigs
696
+ :type request: :class:`huaweicloudsdkoctopus.v2.DeleteSimBatchConfigsRequest`
697
+ :rtype: :class:`huaweicloudsdkoctopus.v2.DeleteSimBatchConfigsResponse`
698
+ """
699
+ http_info = self._delete_sim_batch_configs_http_info(request)
700
+ return self._call_api(**http_info)
701
+
702
+ def delete_sim_batch_configs_invoker(self, request):
703
+ http_info = self._delete_sim_batch_configs_http_info(request)
704
+ return SyncInvoker(self, http_info)
705
+
706
+ @classmethod
707
+ def _delete_sim_batch_configs_http_info(cls, 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(self, request):
754
+ r"""删除仿真任务
755
+
756
+ A DRF ViewSet for Batch.
757
+
758
+ Please refer to HUAWEI cloud API Explorer for details.
759
+
760
+ :param request: Request instance for DeleteSimBatches
761
+ :type request: :class:`huaweicloudsdkoctopus.v2.DeleteSimBatchesRequest`
762
+ :rtype: :class:`huaweicloudsdkoctopus.v2.DeleteSimBatchesResponse`
763
+ """
764
+ http_info = self._delete_sim_batches_http_info(request)
765
+ return self._call_api(**http_info)
766
+
767
+ def delete_sim_batches_invoker(self, request):
768
+ http_info = self._delete_sim_batches_http_info(request)
769
+ return SyncInvoker(self, http_info)
770
+
771
+ @classmethod
772
+ def _delete_sim_batches_http_info(cls, 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(self, request):
819
+ r"""删除扩展文件
820
+
821
+
822
+ Please refer to HUAWEI cloud API Explorer for details.
823
+
824
+ :param request: Request instance for DeleteSimExtensions
825
+ :type request: :class:`huaweicloudsdkoctopus.v2.DeleteSimExtensionsRequest`
826
+ :rtype: :class:`huaweicloudsdkoctopus.v2.DeleteSimExtensionsResponse`
827
+ """
828
+ http_info = self._delete_sim_extensions_http_info(request)
829
+ return self._call_api(**http_info)
830
+
831
+ def delete_sim_extensions_invoker(self, request):
832
+ http_info = self._delete_sim_extensions_http_info(request)
833
+ return SyncInvoker(self, http_info)
834
+
835
+ @classmethod
836
+ def _delete_sim_extensions_http_info(cls, 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(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
+ :param request: Request instance for ListSimAlgorithmImages
890
+ :type request: :class:`huaweicloudsdkoctopus.v2.ListSimAlgorithmImagesRequest`
891
+ :rtype: :class:`huaweicloudsdkoctopus.v2.ListSimAlgorithmImagesResponse`
892
+ """
893
+ http_info = self._list_sim_algorithm_images_http_info(request)
894
+ return self._call_api(**http_info)
895
+
896
+ def list_sim_algorithm_images_invoker(self, request):
897
+ http_info = self._list_sim_algorithm_images_http_info(request)
898
+ return SyncInvoker(self, http_info)
899
+
900
+ @classmethod
901
+ def _list_sim_algorithm_images_http_info(cls, 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(self, request):
964
+ r"""获取算法列表
965
+
966
+ A DRF ViewSet for algorithm.
967
+
968
+ Please refer to HUAWEI cloud API Explorer for details.
969
+
970
+ :param request: Request instance for ListSimAlgorithms
971
+ :type request: :class:`huaweicloudsdkoctopus.v2.ListSimAlgorithmsRequest`
972
+ :rtype: :class:`huaweicloudsdkoctopus.v2.ListSimAlgorithmsResponse`
973
+ """
974
+ http_info = self._list_sim_algorithms_http_info(request)
975
+ return self._call_api(**http_info)
976
+
977
+ def list_sim_algorithms_invoker(self, request):
978
+ http_info = self._list_sim_algorithms_http_info(request)
979
+ return SyncInvoker(self, http_info)
980
+
981
+ @classmethod
982
+ def _list_sim_algorithms_http_info(cls, 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(self, request):
1041
+ r"""获取仿真任务配置列表
1042
+
1043
+ A DRF ViewSet for BatchConfig.
1044
+
1045
+ Please refer to HUAWEI cloud API Explorer for details.
1046
+
1047
+ :param request: Request instance for ListSimBatchConfigs
1048
+ :type request: :class:`huaweicloudsdkoctopus.v2.ListSimBatchConfigsRequest`
1049
+ :rtype: :class:`huaweicloudsdkoctopus.v2.ListSimBatchConfigsResponse`
1050
+ """
1051
+ http_info = self._list_sim_batch_configs_http_info(request)
1052
+ return self._call_api(**http_info)
1053
+
1054
+ def list_sim_batch_configs_invoker(self, request):
1055
+ http_info = self._list_sim_batch_configs_http_info(request)
1056
+ return SyncInvoker(self, http_info)
1057
+
1058
+ @classmethod
1059
+ def _list_sim_batch_configs_http_info(cls, 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(self, request):
1143
+ r"""获取仿真任务列表
1144
+
1145
+ A DRF ViewSet for Batch.
1146
+
1147
+ Please refer to HUAWEI cloud API Explorer for details.
1148
+
1149
+ :param request: Request instance for ListSimBatches
1150
+ :type request: :class:`huaweicloudsdkoctopus.v2.ListSimBatchesRequest`
1151
+ :rtype: :class:`huaweicloudsdkoctopus.v2.ListSimBatchesResponse`
1152
+ """
1153
+ http_info = self._list_sim_batches_http_info(request)
1154
+ return self._call_api(**http_info)
1155
+
1156
+ def list_sim_batches_invoker(self, request):
1157
+ http_info = self._list_sim_batches_http_info(request)
1158
+ return SyncInvoker(self, http_info)
1159
+
1160
+ @classmethod
1161
+ def _list_sim_batches_http_info(cls, 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(self, request):
1230
+ r"""获取扩展文件列表
1231
+
1232
+ A DRF ViewSet for Extensions.
1233
+
1234
+ Please refer to HUAWEI cloud API Explorer for details.
1235
+
1236
+ :param request: Request instance for ListSimExtensions
1237
+ :type request: :class:`huaweicloudsdkoctopus.v2.ListSimExtensionsRequest`
1238
+ :rtype: :class:`huaweicloudsdkoctopus.v2.ListSimExtensionsResponse`
1239
+ """
1240
+ http_info = self._list_sim_extensions_http_info(request)
1241
+ return self._call_api(**http_info)
1242
+
1243
+ def list_sim_extensions_invoker(self, request):
1244
+ http_info = self._list_sim_extensions_http_info(request)
1245
+ return SyncInvoker(self, http_info)
1246
+
1247
+ @classmethod
1248
+ def _list_sim_extensions_http_info(cls, 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(self, request):
1301
+ r"""获取仿真子任务列表
1302
+
1303
+ List simulations data.
1304
+
1305
+ Please refer to HUAWEI cloud API Explorer for details.
1306
+
1307
+ :param request: Request instance for ListSimSimulations
1308
+ :type request: :class:`huaweicloudsdkoctopus.v2.ListSimSimulationsRequest`
1309
+ :rtype: :class:`huaweicloudsdkoctopus.v2.ListSimSimulationsResponse`
1310
+ """
1311
+ http_info = self._list_sim_simulations_http_info(request)
1312
+ return self._call_api(**http_info)
1313
+
1314
+ def list_sim_simulations_invoker(self, request):
1315
+ http_info = self._list_sim_simulations_http_info(request)
1316
+ return SyncInvoker(self, http_info)
1317
+
1318
+ @classmethod
1319
+ def _list_sim_simulations_http_info(cls, 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(self, request):
1386
+ r"""场景列表
1387
+
1388
+ A DRF ViewSet for Scenario.
1389
+
1390
+ Please refer to HUAWEI cloud API Explorer for details.
1391
+
1392
+ :param request: Request instance for ListSimSmScenarios
1393
+ :type request: :class:`huaweicloudsdkoctopus.v2.ListSimSmScenariosRequest`
1394
+ :rtype: :class:`huaweicloudsdkoctopus.v2.ListSimSmScenariosResponse`
1395
+ """
1396
+ http_info = self._list_sim_sm_scenarios_http_info(request)
1397
+ return self._call_api(**http_info)
1398
+
1399
+ def list_sim_sm_scenarios_invoker(self, request):
1400
+ http_info = self._list_sim_sm_scenarios_http_info(request)
1401
+ return SyncInvoker(self, http_info)
1402
+
1403
+ @classmethod
1404
+ def _list_sim_sm_scenarios_http_info(cls, 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(self, request):
1484
+ r"""获取算法详情
1485
+
1486
+ A DRF ViewSet for algorithm.
1487
+
1488
+ Please refer to HUAWEI cloud API Explorer for details.
1489
+
1490
+ :param request: Request instance for ShowSimAlgorithm
1491
+ :type request: :class:`huaweicloudsdkoctopus.v2.ShowSimAlgorithmRequest`
1492
+ :rtype: :class:`huaweicloudsdkoctopus.v2.ShowSimAlgorithmResponse`
1493
+ """
1494
+ http_info = self._show_sim_algorithm_http_info(request)
1495
+ return self._call_api(**http_info)
1496
+
1497
+ def show_sim_algorithm_invoker(self, request):
1498
+ http_info = self._show_sim_algorithm_http_info(request)
1499
+ return SyncInvoker(self, http_info)
1500
+
1501
+ @classmethod
1502
+ def _show_sim_algorithm_http_info(cls, 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(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
+ :param request: Request instance for ShowSimAlgorithmImage
1556
+ :type request: :class:`huaweicloudsdkoctopus.v2.ShowSimAlgorithmImageRequest`
1557
+ :rtype: :class:`huaweicloudsdkoctopus.v2.ShowSimAlgorithmImageResponse`
1558
+ """
1559
+ http_info = self._show_sim_algorithm_image_http_info(request)
1560
+ return self._call_api(**http_info)
1561
+
1562
+ def show_sim_algorithm_image_invoker(self, request):
1563
+ http_info = self._show_sim_algorithm_image_http_info(request)
1564
+ return SyncInvoker(self, http_info)
1565
+
1566
+ @classmethod
1567
+ def _show_sim_algorithm_image_http_info(cls, 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(self, request):
1614
+ r"""获取仿真任务配置详情
1615
+
1616
+ A DRF ViewSet for BatchConfig.
1617
+
1618
+ Please refer to HUAWEI cloud API Explorer for details.
1619
+
1620
+ :param request: Request instance for ShowSimBatchConfig
1621
+ :type request: :class:`huaweicloudsdkoctopus.v2.ShowSimBatchConfigRequest`
1622
+ :rtype: :class:`huaweicloudsdkoctopus.v2.ShowSimBatchConfigResponse`
1623
+ """
1624
+ http_info = self._show_sim_batch_config_http_info(request)
1625
+ return self._call_api(**http_info)
1626
+
1627
+ def show_sim_batch_config_invoker(self, request):
1628
+ http_info = self._show_sim_batch_config_http_info(request)
1629
+ return SyncInvoker(self, http_info)
1630
+
1631
+ @classmethod
1632
+ def _show_sim_batch_config_http_info(cls, 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(self, request):
1679
+ r"""获取扩展文件详情
1680
+
1681
+ A DRF ViewSet for Extensions.
1682
+
1683
+ Please refer to HUAWEI cloud API Explorer for details.
1684
+
1685
+ :param request: Request instance for ShowSimExtension
1686
+ :type request: :class:`huaweicloudsdkoctopus.v2.ShowSimExtensionRequest`
1687
+ :rtype: :class:`huaweicloudsdkoctopus.v2.ShowSimExtensionResponse`
1688
+ """
1689
+ http_info = self._show_sim_extension_http_info(request)
1690
+ return self._call_api(**http_info)
1691
+
1692
+ def show_sim_extension_invoker(self, request):
1693
+ http_info = self._show_sim_extension_http_info(request)
1694
+ return SyncInvoker(self, http_info)
1695
+
1696
+ @classmethod
1697
+ def _show_sim_extension_http_info(cls, 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(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
+ :param request: Request instance for ShowSimSimulationsFiles
1751
+ :type request: :class:`huaweicloudsdkoctopus.v2.ShowSimSimulationsFilesRequest`
1752
+ :rtype: :class:`huaweicloudsdkoctopus.v2.ShowSimSimulationsFilesResponse`
1753
+ """
1754
+ http_info = self._show_sim_simulations_files_http_info(request)
1755
+ return self._call_api(**http_info)
1756
+
1757
+ def show_sim_simulations_files_invoker(self, request):
1758
+ http_info = self._show_sim_simulations_files_http_info(request)
1759
+ return SyncInvoker(self, http_info)
1760
+
1761
+ @classmethod
1762
+ def _show_sim_simulations_files_http_info(cls, 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(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
+ :param request: Request instance for UpdateSimAlgorithmImages
1818
+ :type request: :class:`huaweicloudsdkoctopus.v2.UpdateSimAlgorithmImagesRequest`
1819
+ :rtype: :class:`huaweicloudsdkoctopus.v2.UpdateSimAlgorithmImagesResponse`
1820
+ """
1821
+ http_info = self._update_sim_algorithm_images_http_info(request)
1822
+ return self._call_api(**http_info)
1823
+
1824
+ def update_sim_algorithm_images_invoker(self, request):
1825
+ http_info = self._update_sim_algorithm_images_http_info(request)
1826
+ return SyncInvoker(self, http_info)
1827
+
1828
+ @classmethod
1829
+ def _update_sim_algorithm_images_http_info(cls, 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(self, request):
1878
+ r"""更新算法
1879
+
1880
+ A DRF ViewSet for algorithm.
1881
+
1882
+ Please refer to HUAWEI cloud API Explorer for details.
1883
+
1884
+ :param request: Request instance for UpdateSimAlgorithms
1885
+ :type request: :class:`huaweicloudsdkoctopus.v2.UpdateSimAlgorithmsRequest`
1886
+ :rtype: :class:`huaweicloudsdkoctopus.v2.UpdateSimAlgorithmsResponse`
1887
+ """
1888
+ http_info = self._update_sim_algorithms_http_info(request)
1889
+ return self._call_api(**http_info)
1890
+
1891
+ def update_sim_algorithms_invoker(self, request):
1892
+ http_info = self._update_sim_algorithms_http_info(request)
1893
+ return SyncInvoker(self, http_info)
1894
+
1895
+ @classmethod
1896
+ def _update_sim_algorithms_http_info(cls, 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(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
+ :param request: Request instance for UpdateSimBatchConfigsExtensions
1952
+ :type request: :class:`huaweicloudsdkoctopus.v2.UpdateSimBatchConfigsExtensionsRequest`
1953
+ :rtype: :class:`huaweicloudsdkoctopus.v2.UpdateSimBatchConfigsExtensionsResponse`
1954
+ """
1955
+ http_info = self._update_sim_batch_configs_extensions_http_info(request)
1956
+ return self._call_api(**http_info)
1957
+
1958
+ def update_sim_batch_configs_extensions_invoker(self, request):
1959
+ http_info = self._update_sim_batch_configs_extensions_http_info(request)
1960
+ return SyncInvoker(self, http_info)
1961
+
1962
+ @classmethod
1963
+ def _update_sim_batch_configs_extensions_http_info(cls, 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(self, request):
2012
+ r"""修改扩展文件
2013
+
2014
+
2015
+ Please refer to HUAWEI cloud API Explorer for details.
2016
+
2017
+ :param request: Request instance for UpdateSimExtensions
2018
+ :type request: :class:`huaweicloudsdkoctopus.v2.UpdateSimExtensionsRequest`
2019
+ :rtype: :class:`huaweicloudsdkoctopus.v2.UpdateSimExtensionsResponse`
2020
+ """
2021
+ http_info = self._update_sim_extensions_http_info(request)
2022
+ return self._call_api(**http_info)
2023
+
2024
+ def update_sim_extensions_invoker(self, request):
2025
+ http_info = self._update_sim_extensions_http_info(request)
2026
+ return SyncInvoker(self, http_info)
2027
+
2028
+ @classmethod
2029
+ def _update_sim_extensions_http_info(cls, 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(self, request):
2078
+ r"""修改场景地图文件
2079
+
2080
+ 修改场景地图文件.
2081
+
2082
+ Please refer to HUAWEI cloud API Explorer for details.
2083
+
2084
+ :param request: Request instance for UpdateSimSmMapsFiles
2085
+ :type request: :class:`huaweicloudsdkoctopus.v2.UpdateSimSmMapsFilesRequest`
2086
+ :rtype: :class:`huaweicloudsdkoctopus.v2.UpdateSimSmMapsFilesResponse`
2087
+ """
2088
+ http_info = self._update_sim_sm_maps_files_http_info(request)
2089
+ return self._call_api(**http_info)
2090
+
2091
+ def update_sim_sm_maps_files_invoker(self, request):
2092
+ http_info = self._update_sim_sm_maps_files_http_info(request)
2093
+ return SyncInvoker(self, http_info)
2094
+
2095
+ @classmethod
2096
+ def _update_sim_sm_maps_files_http_info(cls, 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(self, request):
2147
+ r"""修改场景文件
2148
+
2149
+ 修改场景文件.
2150
+
2151
+ Please refer to HUAWEI cloud API Explorer for details.
2152
+
2153
+ :param request: Request instance for UpdateSimSmScenariosFiles
2154
+ :type request: :class:`huaweicloudsdkoctopus.v2.UpdateSimSmScenariosFilesRequest`
2155
+ :rtype: :class:`huaweicloudsdkoctopus.v2.UpdateSimSmScenariosFilesResponse`
2156
+ """
2157
+ http_info = self._update_sim_sm_scenarios_files_http_info(request)
2158
+ return self._call_api(**http_info)
2159
+
2160
+ def update_sim_sm_scenarios_files_invoker(self, request):
2161
+ http_info = self._update_sim_sm_scenarios_files_http_info(request)
2162
+ return SyncInvoker(self, http_info)
2163
+
2164
+ @classmethod
2165
+ def _update_sim_sm_scenarios_files_http_info(cls, 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
+ return self.do_http_request(**kwargs)
2218
+ except TypeError:
2219
+ import inspect
2220
+ params = inspect.signature(self.do_http_request).parameters
2221
+ http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs}
2222
+ return self.do_http_request(**http_info)
2223
+
2224
+ def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None,
2225
+ post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None,
2226
+ collection_formats=None, request_type=None):
2227
+ """Makes the HTTP request and returns deserialized data.
2228
+
2229
+ :param resource_path: Path to method endpoint.
2230
+ :param method: Method to call.
2231
+ :param path_params: Path parameters in the url.
2232
+ :param query_params: Query parameters in the url.
2233
+ :param header_params: Header parameters to be placed in the request header.
2234
+ :param body: Request body.
2235
+ :param post_params: Request post form parameters,
2236
+ for `application/x-www-form-urlencoded`, `multipart/form-data`.
2237
+ :param cname: Used for obs endpoint.
2238
+ :param auth_settings: Auth Settings names for the request.
2239
+ :param response_type: Response data type.
2240
+ :param response_headers: Header should be added to response data.
2241
+ :param collection_formats: dict of collection formats for path, query,
2242
+ header, and post parameters.
2243
+ :param request_type: Request data type.
2244
+ :return:
2245
+ Return the response directly.
2246
+ """
2247
+ return self.do_http_request(
2248
+ method=method,
2249
+ resource_path=resource_path,
2250
+ path_params=path_params,
2251
+ query_params=query_params,
2252
+ header_params=header_params,
2253
+ body=body,
2254
+ post_params=post_params,
2255
+ cname=cname,
2256
+ response_type=response_type,
2257
+ response_headers=response_headers,
2258
+ collection_formats=collection_formats,
2259
+ request_type=request_type)