alibabacloud-aimiaobi20230801 1.26.5__tar.gz → 1.27.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.26.5 → alibabacloud_aimiaobi20230801-1.27.0}/ChangeLog.md +10 -0
- {alibabacloud_aimiaobi20230801-1.26.5 → alibabacloud_aimiaobi20230801-1.27.0}/PKG-INFO +1 -1
- alibabacloud_aimiaobi20230801-1.27.0/alibabacloud_aimiaobi20230801/__init__.py +1 -0
- {alibabacloud_aimiaobi20230801-1.26.5 → alibabacloud_aimiaobi20230801-1.27.0}/alibabacloud_aimiaobi20230801/client.py +320 -0
- {alibabacloud_aimiaobi20230801-1.26.5 → alibabacloud_aimiaobi20230801-1.27.0}/alibabacloud_aimiaobi20230801/models.py +796 -58
- {alibabacloud_aimiaobi20230801-1.26.5 → alibabacloud_aimiaobi20230801-1.27.0}/alibabacloud_aimiaobi20230801.egg-info/PKG-INFO +1 -1
- {alibabacloud_aimiaobi20230801-1.26.5 → alibabacloud_aimiaobi20230801-1.27.0}/setup.py +1 -1
- alibabacloud_aimiaobi20230801-1.26.5/alibabacloud_aimiaobi20230801/__init__.py +0 -1
- {alibabacloud_aimiaobi20230801-1.26.5 → alibabacloud_aimiaobi20230801-1.27.0}/LICENSE +0 -0
- {alibabacloud_aimiaobi20230801-1.26.5 → alibabacloud_aimiaobi20230801-1.27.0}/MANIFEST.in +0 -0
- {alibabacloud_aimiaobi20230801-1.26.5 → alibabacloud_aimiaobi20230801-1.27.0}/README-CN.md +0 -0
- {alibabacloud_aimiaobi20230801-1.26.5 → alibabacloud_aimiaobi20230801-1.27.0}/README.md +0 -0
- {alibabacloud_aimiaobi20230801-1.26.5 → alibabacloud_aimiaobi20230801-1.27.0}/alibabacloud_aimiaobi20230801.egg-info/SOURCES.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.26.5 → alibabacloud_aimiaobi20230801-1.27.0}/alibabacloud_aimiaobi20230801.egg-info/dependency_links.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.26.5 → alibabacloud_aimiaobi20230801-1.27.0}/alibabacloud_aimiaobi20230801.egg-info/requires.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.26.5 → alibabacloud_aimiaobi20230801-1.27.0}/alibabacloud_aimiaobi20230801.egg-info/top_level.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.26.5 → alibabacloud_aimiaobi20230801-1.27.0}/setup.cfg +0 -0
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
2025-06-09 Version: 1.26.5
|
|
2
|
+
- Update API GetHotTopicBroadcast: add response parameters Body.Data.Data.$.PubTime.
|
|
3
|
+
- Update API GetHotTopicBroadcast: add response parameters Body.Data.Data.$.Url.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
2025-06-09 Version: 1.26.5
|
|
7
|
+
- Update API GetHotTopicBroadcast: add response parameters Body.Data.Data.$.PubTime.
|
|
8
|
+
- Update API GetHotTopicBroadcast: add response parameters Body.Data.Data.$.Url.
|
|
9
|
+
|
|
10
|
+
|
|
1
11
|
2025-06-05 Version: 1.26.4
|
|
2
12
|
- Update API GetProperties: add response parameters Body.Data.MiaosouConfig.
|
|
3
13
|
- Update API RunSearchGeneration: add request parameters ChatConfig.EnableThinking.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.27.0'
|
|
@@ -2113,6 +2113,106 @@ class Client(OpenApiClient):
|
|
|
2113
2113
|
runtime = util_models.RuntimeOptions()
|
|
2114
2114
|
return await self.export_analysis_tag_detail_by_task_id_with_options_async(request, runtime)
|
|
2115
2115
|
|
|
2116
|
+
def export_custom_source_analysis_task_with_options(
|
|
2117
|
+
self,
|
|
2118
|
+
request: ai_miao_bi_20230801_models.ExportCustomSourceAnalysisTaskRequest,
|
|
2119
|
+
runtime: util_models.RuntimeOptions,
|
|
2120
|
+
) -> ai_miao_bi_20230801_models.ExportCustomSourceAnalysisTaskResponse:
|
|
2121
|
+
"""
|
|
2122
|
+
@summary 导出-自定义数据源-选题视角分析任务结果
|
|
2123
|
+
|
|
2124
|
+
@param request: ExportCustomSourceAnalysisTaskRequest
|
|
2125
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2126
|
+
@return: ExportCustomSourceAnalysisTaskResponse
|
|
2127
|
+
"""
|
|
2128
|
+
UtilClient.validate_model(request)
|
|
2129
|
+
body = {}
|
|
2130
|
+
if not UtilClient.is_unset(request.task_id):
|
|
2131
|
+
body['TaskId'] = request.task_id
|
|
2132
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
2133
|
+
body['WorkspaceId'] = request.workspace_id
|
|
2134
|
+
req = open_api_models.OpenApiRequest(
|
|
2135
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
2136
|
+
)
|
|
2137
|
+
params = open_api_models.Params(
|
|
2138
|
+
action='ExportCustomSourceAnalysisTask',
|
|
2139
|
+
version='2023-08-01',
|
|
2140
|
+
protocol='HTTPS',
|
|
2141
|
+
pathname='/',
|
|
2142
|
+
method='POST',
|
|
2143
|
+
auth_type='AK',
|
|
2144
|
+
style='RPC',
|
|
2145
|
+
req_body_type='formData',
|
|
2146
|
+
body_type='json'
|
|
2147
|
+
)
|
|
2148
|
+
return TeaCore.from_map(
|
|
2149
|
+
ai_miao_bi_20230801_models.ExportCustomSourceAnalysisTaskResponse(),
|
|
2150
|
+
self.call_api(params, req, runtime)
|
|
2151
|
+
)
|
|
2152
|
+
|
|
2153
|
+
async def export_custom_source_analysis_task_with_options_async(
|
|
2154
|
+
self,
|
|
2155
|
+
request: ai_miao_bi_20230801_models.ExportCustomSourceAnalysisTaskRequest,
|
|
2156
|
+
runtime: util_models.RuntimeOptions,
|
|
2157
|
+
) -> ai_miao_bi_20230801_models.ExportCustomSourceAnalysisTaskResponse:
|
|
2158
|
+
"""
|
|
2159
|
+
@summary 导出-自定义数据源-选题视角分析任务结果
|
|
2160
|
+
|
|
2161
|
+
@param request: ExportCustomSourceAnalysisTaskRequest
|
|
2162
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2163
|
+
@return: ExportCustomSourceAnalysisTaskResponse
|
|
2164
|
+
"""
|
|
2165
|
+
UtilClient.validate_model(request)
|
|
2166
|
+
body = {}
|
|
2167
|
+
if not UtilClient.is_unset(request.task_id):
|
|
2168
|
+
body['TaskId'] = request.task_id
|
|
2169
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
2170
|
+
body['WorkspaceId'] = request.workspace_id
|
|
2171
|
+
req = open_api_models.OpenApiRequest(
|
|
2172
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
2173
|
+
)
|
|
2174
|
+
params = open_api_models.Params(
|
|
2175
|
+
action='ExportCustomSourceAnalysisTask',
|
|
2176
|
+
version='2023-08-01',
|
|
2177
|
+
protocol='HTTPS',
|
|
2178
|
+
pathname='/',
|
|
2179
|
+
method='POST',
|
|
2180
|
+
auth_type='AK',
|
|
2181
|
+
style='RPC',
|
|
2182
|
+
req_body_type='formData',
|
|
2183
|
+
body_type='json'
|
|
2184
|
+
)
|
|
2185
|
+
return TeaCore.from_map(
|
|
2186
|
+
ai_miao_bi_20230801_models.ExportCustomSourceAnalysisTaskResponse(),
|
|
2187
|
+
await self.call_api_async(params, req, runtime)
|
|
2188
|
+
)
|
|
2189
|
+
|
|
2190
|
+
def export_custom_source_analysis_task(
|
|
2191
|
+
self,
|
|
2192
|
+
request: ai_miao_bi_20230801_models.ExportCustomSourceAnalysisTaskRequest,
|
|
2193
|
+
) -> ai_miao_bi_20230801_models.ExportCustomSourceAnalysisTaskResponse:
|
|
2194
|
+
"""
|
|
2195
|
+
@summary 导出-自定义数据源-选题视角分析任务结果
|
|
2196
|
+
|
|
2197
|
+
@param request: ExportCustomSourceAnalysisTaskRequest
|
|
2198
|
+
@return: ExportCustomSourceAnalysisTaskResponse
|
|
2199
|
+
"""
|
|
2200
|
+
runtime = util_models.RuntimeOptions()
|
|
2201
|
+
return self.export_custom_source_analysis_task_with_options(request, runtime)
|
|
2202
|
+
|
|
2203
|
+
async def export_custom_source_analysis_task_async(
|
|
2204
|
+
self,
|
|
2205
|
+
request: ai_miao_bi_20230801_models.ExportCustomSourceAnalysisTaskRequest,
|
|
2206
|
+
) -> ai_miao_bi_20230801_models.ExportCustomSourceAnalysisTaskResponse:
|
|
2207
|
+
"""
|
|
2208
|
+
@summary 导出-自定义数据源-选题视角分析任务结果
|
|
2209
|
+
|
|
2210
|
+
@param request: ExportCustomSourceAnalysisTaskRequest
|
|
2211
|
+
@return: ExportCustomSourceAnalysisTaskResponse
|
|
2212
|
+
"""
|
|
2213
|
+
runtime = util_models.RuntimeOptions()
|
|
2214
|
+
return await self.export_custom_source_analysis_task_with_options_async(request, runtime)
|
|
2215
|
+
|
|
2116
2216
|
def export_generated_content_with_options(
|
|
2117
2217
|
self,
|
|
2118
2218
|
request: ai_miao_bi_20230801_models.ExportGeneratedContentRequest,
|
|
@@ -3353,6 +3453,106 @@ class Client(OpenApiClient):
|
|
|
3353
3453
|
runtime = util_models.RuntimeOptions()
|
|
3354
3454
|
return await self.get_custom_hot_topic_broadcast_job_with_options_async(request, runtime)
|
|
3355
3455
|
|
|
3456
|
+
def get_custom_source_topic_analysis_task_with_options(
|
|
3457
|
+
self,
|
|
3458
|
+
request: ai_miao_bi_20230801_models.GetCustomSourceTopicAnalysisTaskRequest,
|
|
3459
|
+
runtime: util_models.RuntimeOptions,
|
|
3460
|
+
) -> ai_miao_bi_20230801_models.GetCustomSourceTopicAnalysisTaskResponse:
|
|
3461
|
+
"""
|
|
3462
|
+
@summary 获取自定义数据源-选题视角分析任务结果
|
|
3463
|
+
|
|
3464
|
+
@param request: GetCustomSourceTopicAnalysisTaskRequest
|
|
3465
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
3466
|
+
@return: GetCustomSourceTopicAnalysisTaskResponse
|
|
3467
|
+
"""
|
|
3468
|
+
UtilClient.validate_model(request)
|
|
3469
|
+
body = {}
|
|
3470
|
+
if not UtilClient.is_unset(request.task_id):
|
|
3471
|
+
body['TaskId'] = request.task_id
|
|
3472
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
3473
|
+
body['WorkspaceId'] = request.workspace_id
|
|
3474
|
+
req = open_api_models.OpenApiRequest(
|
|
3475
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
3476
|
+
)
|
|
3477
|
+
params = open_api_models.Params(
|
|
3478
|
+
action='GetCustomSourceTopicAnalysisTask',
|
|
3479
|
+
version='2023-08-01',
|
|
3480
|
+
protocol='HTTPS',
|
|
3481
|
+
pathname='/',
|
|
3482
|
+
method='POST',
|
|
3483
|
+
auth_type='AK',
|
|
3484
|
+
style='RPC',
|
|
3485
|
+
req_body_type='formData',
|
|
3486
|
+
body_type='json'
|
|
3487
|
+
)
|
|
3488
|
+
return TeaCore.from_map(
|
|
3489
|
+
ai_miao_bi_20230801_models.GetCustomSourceTopicAnalysisTaskResponse(),
|
|
3490
|
+
self.call_api(params, req, runtime)
|
|
3491
|
+
)
|
|
3492
|
+
|
|
3493
|
+
async def get_custom_source_topic_analysis_task_with_options_async(
|
|
3494
|
+
self,
|
|
3495
|
+
request: ai_miao_bi_20230801_models.GetCustomSourceTopicAnalysisTaskRequest,
|
|
3496
|
+
runtime: util_models.RuntimeOptions,
|
|
3497
|
+
) -> ai_miao_bi_20230801_models.GetCustomSourceTopicAnalysisTaskResponse:
|
|
3498
|
+
"""
|
|
3499
|
+
@summary 获取自定义数据源-选题视角分析任务结果
|
|
3500
|
+
|
|
3501
|
+
@param request: GetCustomSourceTopicAnalysisTaskRequest
|
|
3502
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
3503
|
+
@return: GetCustomSourceTopicAnalysisTaskResponse
|
|
3504
|
+
"""
|
|
3505
|
+
UtilClient.validate_model(request)
|
|
3506
|
+
body = {}
|
|
3507
|
+
if not UtilClient.is_unset(request.task_id):
|
|
3508
|
+
body['TaskId'] = request.task_id
|
|
3509
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
3510
|
+
body['WorkspaceId'] = request.workspace_id
|
|
3511
|
+
req = open_api_models.OpenApiRequest(
|
|
3512
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
3513
|
+
)
|
|
3514
|
+
params = open_api_models.Params(
|
|
3515
|
+
action='GetCustomSourceTopicAnalysisTask',
|
|
3516
|
+
version='2023-08-01',
|
|
3517
|
+
protocol='HTTPS',
|
|
3518
|
+
pathname='/',
|
|
3519
|
+
method='POST',
|
|
3520
|
+
auth_type='AK',
|
|
3521
|
+
style='RPC',
|
|
3522
|
+
req_body_type='formData',
|
|
3523
|
+
body_type='json'
|
|
3524
|
+
)
|
|
3525
|
+
return TeaCore.from_map(
|
|
3526
|
+
ai_miao_bi_20230801_models.GetCustomSourceTopicAnalysisTaskResponse(),
|
|
3527
|
+
await self.call_api_async(params, req, runtime)
|
|
3528
|
+
)
|
|
3529
|
+
|
|
3530
|
+
def get_custom_source_topic_analysis_task(
|
|
3531
|
+
self,
|
|
3532
|
+
request: ai_miao_bi_20230801_models.GetCustomSourceTopicAnalysisTaskRequest,
|
|
3533
|
+
) -> ai_miao_bi_20230801_models.GetCustomSourceTopicAnalysisTaskResponse:
|
|
3534
|
+
"""
|
|
3535
|
+
@summary 获取自定义数据源-选题视角分析任务结果
|
|
3536
|
+
|
|
3537
|
+
@param request: GetCustomSourceTopicAnalysisTaskRequest
|
|
3538
|
+
@return: GetCustomSourceTopicAnalysisTaskResponse
|
|
3539
|
+
"""
|
|
3540
|
+
runtime = util_models.RuntimeOptions()
|
|
3541
|
+
return self.get_custom_source_topic_analysis_task_with_options(request, runtime)
|
|
3542
|
+
|
|
3543
|
+
async def get_custom_source_topic_analysis_task_async(
|
|
3544
|
+
self,
|
|
3545
|
+
request: ai_miao_bi_20230801_models.GetCustomSourceTopicAnalysisTaskRequest,
|
|
3546
|
+
) -> ai_miao_bi_20230801_models.GetCustomSourceTopicAnalysisTaskResponse:
|
|
3547
|
+
"""
|
|
3548
|
+
@summary 获取自定义数据源-选题视角分析任务结果
|
|
3549
|
+
|
|
3550
|
+
@param request: GetCustomSourceTopicAnalysisTaskRequest
|
|
3551
|
+
@return: GetCustomSourceTopicAnalysisTaskResponse
|
|
3552
|
+
"""
|
|
3553
|
+
runtime = util_models.RuntimeOptions()
|
|
3554
|
+
return await self.get_custom_source_topic_analysis_task_with_options_async(request, runtime)
|
|
3555
|
+
|
|
3356
3556
|
def get_custom_text_with_options(
|
|
3357
3557
|
self,
|
|
3358
3558
|
request: ai_miao_bi_20230801_models.GetCustomTextRequest,
|
|
@@ -14909,6 +15109,126 @@ class Client(OpenApiClient):
|
|
|
14909
15109
|
runtime = util_models.RuntimeOptions()
|
|
14910
15110
|
return await self.submit_custom_hot_topic_broadcast_job_with_options_async(request, runtime)
|
|
14911
15111
|
|
|
15112
|
+
def submit_custom_source_topic_analysis_with_options(
|
|
15113
|
+
self,
|
|
15114
|
+
tmp_req: ai_miao_bi_20230801_models.SubmitCustomSourceTopicAnalysisRequest,
|
|
15115
|
+
runtime: util_models.RuntimeOptions,
|
|
15116
|
+
) -> ai_miao_bi_20230801_models.SubmitCustomSourceTopicAnalysisResponse:
|
|
15117
|
+
"""
|
|
15118
|
+
@summary 从自定义数据源提交选题热点分析
|
|
15119
|
+
|
|
15120
|
+
@param tmp_req: SubmitCustomSourceTopicAnalysisRequest
|
|
15121
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
15122
|
+
@return: SubmitCustomSourceTopicAnalysisResponse
|
|
15123
|
+
"""
|
|
15124
|
+
UtilClient.validate_model(tmp_req)
|
|
15125
|
+
request = ai_miao_bi_20230801_models.SubmitCustomSourceTopicAnalysisShrinkRequest()
|
|
15126
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
15127
|
+
if not UtilClient.is_unset(tmp_req.news):
|
|
15128
|
+
request.news_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.news, 'News', 'json')
|
|
15129
|
+
body = {}
|
|
15130
|
+
if not UtilClient.is_unset(request.file_type):
|
|
15131
|
+
body['FileType'] = request.file_type
|
|
15132
|
+
if not UtilClient.is_unset(request.file_url):
|
|
15133
|
+
body['FileUrl'] = request.file_url
|
|
15134
|
+
if not UtilClient.is_unset(request.max_topic_size):
|
|
15135
|
+
body['MaxTopicSize'] = request.max_topic_size
|
|
15136
|
+
if not UtilClient.is_unset(request.news_shrink):
|
|
15137
|
+
body['News'] = request.news_shrink
|
|
15138
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
15139
|
+
body['WorkspaceId'] = request.workspace_id
|
|
15140
|
+
req = open_api_models.OpenApiRequest(
|
|
15141
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
15142
|
+
)
|
|
15143
|
+
params = open_api_models.Params(
|
|
15144
|
+
action='SubmitCustomSourceTopicAnalysis',
|
|
15145
|
+
version='2023-08-01',
|
|
15146
|
+
protocol='HTTPS',
|
|
15147
|
+
pathname='/',
|
|
15148
|
+
method='POST',
|
|
15149
|
+
auth_type='AK',
|
|
15150
|
+
style='RPC',
|
|
15151
|
+
req_body_type='formData',
|
|
15152
|
+
body_type='json'
|
|
15153
|
+
)
|
|
15154
|
+
return TeaCore.from_map(
|
|
15155
|
+
ai_miao_bi_20230801_models.SubmitCustomSourceTopicAnalysisResponse(),
|
|
15156
|
+
self.call_api(params, req, runtime)
|
|
15157
|
+
)
|
|
15158
|
+
|
|
15159
|
+
async def submit_custom_source_topic_analysis_with_options_async(
|
|
15160
|
+
self,
|
|
15161
|
+
tmp_req: ai_miao_bi_20230801_models.SubmitCustomSourceTopicAnalysisRequest,
|
|
15162
|
+
runtime: util_models.RuntimeOptions,
|
|
15163
|
+
) -> ai_miao_bi_20230801_models.SubmitCustomSourceTopicAnalysisResponse:
|
|
15164
|
+
"""
|
|
15165
|
+
@summary 从自定义数据源提交选题热点分析
|
|
15166
|
+
|
|
15167
|
+
@param tmp_req: SubmitCustomSourceTopicAnalysisRequest
|
|
15168
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
15169
|
+
@return: SubmitCustomSourceTopicAnalysisResponse
|
|
15170
|
+
"""
|
|
15171
|
+
UtilClient.validate_model(tmp_req)
|
|
15172
|
+
request = ai_miao_bi_20230801_models.SubmitCustomSourceTopicAnalysisShrinkRequest()
|
|
15173
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
15174
|
+
if not UtilClient.is_unset(tmp_req.news):
|
|
15175
|
+
request.news_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.news, 'News', 'json')
|
|
15176
|
+
body = {}
|
|
15177
|
+
if not UtilClient.is_unset(request.file_type):
|
|
15178
|
+
body['FileType'] = request.file_type
|
|
15179
|
+
if not UtilClient.is_unset(request.file_url):
|
|
15180
|
+
body['FileUrl'] = request.file_url
|
|
15181
|
+
if not UtilClient.is_unset(request.max_topic_size):
|
|
15182
|
+
body['MaxTopicSize'] = request.max_topic_size
|
|
15183
|
+
if not UtilClient.is_unset(request.news_shrink):
|
|
15184
|
+
body['News'] = request.news_shrink
|
|
15185
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
15186
|
+
body['WorkspaceId'] = request.workspace_id
|
|
15187
|
+
req = open_api_models.OpenApiRequest(
|
|
15188
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
15189
|
+
)
|
|
15190
|
+
params = open_api_models.Params(
|
|
15191
|
+
action='SubmitCustomSourceTopicAnalysis',
|
|
15192
|
+
version='2023-08-01',
|
|
15193
|
+
protocol='HTTPS',
|
|
15194
|
+
pathname='/',
|
|
15195
|
+
method='POST',
|
|
15196
|
+
auth_type='AK',
|
|
15197
|
+
style='RPC',
|
|
15198
|
+
req_body_type='formData',
|
|
15199
|
+
body_type='json'
|
|
15200
|
+
)
|
|
15201
|
+
return TeaCore.from_map(
|
|
15202
|
+
ai_miao_bi_20230801_models.SubmitCustomSourceTopicAnalysisResponse(),
|
|
15203
|
+
await self.call_api_async(params, req, runtime)
|
|
15204
|
+
)
|
|
15205
|
+
|
|
15206
|
+
def submit_custom_source_topic_analysis(
|
|
15207
|
+
self,
|
|
15208
|
+
request: ai_miao_bi_20230801_models.SubmitCustomSourceTopicAnalysisRequest,
|
|
15209
|
+
) -> ai_miao_bi_20230801_models.SubmitCustomSourceTopicAnalysisResponse:
|
|
15210
|
+
"""
|
|
15211
|
+
@summary 从自定义数据源提交选题热点分析
|
|
15212
|
+
|
|
15213
|
+
@param request: SubmitCustomSourceTopicAnalysisRequest
|
|
15214
|
+
@return: SubmitCustomSourceTopicAnalysisResponse
|
|
15215
|
+
"""
|
|
15216
|
+
runtime = util_models.RuntimeOptions()
|
|
15217
|
+
return self.submit_custom_source_topic_analysis_with_options(request, runtime)
|
|
15218
|
+
|
|
15219
|
+
async def submit_custom_source_topic_analysis_async(
|
|
15220
|
+
self,
|
|
15221
|
+
request: ai_miao_bi_20230801_models.SubmitCustomSourceTopicAnalysisRequest,
|
|
15222
|
+
) -> ai_miao_bi_20230801_models.SubmitCustomSourceTopicAnalysisResponse:
|
|
15223
|
+
"""
|
|
15224
|
+
@summary 从自定义数据源提交选题热点分析
|
|
15225
|
+
|
|
15226
|
+
@param request: SubmitCustomSourceTopicAnalysisRequest
|
|
15227
|
+
@return: SubmitCustomSourceTopicAnalysisResponse
|
|
15228
|
+
"""
|
|
15229
|
+
runtime = util_models.RuntimeOptions()
|
|
15230
|
+
return await self.submit_custom_source_topic_analysis_with_options_async(request, runtime)
|
|
15231
|
+
|
|
14912
15232
|
def submit_custom_topic_selection_perspective_analysis_task_with_options(
|
|
14913
15233
|
self,
|
|
14914
15234
|
tmp_req: ai_miao_bi_20230801_models.SubmitCustomTopicSelectionPerspectiveAnalysisTaskRequest,
|
|
@@ -4210,6 +4210,139 @@ class ExportAnalysisTagDetailByTaskIdResponse(TeaModel):
|
|
|
4210
4210
|
return self
|
|
4211
4211
|
|
|
4212
4212
|
|
|
4213
|
+
class ExportCustomSourceAnalysisTaskRequest(TeaModel):
|
|
4214
|
+
def __init__(
|
|
4215
|
+
self,
|
|
4216
|
+
task_id: str = None,
|
|
4217
|
+
workspace_id: str = None,
|
|
4218
|
+
):
|
|
4219
|
+
# This parameter is required.
|
|
4220
|
+
self.task_id = task_id
|
|
4221
|
+
# This parameter is required.
|
|
4222
|
+
self.workspace_id = workspace_id
|
|
4223
|
+
|
|
4224
|
+
def validate(self):
|
|
4225
|
+
pass
|
|
4226
|
+
|
|
4227
|
+
def to_map(self):
|
|
4228
|
+
_map = super().to_map()
|
|
4229
|
+
if _map is not None:
|
|
4230
|
+
return _map
|
|
4231
|
+
|
|
4232
|
+
result = dict()
|
|
4233
|
+
if self.task_id is not None:
|
|
4234
|
+
result['TaskId'] = self.task_id
|
|
4235
|
+
if self.workspace_id is not None:
|
|
4236
|
+
result['WorkspaceId'] = self.workspace_id
|
|
4237
|
+
return result
|
|
4238
|
+
|
|
4239
|
+
def from_map(self, m: dict = None):
|
|
4240
|
+
m = m or dict()
|
|
4241
|
+
if m.get('TaskId') is not None:
|
|
4242
|
+
self.task_id = m.get('TaskId')
|
|
4243
|
+
if m.get('WorkspaceId') is not None:
|
|
4244
|
+
self.workspace_id = m.get('WorkspaceId')
|
|
4245
|
+
return self
|
|
4246
|
+
|
|
4247
|
+
|
|
4248
|
+
class ExportCustomSourceAnalysisTaskResponseBody(TeaModel):
|
|
4249
|
+
def __init__(
|
|
4250
|
+
self,
|
|
4251
|
+
code: str = None,
|
|
4252
|
+
data: str = None,
|
|
4253
|
+
http_status_code: int = None,
|
|
4254
|
+
message: str = None,
|
|
4255
|
+
request_id: str = None,
|
|
4256
|
+
success: bool = None,
|
|
4257
|
+
):
|
|
4258
|
+
self.code = code
|
|
4259
|
+
self.data = data
|
|
4260
|
+
self.http_status_code = http_status_code
|
|
4261
|
+
self.message = message
|
|
4262
|
+
self.request_id = request_id
|
|
4263
|
+
self.success = success
|
|
4264
|
+
|
|
4265
|
+
def validate(self):
|
|
4266
|
+
pass
|
|
4267
|
+
|
|
4268
|
+
def to_map(self):
|
|
4269
|
+
_map = super().to_map()
|
|
4270
|
+
if _map is not None:
|
|
4271
|
+
return _map
|
|
4272
|
+
|
|
4273
|
+
result = dict()
|
|
4274
|
+
if self.code is not None:
|
|
4275
|
+
result['Code'] = self.code
|
|
4276
|
+
if self.data is not None:
|
|
4277
|
+
result['Data'] = self.data
|
|
4278
|
+
if self.http_status_code is not None:
|
|
4279
|
+
result['HttpStatusCode'] = self.http_status_code
|
|
4280
|
+
if self.message is not None:
|
|
4281
|
+
result['Message'] = self.message
|
|
4282
|
+
if self.request_id is not None:
|
|
4283
|
+
result['RequestId'] = self.request_id
|
|
4284
|
+
if self.success is not None:
|
|
4285
|
+
result['Success'] = self.success
|
|
4286
|
+
return result
|
|
4287
|
+
|
|
4288
|
+
def from_map(self, m: dict = None):
|
|
4289
|
+
m = m or dict()
|
|
4290
|
+
if m.get('Code') is not None:
|
|
4291
|
+
self.code = m.get('Code')
|
|
4292
|
+
if m.get('Data') is not None:
|
|
4293
|
+
self.data = m.get('Data')
|
|
4294
|
+
if m.get('HttpStatusCode') is not None:
|
|
4295
|
+
self.http_status_code = m.get('HttpStatusCode')
|
|
4296
|
+
if m.get('Message') is not None:
|
|
4297
|
+
self.message = m.get('Message')
|
|
4298
|
+
if m.get('RequestId') is not None:
|
|
4299
|
+
self.request_id = m.get('RequestId')
|
|
4300
|
+
if m.get('Success') is not None:
|
|
4301
|
+
self.success = m.get('Success')
|
|
4302
|
+
return self
|
|
4303
|
+
|
|
4304
|
+
|
|
4305
|
+
class ExportCustomSourceAnalysisTaskResponse(TeaModel):
|
|
4306
|
+
def __init__(
|
|
4307
|
+
self,
|
|
4308
|
+
headers: Dict[str, str] = None,
|
|
4309
|
+
status_code: int = None,
|
|
4310
|
+
body: ExportCustomSourceAnalysisTaskResponseBody = None,
|
|
4311
|
+
):
|
|
4312
|
+
self.headers = headers
|
|
4313
|
+
self.status_code = status_code
|
|
4314
|
+
self.body = body
|
|
4315
|
+
|
|
4316
|
+
def validate(self):
|
|
4317
|
+
if self.body:
|
|
4318
|
+
self.body.validate()
|
|
4319
|
+
|
|
4320
|
+
def to_map(self):
|
|
4321
|
+
_map = super().to_map()
|
|
4322
|
+
if _map is not None:
|
|
4323
|
+
return _map
|
|
4324
|
+
|
|
4325
|
+
result = dict()
|
|
4326
|
+
if self.headers is not None:
|
|
4327
|
+
result['headers'] = self.headers
|
|
4328
|
+
if self.status_code is not None:
|
|
4329
|
+
result['statusCode'] = self.status_code
|
|
4330
|
+
if self.body is not None:
|
|
4331
|
+
result['body'] = self.body.to_map()
|
|
4332
|
+
return result
|
|
4333
|
+
|
|
4334
|
+
def from_map(self, m: dict = None):
|
|
4335
|
+
m = m or dict()
|
|
4336
|
+
if m.get('headers') is not None:
|
|
4337
|
+
self.headers = m.get('headers')
|
|
4338
|
+
if m.get('statusCode') is not None:
|
|
4339
|
+
self.status_code = m.get('statusCode')
|
|
4340
|
+
if m.get('body') is not None:
|
|
4341
|
+
temp_model = ExportCustomSourceAnalysisTaskResponseBody()
|
|
4342
|
+
self.body = temp_model.from_map(m['body'])
|
|
4343
|
+
return self
|
|
4344
|
+
|
|
4345
|
+
|
|
4213
4346
|
class ExportGeneratedContentRequest(TeaModel):
|
|
4214
4347
|
def __init__(
|
|
4215
4348
|
self,
|
|
@@ -6563,18 +6696,16 @@ class GetCustomHotTopicBroadcastJobResponse(TeaModel):
|
|
|
6563
6696
|
return self
|
|
6564
6697
|
|
|
6565
6698
|
|
|
6566
|
-
class
|
|
6699
|
+
class GetCustomSourceTopicAnalysisTaskRequest(TeaModel):
|
|
6567
6700
|
def __init__(
|
|
6568
6701
|
self,
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
id: int = None,
|
|
6702
|
+
task_id: str = None,
|
|
6703
|
+
workspace_id: str = None,
|
|
6572
6704
|
):
|
|
6573
6705
|
# This parameter is required.
|
|
6574
|
-
self.
|
|
6575
|
-
self.commodity_code = commodity_code
|
|
6706
|
+
self.task_id = task_id
|
|
6576
6707
|
# This parameter is required.
|
|
6577
|
-
self.
|
|
6708
|
+
self.workspace_id = workspace_id
|
|
6578
6709
|
|
|
6579
6710
|
def validate(self):
|
|
6580
6711
|
pass
|
|
@@ -6585,43 +6716,29 @@ class GetCustomTextRequest(TeaModel):
|
|
|
6585
6716
|
return _map
|
|
6586
6717
|
|
|
6587
6718
|
result = dict()
|
|
6588
|
-
if self.
|
|
6589
|
-
result['
|
|
6590
|
-
if self.
|
|
6591
|
-
result['
|
|
6592
|
-
if self.id is not None:
|
|
6593
|
-
result['Id'] = self.id
|
|
6719
|
+
if self.task_id is not None:
|
|
6720
|
+
result['TaskId'] = self.task_id
|
|
6721
|
+
if self.workspace_id is not None:
|
|
6722
|
+
result['WorkspaceId'] = self.workspace_id
|
|
6594
6723
|
return result
|
|
6595
6724
|
|
|
6596
6725
|
def from_map(self, m: dict = None):
|
|
6597
6726
|
m = m or dict()
|
|
6598
|
-
if m.get('
|
|
6599
|
-
self.
|
|
6600
|
-
if m.get('
|
|
6601
|
-
self.
|
|
6602
|
-
if m.get('Id') is not None:
|
|
6603
|
-
self.id = m.get('Id')
|
|
6727
|
+
if m.get('TaskId') is not None:
|
|
6728
|
+
self.task_id = m.get('TaskId')
|
|
6729
|
+
if m.get('WorkspaceId') is not None:
|
|
6730
|
+
self.workspace_id = m.get('WorkspaceId')
|
|
6604
6731
|
return self
|
|
6605
6732
|
|
|
6606
6733
|
|
|
6607
|
-
class
|
|
6734
|
+
class GetCustomSourceTopicAnalysisTaskResponseBodyDataClusterResultsClusterNews(TeaModel):
|
|
6608
6735
|
def __init__(
|
|
6609
6736
|
self,
|
|
6610
|
-
content: str = None,
|
|
6611
|
-
create_time: str = None,
|
|
6612
|
-
create_user: str = None,
|
|
6613
|
-
id: int = None,
|
|
6614
6737
|
title: str = None,
|
|
6615
|
-
|
|
6616
|
-
update_user: str = None,
|
|
6738
|
+
url: str = None,
|
|
6617
6739
|
):
|
|
6618
|
-
self.content = content
|
|
6619
|
-
self.create_time = create_time
|
|
6620
|
-
self.create_user = create_user
|
|
6621
|
-
self.id = id
|
|
6622
6740
|
self.title = title
|
|
6623
|
-
self.
|
|
6624
|
-
self.update_user = update_user
|
|
6741
|
+
self.url = url
|
|
6625
6742
|
|
|
6626
6743
|
def validate(self):
|
|
6627
6744
|
pass
|
|
@@ -6632,46 +6749,336 @@ class GetCustomTextResponseBodyData(TeaModel):
|
|
|
6632
6749
|
return _map
|
|
6633
6750
|
|
|
6634
6751
|
result = dict()
|
|
6635
|
-
if self.content is not None:
|
|
6636
|
-
result['Content'] = self.content
|
|
6637
|
-
if self.create_time is not None:
|
|
6638
|
-
result['CreateTime'] = self.create_time
|
|
6639
|
-
if self.create_user is not None:
|
|
6640
|
-
result['CreateUser'] = self.create_user
|
|
6641
|
-
if self.id is not None:
|
|
6642
|
-
result['Id'] = self.id
|
|
6643
6752
|
if self.title is not None:
|
|
6644
6753
|
result['Title'] = self.title
|
|
6645
|
-
if self.
|
|
6646
|
-
result['
|
|
6647
|
-
if self.update_user is not None:
|
|
6648
|
-
result['UpdateUser'] = self.update_user
|
|
6754
|
+
if self.url is not None:
|
|
6755
|
+
result['Url'] = self.url
|
|
6649
6756
|
return result
|
|
6650
6757
|
|
|
6651
6758
|
def from_map(self, m: dict = None):
|
|
6652
6759
|
m = m or dict()
|
|
6653
|
-
if m.get('Content') is not None:
|
|
6654
|
-
self.content = m.get('Content')
|
|
6655
|
-
if m.get('CreateTime') is not None:
|
|
6656
|
-
self.create_time = m.get('CreateTime')
|
|
6657
|
-
if m.get('CreateUser') is not None:
|
|
6658
|
-
self.create_user = m.get('CreateUser')
|
|
6659
|
-
if m.get('Id') is not None:
|
|
6660
|
-
self.id = m.get('Id')
|
|
6661
6760
|
if m.get('Title') is not None:
|
|
6662
6761
|
self.title = m.get('Title')
|
|
6663
|
-
if m.get('
|
|
6664
|
-
self.
|
|
6665
|
-
if m.get('UpdateUser') is not None:
|
|
6666
|
-
self.update_user = m.get('UpdateUser')
|
|
6762
|
+
if m.get('Url') is not None:
|
|
6763
|
+
self.url = m.get('Url')
|
|
6667
6764
|
return self
|
|
6668
6765
|
|
|
6669
6766
|
|
|
6670
|
-
class
|
|
6767
|
+
class GetCustomSourceTopicAnalysisTaskResponseBodyDataClusterResults(TeaModel):
|
|
6768
|
+
def __init__(
|
|
6769
|
+
self,
|
|
6770
|
+
cluster_news: List[GetCustomSourceTopicAnalysisTaskResponseBodyDataClusterResultsClusterNews] = None,
|
|
6771
|
+
topic: str = None,
|
|
6772
|
+
):
|
|
6773
|
+
self.cluster_news = cluster_news
|
|
6774
|
+
self.topic = topic
|
|
6775
|
+
|
|
6776
|
+
def validate(self):
|
|
6777
|
+
if self.cluster_news:
|
|
6778
|
+
for k in self.cluster_news:
|
|
6779
|
+
if k:
|
|
6780
|
+
k.validate()
|
|
6781
|
+
|
|
6782
|
+
def to_map(self):
|
|
6783
|
+
_map = super().to_map()
|
|
6784
|
+
if _map is not None:
|
|
6785
|
+
return _map
|
|
6786
|
+
|
|
6787
|
+
result = dict()
|
|
6788
|
+
result['ClusterNews'] = []
|
|
6789
|
+
if self.cluster_news is not None:
|
|
6790
|
+
for k in self.cluster_news:
|
|
6791
|
+
result['ClusterNews'].append(k.to_map() if k else None)
|
|
6792
|
+
if self.topic is not None:
|
|
6793
|
+
result['Topic'] = self.topic
|
|
6794
|
+
return result
|
|
6795
|
+
|
|
6796
|
+
def from_map(self, m: dict = None):
|
|
6797
|
+
m = m or dict()
|
|
6798
|
+
self.cluster_news = []
|
|
6799
|
+
if m.get('ClusterNews') is not None:
|
|
6800
|
+
for k in m.get('ClusterNews'):
|
|
6801
|
+
temp_model = GetCustomSourceTopicAnalysisTaskResponseBodyDataClusterResultsClusterNews()
|
|
6802
|
+
self.cluster_news.append(temp_model.from_map(k))
|
|
6803
|
+
if m.get('Topic') is not None:
|
|
6804
|
+
self.topic = m.get('Topic')
|
|
6805
|
+
return self
|
|
6806
|
+
|
|
6807
|
+
|
|
6808
|
+
class GetCustomSourceTopicAnalysisTaskResponseBodyData(TeaModel):
|
|
6809
|
+
def __init__(
|
|
6810
|
+
self,
|
|
6811
|
+
cluster_count: int = None,
|
|
6812
|
+
cluster_results: List[GetCustomSourceTopicAnalysisTaskResponseBodyDataClusterResults] = None,
|
|
6813
|
+
error_message: str = None,
|
|
6814
|
+
max_clustered_topic_news_size: int = None,
|
|
6815
|
+
parsed_news_size: int = None,
|
|
6816
|
+
status: str = None,
|
|
6817
|
+
):
|
|
6818
|
+
self.cluster_count = cluster_count
|
|
6819
|
+
self.cluster_results = cluster_results
|
|
6820
|
+
self.error_message = error_message
|
|
6821
|
+
self.max_clustered_topic_news_size = max_clustered_topic_news_size
|
|
6822
|
+
self.parsed_news_size = parsed_news_size
|
|
6823
|
+
self.status = status
|
|
6824
|
+
|
|
6825
|
+
def validate(self):
|
|
6826
|
+
if self.cluster_results:
|
|
6827
|
+
for k in self.cluster_results:
|
|
6828
|
+
if k:
|
|
6829
|
+
k.validate()
|
|
6830
|
+
|
|
6831
|
+
def to_map(self):
|
|
6832
|
+
_map = super().to_map()
|
|
6833
|
+
if _map is not None:
|
|
6834
|
+
return _map
|
|
6835
|
+
|
|
6836
|
+
result = dict()
|
|
6837
|
+
if self.cluster_count is not None:
|
|
6838
|
+
result['ClusterCount'] = self.cluster_count
|
|
6839
|
+
result['ClusterResults'] = []
|
|
6840
|
+
if self.cluster_results is not None:
|
|
6841
|
+
for k in self.cluster_results:
|
|
6842
|
+
result['ClusterResults'].append(k.to_map() if k else None)
|
|
6843
|
+
if self.error_message is not None:
|
|
6844
|
+
result['ErrorMessage'] = self.error_message
|
|
6845
|
+
if self.max_clustered_topic_news_size is not None:
|
|
6846
|
+
result['MaxClusteredTopicNewsSize'] = self.max_clustered_topic_news_size
|
|
6847
|
+
if self.parsed_news_size is not None:
|
|
6848
|
+
result['ParsedNewsSize'] = self.parsed_news_size
|
|
6849
|
+
if self.status is not None:
|
|
6850
|
+
result['Status'] = self.status
|
|
6851
|
+
return result
|
|
6852
|
+
|
|
6853
|
+
def from_map(self, m: dict = None):
|
|
6854
|
+
m = m or dict()
|
|
6855
|
+
if m.get('ClusterCount') is not None:
|
|
6856
|
+
self.cluster_count = m.get('ClusterCount')
|
|
6857
|
+
self.cluster_results = []
|
|
6858
|
+
if m.get('ClusterResults') is not None:
|
|
6859
|
+
for k in m.get('ClusterResults'):
|
|
6860
|
+
temp_model = GetCustomSourceTopicAnalysisTaskResponseBodyDataClusterResults()
|
|
6861
|
+
self.cluster_results.append(temp_model.from_map(k))
|
|
6862
|
+
if m.get('ErrorMessage') is not None:
|
|
6863
|
+
self.error_message = m.get('ErrorMessage')
|
|
6864
|
+
if m.get('MaxClusteredTopicNewsSize') is not None:
|
|
6865
|
+
self.max_clustered_topic_news_size = m.get('MaxClusteredTopicNewsSize')
|
|
6866
|
+
if m.get('ParsedNewsSize') is not None:
|
|
6867
|
+
self.parsed_news_size = m.get('ParsedNewsSize')
|
|
6868
|
+
if m.get('Status') is not None:
|
|
6869
|
+
self.status = m.get('Status')
|
|
6870
|
+
return self
|
|
6871
|
+
|
|
6872
|
+
|
|
6873
|
+
class GetCustomSourceTopicAnalysisTaskResponseBody(TeaModel):
|
|
6671
6874
|
def __init__(
|
|
6672
6875
|
self,
|
|
6673
6876
|
code: str = None,
|
|
6674
|
-
data:
|
|
6877
|
+
data: GetCustomSourceTopicAnalysisTaskResponseBodyData = None,
|
|
6878
|
+
http_status_code: int = None,
|
|
6879
|
+
message: str = None,
|
|
6880
|
+
request_id: str = None,
|
|
6881
|
+
success: bool = None,
|
|
6882
|
+
):
|
|
6883
|
+
self.code = code
|
|
6884
|
+
self.data = data
|
|
6885
|
+
self.http_status_code = http_status_code
|
|
6886
|
+
self.message = message
|
|
6887
|
+
self.request_id = request_id
|
|
6888
|
+
self.success = success
|
|
6889
|
+
|
|
6890
|
+
def validate(self):
|
|
6891
|
+
if self.data:
|
|
6892
|
+
self.data.validate()
|
|
6893
|
+
|
|
6894
|
+
def to_map(self):
|
|
6895
|
+
_map = super().to_map()
|
|
6896
|
+
if _map is not None:
|
|
6897
|
+
return _map
|
|
6898
|
+
|
|
6899
|
+
result = dict()
|
|
6900
|
+
if self.code is not None:
|
|
6901
|
+
result['Code'] = self.code
|
|
6902
|
+
if self.data is not None:
|
|
6903
|
+
result['Data'] = self.data.to_map()
|
|
6904
|
+
if self.http_status_code is not None:
|
|
6905
|
+
result['HttpStatusCode'] = self.http_status_code
|
|
6906
|
+
if self.message is not None:
|
|
6907
|
+
result['Message'] = self.message
|
|
6908
|
+
if self.request_id is not None:
|
|
6909
|
+
result['RequestId'] = self.request_id
|
|
6910
|
+
if self.success is not None:
|
|
6911
|
+
result['Success'] = self.success
|
|
6912
|
+
return result
|
|
6913
|
+
|
|
6914
|
+
def from_map(self, m: dict = None):
|
|
6915
|
+
m = m or dict()
|
|
6916
|
+
if m.get('Code') is not None:
|
|
6917
|
+
self.code = m.get('Code')
|
|
6918
|
+
if m.get('Data') is not None:
|
|
6919
|
+
temp_model = GetCustomSourceTopicAnalysisTaskResponseBodyData()
|
|
6920
|
+
self.data = temp_model.from_map(m['Data'])
|
|
6921
|
+
if m.get('HttpStatusCode') is not None:
|
|
6922
|
+
self.http_status_code = m.get('HttpStatusCode')
|
|
6923
|
+
if m.get('Message') is not None:
|
|
6924
|
+
self.message = m.get('Message')
|
|
6925
|
+
if m.get('RequestId') is not None:
|
|
6926
|
+
self.request_id = m.get('RequestId')
|
|
6927
|
+
if m.get('Success') is not None:
|
|
6928
|
+
self.success = m.get('Success')
|
|
6929
|
+
return self
|
|
6930
|
+
|
|
6931
|
+
|
|
6932
|
+
class GetCustomSourceTopicAnalysisTaskResponse(TeaModel):
|
|
6933
|
+
def __init__(
|
|
6934
|
+
self,
|
|
6935
|
+
headers: Dict[str, str] = None,
|
|
6936
|
+
status_code: int = None,
|
|
6937
|
+
body: GetCustomSourceTopicAnalysisTaskResponseBody = None,
|
|
6938
|
+
):
|
|
6939
|
+
self.headers = headers
|
|
6940
|
+
self.status_code = status_code
|
|
6941
|
+
self.body = body
|
|
6942
|
+
|
|
6943
|
+
def validate(self):
|
|
6944
|
+
if self.body:
|
|
6945
|
+
self.body.validate()
|
|
6946
|
+
|
|
6947
|
+
def to_map(self):
|
|
6948
|
+
_map = super().to_map()
|
|
6949
|
+
if _map is not None:
|
|
6950
|
+
return _map
|
|
6951
|
+
|
|
6952
|
+
result = dict()
|
|
6953
|
+
if self.headers is not None:
|
|
6954
|
+
result['headers'] = self.headers
|
|
6955
|
+
if self.status_code is not None:
|
|
6956
|
+
result['statusCode'] = self.status_code
|
|
6957
|
+
if self.body is not None:
|
|
6958
|
+
result['body'] = self.body.to_map()
|
|
6959
|
+
return result
|
|
6960
|
+
|
|
6961
|
+
def from_map(self, m: dict = None):
|
|
6962
|
+
m = m or dict()
|
|
6963
|
+
if m.get('headers') is not None:
|
|
6964
|
+
self.headers = m.get('headers')
|
|
6965
|
+
if m.get('statusCode') is not None:
|
|
6966
|
+
self.status_code = m.get('statusCode')
|
|
6967
|
+
if m.get('body') is not None:
|
|
6968
|
+
temp_model = GetCustomSourceTopicAnalysisTaskResponseBody()
|
|
6969
|
+
self.body = temp_model.from_map(m['body'])
|
|
6970
|
+
return self
|
|
6971
|
+
|
|
6972
|
+
|
|
6973
|
+
class GetCustomTextRequest(TeaModel):
|
|
6974
|
+
def __init__(
|
|
6975
|
+
self,
|
|
6976
|
+
agent_key: str = None,
|
|
6977
|
+
commodity_code: str = None,
|
|
6978
|
+
id: int = None,
|
|
6979
|
+
):
|
|
6980
|
+
# This parameter is required.
|
|
6981
|
+
self.agent_key = agent_key
|
|
6982
|
+
self.commodity_code = commodity_code
|
|
6983
|
+
# This parameter is required.
|
|
6984
|
+
self.id = id
|
|
6985
|
+
|
|
6986
|
+
def validate(self):
|
|
6987
|
+
pass
|
|
6988
|
+
|
|
6989
|
+
def to_map(self):
|
|
6990
|
+
_map = super().to_map()
|
|
6991
|
+
if _map is not None:
|
|
6992
|
+
return _map
|
|
6993
|
+
|
|
6994
|
+
result = dict()
|
|
6995
|
+
if self.agent_key is not None:
|
|
6996
|
+
result['AgentKey'] = self.agent_key
|
|
6997
|
+
if self.commodity_code is not None:
|
|
6998
|
+
result['CommodityCode'] = self.commodity_code
|
|
6999
|
+
if self.id is not None:
|
|
7000
|
+
result['Id'] = self.id
|
|
7001
|
+
return result
|
|
7002
|
+
|
|
7003
|
+
def from_map(self, m: dict = None):
|
|
7004
|
+
m = m or dict()
|
|
7005
|
+
if m.get('AgentKey') is not None:
|
|
7006
|
+
self.agent_key = m.get('AgentKey')
|
|
7007
|
+
if m.get('CommodityCode') is not None:
|
|
7008
|
+
self.commodity_code = m.get('CommodityCode')
|
|
7009
|
+
if m.get('Id') is not None:
|
|
7010
|
+
self.id = m.get('Id')
|
|
7011
|
+
return self
|
|
7012
|
+
|
|
7013
|
+
|
|
7014
|
+
class GetCustomTextResponseBodyData(TeaModel):
|
|
7015
|
+
def __init__(
|
|
7016
|
+
self,
|
|
7017
|
+
content: str = None,
|
|
7018
|
+
create_time: str = None,
|
|
7019
|
+
create_user: str = None,
|
|
7020
|
+
id: int = None,
|
|
7021
|
+
title: str = None,
|
|
7022
|
+
update_time: str = None,
|
|
7023
|
+
update_user: str = None,
|
|
7024
|
+
):
|
|
7025
|
+
self.content = content
|
|
7026
|
+
self.create_time = create_time
|
|
7027
|
+
self.create_user = create_user
|
|
7028
|
+
self.id = id
|
|
7029
|
+
self.title = title
|
|
7030
|
+
self.update_time = update_time
|
|
7031
|
+
self.update_user = update_user
|
|
7032
|
+
|
|
7033
|
+
def validate(self):
|
|
7034
|
+
pass
|
|
7035
|
+
|
|
7036
|
+
def to_map(self):
|
|
7037
|
+
_map = super().to_map()
|
|
7038
|
+
if _map is not None:
|
|
7039
|
+
return _map
|
|
7040
|
+
|
|
7041
|
+
result = dict()
|
|
7042
|
+
if self.content is not None:
|
|
7043
|
+
result['Content'] = self.content
|
|
7044
|
+
if self.create_time is not None:
|
|
7045
|
+
result['CreateTime'] = self.create_time
|
|
7046
|
+
if self.create_user is not None:
|
|
7047
|
+
result['CreateUser'] = self.create_user
|
|
7048
|
+
if self.id is not None:
|
|
7049
|
+
result['Id'] = self.id
|
|
7050
|
+
if self.title is not None:
|
|
7051
|
+
result['Title'] = self.title
|
|
7052
|
+
if self.update_time is not None:
|
|
7053
|
+
result['UpdateTime'] = self.update_time
|
|
7054
|
+
if self.update_user is not None:
|
|
7055
|
+
result['UpdateUser'] = self.update_user
|
|
7056
|
+
return result
|
|
7057
|
+
|
|
7058
|
+
def from_map(self, m: dict = None):
|
|
7059
|
+
m = m or dict()
|
|
7060
|
+
if m.get('Content') is not None:
|
|
7061
|
+
self.content = m.get('Content')
|
|
7062
|
+
if m.get('CreateTime') is not None:
|
|
7063
|
+
self.create_time = m.get('CreateTime')
|
|
7064
|
+
if m.get('CreateUser') is not None:
|
|
7065
|
+
self.create_user = m.get('CreateUser')
|
|
7066
|
+
if m.get('Id') is not None:
|
|
7067
|
+
self.id = m.get('Id')
|
|
7068
|
+
if m.get('Title') is not None:
|
|
7069
|
+
self.title = m.get('Title')
|
|
7070
|
+
if m.get('UpdateTime') is not None:
|
|
7071
|
+
self.update_time = m.get('UpdateTime')
|
|
7072
|
+
if m.get('UpdateUser') is not None:
|
|
7073
|
+
self.update_user = m.get('UpdateUser')
|
|
7074
|
+
return self
|
|
7075
|
+
|
|
7076
|
+
|
|
7077
|
+
class GetCustomTextResponseBody(TeaModel):
|
|
7078
|
+
def __init__(
|
|
7079
|
+
self,
|
|
7080
|
+
code: str = None,
|
|
7081
|
+
data: GetCustomTextResponseBodyData = None,
|
|
6675
7082
|
http_status_code: int = None,
|
|
6676
7083
|
message: str = None,
|
|
6677
7084
|
request_id: str = None,
|
|
@@ -45552,6 +45959,337 @@ class SubmitCustomHotTopicBroadcastJobResponse(TeaModel):
|
|
|
45552
45959
|
return self
|
|
45553
45960
|
|
|
45554
45961
|
|
|
45962
|
+
class SubmitCustomSourceTopicAnalysisRequestNewsComments(TeaModel):
|
|
45963
|
+
def __init__(
|
|
45964
|
+
self,
|
|
45965
|
+
text: str = None,
|
|
45966
|
+
):
|
|
45967
|
+
self.text = text
|
|
45968
|
+
|
|
45969
|
+
def validate(self):
|
|
45970
|
+
pass
|
|
45971
|
+
|
|
45972
|
+
def to_map(self):
|
|
45973
|
+
_map = super().to_map()
|
|
45974
|
+
if _map is not None:
|
|
45975
|
+
return _map
|
|
45976
|
+
|
|
45977
|
+
result = dict()
|
|
45978
|
+
if self.text is not None:
|
|
45979
|
+
result['Text'] = self.text
|
|
45980
|
+
return result
|
|
45981
|
+
|
|
45982
|
+
def from_map(self, m: dict = None):
|
|
45983
|
+
m = m or dict()
|
|
45984
|
+
if m.get('Text') is not None:
|
|
45985
|
+
self.text = m.get('Text')
|
|
45986
|
+
return self
|
|
45987
|
+
|
|
45988
|
+
|
|
45989
|
+
class SubmitCustomSourceTopicAnalysisRequestNews(TeaModel):
|
|
45990
|
+
def __init__(
|
|
45991
|
+
self,
|
|
45992
|
+
comments: List[SubmitCustomSourceTopicAnalysisRequestNewsComments] = None,
|
|
45993
|
+
content: str = None,
|
|
45994
|
+
pub_time: str = None,
|
|
45995
|
+
title: str = None,
|
|
45996
|
+
url: str = None,
|
|
45997
|
+
):
|
|
45998
|
+
self.comments = comments
|
|
45999
|
+
self.content = content
|
|
46000
|
+
self.pub_time = pub_time
|
|
46001
|
+
self.title = title
|
|
46002
|
+
self.url = url
|
|
46003
|
+
|
|
46004
|
+
def validate(self):
|
|
46005
|
+
if self.comments:
|
|
46006
|
+
for k in self.comments:
|
|
46007
|
+
if k:
|
|
46008
|
+
k.validate()
|
|
46009
|
+
|
|
46010
|
+
def to_map(self):
|
|
46011
|
+
_map = super().to_map()
|
|
46012
|
+
if _map is not None:
|
|
46013
|
+
return _map
|
|
46014
|
+
|
|
46015
|
+
result = dict()
|
|
46016
|
+
result['Comments'] = []
|
|
46017
|
+
if self.comments is not None:
|
|
46018
|
+
for k in self.comments:
|
|
46019
|
+
result['Comments'].append(k.to_map() if k else None)
|
|
46020
|
+
if self.content is not None:
|
|
46021
|
+
result['Content'] = self.content
|
|
46022
|
+
if self.pub_time is not None:
|
|
46023
|
+
result['PubTime'] = self.pub_time
|
|
46024
|
+
if self.title is not None:
|
|
46025
|
+
result['Title'] = self.title
|
|
46026
|
+
if self.url is not None:
|
|
46027
|
+
result['Url'] = self.url
|
|
46028
|
+
return result
|
|
46029
|
+
|
|
46030
|
+
def from_map(self, m: dict = None):
|
|
46031
|
+
m = m or dict()
|
|
46032
|
+
self.comments = []
|
|
46033
|
+
if m.get('Comments') is not None:
|
|
46034
|
+
for k in m.get('Comments'):
|
|
46035
|
+
temp_model = SubmitCustomSourceTopicAnalysisRequestNewsComments()
|
|
46036
|
+
self.comments.append(temp_model.from_map(k))
|
|
46037
|
+
if m.get('Content') is not None:
|
|
46038
|
+
self.content = m.get('Content')
|
|
46039
|
+
if m.get('PubTime') is not None:
|
|
46040
|
+
self.pub_time = m.get('PubTime')
|
|
46041
|
+
if m.get('Title') is not None:
|
|
46042
|
+
self.title = m.get('Title')
|
|
46043
|
+
if m.get('Url') is not None:
|
|
46044
|
+
self.url = m.get('Url')
|
|
46045
|
+
return self
|
|
46046
|
+
|
|
46047
|
+
|
|
46048
|
+
class SubmitCustomSourceTopicAnalysisRequest(TeaModel):
|
|
46049
|
+
def __init__(
|
|
46050
|
+
self,
|
|
46051
|
+
file_type: str = None,
|
|
46052
|
+
file_url: str = None,
|
|
46053
|
+
max_topic_size: int = None,
|
|
46054
|
+
news: List[SubmitCustomSourceTopicAnalysisRequestNews] = None,
|
|
46055
|
+
workspace_id: str = None,
|
|
46056
|
+
):
|
|
46057
|
+
self.file_type = file_type
|
|
46058
|
+
self.file_url = file_url
|
|
46059
|
+
self.max_topic_size = max_topic_size
|
|
46060
|
+
self.news = news
|
|
46061
|
+
# This parameter is required.
|
|
46062
|
+
self.workspace_id = workspace_id
|
|
46063
|
+
|
|
46064
|
+
def validate(self):
|
|
46065
|
+
if self.news:
|
|
46066
|
+
for k in self.news:
|
|
46067
|
+
if k:
|
|
46068
|
+
k.validate()
|
|
46069
|
+
|
|
46070
|
+
def to_map(self):
|
|
46071
|
+
_map = super().to_map()
|
|
46072
|
+
if _map is not None:
|
|
46073
|
+
return _map
|
|
46074
|
+
|
|
46075
|
+
result = dict()
|
|
46076
|
+
if self.file_type is not None:
|
|
46077
|
+
result['FileType'] = self.file_type
|
|
46078
|
+
if self.file_url is not None:
|
|
46079
|
+
result['FileUrl'] = self.file_url
|
|
46080
|
+
if self.max_topic_size is not None:
|
|
46081
|
+
result['MaxTopicSize'] = self.max_topic_size
|
|
46082
|
+
result['News'] = []
|
|
46083
|
+
if self.news is not None:
|
|
46084
|
+
for k in self.news:
|
|
46085
|
+
result['News'].append(k.to_map() if k else None)
|
|
46086
|
+
if self.workspace_id is not None:
|
|
46087
|
+
result['WorkspaceId'] = self.workspace_id
|
|
46088
|
+
return result
|
|
46089
|
+
|
|
46090
|
+
def from_map(self, m: dict = None):
|
|
46091
|
+
m = m or dict()
|
|
46092
|
+
if m.get('FileType') is not None:
|
|
46093
|
+
self.file_type = m.get('FileType')
|
|
46094
|
+
if m.get('FileUrl') is not None:
|
|
46095
|
+
self.file_url = m.get('FileUrl')
|
|
46096
|
+
if m.get('MaxTopicSize') is not None:
|
|
46097
|
+
self.max_topic_size = m.get('MaxTopicSize')
|
|
46098
|
+
self.news = []
|
|
46099
|
+
if m.get('News') is not None:
|
|
46100
|
+
for k in m.get('News'):
|
|
46101
|
+
temp_model = SubmitCustomSourceTopicAnalysisRequestNews()
|
|
46102
|
+
self.news.append(temp_model.from_map(k))
|
|
46103
|
+
if m.get('WorkspaceId') is not None:
|
|
46104
|
+
self.workspace_id = m.get('WorkspaceId')
|
|
46105
|
+
return self
|
|
46106
|
+
|
|
46107
|
+
|
|
46108
|
+
class SubmitCustomSourceTopicAnalysisShrinkRequest(TeaModel):
|
|
46109
|
+
def __init__(
|
|
46110
|
+
self,
|
|
46111
|
+
file_type: str = None,
|
|
46112
|
+
file_url: str = None,
|
|
46113
|
+
max_topic_size: int = None,
|
|
46114
|
+
news_shrink: str = None,
|
|
46115
|
+
workspace_id: str = None,
|
|
46116
|
+
):
|
|
46117
|
+
self.file_type = file_type
|
|
46118
|
+
self.file_url = file_url
|
|
46119
|
+
self.max_topic_size = max_topic_size
|
|
46120
|
+
self.news_shrink = news_shrink
|
|
46121
|
+
# This parameter is required.
|
|
46122
|
+
self.workspace_id = workspace_id
|
|
46123
|
+
|
|
46124
|
+
def validate(self):
|
|
46125
|
+
pass
|
|
46126
|
+
|
|
46127
|
+
def to_map(self):
|
|
46128
|
+
_map = super().to_map()
|
|
46129
|
+
if _map is not None:
|
|
46130
|
+
return _map
|
|
46131
|
+
|
|
46132
|
+
result = dict()
|
|
46133
|
+
if self.file_type is not None:
|
|
46134
|
+
result['FileType'] = self.file_type
|
|
46135
|
+
if self.file_url is not None:
|
|
46136
|
+
result['FileUrl'] = self.file_url
|
|
46137
|
+
if self.max_topic_size is not None:
|
|
46138
|
+
result['MaxTopicSize'] = self.max_topic_size
|
|
46139
|
+
if self.news_shrink is not None:
|
|
46140
|
+
result['News'] = self.news_shrink
|
|
46141
|
+
if self.workspace_id is not None:
|
|
46142
|
+
result['WorkspaceId'] = self.workspace_id
|
|
46143
|
+
return result
|
|
46144
|
+
|
|
46145
|
+
def from_map(self, m: dict = None):
|
|
46146
|
+
m = m or dict()
|
|
46147
|
+
if m.get('FileType') is not None:
|
|
46148
|
+
self.file_type = m.get('FileType')
|
|
46149
|
+
if m.get('FileUrl') is not None:
|
|
46150
|
+
self.file_url = m.get('FileUrl')
|
|
46151
|
+
if m.get('MaxTopicSize') is not None:
|
|
46152
|
+
self.max_topic_size = m.get('MaxTopicSize')
|
|
46153
|
+
if m.get('News') is not None:
|
|
46154
|
+
self.news_shrink = m.get('News')
|
|
46155
|
+
if m.get('WorkspaceId') is not None:
|
|
46156
|
+
self.workspace_id = m.get('WorkspaceId')
|
|
46157
|
+
return self
|
|
46158
|
+
|
|
46159
|
+
|
|
46160
|
+
class SubmitCustomSourceTopicAnalysisResponseBodyData(TeaModel):
|
|
46161
|
+
def __init__(
|
|
46162
|
+
self,
|
|
46163
|
+
task_id: str = None,
|
|
46164
|
+
task_name: str = None,
|
|
46165
|
+
):
|
|
46166
|
+
self.task_id = task_id
|
|
46167
|
+
self.task_name = task_name
|
|
46168
|
+
|
|
46169
|
+
def validate(self):
|
|
46170
|
+
pass
|
|
46171
|
+
|
|
46172
|
+
def to_map(self):
|
|
46173
|
+
_map = super().to_map()
|
|
46174
|
+
if _map is not None:
|
|
46175
|
+
return _map
|
|
46176
|
+
|
|
46177
|
+
result = dict()
|
|
46178
|
+
if self.task_id is not None:
|
|
46179
|
+
result['TaskId'] = self.task_id
|
|
46180
|
+
if self.task_name is not None:
|
|
46181
|
+
result['TaskName'] = self.task_name
|
|
46182
|
+
return result
|
|
46183
|
+
|
|
46184
|
+
def from_map(self, m: dict = None):
|
|
46185
|
+
m = m or dict()
|
|
46186
|
+
if m.get('TaskId') is not None:
|
|
46187
|
+
self.task_id = m.get('TaskId')
|
|
46188
|
+
if m.get('TaskName') is not None:
|
|
46189
|
+
self.task_name = m.get('TaskName')
|
|
46190
|
+
return self
|
|
46191
|
+
|
|
46192
|
+
|
|
46193
|
+
class SubmitCustomSourceTopicAnalysisResponseBody(TeaModel):
|
|
46194
|
+
def __init__(
|
|
46195
|
+
self,
|
|
46196
|
+
code: str = None,
|
|
46197
|
+
data: SubmitCustomSourceTopicAnalysisResponseBodyData = None,
|
|
46198
|
+
http_status_code: int = None,
|
|
46199
|
+
message: str = None,
|
|
46200
|
+
request_id: str = None,
|
|
46201
|
+
success: bool = None,
|
|
46202
|
+
):
|
|
46203
|
+
self.code = code
|
|
46204
|
+
self.data = data
|
|
46205
|
+
self.http_status_code = http_status_code
|
|
46206
|
+
self.message = message
|
|
46207
|
+
self.request_id = request_id
|
|
46208
|
+
self.success = success
|
|
46209
|
+
|
|
46210
|
+
def validate(self):
|
|
46211
|
+
if self.data:
|
|
46212
|
+
self.data.validate()
|
|
46213
|
+
|
|
46214
|
+
def to_map(self):
|
|
46215
|
+
_map = super().to_map()
|
|
46216
|
+
if _map is not None:
|
|
46217
|
+
return _map
|
|
46218
|
+
|
|
46219
|
+
result = dict()
|
|
46220
|
+
if self.code is not None:
|
|
46221
|
+
result['Code'] = self.code
|
|
46222
|
+
if self.data is not None:
|
|
46223
|
+
result['Data'] = self.data.to_map()
|
|
46224
|
+
if self.http_status_code is not None:
|
|
46225
|
+
result['HttpStatusCode'] = self.http_status_code
|
|
46226
|
+
if self.message is not None:
|
|
46227
|
+
result['Message'] = self.message
|
|
46228
|
+
if self.request_id is not None:
|
|
46229
|
+
result['RequestId'] = self.request_id
|
|
46230
|
+
if self.success is not None:
|
|
46231
|
+
result['Success'] = self.success
|
|
46232
|
+
return result
|
|
46233
|
+
|
|
46234
|
+
def from_map(self, m: dict = None):
|
|
46235
|
+
m = m or dict()
|
|
46236
|
+
if m.get('Code') is not None:
|
|
46237
|
+
self.code = m.get('Code')
|
|
46238
|
+
if m.get('Data') is not None:
|
|
46239
|
+
temp_model = SubmitCustomSourceTopicAnalysisResponseBodyData()
|
|
46240
|
+
self.data = temp_model.from_map(m['Data'])
|
|
46241
|
+
if m.get('HttpStatusCode') is not None:
|
|
46242
|
+
self.http_status_code = m.get('HttpStatusCode')
|
|
46243
|
+
if m.get('Message') is not None:
|
|
46244
|
+
self.message = m.get('Message')
|
|
46245
|
+
if m.get('RequestId') is not None:
|
|
46246
|
+
self.request_id = m.get('RequestId')
|
|
46247
|
+
if m.get('Success') is not None:
|
|
46248
|
+
self.success = m.get('Success')
|
|
46249
|
+
return self
|
|
46250
|
+
|
|
46251
|
+
|
|
46252
|
+
class SubmitCustomSourceTopicAnalysisResponse(TeaModel):
|
|
46253
|
+
def __init__(
|
|
46254
|
+
self,
|
|
46255
|
+
headers: Dict[str, str] = None,
|
|
46256
|
+
status_code: int = None,
|
|
46257
|
+
body: SubmitCustomSourceTopicAnalysisResponseBody = None,
|
|
46258
|
+
):
|
|
46259
|
+
self.headers = headers
|
|
46260
|
+
self.status_code = status_code
|
|
46261
|
+
self.body = body
|
|
46262
|
+
|
|
46263
|
+
def validate(self):
|
|
46264
|
+
if self.body:
|
|
46265
|
+
self.body.validate()
|
|
46266
|
+
|
|
46267
|
+
def to_map(self):
|
|
46268
|
+
_map = super().to_map()
|
|
46269
|
+
if _map is not None:
|
|
46270
|
+
return _map
|
|
46271
|
+
|
|
46272
|
+
result = dict()
|
|
46273
|
+
if self.headers is not None:
|
|
46274
|
+
result['headers'] = self.headers
|
|
46275
|
+
if self.status_code is not None:
|
|
46276
|
+
result['statusCode'] = self.status_code
|
|
46277
|
+
if self.body is not None:
|
|
46278
|
+
result['body'] = self.body.to_map()
|
|
46279
|
+
return result
|
|
46280
|
+
|
|
46281
|
+
def from_map(self, m: dict = None):
|
|
46282
|
+
m = m or dict()
|
|
46283
|
+
if m.get('headers') is not None:
|
|
46284
|
+
self.headers = m.get('headers')
|
|
46285
|
+
if m.get('statusCode') is not None:
|
|
46286
|
+
self.status_code = m.get('statusCode')
|
|
46287
|
+
if m.get('body') is not None:
|
|
46288
|
+
temp_model = SubmitCustomSourceTopicAnalysisResponseBody()
|
|
46289
|
+
self.body = temp_model.from_map(m['body'])
|
|
46290
|
+
return self
|
|
46291
|
+
|
|
46292
|
+
|
|
45555
46293
|
class SubmitCustomTopicSelectionPerspectiveAnalysisTaskRequestDocuments(TeaModel):
|
|
45556
46294
|
def __init__(
|
|
45557
46295
|
self,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '1.26.5'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|