alibabacloud-quanmiaolightapp20240801 2.5.1__tar.gz → 2.6.1__tar.gz
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.
- {alibabacloud_quanmiaolightapp20240801-2.5.1 → alibabacloud_quanmiaolightapp20240801-2.6.1}/ChangeLog.md +13 -0
- {alibabacloud_quanmiaolightapp20240801-2.5.1 → alibabacloud_quanmiaolightapp20240801-2.6.1}/PKG-INFO +1 -1
- alibabacloud_quanmiaolightapp20240801-2.6.1/alibabacloud_quanmiaolightapp20240801/__init__.py +1 -0
- {alibabacloud_quanmiaolightapp20240801-2.5.1 → alibabacloud_quanmiaolightapp20240801-2.6.1}/alibabacloud_quanmiaolightapp20240801/client.py +312 -0
- {alibabacloud_quanmiaolightapp20240801-2.5.1 → alibabacloud_quanmiaolightapp20240801-2.6.1}/alibabacloud_quanmiaolightapp20240801/models.py +4181 -3070
- {alibabacloud_quanmiaolightapp20240801-2.5.1 → alibabacloud_quanmiaolightapp20240801-2.6.1}/alibabacloud_quanmiaolightapp20240801.egg-info/PKG-INFO +1 -1
- {alibabacloud_quanmiaolightapp20240801-2.5.1 → alibabacloud_quanmiaolightapp20240801-2.6.1}/setup.py +1 -1
- alibabacloud_quanmiaolightapp20240801-2.5.1/alibabacloud_quanmiaolightapp20240801/__init__.py +0 -1
- {alibabacloud_quanmiaolightapp20240801-2.5.1 → alibabacloud_quanmiaolightapp20240801-2.6.1}/LICENSE +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.5.1 → alibabacloud_quanmiaolightapp20240801-2.6.1}/MANIFEST.in +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.5.1 → alibabacloud_quanmiaolightapp20240801-2.6.1}/README-CN.md +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.5.1 → alibabacloud_quanmiaolightapp20240801-2.6.1}/README.md +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.5.1 → alibabacloud_quanmiaolightapp20240801-2.6.1}/alibabacloud_quanmiaolightapp20240801.egg-info/SOURCES.txt +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.5.1 → alibabacloud_quanmiaolightapp20240801-2.6.1}/alibabacloud_quanmiaolightapp20240801.egg-info/dependency_links.txt +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.5.1 → alibabacloud_quanmiaolightapp20240801-2.6.1}/alibabacloud_quanmiaolightapp20240801.egg-info/requires.txt +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.5.1 → alibabacloud_quanmiaolightapp20240801-2.6.1}/alibabacloud_quanmiaolightapp20240801.egg-info/top_level.txt +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.5.1 → alibabacloud_quanmiaolightapp20240801-2.6.1}/setup.cfg +0 -0
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
2025-03-10 Version: 2.6.0
|
|
2
|
+
- Support API GetTagMiningAnalysisTask.
|
|
3
|
+
- Support API SubmitTagMiningAnalysisTask.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
2025-01-23 Version: 2.5.1
|
|
7
|
+
- Update API RunStyleWriting: add param processStage.
|
|
8
|
+
- Update API RunStyleWriting: add param useSearch.
|
|
9
|
+
- Update API RunStyleWriting: update param learningSamples.
|
|
10
|
+
- Update API RunStyleWriting: update param referenceMaterials.
|
|
11
|
+
- Update API RunStyleWriting: update param writingTheme.
|
|
12
|
+
|
|
13
|
+
|
|
1
14
|
2025-01-17 Version: 2.5.0
|
|
2
15
|
- Support API RunNetworkContentAudit.
|
|
3
16
|
- Support API RunScriptChat.
|
{alibabacloud_quanmiaolightapp20240801-2.5.1 → alibabacloud_quanmiaolightapp20240801-2.6.1}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: alibabacloud_quanmiaolightapp20240801
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.6.1
|
|
4
4
|
Summary: Alibaba Cloud QuanMiaoLightApp (20240801) SDK Library for Python
|
|
5
5
|
Home-page: https://github.com/aliyun/alibabacloud-python-sdk
|
|
6
6
|
Author: Alibaba Cloud SDK
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '2.6.1'
|
|
@@ -305,6 +305,126 @@ class Client(OpenApiClient):
|
|
|
305
305
|
headers = {}
|
|
306
306
|
return await self.generate_output_format_with_options_async(workspace_id, request, headers, runtime)
|
|
307
307
|
|
|
308
|
+
def get_tag_mining_analysis_task_with_options(
|
|
309
|
+
self,
|
|
310
|
+
workspace_id: str,
|
|
311
|
+
request: quan_miao_light_app_20240801_models.GetTagMiningAnalysisTaskRequest,
|
|
312
|
+
headers: Dict[str, str],
|
|
313
|
+
runtime: util_models.RuntimeOptions,
|
|
314
|
+
) -> quan_miao_light_app_20240801_models.GetTagMiningAnalysisTaskResponse:
|
|
315
|
+
"""
|
|
316
|
+
@summary 获取挖掘分析任务结果
|
|
317
|
+
|
|
318
|
+
@param request: GetTagMiningAnalysisTaskRequest
|
|
319
|
+
@param headers: map
|
|
320
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
321
|
+
@return: GetTagMiningAnalysisTaskResponse
|
|
322
|
+
"""
|
|
323
|
+
UtilClient.validate_model(request)
|
|
324
|
+
query = {}
|
|
325
|
+
if not UtilClient.is_unset(request.task_id):
|
|
326
|
+
query['taskId'] = request.task_id
|
|
327
|
+
req = open_api_models.OpenApiRequest(
|
|
328
|
+
headers=headers,
|
|
329
|
+
query=OpenApiUtilClient.query(query)
|
|
330
|
+
)
|
|
331
|
+
params = open_api_models.Params(
|
|
332
|
+
action='GetTagMiningAnalysisTask',
|
|
333
|
+
version='2024-08-01',
|
|
334
|
+
protocol='HTTPS',
|
|
335
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/getTagMiningAnalysisTask',
|
|
336
|
+
method='GET',
|
|
337
|
+
auth_type='AK',
|
|
338
|
+
style='ROA',
|
|
339
|
+
req_body_type='json',
|
|
340
|
+
body_type='json'
|
|
341
|
+
)
|
|
342
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
343
|
+
return TeaCore.from_map(
|
|
344
|
+
quan_miao_light_app_20240801_models.GetTagMiningAnalysisTaskResponse(),
|
|
345
|
+
self.call_api(params, req, runtime)
|
|
346
|
+
)
|
|
347
|
+
else:
|
|
348
|
+
return TeaCore.from_map(
|
|
349
|
+
quan_miao_light_app_20240801_models.GetTagMiningAnalysisTaskResponse(),
|
|
350
|
+
self.execute(params, req, runtime)
|
|
351
|
+
)
|
|
352
|
+
|
|
353
|
+
async def get_tag_mining_analysis_task_with_options_async(
|
|
354
|
+
self,
|
|
355
|
+
workspace_id: str,
|
|
356
|
+
request: quan_miao_light_app_20240801_models.GetTagMiningAnalysisTaskRequest,
|
|
357
|
+
headers: Dict[str, str],
|
|
358
|
+
runtime: util_models.RuntimeOptions,
|
|
359
|
+
) -> quan_miao_light_app_20240801_models.GetTagMiningAnalysisTaskResponse:
|
|
360
|
+
"""
|
|
361
|
+
@summary 获取挖掘分析任务结果
|
|
362
|
+
|
|
363
|
+
@param request: GetTagMiningAnalysisTaskRequest
|
|
364
|
+
@param headers: map
|
|
365
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
366
|
+
@return: GetTagMiningAnalysisTaskResponse
|
|
367
|
+
"""
|
|
368
|
+
UtilClient.validate_model(request)
|
|
369
|
+
query = {}
|
|
370
|
+
if not UtilClient.is_unset(request.task_id):
|
|
371
|
+
query['taskId'] = request.task_id
|
|
372
|
+
req = open_api_models.OpenApiRequest(
|
|
373
|
+
headers=headers,
|
|
374
|
+
query=OpenApiUtilClient.query(query)
|
|
375
|
+
)
|
|
376
|
+
params = open_api_models.Params(
|
|
377
|
+
action='GetTagMiningAnalysisTask',
|
|
378
|
+
version='2024-08-01',
|
|
379
|
+
protocol='HTTPS',
|
|
380
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/getTagMiningAnalysisTask',
|
|
381
|
+
method='GET',
|
|
382
|
+
auth_type='AK',
|
|
383
|
+
style='ROA',
|
|
384
|
+
req_body_type='json',
|
|
385
|
+
body_type='json'
|
|
386
|
+
)
|
|
387
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
388
|
+
return TeaCore.from_map(
|
|
389
|
+
quan_miao_light_app_20240801_models.GetTagMiningAnalysisTaskResponse(),
|
|
390
|
+
await self.call_api_async(params, req, runtime)
|
|
391
|
+
)
|
|
392
|
+
else:
|
|
393
|
+
return TeaCore.from_map(
|
|
394
|
+
quan_miao_light_app_20240801_models.GetTagMiningAnalysisTaskResponse(),
|
|
395
|
+
await self.execute_async(params, req, runtime)
|
|
396
|
+
)
|
|
397
|
+
|
|
398
|
+
def get_tag_mining_analysis_task(
|
|
399
|
+
self,
|
|
400
|
+
workspace_id: str,
|
|
401
|
+
request: quan_miao_light_app_20240801_models.GetTagMiningAnalysisTaskRequest,
|
|
402
|
+
) -> quan_miao_light_app_20240801_models.GetTagMiningAnalysisTaskResponse:
|
|
403
|
+
"""
|
|
404
|
+
@summary 获取挖掘分析任务结果
|
|
405
|
+
|
|
406
|
+
@param request: GetTagMiningAnalysisTaskRequest
|
|
407
|
+
@return: GetTagMiningAnalysisTaskResponse
|
|
408
|
+
"""
|
|
409
|
+
runtime = util_models.RuntimeOptions()
|
|
410
|
+
headers = {}
|
|
411
|
+
return self.get_tag_mining_analysis_task_with_options(workspace_id, request, headers, runtime)
|
|
412
|
+
|
|
413
|
+
async def get_tag_mining_analysis_task_async(
|
|
414
|
+
self,
|
|
415
|
+
workspace_id: str,
|
|
416
|
+
request: quan_miao_light_app_20240801_models.GetTagMiningAnalysisTaskRequest,
|
|
417
|
+
) -> quan_miao_light_app_20240801_models.GetTagMiningAnalysisTaskResponse:
|
|
418
|
+
"""
|
|
419
|
+
@summary 获取挖掘分析任务结果
|
|
420
|
+
|
|
421
|
+
@param request: GetTagMiningAnalysisTaskRequest
|
|
422
|
+
@return: GetTagMiningAnalysisTaskResponse
|
|
423
|
+
"""
|
|
424
|
+
runtime = util_models.RuntimeOptions()
|
|
425
|
+
headers = {}
|
|
426
|
+
return await self.get_tag_mining_analysis_task_with_options_async(workspace_id, request, headers, runtime)
|
|
427
|
+
|
|
308
428
|
def get_video_analysis_config_with_options(
|
|
309
429
|
self,
|
|
310
430
|
workspace_id: str,
|
|
@@ -2265,9 +2385,13 @@ class Client(OpenApiClient):
|
|
|
2265
2385
|
request.frame_sample_method_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.frame_sample_method, 'frameSampleMethod', 'json')
|
|
2266
2386
|
if not UtilClient.is_unset(tmp_req.generate_options):
|
|
2267
2387
|
request.generate_options_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.generate_options, 'generateOptions', 'json')
|
|
2388
|
+
if not UtilClient.is_unset(tmp_req.text_process_tasks):
|
|
2389
|
+
request.text_process_tasks_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.text_process_tasks, 'textProcessTasks', 'json')
|
|
2268
2390
|
if not UtilClient.is_unset(tmp_req.video_roles):
|
|
2269
2391
|
request.video_roles_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.video_roles, 'videoRoles', 'json')
|
|
2270
2392
|
body = {}
|
|
2393
|
+
if not UtilClient.is_unset(request.face_identity_similarity_min_score):
|
|
2394
|
+
body['faceIdentitySimilarityMinScore'] = request.face_identity_similarity_min_score
|
|
2271
2395
|
if not UtilClient.is_unset(request.frame_sample_method_shrink):
|
|
2272
2396
|
body['frameSampleMethod'] = request.frame_sample_method_shrink
|
|
2273
2397
|
if not UtilClient.is_unset(request.generate_options_shrink):
|
|
@@ -2286,6 +2410,8 @@ class Client(OpenApiClient):
|
|
|
2286
2410
|
body['snapshotInterval'] = request.snapshot_interval
|
|
2287
2411
|
if not UtilClient.is_unset(request.task_id):
|
|
2288
2412
|
body['taskId'] = request.task_id
|
|
2413
|
+
if not UtilClient.is_unset(request.text_process_tasks_shrink):
|
|
2414
|
+
body['textProcessTasks'] = request.text_process_tasks_shrink
|
|
2289
2415
|
if not UtilClient.is_unset(request.video_extra_info):
|
|
2290
2416
|
body['videoExtraInfo'] = request.video_extra_info
|
|
2291
2417
|
if not UtilClient.is_unset(request.video_model_custom_prompt_template):
|
|
@@ -2294,6 +2420,8 @@ class Client(OpenApiClient):
|
|
|
2294
2420
|
body['videoModelId'] = request.video_model_id
|
|
2295
2421
|
if not UtilClient.is_unset(request.video_roles_shrink):
|
|
2296
2422
|
body['videoRoles'] = request.video_roles_shrink
|
|
2423
|
+
if not UtilClient.is_unset(request.video_shot_face_identity_count):
|
|
2424
|
+
body['videoShotFaceIdentityCount'] = request.video_shot_face_identity_count
|
|
2297
2425
|
if not UtilClient.is_unset(request.video_url):
|
|
2298
2426
|
body['videoUrl'] = request.video_url
|
|
2299
2427
|
req = open_api_models.OpenApiRequest(
|
|
@@ -2344,9 +2472,13 @@ class Client(OpenApiClient):
|
|
|
2344
2472
|
request.frame_sample_method_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.frame_sample_method, 'frameSampleMethod', 'json')
|
|
2345
2473
|
if not UtilClient.is_unset(tmp_req.generate_options):
|
|
2346
2474
|
request.generate_options_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.generate_options, 'generateOptions', 'json')
|
|
2475
|
+
if not UtilClient.is_unset(tmp_req.text_process_tasks):
|
|
2476
|
+
request.text_process_tasks_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.text_process_tasks, 'textProcessTasks', 'json')
|
|
2347
2477
|
if not UtilClient.is_unset(tmp_req.video_roles):
|
|
2348
2478
|
request.video_roles_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.video_roles, 'videoRoles', 'json')
|
|
2349
2479
|
body = {}
|
|
2480
|
+
if not UtilClient.is_unset(request.face_identity_similarity_min_score):
|
|
2481
|
+
body['faceIdentitySimilarityMinScore'] = request.face_identity_similarity_min_score
|
|
2350
2482
|
if not UtilClient.is_unset(request.frame_sample_method_shrink):
|
|
2351
2483
|
body['frameSampleMethod'] = request.frame_sample_method_shrink
|
|
2352
2484
|
if not UtilClient.is_unset(request.generate_options_shrink):
|
|
@@ -2365,6 +2497,8 @@ class Client(OpenApiClient):
|
|
|
2365
2497
|
body['snapshotInterval'] = request.snapshot_interval
|
|
2366
2498
|
if not UtilClient.is_unset(request.task_id):
|
|
2367
2499
|
body['taskId'] = request.task_id
|
|
2500
|
+
if not UtilClient.is_unset(request.text_process_tasks_shrink):
|
|
2501
|
+
body['textProcessTasks'] = request.text_process_tasks_shrink
|
|
2368
2502
|
if not UtilClient.is_unset(request.video_extra_info):
|
|
2369
2503
|
body['videoExtraInfo'] = request.video_extra_info
|
|
2370
2504
|
if not UtilClient.is_unset(request.video_model_custom_prompt_template):
|
|
@@ -2373,6 +2507,8 @@ class Client(OpenApiClient):
|
|
|
2373
2507
|
body['videoModelId'] = request.video_model_id
|
|
2374
2508
|
if not UtilClient.is_unset(request.video_roles_shrink):
|
|
2375
2509
|
body['videoRoles'] = request.video_roles_shrink
|
|
2510
|
+
if not UtilClient.is_unset(request.video_shot_face_identity_count):
|
|
2511
|
+
body['videoShotFaceIdentityCount'] = request.video_shot_face_identity_count
|
|
2376
2512
|
if not UtilClient.is_unset(request.video_url):
|
|
2377
2513
|
body['videoUrl'] = request.video_url
|
|
2378
2514
|
req = open_api_models.OpenApiRequest(
|
|
@@ -2431,6 +2567,166 @@ class Client(OpenApiClient):
|
|
|
2431
2567
|
headers = {}
|
|
2432
2568
|
return await self.run_video_analysis_with_options_async(workspace_id, request, headers, runtime)
|
|
2433
2569
|
|
|
2570
|
+
def submit_tag_mining_analysis_task_with_options(
|
|
2571
|
+
self,
|
|
2572
|
+
workspace_id: str,
|
|
2573
|
+
tmp_req: quan_miao_light_app_20240801_models.SubmitTagMiningAnalysisTaskRequest,
|
|
2574
|
+
headers: Dict[str, str],
|
|
2575
|
+
runtime: util_models.RuntimeOptions,
|
|
2576
|
+
) -> quan_miao_light_app_20240801_models.SubmitTagMiningAnalysisTaskResponse:
|
|
2577
|
+
"""
|
|
2578
|
+
@summary 轻应用-标签挖掘
|
|
2579
|
+
|
|
2580
|
+
@param tmp_req: SubmitTagMiningAnalysisTaskRequest
|
|
2581
|
+
@param headers: map
|
|
2582
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2583
|
+
@return: SubmitTagMiningAnalysisTaskResponse
|
|
2584
|
+
"""
|
|
2585
|
+
UtilClient.validate_model(tmp_req)
|
|
2586
|
+
request = quan_miao_light_app_20240801_models.SubmitTagMiningAnalysisTaskShrinkRequest()
|
|
2587
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
2588
|
+
if not UtilClient.is_unset(tmp_req.contents):
|
|
2589
|
+
request.contents_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.contents, 'contents', 'json')
|
|
2590
|
+
if not UtilClient.is_unset(tmp_req.tags):
|
|
2591
|
+
request.tags_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.tags, 'tags', 'json')
|
|
2592
|
+
body = {}
|
|
2593
|
+
if not UtilClient.is_unset(request.business_type):
|
|
2594
|
+
body['businessType'] = request.business_type
|
|
2595
|
+
if not UtilClient.is_unset(request.contents_shrink):
|
|
2596
|
+
body['contents'] = request.contents_shrink
|
|
2597
|
+
if not UtilClient.is_unset(request.extra_info):
|
|
2598
|
+
body['extraInfo'] = request.extra_info
|
|
2599
|
+
if not UtilClient.is_unset(request.model_id):
|
|
2600
|
+
body['modelId'] = request.model_id
|
|
2601
|
+
if not UtilClient.is_unset(request.output_format):
|
|
2602
|
+
body['outputFormat'] = request.output_format
|
|
2603
|
+
if not UtilClient.is_unset(request.tags_shrink):
|
|
2604
|
+
body['tags'] = request.tags_shrink
|
|
2605
|
+
if not UtilClient.is_unset(request.task_description):
|
|
2606
|
+
body['taskDescription'] = request.task_description
|
|
2607
|
+
if not UtilClient.is_unset(request.url):
|
|
2608
|
+
body['url'] = request.url
|
|
2609
|
+
req = open_api_models.OpenApiRequest(
|
|
2610
|
+
headers=headers,
|
|
2611
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
2612
|
+
)
|
|
2613
|
+
params = open_api_models.Params(
|
|
2614
|
+
action='SubmitTagMiningAnalysisTask',
|
|
2615
|
+
version='2024-08-01',
|
|
2616
|
+
protocol='HTTPS',
|
|
2617
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/submitTagMiningAnalysisTask',
|
|
2618
|
+
method='POST',
|
|
2619
|
+
auth_type='AK',
|
|
2620
|
+
style='ROA',
|
|
2621
|
+
req_body_type='formData',
|
|
2622
|
+
body_type='json'
|
|
2623
|
+
)
|
|
2624
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
2625
|
+
return TeaCore.from_map(
|
|
2626
|
+
quan_miao_light_app_20240801_models.SubmitTagMiningAnalysisTaskResponse(),
|
|
2627
|
+
self.call_api(params, req, runtime)
|
|
2628
|
+
)
|
|
2629
|
+
else:
|
|
2630
|
+
return TeaCore.from_map(
|
|
2631
|
+
quan_miao_light_app_20240801_models.SubmitTagMiningAnalysisTaskResponse(),
|
|
2632
|
+
self.execute(params, req, runtime)
|
|
2633
|
+
)
|
|
2634
|
+
|
|
2635
|
+
async def submit_tag_mining_analysis_task_with_options_async(
|
|
2636
|
+
self,
|
|
2637
|
+
workspace_id: str,
|
|
2638
|
+
tmp_req: quan_miao_light_app_20240801_models.SubmitTagMiningAnalysisTaskRequest,
|
|
2639
|
+
headers: Dict[str, str],
|
|
2640
|
+
runtime: util_models.RuntimeOptions,
|
|
2641
|
+
) -> quan_miao_light_app_20240801_models.SubmitTagMiningAnalysisTaskResponse:
|
|
2642
|
+
"""
|
|
2643
|
+
@summary 轻应用-标签挖掘
|
|
2644
|
+
|
|
2645
|
+
@param tmp_req: SubmitTagMiningAnalysisTaskRequest
|
|
2646
|
+
@param headers: map
|
|
2647
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2648
|
+
@return: SubmitTagMiningAnalysisTaskResponse
|
|
2649
|
+
"""
|
|
2650
|
+
UtilClient.validate_model(tmp_req)
|
|
2651
|
+
request = quan_miao_light_app_20240801_models.SubmitTagMiningAnalysisTaskShrinkRequest()
|
|
2652
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
2653
|
+
if not UtilClient.is_unset(tmp_req.contents):
|
|
2654
|
+
request.contents_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.contents, 'contents', 'json')
|
|
2655
|
+
if not UtilClient.is_unset(tmp_req.tags):
|
|
2656
|
+
request.tags_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.tags, 'tags', 'json')
|
|
2657
|
+
body = {}
|
|
2658
|
+
if not UtilClient.is_unset(request.business_type):
|
|
2659
|
+
body['businessType'] = request.business_type
|
|
2660
|
+
if not UtilClient.is_unset(request.contents_shrink):
|
|
2661
|
+
body['contents'] = request.contents_shrink
|
|
2662
|
+
if not UtilClient.is_unset(request.extra_info):
|
|
2663
|
+
body['extraInfo'] = request.extra_info
|
|
2664
|
+
if not UtilClient.is_unset(request.model_id):
|
|
2665
|
+
body['modelId'] = request.model_id
|
|
2666
|
+
if not UtilClient.is_unset(request.output_format):
|
|
2667
|
+
body['outputFormat'] = request.output_format
|
|
2668
|
+
if not UtilClient.is_unset(request.tags_shrink):
|
|
2669
|
+
body['tags'] = request.tags_shrink
|
|
2670
|
+
if not UtilClient.is_unset(request.task_description):
|
|
2671
|
+
body['taskDescription'] = request.task_description
|
|
2672
|
+
if not UtilClient.is_unset(request.url):
|
|
2673
|
+
body['url'] = request.url
|
|
2674
|
+
req = open_api_models.OpenApiRequest(
|
|
2675
|
+
headers=headers,
|
|
2676
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
2677
|
+
)
|
|
2678
|
+
params = open_api_models.Params(
|
|
2679
|
+
action='SubmitTagMiningAnalysisTask',
|
|
2680
|
+
version='2024-08-01',
|
|
2681
|
+
protocol='HTTPS',
|
|
2682
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/submitTagMiningAnalysisTask',
|
|
2683
|
+
method='POST',
|
|
2684
|
+
auth_type='AK',
|
|
2685
|
+
style='ROA',
|
|
2686
|
+
req_body_type='formData',
|
|
2687
|
+
body_type='json'
|
|
2688
|
+
)
|
|
2689
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
2690
|
+
return TeaCore.from_map(
|
|
2691
|
+
quan_miao_light_app_20240801_models.SubmitTagMiningAnalysisTaskResponse(),
|
|
2692
|
+
await self.call_api_async(params, req, runtime)
|
|
2693
|
+
)
|
|
2694
|
+
else:
|
|
2695
|
+
return TeaCore.from_map(
|
|
2696
|
+
quan_miao_light_app_20240801_models.SubmitTagMiningAnalysisTaskResponse(),
|
|
2697
|
+
await self.execute_async(params, req, runtime)
|
|
2698
|
+
)
|
|
2699
|
+
|
|
2700
|
+
def submit_tag_mining_analysis_task(
|
|
2701
|
+
self,
|
|
2702
|
+
workspace_id: str,
|
|
2703
|
+
request: quan_miao_light_app_20240801_models.SubmitTagMiningAnalysisTaskRequest,
|
|
2704
|
+
) -> quan_miao_light_app_20240801_models.SubmitTagMiningAnalysisTaskResponse:
|
|
2705
|
+
"""
|
|
2706
|
+
@summary 轻应用-标签挖掘
|
|
2707
|
+
|
|
2708
|
+
@param request: SubmitTagMiningAnalysisTaskRequest
|
|
2709
|
+
@return: SubmitTagMiningAnalysisTaskResponse
|
|
2710
|
+
"""
|
|
2711
|
+
runtime = util_models.RuntimeOptions()
|
|
2712
|
+
headers = {}
|
|
2713
|
+
return self.submit_tag_mining_analysis_task_with_options(workspace_id, request, headers, runtime)
|
|
2714
|
+
|
|
2715
|
+
async def submit_tag_mining_analysis_task_async(
|
|
2716
|
+
self,
|
|
2717
|
+
workspace_id: str,
|
|
2718
|
+
request: quan_miao_light_app_20240801_models.SubmitTagMiningAnalysisTaskRequest,
|
|
2719
|
+
) -> quan_miao_light_app_20240801_models.SubmitTagMiningAnalysisTaskResponse:
|
|
2720
|
+
"""
|
|
2721
|
+
@summary 轻应用-标签挖掘
|
|
2722
|
+
|
|
2723
|
+
@param request: SubmitTagMiningAnalysisTaskRequest
|
|
2724
|
+
@return: SubmitTagMiningAnalysisTaskResponse
|
|
2725
|
+
"""
|
|
2726
|
+
runtime = util_models.RuntimeOptions()
|
|
2727
|
+
headers = {}
|
|
2728
|
+
return await self.submit_tag_mining_analysis_task_with_options_async(workspace_id, request, headers, runtime)
|
|
2729
|
+
|
|
2434
2730
|
def submit_video_analysis_task_with_options(
|
|
2435
2731
|
self,
|
|
2436
2732
|
workspace_id: str,
|
|
@@ -2453,9 +2749,13 @@ class Client(OpenApiClient):
|
|
|
2453
2749
|
request.frame_sample_method_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.frame_sample_method, 'frameSampleMethod', 'json')
|
|
2454
2750
|
if not UtilClient.is_unset(tmp_req.generate_options):
|
|
2455
2751
|
request.generate_options_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.generate_options, 'generateOptions', 'json')
|
|
2752
|
+
if not UtilClient.is_unset(tmp_req.text_process_tasks):
|
|
2753
|
+
request.text_process_tasks_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.text_process_tasks, 'textProcessTasks', 'json')
|
|
2456
2754
|
if not UtilClient.is_unset(tmp_req.video_roles):
|
|
2457
2755
|
request.video_roles_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.video_roles, 'videoRoles', 'json')
|
|
2458
2756
|
body = {}
|
|
2757
|
+
if not UtilClient.is_unset(request.face_identity_similarity_min_score):
|
|
2758
|
+
body['faceIdentitySimilarityMinScore'] = request.face_identity_similarity_min_score
|
|
2459
2759
|
if not UtilClient.is_unset(request.frame_sample_method_shrink):
|
|
2460
2760
|
body['frameSampleMethod'] = request.frame_sample_method_shrink
|
|
2461
2761
|
if not UtilClient.is_unset(request.generate_options_shrink):
|
|
@@ -2470,6 +2770,8 @@ class Client(OpenApiClient):
|
|
|
2470
2770
|
body['modelId'] = request.model_id
|
|
2471
2771
|
if not UtilClient.is_unset(request.snapshot_interval):
|
|
2472
2772
|
body['snapshotInterval'] = request.snapshot_interval
|
|
2773
|
+
if not UtilClient.is_unset(request.text_process_tasks_shrink):
|
|
2774
|
+
body['textProcessTasks'] = request.text_process_tasks_shrink
|
|
2473
2775
|
if not UtilClient.is_unset(request.video_extra_info):
|
|
2474
2776
|
body['videoExtraInfo'] = request.video_extra_info
|
|
2475
2777
|
if not UtilClient.is_unset(request.video_model_custom_prompt_template):
|
|
@@ -2478,6 +2780,8 @@ class Client(OpenApiClient):
|
|
|
2478
2780
|
body['videoModelId'] = request.video_model_id
|
|
2479
2781
|
if not UtilClient.is_unset(request.video_roles_shrink):
|
|
2480
2782
|
body['videoRoles'] = request.video_roles_shrink
|
|
2783
|
+
if not UtilClient.is_unset(request.video_shot_face_identity_count):
|
|
2784
|
+
body['videoShotFaceIdentityCount'] = request.video_shot_face_identity_count
|
|
2481
2785
|
if not UtilClient.is_unset(request.video_url):
|
|
2482
2786
|
body['videoUrl'] = request.video_url
|
|
2483
2787
|
req = open_api_models.OpenApiRequest(
|
|
@@ -2528,9 +2832,13 @@ class Client(OpenApiClient):
|
|
|
2528
2832
|
request.frame_sample_method_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.frame_sample_method, 'frameSampleMethod', 'json')
|
|
2529
2833
|
if not UtilClient.is_unset(tmp_req.generate_options):
|
|
2530
2834
|
request.generate_options_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.generate_options, 'generateOptions', 'json')
|
|
2835
|
+
if not UtilClient.is_unset(tmp_req.text_process_tasks):
|
|
2836
|
+
request.text_process_tasks_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.text_process_tasks, 'textProcessTasks', 'json')
|
|
2531
2837
|
if not UtilClient.is_unset(tmp_req.video_roles):
|
|
2532
2838
|
request.video_roles_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.video_roles, 'videoRoles', 'json')
|
|
2533
2839
|
body = {}
|
|
2840
|
+
if not UtilClient.is_unset(request.face_identity_similarity_min_score):
|
|
2841
|
+
body['faceIdentitySimilarityMinScore'] = request.face_identity_similarity_min_score
|
|
2534
2842
|
if not UtilClient.is_unset(request.frame_sample_method_shrink):
|
|
2535
2843
|
body['frameSampleMethod'] = request.frame_sample_method_shrink
|
|
2536
2844
|
if not UtilClient.is_unset(request.generate_options_shrink):
|
|
@@ -2545,6 +2853,8 @@ class Client(OpenApiClient):
|
|
|
2545
2853
|
body['modelId'] = request.model_id
|
|
2546
2854
|
if not UtilClient.is_unset(request.snapshot_interval):
|
|
2547
2855
|
body['snapshotInterval'] = request.snapshot_interval
|
|
2856
|
+
if not UtilClient.is_unset(request.text_process_tasks_shrink):
|
|
2857
|
+
body['textProcessTasks'] = request.text_process_tasks_shrink
|
|
2548
2858
|
if not UtilClient.is_unset(request.video_extra_info):
|
|
2549
2859
|
body['videoExtraInfo'] = request.video_extra_info
|
|
2550
2860
|
if not UtilClient.is_unset(request.video_model_custom_prompt_template):
|
|
@@ -2553,6 +2863,8 @@ class Client(OpenApiClient):
|
|
|
2553
2863
|
body['videoModelId'] = request.video_model_id
|
|
2554
2864
|
if not UtilClient.is_unset(request.video_roles_shrink):
|
|
2555
2865
|
body['videoRoles'] = request.video_roles_shrink
|
|
2866
|
+
if not UtilClient.is_unset(request.video_shot_face_identity_count):
|
|
2867
|
+
body['videoShotFaceIdentityCount'] = request.video_shot_face_identity_count
|
|
2556
2868
|
if not UtilClient.is_unset(request.video_url):
|
|
2557
2869
|
body['videoUrl'] = request.video_url
|
|
2558
2870
|
req = open_api_models.OpenApiRequest(
|