alibabacloud-aimiaobi20230801 1.10.0__tar.gz → 1.11.1__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.
Files changed (17) hide show
  1. {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.1}/ChangeLog.md +13 -0
  2. {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.1}/PKG-INFO +1 -1
  3. alibabacloud_aimiaobi20230801-1.11.1/alibabacloud_aimiaobi20230801/__init__.py +1 -0
  4. {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.1}/alibabacloud_aimiaobi20230801/client.py +224 -0
  5. {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.1}/alibabacloud_aimiaobi20230801/models.py +905 -0
  6. {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.1}/alibabacloud_aimiaobi20230801.egg-info/PKG-INFO +1 -1
  7. {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.1}/setup.py +1 -1
  8. alibabacloud_aimiaobi20230801-1.10.0/alibabacloud_aimiaobi20230801/__init__.py +0 -1
  9. {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.1}/LICENSE +0 -0
  10. {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.1}/MANIFEST.in +0 -0
  11. {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.1}/README-CN.md +0 -0
  12. {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.1}/README.md +0 -0
  13. {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.1}/alibabacloud_aimiaobi20230801.egg-info/SOURCES.txt +0 -0
  14. {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.1}/alibabacloud_aimiaobi20230801.egg-info/dependency_links.txt +0 -0
  15. {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.1}/alibabacloud_aimiaobi20230801.egg-info/requires.txt +0 -0
  16. {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.1}/alibabacloud_aimiaobi20230801.egg-info/top_level.txt +0 -0
  17. {alibabacloud_aimiaobi20230801-1.10.0 → alibabacloud_aimiaobi20230801-1.11.1}/setup.cfg +0 -0
@@ -1,3 +1,16 @@
1
+ 2024-12-05 Version: 1.11.0
2
+ - Support API GetSmartClipTask.
3
+ - Support API SubmitSmartClipTask.
4
+
5
+
6
+ 2024-11-28 Version: 1.10.0
7
+ - Support API GetCategoriesByTaskId.
8
+ - Support API GetEnterpriseVocAnalysisTask.
9
+ - Support API ListAnalysisTagDetailByTaskId.
10
+ - Support API SubmitEnterpriseVocAnalysisTask.
11
+ - Support API ValidateUploadTemplate.
12
+
13
+
1
14
  2024-11-01 Version: 1.9.0
2
15
  - Support API GetCustomHotTopicBroadcastJob.
3
16
  - Support API GetHotTopicBroadcast.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: alibabacloud_aimiaobi20230801
3
- Version: 1.10.0
3
+ Version: 1.11.1
4
4
  Summary: Alibaba Cloud AiMiaoBi (20230801) SDK Library for Python
5
5
  Home-page: https://github.com/aliyun/alibabacloud-python-sdk
6
6
  Author: Alibaba Cloud SDK
@@ -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,
@@ -23984,10 +24276,12 @@ class RunWritingResponseBodyPayload(TeaModel):
23984
24276
  class RunWritingResponseBody(TeaModel):
23985
24277
  def __init__(
23986
24278
  self,
24279
+ end: bool = None,
23987
24280
  header: RunWritingResponseBodyHeader = None,
23988
24281
  payload: RunWritingResponseBodyPayload = None,
23989
24282
  request_id: str = None,
23990
24283
  ):
24284
+ self.end = end
23991
24285
  self.header = header
23992
24286
  self.payload = payload
23993
24287
  self.request_id = request_id
@@ -24004,6 +24298,8 @@ class RunWritingResponseBody(TeaModel):
24004
24298
  return _map
24005
24299
 
24006
24300
  result = dict()
24301
+ if self.end is not None:
24302
+ result['End'] = self.end
24007
24303
  if self.header is not None:
24008
24304
  result['Header'] = self.header.to_map()
24009
24305
  if self.payload is not None:
@@ -24014,6 +24310,8 @@ class RunWritingResponseBody(TeaModel):
24014
24310
 
24015
24311
  def from_map(self, m: dict = None):
24016
24312
  m = m or dict()
24313
+ if m.get('End') is not None:
24314
+ self.end = m.get('End')
24017
24315
  if m.get('Header') is not None:
24018
24316
  temp_model = RunWritingResponseBodyHeader()
24019
24317
  self.header = temp_model.from_map(m['Header'])
@@ -26710,6 +27008,613 @@ class SubmitEnterpriseVocAnalysisTaskResponse(TeaModel):
26710
27008
  return self
26711
27009
 
26712
27010
 
27011
+ class SubmitSmartClipTaskRequestEditingConfigTitleConfig(TeaModel):
27012
+ def __init__(
27013
+ self,
27014
+ alignment: str = None,
27015
+ timeline_in: float = None,
27016
+ timeline_out: float = None,
27017
+ x: float = None,
27018
+ y: float = None,
27019
+ ):
27020
+ self.alignment = alignment
27021
+ self.timeline_in = timeline_in
27022
+ self.timeline_out = timeline_out
27023
+ self.x = x
27024
+ self.y = y
27025
+
27026
+ def validate(self):
27027
+ pass
27028
+
27029
+ def to_map(self):
27030
+ _map = super().to_map()
27031
+ if _map is not None:
27032
+ return _map
27033
+
27034
+ result = dict()
27035
+ if self.alignment is not None:
27036
+ result['Alignment'] = self.alignment
27037
+ if self.timeline_in is not None:
27038
+ result['TimelineIn'] = self.timeline_in
27039
+ if self.timeline_out is not None:
27040
+ result['TimelineOut'] = self.timeline_out
27041
+ if self.x is not None:
27042
+ result['X'] = self.x
27043
+ if self.y is not None:
27044
+ result['Y'] = self.y
27045
+ return result
27046
+
27047
+ def from_map(self, m: dict = None):
27048
+ m = m or dict()
27049
+ if m.get('Alignment') is not None:
27050
+ self.alignment = m.get('Alignment')
27051
+ if m.get('TimelineIn') is not None:
27052
+ self.timeline_in = m.get('TimelineIn')
27053
+ if m.get('TimelineOut') is not None:
27054
+ self.timeline_out = m.get('TimelineOut')
27055
+ if m.get('X') is not None:
27056
+ self.x = m.get('X')
27057
+ if m.get('Y') is not None:
27058
+ self.y = m.get('Y')
27059
+ return self
27060
+
27061
+
27062
+ class SubmitSmartClipTaskRequestEditingConfig(TeaModel):
27063
+ def __init__(
27064
+ self,
27065
+ title_config: SubmitSmartClipTaskRequestEditingConfigTitleConfig = None,
27066
+ ):
27067
+ self.title_config = title_config
27068
+
27069
+ def validate(self):
27070
+ if self.title_config:
27071
+ self.title_config.validate()
27072
+
27073
+ def to_map(self):
27074
+ _map = super().to_map()
27075
+ if _map is not None:
27076
+ return _map
27077
+
27078
+ result = dict()
27079
+ if self.title_config is not None:
27080
+ result['TitleConfig'] = self.title_config.to_map()
27081
+ return result
27082
+
27083
+ def from_map(self, m: dict = None):
27084
+ m = m or dict()
27085
+ if m.get('TitleConfig') is not None:
27086
+ temp_model = SubmitSmartClipTaskRequestEditingConfigTitleConfig()
27087
+ self.title_config = temp_model.from_map(m['TitleConfig'])
27088
+ return self
27089
+
27090
+
27091
+ class SubmitSmartClipTaskRequestInputConfigBackgroundMusics(TeaModel):
27092
+ def __init__(
27093
+ self,
27094
+ id: str = None,
27095
+ type: str = None,
27096
+ ):
27097
+ # This parameter is required.
27098
+ self.id = id
27099
+ # This parameter is required.
27100
+ self.type = type
27101
+
27102
+ def validate(self):
27103
+ pass
27104
+
27105
+ def to_map(self):
27106
+ _map = super().to_map()
27107
+ if _map is not None:
27108
+ return _map
27109
+
27110
+ result = dict()
27111
+ if self.id is not None:
27112
+ result['Id'] = self.id
27113
+ if self.type is not None:
27114
+ result['Type'] = self.type
27115
+ return result
27116
+
27117
+ def from_map(self, m: dict = None):
27118
+ m = m or dict()
27119
+ if m.get('Id') is not None:
27120
+ self.id = m.get('Id')
27121
+ if m.get('Type') is not None:
27122
+ self.type = m.get('Type')
27123
+ return self
27124
+
27125
+
27126
+ class SubmitSmartClipTaskRequestInputConfigStickersStickerId(TeaModel):
27127
+ def __init__(
27128
+ self,
27129
+ id: str = None,
27130
+ type: str = None,
27131
+ ):
27132
+ # This parameter is required.
27133
+ self.id = id
27134
+ # This parameter is required.
27135
+ self.type = type
27136
+
27137
+ def validate(self):
27138
+ pass
27139
+
27140
+ def to_map(self):
27141
+ _map = super().to_map()
27142
+ if _map is not None:
27143
+ return _map
27144
+
27145
+ result = dict()
27146
+ if self.id is not None:
27147
+ result['Id'] = self.id
27148
+ if self.type is not None:
27149
+ result['Type'] = self.type
27150
+ return result
27151
+
27152
+ def from_map(self, m: dict = None):
27153
+ m = m or dict()
27154
+ if m.get('Id') is not None:
27155
+ self.id = m.get('Id')
27156
+ if m.get('Type') is not None:
27157
+ self.type = m.get('Type')
27158
+ return self
27159
+
27160
+
27161
+ class SubmitSmartClipTaskRequestInputConfigStickers(TeaModel):
27162
+ def __init__(
27163
+ self,
27164
+ height: float = None,
27165
+ sticker_id: SubmitSmartClipTaskRequestInputConfigStickersStickerId = None,
27166
+ width: float = None,
27167
+ x: float = None,
27168
+ y: float = None,
27169
+ ):
27170
+ # This parameter is required.
27171
+ self.height = height
27172
+ # This parameter is required.
27173
+ self.sticker_id = sticker_id
27174
+ # This parameter is required.
27175
+ self.width = width
27176
+ # This parameter is required.
27177
+ self.x = x
27178
+ # This parameter is required.
27179
+ self.y = y
27180
+
27181
+ def validate(self):
27182
+ if self.sticker_id:
27183
+ self.sticker_id.validate()
27184
+
27185
+ def to_map(self):
27186
+ _map = super().to_map()
27187
+ if _map is not None:
27188
+ return _map
27189
+
27190
+ result = dict()
27191
+ if self.height is not None:
27192
+ result['Height'] = self.height
27193
+ if self.sticker_id is not None:
27194
+ result['StickerId'] = self.sticker_id.to_map()
27195
+ if self.width is not None:
27196
+ result['Width'] = self.width
27197
+ if self.x is not None:
27198
+ result['X'] = self.x
27199
+ if self.y is not None:
27200
+ result['Y'] = self.y
27201
+ return result
27202
+
27203
+ def from_map(self, m: dict = None):
27204
+ m = m or dict()
27205
+ if m.get('Height') is not None:
27206
+ self.height = m.get('Height')
27207
+ if m.get('StickerId') is not None:
27208
+ temp_model = SubmitSmartClipTaskRequestInputConfigStickersStickerId()
27209
+ self.sticker_id = temp_model.from_map(m['StickerId'])
27210
+ if m.get('Width') is not None:
27211
+ self.width = m.get('Width')
27212
+ if m.get('X') is not None:
27213
+ self.x = m.get('X')
27214
+ if m.get('Y') is not None:
27215
+ self.y = m.get('Y')
27216
+ return self
27217
+
27218
+
27219
+ class SubmitSmartClipTaskRequestInputConfigVideoIds(TeaModel):
27220
+ def __init__(
27221
+ self,
27222
+ id: str = None,
27223
+ type: str = None,
27224
+ ):
27225
+ # This parameter is required.
27226
+ self.id = id
27227
+ # This parameter is required.
27228
+ self.type = type
27229
+
27230
+ def validate(self):
27231
+ pass
27232
+
27233
+ def to_map(self):
27234
+ _map = super().to_map()
27235
+ if _map is not None:
27236
+ return _map
27237
+
27238
+ result = dict()
27239
+ if self.id is not None:
27240
+ result['Id'] = self.id
27241
+ if self.type is not None:
27242
+ result['Type'] = self.type
27243
+ return result
27244
+
27245
+ def from_map(self, m: dict = None):
27246
+ m = m or dict()
27247
+ if m.get('Id') is not None:
27248
+ self.id = m.get('Id')
27249
+ if m.get('Type') is not None:
27250
+ self.type = m.get('Type')
27251
+ return self
27252
+
27253
+
27254
+ class SubmitSmartClipTaskRequestInputConfig(TeaModel):
27255
+ def __init__(
27256
+ self,
27257
+ background_musics: List[SubmitSmartClipTaskRequestInputConfigBackgroundMusics] = None,
27258
+ speech_texts: List[str] = None,
27259
+ stickers: List[SubmitSmartClipTaskRequestInputConfigStickers] = None,
27260
+ titles: List[str] = None,
27261
+ video_ids: List[SubmitSmartClipTaskRequestInputConfigVideoIds] = None,
27262
+ ):
27263
+ self.background_musics = background_musics
27264
+ self.speech_texts = speech_texts
27265
+ self.stickers = stickers
27266
+ self.titles = titles
27267
+ # This parameter is required.
27268
+ self.video_ids = video_ids
27269
+
27270
+ def validate(self):
27271
+ if self.background_musics:
27272
+ for k in self.background_musics:
27273
+ if k:
27274
+ k.validate()
27275
+ if self.stickers:
27276
+ for k in self.stickers:
27277
+ if k:
27278
+ k.validate()
27279
+ if self.video_ids:
27280
+ for k in self.video_ids:
27281
+ if k:
27282
+ k.validate()
27283
+
27284
+ def to_map(self):
27285
+ _map = super().to_map()
27286
+ if _map is not None:
27287
+ return _map
27288
+
27289
+ result = dict()
27290
+ result['BackgroundMusics'] = []
27291
+ if self.background_musics is not None:
27292
+ for k in self.background_musics:
27293
+ result['BackgroundMusics'].append(k.to_map() if k else None)
27294
+ if self.speech_texts is not None:
27295
+ result['SpeechTexts'] = self.speech_texts
27296
+ result['Stickers'] = []
27297
+ if self.stickers is not None:
27298
+ for k in self.stickers:
27299
+ result['Stickers'].append(k.to_map() if k else None)
27300
+ if self.titles is not None:
27301
+ result['Titles'] = self.titles
27302
+ result['VideoIds'] = []
27303
+ if self.video_ids is not None:
27304
+ for k in self.video_ids:
27305
+ result['VideoIds'].append(k.to_map() if k else None)
27306
+ return result
27307
+
27308
+ def from_map(self, m: dict = None):
27309
+ m = m or dict()
27310
+ self.background_musics = []
27311
+ if m.get('BackgroundMusics') is not None:
27312
+ for k in m.get('BackgroundMusics'):
27313
+ temp_model = SubmitSmartClipTaskRequestInputConfigBackgroundMusics()
27314
+ self.background_musics.append(temp_model.from_map(k))
27315
+ if m.get('SpeechTexts') is not None:
27316
+ self.speech_texts = m.get('SpeechTexts')
27317
+ self.stickers = []
27318
+ if m.get('Stickers') is not None:
27319
+ for k in m.get('Stickers'):
27320
+ temp_model = SubmitSmartClipTaskRequestInputConfigStickers()
27321
+ self.stickers.append(temp_model.from_map(k))
27322
+ if m.get('Titles') is not None:
27323
+ self.titles = m.get('Titles')
27324
+ self.video_ids = []
27325
+ if m.get('VideoIds') is not None:
27326
+ for k in m.get('VideoIds'):
27327
+ temp_model = SubmitSmartClipTaskRequestInputConfigVideoIds()
27328
+ self.video_ids.append(temp_model.from_map(k))
27329
+ return self
27330
+
27331
+
27332
+ class SubmitSmartClipTaskRequestOutputConfig(TeaModel):
27333
+ def __init__(
27334
+ self,
27335
+ count: int = None,
27336
+ file_name: str = None,
27337
+ height: int = None,
27338
+ max_duration: int = None,
27339
+ save_to_generated_content: bool = None,
27340
+ width: int = None,
27341
+ ):
27342
+ self.count = count
27343
+ self.file_name = file_name
27344
+ self.height = height
27345
+ self.max_duration = max_duration
27346
+ self.save_to_generated_content = save_to_generated_content
27347
+ self.width = width
27348
+
27349
+ def validate(self):
27350
+ pass
27351
+
27352
+ def to_map(self):
27353
+ _map = super().to_map()
27354
+ if _map is not None:
27355
+ return _map
27356
+
27357
+ result = dict()
27358
+ if self.count is not None:
27359
+ result['Count'] = self.count
27360
+ if self.file_name is not None:
27361
+ result['FileName'] = self.file_name
27362
+ if self.height is not None:
27363
+ result['Height'] = self.height
27364
+ if self.max_duration is not None:
27365
+ result['MaxDuration'] = self.max_duration
27366
+ if self.save_to_generated_content is not None:
27367
+ result['SaveToGeneratedContent'] = self.save_to_generated_content
27368
+ if self.width is not None:
27369
+ result['Width'] = self.width
27370
+ return result
27371
+
27372
+ def from_map(self, m: dict = None):
27373
+ m = m or dict()
27374
+ if m.get('Count') is not None:
27375
+ self.count = m.get('Count')
27376
+ if m.get('FileName') is not None:
27377
+ self.file_name = m.get('FileName')
27378
+ if m.get('Height') is not None:
27379
+ self.height = m.get('Height')
27380
+ if m.get('MaxDuration') is not None:
27381
+ self.max_duration = m.get('MaxDuration')
27382
+ if m.get('SaveToGeneratedContent') is not None:
27383
+ self.save_to_generated_content = m.get('SaveToGeneratedContent')
27384
+ if m.get('Width') is not None:
27385
+ self.width = m.get('Width')
27386
+ return self
27387
+
27388
+
27389
+ class SubmitSmartClipTaskRequest(TeaModel):
27390
+ def __init__(
27391
+ self,
27392
+ editing_config: SubmitSmartClipTaskRequestEditingConfig = None,
27393
+ input_config: SubmitSmartClipTaskRequestInputConfig = None,
27394
+ output_config: SubmitSmartClipTaskRequestOutputConfig = None,
27395
+ workspace_id: str = None,
27396
+ ):
27397
+ self.editing_config = editing_config
27398
+ # This parameter is required.
27399
+ self.input_config = input_config
27400
+ self.output_config = output_config
27401
+ # This parameter is required.
27402
+ self.workspace_id = workspace_id
27403
+
27404
+ def validate(self):
27405
+ if self.editing_config:
27406
+ self.editing_config.validate()
27407
+ if self.input_config:
27408
+ self.input_config.validate()
27409
+ if self.output_config:
27410
+ self.output_config.validate()
27411
+
27412
+ def to_map(self):
27413
+ _map = super().to_map()
27414
+ if _map is not None:
27415
+ return _map
27416
+
27417
+ result = dict()
27418
+ if self.editing_config is not None:
27419
+ result['EditingConfig'] = self.editing_config.to_map()
27420
+ if self.input_config is not None:
27421
+ result['InputConfig'] = self.input_config.to_map()
27422
+ if self.output_config is not None:
27423
+ result['OutputConfig'] = self.output_config.to_map()
27424
+ if self.workspace_id is not None:
27425
+ result['WorkspaceId'] = self.workspace_id
27426
+ return result
27427
+
27428
+ def from_map(self, m: dict = None):
27429
+ m = m or dict()
27430
+ if m.get('EditingConfig') is not None:
27431
+ temp_model = SubmitSmartClipTaskRequestEditingConfig()
27432
+ self.editing_config = temp_model.from_map(m['EditingConfig'])
27433
+ if m.get('InputConfig') is not None:
27434
+ temp_model = SubmitSmartClipTaskRequestInputConfig()
27435
+ self.input_config = temp_model.from_map(m['InputConfig'])
27436
+ if m.get('OutputConfig') is not None:
27437
+ temp_model = SubmitSmartClipTaskRequestOutputConfig()
27438
+ self.output_config = temp_model.from_map(m['OutputConfig'])
27439
+ if m.get('WorkspaceId') is not None:
27440
+ self.workspace_id = m.get('WorkspaceId')
27441
+ return self
27442
+
27443
+
27444
+ class SubmitSmartClipTaskShrinkRequest(TeaModel):
27445
+ def __init__(
27446
+ self,
27447
+ editing_config_shrink: str = None,
27448
+ input_config_shrink: str = None,
27449
+ output_config_shrink: str = None,
27450
+ workspace_id: str = None,
27451
+ ):
27452
+ self.editing_config_shrink = editing_config_shrink
27453
+ # This parameter is required.
27454
+ self.input_config_shrink = input_config_shrink
27455
+ self.output_config_shrink = output_config_shrink
27456
+ # This parameter is required.
27457
+ self.workspace_id = workspace_id
27458
+
27459
+ def validate(self):
27460
+ pass
27461
+
27462
+ def to_map(self):
27463
+ _map = super().to_map()
27464
+ if _map is not None:
27465
+ return _map
27466
+
27467
+ result = dict()
27468
+ if self.editing_config_shrink is not None:
27469
+ result['EditingConfig'] = self.editing_config_shrink
27470
+ if self.input_config_shrink is not None:
27471
+ result['InputConfig'] = self.input_config_shrink
27472
+ if self.output_config_shrink is not None:
27473
+ result['OutputConfig'] = self.output_config_shrink
27474
+ if self.workspace_id is not None:
27475
+ result['WorkspaceId'] = self.workspace_id
27476
+ return result
27477
+
27478
+ def from_map(self, m: dict = None):
27479
+ m = m or dict()
27480
+ if m.get('EditingConfig') is not None:
27481
+ self.editing_config_shrink = m.get('EditingConfig')
27482
+ if m.get('InputConfig') is not None:
27483
+ self.input_config_shrink = m.get('InputConfig')
27484
+ if m.get('OutputConfig') is not None:
27485
+ self.output_config_shrink = m.get('OutputConfig')
27486
+ if m.get('WorkspaceId') is not None:
27487
+ self.workspace_id = m.get('WorkspaceId')
27488
+ return self
27489
+
27490
+
27491
+ class SubmitSmartClipTaskResponseBodyData(TeaModel):
27492
+ def __init__(
27493
+ self,
27494
+ task_id: str = None,
27495
+ ):
27496
+ self.task_id = task_id
27497
+
27498
+ def validate(self):
27499
+ pass
27500
+
27501
+ def to_map(self):
27502
+ _map = super().to_map()
27503
+ if _map is not None:
27504
+ return _map
27505
+
27506
+ result = dict()
27507
+ if self.task_id is not None:
27508
+ result['TaskId'] = self.task_id
27509
+ return result
27510
+
27511
+ def from_map(self, m: dict = None):
27512
+ m = m or dict()
27513
+ if m.get('TaskId') is not None:
27514
+ self.task_id = m.get('TaskId')
27515
+ return self
27516
+
27517
+
27518
+ class SubmitSmartClipTaskResponseBody(TeaModel):
27519
+ def __init__(
27520
+ self,
27521
+ code: str = None,
27522
+ data: SubmitSmartClipTaskResponseBodyData = None,
27523
+ http_status_code: int = None,
27524
+ message: str = None,
27525
+ request_id: str = None,
27526
+ success: bool = None,
27527
+ ):
27528
+ self.code = code
27529
+ self.data = data
27530
+ self.http_status_code = http_status_code
27531
+ self.message = message
27532
+ self.request_id = request_id
27533
+ self.success = success
27534
+
27535
+ def validate(self):
27536
+ if self.data:
27537
+ self.data.validate()
27538
+
27539
+ def to_map(self):
27540
+ _map = super().to_map()
27541
+ if _map is not None:
27542
+ return _map
27543
+
27544
+ result = dict()
27545
+ if self.code is not None:
27546
+ result['Code'] = self.code
27547
+ if self.data is not None:
27548
+ result['Data'] = self.data.to_map()
27549
+ if self.http_status_code is not None:
27550
+ result['HttpStatusCode'] = self.http_status_code
27551
+ if self.message is not None:
27552
+ result['Message'] = self.message
27553
+ if self.request_id is not None:
27554
+ result['RequestId'] = self.request_id
27555
+ if self.success is not None:
27556
+ result['Success'] = self.success
27557
+ return result
27558
+
27559
+ def from_map(self, m: dict = None):
27560
+ m = m or dict()
27561
+ if m.get('Code') is not None:
27562
+ self.code = m.get('Code')
27563
+ if m.get('Data') is not None:
27564
+ temp_model = SubmitSmartClipTaskResponseBodyData()
27565
+ self.data = temp_model.from_map(m['Data'])
27566
+ if m.get('HttpStatusCode') is not None:
27567
+ self.http_status_code = m.get('HttpStatusCode')
27568
+ if m.get('Message') is not None:
27569
+ self.message = m.get('Message')
27570
+ if m.get('RequestId') is not None:
27571
+ self.request_id = m.get('RequestId')
27572
+ if m.get('Success') is not None:
27573
+ self.success = m.get('Success')
27574
+ return self
27575
+
27576
+
27577
+ class SubmitSmartClipTaskResponse(TeaModel):
27578
+ def __init__(
27579
+ self,
27580
+ headers: Dict[str, str] = None,
27581
+ status_code: int = None,
27582
+ body: SubmitSmartClipTaskResponseBody = None,
27583
+ ):
27584
+ self.headers = headers
27585
+ self.status_code = status_code
27586
+ self.body = body
27587
+
27588
+ def validate(self):
27589
+ if self.body:
27590
+ self.body.validate()
27591
+
27592
+ def to_map(self):
27593
+ _map = super().to_map()
27594
+ if _map is not None:
27595
+ return _map
27596
+
27597
+ result = dict()
27598
+ if self.headers is not None:
27599
+ result['headers'] = self.headers
27600
+ if self.status_code is not None:
27601
+ result['statusCode'] = self.status_code
27602
+ if self.body is not None:
27603
+ result['body'] = self.body.to_map()
27604
+ return result
27605
+
27606
+ def from_map(self, m: dict = None):
27607
+ m = m or dict()
27608
+ if m.get('headers') is not None:
27609
+ self.headers = m.get('headers')
27610
+ if m.get('statusCode') is not None:
27611
+ self.status_code = m.get('statusCode')
27612
+ if m.get('body') is not None:
27613
+ temp_model = SubmitSmartClipTaskResponseBody()
27614
+ self.body = temp_model.from_map(m['body'])
27615
+ return self
27616
+
27617
+
26713
27618
  class SubmitTopicSelectionPerspectiveAnalysisTaskRequestDocumentsComments(TeaModel):
26714
27619
  def __init__(
26715
27620
  self,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: alibabacloud-aimiaobi20230801
3
- Version: 1.10.0
3
+ Version: 1.11.1
4
4
  Summary: Alibaba Cloud AiMiaoBi (20230801) SDK Library for Python
5
5
  Home-page: https://github.com/aliyun/alibabacloud-python-sdk
6
6
  Author: Alibaba Cloud SDK
@@ -24,7 +24,7 @@ from setuptools import setup, find_packages
24
24
  """
25
25
  setup module for alibabacloud_aimiaobi20230801.
26
26
 
27
- Created on 28/11/2024
27
+ Created on 16/12/2024
28
28
 
29
29
  @author: Alibaba Cloud SDK
30
30
  """
@@ -1 +0,0 @@
1
- __version__ = '1.10.0'