alibabacloud-aimiaobi20230801 1.10.0__tar.gz → 1.11.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.10.0 → alibabacloud_aimiaobi20230801-1.11.0}/ChangeLog.md +8 -0
- {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.0}/PKG-INFO +1 -1
- alibabacloud_aimiaobi20230801-1.11.0/alibabacloud_aimiaobi20230801/__init__.py +1 -0
- {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.0}/alibabacloud_aimiaobi20230801/client.py +224 -0
- {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.0}/alibabacloud_aimiaobi20230801/models.py +899 -0
- {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.0}/alibabacloud_aimiaobi20230801.egg-info/PKG-INFO +1 -1
- {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.0}/setup.py +1 -1
- alibabacloud_aimiaobi20230801-1.10.0/alibabacloud_aimiaobi20230801/__init__.py +0 -1
- {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.0}/LICENSE +0 -0
- {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.0}/MANIFEST.in +0 -0
- {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.0}/README-CN.md +0 -0
- {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.0}/README.md +0 -0
- {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.0}/alibabacloud_aimiaobi20230801.egg-info/SOURCES.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.0}/alibabacloud_aimiaobi20230801.egg-info/dependency_links.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.0}/alibabacloud_aimiaobi20230801.egg-info/requires.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.0}/alibabacloud_aimiaobi20230801.egg-info/top_level.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.0}/setup.cfg +0 -0
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
2024-11-28 Version: 1.10.0
|
|
2
|
+
- Support API GetCategoriesByTaskId.
|
|
3
|
+
- Support API GetEnterpriseVocAnalysisTask.
|
|
4
|
+
- Support API ListAnalysisTagDetailByTaskId.
|
|
5
|
+
- Support API SubmitEnterpriseVocAnalysisTask.
|
|
6
|
+
- Support API ValidateUploadTemplate.
|
|
7
|
+
|
|
8
|
+
|
|
1
9
|
2024-11-01 Version: 1.9.0
|
|
2
10
|
- Support API GetCustomHotTopicBroadcastJob.
|
|
3
11
|
- Support API GetHotTopicBroadcast.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.11.0'
|
|
@@ -3829,6 +3829,106 @@ class Client(OpenApiClient):
|
|
|
3829
3829
|
runtime = util_models.RuntimeOptions()
|
|
3830
3830
|
return await self.get_properties_with_options_async(request, runtime)
|
|
3831
3831
|
|
|
3832
|
+
def get_smart_clip_task_with_options(
|
|
3833
|
+
self,
|
|
3834
|
+
request: ai_miao_bi_20230801_models.GetSmartClipTaskRequest,
|
|
3835
|
+
runtime: util_models.RuntimeOptions,
|
|
3836
|
+
) -> ai_miao_bi_20230801_models.GetSmartClipTaskResponse:
|
|
3837
|
+
"""
|
|
3838
|
+
@summary 查询一键成片剪辑任务
|
|
3839
|
+
|
|
3840
|
+
@param request: GetSmartClipTaskRequest
|
|
3841
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
3842
|
+
@return: GetSmartClipTaskResponse
|
|
3843
|
+
"""
|
|
3844
|
+
UtilClient.validate_model(request)
|
|
3845
|
+
body = {}
|
|
3846
|
+
if not UtilClient.is_unset(request.task_id):
|
|
3847
|
+
body['TaskId'] = request.task_id
|
|
3848
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
3849
|
+
body['WorkspaceId'] = request.workspace_id
|
|
3850
|
+
req = open_api_models.OpenApiRequest(
|
|
3851
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
3852
|
+
)
|
|
3853
|
+
params = open_api_models.Params(
|
|
3854
|
+
action='GetSmartClipTask',
|
|
3855
|
+
version='2023-08-01',
|
|
3856
|
+
protocol='HTTPS',
|
|
3857
|
+
pathname='/',
|
|
3858
|
+
method='POST',
|
|
3859
|
+
auth_type='AK',
|
|
3860
|
+
style='RPC',
|
|
3861
|
+
req_body_type='formData',
|
|
3862
|
+
body_type='json'
|
|
3863
|
+
)
|
|
3864
|
+
return TeaCore.from_map(
|
|
3865
|
+
ai_miao_bi_20230801_models.GetSmartClipTaskResponse(),
|
|
3866
|
+
self.call_api(params, req, runtime)
|
|
3867
|
+
)
|
|
3868
|
+
|
|
3869
|
+
async def get_smart_clip_task_with_options_async(
|
|
3870
|
+
self,
|
|
3871
|
+
request: ai_miao_bi_20230801_models.GetSmartClipTaskRequest,
|
|
3872
|
+
runtime: util_models.RuntimeOptions,
|
|
3873
|
+
) -> ai_miao_bi_20230801_models.GetSmartClipTaskResponse:
|
|
3874
|
+
"""
|
|
3875
|
+
@summary 查询一键成片剪辑任务
|
|
3876
|
+
|
|
3877
|
+
@param request: GetSmartClipTaskRequest
|
|
3878
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
3879
|
+
@return: GetSmartClipTaskResponse
|
|
3880
|
+
"""
|
|
3881
|
+
UtilClient.validate_model(request)
|
|
3882
|
+
body = {}
|
|
3883
|
+
if not UtilClient.is_unset(request.task_id):
|
|
3884
|
+
body['TaskId'] = request.task_id
|
|
3885
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
3886
|
+
body['WorkspaceId'] = request.workspace_id
|
|
3887
|
+
req = open_api_models.OpenApiRequest(
|
|
3888
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
3889
|
+
)
|
|
3890
|
+
params = open_api_models.Params(
|
|
3891
|
+
action='GetSmartClipTask',
|
|
3892
|
+
version='2023-08-01',
|
|
3893
|
+
protocol='HTTPS',
|
|
3894
|
+
pathname='/',
|
|
3895
|
+
method='POST',
|
|
3896
|
+
auth_type='AK',
|
|
3897
|
+
style='RPC',
|
|
3898
|
+
req_body_type='formData',
|
|
3899
|
+
body_type='json'
|
|
3900
|
+
)
|
|
3901
|
+
return TeaCore.from_map(
|
|
3902
|
+
ai_miao_bi_20230801_models.GetSmartClipTaskResponse(),
|
|
3903
|
+
await self.call_api_async(params, req, runtime)
|
|
3904
|
+
)
|
|
3905
|
+
|
|
3906
|
+
def get_smart_clip_task(
|
|
3907
|
+
self,
|
|
3908
|
+
request: ai_miao_bi_20230801_models.GetSmartClipTaskRequest,
|
|
3909
|
+
) -> ai_miao_bi_20230801_models.GetSmartClipTaskResponse:
|
|
3910
|
+
"""
|
|
3911
|
+
@summary 查询一键成片剪辑任务
|
|
3912
|
+
|
|
3913
|
+
@param request: GetSmartClipTaskRequest
|
|
3914
|
+
@return: GetSmartClipTaskResponse
|
|
3915
|
+
"""
|
|
3916
|
+
runtime = util_models.RuntimeOptions()
|
|
3917
|
+
return self.get_smart_clip_task_with_options(request, runtime)
|
|
3918
|
+
|
|
3919
|
+
async def get_smart_clip_task_async(
|
|
3920
|
+
self,
|
|
3921
|
+
request: ai_miao_bi_20230801_models.GetSmartClipTaskRequest,
|
|
3922
|
+
) -> ai_miao_bi_20230801_models.GetSmartClipTaskResponse:
|
|
3923
|
+
"""
|
|
3924
|
+
@summary 查询一键成片剪辑任务
|
|
3925
|
+
|
|
3926
|
+
@param request: GetSmartClipTaskRequest
|
|
3927
|
+
@return: GetSmartClipTaskResponse
|
|
3928
|
+
"""
|
|
3929
|
+
runtime = util_models.RuntimeOptions()
|
|
3930
|
+
return await self.get_smart_clip_task_with_options_async(request, runtime)
|
|
3931
|
+
|
|
3832
3932
|
def get_topic_by_id_with_options(
|
|
3833
3933
|
self,
|
|
3834
3934
|
request: ai_miao_bi_20230801_models.GetTopicByIdRequest,
|
|
@@ -10141,6 +10241,130 @@ class Client(OpenApiClient):
|
|
|
10141
10241
|
runtime = util_models.RuntimeOptions()
|
|
10142
10242
|
return await self.submit_enterprise_voc_analysis_task_with_options_async(request, runtime)
|
|
10143
10243
|
|
|
10244
|
+
def submit_smart_clip_task_with_options(
|
|
10245
|
+
self,
|
|
10246
|
+
tmp_req: ai_miao_bi_20230801_models.SubmitSmartClipTaskRequest,
|
|
10247
|
+
runtime: util_models.RuntimeOptions,
|
|
10248
|
+
) -> ai_miao_bi_20230801_models.SubmitSmartClipTaskResponse:
|
|
10249
|
+
"""
|
|
10250
|
+
@summary 提交一键成片剪辑任务
|
|
10251
|
+
|
|
10252
|
+
@param tmp_req: SubmitSmartClipTaskRequest
|
|
10253
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
10254
|
+
@return: SubmitSmartClipTaskResponse
|
|
10255
|
+
"""
|
|
10256
|
+
UtilClient.validate_model(tmp_req)
|
|
10257
|
+
request = ai_miao_bi_20230801_models.SubmitSmartClipTaskShrinkRequest()
|
|
10258
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
10259
|
+
if not UtilClient.is_unset(tmp_req.editing_config):
|
|
10260
|
+
request.editing_config_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.editing_config, 'EditingConfig', 'json')
|
|
10261
|
+
if not UtilClient.is_unset(tmp_req.input_config):
|
|
10262
|
+
request.input_config_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.input_config, 'InputConfig', 'json')
|
|
10263
|
+
if not UtilClient.is_unset(tmp_req.output_config):
|
|
10264
|
+
request.output_config_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.output_config, 'OutputConfig', 'json')
|
|
10265
|
+
body = {}
|
|
10266
|
+
if not UtilClient.is_unset(request.editing_config_shrink):
|
|
10267
|
+
body['EditingConfig'] = request.editing_config_shrink
|
|
10268
|
+
if not UtilClient.is_unset(request.input_config_shrink):
|
|
10269
|
+
body['InputConfig'] = request.input_config_shrink
|
|
10270
|
+
if not UtilClient.is_unset(request.output_config_shrink):
|
|
10271
|
+
body['OutputConfig'] = request.output_config_shrink
|
|
10272
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
10273
|
+
body['WorkspaceId'] = request.workspace_id
|
|
10274
|
+
req = open_api_models.OpenApiRequest(
|
|
10275
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
10276
|
+
)
|
|
10277
|
+
params = open_api_models.Params(
|
|
10278
|
+
action='SubmitSmartClipTask',
|
|
10279
|
+
version='2023-08-01',
|
|
10280
|
+
protocol='HTTPS',
|
|
10281
|
+
pathname='/',
|
|
10282
|
+
method='POST',
|
|
10283
|
+
auth_type='AK',
|
|
10284
|
+
style='RPC',
|
|
10285
|
+
req_body_type='formData',
|
|
10286
|
+
body_type='json'
|
|
10287
|
+
)
|
|
10288
|
+
return TeaCore.from_map(
|
|
10289
|
+
ai_miao_bi_20230801_models.SubmitSmartClipTaskResponse(),
|
|
10290
|
+
self.call_api(params, req, runtime)
|
|
10291
|
+
)
|
|
10292
|
+
|
|
10293
|
+
async def submit_smart_clip_task_with_options_async(
|
|
10294
|
+
self,
|
|
10295
|
+
tmp_req: ai_miao_bi_20230801_models.SubmitSmartClipTaskRequest,
|
|
10296
|
+
runtime: util_models.RuntimeOptions,
|
|
10297
|
+
) -> ai_miao_bi_20230801_models.SubmitSmartClipTaskResponse:
|
|
10298
|
+
"""
|
|
10299
|
+
@summary 提交一键成片剪辑任务
|
|
10300
|
+
|
|
10301
|
+
@param tmp_req: SubmitSmartClipTaskRequest
|
|
10302
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
10303
|
+
@return: SubmitSmartClipTaskResponse
|
|
10304
|
+
"""
|
|
10305
|
+
UtilClient.validate_model(tmp_req)
|
|
10306
|
+
request = ai_miao_bi_20230801_models.SubmitSmartClipTaskShrinkRequest()
|
|
10307
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
10308
|
+
if not UtilClient.is_unset(tmp_req.editing_config):
|
|
10309
|
+
request.editing_config_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.editing_config, 'EditingConfig', 'json')
|
|
10310
|
+
if not UtilClient.is_unset(tmp_req.input_config):
|
|
10311
|
+
request.input_config_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.input_config, 'InputConfig', 'json')
|
|
10312
|
+
if not UtilClient.is_unset(tmp_req.output_config):
|
|
10313
|
+
request.output_config_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.output_config, 'OutputConfig', 'json')
|
|
10314
|
+
body = {}
|
|
10315
|
+
if not UtilClient.is_unset(request.editing_config_shrink):
|
|
10316
|
+
body['EditingConfig'] = request.editing_config_shrink
|
|
10317
|
+
if not UtilClient.is_unset(request.input_config_shrink):
|
|
10318
|
+
body['InputConfig'] = request.input_config_shrink
|
|
10319
|
+
if not UtilClient.is_unset(request.output_config_shrink):
|
|
10320
|
+
body['OutputConfig'] = request.output_config_shrink
|
|
10321
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
10322
|
+
body['WorkspaceId'] = request.workspace_id
|
|
10323
|
+
req = open_api_models.OpenApiRequest(
|
|
10324
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
10325
|
+
)
|
|
10326
|
+
params = open_api_models.Params(
|
|
10327
|
+
action='SubmitSmartClipTask',
|
|
10328
|
+
version='2023-08-01',
|
|
10329
|
+
protocol='HTTPS',
|
|
10330
|
+
pathname='/',
|
|
10331
|
+
method='POST',
|
|
10332
|
+
auth_type='AK',
|
|
10333
|
+
style='RPC',
|
|
10334
|
+
req_body_type='formData',
|
|
10335
|
+
body_type='json'
|
|
10336
|
+
)
|
|
10337
|
+
return TeaCore.from_map(
|
|
10338
|
+
ai_miao_bi_20230801_models.SubmitSmartClipTaskResponse(),
|
|
10339
|
+
await self.call_api_async(params, req, runtime)
|
|
10340
|
+
)
|
|
10341
|
+
|
|
10342
|
+
def submit_smart_clip_task(
|
|
10343
|
+
self,
|
|
10344
|
+
request: ai_miao_bi_20230801_models.SubmitSmartClipTaskRequest,
|
|
10345
|
+
) -> ai_miao_bi_20230801_models.SubmitSmartClipTaskResponse:
|
|
10346
|
+
"""
|
|
10347
|
+
@summary 提交一键成片剪辑任务
|
|
10348
|
+
|
|
10349
|
+
@param request: SubmitSmartClipTaskRequest
|
|
10350
|
+
@return: SubmitSmartClipTaskResponse
|
|
10351
|
+
"""
|
|
10352
|
+
runtime = util_models.RuntimeOptions()
|
|
10353
|
+
return self.submit_smart_clip_task_with_options(request, runtime)
|
|
10354
|
+
|
|
10355
|
+
async def submit_smart_clip_task_async(
|
|
10356
|
+
self,
|
|
10357
|
+
request: ai_miao_bi_20230801_models.SubmitSmartClipTaskRequest,
|
|
10358
|
+
) -> ai_miao_bi_20230801_models.SubmitSmartClipTaskResponse:
|
|
10359
|
+
"""
|
|
10360
|
+
@summary 提交一键成片剪辑任务
|
|
10361
|
+
|
|
10362
|
+
@param request: SubmitSmartClipTaskRequest
|
|
10363
|
+
@return: SubmitSmartClipTaskResponse
|
|
10364
|
+
"""
|
|
10365
|
+
runtime = util_models.RuntimeOptions()
|
|
10366
|
+
return await self.submit_smart_clip_task_with_options_async(request, runtime)
|
|
10367
|
+
|
|
10144
10368
|
def submit_topic_selection_perspective_analysis_task_with_options(
|
|
10145
10369
|
self,
|
|
10146
10370
|
tmp_req: ai_miao_bi_20230801_models.SubmitTopicSelectionPerspectiveAnalysisTaskRequest,
|
|
@@ -8435,6 +8435,298 @@ class GetPropertiesResponse(TeaModel):
|
|
|
8435
8435
|
return self
|
|
8436
8436
|
|
|
8437
8437
|
|
|
8438
|
+
class GetSmartClipTaskRequest(TeaModel):
|
|
8439
|
+
def __init__(
|
|
8440
|
+
self,
|
|
8441
|
+
task_id: str = None,
|
|
8442
|
+
workspace_id: str = None,
|
|
8443
|
+
):
|
|
8444
|
+
# This parameter is required.
|
|
8445
|
+
self.task_id = task_id
|
|
8446
|
+
# This parameter is required.
|
|
8447
|
+
self.workspace_id = workspace_id
|
|
8448
|
+
|
|
8449
|
+
def validate(self):
|
|
8450
|
+
pass
|
|
8451
|
+
|
|
8452
|
+
def to_map(self):
|
|
8453
|
+
_map = super().to_map()
|
|
8454
|
+
if _map is not None:
|
|
8455
|
+
return _map
|
|
8456
|
+
|
|
8457
|
+
result = dict()
|
|
8458
|
+
if self.task_id is not None:
|
|
8459
|
+
result['TaskId'] = self.task_id
|
|
8460
|
+
if self.workspace_id is not None:
|
|
8461
|
+
result['WorkspaceId'] = self.workspace_id
|
|
8462
|
+
return result
|
|
8463
|
+
|
|
8464
|
+
def from_map(self, m: dict = None):
|
|
8465
|
+
m = m or dict()
|
|
8466
|
+
if m.get('TaskId') is not None:
|
|
8467
|
+
self.task_id = m.get('TaskId')
|
|
8468
|
+
if m.get('WorkspaceId') is not None:
|
|
8469
|
+
self.workspace_id = m.get('WorkspaceId')
|
|
8470
|
+
return self
|
|
8471
|
+
|
|
8472
|
+
|
|
8473
|
+
class GetSmartClipTaskResponseBodyDataSubJobsFileAttr(TeaModel):
|
|
8474
|
+
def __init__(
|
|
8475
|
+
self,
|
|
8476
|
+
duration: float = None,
|
|
8477
|
+
file_length: str = None,
|
|
8478
|
+
file_name: str = None,
|
|
8479
|
+
height: int = None,
|
|
8480
|
+
tmp_url: str = None,
|
|
8481
|
+
width: int = None,
|
|
8482
|
+
):
|
|
8483
|
+
self.duration = duration
|
|
8484
|
+
self.file_length = file_length
|
|
8485
|
+
self.file_name = file_name
|
|
8486
|
+
self.height = height
|
|
8487
|
+
self.tmp_url = tmp_url
|
|
8488
|
+
self.width = width
|
|
8489
|
+
|
|
8490
|
+
def validate(self):
|
|
8491
|
+
pass
|
|
8492
|
+
|
|
8493
|
+
def to_map(self):
|
|
8494
|
+
_map = super().to_map()
|
|
8495
|
+
if _map is not None:
|
|
8496
|
+
return _map
|
|
8497
|
+
|
|
8498
|
+
result = dict()
|
|
8499
|
+
if self.duration is not None:
|
|
8500
|
+
result['Duration'] = self.duration
|
|
8501
|
+
if self.file_length is not None:
|
|
8502
|
+
result['FileLength'] = self.file_length
|
|
8503
|
+
if self.file_name is not None:
|
|
8504
|
+
result['FileName'] = self.file_name
|
|
8505
|
+
if self.height is not None:
|
|
8506
|
+
result['Height'] = self.height
|
|
8507
|
+
if self.tmp_url is not None:
|
|
8508
|
+
result['TmpUrl'] = self.tmp_url
|
|
8509
|
+
if self.width is not None:
|
|
8510
|
+
result['Width'] = self.width
|
|
8511
|
+
return result
|
|
8512
|
+
|
|
8513
|
+
def from_map(self, m: dict = None):
|
|
8514
|
+
m = m or dict()
|
|
8515
|
+
if m.get('Duration') is not None:
|
|
8516
|
+
self.duration = m.get('Duration')
|
|
8517
|
+
if m.get('FileLength') is not None:
|
|
8518
|
+
self.file_length = m.get('FileLength')
|
|
8519
|
+
if m.get('FileName') is not None:
|
|
8520
|
+
self.file_name = m.get('FileName')
|
|
8521
|
+
if m.get('Height') is not None:
|
|
8522
|
+
self.height = m.get('Height')
|
|
8523
|
+
if m.get('TmpUrl') is not None:
|
|
8524
|
+
self.tmp_url = m.get('TmpUrl')
|
|
8525
|
+
if m.get('Width') is not None:
|
|
8526
|
+
self.width = m.get('Width')
|
|
8527
|
+
return self
|
|
8528
|
+
|
|
8529
|
+
|
|
8530
|
+
class GetSmartClipTaskResponseBodyDataSubJobs(TeaModel):
|
|
8531
|
+
def __init__(
|
|
8532
|
+
self,
|
|
8533
|
+
error_message: str = None,
|
|
8534
|
+
file_attr: GetSmartClipTaskResponseBodyDataSubJobsFileAttr = None,
|
|
8535
|
+
file_key: str = None,
|
|
8536
|
+
status: str = None,
|
|
8537
|
+
sub_job_id: str = None,
|
|
8538
|
+
):
|
|
8539
|
+
self.error_message = error_message
|
|
8540
|
+
self.file_attr = file_attr
|
|
8541
|
+
self.file_key = file_key
|
|
8542
|
+
self.status = status
|
|
8543
|
+
self.sub_job_id = sub_job_id
|
|
8544
|
+
|
|
8545
|
+
def validate(self):
|
|
8546
|
+
if self.file_attr:
|
|
8547
|
+
self.file_attr.validate()
|
|
8548
|
+
|
|
8549
|
+
def to_map(self):
|
|
8550
|
+
_map = super().to_map()
|
|
8551
|
+
if _map is not None:
|
|
8552
|
+
return _map
|
|
8553
|
+
|
|
8554
|
+
result = dict()
|
|
8555
|
+
if self.error_message is not None:
|
|
8556
|
+
result['ErrorMessage'] = self.error_message
|
|
8557
|
+
if self.file_attr is not None:
|
|
8558
|
+
result['FileAttr'] = self.file_attr.to_map()
|
|
8559
|
+
if self.file_key is not None:
|
|
8560
|
+
result['FileKey'] = self.file_key
|
|
8561
|
+
if self.status is not None:
|
|
8562
|
+
result['Status'] = self.status
|
|
8563
|
+
if self.sub_job_id is not None:
|
|
8564
|
+
result['SubJobId'] = self.sub_job_id
|
|
8565
|
+
return result
|
|
8566
|
+
|
|
8567
|
+
def from_map(self, m: dict = None):
|
|
8568
|
+
m = m or dict()
|
|
8569
|
+
if m.get('ErrorMessage') is not None:
|
|
8570
|
+
self.error_message = m.get('ErrorMessage')
|
|
8571
|
+
if m.get('FileAttr') is not None:
|
|
8572
|
+
temp_model = GetSmartClipTaskResponseBodyDataSubJobsFileAttr()
|
|
8573
|
+
self.file_attr = temp_model.from_map(m['FileAttr'])
|
|
8574
|
+
if m.get('FileKey') is not None:
|
|
8575
|
+
self.file_key = m.get('FileKey')
|
|
8576
|
+
if m.get('Status') is not None:
|
|
8577
|
+
self.status = m.get('Status')
|
|
8578
|
+
if m.get('SubJobId') is not None:
|
|
8579
|
+
self.sub_job_id = m.get('SubJobId')
|
|
8580
|
+
return self
|
|
8581
|
+
|
|
8582
|
+
|
|
8583
|
+
class GetSmartClipTaskResponseBodyData(TeaModel):
|
|
8584
|
+
def __init__(
|
|
8585
|
+
self,
|
|
8586
|
+
error_message: str = None,
|
|
8587
|
+
status: str = None,
|
|
8588
|
+
sub_jobs: List[GetSmartClipTaskResponseBodyDataSubJobs] = None,
|
|
8589
|
+
):
|
|
8590
|
+
self.error_message = error_message
|
|
8591
|
+
self.status = status
|
|
8592
|
+
self.sub_jobs = sub_jobs
|
|
8593
|
+
|
|
8594
|
+
def validate(self):
|
|
8595
|
+
if self.sub_jobs:
|
|
8596
|
+
for k in self.sub_jobs:
|
|
8597
|
+
if k:
|
|
8598
|
+
k.validate()
|
|
8599
|
+
|
|
8600
|
+
def to_map(self):
|
|
8601
|
+
_map = super().to_map()
|
|
8602
|
+
if _map is not None:
|
|
8603
|
+
return _map
|
|
8604
|
+
|
|
8605
|
+
result = dict()
|
|
8606
|
+
if self.error_message is not None:
|
|
8607
|
+
result['ErrorMessage'] = self.error_message
|
|
8608
|
+
if self.status is not None:
|
|
8609
|
+
result['Status'] = self.status
|
|
8610
|
+
result['SubJobs'] = []
|
|
8611
|
+
if self.sub_jobs is not None:
|
|
8612
|
+
for k in self.sub_jobs:
|
|
8613
|
+
result['SubJobs'].append(k.to_map() if k else None)
|
|
8614
|
+
return result
|
|
8615
|
+
|
|
8616
|
+
def from_map(self, m: dict = None):
|
|
8617
|
+
m = m or dict()
|
|
8618
|
+
if m.get('ErrorMessage') is not None:
|
|
8619
|
+
self.error_message = m.get('ErrorMessage')
|
|
8620
|
+
if m.get('Status') is not None:
|
|
8621
|
+
self.status = m.get('Status')
|
|
8622
|
+
self.sub_jobs = []
|
|
8623
|
+
if m.get('SubJobs') is not None:
|
|
8624
|
+
for k in m.get('SubJobs'):
|
|
8625
|
+
temp_model = GetSmartClipTaskResponseBodyDataSubJobs()
|
|
8626
|
+
self.sub_jobs.append(temp_model.from_map(k))
|
|
8627
|
+
return self
|
|
8628
|
+
|
|
8629
|
+
|
|
8630
|
+
class GetSmartClipTaskResponseBody(TeaModel):
|
|
8631
|
+
def __init__(
|
|
8632
|
+
self,
|
|
8633
|
+
code: str = None,
|
|
8634
|
+
data: GetSmartClipTaskResponseBodyData = None,
|
|
8635
|
+
http_status_code: int = None,
|
|
8636
|
+
message: str = None,
|
|
8637
|
+
request_id: str = None,
|
|
8638
|
+
success: bool = None,
|
|
8639
|
+
):
|
|
8640
|
+
self.code = code
|
|
8641
|
+
self.data = data
|
|
8642
|
+
self.http_status_code = http_status_code
|
|
8643
|
+
self.message = message
|
|
8644
|
+
self.request_id = request_id
|
|
8645
|
+
self.success = success
|
|
8646
|
+
|
|
8647
|
+
def validate(self):
|
|
8648
|
+
if self.data:
|
|
8649
|
+
self.data.validate()
|
|
8650
|
+
|
|
8651
|
+
def to_map(self):
|
|
8652
|
+
_map = super().to_map()
|
|
8653
|
+
if _map is not None:
|
|
8654
|
+
return _map
|
|
8655
|
+
|
|
8656
|
+
result = dict()
|
|
8657
|
+
if self.code is not None:
|
|
8658
|
+
result['Code'] = self.code
|
|
8659
|
+
if self.data is not None:
|
|
8660
|
+
result['Data'] = self.data.to_map()
|
|
8661
|
+
if self.http_status_code is not None:
|
|
8662
|
+
result['HttpStatusCode'] = self.http_status_code
|
|
8663
|
+
if self.message is not None:
|
|
8664
|
+
result['Message'] = self.message
|
|
8665
|
+
if self.request_id is not None:
|
|
8666
|
+
result['RequestId'] = self.request_id
|
|
8667
|
+
if self.success is not None:
|
|
8668
|
+
result['Success'] = self.success
|
|
8669
|
+
return result
|
|
8670
|
+
|
|
8671
|
+
def from_map(self, m: dict = None):
|
|
8672
|
+
m = m or dict()
|
|
8673
|
+
if m.get('Code') is not None:
|
|
8674
|
+
self.code = m.get('Code')
|
|
8675
|
+
if m.get('Data') is not None:
|
|
8676
|
+
temp_model = GetSmartClipTaskResponseBodyData()
|
|
8677
|
+
self.data = temp_model.from_map(m['Data'])
|
|
8678
|
+
if m.get('HttpStatusCode') is not None:
|
|
8679
|
+
self.http_status_code = m.get('HttpStatusCode')
|
|
8680
|
+
if m.get('Message') is not None:
|
|
8681
|
+
self.message = m.get('Message')
|
|
8682
|
+
if m.get('RequestId') is not None:
|
|
8683
|
+
self.request_id = m.get('RequestId')
|
|
8684
|
+
if m.get('Success') is not None:
|
|
8685
|
+
self.success = m.get('Success')
|
|
8686
|
+
return self
|
|
8687
|
+
|
|
8688
|
+
|
|
8689
|
+
class GetSmartClipTaskResponse(TeaModel):
|
|
8690
|
+
def __init__(
|
|
8691
|
+
self,
|
|
8692
|
+
headers: Dict[str, str] = None,
|
|
8693
|
+
status_code: int = None,
|
|
8694
|
+
body: GetSmartClipTaskResponseBody = None,
|
|
8695
|
+
):
|
|
8696
|
+
self.headers = headers
|
|
8697
|
+
self.status_code = status_code
|
|
8698
|
+
self.body = body
|
|
8699
|
+
|
|
8700
|
+
def validate(self):
|
|
8701
|
+
if self.body:
|
|
8702
|
+
self.body.validate()
|
|
8703
|
+
|
|
8704
|
+
def to_map(self):
|
|
8705
|
+
_map = super().to_map()
|
|
8706
|
+
if _map is not None:
|
|
8707
|
+
return _map
|
|
8708
|
+
|
|
8709
|
+
result = dict()
|
|
8710
|
+
if self.headers is not None:
|
|
8711
|
+
result['headers'] = self.headers
|
|
8712
|
+
if self.status_code is not None:
|
|
8713
|
+
result['statusCode'] = self.status_code
|
|
8714
|
+
if self.body is not None:
|
|
8715
|
+
result['body'] = self.body.to_map()
|
|
8716
|
+
return result
|
|
8717
|
+
|
|
8718
|
+
def from_map(self, m: dict = None):
|
|
8719
|
+
m = m or dict()
|
|
8720
|
+
if m.get('headers') is not None:
|
|
8721
|
+
self.headers = m.get('headers')
|
|
8722
|
+
if m.get('statusCode') is not None:
|
|
8723
|
+
self.status_code = m.get('statusCode')
|
|
8724
|
+
if m.get('body') is not None:
|
|
8725
|
+
temp_model = GetSmartClipTaskResponseBody()
|
|
8726
|
+
self.body = temp_model.from_map(m['body'])
|
|
8727
|
+
return self
|
|
8728
|
+
|
|
8729
|
+
|
|
8438
8730
|
class GetTopicByIdRequest(TeaModel):
|
|
8439
8731
|
def __init__(
|
|
8440
8732
|
self,
|
|
@@ -26710,6 +27002,613 @@ class SubmitEnterpriseVocAnalysisTaskResponse(TeaModel):
|
|
|
26710
27002
|
return self
|
|
26711
27003
|
|
|
26712
27004
|
|
|
27005
|
+
class SubmitSmartClipTaskRequestEditingConfigTitleConfig(TeaModel):
|
|
27006
|
+
def __init__(
|
|
27007
|
+
self,
|
|
27008
|
+
alignment: str = None,
|
|
27009
|
+
timeline_in: float = None,
|
|
27010
|
+
timeline_out: float = None,
|
|
27011
|
+
x: float = None,
|
|
27012
|
+
y: float = None,
|
|
27013
|
+
):
|
|
27014
|
+
self.alignment = alignment
|
|
27015
|
+
self.timeline_in = timeline_in
|
|
27016
|
+
self.timeline_out = timeline_out
|
|
27017
|
+
self.x = x
|
|
27018
|
+
self.y = y
|
|
27019
|
+
|
|
27020
|
+
def validate(self):
|
|
27021
|
+
pass
|
|
27022
|
+
|
|
27023
|
+
def to_map(self):
|
|
27024
|
+
_map = super().to_map()
|
|
27025
|
+
if _map is not None:
|
|
27026
|
+
return _map
|
|
27027
|
+
|
|
27028
|
+
result = dict()
|
|
27029
|
+
if self.alignment is not None:
|
|
27030
|
+
result['Alignment'] = self.alignment
|
|
27031
|
+
if self.timeline_in is not None:
|
|
27032
|
+
result['TimelineIn'] = self.timeline_in
|
|
27033
|
+
if self.timeline_out is not None:
|
|
27034
|
+
result['TimelineOut'] = self.timeline_out
|
|
27035
|
+
if self.x is not None:
|
|
27036
|
+
result['X'] = self.x
|
|
27037
|
+
if self.y is not None:
|
|
27038
|
+
result['Y'] = self.y
|
|
27039
|
+
return result
|
|
27040
|
+
|
|
27041
|
+
def from_map(self, m: dict = None):
|
|
27042
|
+
m = m or dict()
|
|
27043
|
+
if m.get('Alignment') is not None:
|
|
27044
|
+
self.alignment = m.get('Alignment')
|
|
27045
|
+
if m.get('TimelineIn') is not None:
|
|
27046
|
+
self.timeline_in = m.get('TimelineIn')
|
|
27047
|
+
if m.get('TimelineOut') is not None:
|
|
27048
|
+
self.timeline_out = m.get('TimelineOut')
|
|
27049
|
+
if m.get('X') is not None:
|
|
27050
|
+
self.x = m.get('X')
|
|
27051
|
+
if m.get('Y') is not None:
|
|
27052
|
+
self.y = m.get('Y')
|
|
27053
|
+
return self
|
|
27054
|
+
|
|
27055
|
+
|
|
27056
|
+
class SubmitSmartClipTaskRequestEditingConfig(TeaModel):
|
|
27057
|
+
def __init__(
|
|
27058
|
+
self,
|
|
27059
|
+
title_config: SubmitSmartClipTaskRequestEditingConfigTitleConfig = None,
|
|
27060
|
+
):
|
|
27061
|
+
self.title_config = title_config
|
|
27062
|
+
|
|
27063
|
+
def validate(self):
|
|
27064
|
+
if self.title_config:
|
|
27065
|
+
self.title_config.validate()
|
|
27066
|
+
|
|
27067
|
+
def to_map(self):
|
|
27068
|
+
_map = super().to_map()
|
|
27069
|
+
if _map is not None:
|
|
27070
|
+
return _map
|
|
27071
|
+
|
|
27072
|
+
result = dict()
|
|
27073
|
+
if self.title_config is not None:
|
|
27074
|
+
result['TitleConfig'] = self.title_config.to_map()
|
|
27075
|
+
return result
|
|
27076
|
+
|
|
27077
|
+
def from_map(self, m: dict = None):
|
|
27078
|
+
m = m or dict()
|
|
27079
|
+
if m.get('TitleConfig') is not None:
|
|
27080
|
+
temp_model = SubmitSmartClipTaskRequestEditingConfigTitleConfig()
|
|
27081
|
+
self.title_config = temp_model.from_map(m['TitleConfig'])
|
|
27082
|
+
return self
|
|
27083
|
+
|
|
27084
|
+
|
|
27085
|
+
class SubmitSmartClipTaskRequestInputConfigBackgroundMusics(TeaModel):
|
|
27086
|
+
def __init__(
|
|
27087
|
+
self,
|
|
27088
|
+
id: str = None,
|
|
27089
|
+
type: str = None,
|
|
27090
|
+
):
|
|
27091
|
+
# This parameter is required.
|
|
27092
|
+
self.id = id
|
|
27093
|
+
# This parameter is required.
|
|
27094
|
+
self.type = type
|
|
27095
|
+
|
|
27096
|
+
def validate(self):
|
|
27097
|
+
pass
|
|
27098
|
+
|
|
27099
|
+
def to_map(self):
|
|
27100
|
+
_map = super().to_map()
|
|
27101
|
+
if _map is not None:
|
|
27102
|
+
return _map
|
|
27103
|
+
|
|
27104
|
+
result = dict()
|
|
27105
|
+
if self.id is not None:
|
|
27106
|
+
result['Id'] = self.id
|
|
27107
|
+
if self.type is not None:
|
|
27108
|
+
result['Type'] = self.type
|
|
27109
|
+
return result
|
|
27110
|
+
|
|
27111
|
+
def from_map(self, m: dict = None):
|
|
27112
|
+
m = m or dict()
|
|
27113
|
+
if m.get('Id') is not None:
|
|
27114
|
+
self.id = m.get('Id')
|
|
27115
|
+
if m.get('Type') is not None:
|
|
27116
|
+
self.type = m.get('Type')
|
|
27117
|
+
return self
|
|
27118
|
+
|
|
27119
|
+
|
|
27120
|
+
class SubmitSmartClipTaskRequestInputConfigStickersStickerId(TeaModel):
|
|
27121
|
+
def __init__(
|
|
27122
|
+
self,
|
|
27123
|
+
id: str = None,
|
|
27124
|
+
type: str = None,
|
|
27125
|
+
):
|
|
27126
|
+
# This parameter is required.
|
|
27127
|
+
self.id = id
|
|
27128
|
+
# This parameter is required.
|
|
27129
|
+
self.type = type
|
|
27130
|
+
|
|
27131
|
+
def validate(self):
|
|
27132
|
+
pass
|
|
27133
|
+
|
|
27134
|
+
def to_map(self):
|
|
27135
|
+
_map = super().to_map()
|
|
27136
|
+
if _map is not None:
|
|
27137
|
+
return _map
|
|
27138
|
+
|
|
27139
|
+
result = dict()
|
|
27140
|
+
if self.id is not None:
|
|
27141
|
+
result['Id'] = self.id
|
|
27142
|
+
if self.type is not None:
|
|
27143
|
+
result['Type'] = self.type
|
|
27144
|
+
return result
|
|
27145
|
+
|
|
27146
|
+
def from_map(self, m: dict = None):
|
|
27147
|
+
m = m or dict()
|
|
27148
|
+
if m.get('Id') is not None:
|
|
27149
|
+
self.id = m.get('Id')
|
|
27150
|
+
if m.get('Type') is not None:
|
|
27151
|
+
self.type = m.get('Type')
|
|
27152
|
+
return self
|
|
27153
|
+
|
|
27154
|
+
|
|
27155
|
+
class SubmitSmartClipTaskRequestInputConfigStickers(TeaModel):
|
|
27156
|
+
def __init__(
|
|
27157
|
+
self,
|
|
27158
|
+
height: float = None,
|
|
27159
|
+
sticker_id: SubmitSmartClipTaskRequestInputConfigStickersStickerId = None,
|
|
27160
|
+
width: float = None,
|
|
27161
|
+
x: float = None,
|
|
27162
|
+
y: float = None,
|
|
27163
|
+
):
|
|
27164
|
+
# This parameter is required.
|
|
27165
|
+
self.height = height
|
|
27166
|
+
# This parameter is required.
|
|
27167
|
+
self.sticker_id = sticker_id
|
|
27168
|
+
# This parameter is required.
|
|
27169
|
+
self.width = width
|
|
27170
|
+
# This parameter is required.
|
|
27171
|
+
self.x = x
|
|
27172
|
+
# This parameter is required.
|
|
27173
|
+
self.y = y
|
|
27174
|
+
|
|
27175
|
+
def validate(self):
|
|
27176
|
+
if self.sticker_id:
|
|
27177
|
+
self.sticker_id.validate()
|
|
27178
|
+
|
|
27179
|
+
def to_map(self):
|
|
27180
|
+
_map = super().to_map()
|
|
27181
|
+
if _map is not None:
|
|
27182
|
+
return _map
|
|
27183
|
+
|
|
27184
|
+
result = dict()
|
|
27185
|
+
if self.height is not None:
|
|
27186
|
+
result['Height'] = self.height
|
|
27187
|
+
if self.sticker_id is not None:
|
|
27188
|
+
result['StickerId'] = self.sticker_id.to_map()
|
|
27189
|
+
if self.width is not None:
|
|
27190
|
+
result['Width'] = self.width
|
|
27191
|
+
if self.x is not None:
|
|
27192
|
+
result['X'] = self.x
|
|
27193
|
+
if self.y is not None:
|
|
27194
|
+
result['Y'] = self.y
|
|
27195
|
+
return result
|
|
27196
|
+
|
|
27197
|
+
def from_map(self, m: dict = None):
|
|
27198
|
+
m = m or dict()
|
|
27199
|
+
if m.get('Height') is not None:
|
|
27200
|
+
self.height = m.get('Height')
|
|
27201
|
+
if m.get('StickerId') is not None:
|
|
27202
|
+
temp_model = SubmitSmartClipTaskRequestInputConfigStickersStickerId()
|
|
27203
|
+
self.sticker_id = temp_model.from_map(m['StickerId'])
|
|
27204
|
+
if m.get('Width') is not None:
|
|
27205
|
+
self.width = m.get('Width')
|
|
27206
|
+
if m.get('X') is not None:
|
|
27207
|
+
self.x = m.get('X')
|
|
27208
|
+
if m.get('Y') is not None:
|
|
27209
|
+
self.y = m.get('Y')
|
|
27210
|
+
return self
|
|
27211
|
+
|
|
27212
|
+
|
|
27213
|
+
class SubmitSmartClipTaskRequestInputConfigVideoIds(TeaModel):
|
|
27214
|
+
def __init__(
|
|
27215
|
+
self,
|
|
27216
|
+
id: str = None,
|
|
27217
|
+
type: str = None,
|
|
27218
|
+
):
|
|
27219
|
+
# This parameter is required.
|
|
27220
|
+
self.id = id
|
|
27221
|
+
# This parameter is required.
|
|
27222
|
+
self.type = type
|
|
27223
|
+
|
|
27224
|
+
def validate(self):
|
|
27225
|
+
pass
|
|
27226
|
+
|
|
27227
|
+
def to_map(self):
|
|
27228
|
+
_map = super().to_map()
|
|
27229
|
+
if _map is not None:
|
|
27230
|
+
return _map
|
|
27231
|
+
|
|
27232
|
+
result = dict()
|
|
27233
|
+
if self.id is not None:
|
|
27234
|
+
result['Id'] = self.id
|
|
27235
|
+
if self.type is not None:
|
|
27236
|
+
result['Type'] = self.type
|
|
27237
|
+
return result
|
|
27238
|
+
|
|
27239
|
+
def from_map(self, m: dict = None):
|
|
27240
|
+
m = m or dict()
|
|
27241
|
+
if m.get('Id') is not None:
|
|
27242
|
+
self.id = m.get('Id')
|
|
27243
|
+
if m.get('Type') is not None:
|
|
27244
|
+
self.type = m.get('Type')
|
|
27245
|
+
return self
|
|
27246
|
+
|
|
27247
|
+
|
|
27248
|
+
class SubmitSmartClipTaskRequestInputConfig(TeaModel):
|
|
27249
|
+
def __init__(
|
|
27250
|
+
self,
|
|
27251
|
+
background_musics: List[SubmitSmartClipTaskRequestInputConfigBackgroundMusics] = None,
|
|
27252
|
+
speech_texts: List[str] = None,
|
|
27253
|
+
stickers: List[SubmitSmartClipTaskRequestInputConfigStickers] = None,
|
|
27254
|
+
titles: List[str] = None,
|
|
27255
|
+
video_ids: List[SubmitSmartClipTaskRequestInputConfigVideoIds] = None,
|
|
27256
|
+
):
|
|
27257
|
+
self.background_musics = background_musics
|
|
27258
|
+
self.speech_texts = speech_texts
|
|
27259
|
+
self.stickers = stickers
|
|
27260
|
+
self.titles = titles
|
|
27261
|
+
# This parameter is required.
|
|
27262
|
+
self.video_ids = video_ids
|
|
27263
|
+
|
|
27264
|
+
def validate(self):
|
|
27265
|
+
if self.background_musics:
|
|
27266
|
+
for k in self.background_musics:
|
|
27267
|
+
if k:
|
|
27268
|
+
k.validate()
|
|
27269
|
+
if self.stickers:
|
|
27270
|
+
for k in self.stickers:
|
|
27271
|
+
if k:
|
|
27272
|
+
k.validate()
|
|
27273
|
+
if self.video_ids:
|
|
27274
|
+
for k in self.video_ids:
|
|
27275
|
+
if k:
|
|
27276
|
+
k.validate()
|
|
27277
|
+
|
|
27278
|
+
def to_map(self):
|
|
27279
|
+
_map = super().to_map()
|
|
27280
|
+
if _map is not None:
|
|
27281
|
+
return _map
|
|
27282
|
+
|
|
27283
|
+
result = dict()
|
|
27284
|
+
result['BackgroundMusics'] = []
|
|
27285
|
+
if self.background_musics is not None:
|
|
27286
|
+
for k in self.background_musics:
|
|
27287
|
+
result['BackgroundMusics'].append(k.to_map() if k else None)
|
|
27288
|
+
if self.speech_texts is not None:
|
|
27289
|
+
result['SpeechTexts'] = self.speech_texts
|
|
27290
|
+
result['Stickers'] = []
|
|
27291
|
+
if self.stickers is not None:
|
|
27292
|
+
for k in self.stickers:
|
|
27293
|
+
result['Stickers'].append(k.to_map() if k else None)
|
|
27294
|
+
if self.titles is not None:
|
|
27295
|
+
result['Titles'] = self.titles
|
|
27296
|
+
result['VideoIds'] = []
|
|
27297
|
+
if self.video_ids is not None:
|
|
27298
|
+
for k in self.video_ids:
|
|
27299
|
+
result['VideoIds'].append(k.to_map() if k else None)
|
|
27300
|
+
return result
|
|
27301
|
+
|
|
27302
|
+
def from_map(self, m: dict = None):
|
|
27303
|
+
m = m or dict()
|
|
27304
|
+
self.background_musics = []
|
|
27305
|
+
if m.get('BackgroundMusics') is not None:
|
|
27306
|
+
for k in m.get('BackgroundMusics'):
|
|
27307
|
+
temp_model = SubmitSmartClipTaskRequestInputConfigBackgroundMusics()
|
|
27308
|
+
self.background_musics.append(temp_model.from_map(k))
|
|
27309
|
+
if m.get('SpeechTexts') is not None:
|
|
27310
|
+
self.speech_texts = m.get('SpeechTexts')
|
|
27311
|
+
self.stickers = []
|
|
27312
|
+
if m.get('Stickers') is not None:
|
|
27313
|
+
for k in m.get('Stickers'):
|
|
27314
|
+
temp_model = SubmitSmartClipTaskRequestInputConfigStickers()
|
|
27315
|
+
self.stickers.append(temp_model.from_map(k))
|
|
27316
|
+
if m.get('Titles') is not None:
|
|
27317
|
+
self.titles = m.get('Titles')
|
|
27318
|
+
self.video_ids = []
|
|
27319
|
+
if m.get('VideoIds') is not None:
|
|
27320
|
+
for k in m.get('VideoIds'):
|
|
27321
|
+
temp_model = SubmitSmartClipTaskRequestInputConfigVideoIds()
|
|
27322
|
+
self.video_ids.append(temp_model.from_map(k))
|
|
27323
|
+
return self
|
|
27324
|
+
|
|
27325
|
+
|
|
27326
|
+
class SubmitSmartClipTaskRequestOutputConfig(TeaModel):
|
|
27327
|
+
def __init__(
|
|
27328
|
+
self,
|
|
27329
|
+
count: int = None,
|
|
27330
|
+
file_name: str = None,
|
|
27331
|
+
height: int = None,
|
|
27332
|
+
max_duration: int = None,
|
|
27333
|
+
save_to_generated_content: bool = None,
|
|
27334
|
+
width: int = None,
|
|
27335
|
+
):
|
|
27336
|
+
self.count = count
|
|
27337
|
+
self.file_name = file_name
|
|
27338
|
+
self.height = height
|
|
27339
|
+
self.max_duration = max_duration
|
|
27340
|
+
self.save_to_generated_content = save_to_generated_content
|
|
27341
|
+
self.width = width
|
|
27342
|
+
|
|
27343
|
+
def validate(self):
|
|
27344
|
+
pass
|
|
27345
|
+
|
|
27346
|
+
def to_map(self):
|
|
27347
|
+
_map = super().to_map()
|
|
27348
|
+
if _map is not None:
|
|
27349
|
+
return _map
|
|
27350
|
+
|
|
27351
|
+
result = dict()
|
|
27352
|
+
if self.count is not None:
|
|
27353
|
+
result['Count'] = self.count
|
|
27354
|
+
if self.file_name is not None:
|
|
27355
|
+
result['FileName'] = self.file_name
|
|
27356
|
+
if self.height is not None:
|
|
27357
|
+
result['Height'] = self.height
|
|
27358
|
+
if self.max_duration is not None:
|
|
27359
|
+
result['MaxDuration'] = self.max_duration
|
|
27360
|
+
if self.save_to_generated_content is not None:
|
|
27361
|
+
result['SaveToGeneratedContent'] = self.save_to_generated_content
|
|
27362
|
+
if self.width is not None:
|
|
27363
|
+
result['Width'] = self.width
|
|
27364
|
+
return result
|
|
27365
|
+
|
|
27366
|
+
def from_map(self, m: dict = None):
|
|
27367
|
+
m = m or dict()
|
|
27368
|
+
if m.get('Count') is not None:
|
|
27369
|
+
self.count = m.get('Count')
|
|
27370
|
+
if m.get('FileName') is not None:
|
|
27371
|
+
self.file_name = m.get('FileName')
|
|
27372
|
+
if m.get('Height') is not None:
|
|
27373
|
+
self.height = m.get('Height')
|
|
27374
|
+
if m.get('MaxDuration') is not None:
|
|
27375
|
+
self.max_duration = m.get('MaxDuration')
|
|
27376
|
+
if m.get('SaveToGeneratedContent') is not None:
|
|
27377
|
+
self.save_to_generated_content = m.get('SaveToGeneratedContent')
|
|
27378
|
+
if m.get('Width') is not None:
|
|
27379
|
+
self.width = m.get('Width')
|
|
27380
|
+
return self
|
|
27381
|
+
|
|
27382
|
+
|
|
27383
|
+
class SubmitSmartClipTaskRequest(TeaModel):
|
|
27384
|
+
def __init__(
|
|
27385
|
+
self,
|
|
27386
|
+
editing_config: SubmitSmartClipTaskRequestEditingConfig = None,
|
|
27387
|
+
input_config: SubmitSmartClipTaskRequestInputConfig = None,
|
|
27388
|
+
output_config: SubmitSmartClipTaskRequestOutputConfig = None,
|
|
27389
|
+
workspace_id: str = None,
|
|
27390
|
+
):
|
|
27391
|
+
self.editing_config = editing_config
|
|
27392
|
+
# This parameter is required.
|
|
27393
|
+
self.input_config = input_config
|
|
27394
|
+
self.output_config = output_config
|
|
27395
|
+
# This parameter is required.
|
|
27396
|
+
self.workspace_id = workspace_id
|
|
27397
|
+
|
|
27398
|
+
def validate(self):
|
|
27399
|
+
if self.editing_config:
|
|
27400
|
+
self.editing_config.validate()
|
|
27401
|
+
if self.input_config:
|
|
27402
|
+
self.input_config.validate()
|
|
27403
|
+
if self.output_config:
|
|
27404
|
+
self.output_config.validate()
|
|
27405
|
+
|
|
27406
|
+
def to_map(self):
|
|
27407
|
+
_map = super().to_map()
|
|
27408
|
+
if _map is not None:
|
|
27409
|
+
return _map
|
|
27410
|
+
|
|
27411
|
+
result = dict()
|
|
27412
|
+
if self.editing_config is not None:
|
|
27413
|
+
result['EditingConfig'] = self.editing_config.to_map()
|
|
27414
|
+
if self.input_config is not None:
|
|
27415
|
+
result['InputConfig'] = self.input_config.to_map()
|
|
27416
|
+
if self.output_config is not None:
|
|
27417
|
+
result['OutputConfig'] = self.output_config.to_map()
|
|
27418
|
+
if self.workspace_id is not None:
|
|
27419
|
+
result['WorkspaceId'] = self.workspace_id
|
|
27420
|
+
return result
|
|
27421
|
+
|
|
27422
|
+
def from_map(self, m: dict = None):
|
|
27423
|
+
m = m or dict()
|
|
27424
|
+
if m.get('EditingConfig') is not None:
|
|
27425
|
+
temp_model = SubmitSmartClipTaskRequestEditingConfig()
|
|
27426
|
+
self.editing_config = temp_model.from_map(m['EditingConfig'])
|
|
27427
|
+
if m.get('InputConfig') is not None:
|
|
27428
|
+
temp_model = SubmitSmartClipTaskRequestInputConfig()
|
|
27429
|
+
self.input_config = temp_model.from_map(m['InputConfig'])
|
|
27430
|
+
if m.get('OutputConfig') is not None:
|
|
27431
|
+
temp_model = SubmitSmartClipTaskRequestOutputConfig()
|
|
27432
|
+
self.output_config = temp_model.from_map(m['OutputConfig'])
|
|
27433
|
+
if m.get('WorkspaceId') is not None:
|
|
27434
|
+
self.workspace_id = m.get('WorkspaceId')
|
|
27435
|
+
return self
|
|
27436
|
+
|
|
27437
|
+
|
|
27438
|
+
class SubmitSmartClipTaskShrinkRequest(TeaModel):
|
|
27439
|
+
def __init__(
|
|
27440
|
+
self,
|
|
27441
|
+
editing_config_shrink: str = None,
|
|
27442
|
+
input_config_shrink: str = None,
|
|
27443
|
+
output_config_shrink: str = None,
|
|
27444
|
+
workspace_id: str = None,
|
|
27445
|
+
):
|
|
27446
|
+
self.editing_config_shrink = editing_config_shrink
|
|
27447
|
+
# This parameter is required.
|
|
27448
|
+
self.input_config_shrink = input_config_shrink
|
|
27449
|
+
self.output_config_shrink = output_config_shrink
|
|
27450
|
+
# This parameter is required.
|
|
27451
|
+
self.workspace_id = workspace_id
|
|
27452
|
+
|
|
27453
|
+
def validate(self):
|
|
27454
|
+
pass
|
|
27455
|
+
|
|
27456
|
+
def to_map(self):
|
|
27457
|
+
_map = super().to_map()
|
|
27458
|
+
if _map is not None:
|
|
27459
|
+
return _map
|
|
27460
|
+
|
|
27461
|
+
result = dict()
|
|
27462
|
+
if self.editing_config_shrink is not None:
|
|
27463
|
+
result['EditingConfig'] = self.editing_config_shrink
|
|
27464
|
+
if self.input_config_shrink is not None:
|
|
27465
|
+
result['InputConfig'] = self.input_config_shrink
|
|
27466
|
+
if self.output_config_shrink is not None:
|
|
27467
|
+
result['OutputConfig'] = self.output_config_shrink
|
|
27468
|
+
if self.workspace_id is not None:
|
|
27469
|
+
result['WorkspaceId'] = self.workspace_id
|
|
27470
|
+
return result
|
|
27471
|
+
|
|
27472
|
+
def from_map(self, m: dict = None):
|
|
27473
|
+
m = m or dict()
|
|
27474
|
+
if m.get('EditingConfig') is not None:
|
|
27475
|
+
self.editing_config_shrink = m.get('EditingConfig')
|
|
27476
|
+
if m.get('InputConfig') is not None:
|
|
27477
|
+
self.input_config_shrink = m.get('InputConfig')
|
|
27478
|
+
if m.get('OutputConfig') is not None:
|
|
27479
|
+
self.output_config_shrink = m.get('OutputConfig')
|
|
27480
|
+
if m.get('WorkspaceId') is not None:
|
|
27481
|
+
self.workspace_id = m.get('WorkspaceId')
|
|
27482
|
+
return self
|
|
27483
|
+
|
|
27484
|
+
|
|
27485
|
+
class SubmitSmartClipTaskResponseBodyData(TeaModel):
|
|
27486
|
+
def __init__(
|
|
27487
|
+
self,
|
|
27488
|
+
task_id: str = None,
|
|
27489
|
+
):
|
|
27490
|
+
self.task_id = task_id
|
|
27491
|
+
|
|
27492
|
+
def validate(self):
|
|
27493
|
+
pass
|
|
27494
|
+
|
|
27495
|
+
def to_map(self):
|
|
27496
|
+
_map = super().to_map()
|
|
27497
|
+
if _map is not None:
|
|
27498
|
+
return _map
|
|
27499
|
+
|
|
27500
|
+
result = dict()
|
|
27501
|
+
if self.task_id is not None:
|
|
27502
|
+
result['TaskId'] = self.task_id
|
|
27503
|
+
return result
|
|
27504
|
+
|
|
27505
|
+
def from_map(self, m: dict = None):
|
|
27506
|
+
m = m or dict()
|
|
27507
|
+
if m.get('TaskId') is not None:
|
|
27508
|
+
self.task_id = m.get('TaskId')
|
|
27509
|
+
return self
|
|
27510
|
+
|
|
27511
|
+
|
|
27512
|
+
class SubmitSmartClipTaskResponseBody(TeaModel):
|
|
27513
|
+
def __init__(
|
|
27514
|
+
self,
|
|
27515
|
+
code: str = None,
|
|
27516
|
+
data: SubmitSmartClipTaskResponseBodyData = None,
|
|
27517
|
+
http_status_code: int = None,
|
|
27518
|
+
message: str = None,
|
|
27519
|
+
request_id: str = None,
|
|
27520
|
+
success: bool = None,
|
|
27521
|
+
):
|
|
27522
|
+
self.code = code
|
|
27523
|
+
self.data = data
|
|
27524
|
+
self.http_status_code = http_status_code
|
|
27525
|
+
self.message = message
|
|
27526
|
+
self.request_id = request_id
|
|
27527
|
+
self.success = success
|
|
27528
|
+
|
|
27529
|
+
def validate(self):
|
|
27530
|
+
if self.data:
|
|
27531
|
+
self.data.validate()
|
|
27532
|
+
|
|
27533
|
+
def to_map(self):
|
|
27534
|
+
_map = super().to_map()
|
|
27535
|
+
if _map is not None:
|
|
27536
|
+
return _map
|
|
27537
|
+
|
|
27538
|
+
result = dict()
|
|
27539
|
+
if self.code is not None:
|
|
27540
|
+
result['Code'] = self.code
|
|
27541
|
+
if self.data is not None:
|
|
27542
|
+
result['Data'] = self.data.to_map()
|
|
27543
|
+
if self.http_status_code is not None:
|
|
27544
|
+
result['HttpStatusCode'] = self.http_status_code
|
|
27545
|
+
if self.message is not None:
|
|
27546
|
+
result['Message'] = self.message
|
|
27547
|
+
if self.request_id is not None:
|
|
27548
|
+
result['RequestId'] = self.request_id
|
|
27549
|
+
if self.success is not None:
|
|
27550
|
+
result['Success'] = self.success
|
|
27551
|
+
return result
|
|
27552
|
+
|
|
27553
|
+
def from_map(self, m: dict = None):
|
|
27554
|
+
m = m or dict()
|
|
27555
|
+
if m.get('Code') is not None:
|
|
27556
|
+
self.code = m.get('Code')
|
|
27557
|
+
if m.get('Data') is not None:
|
|
27558
|
+
temp_model = SubmitSmartClipTaskResponseBodyData()
|
|
27559
|
+
self.data = temp_model.from_map(m['Data'])
|
|
27560
|
+
if m.get('HttpStatusCode') is not None:
|
|
27561
|
+
self.http_status_code = m.get('HttpStatusCode')
|
|
27562
|
+
if m.get('Message') is not None:
|
|
27563
|
+
self.message = m.get('Message')
|
|
27564
|
+
if m.get('RequestId') is not None:
|
|
27565
|
+
self.request_id = m.get('RequestId')
|
|
27566
|
+
if m.get('Success') is not None:
|
|
27567
|
+
self.success = m.get('Success')
|
|
27568
|
+
return self
|
|
27569
|
+
|
|
27570
|
+
|
|
27571
|
+
class SubmitSmartClipTaskResponse(TeaModel):
|
|
27572
|
+
def __init__(
|
|
27573
|
+
self,
|
|
27574
|
+
headers: Dict[str, str] = None,
|
|
27575
|
+
status_code: int = None,
|
|
27576
|
+
body: SubmitSmartClipTaskResponseBody = None,
|
|
27577
|
+
):
|
|
27578
|
+
self.headers = headers
|
|
27579
|
+
self.status_code = status_code
|
|
27580
|
+
self.body = body
|
|
27581
|
+
|
|
27582
|
+
def validate(self):
|
|
27583
|
+
if self.body:
|
|
27584
|
+
self.body.validate()
|
|
27585
|
+
|
|
27586
|
+
def to_map(self):
|
|
27587
|
+
_map = super().to_map()
|
|
27588
|
+
if _map is not None:
|
|
27589
|
+
return _map
|
|
27590
|
+
|
|
27591
|
+
result = dict()
|
|
27592
|
+
if self.headers is not None:
|
|
27593
|
+
result['headers'] = self.headers
|
|
27594
|
+
if self.status_code is not None:
|
|
27595
|
+
result['statusCode'] = self.status_code
|
|
27596
|
+
if self.body is not None:
|
|
27597
|
+
result['body'] = self.body.to_map()
|
|
27598
|
+
return result
|
|
27599
|
+
|
|
27600
|
+
def from_map(self, m: dict = None):
|
|
27601
|
+
m = m or dict()
|
|
27602
|
+
if m.get('headers') is not None:
|
|
27603
|
+
self.headers = m.get('headers')
|
|
27604
|
+
if m.get('statusCode') is not None:
|
|
27605
|
+
self.status_code = m.get('statusCode')
|
|
27606
|
+
if m.get('body') is not None:
|
|
27607
|
+
temp_model = SubmitSmartClipTaskResponseBody()
|
|
27608
|
+
self.body = temp_model.from_map(m['body'])
|
|
27609
|
+
return self
|
|
27610
|
+
|
|
27611
|
+
|
|
26713
27612
|
class SubmitTopicSelectionPerspectiveAnalysisTaskRequestDocumentsComments(TeaModel):
|
|
26714
27613
|
def __init__(
|
|
26715
27614
|
self,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '1.10.0'
|
|
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
|