alibabacloud-quanmiaolightapp20240801 2.13.5__py3-none-any.whl → 2.13.7__py3-none-any.whl

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.
@@ -1 +1 @@
1
- __version__ = '2.13.5'
1
+ __version__ = '2.13.7'
@@ -2435,11 +2435,15 @@ class Client(OpenApiClient):
2435
2435
  def run_marketing_information_writing_with_sse(
2436
2436
  self,
2437
2437
  workspace_id: str,
2438
- request: main_models.RunMarketingInformationWritingRequest,
2438
+ tmp_req: main_models.RunMarketingInformationWritingRequest,
2439
2439
  headers: Dict[str, str],
2440
2440
  runtime: RuntimeOptions,
2441
2441
  ) -> Generator[main_models.RunMarketingInformationWritingResponse, None, None]:
2442
- request.validate()
2442
+ tmp_req.validate()
2443
+ request = main_models.RunMarketingInformationWritingShrinkRequest()
2444
+ Utils.convert(tmp_req, request)
2445
+ if not DaraCore.is_null(tmp_req.ext_parameters):
2446
+ request.ext_parameters_shrink = Utils.array_to_string_with_specified_style(tmp_req.ext_parameters, 'extParameters', 'json')
2443
2447
  body = {}
2444
2448
  if not DaraCore.is_null(request.api_key):
2445
2449
  body['apiKey'] = request.api_key
@@ -2447,14 +2451,28 @@ class Client(OpenApiClient):
2447
2451
  body['customLimitation'] = request.custom_limitation
2448
2452
  if not DaraCore.is_null(request.custom_prompt):
2449
2453
  body['customPrompt'] = request.custom_prompt
2454
+ if not DaraCore.is_null(request.ext_parameters_shrink):
2455
+ body['extParameters'] = request.ext_parameters_shrink
2456
+ if not DaraCore.is_null(request.generate_count):
2457
+ body['generateCount'] = request.generate_count
2450
2458
  if not DaraCore.is_null(request.input_example):
2451
2459
  body['inputExample'] = request.input_example
2460
+ if not DaraCore.is_null(request.keywords):
2461
+ body['keywords'] = request.keywords
2462
+ if not DaraCore.is_null(request.language):
2463
+ body['language'] = request.language
2452
2464
  if not DaraCore.is_null(request.model_id):
2453
2465
  body['modelId'] = request.model_id
2466
+ if not DaraCore.is_null(request.other_requirements):
2467
+ body['otherRequirements'] = request.other_requirements
2454
2468
  if not DaraCore.is_null(request.output_example):
2455
2469
  body['outputExample'] = request.output_example
2470
+ if not DaraCore.is_null(request.prompt):
2471
+ body['prompt'] = request.prompt
2456
2472
  if not DaraCore.is_null(request.source_material):
2457
2473
  body['sourceMaterial'] = request.source_material
2474
+ if not DaraCore.is_null(request.word_count_range):
2475
+ body['wordCountRange'] = request.word_count_range
2458
2476
  if not DaraCore.is_null(request.writing_type):
2459
2477
  body['writingType'] = request.writing_type
2460
2478
  req = open_api_util_models.OpenApiRequest(
@@ -2489,11 +2507,15 @@ class Client(OpenApiClient):
2489
2507
  async def run_marketing_information_writing_with_sse_async(
2490
2508
  self,
2491
2509
  workspace_id: str,
2492
- request: main_models.RunMarketingInformationWritingRequest,
2510
+ tmp_req: main_models.RunMarketingInformationWritingRequest,
2493
2511
  headers: Dict[str, str],
2494
2512
  runtime: RuntimeOptions,
2495
2513
  ) -> AsyncGenerator[main_models.RunMarketingInformationWritingResponse, None, None]:
2496
- request.validate()
2514
+ tmp_req.validate()
2515
+ request = main_models.RunMarketingInformationWritingShrinkRequest()
2516
+ Utils.convert(tmp_req, request)
2517
+ if not DaraCore.is_null(tmp_req.ext_parameters):
2518
+ request.ext_parameters_shrink = Utils.array_to_string_with_specified_style(tmp_req.ext_parameters, 'extParameters', 'json')
2497
2519
  body = {}
2498
2520
  if not DaraCore.is_null(request.api_key):
2499
2521
  body['apiKey'] = request.api_key
@@ -2501,14 +2523,28 @@ class Client(OpenApiClient):
2501
2523
  body['customLimitation'] = request.custom_limitation
2502
2524
  if not DaraCore.is_null(request.custom_prompt):
2503
2525
  body['customPrompt'] = request.custom_prompt
2526
+ if not DaraCore.is_null(request.ext_parameters_shrink):
2527
+ body['extParameters'] = request.ext_parameters_shrink
2528
+ if not DaraCore.is_null(request.generate_count):
2529
+ body['generateCount'] = request.generate_count
2504
2530
  if not DaraCore.is_null(request.input_example):
2505
2531
  body['inputExample'] = request.input_example
2532
+ if not DaraCore.is_null(request.keywords):
2533
+ body['keywords'] = request.keywords
2534
+ if not DaraCore.is_null(request.language):
2535
+ body['language'] = request.language
2506
2536
  if not DaraCore.is_null(request.model_id):
2507
2537
  body['modelId'] = request.model_id
2538
+ if not DaraCore.is_null(request.other_requirements):
2539
+ body['otherRequirements'] = request.other_requirements
2508
2540
  if not DaraCore.is_null(request.output_example):
2509
2541
  body['outputExample'] = request.output_example
2542
+ if not DaraCore.is_null(request.prompt):
2543
+ body['prompt'] = request.prompt
2510
2544
  if not DaraCore.is_null(request.source_material):
2511
2545
  body['sourceMaterial'] = request.source_material
2546
+ if not DaraCore.is_null(request.word_count_range):
2547
+ body['wordCountRange'] = request.word_count_range
2512
2548
  if not DaraCore.is_null(request.writing_type):
2513
2549
  body['writingType'] = request.writing_type
2514
2550
  req = open_api_util_models.OpenApiRequest(
@@ -2543,11 +2579,15 @@ class Client(OpenApiClient):
2543
2579
  def run_marketing_information_writing_with_options(
2544
2580
  self,
2545
2581
  workspace_id: str,
2546
- request: main_models.RunMarketingInformationWritingRequest,
2582
+ tmp_req: main_models.RunMarketingInformationWritingRequest,
2547
2583
  headers: Dict[str, str],
2548
2584
  runtime: RuntimeOptions,
2549
2585
  ) -> main_models.RunMarketingInformationWritingResponse:
2550
- request.validate()
2586
+ tmp_req.validate()
2587
+ request = main_models.RunMarketingInformationWritingShrinkRequest()
2588
+ Utils.convert(tmp_req, request)
2589
+ if not DaraCore.is_null(tmp_req.ext_parameters):
2590
+ request.ext_parameters_shrink = Utils.array_to_string_with_specified_style(tmp_req.ext_parameters, 'extParameters', 'json')
2551
2591
  body = {}
2552
2592
  if not DaraCore.is_null(request.api_key):
2553
2593
  body['apiKey'] = request.api_key
@@ -2555,14 +2595,28 @@ class Client(OpenApiClient):
2555
2595
  body['customLimitation'] = request.custom_limitation
2556
2596
  if not DaraCore.is_null(request.custom_prompt):
2557
2597
  body['customPrompt'] = request.custom_prompt
2598
+ if not DaraCore.is_null(request.ext_parameters_shrink):
2599
+ body['extParameters'] = request.ext_parameters_shrink
2600
+ if not DaraCore.is_null(request.generate_count):
2601
+ body['generateCount'] = request.generate_count
2558
2602
  if not DaraCore.is_null(request.input_example):
2559
2603
  body['inputExample'] = request.input_example
2604
+ if not DaraCore.is_null(request.keywords):
2605
+ body['keywords'] = request.keywords
2606
+ if not DaraCore.is_null(request.language):
2607
+ body['language'] = request.language
2560
2608
  if not DaraCore.is_null(request.model_id):
2561
2609
  body['modelId'] = request.model_id
2610
+ if not DaraCore.is_null(request.other_requirements):
2611
+ body['otherRequirements'] = request.other_requirements
2562
2612
  if not DaraCore.is_null(request.output_example):
2563
2613
  body['outputExample'] = request.output_example
2614
+ if not DaraCore.is_null(request.prompt):
2615
+ body['prompt'] = request.prompt
2564
2616
  if not DaraCore.is_null(request.source_material):
2565
2617
  body['sourceMaterial'] = request.source_material
2618
+ if not DaraCore.is_null(request.word_count_range):
2619
+ body['wordCountRange'] = request.word_count_range
2566
2620
  if not DaraCore.is_null(request.writing_type):
2567
2621
  body['writingType'] = request.writing_type
2568
2622
  req = open_api_util_models.OpenApiRequest(
@@ -2588,11 +2642,15 @@ class Client(OpenApiClient):
2588
2642
  async def run_marketing_information_writing_with_options_async(
2589
2643
  self,
2590
2644
  workspace_id: str,
2591
- request: main_models.RunMarketingInformationWritingRequest,
2645
+ tmp_req: main_models.RunMarketingInformationWritingRequest,
2592
2646
  headers: Dict[str, str],
2593
2647
  runtime: RuntimeOptions,
2594
2648
  ) -> main_models.RunMarketingInformationWritingResponse:
2595
- request.validate()
2649
+ tmp_req.validate()
2650
+ request = main_models.RunMarketingInformationWritingShrinkRequest()
2651
+ Utils.convert(tmp_req, request)
2652
+ if not DaraCore.is_null(tmp_req.ext_parameters):
2653
+ request.ext_parameters_shrink = Utils.array_to_string_with_specified_style(tmp_req.ext_parameters, 'extParameters', 'json')
2596
2654
  body = {}
2597
2655
  if not DaraCore.is_null(request.api_key):
2598
2656
  body['apiKey'] = request.api_key
@@ -2600,14 +2658,28 @@ class Client(OpenApiClient):
2600
2658
  body['customLimitation'] = request.custom_limitation
2601
2659
  if not DaraCore.is_null(request.custom_prompt):
2602
2660
  body['customPrompt'] = request.custom_prompt
2661
+ if not DaraCore.is_null(request.ext_parameters_shrink):
2662
+ body['extParameters'] = request.ext_parameters_shrink
2663
+ if not DaraCore.is_null(request.generate_count):
2664
+ body['generateCount'] = request.generate_count
2603
2665
  if not DaraCore.is_null(request.input_example):
2604
2666
  body['inputExample'] = request.input_example
2667
+ if not DaraCore.is_null(request.keywords):
2668
+ body['keywords'] = request.keywords
2669
+ if not DaraCore.is_null(request.language):
2670
+ body['language'] = request.language
2605
2671
  if not DaraCore.is_null(request.model_id):
2606
2672
  body['modelId'] = request.model_id
2673
+ if not DaraCore.is_null(request.other_requirements):
2674
+ body['otherRequirements'] = request.other_requirements
2607
2675
  if not DaraCore.is_null(request.output_example):
2608
2676
  body['outputExample'] = request.output_example
2677
+ if not DaraCore.is_null(request.prompt):
2678
+ body['prompt'] = request.prompt
2609
2679
  if not DaraCore.is_null(request.source_material):
2610
2680
  body['sourceMaterial'] = request.source_material
2681
+ if not DaraCore.is_null(request.word_count_range):
2682
+ body['wordCountRange'] = request.word_count_range
2611
2683
  if not DaraCore.is_null(request.writing_type):
2612
2684
  body['writingType'] = request.writing_type
2613
2685
  req = open_api_util_models.OpenApiRequest(
@@ -68,6 +68,7 @@ from ._run_marketing_information_extract_shrink_request import RunMarketingInfor
68
68
  from ._run_marketing_information_extract_response_body import RunMarketingInformationExtractResponseBody
69
69
  from ._run_marketing_information_extract_response import RunMarketingInformationExtractResponse
70
70
  from ._run_marketing_information_writing_request import RunMarketingInformationWritingRequest
71
+ from ._run_marketing_information_writing_shrink_request import RunMarketingInformationWritingShrinkRequest
71
72
  from ._run_marketing_information_writing_response_body import RunMarketingInformationWritingResponseBody
72
73
  from ._run_marketing_information_writing_response import RunMarketingInformationWritingResponse
73
74
  from ._run_network_content_audit_request import RunNetworkContentAuditRequest
@@ -281,6 +282,8 @@ from ._run_tag_mining_analysis_response_body import RunTagMiningAnalysisResponse
281
282
  from ._run_tag_mining_analysis_response_body import RunTagMiningAnalysisResponseBodyPayloadOutput
282
283
  from ._run_tag_mining_analysis_response_body import RunTagMiningAnalysisResponseBodyPayloadUsage
283
284
  from ._run_tag_mining_analysis_response_body import RunTagMiningAnalysisResponseBodyPayload
285
+ from ._run_video_analysis_request import RunVideoAnalysisRequestAddDocumentParamDocumentMetadataKeyValues
286
+ from ._run_video_analysis_request import RunVideoAnalysisRequestAddDocumentParamDocumentMetadata
284
287
  from ._run_video_analysis_request import RunVideoAnalysisRequestAddDocumentParamDocument
285
288
  from ._run_video_analysis_request import RunVideoAnalysisRequestAddDocumentParam
286
289
  from ._run_video_analysis_request import RunVideoAnalysisRequestFrameSampleMethod
@@ -332,6 +335,8 @@ from ._submit_essay_correction_task_request import SubmitEssayCorrectionTaskRequ
332
335
  from ._submit_essay_correction_task_response_body import SubmitEssayCorrectionTaskResponseBodyData
333
336
  from ._submit_tag_mining_analysis_task_request import SubmitTagMiningAnalysisTaskRequestTags
334
337
  from ._submit_tag_mining_analysis_task_response_body import SubmitTagMiningAnalysisTaskResponseBodyData
338
+ from ._submit_video_analysis_task_request import SubmitVideoAnalysisTaskRequestAddDocumentParamDocumentMetadataKeyValues
339
+ from ._submit_video_analysis_task_request import SubmitVideoAnalysisTaskRequestAddDocumentParamDocumentMetadata
335
340
  from ._submit_video_analysis_task_request import SubmitVideoAnalysisTaskRequestAddDocumentParamDocument
336
341
  from ._submit_video_analysis_task_request import SubmitVideoAnalysisTaskRequestAddDocumentParam
337
342
  from ._submit_video_analysis_task_request import SubmitVideoAnalysisTaskRequestFrameSampleMethod
@@ -413,6 +418,7 @@ __all__ = [
413
418
  RunMarketingInformationExtractResponseBody,
414
419
  RunMarketingInformationExtractResponse,
415
420
  RunMarketingInformationWritingRequest,
421
+ RunMarketingInformationWritingShrinkRequest,
416
422
  RunMarketingInformationWritingResponseBody,
417
423
  RunMarketingInformationWritingResponse,
418
424
  RunNetworkContentAuditRequest,
@@ -626,6 +632,8 @@ __all__ = [
626
632
  RunTagMiningAnalysisResponseBodyPayloadOutput,
627
633
  RunTagMiningAnalysisResponseBodyPayloadUsage,
628
634
  RunTagMiningAnalysisResponseBodyPayload,
635
+ RunVideoAnalysisRequestAddDocumentParamDocumentMetadataKeyValues,
636
+ RunVideoAnalysisRequestAddDocumentParamDocumentMetadata,
629
637
  RunVideoAnalysisRequestAddDocumentParamDocument,
630
638
  RunVideoAnalysisRequestAddDocumentParam,
631
639
  RunVideoAnalysisRequestFrameSampleMethod,
@@ -677,6 +685,8 @@ __all__ = [
677
685
  SubmitEssayCorrectionTaskResponseBodyData,
678
686
  SubmitTagMiningAnalysisTaskRequestTags,
679
687
  SubmitTagMiningAnalysisTaskResponseBodyData,
688
+ SubmitVideoAnalysisTaskRequestAddDocumentParamDocumentMetadataKeyValues,
689
+ SubmitVideoAnalysisTaskRequestAddDocumentParamDocumentMetadata,
680
690
  SubmitVideoAnalysisTaskRequestAddDocumentParamDocument,
681
691
  SubmitVideoAnalysisTaskRequestAddDocumentParam,
682
692
  SubmitVideoAnalysisTaskRequestFrameSampleMethod,
@@ -2,6 +2,8 @@
2
2
  # This file is auto-generated, don't edit it. Thanks.
3
3
  from __future__ import annotations
4
4
 
5
+ from typing import Dict
6
+
5
7
  from darabonba.model import DaraModel
6
8
 
7
9
  class RunMarketingInformationWritingRequest(DaraModel):
@@ -10,19 +12,33 @@ class RunMarketingInformationWritingRequest(DaraModel):
10
12
  api_key: str = None,
11
13
  custom_limitation: str = None,
12
14
  custom_prompt: str = None,
15
+ ext_parameters: Dict[str, str] = None,
16
+ generate_count: str = None,
13
17
  input_example: str = None,
18
+ keywords: str = None,
19
+ language: str = None,
14
20
  model_id: str = None,
21
+ other_requirements: str = None,
15
22
  output_example: str = None,
23
+ prompt: str = None,
16
24
  source_material: str = None,
25
+ word_count_range: str = None,
17
26
  writing_type: str = None,
18
27
  ):
19
28
  self.api_key = api_key
20
29
  self.custom_limitation = custom_limitation
21
30
  self.custom_prompt = custom_prompt
31
+ self.ext_parameters = ext_parameters
32
+ self.generate_count = generate_count
22
33
  self.input_example = input_example
34
+ self.keywords = keywords
35
+ self.language = language
23
36
  self.model_id = model_id
37
+ self.other_requirements = other_requirements
24
38
  self.output_example = output_example
39
+ self.prompt = prompt
25
40
  self.source_material = source_material
41
+ self.word_count_range = word_count_range
26
42
  self.writing_type = writing_type
27
43
 
28
44
  def validate(self):
@@ -42,18 +58,39 @@ class RunMarketingInformationWritingRequest(DaraModel):
42
58
  if self.custom_prompt is not None:
43
59
  result['customPrompt'] = self.custom_prompt
44
60
 
61
+ if self.ext_parameters is not None:
62
+ result['extParameters'] = self.ext_parameters
63
+
64
+ if self.generate_count is not None:
65
+ result['generateCount'] = self.generate_count
66
+
45
67
  if self.input_example is not None:
46
68
  result['inputExample'] = self.input_example
47
69
 
70
+ if self.keywords is not None:
71
+ result['keywords'] = self.keywords
72
+
73
+ if self.language is not None:
74
+ result['language'] = self.language
75
+
48
76
  if self.model_id is not None:
49
77
  result['modelId'] = self.model_id
50
78
 
79
+ if self.other_requirements is not None:
80
+ result['otherRequirements'] = self.other_requirements
81
+
51
82
  if self.output_example is not None:
52
83
  result['outputExample'] = self.output_example
53
84
 
85
+ if self.prompt is not None:
86
+ result['prompt'] = self.prompt
87
+
54
88
  if self.source_material is not None:
55
89
  result['sourceMaterial'] = self.source_material
56
90
 
91
+ if self.word_count_range is not None:
92
+ result['wordCountRange'] = self.word_count_range
93
+
57
94
  if self.writing_type is not None:
58
95
  result['writingType'] = self.writing_type
59
96
 
@@ -70,18 +107,39 @@ class RunMarketingInformationWritingRequest(DaraModel):
70
107
  if m.get('customPrompt') is not None:
71
108
  self.custom_prompt = m.get('customPrompt')
72
109
 
110
+ if m.get('extParameters') is not None:
111
+ self.ext_parameters = m.get('extParameters')
112
+
113
+ if m.get('generateCount') is not None:
114
+ self.generate_count = m.get('generateCount')
115
+
73
116
  if m.get('inputExample') is not None:
74
117
  self.input_example = m.get('inputExample')
75
118
 
119
+ if m.get('keywords') is not None:
120
+ self.keywords = m.get('keywords')
121
+
122
+ if m.get('language') is not None:
123
+ self.language = m.get('language')
124
+
76
125
  if m.get('modelId') is not None:
77
126
  self.model_id = m.get('modelId')
78
127
 
128
+ if m.get('otherRequirements') is not None:
129
+ self.other_requirements = m.get('otherRequirements')
130
+
79
131
  if m.get('outputExample') is not None:
80
132
  self.output_example = m.get('outputExample')
81
133
 
134
+ if m.get('prompt') is not None:
135
+ self.prompt = m.get('prompt')
136
+
82
137
  if m.get('sourceMaterial') is not None:
83
138
  self.source_material = m.get('sourceMaterial')
84
139
 
140
+ if m.get('wordCountRange') is not None:
141
+ self.word_count_range = m.get('wordCountRange')
142
+
85
143
  if m.get('writingType') is not None:
86
144
  self.writing_type = m.get('writingType')
87
145
 
@@ -0,0 +1,145 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from __future__ import annotations
4
+
5
+ from darabonba.model import DaraModel
6
+
7
+ class RunMarketingInformationWritingShrinkRequest(DaraModel):
8
+ def __init__(
9
+ self,
10
+ api_key: str = None,
11
+ custom_limitation: str = None,
12
+ custom_prompt: str = None,
13
+ ext_parameters_shrink: str = None,
14
+ generate_count: str = None,
15
+ input_example: str = None,
16
+ keywords: str = None,
17
+ language: str = None,
18
+ model_id: str = None,
19
+ other_requirements: str = None,
20
+ output_example: str = None,
21
+ prompt: str = None,
22
+ source_material: str = None,
23
+ word_count_range: str = None,
24
+ writing_type: str = None,
25
+ ):
26
+ self.api_key = api_key
27
+ self.custom_limitation = custom_limitation
28
+ self.custom_prompt = custom_prompt
29
+ self.ext_parameters_shrink = ext_parameters_shrink
30
+ self.generate_count = generate_count
31
+ self.input_example = input_example
32
+ self.keywords = keywords
33
+ self.language = language
34
+ self.model_id = model_id
35
+ self.other_requirements = other_requirements
36
+ self.output_example = output_example
37
+ self.prompt = prompt
38
+ self.source_material = source_material
39
+ self.word_count_range = word_count_range
40
+ self.writing_type = writing_type
41
+
42
+ def validate(self):
43
+ pass
44
+
45
+ def to_map(self):
46
+ result = dict()
47
+ _map = super().to_map()
48
+ if _map is not None:
49
+ result = _map
50
+ if self.api_key is not None:
51
+ result['apiKey'] = self.api_key
52
+
53
+ if self.custom_limitation is not None:
54
+ result['customLimitation'] = self.custom_limitation
55
+
56
+ if self.custom_prompt is not None:
57
+ result['customPrompt'] = self.custom_prompt
58
+
59
+ if self.ext_parameters_shrink is not None:
60
+ result['extParameters'] = self.ext_parameters_shrink
61
+
62
+ if self.generate_count is not None:
63
+ result['generateCount'] = self.generate_count
64
+
65
+ if self.input_example is not None:
66
+ result['inputExample'] = self.input_example
67
+
68
+ if self.keywords is not None:
69
+ result['keywords'] = self.keywords
70
+
71
+ if self.language is not None:
72
+ result['language'] = self.language
73
+
74
+ if self.model_id is not None:
75
+ result['modelId'] = self.model_id
76
+
77
+ if self.other_requirements is not None:
78
+ result['otherRequirements'] = self.other_requirements
79
+
80
+ if self.output_example is not None:
81
+ result['outputExample'] = self.output_example
82
+
83
+ if self.prompt is not None:
84
+ result['prompt'] = self.prompt
85
+
86
+ if self.source_material is not None:
87
+ result['sourceMaterial'] = self.source_material
88
+
89
+ if self.word_count_range is not None:
90
+ result['wordCountRange'] = self.word_count_range
91
+
92
+ if self.writing_type is not None:
93
+ result['writingType'] = self.writing_type
94
+
95
+ return result
96
+
97
+ def from_map(self, m: dict = None):
98
+ m = m or dict()
99
+ if m.get('apiKey') is not None:
100
+ self.api_key = m.get('apiKey')
101
+
102
+ if m.get('customLimitation') is not None:
103
+ self.custom_limitation = m.get('customLimitation')
104
+
105
+ if m.get('customPrompt') is not None:
106
+ self.custom_prompt = m.get('customPrompt')
107
+
108
+ if m.get('extParameters') is not None:
109
+ self.ext_parameters_shrink = m.get('extParameters')
110
+
111
+ if m.get('generateCount') is not None:
112
+ self.generate_count = m.get('generateCount')
113
+
114
+ if m.get('inputExample') is not None:
115
+ self.input_example = m.get('inputExample')
116
+
117
+ if m.get('keywords') is not None:
118
+ self.keywords = m.get('keywords')
119
+
120
+ if m.get('language') is not None:
121
+ self.language = m.get('language')
122
+
123
+ if m.get('modelId') is not None:
124
+ self.model_id = m.get('modelId')
125
+
126
+ if m.get('otherRequirements') is not None:
127
+ self.other_requirements = m.get('otherRequirements')
128
+
129
+ if m.get('outputExample') is not None:
130
+ self.output_example = m.get('outputExample')
131
+
132
+ if m.get('prompt') is not None:
133
+ self.prompt = m.get('prompt')
134
+
135
+ if m.get('sourceMaterial') is not None:
136
+ self.source_material = m.get('sourceMaterial')
137
+
138
+ if m.get('wordCountRange') is not None:
139
+ self.word_count_range = m.get('wordCountRange')
140
+
141
+ if m.get('writingType') is not None:
142
+ self.writing_type = m.get('writingType')
143
+
144
+ return self
145
+
@@ -574,23 +574,54 @@ class RunVideoAnalysisRequestAddDocumentParam(DaraModel):
574
574
  class RunVideoAnalysisRequestAddDocumentParamDocument(DaraModel):
575
575
  def __init__(
576
576
  self,
577
+ category_uuid: str = None,
577
578
  doc_id: str = None,
579
+ extend_1: str = None,
580
+ extend_2: str = None,
581
+ extend_3: str = None,
582
+ metadata: main_models.RunVideoAnalysisRequestAddDocumentParamDocumentMetadata = None,
583
+ tags: List[str] = None,
578
584
  title: str = None,
579
585
  ):
586
+ self.category_uuid = category_uuid
580
587
  self.doc_id = doc_id
588
+ self.extend_1 = extend_1
589
+ self.extend_2 = extend_2
590
+ self.extend_3 = extend_3
591
+ self.metadata = metadata
592
+ self.tags = tags
581
593
  self.title = title
582
594
 
583
595
  def validate(self):
584
- pass
596
+ if self.metadata:
597
+ self.metadata.validate()
585
598
 
586
599
  def to_map(self):
587
600
  result = dict()
588
601
  _map = super().to_map()
589
602
  if _map is not None:
590
603
  result = _map
604
+ if self.category_uuid is not None:
605
+ result['categoryUuid'] = self.category_uuid
606
+
591
607
  if self.doc_id is not None:
592
608
  result['docId'] = self.doc_id
593
609
 
610
+ if self.extend_1 is not None:
611
+ result['extend1'] = self.extend_1
612
+
613
+ if self.extend_2 is not None:
614
+ result['extend2'] = self.extend_2
615
+
616
+ if self.extend_3 is not None:
617
+ result['extend3'] = self.extend_3
618
+
619
+ if self.metadata is not None:
620
+ result['metadata'] = self.metadata.to_map()
621
+
622
+ if self.tags is not None:
623
+ result['tags'] = self.tags
624
+
594
625
  if self.title is not None:
595
626
  result['title'] = self.title
596
627
 
@@ -598,11 +629,100 @@ class RunVideoAnalysisRequestAddDocumentParamDocument(DaraModel):
598
629
 
599
630
  def from_map(self, m: dict = None):
600
631
  m = m or dict()
632
+ if m.get('categoryUuid') is not None:
633
+ self.category_uuid = m.get('categoryUuid')
634
+
601
635
  if m.get('docId') is not None:
602
636
  self.doc_id = m.get('docId')
603
637
 
638
+ if m.get('extend1') is not None:
639
+ self.extend_1 = m.get('extend1')
640
+
641
+ if m.get('extend2') is not None:
642
+ self.extend_2 = m.get('extend2')
643
+
644
+ if m.get('extend3') is not None:
645
+ self.extend_3 = m.get('extend3')
646
+
647
+ if m.get('metadata') is not None:
648
+ temp_model = main_models.RunVideoAnalysisRequestAddDocumentParamDocumentMetadata()
649
+ self.metadata = temp_model.from_map(m.get('metadata'))
650
+
651
+ if m.get('tags') is not None:
652
+ self.tags = m.get('tags')
653
+
604
654
  if m.get('title') is not None:
605
655
  self.title = m.get('title')
606
656
 
607
657
  return self
608
658
 
659
+ class RunVideoAnalysisRequestAddDocumentParamDocumentMetadata(DaraModel):
660
+ def __init__(
661
+ self,
662
+ key_values: List[main_models.RunVideoAnalysisRequestAddDocumentParamDocumentMetadataKeyValues] = None,
663
+ ):
664
+ self.key_values = key_values
665
+
666
+ def validate(self):
667
+ if self.key_values:
668
+ for v1 in self.key_values:
669
+ if v1:
670
+ v1.validate()
671
+
672
+ def to_map(self):
673
+ result = dict()
674
+ _map = super().to_map()
675
+ if _map is not None:
676
+ result = _map
677
+ result['keyValues'] = []
678
+ if self.key_values is not None:
679
+ for k1 in self.key_values:
680
+ result['keyValues'].append(k1.to_map() if k1 else None)
681
+
682
+ return result
683
+
684
+ def from_map(self, m: dict = None):
685
+ m = m or dict()
686
+ self.key_values = []
687
+ if m.get('keyValues') is not None:
688
+ for k1 in m.get('keyValues'):
689
+ temp_model = main_models.RunVideoAnalysisRequestAddDocumentParamDocumentMetadataKeyValues()
690
+ self.key_values.append(temp_model.from_map(k1))
691
+
692
+ return self
693
+
694
+ class RunVideoAnalysisRequestAddDocumentParamDocumentMetadataKeyValues(DaraModel):
695
+ def __init__(
696
+ self,
697
+ key: str = None,
698
+ value: str = None,
699
+ ):
700
+ self.key = key
701
+ self.value = value
702
+
703
+ def validate(self):
704
+ pass
705
+
706
+ def to_map(self):
707
+ result = dict()
708
+ _map = super().to_map()
709
+ if _map is not None:
710
+ result = _map
711
+ if self.key is not None:
712
+ result['key'] = self.key
713
+
714
+ if self.value is not None:
715
+ result['value'] = self.value
716
+
717
+ return result
718
+
719
+ def from_map(self, m: dict = None):
720
+ m = m or dict()
721
+ if m.get('key') is not None:
722
+ self.key = m.get('key')
723
+
724
+ if m.get('value') is not None:
725
+ self.value = m.get('value')
726
+
727
+ return self
728
+
@@ -566,23 +566,54 @@ class SubmitVideoAnalysisTaskRequestAddDocumentParam(DaraModel):
566
566
  class SubmitVideoAnalysisTaskRequestAddDocumentParamDocument(DaraModel):
567
567
  def __init__(
568
568
  self,
569
+ category_uuid: str = None,
569
570
  doc_id: str = None,
571
+ extend_1: str = None,
572
+ extend_2: str = None,
573
+ extend_3: str = None,
574
+ metadata: main_models.SubmitVideoAnalysisTaskRequestAddDocumentParamDocumentMetadata = None,
575
+ tags: List[str] = None,
570
576
  title: str = None,
571
577
  ):
578
+ self.category_uuid = category_uuid
572
579
  self.doc_id = doc_id
580
+ self.extend_1 = extend_1
581
+ self.extend_2 = extend_2
582
+ self.extend_3 = extend_3
583
+ self.metadata = metadata
584
+ self.tags = tags
573
585
  self.title = title
574
586
 
575
587
  def validate(self):
576
- pass
588
+ if self.metadata:
589
+ self.metadata.validate()
577
590
 
578
591
  def to_map(self):
579
592
  result = dict()
580
593
  _map = super().to_map()
581
594
  if _map is not None:
582
595
  result = _map
596
+ if self.category_uuid is not None:
597
+ result['categoryUuid'] = self.category_uuid
598
+
583
599
  if self.doc_id is not None:
584
600
  result['docId'] = self.doc_id
585
601
 
602
+ if self.extend_1 is not None:
603
+ result['extend1'] = self.extend_1
604
+
605
+ if self.extend_2 is not None:
606
+ result['extend2'] = self.extend_2
607
+
608
+ if self.extend_3 is not None:
609
+ result['extend3'] = self.extend_3
610
+
611
+ if self.metadata is not None:
612
+ result['metadata'] = self.metadata.to_map()
613
+
614
+ if self.tags is not None:
615
+ result['tags'] = self.tags
616
+
586
617
  if self.title is not None:
587
618
  result['title'] = self.title
588
619
 
@@ -590,11 +621,100 @@ class SubmitVideoAnalysisTaskRequestAddDocumentParamDocument(DaraModel):
590
621
 
591
622
  def from_map(self, m: dict = None):
592
623
  m = m or dict()
624
+ if m.get('categoryUuid') is not None:
625
+ self.category_uuid = m.get('categoryUuid')
626
+
593
627
  if m.get('docId') is not None:
594
628
  self.doc_id = m.get('docId')
595
629
 
630
+ if m.get('extend1') is not None:
631
+ self.extend_1 = m.get('extend1')
632
+
633
+ if m.get('extend2') is not None:
634
+ self.extend_2 = m.get('extend2')
635
+
636
+ if m.get('extend3') is not None:
637
+ self.extend_3 = m.get('extend3')
638
+
639
+ if m.get('metadata') is not None:
640
+ temp_model = main_models.SubmitVideoAnalysisTaskRequestAddDocumentParamDocumentMetadata()
641
+ self.metadata = temp_model.from_map(m.get('metadata'))
642
+
643
+ if m.get('tags') is not None:
644
+ self.tags = m.get('tags')
645
+
596
646
  if m.get('title') is not None:
597
647
  self.title = m.get('title')
598
648
 
599
649
  return self
600
650
 
651
+ class SubmitVideoAnalysisTaskRequestAddDocumentParamDocumentMetadata(DaraModel):
652
+ def __init__(
653
+ self,
654
+ key_values: List[main_models.SubmitVideoAnalysisTaskRequestAddDocumentParamDocumentMetadataKeyValues] = None,
655
+ ):
656
+ self.key_values = key_values
657
+
658
+ def validate(self):
659
+ if self.key_values:
660
+ for v1 in self.key_values:
661
+ if v1:
662
+ v1.validate()
663
+
664
+ def to_map(self):
665
+ result = dict()
666
+ _map = super().to_map()
667
+ if _map is not None:
668
+ result = _map
669
+ result['keyValues'] = []
670
+ if self.key_values is not None:
671
+ for k1 in self.key_values:
672
+ result['keyValues'].append(k1.to_map() if k1 else None)
673
+
674
+ return result
675
+
676
+ def from_map(self, m: dict = None):
677
+ m = m or dict()
678
+ self.key_values = []
679
+ if m.get('keyValues') is not None:
680
+ for k1 in m.get('keyValues'):
681
+ temp_model = main_models.SubmitVideoAnalysisTaskRequestAddDocumentParamDocumentMetadataKeyValues()
682
+ self.key_values.append(temp_model.from_map(k1))
683
+
684
+ return self
685
+
686
+ class SubmitVideoAnalysisTaskRequestAddDocumentParamDocumentMetadataKeyValues(DaraModel):
687
+ def __init__(
688
+ self,
689
+ key: str = None,
690
+ value: str = None,
691
+ ):
692
+ self.key = key
693
+ self.value = value
694
+
695
+ def validate(self):
696
+ pass
697
+
698
+ def to_map(self):
699
+ result = dict()
700
+ _map = super().to_map()
701
+ if _map is not None:
702
+ result = _map
703
+ if self.key is not None:
704
+ result['key'] = self.key
705
+
706
+ if self.value is not None:
707
+ result['value'] = self.value
708
+
709
+ return result
710
+
711
+ def from_map(self, m: dict = None):
712
+ m = m or dict()
713
+ if m.get('key') is not None:
714
+ self.key = m.get('key')
715
+
716
+ if m.get('value') is not None:
717
+ self.value = m.get('value')
718
+
719
+ return self
720
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: alibabacloud-quanmiaolightapp20240801
3
- Version: 2.13.5
3
+ Version: 2.13.7
4
4
  Summary: Alibaba Cloud QuanMiaoLightApp (20240801) SDK Library for Python
5
5
  Home-page: https://github.com/aliyun/alibabacloud-python-sdk
6
6
  Author: Alibaba Cloud SDK
@@ -1,6 +1,6 @@
1
- alibabacloud_quanmiaolightapp20240801/__init__.py,sha256=4KkHDFWnyEVIFfq-O55roHhJ9P1FtCrJBR2bmBf160I,22
2
- alibabacloud_quanmiaolightapp20240801/client.py,sha256=5X_7eJiqTxcxmdPgJx43HFFrFzqgdift4l4n1XU05cs,270479
3
- alibabacloud_quanmiaolightapp20240801/models/__init__.py,sha256=uabmLAPl7Ni32SkW0_43jyi463BSNn-GpCEYyDvEHrk,50025
1
+ alibabacloud_quanmiaolightapp20240801/__init__.py,sha256=l0SHUhNaLmozQrpQohH0gVCO4Ue_MVfivkKmF3nRKng,22
2
+ alibabacloud_quanmiaolightapp20240801/client.py,sha256=fOAClbjJdiDdal7MDRQ4VQijdFQKW1m24A2t4vfkllg,274859
3
+ alibabacloud_quanmiaolightapp20240801/models/__init__.py,sha256=mICnGknKYZ416fwboovhSblSDOZsr5pvBO5B2Qi4UfE,50893
4
4
  alibabacloud_quanmiaolightapp20240801/models/_cancel_async_task_request.py,sha256=tvPCt8NyWiQTk02f2ybBS1xVGRoBuG4zo45IJmn_a_o,739
5
5
  alibabacloud_quanmiaolightapp20240801/models/_cancel_async_task_response.py,sha256=zk3UG3omCfmExnKvD9PzopOGQ2Eeey9Deak9z6crSLY,1490
6
6
  alibabacloud_quanmiaolightapp20240801/models/_cancel_async_task_response_body.py,sha256=E2eLi3h2k705N--_93lC6F04mjvQkXDUgn4hkORawW0,1967
@@ -66,9 +66,10 @@ alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_extract_
66
66
  alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_extract_response.py,sha256=888duk-Wzfwoh4aCOTOs_LnoUp2Aph19eubImc6PuXs,1535
67
67
  alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_extract_response_body.py,sha256=6q3CQQsgjtTbAwBHpXDsRQ8qJRk4TNQxXYNvBSRlGPc,6630
68
68
  alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_extract_shrink_request.py,sha256=0n_tVwcAPp2gMlLt9hnKg2OUD-2OiLM0Co-GyOGW3PI,1669
69
- alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_writing_request.py,sha256=Vfqdpvv39w8zzMvaZSFPn2MmQH88g-RhqORvyykDfGw,2723
69
+ alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_writing_request.py,sha256=tdiJgSzz428fvlD1-DxBsONkmTdihpodLJQoDCtSG1o,4662
70
70
  alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_writing_response.py,sha256=JolSWq5zO4yd_ffIC3NvjipRyot19Yiesj1VXSDnF5k,1535
71
71
  alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_writing_response_body.py,sha256=dgv4PtsgDtOKbEOMN8Tg_q6Rm70w7gylabgAffJgJ9g,7199
72
+ alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_writing_shrink_request.py,sha256=ypWH4eqx09yYOEoYLIR5xtqrsJF2JJiJyUODIOo-J60,4674
72
73
  alibabacloud_quanmiaolightapp20240801/models/_run_network_content_audit_request.py,sha256=rcbZbNaW6xtH8FoPhhFxyf_zRDveHAolEPKM4rb2S-g,3980
73
74
  alibabacloud_quanmiaolightapp20240801/models/_run_network_content_audit_response.py,sha256=XV6tSvGNhTxe7lkeGagT-xhXbOhwsI9SOZEnmcgmoZw,1511
74
75
  alibabacloud_quanmiaolightapp20240801/models/_run_network_content_audit_response_body.py,sha256=Kwg1KIHliEbdaYBJMUA6-ulK_kYWKOFByyPuu8ZTQAc,6640
@@ -96,7 +97,7 @@ alibabacloud_quanmiaolightapp20240801/models/_run_tag_mining_analysis_request.py
96
97
  alibabacloud_quanmiaolightapp20240801/models/_run_tag_mining_analysis_response.py,sha256=XqKsiuJiWBlWSNIzCx1BLGZAJ7HtN7ywVLQXBqAy8Ao,1505
97
98
  alibabacloud_quanmiaolightapp20240801/models/_run_tag_mining_analysis_response_body.py,sha256=AVZLntU2eAz5CrBc3pTtoErvddunvH7T6drWjamdKB0,6614
98
99
  alibabacloud_quanmiaolightapp20240801/models/_run_tag_mining_analysis_shrink_request.py,sha256=KEbTFqtxzyXsgxz2m8g3oEE1f4mFVh-DdOQrUeQ4nww,2616
99
- alibabacloud_quanmiaolightapp20240801/models/_run_video_analysis_request.py,sha256=g_Lq6fnvfHct0ag-PCHkfvWYvWHpGh-sAVkgD3OlK_M,20627
100
+ alibabacloud_quanmiaolightapp20240801/models/_run_video_analysis_request.py,sha256=r1X-6Csnw3jw-HmB6GG7ga4yTFS3zqGP_-15Z2YB7i8,24228
100
101
  alibabacloud_quanmiaolightapp20240801/models/_run_video_analysis_response.py,sha256=S__9iNcvgMKcQtxTSFgaKdIkwkiNkVDQwmHtE8oIMnY,1493
101
102
  alibabacloud_quanmiaolightapp20240801/models/_run_video_analysis_response_body.py,sha256=11FijNlF7P_iR1csH1zEs-4BEBLDLudosC0LfrNJT-o,54652
102
103
  alibabacloud_quanmiaolightapp20240801/models/_run_video_analysis_shrink_request.py,sha256=TjgX_nHeWRHORnmZKDSMTvB36eEGNFZz5M3oK1YJuaQ,8696
@@ -116,7 +117,7 @@ alibabacloud_quanmiaolightapp20240801/models/_submit_tag_mining_analysis_task_re
116
117
  alibabacloud_quanmiaolightapp20240801/models/_submit_tag_mining_analysis_task_response.py,sha256=L9oJMHvg3ORqhxRubbCSLd_GJfbeYm72XmyM7WRQ8fQ,1526
117
118
  alibabacloud_quanmiaolightapp20240801/models/_submit_tag_mining_analysis_task_response_body.py,sha256=vk7XnDRC6o74_L-v59w4vk76G1i8GswzfkAfJDGmRbM,2864
118
119
  alibabacloud_quanmiaolightapp20240801/models/_submit_tag_mining_analysis_task_shrink_request.py,sha256=fGHGFFhJjZFmWqsHRH5cQrxDtNkpWn27DTeL5pX4344,2829
119
- alibabacloud_quanmiaolightapp20240801/models/_submit_video_analysis_task_request.py,sha256=0fx84CWeAazfRJqa2vJIPgrIEebfo89pUb4_ekqYtgA,20552
120
+ alibabacloud_quanmiaolightapp20240801/models/_submit_video_analysis_task_request.py,sha256=VX1xmYXnEo4hid_hBlQBAWNEv3gh2_5jVzFEQm2rIwA,24195
120
121
  alibabacloud_quanmiaolightapp20240801/models/_submit_video_analysis_task_response.py,sha256=D-zRcI7OlpJVPn9YT3_ZPSR76iOCjosTJK-yN3kxZ2Q,1514
121
122
  alibabacloud_quanmiaolightapp20240801/models/_submit_video_analysis_task_response_body.py,sha256=XwK4HyrP0S0vcUYziIistXuXUHUTA9Hqs8I_nz1yfpA,2820
122
123
  alibabacloud_quanmiaolightapp20240801/models/_submit_video_analysis_task_shrink_request.py,sha256=bw7T3g4B3LcMsX0CZGGU7-5SWpTvMzG9jMZ2aIlEdkI,8453
@@ -140,8 +141,8 @@ alibabacloud_quanmiaolightapp20240801/models/_update_video_detect_shot_config_re
140
141
  alibabacloud_quanmiaolightapp20240801/models/_update_video_detect_shot_task_request.py,sha256=bkooRwUJMgEVYBqnfFN8eNU71TnjEZB1yJjL_9MSSAE,1087
141
142
  alibabacloud_quanmiaolightapp20240801/models/_update_video_detect_shot_task_response.py,sha256=C53t0BHTwXF_roqwqv6WsLKzTcgqKPPq1LQt4Ipw0u4,1520
142
143
  alibabacloud_quanmiaolightapp20240801/models/_update_video_detect_shot_task_response_body.py,sha256=OwrmqAyijNdnACjoPim2G5ZYMkREKBRRgbKK2AWrFpU,3440
143
- alibabacloud_quanmiaolightapp20240801-2.13.5.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
144
- alibabacloud_quanmiaolightapp20240801-2.13.5.dist-info/METADATA,sha256=ylDMQTLI9deKircxHS-Ks_ePwJv7r-gCFe6POB5FUII,2381
145
- alibabacloud_quanmiaolightapp20240801-2.13.5.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
146
- alibabacloud_quanmiaolightapp20240801-2.13.5.dist-info/top_level.txt,sha256=8OeD8NiIhtrm1c4lX_9fGb1YEX3tX01Q8FcLZMKbXlE,38
147
- alibabacloud_quanmiaolightapp20240801-2.13.5.dist-info/RECORD,,
144
+ alibabacloud_quanmiaolightapp20240801-2.13.7.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
145
+ alibabacloud_quanmiaolightapp20240801-2.13.7.dist-info/METADATA,sha256=6beBhv0HHY4DAIWO-aDwvNYsrWXy4JRRUamJXsVLpf0,2381
146
+ alibabacloud_quanmiaolightapp20240801-2.13.7.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
147
+ alibabacloud_quanmiaolightapp20240801-2.13.7.dist-info/top_level.txt,sha256=8OeD8NiIhtrm1c4lX_9fGb1YEX3tX01Q8FcLZMKbXlE,38
148
+ alibabacloud_quanmiaolightapp20240801-2.13.7.dist-info/RECORD,,