alibabacloud-aimiaobi20230801 1.36.5__py3-none-any.whl → 1.37.1__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.
- alibabacloud_aimiaobi20230801/__init__.py +1 -1
- alibabacloud_aimiaobi20230801/client.py +983 -39
- alibabacloud_aimiaobi20230801/models.py +2779 -391
- {alibabacloud_aimiaobi20230801-1.36.5.dist-info → alibabacloud_aimiaobi20230801-1.37.1.dist-info}/METADATA +1 -1
- alibabacloud_aimiaobi20230801-1.37.1.dist-info/RECORD +8 -0
- alibabacloud_aimiaobi20230801-1.36.5.dist-info/RECORD +0 -8
- {alibabacloud_aimiaobi20230801-1.36.5.dist-info → alibabacloud_aimiaobi20230801-1.37.1.dist-info}/LICENSE +0 -0
- {alibabacloud_aimiaobi20230801-1.36.5.dist-info → alibabacloud_aimiaobi20230801-1.37.1.dist-info}/WHEEL +0 -0
- {alibabacloud_aimiaobi20230801-1.36.5.dist-info → alibabacloud_aimiaobi20230801-1.37.1.dist-info}/top_level.txt +0 -0
|
@@ -298,15 +298,29 @@ class Client(OpenApiClient):
|
|
|
298
298
|
OpenApiUtilClient.convert(tmp_req, request)
|
|
299
299
|
if not UtilClient.is_unset(tmp_req.color_words):
|
|
300
300
|
request.color_words_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.color_words, 'ColorWords', 'json')
|
|
301
|
-
|
|
301
|
+
if not UtilClient.is_unset(tmp_req.stickers):
|
|
302
|
+
request.stickers_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.stickers, 'Stickers', 'json')
|
|
303
|
+
body = {}
|
|
304
|
+
if not UtilClient.is_unset(request.close_music):
|
|
305
|
+
body['CloseMusic'] = request.close_music
|
|
306
|
+
if not UtilClient.is_unset(request.close_subtitle):
|
|
307
|
+
body['CloseSubtitle'] = request.close_subtitle
|
|
308
|
+
if not UtilClient.is_unset(request.close_voice):
|
|
309
|
+
body['CloseVoice'] = request.close_voice
|
|
302
310
|
if not UtilClient.is_unset(request.color_words_shrink):
|
|
303
311
|
body['ColorWords'] = request.color_words_shrink
|
|
312
|
+
if not UtilClient.is_unset(request.custom_voice_url):
|
|
313
|
+
body['CustomVoiceUrl'] = request.custom_voice_url
|
|
314
|
+
if not UtilClient.is_unset(request.custom_voice_volume):
|
|
315
|
+
body['CustomVoiceVolume'] = request.custom_voice_volume
|
|
304
316
|
if not UtilClient.is_unset(request.height):
|
|
305
317
|
body['Height'] = request.height
|
|
306
318
|
if not UtilClient.is_unset(request.music_url):
|
|
307
319
|
body['MusicUrl'] = request.music_url
|
|
308
320
|
if not UtilClient.is_unset(request.music_volume):
|
|
309
321
|
body['MusicVolume'] = request.music_volume
|
|
322
|
+
if not UtilClient.is_unset(request.stickers_shrink):
|
|
323
|
+
body['Stickers'] = request.stickers_shrink
|
|
310
324
|
if not UtilClient.is_unset(request.subtitle_font_size):
|
|
311
325
|
body['SubtitleFontSize'] = request.subtitle_font_size
|
|
312
326
|
if not UtilClient.is_unset(request.task_id):
|
|
@@ -355,15 +369,29 @@ class Client(OpenApiClient):
|
|
|
355
369
|
OpenApiUtilClient.convert(tmp_req, request)
|
|
356
370
|
if not UtilClient.is_unset(tmp_req.color_words):
|
|
357
371
|
request.color_words_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.color_words, 'ColorWords', 'json')
|
|
358
|
-
|
|
372
|
+
if not UtilClient.is_unset(tmp_req.stickers):
|
|
373
|
+
request.stickers_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.stickers, 'Stickers', 'json')
|
|
374
|
+
body = {}
|
|
375
|
+
if not UtilClient.is_unset(request.close_music):
|
|
376
|
+
body['CloseMusic'] = request.close_music
|
|
377
|
+
if not UtilClient.is_unset(request.close_subtitle):
|
|
378
|
+
body['CloseSubtitle'] = request.close_subtitle
|
|
379
|
+
if not UtilClient.is_unset(request.close_voice):
|
|
380
|
+
body['CloseVoice'] = request.close_voice
|
|
359
381
|
if not UtilClient.is_unset(request.color_words_shrink):
|
|
360
382
|
body['ColorWords'] = request.color_words_shrink
|
|
383
|
+
if not UtilClient.is_unset(request.custom_voice_url):
|
|
384
|
+
body['CustomVoiceUrl'] = request.custom_voice_url
|
|
385
|
+
if not UtilClient.is_unset(request.custom_voice_volume):
|
|
386
|
+
body['CustomVoiceVolume'] = request.custom_voice_volume
|
|
361
387
|
if not UtilClient.is_unset(request.height):
|
|
362
388
|
body['Height'] = request.height
|
|
363
389
|
if not UtilClient.is_unset(request.music_url):
|
|
364
390
|
body['MusicUrl'] = request.music_url
|
|
365
391
|
if not UtilClient.is_unset(request.music_volume):
|
|
366
392
|
body['MusicVolume'] = request.music_volume
|
|
393
|
+
if not UtilClient.is_unset(request.stickers_shrink):
|
|
394
|
+
body['Stickers'] = request.stickers_shrink
|
|
367
395
|
if not UtilClient.is_unset(request.subtitle_font_size):
|
|
368
396
|
body['SubtitleFontSize'] = request.subtitle_font_size
|
|
369
397
|
if not UtilClient.is_unset(request.task_id):
|
|
@@ -776,15 +804,25 @@ class Client(OpenApiClient):
|
|
|
776
804
|
request.reference_video_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.reference_video, 'ReferenceVideo', 'json')
|
|
777
805
|
if not UtilClient.is_unset(tmp_req.source_videos):
|
|
778
806
|
request.source_videos_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.source_videos, 'SourceVideos', 'json')
|
|
807
|
+
if not UtilClient.is_unset(tmp_req.video_roles):
|
|
808
|
+
request.video_roles_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.video_roles, 'VideoRoles', 'json')
|
|
779
809
|
body = {}
|
|
780
810
|
if not UtilClient.is_unset(request.anlysis_prompt):
|
|
781
811
|
body['AnlysisPrompt'] = request.anlysis_prompt
|
|
812
|
+
if not UtilClient.is_unset(request.face_identity_similarity_min_score):
|
|
813
|
+
body['FaceIdentitySimilarityMinScore'] = request.face_identity_similarity_min_score
|
|
782
814
|
if not UtilClient.is_unset(request.reference_video_shrink):
|
|
783
815
|
body['ReferenceVideo'] = request.reference_video_shrink
|
|
816
|
+
if not UtilClient.is_unset(request.remove_subtitle):
|
|
817
|
+
body['RemoveSubtitle'] = request.remove_subtitle
|
|
784
818
|
if not UtilClient.is_unset(request.source_videos_shrink):
|
|
785
819
|
body['SourceVideos'] = request.source_videos_shrink
|
|
786
820
|
if not UtilClient.is_unset(request.split_interval):
|
|
787
821
|
body['SplitInterval'] = request.split_interval
|
|
822
|
+
if not UtilClient.is_unset(request.video_roles_shrink):
|
|
823
|
+
body['VideoRoles'] = request.video_roles_shrink
|
|
824
|
+
if not UtilClient.is_unset(request.video_shot_face_identity_count):
|
|
825
|
+
body['VideoShotFaceIdentityCount'] = request.video_shot_face_identity_count
|
|
788
826
|
if not UtilClient.is_unset(request.workspace_id):
|
|
789
827
|
body['WorkspaceId'] = request.workspace_id
|
|
790
828
|
req = open_api_models.OpenApiRequest(
|
|
@@ -825,15 +863,25 @@ class Client(OpenApiClient):
|
|
|
825
863
|
request.reference_video_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.reference_video, 'ReferenceVideo', 'json')
|
|
826
864
|
if not UtilClient.is_unset(tmp_req.source_videos):
|
|
827
865
|
request.source_videos_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.source_videos, 'SourceVideos', 'json')
|
|
866
|
+
if not UtilClient.is_unset(tmp_req.video_roles):
|
|
867
|
+
request.video_roles_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.video_roles, 'VideoRoles', 'json')
|
|
828
868
|
body = {}
|
|
829
869
|
if not UtilClient.is_unset(request.anlysis_prompt):
|
|
830
870
|
body['AnlysisPrompt'] = request.anlysis_prompt
|
|
871
|
+
if not UtilClient.is_unset(request.face_identity_similarity_min_score):
|
|
872
|
+
body['FaceIdentitySimilarityMinScore'] = request.face_identity_similarity_min_score
|
|
831
873
|
if not UtilClient.is_unset(request.reference_video_shrink):
|
|
832
874
|
body['ReferenceVideo'] = request.reference_video_shrink
|
|
875
|
+
if not UtilClient.is_unset(request.remove_subtitle):
|
|
876
|
+
body['RemoveSubtitle'] = request.remove_subtitle
|
|
833
877
|
if not UtilClient.is_unset(request.source_videos_shrink):
|
|
834
878
|
body['SourceVideos'] = request.source_videos_shrink
|
|
835
879
|
if not UtilClient.is_unset(request.split_interval):
|
|
836
880
|
body['SplitInterval'] = request.split_interval
|
|
881
|
+
if not UtilClient.is_unset(request.video_roles_shrink):
|
|
882
|
+
body['VideoRoles'] = request.video_roles_shrink
|
|
883
|
+
if not UtilClient.is_unset(request.video_shot_face_identity_count):
|
|
884
|
+
body['VideoShotFaceIdentityCount'] = request.video_shot_face_identity_count
|
|
837
885
|
if not UtilClient.is_unset(request.workspace_id):
|
|
838
886
|
body['WorkspaceId'] = request.workspace_id
|
|
839
887
|
req = open_api_models.OpenApiRequest(
|
|
@@ -1629,6 +1677,110 @@ class Client(OpenApiClient):
|
|
|
1629
1677
|
runtime = util_models.RuntimeOptions()
|
|
1630
1678
|
return await self.create_dataset_with_options_async(request, runtime)
|
|
1631
1679
|
|
|
1680
|
+
def create_general_config_with_options(
|
|
1681
|
+
self,
|
|
1682
|
+
request: ai_miao_bi_20230801_models.CreateGeneralConfigRequest,
|
|
1683
|
+
runtime: util_models.RuntimeOptions,
|
|
1684
|
+
) -> ai_miao_bi_20230801_models.CreateGeneralConfigResponse:
|
|
1685
|
+
"""
|
|
1686
|
+
@summary 通用配置-创建
|
|
1687
|
+
|
|
1688
|
+
@param request: CreateGeneralConfigRequest
|
|
1689
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1690
|
+
@return: CreateGeneralConfigResponse
|
|
1691
|
+
"""
|
|
1692
|
+
UtilClient.validate_model(request)
|
|
1693
|
+
body = {}
|
|
1694
|
+
if not UtilClient.is_unset(request.config_key):
|
|
1695
|
+
body['ConfigKey'] = request.config_key
|
|
1696
|
+
if not UtilClient.is_unset(request.config_value):
|
|
1697
|
+
body['ConfigValue'] = request.config_value
|
|
1698
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
1699
|
+
body['WorkspaceId'] = request.workspace_id
|
|
1700
|
+
req = open_api_models.OpenApiRequest(
|
|
1701
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
1702
|
+
)
|
|
1703
|
+
params = open_api_models.Params(
|
|
1704
|
+
action='CreateGeneralConfig',
|
|
1705
|
+
version='2023-08-01',
|
|
1706
|
+
protocol='HTTPS',
|
|
1707
|
+
pathname='/',
|
|
1708
|
+
method='POST',
|
|
1709
|
+
auth_type='AK',
|
|
1710
|
+
style='RPC',
|
|
1711
|
+
req_body_type='formData',
|
|
1712
|
+
body_type='json'
|
|
1713
|
+
)
|
|
1714
|
+
return TeaCore.from_map(
|
|
1715
|
+
ai_miao_bi_20230801_models.CreateGeneralConfigResponse(),
|
|
1716
|
+
self.call_api(params, req, runtime)
|
|
1717
|
+
)
|
|
1718
|
+
|
|
1719
|
+
async def create_general_config_with_options_async(
|
|
1720
|
+
self,
|
|
1721
|
+
request: ai_miao_bi_20230801_models.CreateGeneralConfigRequest,
|
|
1722
|
+
runtime: util_models.RuntimeOptions,
|
|
1723
|
+
) -> ai_miao_bi_20230801_models.CreateGeneralConfigResponse:
|
|
1724
|
+
"""
|
|
1725
|
+
@summary 通用配置-创建
|
|
1726
|
+
|
|
1727
|
+
@param request: CreateGeneralConfigRequest
|
|
1728
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1729
|
+
@return: CreateGeneralConfigResponse
|
|
1730
|
+
"""
|
|
1731
|
+
UtilClient.validate_model(request)
|
|
1732
|
+
body = {}
|
|
1733
|
+
if not UtilClient.is_unset(request.config_key):
|
|
1734
|
+
body['ConfigKey'] = request.config_key
|
|
1735
|
+
if not UtilClient.is_unset(request.config_value):
|
|
1736
|
+
body['ConfigValue'] = request.config_value
|
|
1737
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
1738
|
+
body['WorkspaceId'] = request.workspace_id
|
|
1739
|
+
req = open_api_models.OpenApiRequest(
|
|
1740
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
1741
|
+
)
|
|
1742
|
+
params = open_api_models.Params(
|
|
1743
|
+
action='CreateGeneralConfig',
|
|
1744
|
+
version='2023-08-01',
|
|
1745
|
+
protocol='HTTPS',
|
|
1746
|
+
pathname='/',
|
|
1747
|
+
method='POST',
|
|
1748
|
+
auth_type='AK',
|
|
1749
|
+
style='RPC',
|
|
1750
|
+
req_body_type='formData',
|
|
1751
|
+
body_type='json'
|
|
1752
|
+
)
|
|
1753
|
+
return TeaCore.from_map(
|
|
1754
|
+
ai_miao_bi_20230801_models.CreateGeneralConfigResponse(),
|
|
1755
|
+
await self.call_api_async(params, req, runtime)
|
|
1756
|
+
)
|
|
1757
|
+
|
|
1758
|
+
def create_general_config(
|
|
1759
|
+
self,
|
|
1760
|
+
request: ai_miao_bi_20230801_models.CreateGeneralConfigRequest,
|
|
1761
|
+
) -> ai_miao_bi_20230801_models.CreateGeneralConfigResponse:
|
|
1762
|
+
"""
|
|
1763
|
+
@summary 通用配置-创建
|
|
1764
|
+
|
|
1765
|
+
@param request: CreateGeneralConfigRequest
|
|
1766
|
+
@return: CreateGeneralConfigResponse
|
|
1767
|
+
"""
|
|
1768
|
+
runtime = util_models.RuntimeOptions()
|
|
1769
|
+
return self.create_general_config_with_options(request, runtime)
|
|
1770
|
+
|
|
1771
|
+
async def create_general_config_async(
|
|
1772
|
+
self,
|
|
1773
|
+
request: ai_miao_bi_20230801_models.CreateGeneralConfigRequest,
|
|
1774
|
+
) -> ai_miao_bi_20230801_models.CreateGeneralConfigResponse:
|
|
1775
|
+
"""
|
|
1776
|
+
@summary 通用配置-创建
|
|
1777
|
+
|
|
1778
|
+
@param request: CreateGeneralConfigRequest
|
|
1779
|
+
@return: CreateGeneralConfigResponse
|
|
1780
|
+
"""
|
|
1781
|
+
runtime = util_models.RuntimeOptions()
|
|
1782
|
+
return await self.create_general_config_with_options_async(request, runtime)
|
|
1783
|
+
|
|
1632
1784
|
def create_generated_content_with_options(
|
|
1633
1785
|
self,
|
|
1634
1786
|
tmp_req: ai_miao_bi_20230801_models.CreateGeneratedContentRequest,
|
|
@@ -2809,6 +2961,106 @@ class Client(OpenApiClient):
|
|
|
2809
2961
|
runtime = util_models.RuntimeOptions()
|
|
2810
2962
|
return await self.delete_fact_audit_url_with_options_async(request, runtime)
|
|
2811
2963
|
|
|
2964
|
+
def delete_general_config_with_options(
|
|
2965
|
+
self,
|
|
2966
|
+
request: ai_miao_bi_20230801_models.DeleteGeneralConfigRequest,
|
|
2967
|
+
runtime: util_models.RuntimeOptions,
|
|
2968
|
+
) -> ai_miao_bi_20230801_models.DeleteGeneralConfigResponse:
|
|
2969
|
+
"""
|
|
2970
|
+
@summary 通用配置-删除
|
|
2971
|
+
|
|
2972
|
+
@param request: DeleteGeneralConfigRequest
|
|
2973
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2974
|
+
@return: DeleteGeneralConfigResponse
|
|
2975
|
+
"""
|
|
2976
|
+
UtilClient.validate_model(request)
|
|
2977
|
+
body = {}
|
|
2978
|
+
if not UtilClient.is_unset(request.config_key):
|
|
2979
|
+
body['ConfigKey'] = request.config_key
|
|
2980
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
2981
|
+
body['WorkspaceId'] = request.workspace_id
|
|
2982
|
+
req = open_api_models.OpenApiRequest(
|
|
2983
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
2984
|
+
)
|
|
2985
|
+
params = open_api_models.Params(
|
|
2986
|
+
action='DeleteGeneralConfig',
|
|
2987
|
+
version='2023-08-01',
|
|
2988
|
+
protocol='HTTPS',
|
|
2989
|
+
pathname='/',
|
|
2990
|
+
method='POST',
|
|
2991
|
+
auth_type='AK',
|
|
2992
|
+
style='RPC',
|
|
2993
|
+
req_body_type='formData',
|
|
2994
|
+
body_type='json'
|
|
2995
|
+
)
|
|
2996
|
+
return TeaCore.from_map(
|
|
2997
|
+
ai_miao_bi_20230801_models.DeleteGeneralConfigResponse(),
|
|
2998
|
+
self.call_api(params, req, runtime)
|
|
2999
|
+
)
|
|
3000
|
+
|
|
3001
|
+
async def delete_general_config_with_options_async(
|
|
3002
|
+
self,
|
|
3003
|
+
request: ai_miao_bi_20230801_models.DeleteGeneralConfigRequest,
|
|
3004
|
+
runtime: util_models.RuntimeOptions,
|
|
3005
|
+
) -> ai_miao_bi_20230801_models.DeleteGeneralConfigResponse:
|
|
3006
|
+
"""
|
|
3007
|
+
@summary 通用配置-删除
|
|
3008
|
+
|
|
3009
|
+
@param request: DeleteGeneralConfigRequest
|
|
3010
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
3011
|
+
@return: DeleteGeneralConfigResponse
|
|
3012
|
+
"""
|
|
3013
|
+
UtilClient.validate_model(request)
|
|
3014
|
+
body = {}
|
|
3015
|
+
if not UtilClient.is_unset(request.config_key):
|
|
3016
|
+
body['ConfigKey'] = request.config_key
|
|
3017
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
3018
|
+
body['WorkspaceId'] = request.workspace_id
|
|
3019
|
+
req = open_api_models.OpenApiRequest(
|
|
3020
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
3021
|
+
)
|
|
3022
|
+
params = open_api_models.Params(
|
|
3023
|
+
action='DeleteGeneralConfig',
|
|
3024
|
+
version='2023-08-01',
|
|
3025
|
+
protocol='HTTPS',
|
|
3026
|
+
pathname='/',
|
|
3027
|
+
method='POST',
|
|
3028
|
+
auth_type='AK',
|
|
3029
|
+
style='RPC',
|
|
3030
|
+
req_body_type='formData',
|
|
3031
|
+
body_type='json'
|
|
3032
|
+
)
|
|
3033
|
+
return TeaCore.from_map(
|
|
3034
|
+
ai_miao_bi_20230801_models.DeleteGeneralConfigResponse(),
|
|
3035
|
+
await self.call_api_async(params, req, runtime)
|
|
3036
|
+
)
|
|
3037
|
+
|
|
3038
|
+
def delete_general_config(
|
|
3039
|
+
self,
|
|
3040
|
+
request: ai_miao_bi_20230801_models.DeleteGeneralConfigRequest,
|
|
3041
|
+
) -> ai_miao_bi_20230801_models.DeleteGeneralConfigResponse:
|
|
3042
|
+
"""
|
|
3043
|
+
@summary 通用配置-删除
|
|
3044
|
+
|
|
3045
|
+
@param request: DeleteGeneralConfigRequest
|
|
3046
|
+
@return: DeleteGeneralConfigResponse
|
|
3047
|
+
"""
|
|
3048
|
+
runtime = util_models.RuntimeOptions()
|
|
3049
|
+
return self.delete_general_config_with_options(request, runtime)
|
|
3050
|
+
|
|
3051
|
+
async def delete_general_config_async(
|
|
3052
|
+
self,
|
|
3053
|
+
request: ai_miao_bi_20230801_models.DeleteGeneralConfigRequest,
|
|
3054
|
+
) -> ai_miao_bi_20230801_models.DeleteGeneralConfigResponse:
|
|
3055
|
+
"""
|
|
3056
|
+
@summary 通用配置-删除
|
|
3057
|
+
|
|
3058
|
+
@param request: DeleteGeneralConfigRequest
|
|
3059
|
+
@return: DeleteGeneralConfigResponse
|
|
3060
|
+
"""
|
|
3061
|
+
runtime = util_models.RuntimeOptions()
|
|
3062
|
+
return await self.delete_general_config_with_options_async(request, runtime)
|
|
3063
|
+
|
|
2812
3064
|
def delete_generated_content_with_options(
|
|
2813
3065
|
self,
|
|
2814
3066
|
request: ai_miao_bi_20230801_models.DeleteGeneratedContentRequest,
|
|
@@ -7685,6 +7937,106 @@ class Client(OpenApiClient):
|
|
|
7685
7937
|
runtime = util_models.RuntimeOptions()
|
|
7686
7938
|
return await self.get_file_content_length_with_options_async(request, runtime)
|
|
7687
7939
|
|
|
7940
|
+
def get_general_config_with_options(
|
|
7941
|
+
self,
|
|
7942
|
+
request: ai_miao_bi_20230801_models.GetGeneralConfigRequest,
|
|
7943
|
+
runtime: util_models.RuntimeOptions,
|
|
7944
|
+
) -> ai_miao_bi_20230801_models.GetGeneralConfigResponse:
|
|
7945
|
+
"""
|
|
7946
|
+
@summary 通用配置-查询
|
|
7947
|
+
|
|
7948
|
+
@param request: GetGeneralConfigRequest
|
|
7949
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
7950
|
+
@return: GetGeneralConfigResponse
|
|
7951
|
+
"""
|
|
7952
|
+
UtilClient.validate_model(request)
|
|
7953
|
+
body = {}
|
|
7954
|
+
if not UtilClient.is_unset(request.config_key):
|
|
7955
|
+
body['ConfigKey'] = request.config_key
|
|
7956
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
7957
|
+
body['WorkspaceId'] = request.workspace_id
|
|
7958
|
+
req = open_api_models.OpenApiRequest(
|
|
7959
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
7960
|
+
)
|
|
7961
|
+
params = open_api_models.Params(
|
|
7962
|
+
action='GetGeneralConfig',
|
|
7963
|
+
version='2023-08-01',
|
|
7964
|
+
protocol='HTTPS',
|
|
7965
|
+
pathname='/',
|
|
7966
|
+
method='POST',
|
|
7967
|
+
auth_type='AK',
|
|
7968
|
+
style='RPC',
|
|
7969
|
+
req_body_type='formData',
|
|
7970
|
+
body_type='json'
|
|
7971
|
+
)
|
|
7972
|
+
return TeaCore.from_map(
|
|
7973
|
+
ai_miao_bi_20230801_models.GetGeneralConfigResponse(),
|
|
7974
|
+
self.call_api(params, req, runtime)
|
|
7975
|
+
)
|
|
7976
|
+
|
|
7977
|
+
async def get_general_config_with_options_async(
|
|
7978
|
+
self,
|
|
7979
|
+
request: ai_miao_bi_20230801_models.GetGeneralConfigRequest,
|
|
7980
|
+
runtime: util_models.RuntimeOptions,
|
|
7981
|
+
) -> ai_miao_bi_20230801_models.GetGeneralConfigResponse:
|
|
7982
|
+
"""
|
|
7983
|
+
@summary 通用配置-查询
|
|
7984
|
+
|
|
7985
|
+
@param request: GetGeneralConfigRequest
|
|
7986
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
7987
|
+
@return: GetGeneralConfigResponse
|
|
7988
|
+
"""
|
|
7989
|
+
UtilClient.validate_model(request)
|
|
7990
|
+
body = {}
|
|
7991
|
+
if not UtilClient.is_unset(request.config_key):
|
|
7992
|
+
body['ConfigKey'] = request.config_key
|
|
7993
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
7994
|
+
body['WorkspaceId'] = request.workspace_id
|
|
7995
|
+
req = open_api_models.OpenApiRequest(
|
|
7996
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
7997
|
+
)
|
|
7998
|
+
params = open_api_models.Params(
|
|
7999
|
+
action='GetGeneralConfig',
|
|
8000
|
+
version='2023-08-01',
|
|
8001
|
+
protocol='HTTPS',
|
|
8002
|
+
pathname='/',
|
|
8003
|
+
method='POST',
|
|
8004
|
+
auth_type='AK',
|
|
8005
|
+
style='RPC',
|
|
8006
|
+
req_body_type='formData',
|
|
8007
|
+
body_type='json'
|
|
8008
|
+
)
|
|
8009
|
+
return TeaCore.from_map(
|
|
8010
|
+
ai_miao_bi_20230801_models.GetGeneralConfigResponse(),
|
|
8011
|
+
await self.call_api_async(params, req, runtime)
|
|
8012
|
+
)
|
|
8013
|
+
|
|
8014
|
+
def get_general_config(
|
|
8015
|
+
self,
|
|
8016
|
+
request: ai_miao_bi_20230801_models.GetGeneralConfigRequest,
|
|
8017
|
+
) -> ai_miao_bi_20230801_models.GetGeneralConfigResponse:
|
|
8018
|
+
"""
|
|
8019
|
+
@summary 通用配置-查询
|
|
8020
|
+
|
|
8021
|
+
@param request: GetGeneralConfigRequest
|
|
8022
|
+
@return: GetGeneralConfigResponse
|
|
8023
|
+
"""
|
|
8024
|
+
runtime = util_models.RuntimeOptions()
|
|
8025
|
+
return self.get_general_config_with_options(request, runtime)
|
|
8026
|
+
|
|
8027
|
+
async def get_general_config_async(
|
|
8028
|
+
self,
|
|
8029
|
+
request: ai_miao_bi_20230801_models.GetGeneralConfigRequest,
|
|
8030
|
+
) -> ai_miao_bi_20230801_models.GetGeneralConfigResponse:
|
|
8031
|
+
"""
|
|
8032
|
+
@summary 通用配置-查询
|
|
8033
|
+
|
|
8034
|
+
@param request: GetGeneralConfigRequest
|
|
8035
|
+
@return: GetGeneralConfigResponse
|
|
8036
|
+
"""
|
|
8037
|
+
runtime = util_models.RuntimeOptions()
|
|
8038
|
+
return await self.get_general_config_with_options_async(request, runtime)
|
|
8039
|
+
|
|
7688
8040
|
def get_generated_content_with_options(
|
|
7689
8041
|
self,
|
|
7690
8042
|
request: ai_miao_bi_20230801_models.GetGeneratedContentRequest,
|
|
@@ -11025,37 +11377,53 @@ class Client(OpenApiClient):
|
|
|
11025
11377
|
runtime = util_models.RuntimeOptions()
|
|
11026
11378
|
return await self.list_docs_with_options_async(request, runtime)
|
|
11027
11379
|
|
|
11028
|
-
def
|
|
11380
|
+
def list_document_retrieve_with_options(
|
|
11029
11381
|
self,
|
|
11030
|
-
request: ai_miao_bi_20230801_models.
|
|
11382
|
+
request: ai_miao_bi_20230801_models.ListDocumentRetrieveRequest,
|
|
11031
11383
|
runtime: util_models.RuntimeOptions,
|
|
11032
|
-
) -> ai_miao_bi_20230801_models.
|
|
11384
|
+
) -> ai_miao_bi_20230801_models.ListDocumentRetrieveResponse:
|
|
11033
11385
|
"""
|
|
11034
|
-
@summary
|
|
11386
|
+
@summary 公文检索
|
|
11035
11387
|
|
|
11036
|
-
@param request:
|
|
11388
|
+
@param request: ListDocumentRetrieveRequest
|
|
11037
11389
|
@param runtime: runtime options for this request RuntimeOptions
|
|
11038
|
-
@return:
|
|
11390
|
+
@return: ListDocumentRetrieveResponse
|
|
11039
11391
|
"""
|
|
11040
11392
|
UtilClient.validate_model(request)
|
|
11041
11393
|
query = {}
|
|
11042
|
-
if not UtilClient.is_unset(request.
|
|
11043
|
-
query['
|
|
11394
|
+
if not UtilClient.is_unset(request.content_type):
|
|
11395
|
+
query['ContentType'] = request.content_type
|
|
11396
|
+
if not UtilClient.is_unset(request.element_scope):
|
|
11397
|
+
query['ElementScope'] = request.element_scope
|
|
11398
|
+
if not UtilClient.is_unset(request.end_date):
|
|
11399
|
+
query['EndDate'] = request.end_date
|
|
11400
|
+
if not UtilClient.is_unset(request.office):
|
|
11401
|
+
query['Office'] = request.office
|
|
11402
|
+
if not UtilClient.is_unset(request.region):
|
|
11403
|
+
query['Region'] = request.region
|
|
11404
|
+
if not UtilClient.is_unset(request.source):
|
|
11405
|
+
query['Source'] = request.source
|
|
11406
|
+
if not UtilClient.is_unset(request.start_date):
|
|
11407
|
+
query['StartDate'] = request.start_date
|
|
11408
|
+
if not UtilClient.is_unset(request.sub_content_type):
|
|
11409
|
+
query['SubContentType'] = request.sub_content_type
|
|
11410
|
+
if not UtilClient.is_unset(request.word_size):
|
|
11411
|
+
query['WordSize'] = request.word_size
|
|
11044
11412
|
body = {}
|
|
11045
11413
|
if not UtilClient.is_unset(request.max_results):
|
|
11046
11414
|
body['MaxResults'] = request.max_results
|
|
11047
11415
|
if not UtilClient.is_unset(request.next_token):
|
|
11048
11416
|
body['NextToken'] = request.next_token
|
|
11049
|
-
if not UtilClient.is_unset(request.
|
|
11050
|
-
body['
|
|
11051
|
-
if not UtilClient.is_unset(request.
|
|
11052
|
-
body['
|
|
11417
|
+
if not UtilClient.is_unset(request.query):
|
|
11418
|
+
body['Query'] = request.query
|
|
11419
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
11420
|
+
body['WorkspaceId'] = request.workspace_id
|
|
11053
11421
|
req = open_api_models.OpenApiRequest(
|
|
11054
11422
|
query=OpenApiUtilClient.query(query),
|
|
11055
11423
|
body=OpenApiUtilClient.parse_to_map(body)
|
|
11056
11424
|
)
|
|
11057
11425
|
params = open_api_models.Params(
|
|
11058
|
-
action='
|
|
11426
|
+
action='ListDocumentRetrieve',
|
|
11059
11427
|
version='2023-08-01',
|
|
11060
11428
|
protocol='HTTPS',
|
|
11061
11429
|
pathname='/',
|
|
@@ -11066,41 +11434,57 @@ class Client(OpenApiClient):
|
|
|
11066
11434
|
body_type='json'
|
|
11067
11435
|
)
|
|
11068
11436
|
return TeaCore.from_map(
|
|
11069
|
-
ai_miao_bi_20230801_models.
|
|
11437
|
+
ai_miao_bi_20230801_models.ListDocumentRetrieveResponse(),
|
|
11070
11438
|
self.call_api(params, req, runtime)
|
|
11071
11439
|
)
|
|
11072
11440
|
|
|
11073
|
-
async def
|
|
11441
|
+
async def list_document_retrieve_with_options_async(
|
|
11074
11442
|
self,
|
|
11075
|
-
request: ai_miao_bi_20230801_models.
|
|
11443
|
+
request: ai_miao_bi_20230801_models.ListDocumentRetrieveRequest,
|
|
11076
11444
|
runtime: util_models.RuntimeOptions,
|
|
11077
|
-
) -> ai_miao_bi_20230801_models.
|
|
11445
|
+
) -> ai_miao_bi_20230801_models.ListDocumentRetrieveResponse:
|
|
11078
11446
|
"""
|
|
11079
|
-
@summary
|
|
11447
|
+
@summary 公文检索
|
|
11080
11448
|
|
|
11081
|
-
@param request:
|
|
11449
|
+
@param request: ListDocumentRetrieveRequest
|
|
11082
11450
|
@param runtime: runtime options for this request RuntimeOptions
|
|
11083
|
-
@return:
|
|
11451
|
+
@return: ListDocumentRetrieveResponse
|
|
11084
11452
|
"""
|
|
11085
11453
|
UtilClient.validate_model(request)
|
|
11086
11454
|
query = {}
|
|
11087
|
-
if not UtilClient.is_unset(request.
|
|
11088
|
-
query['
|
|
11455
|
+
if not UtilClient.is_unset(request.content_type):
|
|
11456
|
+
query['ContentType'] = request.content_type
|
|
11457
|
+
if not UtilClient.is_unset(request.element_scope):
|
|
11458
|
+
query['ElementScope'] = request.element_scope
|
|
11459
|
+
if not UtilClient.is_unset(request.end_date):
|
|
11460
|
+
query['EndDate'] = request.end_date
|
|
11461
|
+
if not UtilClient.is_unset(request.office):
|
|
11462
|
+
query['Office'] = request.office
|
|
11463
|
+
if not UtilClient.is_unset(request.region):
|
|
11464
|
+
query['Region'] = request.region
|
|
11465
|
+
if not UtilClient.is_unset(request.source):
|
|
11466
|
+
query['Source'] = request.source
|
|
11467
|
+
if not UtilClient.is_unset(request.start_date):
|
|
11468
|
+
query['StartDate'] = request.start_date
|
|
11469
|
+
if not UtilClient.is_unset(request.sub_content_type):
|
|
11470
|
+
query['SubContentType'] = request.sub_content_type
|
|
11471
|
+
if not UtilClient.is_unset(request.word_size):
|
|
11472
|
+
query['WordSize'] = request.word_size
|
|
11089
11473
|
body = {}
|
|
11090
11474
|
if not UtilClient.is_unset(request.max_results):
|
|
11091
11475
|
body['MaxResults'] = request.max_results
|
|
11092
11476
|
if not UtilClient.is_unset(request.next_token):
|
|
11093
11477
|
body['NextToken'] = request.next_token
|
|
11094
|
-
if not UtilClient.is_unset(request.
|
|
11095
|
-
body['
|
|
11096
|
-
if not UtilClient.is_unset(request.
|
|
11097
|
-
body['
|
|
11478
|
+
if not UtilClient.is_unset(request.query):
|
|
11479
|
+
body['Query'] = request.query
|
|
11480
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
11481
|
+
body['WorkspaceId'] = request.workspace_id
|
|
11098
11482
|
req = open_api_models.OpenApiRequest(
|
|
11099
11483
|
query=OpenApiUtilClient.query(query),
|
|
11100
11484
|
body=OpenApiUtilClient.parse_to_map(body)
|
|
11101
11485
|
)
|
|
11102
11486
|
params = open_api_models.Params(
|
|
11103
|
-
action='
|
|
11487
|
+
action='ListDocumentRetrieve',
|
|
11104
11488
|
version='2023-08-01',
|
|
11105
11489
|
protocol='HTTPS',
|
|
11106
11490
|
pathname='/',
|
|
@@ -11111,36 +11495,256 @@ class Client(OpenApiClient):
|
|
|
11111
11495
|
body_type='json'
|
|
11112
11496
|
)
|
|
11113
11497
|
return TeaCore.from_map(
|
|
11114
|
-
ai_miao_bi_20230801_models.
|
|
11498
|
+
ai_miao_bi_20230801_models.ListDocumentRetrieveResponse(),
|
|
11115
11499
|
await self.call_api_async(params, req, runtime)
|
|
11116
11500
|
)
|
|
11117
11501
|
|
|
11118
|
-
def
|
|
11502
|
+
def list_document_retrieve(
|
|
11119
11503
|
self,
|
|
11120
|
-
request: ai_miao_bi_20230801_models.
|
|
11121
|
-
) -> ai_miao_bi_20230801_models.
|
|
11504
|
+
request: ai_miao_bi_20230801_models.ListDocumentRetrieveRequest,
|
|
11505
|
+
) -> ai_miao_bi_20230801_models.ListDocumentRetrieveResponse:
|
|
11122
11506
|
"""
|
|
11123
|
-
@summary
|
|
11507
|
+
@summary 公文检索
|
|
11124
11508
|
|
|
11125
|
-
@param request:
|
|
11126
|
-
@return:
|
|
11509
|
+
@param request: ListDocumentRetrieveRequest
|
|
11510
|
+
@return: ListDocumentRetrieveResponse
|
|
11127
11511
|
"""
|
|
11128
11512
|
runtime = util_models.RuntimeOptions()
|
|
11129
|
-
return self.
|
|
11513
|
+
return self.list_document_retrieve_with_options(request, runtime)
|
|
11130
11514
|
|
|
11131
|
-
async def
|
|
11515
|
+
async def list_document_retrieve_async(
|
|
11516
|
+
self,
|
|
11517
|
+
request: ai_miao_bi_20230801_models.ListDocumentRetrieveRequest,
|
|
11518
|
+
) -> ai_miao_bi_20230801_models.ListDocumentRetrieveResponse:
|
|
11519
|
+
"""
|
|
11520
|
+
@summary 公文检索
|
|
11521
|
+
|
|
11522
|
+
@param request: ListDocumentRetrieveRequest
|
|
11523
|
+
@return: ListDocumentRetrieveResponse
|
|
11524
|
+
"""
|
|
11525
|
+
runtime = util_models.RuntimeOptions()
|
|
11526
|
+
return await self.list_document_retrieve_with_options_async(request, runtime)
|
|
11527
|
+
|
|
11528
|
+
def list_fresh_view_points_with_options(
|
|
11132
11529
|
self,
|
|
11133
11530
|
request: ai_miao_bi_20230801_models.ListFreshViewPointsRequest,
|
|
11531
|
+
runtime: util_models.RuntimeOptions,
|
|
11134
11532
|
) -> ai_miao_bi_20230801_models.ListFreshViewPointsResponse:
|
|
11135
11533
|
"""
|
|
11136
11534
|
@summary 新颖视角列表
|
|
11137
11535
|
|
|
11138
11536
|
@param request: ListFreshViewPointsRequest
|
|
11537
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
11139
11538
|
@return: ListFreshViewPointsResponse
|
|
11140
11539
|
"""
|
|
11141
|
-
|
|
11540
|
+
UtilClient.validate_model(request)
|
|
11541
|
+
query = {}
|
|
11542
|
+
if not UtilClient.is_unset(request.agent_key):
|
|
11543
|
+
query['AgentKey'] = request.agent_key
|
|
11544
|
+
body = {}
|
|
11545
|
+
if not UtilClient.is_unset(request.max_results):
|
|
11546
|
+
body['MaxResults'] = request.max_results
|
|
11547
|
+
if not UtilClient.is_unset(request.next_token):
|
|
11548
|
+
body['NextToken'] = request.next_token
|
|
11549
|
+
if not UtilClient.is_unset(request.topic):
|
|
11550
|
+
body['Topic'] = request.topic
|
|
11551
|
+
if not UtilClient.is_unset(request.topic_source):
|
|
11552
|
+
body['TopicSource'] = request.topic_source
|
|
11553
|
+
req = open_api_models.OpenApiRequest(
|
|
11554
|
+
query=OpenApiUtilClient.query(query),
|
|
11555
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
11556
|
+
)
|
|
11557
|
+
params = open_api_models.Params(
|
|
11558
|
+
action='ListFreshViewPoints',
|
|
11559
|
+
version='2023-08-01',
|
|
11560
|
+
protocol='HTTPS',
|
|
11561
|
+
pathname='/',
|
|
11562
|
+
method='POST',
|
|
11563
|
+
auth_type='AK',
|
|
11564
|
+
style='RPC',
|
|
11565
|
+
req_body_type='formData',
|
|
11566
|
+
body_type='json'
|
|
11567
|
+
)
|
|
11568
|
+
return TeaCore.from_map(
|
|
11569
|
+
ai_miao_bi_20230801_models.ListFreshViewPointsResponse(),
|
|
11570
|
+
self.call_api(params, req, runtime)
|
|
11571
|
+
)
|
|
11572
|
+
|
|
11573
|
+
async def list_fresh_view_points_with_options_async(
|
|
11574
|
+
self,
|
|
11575
|
+
request: ai_miao_bi_20230801_models.ListFreshViewPointsRequest,
|
|
11576
|
+
runtime: util_models.RuntimeOptions,
|
|
11577
|
+
) -> ai_miao_bi_20230801_models.ListFreshViewPointsResponse:
|
|
11578
|
+
"""
|
|
11579
|
+
@summary 新颖视角列表
|
|
11580
|
+
|
|
11581
|
+
@param request: ListFreshViewPointsRequest
|
|
11582
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
11583
|
+
@return: ListFreshViewPointsResponse
|
|
11584
|
+
"""
|
|
11585
|
+
UtilClient.validate_model(request)
|
|
11586
|
+
query = {}
|
|
11587
|
+
if not UtilClient.is_unset(request.agent_key):
|
|
11588
|
+
query['AgentKey'] = request.agent_key
|
|
11589
|
+
body = {}
|
|
11590
|
+
if not UtilClient.is_unset(request.max_results):
|
|
11591
|
+
body['MaxResults'] = request.max_results
|
|
11592
|
+
if not UtilClient.is_unset(request.next_token):
|
|
11593
|
+
body['NextToken'] = request.next_token
|
|
11594
|
+
if not UtilClient.is_unset(request.topic):
|
|
11595
|
+
body['Topic'] = request.topic
|
|
11596
|
+
if not UtilClient.is_unset(request.topic_source):
|
|
11597
|
+
body['TopicSource'] = request.topic_source
|
|
11598
|
+
req = open_api_models.OpenApiRequest(
|
|
11599
|
+
query=OpenApiUtilClient.query(query),
|
|
11600
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
11601
|
+
)
|
|
11602
|
+
params = open_api_models.Params(
|
|
11603
|
+
action='ListFreshViewPoints',
|
|
11604
|
+
version='2023-08-01',
|
|
11605
|
+
protocol='HTTPS',
|
|
11606
|
+
pathname='/',
|
|
11607
|
+
method='POST',
|
|
11608
|
+
auth_type='AK',
|
|
11609
|
+
style='RPC',
|
|
11610
|
+
req_body_type='formData',
|
|
11611
|
+
body_type='json'
|
|
11612
|
+
)
|
|
11613
|
+
return TeaCore.from_map(
|
|
11614
|
+
ai_miao_bi_20230801_models.ListFreshViewPointsResponse(),
|
|
11615
|
+
await self.call_api_async(params, req, runtime)
|
|
11616
|
+
)
|
|
11617
|
+
|
|
11618
|
+
def list_fresh_view_points(
|
|
11619
|
+
self,
|
|
11620
|
+
request: ai_miao_bi_20230801_models.ListFreshViewPointsRequest,
|
|
11621
|
+
) -> ai_miao_bi_20230801_models.ListFreshViewPointsResponse:
|
|
11622
|
+
"""
|
|
11623
|
+
@summary 新颖视角列表
|
|
11624
|
+
|
|
11625
|
+
@param request: ListFreshViewPointsRequest
|
|
11626
|
+
@return: ListFreshViewPointsResponse
|
|
11627
|
+
"""
|
|
11628
|
+
runtime = util_models.RuntimeOptions()
|
|
11629
|
+
return self.list_fresh_view_points_with_options(request, runtime)
|
|
11630
|
+
|
|
11631
|
+
async def list_fresh_view_points_async(
|
|
11632
|
+
self,
|
|
11633
|
+
request: ai_miao_bi_20230801_models.ListFreshViewPointsRequest,
|
|
11634
|
+
) -> ai_miao_bi_20230801_models.ListFreshViewPointsResponse:
|
|
11635
|
+
"""
|
|
11636
|
+
@summary 新颖视角列表
|
|
11637
|
+
|
|
11638
|
+
@param request: ListFreshViewPointsRequest
|
|
11639
|
+
@return: ListFreshViewPointsResponse
|
|
11640
|
+
"""
|
|
11641
|
+
runtime = util_models.RuntimeOptions()
|
|
11142
11642
|
return await self.list_fresh_view_points_with_options_async(request, runtime)
|
|
11143
11643
|
|
|
11644
|
+
def list_general_configs_with_options(
|
|
11645
|
+
self,
|
|
11646
|
+
request: ai_miao_bi_20230801_models.ListGeneralConfigsRequest,
|
|
11647
|
+
runtime: util_models.RuntimeOptions,
|
|
11648
|
+
) -> ai_miao_bi_20230801_models.ListGeneralConfigsResponse:
|
|
11649
|
+
"""
|
|
11650
|
+
@summary 通用配置-列表
|
|
11651
|
+
|
|
11652
|
+
@param request: ListGeneralConfigsRequest
|
|
11653
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
11654
|
+
@return: ListGeneralConfigsResponse
|
|
11655
|
+
"""
|
|
11656
|
+
UtilClient.validate_model(request)
|
|
11657
|
+
body = {}
|
|
11658
|
+
if not UtilClient.is_unset(request.page_number):
|
|
11659
|
+
body['PageNumber'] = request.page_number
|
|
11660
|
+
if not UtilClient.is_unset(request.page_size):
|
|
11661
|
+
body['PageSize'] = request.page_size
|
|
11662
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
11663
|
+
body['WorkspaceId'] = request.workspace_id
|
|
11664
|
+
req = open_api_models.OpenApiRequest(
|
|
11665
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
11666
|
+
)
|
|
11667
|
+
params = open_api_models.Params(
|
|
11668
|
+
action='ListGeneralConfigs',
|
|
11669
|
+
version='2023-08-01',
|
|
11670
|
+
protocol='HTTPS',
|
|
11671
|
+
pathname='/',
|
|
11672
|
+
method='POST',
|
|
11673
|
+
auth_type='AK',
|
|
11674
|
+
style='RPC',
|
|
11675
|
+
req_body_type='formData',
|
|
11676
|
+
body_type='json'
|
|
11677
|
+
)
|
|
11678
|
+
return TeaCore.from_map(
|
|
11679
|
+
ai_miao_bi_20230801_models.ListGeneralConfigsResponse(),
|
|
11680
|
+
self.call_api(params, req, runtime)
|
|
11681
|
+
)
|
|
11682
|
+
|
|
11683
|
+
async def list_general_configs_with_options_async(
|
|
11684
|
+
self,
|
|
11685
|
+
request: ai_miao_bi_20230801_models.ListGeneralConfigsRequest,
|
|
11686
|
+
runtime: util_models.RuntimeOptions,
|
|
11687
|
+
) -> ai_miao_bi_20230801_models.ListGeneralConfigsResponse:
|
|
11688
|
+
"""
|
|
11689
|
+
@summary 通用配置-列表
|
|
11690
|
+
|
|
11691
|
+
@param request: ListGeneralConfigsRequest
|
|
11692
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
11693
|
+
@return: ListGeneralConfigsResponse
|
|
11694
|
+
"""
|
|
11695
|
+
UtilClient.validate_model(request)
|
|
11696
|
+
body = {}
|
|
11697
|
+
if not UtilClient.is_unset(request.page_number):
|
|
11698
|
+
body['PageNumber'] = request.page_number
|
|
11699
|
+
if not UtilClient.is_unset(request.page_size):
|
|
11700
|
+
body['PageSize'] = request.page_size
|
|
11701
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
11702
|
+
body['WorkspaceId'] = request.workspace_id
|
|
11703
|
+
req = open_api_models.OpenApiRequest(
|
|
11704
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
11705
|
+
)
|
|
11706
|
+
params = open_api_models.Params(
|
|
11707
|
+
action='ListGeneralConfigs',
|
|
11708
|
+
version='2023-08-01',
|
|
11709
|
+
protocol='HTTPS',
|
|
11710
|
+
pathname='/',
|
|
11711
|
+
method='POST',
|
|
11712
|
+
auth_type='AK',
|
|
11713
|
+
style='RPC',
|
|
11714
|
+
req_body_type='formData',
|
|
11715
|
+
body_type='json'
|
|
11716
|
+
)
|
|
11717
|
+
return TeaCore.from_map(
|
|
11718
|
+
ai_miao_bi_20230801_models.ListGeneralConfigsResponse(),
|
|
11719
|
+
await self.call_api_async(params, req, runtime)
|
|
11720
|
+
)
|
|
11721
|
+
|
|
11722
|
+
def list_general_configs(
|
|
11723
|
+
self,
|
|
11724
|
+
request: ai_miao_bi_20230801_models.ListGeneralConfigsRequest,
|
|
11725
|
+
) -> ai_miao_bi_20230801_models.ListGeneralConfigsResponse:
|
|
11726
|
+
"""
|
|
11727
|
+
@summary 通用配置-列表
|
|
11728
|
+
|
|
11729
|
+
@param request: ListGeneralConfigsRequest
|
|
11730
|
+
@return: ListGeneralConfigsResponse
|
|
11731
|
+
"""
|
|
11732
|
+
runtime = util_models.RuntimeOptions()
|
|
11733
|
+
return self.list_general_configs_with_options(request, runtime)
|
|
11734
|
+
|
|
11735
|
+
async def list_general_configs_async(
|
|
11736
|
+
self,
|
|
11737
|
+
request: ai_miao_bi_20230801_models.ListGeneralConfigsRequest,
|
|
11738
|
+
) -> ai_miao_bi_20230801_models.ListGeneralConfigsResponse:
|
|
11739
|
+
"""
|
|
11740
|
+
@summary 通用配置-列表
|
|
11741
|
+
|
|
11742
|
+
@param request: ListGeneralConfigsRequest
|
|
11743
|
+
@return: ListGeneralConfigsResponse
|
|
11744
|
+
"""
|
|
11745
|
+
runtime = util_models.RuntimeOptions()
|
|
11746
|
+
return await self.list_general_configs_with_options_async(request, runtime)
|
|
11747
|
+
|
|
11144
11748
|
def list_generated_contents_with_options(
|
|
11145
11749
|
self,
|
|
11146
11750
|
request: ai_miao_bi_20230801_models.ListGeneratedContentsRequest,
|
|
@@ -16373,6 +16977,130 @@ class Client(OpenApiClient):
|
|
|
16373
16977
|
runtime = util_models.RuntimeOptions()
|
|
16374
16978
|
return await self.run_multi_doc_introduction_with_options_async(request, runtime)
|
|
16375
16979
|
|
|
16980
|
+
def run_quick_writing_with_options(
|
|
16981
|
+
self,
|
|
16982
|
+
tmp_req: ai_miao_bi_20230801_models.RunQuickWritingRequest,
|
|
16983
|
+
runtime: util_models.RuntimeOptions,
|
|
16984
|
+
) -> ai_miao_bi_20230801_models.RunQuickWritingResponse:
|
|
16985
|
+
"""
|
|
16986
|
+
@summary 快速写作
|
|
16987
|
+
|
|
16988
|
+
@param tmp_req: RunQuickWritingRequest
|
|
16989
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
16990
|
+
@return: RunQuickWritingResponse
|
|
16991
|
+
"""
|
|
16992
|
+
UtilClient.validate_model(tmp_req)
|
|
16993
|
+
request = ai_miao_bi_20230801_models.RunQuickWritingShrinkRequest()
|
|
16994
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
16995
|
+
if not UtilClient.is_unset(tmp_req.articles):
|
|
16996
|
+
request.articles_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.articles, 'Articles', 'json')
|
|
16997
|
+
if not UtilClient.is_unset(tmp_req.search_sources):
|
|
16998
|
+
request.search_sources_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.search_sources, 'SearchSources', 'json')
|
|
16999
|
+
body = {}
|
|
17000
|
+
if not UtilClient.is_unset(request.articles_shrink):
|
|
17001
|
+
body['Articles'] = request.articles_shrink
|
|
17002
|
+
if not UtilClient.is_unset(request.prompt):
|
|
17003
|
+
body['Prompt'] = request.prompt
|
|
17004
|
+
if not UtilClient.is_unset(request.search_sources_shrink):
|
|
17005
|
+
body['SearchSources'] = request.search_sources_shrink
|
|
17006
|
+
if not UtilClient.is_unset(request.task_id):
|
|
17007
|
+
body['TaskId'] = request.task_id
|
|
17008
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
17009
|
+
body['WorkspaceId'] = request.workspace_id
|
|
17010
|
+
req = open_api_models.OpenApiRequest(
|
|
17011
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
17012
|
+
)
|
|
17013
|
+
params = open_api_models.Params(
|
|
17014
|
+
action='RunQuickWriting',
|
|
17015
|
+
version='2023-08-01',
|
|
17016
|
+
protocol='HTTPS',
|
|
17017
|
+
pathname='/',
|
|
17018
|
+
method='POST',
|
|
17019
|
+
auth_type='AK',
|
|
17020
|
+
style='RPC',
|
|
17021
|
+
req_body_type='formData',
|
|
17022
|
+
body_type='json'
|
|
17023
|
+
)
|
|
17024
|
+
return TeaCore.from_map(
|
|
17025
|
+
ai_miao_bi_20230801_models.RunQuickWritingResponse(),
|
|
17026
|
+
self.call_api(params, req, runtime)
|
|
17027
|
+
)
|
|
17028
|
+
|
|
17029
|
+
async def run_quick_writing_with_options_async(
|
|
17030
|
+
self,
|
|
17031
|
+
tmp_req: ai_miao_bi_20230801_models.RunQuickWritingRequest,
|
|
17032
|
+
runtime: util_models.RuntimeOptions,
|
|
17033
|
+
) -> ai_miao_bi_20230801_models.RunQuickWritingResponse:
|
|
17034
|
+
"""
|
|
17035
|
+
@summary 快速写作
|
|
17036
|
+
|
|
17037
|
+
@param tmp_req: RunQuickWritingRequest
|
|
17038
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
17039
|
+
@return: RunQuickWritingResponse
|
|
17040
|
+
"""
|
|
17041
|
+
UtilClient.validate_model(tmp_req)
|
|
17042
|
+
request = ai_miao_bi_20230801_models.RunQuickWritingShrinkRequest()
|
|
17043
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
17044
|
+
if not UtilClient.is_unset(tmp_req.articles):
|
|
17045
|
+
request.articles_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.articles, 'Articles', 'json')
|
|
17046
|
+
if not UtilClient.is_unset(tmp_req.search_sources):
|
|
17047
|
+
request.search_sources_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.search_sources, 'SearchSources', 'json')
|
|
17048
|
+
body = {}
|
|
17049
|
+
if not UtilClient.is_unset(request.articles_shrink):
|
|
17050
|
+
body['Articles'] = request.articles_shrink
|
|
17051
|
+
if not UtilClient.is_unset(request.prompt):
|
|
17052
|
+
body['Prompt'] = request.prompt
|
|
17053
|
+
if not UtilClient.is_unset(request.search_sources_shrink):
|
|
17054
|
+
body['SearchSources'] = request.search_sources_shrink
|
|
17055
|
+
if not UtilClient.is_unset(request.task_id):
|
|
17056
|
+
body['TaskId'] = request.task_id
|
|
17057
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
17058
|
+
body['WorkspaceId'] = request.workspace_id
|
|
17059
|
+
req = open_api_models.OpenApiRequest(
|
|
17060
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
17061
|
+
)
|
|
17062
|
+
params = open_api_models.Params(
|
|
17063
|
+
action='RunQuickWriting',
|
|
17064
|
+
version='2023-08-01',
|
|
17065
|
+
protocol='HTTPS',
|
|
17066
|
+
pathname='/',
|
|
17067
|
+
method='POST',
|
|
17068
|
+
auth_type='AK',
|
|
17069
|
+
style='RPC',
|
|
17070
|
+
req_body_type='formData',
|
|
17071
|
+
body_type='json'
|
|
17072
|
+
)
|
|
17073
|
+
return TeaCore.from_map(
|
|
17074
|
+
ai_miao_bi_20230801_models.RunQuickWritingResponse(),
|
|
17075
|
+
await self.call_api_async(params, req, runtime)
|
|
17076
|
+
)
|
|
17077
|
+
|
|
17078
|
+
def run_quick_writing(
|
|
17079
|
+
self,
|
|
17080
|
+
request: ai_miao_bi_20230801_models.RunQuickWritingRequest,
|
|
17081
|
+
) -> ai_miao_bi_20230801_models.RunQuickWritingResponse:
|
|
17082
|
+
"""
|
|
17083
|
+
@summary 快速写作
|
|
17084
|
+
|
|
17085
|
+
@param request: RunQuickWritingRequest
|
|
17086
|
+
@return: RunQuickWritingResponse
|
|
17087
|
+
"""
|
|
17088
|
+
runtime = util_models.RuntimeOptions()
|
|
17089
|
+
return self.run_quick_writing_with_options(request, runtime)
|
|
17090
|
+
|
|
17091
|
+
async def run_quick_writing_async(
|
|
17092
|
+
self,
|
|
17093
|
+
request: ai_miao_bi_20230801_models.RunQuickWritingRequest,
|
|
17094
|
+
) -> ai_miao_bi_20230801_models.RunQuickWritingResponse:
|
|
17095
|
+
"""
|
|
17096
|
+
@summary 快速写作
|
|
17097
|
+
|
|
17098
|
+
@param request: RunQuickWritingRequest
|
|
17099
|
+
@return: RunQuickWritingResponse
|
|
17100
|
+
"""
|
|
17101
|
+
runtime = util_models.RuntimeOptions()
|
|
17102
|
+
return await self.run_quick_writing_with_options_async(request, runtime)
|
|
17103
|
+
|
|
16376
17104
|
def run_search_generation_with_options(
|
|
16377
17105
|
self,
|
|
16378
17106
|
tmp_req: ai_miao_bi_20230801_models.RunSearchGenerationRequest,
|
|
@@ -17209,6 +17937,118 @@ class Client(OpenApiClient):
|
|
|
17209
17937
|
runtime = util_models.RuntimeOptions()
|
|
17210
17938
|
return await self.run_title_generation_with_options_async(request, runtime)
|
|
17211
17939
|
|
|
17940
|
+
def run_topic_selection_merge_with_options(
|
|
17941
|
+
self,
|
|
17942
|
+
tmp_req: ai_miao_bi_20230801_models.RunTopicSelectionMergeRequest,
|
|
17943
|
+
runtime: util_models.RuntimeOptions,
|
|
17944
|
+
) -> ai_miao_bi_20230801_models.RunTopicSelectionMergeResponse:
|
|
17945
|
+
"""
|
|
17946
|
+
@summary 妙策选题策划聚合
|
|
17947
|
+
|
|
17948
|
+
@param tmp_req: RunTopicSelectionMergeRequest
|
|
17949
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
17950
|
+
@return: RunTopicSelectionMergeResponse
|
|
17951
|
+
"""
|
|
17952
|
+
UtilClient.validate_model(tmp_req)
|
|
17953
|
+
request = ai_miao_bi_20230801_models.RunTopicSelectionMergeShrinkRequest()
|
|
17954
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
17955
|
+
if not UtilClient.is_unset(tmp_req.topics):
|
|
17956
|
+
request.topics_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.topics, 'Topics', 'json')
|
|
17957
|
+
body = {}
|
|
17958
|
+
if not UtilClient.is_unset(request.prompt):
|
|
17959
|
+
body['Prompt'] = request.prompt
|
|
17960
|
+
if not UtilClient.is_unset(request.topics_shrink):
|
|
17961
|
+
body['Topics'] = request.topics_shrink
|
|
17962
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
17963
|
+
body['WorkspaceId'] = request.workspace_id
|
|
17964
|
+
req = open_api_models.OpenApiRequest(
|
|
17965
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
17966
|
+
)
|
|
17967
|
+
params = open_api_models.Params(
|
|
17968
|
+
action='RunTopicSelectionMerge',
|
|
17969
|
+
version='2023-08-01',
|
|
17970
|
+
protocol='HTTPS',
|
|
17971
|
+
pathname='/',
|
|
17972
|
+
method='POST',
|
|
17973
|
+
auth_type='AK',
|
|
17974
|
+
style='RPC',
|
|
17975
|
+
req_body_type='formData',
|
|
17976
|
+
body_type='json'
|
|
17977
|
+
)
|
|
17978
|
+
return TeaCore.from_map(
|
|
17979
|
+
ai_miao_bi_20230801_models.RunTopicSelectionMergeResponse(),
|
|
17980
|
+
self.call_api(params, req, runtime)
|
|
17981
|
+
)
|
|
17982
|
+
|
|
17983
|
+
async def run_topic_selection_merge_with_options_async(
|
|
17984
|
+
self,
|
|
17985
|
+
tmp_req: ai_miao_bi_20230801_models.RunTopicSelectionMergeRequest,
|
|
17986
|
+
runtime: util_models.RuntimeOptions,
|
|
17987
|
+
) -> ai_miao_bi_20230801_models.RunTopicSelectionMergeResponse:
|
|
17988
|
+
"""
|
|
17989
|
+
@summary 妙策选题策划聚合
|
|
17990
|
+
|
|
17991
|
+
@param tmp_req: RunTopicSelectionMergeRequest
|
|
17992
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
17993
|
+
@return: RunTopicSelectionMergeResponse
|
|
17994
|
+
"""
|
|
17995
|
+
UtilClient.validate_model(tmp_req)
|
|
17996
|
+
request = ai_miao_bi_20230801_models.RunTopicSelectionMergeShrinkRequest()
|
|
17997
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
17998
|
+
if not UtilClient.is_unset(tmp_req.topics):
|
|
17999
|
+
request.topics_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.topics, 'Topics', 'json')
|
|
18000
|
+
body = {}
|
|
18001
|
+
if not UtilClient.is_unset(request.prompt):
|
|
18002
|
+
body['Prompt'] = request.prompt
|
|
18003
|
+
if not UtilClient.is_unset(request.topics_shrink):
|
|
18004
|
+
body['Topics'] = request.topics_shrink
|
|
18005
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
18006
|
+
body['WorkspaceId'] = request.workspace_id
|
|
18007
|
+
req = open_api_models.OpenApiRequest(
|
|
18008
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
18009
|
+
)
|
|
18010
|
+
params = open_api_models.Params(
|
|
18011
|
+
action='RunTopicSelectionMerge',
|
|
18012
|
+
version='2023-08-01',
|
|
18013
|
+
protocol='HTTPS',
|
|
18014
|
+
pathname='/',
|
|
18015
|
+
method='POST',
|
|
18016
|
+
auth_type='AK',
|
|
18017
|
+
style='RPC',
|
|
18018
|
+
req_body_type='formData',
|
|
18019
|
+
body_type='json'
|
|
18020
|
+
)
|
|
18021
|
+
return TeaCore.from_map(
|
|
18022
|
+
ai_miao_bi_20230801_models.RunTopicSelectionMergeResponse(),
|
|
18023
|
+
await self.call_api_async(params, req, runtime)
|
|
18024
|
+
)
|
|
18025
|
+
|
|
18026
|
+
def run_topic_selection_merge(
|
|
18027
|
+
self,
|
|
18028
|
+
request: ai_miao_bi_20230801_models.RunTopicSelectionMergeRequest,
|
|
18029
|
+
) -> ai_miao_bi_20230801_models.RunTopicSelectionMergeResponse:
|
|
18030
|
+
"""
|
|
18031
|
+
@summary 妙策选题策划聚合
|
|
18032
|
+
|
|
18033
|
+
@param request: RunTopicSelectionMergeRequest
|
|
18034
|
+
@return: RunTopicSelectionMergeResponse
|
|
18035
|
+
"""
|
|
18036
|
+
runtime = util_models.RuntimeOptions()
|
|
18037
|
+
return self.run_topic_selection_merge_with_options(request, runtime)
|
|
18038
|
+
|
|
18039
|
+
async def run_topic_selection_merge_async(
|
|
18040
|
+
self,
|
|
18041
|
+
request: ai_miao_bi_20230801_models.RunTopicSelectionMergeRequest,
|
|
18042
|
+
) -> ai_miao_bi_20230801_models.RunTopicSelectionMergeResponse:
|
|
18043
|
+
"""
|
|
18044
|
+
@summary 妙策选题策划聚合
|
|
18045
|
+
|
|
18046
|
+
@param request: RunTopicSelectionMergeRequest
|
|
18047
|
+
@return: RunTopicSelectionMergeResponse
|
|
18048
|
+
"""
|
|
18049
|
+
runtime = util_models.RuntimeOptions()
|
|
18050
|
+
return await self.run_topic_selection_merge_with_options_async(request, runtime)
|
|
18051
|
+
|
|
17212
18052
|
def run_translate_generation_with_options(
|
|
17213
18053
|
self,
|
|
17214
18054
|
tmp_req: ai_miao_bi_20230801_models.RunTranslateGenerationRequest,
|
|
@@ -20829,6 +21669,110 @@ class Client(OpenApiClient):
|
|
|
20829
21669
|
runtime = util_models.RuntimeOptions()
|
|
20830
21670
|
return await self.update_dataset_document_with_options_async(request, runtime)
|
|
20831
21671
|
|
|
21672
|
+
def update_general_config_with_options(
|
|
21673
|
+
self,
|
|
21674
|
+
request: ai_miao_bi_20230801_models.UpdateGeneralConfigRequest,
|
|
21675
|
+
runtime: util_models.RuntimeOptions,
|
|
21676
|
+
) -> ai_miao_bi_20230801_models.UpdateGeneralConfigResponse:
|
|
21677
|
+
"""
|
|
21678
|
+
@summary 通用配置-更新
|
|
21679
|
+
|
|
21680
|
+
@param request: UpdateGeneralConfigRequest
|
|
21681
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
21682
|
+
@return: UpdateGeneralConfigResponse
|
|
21683
|
+
"""
|
|
21684
|
+
UtilClient.validate_model(request)
|
|
21685
|
+
body = {}
|
|
21686
|
+
if not UtilClient.is_unset(request.config_key):
|
|
21687
|
+
body['ConfigKey'] = request.config_key
|
|
21688
|
+
if not UtilClient.is_unset(request.config_value):
|
|
21689
|
+
body['ConfigValue'] = request.config_value
|
|
21690
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
21691
|
+
body['WorkspaceId'] = request.workspace_id
|
|
21692
|
+
req = open_api_models.OpenApiRequest(
|
|
21693
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
21694
|
+
)
|
|
21695
|
+
params = open_api_models.Params(
|
|
21696
|
+
action='UpdateGeneralConfig',
|
|
21697
|
+
version='2023-08-01',
|
|
21698
|
+
protocol='HTTPS',
|
|
21699
|
+
pathname='/',
|
|
21700
|
+
method='POST',
|
|
21701
|
+
auth_type='AK',
|
|
21702
|
+
style='RPC',
|
|
21703
|
+
req_body_type='formData',
|
|
21704
|
+
body_type='json'
|
|
21705
|
+
)
|
|
21706
|
+
return TeaCore.from_map(
|
|
21707
|
+
ai_miao_bi_20230801_models.UpdateGeneralConfigResponse(),
|
|
21708
|
+
self.call_api(params, req, runtime)
|
|
21709
|
+
)
|
|
21710
|
+
|
|
21711
|
+
async def update_general_config_with_options_async(
|
|
21712
|
+
self,
|
|
21713
|
+
request: ai_miao_bi_20230801_models.UpdateGeneralConfigRequest,
|
|
21714
|
+
runtime: util_models.RuntimeOptions,
|
|
21715
|
+
) -> ai_miao_bi_20230801_models.UpdateGeneralConfigResponse:
|
|
21716
|
+
"""
|
|
21717
|
+
@summary 通用配置-更新
|
|
21718
|
+
|
|
21719
|
+
@param request: UpdateGeneralConfigRequest
|
|
21720
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
21721
|
+
@return: UpdateGeneralConfigResponse
|
|
21722
|
+
"""
|
|
21723
|
+
UtilClient.validate_model(request)
|
|
21724
|
+
body = {}
|
|
21725
|
+
if not UtilClient.is_unset(request.config_key):
|
|
21726
|
+
body['ConfigKey'] = request.config_key
|
|
21727
|
+
if not UtilClient.is_unset(request.config_value):
|
|
21728
|
+
body['ConfigValue'] = request.config_value
|
|
21729
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
21730
|
+
body['WorkspaceId'] = request.workspace_id
|
|
21731
|
+
req = open_api_models.OpenApiRequest(
|
|
21732
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
21733
|
+
)
|
|
21734
|
+
params = open_api_models.Params(
|
|
21735
|
+
action='UpdateGeneralConfig',
|
|
21736
|
+
version='2023-08-01',
|
|
21737
|
+
protocol='HTTPS',
|
|
21738
|
+
pathname='/',
|
|
21739
|
+
method='POST',
|
|
21740
|
+
auth_type='AK',
|
|
21741
|
+
style='RPC',
|
|
21742
|
+
req_body_type='formData',
|
|
21743
|
+
body_type='json'
|
|
21744
|
+
)
|
|
21745
|
+
return TeaCore.from_map(
|
|
21746
|
+
ai_miao_bi_20230801_models.UpdateGeneralConfigResponse(),
|
|
21747
|
+
await self.call_api_async(params, req, runtime)
|
|
21748
|
+
)
|
|
21749
|
+
|
|
21750
|
+
def update_general_config(
|
|
21751
|
+
self,
|
|
21752
|
+
request: ai_miao_bi_20230801_models.UpdateGeneralConfigRequest,
|
|
21753
|
+
) -> ai_miao_bi_20230801_models.UpdateGeneralConfigResponse:
|
|
21754
|
+
"""
|
|
21755
|
+
@summary 通用配置-更新
|
|
21756
|
+
|
|
21757
|
+
@param request: UpdateGeneralConfigRequest
|
|
21758
|
+
@return: UpdateGeneralConfigResponse
|
|
21759
|
+
"""
|
|
21760
|
+
runtime = util_models.RuntimeOptions()
|
|
21761
|
+
return self.update_general_config_with_options(request, runtime)
|
|
21762
|
+
|
|
21763
|
+
async def update_general_config_async(
|
|
21764
|
+
self,
|
|
21765
|
+
request: ai_miao_bi_20230801_models.UpdateGeneralConfigRequest,
|
|
21766
|
+
) -> ai_miao_bi_20230801_models.UpdateGeneralConfigResponse:
|
|
21767
|
+
"""
|
|
21768
|
+
@summary 通用配置-更新
|
|
21769
|
+
|
|
21770
|
+
@param request: UpdateGeneralConfigRequest
|
|
21771
|
+
@return: UpdateGeneralConfigResponse
|
|
21772
|
+
"""
|
|
21773
|
+
runtime = util_models.RuntimeOptions()
|
|
21774
|
+
return await self.update_general_config_with_options_async(request, runtime)
|
|
21775
|
+
|
|
20832
21776
|
def update_generated_content_with_options(
|
|
20833
21777
|
self,
|
|
20834
21778
|
tmp_req: ai_miao_bi_20230801_models.UpdateGeneratedContentRequest,
|