alibabacloud-aimiaobi20230801 1.23.1__tar.gz → 1.24.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.23.1 → alibabacloud_aimiaobi20230801-1.24.0}/ChangeLog.md +4 -0
- {alibabacloud_aimiaobi20230801-1.23.1 → alibabacloud_aimiaobi20230801-1.24.0}/PKG-INFO +1 -1
- alibabacloud_aimiaobi20230801-1.24.0/alibabacloud_aimiaobi20230801/__init__.py +1 -0
- {alibabacloud_aimiaobi20230801-1.23.1 → alibabacloud_aimiaobi20230801-1.24.0}/alibabacloud_aimiaobi20230801/client.py +320 -0
- {alibabacloud_aimiaobi20230801-1.23.1 → alibabacloud_aimiaobi20230801-1.24.0}/alibabacloud_aimiaobi20230801/models.py +749 -46
- {alibabacloud_aimiaobi20230801-1.23.1 → alibabacloud_aimiaobi20230801-1.24.0}/alibabacloud_aimiaobi20230801.egg-info/PKG-INFO +1 -1
- {alibabacloud_aimiaobi20230801-1.23.1 → alibabacloud_aimiaobi20230801-1.24.0}/setup.py +1 -1
- alibabacloud_aimiaobi20230801-1.23.1/alibabacloud_aimiaobi20230801/__init__.py +0 -1
- {alibabacloud_aimiaobi20230801-1.23.1 → alibabacloud_aimiaobi20230801-1.24.0}/LICENSE +0 -0
- {alibabacloud_aimiaobi20230801-1.23.1 → alibabacloud_aimiaobi20230801-1.24.0}/MANIFEST.in +0 -0
- {alibabacloud_aimiaobi20230801-1.23.1 → alibabacloud_aimiaobi20230801-1.24.0}/README-CN.md +0 -0
- {alibabacloud_aimiaobi20230801-1.23.1 → alibabacloud_aimiaobi20230801-1.24.0}/README.md +0 -0
- {alibabacloud_aimiaobi20230801-1.23.1 → alibabacloud_aimiaobi20230801-1.24.0}/alibabacloud_aimiaobi20230801.egg-info/SOURCES.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.23.1 → alibabacloud_aimiaobi20230801-1.24.0}/alibabacloud_aimiaobi20230801.egg-info/dependency_links.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.23.1 → alibabacloud_aimiaobi20230801-1.24.0}/alibabacloud_aimiaobi20230801.egg-info/requires.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.23.1 → alibabacloud_aimiaobi20230801-1.24.0}/alibabacloud_aimiaobi20230801.egg-info/top_level.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.23.1 → alibabacloud_aimiaobi20230801-1.24.0}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.24.0'
|
|
@@ -261,6 +261,110 @@ class Client(OpenApiClient):
|
|
|
261
261
|
runtime = util_models.RuntimeOptions()
|
|
262
262
|
return await self.cancel_async_task_with_options_async(request, runtime)
|
|
263
263
|
|
|
264
|
+
def cancel_audit_task_with_options(
|
|
265
|
+
self,
|
|
266
|
+
request: ai_miao_bi_20230801_models.CancelAuditTaskRequest,
|
|
267
|
+
runtime: util_models.RuntimeOptions,
|
|
268
|
+
) -> ai_miao_bi_20230801_models.CancelAuditTaskResponse:
|
|
269
|
+
"""
|
|
270
|
+
@summary 取消审核任务
|
|
271
|
+
|
|
272
|
+
@param request: CancelAuditTaskRequest
|
|
273
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
274
|
+
@return: CancelAuditTaskResponse
|
|
275
|
+
"""
|
|
276
|
+
UtilClient.validate_model(request)
|
|
277
|
+
body = {}
|
|
278
|
+
if not UtilClient.is_unset(request.article_id):
|
|
279
|
+
body['ArticleId'] = request.article_id
|
|
280
|
+
if not UtilClient.is_unset(request.content_audit_task_id):
|
|
281
|
+
body['ContentAuditTaskId'] = request.content_audit_task_id
|
|
282
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
283
|
+
body['WorkspaceId'] = request.workspace_id
|
|
284
|
+
req = open_api_models.OpenApiRequest(
|
|
285
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
286
|
+
)
|
|
287
|
+
params = open_api_models.Params(
|
|
288
|
+
action='CancelAuditTask',
|
|
289
|
+
version='2023-08-01',
|
|
290
|
+
protocol='HTTPS',
|
|
291
|
+
pathname='/',
|
|
292
|
+
method='POST',
|
|
293
|
+
auth_type='AK',
|
|
294
|
+
style='RPC',
|
|
295
|
+
req_body_type='formData',
|
|
296
|
+
body_type='json'
|
|
297
|
+
)
|
|
298
|
+
return TeaCore.from_map(
|
|
299
|
+
ai_miao_bi_20230801_models.CancelAuditTaskResponse(),
|
|
300
|
+
self.call_api(params, req, runtime)
|
|
301
|
+
)
|
|
302
|
+
|
|
303
|
+
async def cancel_audit_task_with_options_async(
|
|
304
|
+
self,
|
|
305
|
+
request: ai_miao_bi_20230801_models.CancelAuditTaskRequest,
|
|
306
|
+
runtime: util_models.RuntimeOptions,
|
|
307
|
+
) -> ai_miao_bi_20230801_models.CancelAuditTaskResponse:
|
|
308
|
+
"""
|
|
309
|
+
@summary 取消审核任务
|
|
310
|
+
|
|
311
|
+
@param request: CancelAuditTaskRequest
|
|
312
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
313
|
+
@return: CancelAuditTaskResponse
|
|
314
|
+
"""
|
|
315
|
+
UtilClient.validate_model(request)
|
|
316
|
+
body = {}
|
|
317
|
+
if not UtilClient.is_unset(request.article_id):
|
|
318
|
+
body['ArticleId'] = request.article_id
|
|
319
|
+
if not UtilClient.is_unset(request.content_audit_task_id):
|
|
320
|
+
body['ContentAuditTaskId'] = request.content_audit_task_id
|
|
321
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
322
|
+
body['WorkspaceId'] = request.workspace_id
|
|
323
|
+
req = open_api_models.OpenApiRequest(
|
|
324
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
325
|
+
)
|
|
326
|
+
params = open_api_models.Params(
|
|
327
|
+
action='CancelAuditTask',
|
|
328
|
+
version='2023-08-01',
|
|
329
|
+
protocol='HTTPS',
|
|
330
|
+
pathname='/',
|
|
331
|
+
method='POST',
|
|
332
|
+
auth_type='AK',
|
|
333
|
+
style='RPC',
|
|
334
|
+
req_body_type='formData',
|
|
335
|
+
body_type='json'
|
|
336
|
+
)
|
|
337
|
+
return TeaCore.from_map(
|
|
338
|
+
ai_miao_bi_20230801_models.CancelAuditTaskResponse(),
|
|
339
|
+
await self.call_api_async(params, req, runtime)
|
|
340
|
+
)
|
|
341
|
+
|
|
342
|
+
def cancel_audit_task(
|
|
343
|
+
self,
|
|
344
|
+
request: ai_miao_bi_20230801_models.CancelAuditTaskRequest,
|
|
345
|
+
) -> ai_miao_bi_20230801_models.CancelAuditTaskResponse:
|
|
346
|
+
"""
|
|
347
|
+
@summary 取消审核任务
|
|
348
|
+
|
|
349
|
+
@param request: CancelAuditTaskRequest
|
|
350
|
+
@return: CancelAuditTaskResponse
|
|
351
|
+
"""
|
|
352
|
+
runtime = util_models.RuntimeOptions()
|
|
353
|
+
return self.cancel_audit_task_with_options(request, runtime)
|
|
354
|
+
|
|
355
|
+
async def cancel_audit_task_async(
|
|
356
|
+
self,
|
|
357
|
+
request: ai_miao_bi_20230801_models.CancelAuditTaskRequest,
|
|
358
|
+
) -> ai_miao_bi_20230801_models.CancelAuditTaskResponse:
|
|
359
|
+
"""
|
|
360
|
+
@summary 取消审核任务
|
|
361
|
+
|
|
362
|
+
@param request: CancelAuditTaskRequest
|
|
363
|
+
@return: CancelAuditTaskResponse
|
|
364
|
+
"""
|
|
365
|
+
runtime = util_models.RuntimeOptions()
|
|
366
|
+
return await self.cancel_audit_task_with_options_async(request, runtime)
|
|
367
|
+
|
|
264
368
|
def clear_intervenes_with_options(
|
|
265
369
|
self,
|
|
266
370
|
request: ai_miao_bi_20230801_models.ClearIntervenesRequest,
|
|
@@ -9625,6 +9729,110 @@ class Client(OpenApiClient):
|
|
|
9625
9729
|
runtime = util_models.RuntimeOptions()
|
|
9626
9730
|
return await self.query_async_task_with_options_async(request, runtime)
|
|
9627
9731
|
|
|
9732
|
+
def query_audit_task_with_options(
|
|
9733
|
+
self,
|
|
9734
|
+
request: ai_miao_bi_20230801_models.QueryAuditTaskRequest,
|
|
9735
|
+
runtime: util_models.RuntimeOptions,
|
|
9736
|
+
) -> ai_miao_bi_20230801_models.QueryAuditTaskResponse:
|
|
9737
|
+
"""
|
|
9738
|
+
@summary 查询审核结果
|
|
9739
|
+
|
|
9740
|
+
@param request: QueryAuditTaskRequest
|
|
9741
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
9742
|
+
@return: QueryAuditTaskResponse
|
|
9743
|
+
"""
|
|
9744
|
+
UtilClient.validate_model(request)
|
|
9745
|
+
body = {}
|
|
9746
|
+
if not UtilClient.is_unset(request.article_id):
|
|
9747
|
+
body['ArticleId'] = request.article_id
|
|
9748
|
+
if not UtilClient.is_unset(request.content_audit_task_id):
|
|
9749
|
+
body['ContentAuditTaskId'] = request.content_audit_task_id
|
|
9750
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
9751
|
+
body['WorkspaceId'] = request.workspace_id
|
|
9752
|
+
req = open_api_models.OpenApiRequest(
|
|
9753
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
9754
|
+
)
|
|
9755
|
+
params = open_api_models.Params(
|
|
9756
|
+
action='QueryAuditTask',
|
|
9757
|
+
version='2023-08-01',
|
|
9758
|
+
protocol='HTTPS',
|
|
9759
|
+
pathname='/',
|
|
9760
|
+
method='POST',
|
|
9761
|
+
auth_type='AK',
|
|
9762
|
+
style='RPC',
|
|
9763
|
+
req_body_type='formData',
|
|
9764
|
+
body_type='json'
|
|
9765
|
+
)
|
|
9766
|
+
return TeaCore.from_map(
|
|
9767
|
+
ai_miao_bi_20230801_models.QueryAuditTaskResponse(),
|
|
9768
|
+
self.call_api(params, req, runtime)
|
|
9769
|
+
)
|
|
9770
|
+
|
|
9771
|
+
async def query_audit_task_with_options_async(
|
|
9772
|
+
self,
|
|
9773
|
+
request: ai_miao_bi_20230801_models.QueryAuditTaskRequest,
|
|
9774
|
+
runtime: util_models.RuntimeOptions,
|
|
9775
|
+
) -> ai_miao_bi_20230801_models.QueryAuditTaskResponse:
|
|
9776
|
+
"""
|
|
9777
|
+
@summary 查询审核结果
|
|
9778
|
+
|
|
9779
|
+
@param request: QueryAuditTaskRequest
|
|
9780
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
9781
|
+
@return: QueryAuditTaskResponse
|
|
9782
|
+
"""
|
|
9783
|
+
UtilClient.validate_model(request)
|
|
9784
|
+
body = {}
|
|
9785
|
+
if not UtilClient.is_unset(request.article_id):
|
|
9786
|
+
body['ArticleId'] = request.article_id
|
|
9787
|
+
if not UtilClient.is_unset(request.content_audit_task_id):
|
|
9788
|
+
body['ContentAuditTaskId'] = request.content_audit_task_id
|
|
9789
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
9790
|
+
body['WorkspaceId'] = request.workspace_id
|
|
9791
|
+
req = open_api_models.OpenApiRequest(
|
|
9792
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
9793
|
+
)
|
|
9794
|
+
params = open_api_models.Params(
|
|
9795
|
+
action='QueryAuditTask',
|
|
9796
|
+
version='2023-08-01',
|
|
9797
|
+
protocol='HTTPS',
|
|
9798
|
+
pathname='/',
|
|
9799
|
+
method='POST',
|
|
9800
|
+
auth_type='AK',
|
|
9801
|
+
style='RPC',
|
|
9802
|
+
req_body_type='formData',
|
|
9803
|
+
body_type='json'
|
|
9804
|
+
)
|
|
9805
|
+
return TeaCore.from_map(
|
|
9806
|
+
ai_miao_bi_20230801_models.QueryAuditTaskResponse(),
|
|
9807
|
+
await self.call_api_async(params, req, runtime)
|
|
9808
|
+
)
|
|
9809
|
+
|
|
9810
|
+
def query_audit_task(
|
|
9811
|
+
self,
|
|
9812
|
+
request: ai_miao_bi_20230801_models.QueryAuditTaskRequest,
|
|
9813
|
+
) -> ai_miao_bi_20230801_models.QueryAuditTaskResponse:
|
|
9814
|
+
"""
|
|
9815
|
+
@summary 查询审核结果
|
|
9816
|
+
|
|
9817
|
+
@param request: QueryAuditTaskRequest
|
|
9818
|
+
@return: QueryAuditTaskResponse
|
|
9819
|
+
"""
|
|
9820
|
+
runtime = util_models.RuntimeOptions()
|
|
9821
|
+
return self.query_audit_task_with_options(request, runtime)
|
|
9822
|
+
|
|
9823
|
+
async def query_audit_task_async(
|
|
9824
|
+
self,
|
|
9825
|
+
request: ai_miao_bi_20230801_models.QueryAuditTaskRequest,
|
|
9826
|
+
) -> ai_miao_bi_20230801_models.QueryAuditTaskResponse:
|
|
9827
|
+
"""
|
|
9828
|
+
@summary 查询审核结果
|
|
9829
|
+
|
|
9830
|
+
@param request: QueryAuditTaskRequest
|
|
9831
|
+
@return: QueryAuditTaskResponse
|
|
9832
|
+
"""
|
|
9833
|
+
runtime = util_models.RuntimeOptions()
|
|
9834
|
+
return await self.query_audit_task_with_options_async(request, runtime)
|
|
9835
|
+
|
|
9628
9836
|
def run_abbreviation_content_with_options(
|
|
9629
9837
|
self,
|
|
9630
9838
|
request: ai_miao_bi_20230801_models.RunAbbreviationContentRequest,
|
|
@@ -14133,6 +14341,118 @@ class Client(OpenApiClient):
|
|
|
14133
14341
|
runtime = util_models.RuntimeOptions()
|
|
14134
14342
|
return await self.submit_async_task_with_options_async(request, runtime)
|
|
14135
14343
|
|
|
14344
|
+
def submit_audit_task_with_options(
|
|
14345
|
+
self,
|
|
14346
|
+
request: ai_miao_bi_20230801_models.SubmitAuditTaskRequest,
|
|
14347
|
+
runtime: util_models.RuntimeOptions,
|
|
14348
|
+
) -> ai_miao_bi_20230801_models.SubmitAuditTaskResponse:
|
|
14349
|
+
"""
|
|
14350
|
+
@summary 提交审核任务
|
|
14351
|
+
|
|
14352
|
+
@param request: SubmitAuditTaskRequest
|
|
14353
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
14354
|
+
@return: SubmitAuditTaskResponse
|
|
14355
|
+
"""
|
|
14356
|
+
UtilClient.validate_model(request)
|
|
14357
|
+
body = {}
|
|
14358
|
+
if not UtilClient.is_unset(request.article_id):
|
|
14359
|
+
body['ArticleId'] = request.article_id
|
|
14360
|
+
if not UtilClient.is_unset(request.content):
|
|
14361
|
+
body['Content'] = request.content
|
|
14362
|
+
if not UtilClient.is_unset(request.html_content):
|
|
14363
|
+
body['HtmlContent'] = request.html_content
|
|
14364
|
+
if not UtilClient.is_unset(request.title):
|
|
14365
|
+
body['Title'] = request.title
|
|
14366
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
14367
|
+
body['WorkspaceId'] = request.workspace_id
|
|
14368
|
+
req = open_api_models.OpenApiRequest(
|
|
14369
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
14370
|
+
)
|
|
14371
|
+
params = open_api_models.Params(
|
|
14372
|
+
action='SubmitAuditTask',
|
|
14373
|
+
version='2023-08-01',
|
|
14374
|
+
protocol='HTTPS',
|
|
14375
|
+
pathname='/',
|
|
14376
|
+
method='POST',
|
|
14377
|
+
auth_type='AK',
|
|
14378
|
+
style='RPC',
|
|
14379
|
+
req_body_type='formData',
|
|
14380
|
+
body_type='json'
|
|
14381
|
+
)
|
|
14382
|
+
return TeaCore.from_map(
|
|
14383
|
+
ai_miao_bi_20230801_models.SubmitAuditTaskResponse(),
|
|
14384
|
+
self.call_api(params, req, runtime)
|
|
14385
|
+
)
|
|
14386
|
+
|
|
14387
|
+
async def submit_audit_task_with_options_async(
|
|
14388
|
+
self,
|
|
14389
|
+
request: ai_miao_bi_20230801_models.SubmitAuditTaskRequest,
|
|
14390
|
+
runtime: util_models.RuntimeOptions,
|
|
14391
|
+
) -> ai_miao_bi_20230801_models.SubmitAuditTaskResponse:
|
|
14392
|
+
"""
|
|
14393
|
+
@summary 提交审核任务
|
|
14394
|
+
|
|
14395
|
+
@param request: SubmitAuditTaskRequest
|
|
14396
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
14397
|
+
@return: SubmitAuditTaskResponse
|
|
14398
|
+
"""
|
|
14399
|
+
UtilClient.validate_model(request)
|
|
14400
|
+
body = {}
|
|
14401
|
+
if not UtilClient.is_unset(request.article_id):
|
|
14402
|
+
body['ArticleId'] = request.article_id
|
|
14403
|
+
if not UtilClient.is_unset(request.content):
|
|
14404
|
+
body['Content'] = request.content
|
|
14405
|
+
if not UtilClient.is_unset(request.html_content):
|
|
14406
|
+
body['HtmlContent'] = request.html_content
|
|
14407
|
+
if not UtilClient.is_unset(request.title):
|
|
14408
|
+
body['Title'] = request.title
|
|
14409
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
14410
|
+
body['WorkspaceId'] = request.workspace_id
|
|
14411
|
+
req = open_api_models.OpenApiRequest(
|
|
14412
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
14413
|
+
)
|
|
14414
|
+
params = open_api_models.Params(
|
|
14415
|
+
action='SubmitAuditTask',
|
|
14416
|
+
version='2023-08-01',
|
|
14417
|
+
protocol='HTTPS',
|
|
14418
|
+
pathname='/',
|
|
14419
|
+
method='POST',
|
|
14420
|
+
auth_type='AK',
|
|
14421
|
+
style='RPC',
|
|
14422
|
+
req_body_type='formData',
|
|
14423
|
+
body_type='json'
|
|
14424
|
+
)
|
|
14425
|
+
return TeaCore.from_map(
|
|
14426
|
+
ai_miao_bi_20230801_models.SubmitAuditTaskResponse(),
|
|
14427
|
+
await self.call_api_async(params, req, runtime)
|
|
14428
|
+
)
|
|
14429
|
+
|
|
14430
|
+
def submit_audit_task(
|
|
14431
|
+
self,
|
|
14432
|
+
request: ai_miao_bi_20230801_models.SubmitAuditTaskRequest,
|
|
14433
|
+
) -> ai_miao_bi_20230801_models.SubmitAuditTaskResponse:
|
|
14434
|
+
"""
|
|
14435
|
+
@summary 提交审核任务
|
|
14436
|
+
|
|
14437
|
+
@param request: SubmitAuditTaskRequest
|
|
14438
|
+
@return: SubmitAuditTaskResponse
|
|
14439
|
+
"""
|
|
14440
|
+
runtime = util_models.RuntimeOptions()
|
|
14441
|
+
return self.submit_audit_task_with_options(request, runtime)
|
|
14442
|
+
|
|
14443
|
+
async def submit_audit_task_async(
|
|
14444
|
+
self,
|
|
14445
|
+
request: ai_miao_bi_20230801_models.SubmitAuditTaskRequest,
|
|
14446
|
+
) -> ai_miao_bi_20230801_models.SubmitAuditTaskResponse:
|
|
14447
|
+
"""
|
|
14448
|
+
@summary 提交审核任务
|
|
14449
|
+
|
|
14450
|
+
@param request: SubmitAuditTaskRequest
|
|
14451
|
+
@return: SubmitAuditTaskResponse
|
|
14452
|
+
"""
|
|
14453
|
+
runtime = util_models.RuntimeOptions()
|
|
14454
|
+
return await self.submit_audit_task_with_options_async(request, runtime)
|
|
14455
|
+
|
|
14136
14456
|
def submit_custom_hot_topic_broadcast_job_with_options(
|
|
14137
14457
|
self,
|
|
14138
14458
|
tmp_req: ai_miao_bi_20230801_models.SubmitCustomHotTopicBroadcastJobRequest,
|
|
@@ -851,6 +851,144 @@ class CancelAsyncTaskResponse(TeaModel):
|
|
|
851
851
|
return self
|
|
852
852
|
|
|
853
853
|
|
|
854
|
+
class CancelAuditTaskRequest(TeaModel):
|
|
855
|
+
def __init__(
|
|
856
|
+
self,
|
|
857
|
+
article_id: str = None,
|
|
858
|
+
content_audit_task_id: str = None,
|
|
859
|
+
workspace_id: str = None,
|
|
860
|
+
):
|
|
861
|
+
self.article_id = article_id
|
|
862
|
+
self.content_audit_task_id = content_audit_task_id
|
|
863
|
+
self.workspace_id = workspace_id
|
|
864
|
+
|
|
865
|
+
def validate(self):
|
|
866
|
+
pass
|
|
867
|
+
|
|
868
|
+
def to_map(self):
|
|
869
|
+
_map = super().to_map()
|
|
870
|
+
if _map is not None:
|
|
871
|
+
return _map
|
|
872
|
+
|
|
873
|
+
result = dict()
|
|
874
|
+
if self.article_id is not None:
|
|
875
|
+
result['ArticleId'] = self.article_id
|
|
876
|
+
if self.content_audit_task_id is not None:
|
|
877
|
+
result['ContentAuditTaskId'] = self.content_audit_task_id
|
|
878
|
+
if self.workspace_id is not None:
|
|
879
|
+
result['WorkspaceId'] = self.workspace_id
|
|
880
|
+
return result
|
|
881
|
+
|
|
882
|
+
def from_map(self, m: dict = None):
|
|
883
|
+
m = m or dict()
|
|
884
|
+
if m.get('ArticleId') is not None:
|
|
885
|
+
self.article_id = m.get('ArticleId')
|
|
886
|
+
if m.get('ContentAuditTaskId') is not None:
|
|
887
|
+
self.content_audit_task_id = m.get('ContentAuditTaskId')
|
|
888
|
+
if m.get('WorkspaceId') is not None:
|
|
889
|
+
self.workspace_id = m.get('WorkspaceId')
|
|
890
|
+
return self
|
|
891
|
+
|
|
892
|
+
|
|
893
|
+
class CancelAuditTaskResponseBody(TeaModel):
|
|
894
|
+
def __init__(
|
|
895
|
+
self,
|
|
896
|
+
code: str = None,
|
|
897
|
+
data: bool = None,
|
|
898
|
+
http_status_code: int = None,
|
|
899
|
+
message: str = None,
|
|
900
|
+
request_id: str = None,
|
|
901
|
+
success: bool = None,
|
|
902
|
+
):
|
|
903
|
+
self.code = code
|
|
904
|
+
self.data = data
|
|
905
|
+
self.http_status_code = http_status_code
|
|
906
|
+
self.message = message
|
|
907
|
+
# Id of the request
|
|
908
|
+
self.request_id = request_id
|
|
909
|
+
self.success = success
|
|
910
|
+
|
|
911
|
+
def validate(self):
|
|
912
|
+
pass
|
|
913
|
+
|
|
914
|
+
def to_map(self):
|
|
915
|
+
_map = super().to_map()
|
|
916
|
+
if _map is not None:
|
|
917
|
+
return _map
|
|
918
|
+
|
|
919
|
+
result = dict()
|
|
920
|
+
if self.code is not None:
|
|
921
|
+
result['Code'] = self.code
|
|
922
|
+
if self.data is not None:
|
|
923
|
+
result['Data'] = self.data
|
|
924
|
+
if self.http_status_code is not None:
|
|
925
|
+
result['HttpStatusCode'] = self.http_status_code
|
|
926
|
+
if self.message is not None:
|
|
927
|
+
result['Message'] = self.message
|
|
928
|
+
if self.request_id is not None:
|
|
929
|
+
result['RequestId'] = self.request_id
|
|
930
|
+
if self.success is not None:
|
|
931
|
+
result['Success'] = self.success
|
|
932
|
+
return result
|
|
933
|
+
|
|
934
|
+
def from_map(self, m: dict = None):
|
|
935
|
+
m = m or dict()
|
|
936
|
+
if m.get('Code') is not None:
|
|
937
|
+
self.code = m.get('Code')
|
|
938
|
+
if m.get('Data') is not None:
|
|
939
|
+
self.data = m.get('Data')
|
|
940
|
+
if m.get('HttpStatusCode') is not None:
|
|
941
|
+
self.http_status_code = m.get('HttpStatusCode')
|
|
942
|
+
if m.get('Message') is not None:
|
|
943
|
+
self.message = m.get('Message')
|
|
944
|
+
if m.get('RequestId') is not None:
|
|
945
|
+
self.request_id = m.get('RequestId')
|
|
946
|
+
if m.get('Success') is not None:
|
|
947
|
+
self.success = m.get('Success')
|
|
948
|
+
return self
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
class CancelAuditTaskResponse(TeaModel):
|
|
952
|
+
def __init__(
|
|
953
|
+
self,
|
|
954
|
+
headers: Dict[str, str] = None,
|
|
955
|
+
status_code: int = None,
|
|
956
|
+
body: CancelAuditTaskResponseBody = None,
|
|
957
|
+
):
|
|
958
|
+
self.headers = headers
|
|
959
|
+
self.status_code = status_code
|
|
960
|
+
self.body = body
|
|
961
|
+
|
|
962
|
+
def validate(self):
|
|
963
|
+
if self.body:
|
|
964
|
+
self.body.validate()
|
|
965
|
+
|
|
966
|
+
def to_map(self):
|
|
967
|
+
_map = super().to_map()
|
|
968
|
+
if _map is not None:
|
|
969
|
+
return _map
|
|
970
|
+
|
|
971
|
+
result = dict()
|
|
972
|
+
if self.headers is not None:
|
|
973
|
+
result['headers'] = self.headers
|
|
974
|
+
if self.status_code is not None:
|
|
975
|
+
result['statusCode'] = self.status_code
|
|
976
|
+
if self.body is not None:
|
|
977
|
+
result['body'] = self.body.to_map()
|
|
978
|
+
return result
|
|
979
|
+
|
|
980
|
+
def from_map(self, m: dict = None):
|
|
981
|
+
m = m or dict()
|
|
982
|
+
if m.get('headers') is not None:
|
|
983
|
+
self.headers = m.get('headers')
|
|
984
|
+
if m.get('statusCode') is not None:
|
|
985
|
+
self.status_code = m.get('statusCode')
|
|
986
|
+
if m.get('body') is not None:
|
|
987
|
+
temp_model = CancelAuditTaskResponseBody()
|
|
988
|
+
self.body = temp_model.from_map(m['body'])
|
|
989
|
+
return self
|
|
990
|
+
|
|
991
|
+
|
|
854
992
|
class ClearIntervenesRequest(TeaModel):
|
|
855
993
|
def __init__(
|
|
856
994
|
self,
|
|
@@ -25372,15 +25510,15 @@ class QueryAsyncTaskResponse(TeaModel):
|
|
|
25372
25510
|
return self
|
|
25373
25511
|
|
|
25374
25512
|
|
|
25375
|
-
class
|
|
25513
|
+
class QueryAuditTaskRequest(TeaModel):
|
|
25376
25514
|
def __init__(
|
|
25377
25515
|
self,
|
|
25378
|
-
|
|
25516
|
+
article_id: str = None,
|
|
25517
|
+
content_audit_task_id: str = None,
|
|
25379
25518
|
workspace_id: str = None,
|
|
25380
25519
|
):
|
|
25381
|
-
|
|
25382
|
-
self.
|
|
25383
|
-
# This parameter is required.
|
|
25520
|
+
self.article_id = article_id
|
|
25521
|
+
self.content_audit_task_id = content_audit_task_id
|
|
25384
25522
|
self.workspace_id = workspace_id
|
|
25385
25523
|
|
|
25386
25524
|
def validate(self):
|
|
@@ -25392,39 +25530,39 @@ class RunAbbreviationContentRequest(TeaModel):
|
|
|
25392
25530
|
return _map
|
|
25393
25531
|
|
|
25394
25532
|
result = dict()
|
|
25395
|
-
if self.
|
|
25396
|
-
result['
|
|
25533
|
+
if self.article_id is not None:
|
|
25534
|
+
result['ArticleId'] = self.article_id
|
|
25535
|
+
if self.content_audit_task_id is not None:
|
|
25536
|
+
result['ContentAuditTaskId'] = self.content_audit_task_id
|
|
25397
25537
|
if self.workspace_id is not None:
|
|
25398
25538
|
result['WorkspaceId'] = self.workspace_id
|
|
25399
25539
|
return result
|
|
25400
25540
|
|
|
25401
25541
|
def from_map(self, m: dict = None):
|
|
25402
25542
|
m = m or dict()
|
|
25403
|
-
if m.get('
|
|
25404
|
-
self.
|
|
25543
|
+
if m.get('ArticleId') is not None:
|
|
25544
|
+
self.article_id = m.get('ArticleId')
|
|
25545
|
+
if m.get('ContentAuditTaskId') is not None:
|
|
25546
|
+
self.content_audit_task_id = m.get('ContentAuditTaskId')
|
|
25405
25547
|
if m.get('WorkspaceId') is not None:
|
|
25406
25548
|
self.workspace_id = m.get('WorkspaceId')
|
|
25407
25549
|
return self
|
|
25408
25550
|
|
|
25409
25551
|
|
|
25410
|
-
class
|
|
25552
|
+
class QueryAuditTaskResponseBodyDataResponseHeader(TeaModel):
|
|
25411
25553
|
def __init__(
|
|
25412
25554
|
self,
|
|
25413
25555
|
error_code: str = None,
|
|
25414
25556
|
error_message: str = None,
|
|
25415
25557
|
event: str = None,
|
|
25416
|
-
event_info: str = None,
|
|
25417
25558
|
session_id: str = None,
|
|
25418
25559
|
task_id: str = None,
|
|
25419
|
-
trace_id: str = None,
|
|
25420
25560
|
):
|
|
25421
25561
|
self.error_code = error_code
|
|
25422
25562
|
self.error_message = error_message
|
|
25423
25563
|
self.event = event
|
|
25424
|
-
self.event_info = event_info
|
|
25425
25564
|
self.session_id = session_id
|
|
25426
25565
|
self.task_id = task_id
|
|
25427
|
-
self.trace_id = trace_id
|
|
25428
25566
|
|
|
25429
25567
|
def validate(self):
|
|
25430
25568
|
pass
|
|
@@ -25441,14 +25579,10 @@ class RunAbbreviationContentResponseBodyHeader(TeaModel):
|
|
|
25441
25579
|
result['ErrorMessage'] = self.error_message
|
|
25442
25580
|
if self.event is not None:
|
|
25443
25581
|
result['Event'] = self.event
|
|
25444
|
-
if self.event_info is not None:
|
|
25445
|
-
result['EventInfo'] = self.event_info
|
|
25446
25582
|
if self.session_id is not None:
|
|
25447
25583
|
result['SessionId'] = self.session_id
|
|
25448
25584
|
if self.task_id is not None:
|
|
25449
25585
|
result['TaskId'] = self.task_id
|
|
25450
|
-
if self.trace_id is not None:
|
|
25451
|
-
result['TraceId'] = self.trace_id
|
|
25452
25586
|
return result
|
|
25453
25587
|
|
|
25454
25588
|
def from_map(self, m: dict = None):
|
|
@@ -25459,18 +25593,14 @@ class RunAbbreviationContentResponseBodyHeader(TeaModel):
|
|
|
25459
25593
|
self.error_message = m.get('ErrorMessage')
|
|
25460
25594
|
if m.get('Event') is not None:
|
|
25461
25595
|
self.event = m.get('Event')
|
|
25462
|
-
if m.get('EventInfo') is not None:
|
|
25463
|
-
self.event_info = m.get('EventInfo')
|
|
25464
25596
|
if m.get('SessionId') is not None:
|
|
25465
25597
|
self.session_id = m.get('SessionId')
|
|
25466
25598
|
if m.get('TaskId') is not None:
|
|
25467
25599
|
self.task_id = m.get('TaskId')
|
|
25468
|
-
if m.get('TraceId') is not None:
|
|
25469
|
-
self.trace_id = m.get('TraceId')
|
|
25470
25600
|
return self
|
|
25471
25601
|
|
|
25472
25602
|
|
|
25473
|
-
class
|
|
25603
|
+
class QueryAuditTaskResponseBodyDataResponsePayloadOutput(TeaModel):
|
|
25474
25604
|
def __init__(
|
|
25475
25605
|
self,
|
|
25476
25606
|
text: str = None,
|
|
@@ -25497,7 +25627,7 @@ class RunAbbreviationContentResponseBodyPayloadOutput(TeaModel):
|
|
|
25497
25627
|
return self
|
|
25498
25628
|
|
|
25499
25629
|
|
|
25500
|
-
class
|
|
25630
|
+
class QueryAuditTaskResponseBodyDataResponsePayloadUsage(TeaModel):
|
|
25501
25631
|
def __init__(
|
|
25502
25632
|
self,
|
|
25503
25633
|
input_tokens: int = None,
|
|
@@ -25536,11 +25666,11 @@ class RunAbbreviationContentResponseBodyPayloadUsage(TeaModel):
|
|
|
25536
25666
|
return self
|
|
25537
25667
|
|
|
25538
25668
|
|
|
25539
|
-
class
|
|
25669
|
+
class QueryAuditTaskResponseBodyDataResponsePayload(TeaModel):
|
|
25540
25670
|
def __init__(
|
|
25541
25671
|
self,
|
|
25542
|
-
output:
|
|
25543
|
-
usage:
|
|
25672
|
+
output: QueryAuditTaskResponseBodyDataResponsePayloadOutput = None,
|
|
25673
|
+
usage: QueryAuditTaskResponseBodyDataResponsePayloadUsage = None,
|
|
25544
25674
|
):
|
|
25545
25675
|
self.output = output
|
|
25546
25676
|
self.usage = usage
|
|
@@ -25566,26 +25696,22 @@ class RunAbbreviationContentResponseBodyPayload(TeaModel):
|
|
|
25566
25696
|
def from_map(self, m: dict = None):
|
|
25567
25697
|
m = m or dict()
|
|
25568
25698
|
if m.get('Output') is not None:
|
|
25569
|
-
temp_model =
|
|
25699
|
+
temp_model = QueryAuditTaskResponseBodyDataResponsePayloadOutput()
|
|
25570
25700
|
self.output = temp_model.from_map(m['Output'])
|
|
25571
25701
|
if m.get('Usage') is not None:
|
|
25572
|
-
temp_model =
|
|
25702
|
+
temp_model = QueryAuditTaskResponseBodyDataResponsePayloadUsage()
|
|
25573
25703
|
self.usage = temp_model.from_map(m['Usage'])
|
|
25574
25704
|
return self
|
|
25575
25705
|
|
|
25576
25706
|
|
|
25577
|
-
class
|
|
25707
|
+
class QueryAuditTaskResponseBodyDataResponse(TeaModel):
|
|
25578
25708
|
def __init__(
|
|
25579
25709
|
self,
|
|
25580
|
-
|
|
25581
|
-
|
|
25582
|
-
payload: RunAbbreviationContentResponseBodyPayload = None,
|
|
25583
|
-
request_id: str = None,
|
|
25710
|
+
header: QueryAuditTaskResponseBodyDataResponseHeader = None,
|
|
25711
|
+
payload: QueryAuditTaskResponseBodyDataResponsePayload = None,
|
|
25584
25712
|
):
|
|
25585
|
-
self.end = end
|
|
25586
25713
|
self.header = header
|
|
25587
25714
|
self.payload = payload
|
|
25588
|
-
self.request_id = request_id
|
|
25589
25715
|
|
|
25590
25716
|
def validate(self):
|
|
25591
25717
|
if self.header:
|
|
@@ -25599,37 +25725,435 @@ class RunAbbreviationContentResponseBody(TeaModel):
|
|
|
25599
25725
|
return _map
|
|
25600
25726
|
|
|
25601
25727
|
result = dict()
|
|
25602
|
-
if self.end is not None:
|
|
25603
|
-
result['End'] = self.end
|
|
25604
25728
|
if self.header is not None:
|
|
25605
25729
|
result['Header'] = self.header.to_map()
|
|
25606
25730
|
if self.payload is not None:
|
|
25607
25731
|
result['Payload'] = self.payload.to_map()
|
|
25608
|
-
if self.request_id is not None:
|
|
25609
|
-
result['RequestId'] = self.request_id
|
|
25610
25732
|
return result
|
|
25611
25733
|
|
|
25612
25734
|
def from_map(self, m: dict = None):
|
|
25613
25735
|
m = m or dict()
|
|
25614
|
-
if m.get('End') is not None:
|
|
25615
|
-
self.end = m.get('End')
|
|
25616
25736
|
if m.get('Header') is not None:
|
|
25617
|
-
temp_model =
|
|
25737
|
+
temp_model = QueryAuditTaskResponseBodyDataResponseHeader()
|
|
25618
25738
|
self.header = temp_model.from_map(m['Header'])
|
|
25619
25739
|
if m.get('Payload') is not None:
|
|
25620
|
-
temp_model =
|
|
25740
|
+
temp_model = QueryAuditTaskResponseBodyDataResponsePayload()
|
|
25621
25741
|
self.payload = temp_model.from_map(m['Payload'])
|
|
25742
|
+
return self
|
|
25743
|
+
|
|
25744
|
+
|
|
25745
|
+
class QueryAuditTaskResponseBodyData(TeaModel):
|
|
25746
|
+
def __init__(
|
|
25747
|
+
self,
|
|
25748
|
+
audit_time: str = None,
|
|
25749
|
+
content: str = None,
|
|
25750
|
+
response: QueryAuditTaskResponseBodyDataResponse = None,
|
|
25751
|
+
status: str = None,
|
|
25752
|
+
task_status: int = None,
|
|
25753
|
+
):
|
|
25754
|
+
self.audit_time = audit_time
|
|
25755
|
+
self.content = content
|
|
25756
|
+
self.response = response
|
|
25757
|
+
self.status = status
|
|
25758
|
+
self.task_status = task_status
|
|
25759
|
+
|
|
25760
|
+
def validate(self):
|
|
25761
|
+
if self.response:
|
|
25762
|
+
self.response.validate()
|
|
25763
|
+
|
|
25764
|
+
def to_map(self):
|
|
25765
|
+
_map = super().to_map()
|
|
25766
|
+
if _map is not None:
|
|
25767
|
+
return _map
|
|
25768
|
+
|
|
25769
|
+
result = dict()
|
|
25770
|
+
if self.audit_time is not None:
|
|
25771
|
+
result['AuditTime'] = self.audit_time
|
|
25772
|
+
if self.content is not None:
|
|
25773
|
+
result['Content'] = self.content
|
|
25774
|
+
if self.response is not None:
|
|
25775
|
+
result['Response'] = self.response.to_map()
|
|
25776
|
+
if self.status is not None:
|
|
25777
|
+
result['Status'] = self.status
|
|
25778
|
+
if self.task_status is not None:
|
|
25779
|
+
result['TaskStatus'] = self.task_status
|
|
25780
|
+
return result
|
|
25781
|
+
|
|
25782
|
+
def from_map(self, m: dict = None):
|
|
25783
|
+
m = m or dict()
|
|
25784
|
+
if m.get('AuditTime') is not None:
|
|
25785
|
+
self.audit_time = m.get('AuditTime')
|
|
25786
|
+
if m.get('Content') is not None:
|
|
25787
|
+
self.content = m.get('Content')
|
|
25788
|
+
if m.get('Response') is not None:
|
|
25789
|
+
temp_model = QueryAuditTaskResponseBodyDataResponse()
|
|
25790
|
+
self.response = temp_model.from_map(m['Response'])
|
|
25791
|
+
if m.get('Status') is not None:
|
|
25792
|
+
self.status = m.get('Status')
|
|
25793
|
+
if m.get('TaskStatus') is not None:
|
|
25794
|
+
self.task_status = m.get('TaskStatus')
|
|
25795
|
+
return self
|
|
25796
|
+
|
|
25797
|
+
|
|
25798
|
+
class QueryAuditTaskResponseBody(TeaModel):
|
|
25799
|
+
def __init__(
|
|
25800
|
+
self,
|
|
25801
|
+
code: str = None,
|
|
25802
|
+
data: QueryAuditTaskResponseBodyData = None,
|
|
25803
|
+
http_status_code: int = None,
|
|
25804
|
+
message: str = None,
|
|
25805
|
+
request_id: str = None,
|
|
25806
|
+
success: bool = None,
|
|
25807
|
+
):
|
|
25808
|
+
self.code = code
|
|
25809
|
+
self.data = data
|
|
25810
|
+
self.http_status_code = http_status_code
|
|
25811
|
+
self.message = message
|
|
25812
|
+
# Id of the request
|
|
25813
|
+
self.request_id = request_id
|
|
25814
|
+
self.success = success
|
|
25815
|
+
|
|
25816
|
+
def validate(self):
|
|
25817
|
+
if self.data:
|
|
25818
|
+
self.data.validate()
|
|
25819
|
+
|
|
25820
|
+
def to_map(self):
|
|
25821
|
+
_map = super().to_map()
|
|
25822
|
+
if _map is not None:
|
|
25823
|
+
return _map
|
|
25824
|
+
|
|
25825
|
+
result = dict()
|
|
25826
|
+
if self.code is not None:
|
|
25827
|
+
result['Code'] = self.code
|
|
25828
|
+
if self.data is not None:
|
|
25829
|
+
result['Data'] = self.data.to_map()
|
|
25830
|
+
if self.http_status_code is not None:
|
|
25831
|
+
result['HttpStatusCode'] = self.http_status_code
|
|
25832
|
+
if self.message is not None:
|
|
25833
|
+
result['Message'] = self.message
|
|
25834
|
+
if self.request_id is not None:
|
|
25835
|
+
result['RequestId'] = self.request_id
|
|
25836
|
+
if self.success is not None:
|
|
25837
|
+
result['Success'] = self.success
|
|
25838
|
+
return result
|
|
25839
|
+
|
|
25840
|
+
def from_map(self, m: dict = None):
|
|
25841
|
+
m = m or dict()
|
|
25842
|
+
if m.get('Code') is not None:
|
|
25843
|
+
self.code = m.get('Code')
|
|
25844
|
+
if m.get('Data') is not None:
|
|
25845
|
+
temp_model = QueryAuditTaskResponseBodyData()
|
|
25846
|
+
self.data = temp_model.from_map(m['Data'])
|
|
25847
|
+
if m.get('HttpStatusCode') is not None:
|
|
25848
|
+
self.http_status_code = m.get('HttpStatusCode')
|
|
25849
|
+
if m.get('Message') is not None:
|
|
25850
|
+
self.message = m.get('Message')
|
|
25622
25851
|
if m.get('RequestId') is not None:
|
|
25623
25852
|
self.request_id = m.get('RequestId')
|
|
25853
|
+
if m.get('Success') is not None:
|
|
25854
|
+
self.success = m.get('Success')
|
|
25624
25855
|
return self
|
|
25625
25856
|
|
|
25626
25857
|
|
|
25627
|
-
class
|
|
25858
|
+
class QueryAuditTaskResponse(TeaModel):
|
|
25628
25859
|
def __init__(
|
|
25629
25860
|
self,
|
|
25630
25861
|
headers: Dict[str, str] = None,
|
|
25631
25862
|
status_code: int = None,
|
|
25632
|
-
body:
|
|
25863
|
+
body: QueryAuditTaskResponseBody = None,
|
|
25864
|
+
):
|
|
25865
|
+
self.headers = headers
|
|
25866
|
+
self.status_code = status_code
|
|
25867
|
+
self.body = body
|
|
25868
|
+
|
|
25869
|
+
def validate(self):
|
|
25870
|
+
if self.body:
|
|
25871
|
+
self.body.validate()
|
|
25872
|
+
|
|
25873
|
+
def to_map(self):
|
|
25874
|
+
_map = super().to_map()
|
|
25875
|
+
if _map is not None:
|
|
25876
|
+
return _map
|
|
25877
|
+
|
|
25878
|
+
result = dict()
|
|
25879
|
+
if self.headers is not None:
|
|
25880
|
+
result['headers'] = self.headers
|
|
25881
|
+
if self.status_code is not None:
|
|
25882
|
+
result['statusCode'] = self.status_code
|
|
25883
|
+
if self.body is not None:
|
|
25884
|
+
result['body'] = self.body.to_map()
|
|
25885
|
+
return result
|
|
25886
|
+
|
|
25887
|
+
def from_map(self, m: dict = None):
|
|
25888
|
+
m = m or dict()
|
|
25889
|
+
if m.get('headers') is not None:
|
|
25890
|
+
self.headers = m.get('headers')
|
|
25891
|
+
if m.get('statusCode') is not None:
|
|
25892
|
+
self.status_code = m.get('statusCode')
|
|
25893
|
+
if m.get('body') is not None:
|
|
25894
|
+
temp_model = QueryAuditTaskResponseBody()
|
|
25895
|
+
self.body = temp_model.from_map(m['body'])
|
|
25896
|
+
return self
|
|
25897
|
+
|
|
25898
|
+
|
|
25899
|
+
class RunAbbreviationContentRequest(TeaModel):
|
|
25900
|
+
def __init__(
|
|
25901
|
+
self,
|
|
25902
|
+
content: str = None,
|
|
25903
|
+
workspace_id: str = None,
|
|
25904
|
+
):
|
|
25905
|
+
# This parameter is required.
|
|
25906
|
+
self.content = content
|
|
25907
|
+
# This parameter is required.
|
|
25908
|
+
self.workspace_id = workspace_id
|
|
25909
|
+
|
|
25910
|
+
def validate(self):
|
|
25911
|
+
pass
|
|
25912
|
+
|
|
25913
|
+
def to_map(self):
|
|
25914
|
+
_map = super().to_map()
|
|
25915
|
+
if _map is not None:
|
|
25916
|
+
return _map
|
|
25917
|
+
|
|
25918
|
+
result = dict()
|
|
25919
|
+
if self.content is not None:
|
|
25920
|
+
result['Content'] = self.content
|
|
25921
|
+
if self.workspace_id is not None:
|
|
25922
|
+
result['WorkspaceId'] = self.workspace_id
|
|
25923
|
+
return result
|
|
25924
|
+
|
|
25925
|
+
def from_map(self, m: dict = None):
|
|
25926
|
+
m = m or dict()
|
|
25927
|
+
if m.get('Content') is not None:
|
|
25928
|
+
self.content = m.get('Content')
|
|
25929
|
+
if m.get('WorkspaceId') is not None:
|
|
25930
|
+
self.workspace_id = m.get('WorkspaceId')
|
|
25931
|
+
return self
|
|
25932
|
+
|
|
25933
|
+
|
|
25934
|
+
class RunAbbreviationContentResponseBodyHeader(TeaModel):
|
|
25935
|
+
def __init__(
|
|
25936
|
+
self,
|
|
25937
|
+
error_code: str = None,
|
|
25938
|
+
error_message: str = None,
|
|
25939
|
+
event: str = None,
|
|
25940
|
+
event_info: str = None,
|
|
25941
|
+
session_id: str = None,
|
|
25942
|
+
task_id: str = None,
|
|
25943
|
+
trace_id: str = None,
|
|
25944
|
+
):
|
|
25945
|
+
self.error_code = error_code
|
|
25946
|
+
self.error_message = error_message
|
|
25947
|
+
self.event = event
|
|
25948
|
+
self.event_info = event_info
|
|
25949
|
+
self.session_id = session_id
|
|
25950
|
+
self.task_id = task_id
|
|
25951
|
+
self.trace_id = trace_id
|
|
25952
|
+
|
|
25953
|
+
def validate(self):
|
|
25954
|
+
pass
|
|
25955
|
+
|
|
25956
|
+
def to_map(self):
|
|
25957
|
+
_map = super().to_map()
|
|
25958
|
+
if _map is not None:
|
|
25959
|
+
return _map
|
|
25960
|
+
|
|
25961
|
+
result = dict()
|
|
25962
|
+
if self.error_code is not None:
|
|
25963
|
+
result['ErrorCode'] = self.error_code
|
|
25964
|
+
if self.error_message is not None:
|
|
25965
|
+
result['ErrorMessage'] = self.error_message
|
|
25966
|
+
if self.event is not None:
|
|
25967
|
+
result['Event'] = self.event
|
|
25968
|
+
if self.event_info is not None:
|
|
25969
|
+
result['EventInfo'] = self.event_info
|
|
25970
|
+
if self.session_id is not None:
|
|
25971
|
+
result['SessionId'] = self.session_id
|
|
25972
|
+
if self.task_id is not None:
|
|
25973
|
+
result['TaskId'] = self.task_id
|
|
25974
|
+
if self.trace_id is not None:
|
|
25975
|
+
result['TraceId'] = self.trace_id
|
|
25976
|
+
return result
|
|
25977
|
+
|
|
25978
|
+
def from_map(self, m: dict = None):
|
|
25979
|
+
m = m or dict()
|
|
25980
|
+
if m.get('ErrorCode') is not None:
|
|
25981
|
+
self.error_code = m.get('ErrorCode')
|
|
25982
|
+
if m.get('ErrorMessage') is not None:
|
|
25983
|
+
self.error_message = m.get('ErrorMessage')
|
|
25984
|
+
if m.get('Event') is not None:
|
|
25985
|
+
self.event = m.get('Event')
|
|
25986
|
+
if m.get('EventInfo') is not None:
|
|
25987
|
+
self.event_info = m.get('EventInfo')
|
|
25988
|
+
if m.get('SessionId') is not None:
|
|
25989
|
+
self.session_id = m.get('SessionId')
|
|
25990
|
+
if m.get('TaskId') is not None:
|
|
25991
|
+
self.task_id = m.get('TaskId')
|
|
25992
|
+
if m.get('TraceId') is not None:
|
|
25993
|
+
self.trace_id = m.get('TraceId')
|
|
25994
|
+
return self
|
|
25995
|
+
|
|
25996
|
+
|
|
25997
|
+
class RunAbbreviationContentResponseBodyPayloadOutput(TeaModel):
|
|
25998
|
+
def __init__(
|
|
25999
|
+
self,
|
|
26000
|
+
text: str = None,
|
|
26001
|
+
):
|
|
26002
|
+
self.text = text
|
|
26003
|
+
|
|
26004
|
+
def validate(self):
|
|
26005
|
+
pass
|
|
26006
|
+
|
|
26007
|
+
def to_map(self):
|
|
26008
|
+
_map = super().to_map()
|
|
26009
|
+
if _map is not None:
|
|
26010
|
+
return _map
|
|
26011
|
+
|
|
26012
|
+
result = dict()
|
|
26013
|
+
if self.text is not None:
|
|
26014
|
+
result['Text'] = self.text
|
|
26015
|
+
return result
|
|
26016
|
+
|
|
26017
|
+
def from_map(self, m: dict = None):
|
|
26018
|
+
m = m or dict()
|
|
26019
|
+
if m.get('Text') is not None:
|
|
26020
|
+
self.text = m.get('Text')
|
|
26021
|
+
return self
|
|
26022
|
+
|
|
26023
|
+
|
|
26024
|
+
class RunAbbreviationContentResponseBodyPayloadUsage(TeaModel):
|
|
26025
|
+
def __init__(
|
|
26026
|
+
self,
|
|
26027
|
+
input_tokens: int = None,
|
|
26028
|
+
output_tokens: int = None,
|
|
26029
|
+
total_tokens: int = None,
|
|
26030
|
+
):
|
|
26031
|
+
self.input_tokens = input_tokens
|
|
26032
|
+
self.output_tokens = output_tokens
|
|
26033
|
+
self.total_tokens = total_tokens
|
|
26034
|
+
|
|
26035
|
+
def validate(self):
|
|
26036
|
+
pass
|
|
26037
|
+
|
|
26038
|
+
def to_map(self):
|
|
26039
|
+
_map = super().to_map()
|
|
26040
|
+
if _map is not None:
|
|
26041
|
+
return _map
|
|
26042
|
+
|
|
26043
|
+
result = dict()
|
|
26044
|
+
if self.input_tokens is not None:
|
|
26045
|
+
result['InputTokens'] = self.input_tokens
|
|
26046
|
+
if self.output_tokens is not None:
|
|
26047
|
+
result['OutputTokens'] = self.output_tokens
|
|
26048
|
+
if self.total_tokens is not None:
|
|
26049
|
+
result['TotalTokens'] = self.total_tokens
|
|
26050
|
+
return result
|
|
26051
|
+
|
|
26052
|
+
def from_map(self, m: dict = None):
|
|
26053
|
+
m = m or dict()
|
|
26054
|
+
if m.get('InputTokens') is not None:
|
|
26055
|
+
self.input_tokens = m.get('InputTokens')
|
|
26056
|
+
if m.get('OutputTokens') is not None:
|
|
26057
|
+
self.output_tokens = m.get('OutputTokens')
|
|
26058
|
+
if m.get('TotalTokens') is not None:
|
|
26059
|
+
self.total_tokens = m.get('TotalTokens')
|
|
26060
|
+
return self
|
|
26061
|
+
|
|
26062
|
+
|
|
26063
|
+
class RunAbbreviationContentResponseBodyPayload(TeaModel):
|
|
26064
|
+
def __init__(
|
|
26065
|
+
self,
|
|
26066
|
+
output: RunAbbreviationContentResponseBodyPayloadOutput = None,
|
|
26067
|
+
usage: RunAbbreviationContentResponseBodyPayloadUsage = None,
|
|
26068
|
+
):
|
|
26069
|
+
self.output = output
|
|
26070
|
+
self.usage = usage
|
|
26071
|
+
|
|
26072
|
+
def validate(self):
|
|
26073
|
+
if self.output:
|
|
26074
|
+
self.output.validate()
|
|
26075
|
+
if self.usage:
|
|
26076
|
+
self.usage.validate()
|
|
26077
|
+
|
|
26078
|
+
def to_map(self):
|
|
26079
|
+
_map = super().to_map()
|
|
26080
|
+
if _map is not None:
|
|
26081
|
+
return _map
|
|
26082
|
+
|
|
26083
|
+
result = dict()
|
|
26084
|
+
if self.output is not None:
|
|
26085
|
+
result['Output'] = self.output.to_map()
|
|
26086
|
+
if self.usage is not None:
|
|
26087
|
+
result['Usage'] = self.usage.to_map()
|
|
26088
|
+
return result
|
|
26089
|
+
|
|
26090
|
+
def from_map(self, m: dict = None):
|
|
26091
|
+
m = m or dict()
|
|
26092
|
+
if m.get('Output') is not None:
|
|
26093
|
+
temp_model = RunAbbreviationContentResponseBodyPayloadOutput()
|
|
26094
|
+
self.output = temp_model.from_map(m['Output'])
|
|
26095
|
+
if m.get('Usage') is not None:
|
|
26096
|
+
temp_model = RunAbbreviationContentResponseBodyPayloadUsage()
|
|
26097
|
+
self.usage = temp_model.from_map(m['Usage'])
|
|
26098
|
+
return self
|
|
26099
|
+
|
|
26100
|
+
|
|
26101
|
+
class RunAbbreviationContentResponseBody(TeaModel):
|
|
26102
|
+
def __init__(
|
|
26103
|
+
self,
|
|
26104
|
+
end: bool = None,
|
|
26105
|
+
header: RunAbbreviationContentResponseBodyHeader = None,
|
|
26106
|
+
payload: RunAbbreviationContentResponseBodyPayload = None,
|
|
26107
|
+
request_id: str = None,
|
|
26108
|
+
):
|
|
26109
|
+
self.end = end
|
|
26110
|
+
self.header = header
|
|
26111
|
+
self.payload = payload
|
|
26112
|
+
self.request_id = request_id
|
|
26113
|
+
|
|
26114
|
+
def validate(self):
|
|
26115
|
+
if self.header:
|
|
26116
|
+
self.header.validate()
|
|
26117
|
+
if self.payload:
|
|
26118
|
+
self.payload.validate()
|
|
26119
|
+
|
|
26120
|
+
def to_map(self):
|
|
26121
|
+
_map = super().to_map()
|
|
26122
|
+
if _map is not None:
|
|
26123
|
+
return _map
|
|
26124
|
+
|
|
26125
|
+
result = dict()
|
|
26126
|
+
if self.end is not None:
|
|
26127
|
+
result['End'] = self.end
|
|
26128
|
+
if self.header is not None:
|
|
26129
|
+
result['Header'] = self.header.to_map()
|
|
26130
|
+
if self.payload is not None:
|
|
26131
|
+
result['Payload'] = self.payload.to_map()
|
|
26132
|
+
if self.request_id is not None:
|
|
26133
|
+
result['RequestId'] = self.request_id
|
|
26134
|
+
return result
|
|
26135
|
+
|
|
26136
|
+
def from_map(self, m: dict = None):
|
|
26137
|
+
m = m or dict()
|
|
26138
|
+
if m.get('End') is not None:
|
|
26139
|
+
self.end = m.get('End')
|
|
26140
|
+
if m.get('Header') is not None:
|
|
26141
|
+
temp_model = RunAbbreviationContentResponseBodyHeader()
|
|
26142
|
+
self.header = temp_model.from_map(m['Header'])
|
|
26143
|
+
if m.get('Payload') is not None:
|
|
26144
|
+
temp_model = RunAbbreviationContentResponseBodyPayload()
|
|
26145
|
+
self.payload = temp_model.from_map(m['Payload'])
|
|
26146
|
+
if m.get('RequestId') is not None:
|
|
26147
|
+
self.request_id = m.get('RequestId')
|
|
26148
|
+
return self
|
|
26149
|
+
|
|
26150
|
+
|
|
26151
|
+
class RunAbbreviationContentResponse(TeaModel):
|
|
26152
|
+
def __init__(
|
|
26153
|
+
self,
|
|
26154
|
+
headers: Dict[str, str] = None,
|
|
26155
|
+
status_code: int = None,
|
|
26156
|
+
body: RunAbbreviationContentResponseBody = None,
|
|
25633
26157
|
):
|
|
25634
26158
|
self.headers = headers
|
|
25635
26159
|
self.status_code = status_code
|
|
@@ -43615,6 +44139,185 @@ class SubmitAsyncTaskResponse(TeaModel):
|
|
|
43615
44139
|
return self
|
|
43616
44140
|
|
|
43617
44141
|
|
|
44142
|
+
class SubmitAuditTaskRequest(TeaModel):
|
|
44143
|
+
def __init__(
|
|
44144
|
+
self,
|
|
44145
|
+
article_id: str = None,
|
|
44146
|
+
content: str = None,
|
|
44147
|
+
html_content: str = None,
|
|
44148
|
+
title: str = None,
|
|
44149
|
+
workspace_id: str = None,
|
|
44150
|
+
):
|
|
44151
|
+
self.article_id = article_id
|
|
44152
|
+
self.content = content
|
|
44153
|
+
self.html_content = html_content
|
|
44154
|
+
self.title = title
|
|
44155
|
+
self.workspace_id = workspace_id
|
|
44156
|
+
|
|
44157
|
+
def validate(self):
|
|
44158
|
+
pass
|
|
44159
|
+
|
|
44160
|
+
def to_map(self):
|
|
44161
|
+
_map = super().to_map()
|
|
44162
|
+
if _map is not None:
|
|
44163
|
+
return _map
|
|
44164
|
+
|
|
44165
|
+
result = dict()
|
|
44166
|
+
if self.article_id is not None:
|
|
44167
|
+
result['ArticleId'] = self.article_id
|
|
44168
|
+
if self.content is not None:
|
|
44169
|
+
result['Content'] = self.content
|
|
44170
|
+
if self.html_content is not None:
|
|
44171
|
+
result['HtmlContent'] = self.html_content
|
|
44172
|
+
if self.title is not None:
|
|
44173
|
+
result['Title'] = self.title
|
|
44174
|
+
if self.workspace_id is not None:
|
|
44175
|
+
result['WorkspaceId'] = self.workspace_id
|
|
44176
|
+
return result
|
|
44177
|
+
|
|
44178
|
+
def from_map(self, m: dict = None):
|
|
44179
|
+
m = m or dict()
|
|
44180
|
+
if m.get('ArticleId') is not None:
|
|
44181
|
+
self.article_id = m.get('ArticleId')
|
|
44182
|
+
if m.get('Content') is not None:
|
|
44183
|
+
self.content = m.get('Content')
|
|
44184
|
+
if m.get('HtmlContent') is not None:
|
|
44185
|
+
self.html_content = m.get('HtmlContent')
|
|
44186
|
+
if m.get('Title') is not None:
|
|
44187
|
+
self.title = m.get('Title')
|
|
44188
|
+
if m.get('WorkspaceId') is not None:
|
|
44189
|
+
self.workspace_id = m.get('WorkspaceId')
|
|
44190
|
+
return self
|
|
44191
|
+
|
|
44192
|
+
|
|
44193
|
+
class SubmitAuditTaskResponseBodyData(TeaModel):
|
|
44194
|
+
def __init__(
|
|
44195
|
+
self,
|
|
44196
|
+
task_id: str = None,
|
|
44197
|
+
):
|
|
44198
|
+
self.task_id = task_id
|
|
44199
|
+
|
|
44200
|
+
def validate(self):
|
|
44201
|
+
pass
|
|
44202
|
+
|
|
44203
|
+
def to_map(self):
|
|
44204
|
+
_map = super().to_map()
|
|
44205
|
+
if _map is not None:
|
|
44206
|
+
return _map
|
|
44207
|
+
|
|
44208
|
+
result = dict()
|
|
44209
|
+
if self.task_id is not None:
|
|
44210
|
+
result['TaskId'] = self.task_id
|
|
44211
|
+
return result
|
|
44212
|
+
|
|
44213
|
+
def from_map(self, m: dict = None):
|
|
44214
|
+
m = m or dict()
|
|
44215
|
+
if m.get('TaskId') is not None:
|
|
44216
|
+
self.task_id = m.get('TaskId')
|
|
44217
|
+
return self
|
|
44218
|
+
|
|
44219
|
+
|
|
44220
|
+
class SubmitAuditTaskResponseBody(TeaModel):
|
|
44221
|
+
def __init__(
|
|
44222
|
+
self,
|
|
44223
|
+
code: str = None,
|
|
44224
|
+
data: SubmitAuditTaskResponseBodyData = None,
|
|
44225
|
+
http_status_code: int = None,
|
|
44226
|
+
message: str = None,
|
|
44227
|
+
request_id: str = None,
|
|
44228
|
+
success: bool = None,
|
|
44229
|
+
):
|
|
44230
|
+
self.code = code
|
|
44231
|
+
self.data = data
|
|
44232
|
+
self.http_status_code = http_status_code
|
|
44233
|
+
self.message = message
|
|
44234
|
+
# Id of the request
|
|
44235
|
+
self.request_id = request_id
|
|
44236
|
+
self.success = success
|
|
44237
|
+
|
|
44238
|
+
def validate(self):
|
|
44239
|
+
if self.data:
|
|
44240
|
+
self.data.validate()
|
|
44241
|
+
|
|
44242
|
+
def to_map(self):
|
|
44243
|
+
_map = super().to_map()
|
|
44244
|
+
if _map is not None:
|
|
44245
|
+
return _map
|
|
44246
|
+
|
|
44247
|
+
result = dict()
|
|
44248
|
+
if self.code is not None:
|
|
44249
|
+
result['Code'] = self.code
|
|
44250
|
+
if self.data is not None:
|
|
44251
|
+
result['Data'] = self.data.to_map()
|
|
44252
|
+
if self.http_status_code is not None:
|
|
44253
|
+
result['HttpStatusCode'] = self.http_status_code
|
|
44254
|
+
if self.message is not None:
|
|
44255
|
+
result['Message'] = self.message
|
|
44256
|
+
if self.request_id is not None:
|
|
44257
|
+
result['RequestId'] = self.request_id
|
|
44258
|
+
if self.success is not None:
|
|
44259
|
+
result['Success'] = self.success
|
|
44260
|
+
return result
|
|
44261
|
+
|
|
44262
|
+
def from_map(self, m: dict = None):
|
|
44263
|
+
m = m or dict()
|
|
44264
|
+
if m.get('Code') is not None:
|
|
44265
|
+
self.code = m.get('Code')
|
|
44266
|
+
if m.get('Data') is not None:
|
|
44267
|
+
temp_model = SubmitAuditTaskResponseBodyData()
|
|
44268
|
+
self.data = temp_model.from_map(m['Data'])
|
|
44269
|
+
if m.get('HttpStatusCode') is not None:
|
|
44270
|
+
self.http_status_code = m.get('HttpStatusCode')
|
|
44271
|
+
if m.get('Message') is not None:
|
|
44272
|
+
self.message = m.get('Message')
|
|
44273
|
+
if m.get('RequestId') is not None:
|
|
44274
|
+
self.request_id = m.get('RequestId')
|
|
44275
|
+
if m.get('Success') is not None:
|
|
44276
|
+
self.success = m.get('Success')
|
|
44277
|
+
return self
|
|
44278
|
+
|
|
44279
|
+
|
|
44280
|
+
class SubmitAuditTaskResponse(TeaModel):
|
|
44281
|
+
def __init__(
|
|
44282
|
+
self,
|
|
44283
|
+
headers: Dict[str, str] = None,
|
|
44284
|
+
status_code: int = None,
|
|
44285
|
+
body: SubmitAuditTaskResponseBody = None,
|
|
44286
|
+
):
|
|
44287
|
+
self.headers = headers
|
|
44288
|
+
self.status_code = status_code
|
|
44289
|
+
self.body = body
|
|
44290
|
+
|
|
44291
|
+
def validate(self):
|
|
44292
|
+
if self.body:
|
|
44293
|
+
self.body.validate()
|
|
44294
|
+
|
|
44295
|
+
def to_map(self):
|
|
44296
|
+
_map = super().to_map()
|
|
44297
|
+
if _map is not None:
|
|
44298
|
+
return _map
|
|
44299
|
+
|
|
44300
|
+
result = dict()
|
|
44301
|
+
if self.headers is not None:
|
|
44302
|
+
result['headers'] = self.headers
|
|
44303
|
+
if self.status_code is not None:
|
|
44304
|
+
result['statusCode'] = self.status_code
|
|
44305
|
+
if self.body is not None:
|
|
44306
|
+
result['body'] = self.body.to_map()
|
|
44307
|
+
return result
|
|
44308
|
+
|
|
44309
|
+
def from_map(self, m: dict = None):
|
|
44310
|
+
m = m or dict()
|
|
44311
|
+
if m.get('headers') is not None:
|
|
44312
|
+
self.headers = m.get('headers')
|
|
44313
|
+
if m.get('statusCode') is not None:
|
|
44314
|
+
self.status_code = m.get('statusCode')
|
|
44315
|
+
if m.get('body') is not None:
|
|
44316
|
+
temp_model = SubmitAuditTaskResponseBody()
|
|
44317
|
+
self.body = temp_model.from_map(m['body'])
|
|
44318
|
+
return self
|
|
44319
|
+
|
|
44320
|
+
|
|
43618
44321
|
class SubmitCustomHotTopicBroadcastJobRequestHotTopicBroadcastConfigStepForCustomSummaryStyleConfig(TeaModel):
|
|
43619
44322
|
def __init__(
|
|
43620
44323
|
self,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '1.23.1'
|
|
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
|