alibabacloud-aimiaobi20230801 1.8.3__tar.gz → 1.9.0__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_aimiaobi20230801-1.8.3 → alibabacloud_aimiaobi20230801-1.9.0}/ChangeLog.md +7 -0
- {alibabacloud_aimiaobi20230801-1.8.3 → alibabacloud_aimiaobi20230801-1.9.0}/PKG-INFO +1 -1
- alibabacloud_aimiaobi20230801-1.9.0/alibabacloud_aimiaobi20230801/__init__.py +1 -0
- {alibabacloud_aimiaobi20230801-1.8.3 → alibabacloud_aimiaobi20230801-1.9.0}/alibabacloud_aimiaobi20230801/client.py +364 -0
- {alibabacloud_aimiaobi20230801-1.8.3 → alibabacloud_aimiaobi20230801-1.9.0}/alibabacloud_aimiaobi20230801/models.py +1594 -156
- {alibabacloud_aimiaobi20230801-1.8.3 → alibabacloud_aimiaobi20230801-1.9.0}/alibabacloud_aimiaobi20230801.egg-info/PKG-INFO +1 -1
- {alibabacloud_aimiaobi20230801-1.8.3 → alibabacloud_aimiaobi20230801-1.9.0}/alibabacloud_aimiaobi20230801.egg-info/requires.txt +1 -1
- {alibabacloud_aimiaobi20230801-1.8.3 → alibabacloud_aimiaobi20230801-1.9.0}/setup.py +2 -2
- alibabacloud_aimiaobi20230801-1.8.3/alibabacloud_aimiaobi20230801/__init__.py +0 -1
- {alibabacloud_aimiaobi20230801-1.8.3 → alibabacloud_aimiaobi20230801-1.9.0}/LICENSE +0 -0
- {alibabacloud_aimiaobi20230801-1.8.3 → alibabacloud_aimiaobi20230801-1.9.0}/MANIFEST.in +0 -0
- {alibabacloud_aimiaobi20230801-1.8.3 → alibabacloud_aimiaobi20230801-1.9.0}/README-CN.md +0 -0
- {alibabacloud_aimiaobi20230801-1.8.3 → alibabacloud_aimiaobi20230801-1.9.0}/README.md +0 -0
- {alibabacloud_aimiaobi20230801-1.8.3 → alibabacloud_aimiaobi20230801-1.9.0}/alibabacloud_aimiaobi20230801.egg-info/SOURCES.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.8.3 → alibabacloud_aimiaobi20230801-1.9.0}/alibabacloud_aimiaobi20230801.egg-info/dependency_links.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.8.3 → alibabacloud_aimiaobi20230801-1.9.0}/alibabacloud_aimiaobi20230801.egg-info/top_level.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.8.3 → alibabacloud_aimiaobi20230801-1.9.0}/setup.cfg +0 -0
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
2024-11-01 Version: 1.8.4
|
|
2
|
+
- Generated python 2023-08-01 for AiMiaoBi.
|
|
3
|
+
|
|
4
|
+
2024-10-28 Version: 1.8.3
|
|
5
|
+
- Update API GetTopicSelectionPerspectiveAnalysisTask: update response param.
|
|
6
|
+
|
|
7
|
+
|
|
1
8
|
2024-10-12 Version: 1.8.2
|
|
2
9
|
- Update API SubmitTopicSelectionPerspectiveAnalysisTask: update param Documents.
|
|
3
10
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.9.0'
|
|
@@ -2261,6 +2261,106 @@ class Client(OpenApiClient):
|
|
|
2261
2261
|
runtime = util_models.RuntimeOptions()
|
|
2262
2262
|
return await self.generate_view_point_with_options_async(request, runtime)
|
|
2263
2263
|
|
|
2264
|
+
def get_custom_hot_topic_broadcast_job_with_options(
|
|
2265
|
+
self,
|
|
2266
|
+
request: ai_miao_bi_20230801_models.GetCustomHotTopicBroadcastJobRequest,
|
|
2267
|
+
runtime: util_models.RuntimeOptions,
|
|
2268
|
+
) -> ai_miao_bi_20230801_models.GetCustomHotTopicBroadcastJobResponse:
|
|
2269
|
+
"""
|
|
2270
|
+
@summary 获取自定义播报单任务结果
|
|
2271
|
+
|
|
2272
|
+
@param request: GetCustomHotTopicBroadcastJobRequest
|
|
2273
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2274
|
+
@return: GetCustomHotTopicBroadcastJobResponse
|
|
2275
|
+
"""
|
|
2276
|
+
UtilClient.validate_model(request)
|
|
2277
|
+
body = {}
|
|
2278
|
+
if not UtilClient.is_unset(request.task_id):
|
|
2279
|
+
body['TaskId'] = request.task_id
|
|
2280
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
2281
|
+
body['WorkspaceId'] = request.workspace_id
|
|
2282
|
+
req = open_api_models.OpenApiRequest(
|
|
2283
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
2284
|
+
)
|
|
2285
|
+
params = open_api_models.Params(
|
|
2286
|
+
action='GetCustomHotTopicBroadcastJob',
|
|
2287
|
+
version='2023-08-01',
|
|
2288
|
+
protocol='HTTPS',
|
|
2289
|
+
pathname='/',
|
|
2290
|
+
method='POST',
|
|
2291
|
+
auth_type='AK',
|
|
2292
|
+
style='RPC',
|
|
2293
|
+
req_body_type='formData',
|
|
2294
|
+
body_type='json'
|
|
2295
|
+
)
|
|
2296
|
+
return TeaCore.from_map(
|
|
2297
|
+
ai_miao_bi_20230801_models.GetCustomHotTopicBroadcastJobResponse(),
|
|
2298
|
+
self.call_api(params, req, runtime)
|
|
2299
|
+
)
|
|
2300
|
+
|
|
2301
|
+
async def get_custom_hot_topic_broadcast_job_with_options_async(
|
|
2302
|
+
self,
|
|
2303
|
+
request: ai_miao_bi_20230801_models.GetCustomHotTopicBroadcastJobRequest,
|
|
2304
|
+
runtime: util_models.RuntimeOptions,
|
|
2305
|
+
) -> ai_miao_bi_20230801_models.GetCustomHotTopicBroadcastJobResponse:
|
|
2306
|
+
"""
|
|
2307
|
+
@summary 获取自定义播报单任务结果
|
|
2308
|
+
|
|
2309
|
+
@param request: GetCustomHotTopicBroadcastJobRequest
|
|
2310
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2311
|
+
@return: GetCustomHotTopicBroadcastJobResponse
|
|
2312
|
+
"""
|
|
2313
|
+
UtilClient.validate_model(request)
|
|
2314
|
+
body = {}
|
|
2315
|
+
if not UtilClient.is_unset(request.task_id):
|
|
2316
|
+
body['TaskId'] = request.task_id
|
|
2317
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
2318
|
+
body['WorkspaceId'] = request.workspace_id
|
|
2319
|
+
req = open_api_models.OpenApiRequest(
|
|
2320
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
2321
|
+
)
|
|
2322
|
+
params = open_api_models.Params(
|
|
2323
|
+
action='GetCustomHotTopicBroadcastJob',
|
|
2324
|
+
version='2023-08-01',
|
|
2325
|
+
protocol='HTTPS',
|
|
2326
|
+
pathname='/',
|
|
2327
|
+
method='POST',
|
|
2328
|
+
auth_type='AK',
|
|
2329
|
+
style='RPC',
|
|
2330
|
+
req_body_type='formData',
|
|
2331
|
+
body_type='json'
|
|
2332
|
+
)
|
|
2333
|
+
return TeaCore.from_map(
|
|
2334
|
+
ai_miao_bi_20230801_models.GetCustomHotTopicBroadcastJobResponse(),
|
|
2335
|
+
await self.call_api_async(params, req, runtime)
|
|
2336
|
+
)
|
|
2337
|
+
|
|
2338
|
+
def get_custom_hot_topic_broadcast_job(
|
|
2339
|
+
self,
|
|
2340
|
+
request: ai_miao_bi_20230801_models.GetCustomHotTopicBroadcastJobRequest,
|
|
2341
|
+
) -> ai_miao_bi_20230801_models.GetCustomHotTopicBroadcastJobResponse:
|
|
2342
|
+
"""
|
|
2343
|
+
@summary 获取自定义播报单任务结果
|
|
2344
|
+
|
|
2345
|
+
@param request: GetCustomHotTopicBroadcastJobRequest
|
|
2346
|
+
@return: GetCustomHotTopicBroadcastJobResponse
|
|
2347
|
+
"""
|
|
2348
|
+
runtime = util_models.RuntimeOptions()
|
|
2349
|
+
return self.get_custom_hot_topic_broadcast_job_with_options(request, runtime)
|
|
2350
|
+
|
|
2351
|
+
async def get_custom_hot_topic_broadcast_job_async(
|
|
2352
|
+
self,
|
|
2353
|
+
request: ai_miao_bi_20230801_models.GetCustomHotTopicBroadcastJobRequest,
|
|
2354
|
+
) -> ai_miao_bi_20230801_models.GetCustomHotTopicBroadcastJobResponse:
|
|
2355
|
+
"""
|
|
2356
|
+
@summary 获取自定义播报单任务结果
|
|
2357
|
+
|
|
2358
|
+
@param request: GetCustomHotTopicBroadcastJobRequest
|
|
2359
|
+
@return: GetCustomHotTopicBroadcastJobResponse
|
|
2360
|
+
"""
|
|
2361
|
+
runtime = util_models.RuntimeOptions()
|
|
2362
|
+
return await self.get_custom_hot_topic_broadcast_job_with_options_async(request, runtime)
|
|
2363
|
+
|
|
2264
2364
|
def get_custom_text_with_options(
|
|
2265
2365
|
self,
|
|
2266
2366
|
request: ai_miao_bi_20230801_models.GetCustomTextRequest,
|
|
@@ -2785,6 +2885,150 @@ class Client(OpenApiClient):
|
|
|
2785
2885
|
runtime = util_models.RuntimeOptions()
|
|
2786
2886
|
return await self.get_generated_content_with_options_async(request, runtime)
|
|
2787
2887
|
|
|
2888
|
+
def get_hot_topic_broadcast_with_options(
|
|
2889
|
+
self,
|
|
2890
|
+
tmp_req: ai_miao_bi_20230801_models.GetHotTopicBroadcastRequest,
|
|
2891
|
+
runtime: util_models.RuntimeOptions,
|
|
2892
|
+
) -> ai_miao_bi_20230801_models.GetHotTopicBroadcastResponse:
|
|
2893
|
+
"""
|
|
2894
|
+
@summary 查询新闻播报单
|
|
2895
|
+
|
|
2896
|
+
@param tmp_req: GetHotTopicBroadcastRequest
|
|
2897
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2898
|
+
@return: GetHotTopicBroadcastResponse
|
|
2899
|
+
"""
|
|
2900
|
+
UtilClient.validate_model(tmp_req)
|
|
2901
|
+
request = ai_miao_bi_20230801_models.GetHotTopicBroadcastShrinkRequest()
|
|
2902
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
2903
|
+
if not UtilClient.is_unset(tmp_req.step_for_custom_summary_style_config):
|
|
2904
|
+
request.step_for_custom_summary_style_config_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.step_for_custom_summary_style_config, 'StepForCustomSummaryStyleConfig', 'json')
|
|
2905
|
+
if not UtilClient.is_unset(tmp_req.step_for_news_broadcast_content_config):
|
|
2906
|
+
request.step_for_news_broadcast_content_config_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.step_for_news_broadcast_content_config, 'StepForNewsBroadcastContentConfig', 'json')
|
|
2907
|
+
if not UtilClient.is_unset(tmp_req.topics):
|
|
2908
|
+
request.topics_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.topics, 'Topics', 'json')
|
|
2909
|
+
body = {}
|
|
2910
|
+
if not UtilClient.is_unset(request.calc_total_token):
|
|
2911
|
+
body['CalcTotalToken'] = request.calc_total_token
|
|
2912
|
+
if not UtilClient.is_unset(request.category):
|
|
2913
|
+
body['Category'] = request.category
|
|
2914
|
+
if not UtilClient.is_unset(request.current):
|
|
2915
|
+
body['Current'] = request.current
|
|
2916
|
+
if not UtilClient.is_unset(request.hot_topic_version):
|
|
2917
|
+
body['HotTopicVersion'] = request.hot_topic_version
|
|
2918
|
+
if not UtilClient.is_unset(request.size):
|
|
2919
|
+
body['Size'] = request.size
|
|
2920
|
+
if not UtilClient.is_unset(request.step_for_custom_summary_style_config_shrink):
|
|
2921
|
+
body['StepForCustomSummaryStyleConfig'] = request.step_for_custom_summary_style_config_shrink
|
|
2922
|
+
if not UtilClient.is_unset(request.step_for_news_broadcast_content_config_shrink):
|
|
2923
|
+
body['StepForNewsBroadcastContentConfig'] = request.step_for_news_broadcast_content_config_shrink
|
|
2924
|
+
if not UtilClient.is_unset(request.topics_shrink):
|
|
2925
|
+
body['Topics'] = request.topics_shrink
|
|
2926
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
2927
|
+
body['WorkspaceId'] = request.workspace_id
|
|
2928
|
+
req = open_api_models.OpenApiRequest(
|
|
2929
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
2930
|
+
)
|
|
2931
|
+
params = open_api_models.Params(
|
|
2932
|
+
action='GetHotTopicBroadcast',
|
|
2933
|
+
version='2023-08-01',
|
|
2934
|
+
protocol='HTTPS',
|
|
2935
|
+
pathname='/',
|
|
2936
|
+
method='POST',
|
|
2937
|
+
auth_type='AK',
|
|
2938
|
+
style='RPC',
|
|
2939
|
+
req_body_type='formData',
|
|
2940
|
+
body_type='json'
|
|
2941
|
+
)
|
|
2942
|
+
return TeaCore.from_map(
|
|
2943
|
+
ai_miao_bi_20230801_models.GetHotTopicBroadcastResponse(),
|
|
2944
|
+
self.call_api(params, req, runtime)
|
|
2945
|
+
)
|
|
2946
|
+
|
|
2947
|
+
async def get_hot_topic_broadcast_with_options_async(
|
|
2948
|
+
self,
|
|
2949
|
+
tmp_req: ai_miao_bi_20230801_models.GetHotTopicBroadcastRequest,
|
|
2950
|
+
runtime: util_models.RuntimeOptions,
|
|
2951
|
+
) -> ai_miao_bi_20230801_models.GetHotTopicBroadcastResponse:
|
|
2952
|
+
"""
|
|
2953
|
+
@summary 查询新闻播报单
|
|
2954
|
+
|
|
2955
|
+
@param tmp_req: GetHotTopicBroadcastRequest
|
|
2956
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2957
|
+
@return: GetHotTopicBroadcastResponse
|
|
2958
|
+
"""
|
|
2959
|
+
UtilClient.validate_model(tmp_req)
|
|
2960
|
+
request = ai_miao_bi_20230801_models.GetHotTopicBroadcastShrinkRequest()
|
|
2961
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
2962
|
+
if not UtilClient.is_unset(tmp_req.step_for_custom_summary_style_config):
|
|
2963
|
+
request.step_for_custom_summary_style_config_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.step_for_custom_summary_style_config, 'StepForCustomSummaryStyleConfig', 'json')
|
|
2964
|
+
if not UtilClient.is_unset(tmp_req.step_for_news_broadcast_content_config):
|
|
2965
|
+
request.step_for_news_broadcast_content_config_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.step_for_news_broadcast_content_config, 'StepForNewsBroadcastContentConfig', 'json')
|
|
2966
|
+
if not UtilClient.is_unset(tmp_req.topics):
|
|
2967
|
+
request.topics_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.topics, 'Topics', 'json')
|
|
2968
|
+
body = {}
|
|
2969
|
+
if not UtilClient.is_unset(request.calc_total_token):
|
|
2970
|
+
body['CalcTotalToken'] = request.calc_total_token
|
|
2971
|
+
if not UtilClient.is_unset(request.category):
|
|
2972
|
+
body['Category'] = request.category
|
|
2973
|
+
if not UtilClient.is_unset(request.current):
|
|
2974
|
+
body['Current'] = request.current
|
|
2975
|
+
if not UtilClient.is_unset(request.hot_topic_version):
|
|
2976
|
+
body['HotTopicVersion'] = request.hot_topic_version
|
|
2977
|
+
if not UtilClient.is_unset(request.size):
|
|
2978
|
+
body['Size'] = request.size
|
|
2979
|
+
if not UtilClient.is_unset(request.step_for_custom_summary_style_config_shrink):
|
|
2980
|
+
body['StepForCustomSummaryStyleConfig'] = request.step_for_custom_summary_style_config_shrink
|
|
2981
|
+
if not UtilClient.is_unset(request.step_for_news_broadcast_content_config_shrink):
|
|
2982
|
+
body['StepForNewsBroadcastContentConfig'] = request.step_for_news_broadcast_content_config_shrink
|
|
2983
|
+
if not UtilClient.is_unset(request.topics_shrink):
|
|
2984
|
+
body['Topics'] = request.topics_shrink
|
|
2985
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
2986
|
+
body['WorkspaceId'] = request.workspace_id
|
|
2987
|
+
req = open_api_models.OpenApiRequest(
|
|
2988
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
2989
|
+
)
|
|
2990
|
+
params = open_api_models.Params(
|
|
2991
|
+
action='GetHotTopicBroadcast',
|
|
2992
|
+
version='2023-08-01',
|
|
2993
|
+
protocol='HTTPS',
|
|
2994
|
+
pathname='/',
|
|
2995
|
+
method='POST',
|
|
2996
|
+
auth_type='AK',
|
|
2997
|
+
style='RPC',
|
|
2998
|
+
req_body_type='formData',
|
|
2999
|
+
body_type='json'
|
|
3000
|
+
)
|
|
3001
|
+
return TeaCore.from_map(
|
|
3002
|
+
ai_miao_bi_20230801_models.GetHotTopicBroadcastResponse(),
|
|
3003
|
+
await self.call_api_async(params, req, runtime)
|
|
3004
|
+
)
|
|
3005
|
+
|
|
3006
|
+
def get_hot_topic_broadcast(
|
|
3007
|
+
self,
|
|
3008
|
+
request: ai_miao_bi_20230801_models.GetHotTopicBroadcastRequest,
|
|
3009
|
+
) -> ai_miao_bi_20230801_models.GetHotTopicBroadcastResponse:
|
|
3010
|
+
"""
|
|
3011
|
+
@summary 查询新闻播报单
|
|
3012
|
+
|
|
3013
|
+
@param request: GetHotTopicBroadcastRequest
|
|
3014
|
+
@return: GetHotTopicBroadcastResponse
|
|
3015
|
+
"""
|
|
3016
|
+
runtime = util_models.RuntimeOptions()
|
|
3017
|
+
return self.get_hot_topic_broadcast_with_options(request, runtime)
|
|
3018
|
+
|
|
3019
|
+
async def get_hot_topic_broadcast_async(
|
|
3020
|
+
self,
|
|
3021
|
+
request: ai_miao_bi_20230801_models.GetHotTopicBroadcastRequest,
|
|
3022
|
+
) -> ai_miao_bi_20230801_models.GetHotTopicBroadcastResponse:
|
|
3023
|
+
"""
|
|
3024
|
+
@summary 查询新闻播报单
|
|
3025
|
+
|
|
3026
|
+
@param request: GetHotTopicBroadcastRequest
|
|
3027
|
+
@return: GetHotTopicBroadcastResponse
|
|
3028
|
+
"""
|
|
3029
|
+
runtime = util_models.RuntimeOptions()
|
|
3030
|
+
return await self.get_hot_topic_broadcast_with_options_async(request, runtime)
|
|
3031
|
+
|
|
2788
3032
|
def get_intervene_global_reply_with_options(
|
|
2789
3033
|
self,
|
|
2790
3034
|
request: ai_miao_bi_20230801_models.GetInterveneGlobalReplyRequest,
|
|
@@ -9057,6 +9301,126 @@ class Client(OpenApiClient):
|
|
|
9057
9301
|
runtime = util_models.RuntimeOptions()
|
|
9058
9302
|
return await self.submit_async_task_with_options_async(request, runtime)
|
|
9059
9303
|
|
|
9304
|
+
def submit_custom_hot_topic_broadcast_job_with_options(
|
|
9305
|
+
self,
|
|
9306
|
+
tmp_req: ai_miao_bi_20230801_models.SubmitCustomHotTopicBroadcastJobRequest,
|
|
9307
|
+
runtime: util_models.RuntimeOptions,
|
|
9308
|
+
) -> ai_miao_bi_20230801_models.SubmitCustomHotTopicBroadcastJobResponse:
|
|
9309
|
+
"""
|
|
9310
|
+
@summary 提交自定义播报单任务
|
|
9311
|
+
|
|
9312
|
+
@param tmp_req: SubmitCustomHotTopicBroadcastJobRequest
|
|
9313
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
9314
|
+
@return: SubmitCustomHotTopicBroadcastJobResponse
|
|
9315
|
+
"""
|
|
9316
|
+
UtilClient.validate_model(tmp_req)
|
|
9317
|
+
request = ai_miao_bi_20230801_models.SubmitCustomHotTopicBroadcastJobShrinkRequest()
|
|
9318
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
9319
|
+
if not UtilClient.is_unset(tmp_req.hot_topic_broadcast_config):
|
|
9320
|
+
request.hot_topic_broadcast_config_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.hot_topic_broadcast_config, 'HotTopicBroadcastConfig', 'json')
|
|
9321
|
+
if not UtilClient.is_unset(tmp_req.topics):
|
|
9322
|
+
request.topics_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.topics, 'Topics', 'json')
|
|
9323
|
+
body = {}
|
|
9324
|
+
if not UtilClient.is_unset(request.hot_topic_broadcast_config_shrink):
|
|
9325
|
+
body['HotTopicBroadcastConfig'] = request.hot_topic_broadcast_config_shrink
|
|
9326
|
+
if not UtilClient.is_unset(request.hot_topic_version):
|
|
9327
|
+
body['HotTopicVersion'] = request.hot_topic_version
|
|
9328
|
+
if not UtilClient.is_unset(request.topics_shrink):
|
|
9329
|
+
body['Topics'] = request.topics_shrink
|
|
9330
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
9331
|
+
body['WorkspaceId'] = request.workspace_id
|
|
9332
|
+
req = open_api_models.OpenApiRequest(
|
|
9333
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
9334
|
+
)
|
|
9335
|
+
params = open_api_models.Params(
|
|
9336
|
+
action='SubmitCustomHotTopicBroadcastJob',
|
|
9337
|
+
version='2023-08-01',
|
|
9338
|
+
protocol='HTTPS',
|
|
9339
|
+
pathname='/',
|
|
9340
|
+
method='POST',
|
|
9341
|
+
auth_type='AK',
|
|
9342
|
+
style='RPC',
|
|
9343
|
+
req_body_type='formData',
|
|
9344
|
+
body_type='json'
|
|
9345
|
+
)
|
|
9346
|
+
return TeaCore.from_map(
|
|
9347
|
+
ai_miao_bi_20230801_models.SubmitCustomHotTopicBroadcastJobResponse(),
|
|
9348
|
+
self.call_api(params, req, runtime)
|
|
9349
|
+
)
|
|
9350
|
+
|
|
9351
|
+
async def submit_custom_hot_topic_broadcast_job_with_options_async(
|
|
9352
|
+
self,
|
|
9353
|
+
tmp_req: ai_miao_bi_20230801_models.SubmitCustomHotTopicBroadcastJobRequest,
|
|
9354
|
+
runtime: util_models.RuntimeOptions,
|
|
9355
|
+
) -> ai_miao_bi_20230801_models.SubmitCustomHotTopicBroadcastJobResponse:
|
|
9356
|
+
"""
|
|
9357
|
+
@summary 提交自定义播报单任务
|
|
9358
|
+
|
|
9359
|
+
@param tmp_req: SubmitCustomHotTopicBroadcastJobRequest
|
|
9360
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
9361
|
+
@return: SubmitCustomHotTopicBroadcastJobResponse
|
|
9362
|
+
"""
|
|
9363
|
+
UtilClient.validate_model(tmp_req)
|
|
9364
|
+
request = ai_miao_bi_20230801_models.SubmitCustomHotTopicBroadcastJobShrinkRequest()
|
|
9365
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
9366
|
+
if not UtilClient.is_unset(tmp_req.hot_topic_broadcast_config):
|
|
9367
|
+
request.hot_topic_broadcast_config_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.hot_topic_broadcast_config, 'HotTopicBroadcastConfig', 'json')
|
|
9368
|
+
if not UtilClient.is_unset(tmp_req.topics):
|
|
9369
|
+
request.topics_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.topics, 'Topics', 'json')
|
|
9370
|
+
body = {}
|
|
9371
|
+
if not UtilClient.is_unset(request.hot_topic_broadcast_config_shrink):
|
|
9372
|
+
body['HotTopicBroadcastConfig'] = request.hot_topic_broadcast_config_shrink
|
|
9373
|
+
if not UtilClient.is_unset(request.hot_topic_version):
|
|
9374
|
+
body['HotTopicVersion'] = request.hot_topic_version
|
|
9375
|
+
if not UtilClient.is_unset(request.topics_shrink):
|
|
9376
|
+
body['Topics'] = request.topics_shrink
|
|
9377
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
9378
|
+
body['WorkspaceId'] = request.workspace_id
|
|
9379
|
+
req = open_api_models.OpenApiRequest(
|
|
9380
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
9381
|
+
)
|
|
9382
|
+
params = open_api_models.Params(
|
|
9383
|
+
action='SubmitCustomHotTopicBroadcastJob',
|
|
9384
|
+
version='2023-08-01',
|
|
9385
|
+
protocol='HTTPS',
|
|
9386
|
+
pathname='/',
|
|
9387
|
+
method='POST',
|
|
9388
|
+
auth_type='AK',
|
|
9389
|
+
style='RPC',
|
|
9390
|
+
req_body_type='formData',
|
|
9391
|
+
body_type='json'
|
|
9392
|
+
)
|
|
9393
|
+
return TeaCore.from_map(
|
|
9394
|
+
ai_miao_bi_20230801_models.SubmitCustomHotTopicBroadcastJobResponse(),
|
|
9395
|
+
await self.call_api_async(params, req, runtime)
|
|
9396
|
+
)
|
|
9397
|
+
|
|
9398
|
+
def submit_custom_hot_topic_broadcast_job(
|
|
9399
|
+
self,
|
|
9400
|
+
request: ai_miao_bi_20230801_models.SubmitCustomHotTopicBroadcastJobRequest,
|
|
9401
|
+
) -> ai_miao_bi_20230801_models.SubmitCustomHotTopicBroadcastJobResponse:
|
|
9402
|
+
"""
|
|
9403
|
+
@summary 提交自定义播报单任务
|
|
9404
|
+
|
|
9405
|
+
@param request: SubmitCustomHotTopicBroadcastJobRequest
|
|
9406
|
+
@return: SubmitCustomHotTopicBroadcastJobResponse
|
|
9407
|
+
"""
|
|
9408
|
+
runtime = util_models.RuntimeOptions()
|
|
9409
|
+
return self.submit_custom_hot_topic_broadcast_job_with_options(request, runtime)
|
|
9410
|
+
|
|
9411
|
+
async def submit_custom_hot_topic_broadcast_job_async(
|
|
9412
|
+
self,
|
|
9413
|
+
request: ai_miao_bi_20230801_models.SubmitCustomHotTopicBroadcastJobRequest,
|
|
9414
|
+
) -> ai_miao_bi_20230801_models.SubmitCustomHotTopicBroadcastJobResponse:
|
|
9415
|
+
"""
|
|
9416
|
+
@summary 提交自定义播报单任务
|
|
9417
|
+
|
|
9418
|
+
@param request: SubmitCustomHotTopicBroadcastJobRequest
|
|
9419
|
+
@return: SubmitCustomHotTopicBroadcastJobResponse
|
|
9420
|
+
"""
|
|
9421
|
+
runtime = util_models.RuntimeOptions()
|
|
9422
|
+
return await self.submit_custom_hot_topic_broadcast_job_with_options_async(request, runtime)
|
|
9423
|
+
|
|
9060
9424
|
def submit_custom_topic_selection_perspective_analysis_task_with_options(
|
|
9061
9425
|
self,
|
|
9062
9426
|
tmp_req: ai_miao_bi_20230801_models.SubmitCustomTopicSelectionPerspectiveAnalysisTaskRequest,
|