alibabacloud-aimiaobi20230801 1.38.4__py3-none-any.whl → 1.38.6__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.
- alibabacloud_aimiaobi20230801/__init__.py +1 -1
- alibabacloud_aimiaobi20230801/client.py +164 -4
- alibabacloud_aimiaobi20230801/models/__init__.py +20 -0
- alibabacloud_aimiaobi20230801/models/_add_dataset_document_request.py +68 -0
- alibabacloud_aimiaobi20230801/models/_create_dataset_request.py +62 -0
- alibabacloud_aimiaobi20230801/models/_export_custom_source_analysis_task_request.py +8 -0
- alibabacloud_aimiaobi20230801/models/_get_dataset_document_response_body.py +92 -0
- alibabacloud_aimiaobi20230801/models/_get_dataset_response_body.py +62 -0
- alibabacloud_aimiaobi20230801/models/_hottopic_news.py +95 -0
- alibabacloud_aimiaobi20230801/models/_list_dataset_documents_request.py +96 -0
- alibabacloud_aimiaobi20230801/models/_list_dataset_documents_response_body.py +24 -0
- alibabacloud_aimiaobi20230801/models/_list_dataset_documents_shrink_request.py +96 -0
- alibabacloud_aimiaobi20230801/models/_run_search_generation_request.py +72 -0
- alibabacloud_aimiaobi20230801/models/_run_search_generation_response_body.py +528 -0
- alibabacloud_aimiaobi20230801/models/_run_search_similar_articles_request.py +96 -0
- alibabacloud_aimiaobi20230801/models/_run_search_similar_articles_response_body.py +64 -0
- alibabacloud_aimiaobi20230801/models/_search_dataset_documents_request.py +98 -0
- alibabacloud_aimiaobi20230801/models/_search_dataset_documents_response_body.py +140 -1
- alibabacloud_aimiaobi20230801/models/_search_dataset_documents_shrink_request.py +179 -0
- alibabacloud_aimiaobi20230801/models/_submit_custom_source_topic_analysis_request.py +68 -0
- alibabacloud_aimiaobi20230801/models/_submit_custom_source_topic_analysis_shrink_request.py +16 -0
- alibabacloud_aimiaobi20230801/models/_update_dataset_document_request.py +42 -0
- alibabacloud_aimiaobi20230801/models/_update_dataset_document_response_body.py +42 -0
- alibabacloud_aimiaobi20230801/models/_update_dataset_request.py +62 -0
- {alibabacloud_aimiaobi20230801-1.38.4.dist-info → alibabacloud_aimiaobi20230801-1.38.6.dist-info}/METADATA +2 -2
- {alibabacloud_aimiaobi20230801-1.38.4.dist-info → alibabacloud_aimiaobi20230801-1.38.6.dist-info}/RECORD +29 -27
- {alibabacloud_aimiaobi20230801-1.38.4.dist-info → alibabacloud_aimiaobi20230801-1.38.6.dist-info}/LICENSE +0 -0
- {alibabacloud_aimiaobi20230801-1.38.4.dist-info → alibabacloud_aimiaobi20230801-1.38.6.dist-info}/WHEEL +0 -0
- {alibabacloud_aimiaobi20230801-1.38.4.dist-info → alibabacloud_aimiaobi20230801-1.38.6.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '1.38.
|
|
1
|
+
__version__ = '1.38.6'
|
|
@@ -3344,6 +3344,8 @@ class Client(OpenApiClient):
|
|
|
3344
3344
|
) -> main_models.ExportCustomSourceAnalysisTaskResponse:
|
|
3345
3345
|
request.validate()
|
|
3346
3346
|
body = {}
|
|
3347
|
+
if not DaraCore.is_null(request.export_type):
|
|
3348
|
+
body['ExportType'] = request.export_type
|
|
3347
3349
|
if not DaraCore.is_null(request.task_id):
|
|
3348
3350
|
body['TaskId'] = request.task_id
|
|
3349
3351
|
if not DaraCore.is_null(request.workspace_id):
|
|
@@ -3374,6 +3376,8 @@ class Client(OpenApiClient):
|
|
|
3374
3376
|
) -> main_models.ExportCustomSourceAnalysisTaskResponse:
|
|
3375
3377
|
request.validate()
|
|
3376
3378
|
body = {}
|
|
3379
|
+
if not DaraCore.is_null(request.export_type):
|
|
3380
|
+
body['ExportType'] = request.export_type
|
|
3377
3381
|
if not DaraCore.is_null(request.task_id):
|
|
3378
3382
|
body['TaskId'] = request.task_id
|
|
3379
3383
|
if not DaraCore.is_null(request.workspace_id):
|
|
@@ -8515,10 +8519,43 @@ class Client(OpenApiClient):
|
|
|
8515
8519
|
tmp_req.validate()
|
|
8516
8520
|
request = main_models.ListDatasetDocumentsShrinkRequest()
|
|
8517
8521
|
Utils.convert(tmp_req, request)
|
|
8522
|
+
if not DaraCore.is_null(tmp_req.category_uuids):
|
|
8523
|
+
request.category_uuids_shrink = Utils.array_to_string_with_specified_style(tmp_req.category_uuids, 'CategoryUuids', 'json')
|
|
8524
|
+
if not DaraCore.is_null(tmp_req.doc_ids):
|
|
8525
|
+
request.doc_ids_shrink = Utils.array_to_string_with_specified_style(tmp_req.doc_ids, 'DocIds', 'json')
|
|
8526
|
+
if not DaraCore.is_null(tmp_req.doc_uuids):
|
|
8527
|
+
request.doc_uuids_shrink = Utils.array_to_string_with_specified_style(tmp_req.doc_uuids, 'DocUuids', 'json')
|
|
8518
8528
|
if not DaraCore.is_null(tmp_req.exclude_fields):
|
|
8519
8529
|
request.exclude_fields_shrink = Utils.array_to_string_with_specified_style(tmp_req.exclude_fields, 'ExcludeFields', 'json')
|
|
8520
8530
|
if not DaraCore.is_null(tmp_req.include_fields):
|
|
8521
8531
|
request.include_fields_shrink = Utils.array_to_string_with_specified_style(tmp_req.include_fields, 'IncludeFields', 'json')
|
|
8532
|
+
if not DaraCore.is_null(tmp_req.tags):
|
|
8533
|
+
request.tags_shrink = Utils.array_to_string_with_specified_style(tmp_req.tags, 'Tags', 'json')
|
|
8534
|
+
query = {}
|
|
8535
|
+
if not DaraCore.is_null(request.category_uuids_shrink):
|
|
8536
|
+
query['CategoryUuids'] = request.category_uuids_shrink
|
|
8537
|
+
if not DaraCore.is_null(request.create_time_end):
|
|
8538
|
+
query['CreateTimeEnd'] = request.create_time_end
|
|
8539
|
+
if not DaraCore.is_null(request.create_time_start):
|
|
8540
|
+
query['CreateTimeStart'] = request.create_time_start
|
|
8541
|
+
if not DaraCore.is_null(request.doc_ids_shrink):
|
|
8542
|
+
query['DocIds'] = request.doc_ids_shrink
|
|
8543
|
+
if not DaraCore.is_null(request.doc_uuids_shrink):
|
|
8544
|
+
query['DocUuids'] = request.doc_uuids_shrink
|
|
8545
|
+
if not DaraCore.is_null(request.end_time):
|
|
8546
|
+
query['EndTime'] = request.end_time
|
|
8547
|
+
if not DaraCore.is_null(request.extend_1):
|
|
8548
|
+
query['Extend1'] = request.extend_1
|
|
8549
|
+
if not DaraCore.is_null(request.extend_2):
|
|
8550
|
+
query['Extend2'] = request.extend_2
|
|
8551
|
+
if not DaraCore.is_null(request.extend_3):
|
|
8552
|
+
query['Extend3'] = request.extend_3
|
|
8553
|
+
if not DaraCore.is_null(request.start_time):
|
|
8554
|
+
query['StartTime'] = request.start_time
|
|
8555
|
+
if not DaraCore.is_null(request.tags_shrink):
|
|
8556
|
+
query['Tags'] = request.tags_shrink
|
|
8557
|
+
if not DaraCore.is_null(request.title):
|
|
8558
|
+
query['Title'] = request.title
|
|
8522
8559
|
body = {}
|
|
8523
8560
|
if not DaraCore.is_null(request.dataset_description):
|
|
8524
8561
|
body['DatasetDescription'] = request.dataset_description
|
|
@@ -8543,6 +8580,7 @@ class Client(OpenApiClient):
|
|
|
8543
8580
|
if not DaraCore.is_null(request.workspace_id):
|
|
8544
8581
|
body['WorkspaceId'] = request.workspace_id
|
|
8545
8582
|
req = open_api_util_models.OpenApiRequest(
|
|
8583
|
+
query = Utils.query(query),
|
|
8546
8584
|
body = Utils.parse_to_map(body)
|
|
8547
8585
|
)
|
|
8548
8586
|
params = open_api_util_models.Params(
|
|
@@ -8569,10 +8607,43 @@ class Client(OpenApiClient):
|
|
|
8569
8607
|
tmp_req.validate()
|
|
8570
8608
|
request = main_models.ListDatasetDocumentsShrinkRequest()
|
|
8571
8609
|
Utils.convert(tmp_req, request)
|
|
8610
|
+
if not DaraCore.is_null(tmp_req.category_uuids):
|
|
8611
|
+
request.category_uuids_shrink = Utils.array_to_string_with_specified_style(tmp_req.category_uuids, 'CategoryUuids', 'json')
|
|
8612
|
+
if not DaraCore.is_null(tmp_req.doc_ids):
|
|
8613
|
+
request.doc_ids_shrink = Utils.array_to_string_with_specified_style(tmp_req.doc_ids, 'DocIds', 'json')
|
|
8614
|
+
if not DaraCore.is_null(tmp_req.doc_uuids):
|
|
8615
|
+
request.doc_uuids_shrink = Utils.array_to_string_with_specified_style(tmp_req.doc_uuids, 'DocUuids', 'json')
|
|
8572
8616
|
if not DaraCore.is_null(tmp_req.exclude_fields):
|
|
8573
8617
|
request.exclude_fields_shrink = Utils.array_to_string_with_specified_style(tmp_req.exclude_fields, 'ExcludeFields', 'json')
|
|
8574
8618
|
if not DaraCore.is_null(tmp_req.include_fields):
|
|
8575
8619
|
request.include_fields_shrink = Utils.array_to_string_with_specified_style(tmp_req.include_fields, 'IncludeFields', 'json')
|
|
8620
|
+
if not DaraCore.is_null(tmp_req.tags):
|
|
8621
|
+
request.tags_shrink = Utils.array_to_string_with_specified_style(tmp_req.tags, 'Tags', 'json')
|
|
8622
|
+
query = {}
|
|
8623
|
+
if not DaraCore.is_null(request.category_uuids_shrink):
|
|
8624
|
+
query['CategoryUuids'] = request.category_uuids_shrink
|
|
8625
|
+
if not DaraCore.is_null(request.create_time_end):
|
|
8626
|
+
query['CreateTimeEnd'] = request.create_time_end
|
|
8627
|
+
if not DaraCore.is_null(request.create_time_start):
|
|
8628
|
+
query['CreateTimeStart'] = request.create_time_start
|
|
8629
|
+
if not DaraCore.is_null(request.doc_ids_shrink):
|
|
8630
|
+
query['DocIds'] = request.doc_ids_shrink
|
|
8631
|
+
if not DaraCore.is_null(request.doc_uuids_shrink):
|
|
8632
|
+
query['DocUuids'] = request.doc_uuids_shrink
|
|
8633
|
+
if not DaraCore.is_null(request.end_time):
|
|
8634
|
+
query['EndTime'] = request.end_time
|
|
8635
|
+
if not DaraCore.is_null(request.extend_1):
|
|
8636
|
+
query['Extend1'] = request.extend_1
|
|
8637
|
+
if not DaraCore.is_null(request.extend_2):
|
|
8638
|
+
query['Extend2'] = request.extend_2
|
|
8639
|
+
if not DaraCore.is_null(request.extend_3):
|
|
8640
|
+
query['Extend3'] = request.extend_3
|
|
8641
|
+
if not DaraCore.is_null(request.start_time):
|
|
8642
|
+
query['StartTime'] = request.start_time
|
|
8643
|
+
if not DaraCore.is_null(request.tags_shrink):
|
|
8644
|
+
query['Tags'] = request.tags_shrink
|
|
8645
|
+
if not DaraCore.is_null(request.title):
|
|
8646
|
+
query['Title'] = request.title
|
|
8576
8647
|
body = {}
|
|
8577
8648
|
if not DaraCore.is_null(request.dataset_description):
|
|
8578
8649
|
body['DatasetDescription'] = request.dataset_description
|
|
@@ -8597,6 +8668,7 @@ class Client(OpenApiClient):
|
|
|
8597
8668
|
if not DaraCore.is_null(request.workspace_id):
|
|
8598
8669
|
body['WorkspaceId'] = request.workspace_id
|
|
8599
8670
|
req = open_api_util_models.OpenApiRequest(
|
|
8671
|
+
query = Utils.query(query),
|
|
8600
8672
|
body = Utils.parse_to_map(body)
|
|
8601
8673
|
)
|
|
8602
8674
|
params = open_api_util_models.Params(
|
|
@@ -19021,10 +19093,47 @@ class Client(OpenApiClient):
|
|
|
19021
19093
|
|
|
19022
19094
|
def search_dataset_documents_with_options(
|
|
19023
19095
|
self,
|
|
19024
|
-
|
|
19096
|
+
tmp_req: main_models.SearchDatasetDocumentsRequest,
|
|
19025
19097
|
runtime: RuntimeOptions,
|
|
19026
19098
|
) -> main_models.SearchDatasetDocumentsResponse:
|
|
19027
|
-
|
|
19099
|
+
tmp_req.validate()
|
|
19100
|
+
request = main_models.SearchDatasetDocumentsShrinkRequest()
|
|
19101
|
+
Utils.convert(tmp_req, request)
|
|
19102
|
+
if not DaraCore.is_null(tmp_req.category_uuids):
|
|
19103
|
+
request.category_uuids_shrink = Utils.array_to_string_with_specified_style(tmp_req.category_uuids, 'CategoryUuids', 'json')
|
|
19104
|
+
if not DaraCore.is_null(tmp_req.doc_ids):
|
|
19105
|
+
request.doc_ids_shrink = Utils.array_to_string_with_specified_style(tmp_req.doc_ids, 'DocIds', 'json')
|
|
19106
|
+
if not DaraCore.is_null(tmp_req.doc_types):
|
|
19107
|
+
request.doc_types_shrink = Utils.array_to_string_with_specified_style(tmp_req.doc_types, 'DocTypes', 'json')
|
|
19108
|
+
if not DaraCore.is_null(tmp_req.doc_uuids):
|
|
19109
|
+
request.doc_uuids_shrink = Utils.array_to_string_with_specified_style(tmp_req.doc_uuids, 'DocUuids', 'json')
|
|
19110
|
+
if not DaraCore.is_null(tmp_req.tags):
|
|
19111
|
+
request.tags_shrink = Utils.array_to_string_with_specified_style(tmp_req.tags, 'Tags', 'json')
|
|
19112
|
+
query = {}
|
|
19113
|
+
if not DaraCore.is_null(request.category_uuids_shrink):
|
|
19114
|
+
query['CategoryUuids'] = request.category_uuids_shrink
|
|
19115
|
+
if not DaraCore.is_null(request.create_time_end):
|
|
19116
|
+
query['CreateTimeEnd'] = request.create_time_end
|
|
19117
|
+
if not DaraCore.is_null(request.create_time_start):
|
|
19118
|
+
query['CreateTimeStart'] = request.create_time_start
|
|
19119
|
+
if not DaraCore.is_null(request.doc_ids_shrink):
|
|
19120
|
+
query['DocIds'] = request.doc_ids_shrink
|
|
19121
|
+
if not DaraCore.is_null(request.doc_types_shrink):
|
|
19122
|
+
query['DocTypes'] = request.doc_types_shrink
|
|
19123
|
+
if not DaraCore.is_null(request.doc_uuids_shrink):
|
|
19124
|
+
query['DocUuids'] = request.doc_uuids_shrink
|
|
19125
|
+
if not DaraCore.is_null(request.end_time):
|
|
19126
|
+
query['EndTime'] = request.end_time
|
|
19127
|
+
if not DaraCore.is_null(request.extend_2):
|
|
19128
|
+
query['Extend2'] = request.extend_2
|
|
19129
|
+
if not DaraCore.is_null(request.extend_3):
|
|
19130
|
+
query['Extend3'] = request.extend_3
|
|
19131
|
+
if not DaraCore.is_null(request.search_mode):
|
|
19132
|
+
query['SearchMode'] = request.search_mode
|
|
19133
|
+
if not DaraCore.is_null(request.start_time):
|
|
19134
|
+
query['StartTime'] = request.start_time
|
|
19135
|
+
if not DaraCore.is_null(request.tags_shrink):
|
|
19136
|
+
query['Tags'] = request.tags_shrink
|
|
19028
19137
|
body = {}
|
|
19029
19138
|
if not DaraCore.is_null(request.dataset_id):
|
|
19030
19139
|
body['DatasetId'] = request.dataset_id
|
|
@@ -19041,6 +19150,7 @@ class Client(OpenApiClient):
|
|
|
19041
19150
|
if not DaraCore.is_null(request.workspace_id):
|
|
19042
19151
|
body['WorkspaceId'] = request.workspace_id
|
|
19043
19152
|
req = open_api_util_models.OpenApiRequest(
|
|
19153
|
+
query = Utils.query(query),
|
|
19044
19154
|
body = Utils.parse_to_map(body)
|
|
19045
19155
|
)
|
|
19046
19156
|
params = open_api_util_models.Params(
|
|
@@ -19061,10 +19171,47 @@ class Client(OpenApiClient):
|
|
|
19061
19171
|
|
|
19062
19172
|
async def search_dataset_documents_with_options_async(
|
|
19063
19173
|
self,
|
|
19064
|
-
|
|
19174
|
+
tmp_req: main_models.SearchDatasetDocumentsRequest,
|
|
19065
19175
|
runtime: RuntimeOptions,
|
|
19066
19176
|
) -> main_models.SearchDatasetDocumentsResponse:
|
|
19067
|
-
|
|
19177
|
+
tmp_req.validate()
|
|
19178
|
+
request = main_models.SearchDatasetDocumentsShrinkRequest()
|
|
19179
|
+
Utils.convert(tmp_req, request)
|
|
19180
|
+
if not DaraCore.is_null(tmp_req.category_uuids):
|
|
19181
|
+
request.category_uuids_shrink = Utils.array_to_string_with_specified_style(tmp_req.category_uuids, 'CategoryUuids', 'json')
|
|
19182
|
+
if not DaraCore.is_null(tmp_req.doc_ids):
|
|
19183
|
+
request.doc_ids_shrink = Utils.array_to_string_with_specified_style(tmp_req.doc_ids, 'DocIds', 'json')
|
|
19184
|
+
if not DaraCore.is_null(tmp_req.doc_types):
|
|
19185
|
+
request.doc_types_shrink = Utils.array_to_string_with_specified_style(tmp_req.doc_types, 'DocTypes', 'json')
|
|
19186
|
+
if not DaraCore.is_null(tmp_req.doc_uuids):
|
|
19187
|
+
request.doc_uuids_shrink = Utils.array_to_string_with_specified_style(tmp_req.doc_uuids, 'DocUuids', 'json')
|
|
19188
|
+
if not DaraCore.is_null(tmp_req.tags):
|
|
19189
|
+
request.tags_shrink = Utils.array_to_string_with_specified_style(tmp_req.tags, 'Tags', 'json')
|
|
19190
|
+
query = {}
|
|
19191
|
+
if not DaraCore.is_null(request.category_uuids_shrink):
|
|
19192
|
+
query['CategoryUuids'] = request.category_uuids_shrink
|
|
19193
|
+
if not DaraCore.is_null(request.create_time_end):
|
|
19194
|
+
query['CreateTimeEnd'] = request.create_time_end
|
|
19195
|
+
if not DaraCore.is_null(request.create_time_start):
|
|
19196
|
+
query['CreateTimeStart'] = request.create_time_start
|
|
19197
|
+
if not DaraCore.is_null(request.doc_ids_shrink):
|
|
19198
|
+
query['DocIds'] = request.doc_ids_shrink
|
|
19199
|
+
if not DaraCore.is_null(request.doc_types_shrink):
|
|
19200
|
+
query['DocTypes'] = request.doc_types_shrink
|
|
19201
|
+
if not DaraCore.is_null(request.doc_uuids_shrink):
|
|
19202
|
+
query['DocUuids'] = request.doc_uuids_shrink
|
|
19203
|
+
if not DaraCore.is_null(request.end_time):
|
|
19204
|
+
query['EndTime'] = request.end_time
|
|
19205
|
+
if not DaraCore.is_null(request.extend_2):
|
|
19206
|
+
query['Extend2'] = request.extend_2
|
|
19207
|
+
if not DaraCore.is_null(request.extend_3):
|
|
19208
|
+
query['Extend3'] = request.extend_3
|
|
19209
|
+
if not DaraCore.is_null(request.search_mode):
|
|
19210
|
+
query['SearchMode'] = request.search_mode
|
|
19211
|
+
if not DaraCore.is_null(request.start_time):
|
|
19212
|
+
query['StartTime'] = request.start_time
|
|
19213
|
+
if not DaraCore.is_null(request.tags_shrink):
|
|
19214
|
+
query['Tags'] = request.tags_shrink
|
|
19068
19215
|
body = {}
|
|
19069
19216
|
if not DaraCore.is_null(request.dataset_id):
|
|
19070
19217
|
body['DatasetId'] = request.dataset_id
|
|
@@ -19081,6 +19228,7 @@ class Client(OpenApiClient):
|
|
|
19081
19228
|
if not DaraCore.is_null(request.workspace_id):
|
|
19082
19229
|
body['WorkspaceId'] = request.workspace_id
|
|
19083
19230
|
req = open_api_util_models.OpenApiRequest(
|
|
19231
|
+
query = Utils.query(query),
|
|
19084
19232
|
body = Utils.parse_to_map(body)
|
|
19085
19233
|
)
|
|
19086
19234
|
params = open_api_util_models.Params(
|
|
@@ -19579,6 +19727,8 @@ class Client(OpenApiClient):
|
|
|
19579
19727
|
request.analysis_types_shrink = Utils.array_to_string_with_specified_style(tmp_req.analysis_types, 'AnalysisTypes', 'json')
|
|
19580
19728
|
if not DaraCore.is_null(tmp_req.news):
|
|
19581
19729
|
request.news_shrink = Utils.array_to_string_with_specified_style(tmp_req.news, 'News', 'json')
|
|
19730
|
+
if not DaraCore.is_null(tmp_req.topics):
|
|
19731
|
+
request.topics_shrink = Utils.array_to_string_with_specified_style(tmp_req.topics, 'Topics', 'json')
|
|
19582
19732
|
body = {}
|
|
19583
19733
|
if not DaraCore.is_null(request.analysis_types_shrink):
|
|
19584
19734
|
body['AnalysisTypes'] = request.analysis_types_shrink
|
|
@@ -19590,6 +19740,10 @@ class Client(OpenApiClient):
|
|
|
19590
19740
|
body['MaxTopicSize'] = request.max_topic_size
|
|
19591
19741
|
if not DaraCore.is_null(request.news_shrink):
|
|
19592
19742
|
body['News'] = request.news_shrink
|
|
19743
|
+
if not DaraCore.is_null(request.topics_shrink):
|
|
19744
|
+
body['Topics'] = request.topics_shrink
|
|
19745
|
+
if not DaraCore.is_null(request.topics_file_url):
|
|
19746
|
+
body['TopicsFileUrl'] = request.topics_file_url
|
|
19593
19747
|
if not DaraCore.is_null(request.workspace_id):
|
|
19594
19748
|
body['WorkspaceId'] = request.workspace_id
|
|
19595
19749
|
req = open_api_util_models.OpenApiRequest(
|
|
@@ -19623,6 +19777,8 @@ class Client(OpenApiClient):
|
|
|
19623
19777
|
request.analysis_types_shrink = Utils.array_to_string_with_specified_style(tmp_req.analysis_types, 'AnalysisTypes', 'json')
|
|
19624
19778
|
if not DaraCore.is_null(tmp_req.news):
|
|
19625
19779
|
request.news_shrink = Utils.array_to_string_with_specified_style(tmp_req.news, 'News', 'json')
|
|
19780
|
+
if not DaraCore.is_null(tmp_req.topics):
|
|
19781
|
+
request.topics_shrink = Utils.array_to_string_with_specified_style(tmp_req.topics, 'Topics', 'json')
|
|
19626
19782
|
body = {}
|
|
19627
19783
|
if not DaraCore.is_null(request.analysis_types_shrink):
|
|
19628
19784
|
body['AnalysisTypes'] = request.analysis_types_shrink
|
|
@@ -19634,6 +19790,10 @@ class Client(OpenApiClient):
|
|
|
19634
19790
|
body['MaxTopicSize'] = request.max_topic_size
|
|
19635
19791
|
if not DaraCore.is_null(request.news_shrink):
|
|
19636
19792
|
body['News'] = request.news_shrink
|
|
19793
|
+
if not DaraCore.is_null(request.topics_shrink):
|
|
19794
|
+
body['Topics'] = request.topics_shrink
|
|
19795
|
+
if not DaraCore.is_null(request.topics_file_url):
|
|
19796
|
+
body['TopicsFileUrl'] = request.topics_file_url
|
|
19637
19797
|
if not DaraCore.is_null(request.workspace_id):
|
|
19638
19798
|
body['WorkspaceId'] = request.workspace_id
|
|
19639
19799
|
req = open_api_util_models.OpenApiRequest(
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from ._generate_traceability import GenerateTraceability
|
|
6
|
+
from ._hottopic_news import HottopicNews
|
|
6
7
|
from ._outline_search_result import OutlineSearchResult
|
|
7
8
|
from ._outline_writing_article import OutlineWritingArticle
|
|
8
9
|
from ._topic_selection import TopicSelection
|
|
@@ -579,6 +580,7 @@ from ._save_style_learning_result_shrink_request import SaveStyleLearningResultS
|
|
|
579
580
|
from ._save_style_learning_result_response_body import SaveStyleLearningResultResponseBody
|
|
580
581
|
from ._save_style_learning_result_response import SaveStyleLearningResultResponse
|
|
581
582
|
from ._search_dataset_documents_request import SearchDatasetDocumentsRequest
|
|
583
|
+
from ._search_dataset_documents_shrink_request import SearchDatasetDocumentsShrinkRequest
|
|
582
584
|
from ._search_dataset_documents_response_body import SearchDatasetDocumentsResponseBody
|
|
583
585
|
from ._search_dataset_documents_response import SearchDatasetDocumentsResponse
|
|
584
586
|
from ._search_news_request import SearchNewsRequest
|
|
@@ -673,12 +675,14 @@ from ._validate_upload_template_request import ValidateUploadTemplateRequest
|
|
|
673
675
|
from ._validate_upload_template_response_body import ValidateUploadTemplateResponseBody
|
|
674
676
|
from ._validate_upload_template_response import ValidateUploadTemplateResponse
|
|
675
677
|
from ._generate_traceability import GenerateTraceabilityNews
|
|
678
|
+
from ._hottopic_news import HottopicNewsComments
|
|
676
679
|
from ._topic_selection import TopicSelectionOutlines
|
|
677
680
|
from ._writing_style_template_define import WritingStyleTemplateDefineExample
|
|
678
681
|
from ._writing_style_template_field import WritingStyleTemplateFieldEnums
|
|
679
682
|
from ._writing_style_template_field import WritingStyleTemplateFieldStyle
|
|
680
683
|
from ._add_audit_terms_response_body import AddAuditTermsResponseBodyDataV1
|
|
681
684
|
from ._add_dataset_document_request import AddDatasetDocumentRequestDocumentMetadataAsrSentences
|
|
685
|
+
from ._add_dataset_document_request import AddDatasetDocumentRequestDocumentMetadataKeyValues
|
|
682
686
|
from ._add_dataset_document_request import AddDatasetDocumentRequestDocumentMetadataVideoShots
|
|
683
687
|
from ._add_dataset_document_request import AddDatasetDocumentRequestDocumentMetadata
|
|
684
688
|
from ._add_dataset_document_request import AddDatasetDocumentRequestDocumentMultimodalMedias
|
|
@@ -702,6 +706,7 @@ from ._async_writing_bidding_doc_response_body import AsyncWritingBiddingDocResp
|
|
|
702
706
|
from ._bind_ppt_artifact_response_body import BindPptArtifactResponseBodyData
|
|
703
707
|
from ._cancel_deep_write_task_response_body import CancelDeepWriteTaskResponseBodyData
|
|
704
708
|
from ._clear_intervenes_response_body import ClearIntervenesResponseBodyData
|
|
709
|
+
from ._create_dataset_request import CreateDatasetRequestDatasetConfigSearchSourceConfig
|
|
705
710
|
from ._create_dataset_request import CreateDatasetRequestDatasetConfigSearchSourceConfigsSearchSourceRequestConfigHeaders
|
|
706
711
|
from ._create_dataset_request import CreateDatasetRequestDatasetConfigSearchSourceConfigsSearchSourceRequestConfigParams
|
|
707
712
|
from ._create_dataset_request import CreateDatasetRequestDatasetConfigSearchSourceConfigsSearchSourceRequestConfig
|
|
@@ -757,6 +762,7 @@ from ._get_custom_topic_selection_perspective_analysis_task_response_body import
|
|
|
757
762
|
from ._get_custom_topic_selection_perspective_analysis_task_response_body import GetCustomTopicSelectionPerspectiveAnalysisTaskResponseBodyData
|
|
758
763
|
from ._get_data_source_order_config_response_body import GetDataSourceOrderConfigResponseBodyDataUserConfigDataSourceList
|
|
759
764
|
from ._get_data_source_order_config_response_body import GetDataSourceOrderConfigResponseBodyData
|
|
765
|
+
from ._get_dataset_response_body import GetDatasetResponseBodyDataDatasetConfigSearchSourceConfig
|
|
760
766
|
from ._get_dataset_response_body import GetDatasetResponseBodyDataDatasetConfigSearchSourceConfigsSearchSourceRequestConfigHeaders
|
|
761
767
|
from ._get_dataset_response_body import GetDatasetResponseBodyDataDatasetConfigSearchSourceConfigsSearchSourceRequestConfigParams
|
|
762
768
|
from ._get_dataset_response_body import GetDatasetResponseBodyDataDatasetConfigSearchSourceConfigsSearchSourceRequestConfig
|
|
@@ -769,6 +775,7 @@ from ._get_dataset_response_body import GetDatasetResponseBodyDataDatasetConfig
|
|
|
769
775
|
from ._get_dataset_response_body import GetDatasetResponseBodyDataDocumentHandleConfig
|
|
770
776
|
from ._get_dataset_response_body import GetDatasetResponseBodyData
|
|
771
777
|
from ._get_dataset_document_response_body import GetDatasetDocumentResponseBodyDataMetadataAsrSentences
|
|
778
|
+
from ._get_dataset_document_response_body import GetDatasetDocumentResponseBodyDataMetadataKeyValues
|
|
772
779
|
from ._get_dataset_document_response_body import GetDatasetDocumentResponseBodyDataMetadataVideoShots
|
|
773
780
|
from ._get_dataset_document_response_body import GetDatasetDocumentResponseBodyDataMetadata
|
|
774
781
|
from ._get_dataset_document_response_body import GetDatasetDocumentResponseBodyData
|
|
@@ -1217,6 +1224,7 @@ from ._run_writing_v2response_body import RunWritingV2ResponseBodyPayloadOutput
|
|
|
1217
1224
|
from ._run_writing_v2response_body import RunWritingV2ResponseBodyPayloadUsage
|
|
1218
1225
|
from ._run_writing_v2response_body import RunWritingV2ResponseBodyPayload
|
|
1219
1226
|
from ._save_data_source_order_config_request import SaveDataSourceOrderConfigRequestUserConfigDataSourceList
|
|
1227
|
+
from ._search_dataset_documents_response_body import SearchDatasetDocumentsResponseBodyDataDocumentsChunkInfos
|
|
1220
1228
|
from ._search_dataset_documents_response_body import SearchDatasetDocumentsResponseBodyDataDocuments
|
|
1221
1229
|
from ._search_dataset_documents_response_body import SearchDatasetDocumentsResponseBodyData
|
|
1222
1230
|
from ._search_news_response_body import SearchNewsResponseBodyData
|
|
@@ -1229,6 +1237,7 @@ from ._submit_custom_hot_topic_broadcast_job_request import SubmitCustomHotTopic
|
|
|
1229
1237
|
from ._submit_custom_hot_topic_broadcast_job_response_body import SubmitCustomHotTopicBroadcastJobResponseBodyData
|
|
1230
1238
|
from ._submit_custom_source_topic_analysis_request import SubmitCustomSourceTopicAnalysisRequestNewsComments
|
|
1231
1239
|
from ._submit_custom_source_topic_analysis_request import SubmitCustomSourceTopicAnalysisRequestNews
|
|
1240
|
+
from ._submit_custom_source_topic_analysis_request import SubmitCustomSourceTopicAnalysisRequestTopics
|
|
1232
1241
|
from ._submit_custom_source_topic_analysis_response_body import SubmitCustomSourceTopicAnalysisResponseBodyData
|
|
1233
1242
|
from ._submit_custom_topic_selection_perspective_analysis_task_request import SubmitCustomTopicSelectionPerspectiveAnalysisTaskRequestDocuments
|
|
1234
1243
|
from ._submit_custom_topic_selection_perspective_analysis_task_response_body import SubmitCustomTopicSelectionPerspectiveAnalysisTaskResponseBodyData
|
|
@@ -1265,6 +1274,7 @@ from ._submit_smart_clip_task_response_body import SubmitSmartClipTaskResponseBo
|
|
|
1265
1274
|
from ._submit_topic_selection_perspective_analysis_task_request import SubmitTopicSelectionPerspectiveAnalysisTaskRequestDocumentsComments
|
|
1266
1275
|
from ._submit_topic_selection_perspective_analysis_task_request import SubmitTopicSelectionPerspectiveAnalysisTaskRequestDocuments
|
|
1267
1276
|
from ._submit_topic_selection_perspective_analysis_task_response_body import SubmitTopicSelectionPerspectiveAnalysisTaskResponseBodyData
|
|
1277
|
+
from ._update_dataset_request import UpdateDatasetRequestDatasetConfigSearchSourceConfig
|
|
1268
1278
|
from ._update_dataset_request import UpdateDatasetRequestDatasetConfigSearchSourceConfigsSearchSourceRequestConfigHeaders
|
|
1269
1279
|
from ._update_dataset_request import UpdateDatasetRequestDatasetConfigSearchSourceConfigsSearchSourceRequestConfigParams
|
|
1270
1280
|
from ._update_dataset_request import UpdateDatasetRequestDatasetConfigSearchSourceConfigsSearchSourceRequestConfig
|
|
@@ -1288,6 +1298,7 @@ from ._validate_upload_template_response_body import ValidateUploadTemplateRespo
|
|
|
1288
1298
|
|
|
1289
1299
|
__all__ = [
|
|
1290
1300
|
GenerateTraceability,
|
|
1301
|
+
HottopicNews,
|
|
1291
1302
|
OutlineSearchResult,
|
|
1292
1303
|
OutlineWritingArticle,
|
|
1293
1304
|
TopicSelection,
|
|
@@ -1864,6 +1875,7 @@ __all__ = [
|
|
|
1864
1875
|
SaveStyleLearningResultResponseBody,
|
|
1865
1876
|
SaveStyleLearningResultResponse,
|
|
1866
1877
|
SearchDatasetDocumentsRequest,
|
|
1878
|
+
SearchDatasetDocumentsShrinkRequest,
|
|
1867
1879
|
SearchDatasetDocumentsResponseBody,
|
|
1868
1880
|
SearchDatasetDocumentsResponse,
|
|
1869
1881
|
SearchNewsRequest,
|
|
@@ -1958,12 +1970,14 @@ __all__ = [
|
|
|
1958
1970
|
ValidateUploadTemplateResponseBody,
|
|
1959
1971
|
ValidateUploadTemplateResponse,
|
|
1960
1972
|
GenerateTraceabilityNews,
|
|
1973
|
+
HottopicNewsComments,
|
|
1961
1974
|
TopicSelectionOutlines,
|
|
1962
1975
|
WritingStyleTemplateDefineExample,
|
|
1963
1976
|
WritingStyleTemplateFieldEnums,
|
|
1964
1977
|
WritingStyleTemplateFieldStyle,
|
|
1965
1978
|
AddAuditTermsResponseBodyDataV1,
|
|
1966
1979
|
AddDatasetDocumentRequestDocumentMetadataAsrSentences,
|
|
1980
|
+
AddDatasetDocumentRequestDocumentMetadataKeyValues,
|
|
1967
1981
|
AddDatasetDocumentRequestDocumentMetadataVideoShots,
|
|
1968
1982
|
AddDatasetDocumentRequestDocumentMetadata,
|
|
1969
1983
|
AddDatasetDocumentRequestDocumentMultimodalMedias,
|
|
@@ -1987,6 +2001,7 @@ __all__ = [
|
|
|
1987
2001
|
BindPptArtifactResponseBodyData,
|
|
1988
2002
|
CancelDeepWriteTaskResponseBodyData,
|
|
1989
2003
|
ClearIntervenesResponseBodyData,
|
|
2004
|
+
CreateDatasetRequestDatasetConfigSearchSourceConfig,
|
|
1990
2005
|
CreateDatasetRequestDatasetConfigSearchSourceConfigsSearchSourceRequestConfigHeaders,
|
|
1991
2006
|
CreateDatasetRequestDatasetConfigSearchSourceConfigsSearchSourceRequestConfigParams,
|
|
1992
2007
|
CreateDatasetRequestDatasetConfigSearchSourceConfigsSearchSourceRequestConfig,
|
|
@@ -2042,6 +2057,7 @@ __all__ = [
|
|
|
2042
2057
|
GetCustomTopicSelectionPerspectiveAnalysisTaskResponseBodyData,
|
|
2043
2058
|
GetDataSourceOrderConfigResponseBodyDataUserConfigDataSourceList,
|
|
2044
2059
|
GetDataSourceOrderConfigResponseBodyData,
|
|
2060
|
+
GetDatasetResponseBodyDataDatasetConfigSearchSourceConfig,
|
|
2045
2061
|
GetDatasetResponseBodyDataDatasetConfigSearchSourceConfigsSearchSourceRequestConfigHeaders,
|
|
2046
2062
|
GetDatasetResponseBodyDataDatasetConfigSearchSourceConfigsSearchSourceRequestConfigParams,
|
|
2047
2063
|
GetDatasetResponseBodyDataDatasetConfigSearchSourceConfigsSearchSourceRequestConfig,
|
|
@@ -2054,6 +2070,7 @@ __all__ = [
|
|
|
2054
2070
|
GetDatasetResponseBodyDataDocumentHandleConfig,
|
|
2055
2071
|
GetDatasetResponseBodyData,
|
|
2056
2072
|
GetDatasetDocumentResponseBodyDataMetadataAsrSentences,
|
|
2073
|
+
GetDatasetDocumentResponseBodyDataMetadataKeyValues,
|
|
2057
2074
|
GetDatasetDocumentResponseBodyDataMetadataVideoShots,
|
|
2058
2075
|
GetDatasetDocumentResponseBodyDataMetadata,
|
|
2059
2076
|
GetDatasetDocumentResponseBodyData,
|
|
@@ -2502,6 +2519,7 @@ __all__ = [
|
|
|
2502
2519
|
RunWritingV2ResponseBodyPayloadUsage,
|
|
2503
2520
|
RunWritingV2ResponseBodyPayload,
|
|
2504
2521
|
SaveDataSourceOrderConfigRequestUserConfigDataSourceList,
|
|
2522
|
+
SearchDatasetDocumentsResponseBodyDataDocumentsChunkInfos,
|
|
2505
2523
|
SearchDatasetDocumentsResponseBodyDataDocuments,
|
|
2506
2524
|
SearchDatasetDocumentsResponseBodyData,
|
|
2507
2525
|
SearchNewsResponseBodyData,
|
|
@@ -2514,6 +2532,7 @@ __all__ = [
|
|
|
2514
2532
|
SubmitCustomHotTopicBroadcastJobResponseBodyData,
|
|
2515
2533
|
SubmitCustomSourceTopicAnalysisRequestNewsComments,
|
|
2516
2534
|
SubmitCustomSourceTopicAnalysisRequestNews,
|
|
2535
|
+
SubmitCustomSourceTopicAnalysisRequestTopics,
|
|
2517
2536
|
SubmitCustomSourceTopicAnalysisResponseBodyData,
|
|
2518
2537
|
SubmitCustomTopicSelectionPerspectiveAnalysisTaskRequestDocuments,
|
|
2519
2538
|
SubmitCustomTopicSelectionPerspectiveAnalysisTaskResponseBodyData,
|
|
@@ -2550,6 +2569,7 @@ __all__ = [
|
|
|
2550
2569
|
SubmitTopicSelectionPerspectiveAnalysisTaskRequestDocumentsComments,
|
|
2551
2570
|
SubmitTopicSelectionPerspectiveAnalysisTaskRequestDocuments,
|
|
2552
2571
|
SubmitTopicSelectionPerspectiveAnalysisTaskResponseBodyData,
|
|
2572
|
+
UpdateDatasetRequestDatasetConfigSearchSourceConfig,
|
|
2553
2573
|
UpdateDatasetRequestDatasetConfigSearchSourceConfigsSearchSourceRequestConfigHeaders,
|
|
2554
2574
|
UpdateDatasetRequestDatasetConfigSearchSourceConfigsSearchSourceRequestConfigParams,
|
|
2555
2575
|
UpdateDatasetRequestDatasetConfigSearchSourceConfigsSearchSourceRequestConfig,
|
|
@@ -65,6 +65,7 @@ class AddDatasetDocumentRequest(DaraModel):
|
|
|
65
65
|
class AddDatasetDocumentRequestDocument(DaraModel):
|
|
66
66
|
def __init__(
|
|
67
67
|
self,
|
|
68
|
+
category_uuid: str = None,
|
|
68
69
|
content: str = None,
|
|
69
70
|
disable_handle_multimodal_media: bool = None,
|
|
70
71
|
doc_id: str = None,
|
|
@@ -79,9 +80,11 @@ class AddDatasetDocumentRequestDocument(DaraModel):
|
|
|
79
80
|
pub_time: str = None,
|
|
80
81
|
source_from: str = None,
|
|
81
82
|
summary: str = None,
|
|
83
|
+
tags: List[str] = None,
|
|
82
84
|
title: str = None,
|
|
83
85
|
url: str = None,
|
|
84
86
|
):
|
|
87
|
+
self.category_uuid = category_uuid
|
|
85
88
|
self.content = content
|
|
86
89
|
self.disable_handle_multimodal_media = disable_handle_multimodal_media
|
|
87
90
|
self.doc_id = doc_id
|
|
@@ -96,6 +99,7 @@ class AddDatasetDocumentRequestDocument(DaraModel):
|
|
|
96
99
|
self.pub_time = pub_time
|
|
97
100
|
self.source_from = source_from
|
|
98
101
|
self.summary = summary
|
|
102
|
+
self.tags = tags
|
|
99
103
|
self.title = title
|
|
100
104
|
self.url = url
|
|
101
105
|
|
|
@@ -112,6 +116,9 @@ class AddDatasetDocumentRequestDocument(DaraModel):
|
|
|
112
116
|
_map = super().to_map()
|
|
113
117
|
if _map is not None:
|
|
114
118
|
result = _map
|
|
119
|
+
if self.category_uuid is not None:
|
|
120
|
+
result['CategoryUuid'] = self.category_uuid
|
|
121
|
+
|
|
115
122
|
if self.content is not None:
|
|
116
123
|
result['Content'] = self.content
|
|
117
124
|
|
|
@@ -156,6 +163,9 @@ class AddDatasetDocumentRequestDocument(DaraModel):
|
|
|
156
163
|
if self.summary is not None:
|
|
157
164
|
result['Summary'] = self.summary
|
|
158
165
|
|
|
166
|
+
if self.tags is not None:
|
|
167
|
+
result['Tags'] = self.tags
|
|
168
|
+
|
|
159
169
|
if self.title is not None:
|
|
160
170
|
result['Title'] = self.title
|
|
161
171
|
|
|
@@ -166,6 +176,9 @@ class AddDatasetDocumentRequestDocument(DaraModel):
|
|
|
166
176
|
|
|
167
177
|
def from_map(self, m: dict = None):
|
|
168
178
|
m = m or dict()
|
|
179
|
+
if m.get('CategoryUuid') is not None:
|
|
180
|
+
self.category_uuid = m.get('CategoryUuid')
|
|
181
|
+
|
|
169
182
|
if m.get('Content') is not None:
|
|
170
183
|
self.content = m.get('Content')
|
|
171
184
|
|
|
@@ -212,6 +225,9 @@ class AddDatasetDocumentRequestDocument(DaraModel):
|
|
|
212
225
|
if m.get('Summary') is not None:
|
|
213
226
|
self.summary = m.get('Summary')
|
|
214
227
|
|
|
228
|
+
if m.get('Tags') is not None:
|
|
229
|
+
self.tags = m.get('Tags')
|
|
230
|
+
|
|
215
231
|
if m.get('Title') is not None:
|
|
216
232
|
self.title = m.get('Title')
|
|
217
233
|
|
|
@@ -267,10 +283,12 @@ class AddDatasetDocumentRequestDocumentMetadata(DaraModel):
|
|
|
267
283
|
def __init__(
|
|
268
284
|
self,
|
|
269
285
|
asr_sentences: List[main_models.AddDatasetDocumentRequestDocumentMetadataAsrSentences] = None,
|
|
286
|
+
key_values: List[main_models.AddDatasetDocumentRequestDocumentMetadataKeyValues] = None,
|
|
270
287
|
text: str = None,
|
|
271
288
|
video_shots: List[main_models.AddDatasetDocumentRequestDocumentMetadataVideoShots] = None,
|
|
272
289
|
):
|
|
273
290
|
self.asr_sentences = asr_sentences
|
|
291
|
+
self.key_values = key_values
|
|
274
292
|
self.text = text
|
|
275
293
|
self.video_shots = video_shots
|
|
276
294
|
|
|
@@ -279,6 +297,10 @@ class AddDatasetDocumentRequestDocumentMetadata(DaraModel):
|
|
|
279
297
|
for v1 in self.asr_sentences:
|
|
280
298
|
if v1:
|
|
281
299
|
v1.validate()
|
|
300
|
+
if self.key_values:
|
|
301
|
+
for v1 in self.key_values:
|
|
302
|
+
if v1:
|
|
303
|
+
v1.validate()
|
|
282
304
|
if self.video_shots:
|
|
283
305
|
for v1 in self.video_shots:
|
|
284
306
|
if v1:
|
|
@@ -294,6 +316,11 @@ class AddDatasetDocumentRequestDocumentMetadata(DaraModel):
|
|
|
294
316
|
for k1 in self.asr_sentences:
|
|
295
317
|
result['AsrSentences'].append(k1.to_map() if k1 else None)
|
|
296
318
|
|
|
319
|
+
result['KeyValues'] = []
|
|
320
|
+
if self.key_values is not None:
|
|
321
|
+
for k1 in self.key_values:
|
|
322
|
+
result['KeyValues'].append(k1.to_map() if k1 else None)
|
|
323
|
+
|
|
297
324
|
if self.text is not None:
|
|
298
325
|
result['Text'] = self.text
|
|
299
326
|
|
|
@@ -312,6 +339,12 @@ class AddDatasetDocumentRequestDocumentMetadata(DaraModel):
|
|
|
312
339
|
temp_model = main_models.AddDatasetDocumentRequestDocumentMetadataAsrSentences()
|
|
313
340
|
self.asr_sentences.append(temp_model.from_map(k1))
|
|
314
341
|
|
|
342
|
+
self.key_values = []
|
|
343
|
+
if m.get('KeyValues') is not None:
|
|
344
|
+
for k1 in m.get('KeyValues'):
|
|
345
|
+
temp_model = main_models.AddDatasetDocumentRequestDocumentMetadataKeyValues()
|
|
346
|
+
self.key_values.append(temp_model.from_map(k1))
|
|
347
|
+
|
|
315
348
|
if m.get('Text') is not None:
|
|
316
349
|
self.text = m.get('Text')
|
|
317
350
|
|
|
@@ -366,6 +399,41 @@ class AddDatasetDocumentRequestDocumentMetadataVideoShots(DaraModel):
|
|
|
366
399
|
|
|
367
400
|
return self
|
|
368
401
|
|
|
402
|
+
class AddDatasetDocumentRequestDocumentMetadataKeyValues(DaraModel):
|
|
403
|
+
def __init__(
|
|
404
|
+
self,
|
|
405
|
+
key: str = None,
|
|
406
|
+
value: str = None,
|
|
407
|
+
):
|
|
408
|
+
self.key = key
|
|
409
|
+
self.value = value
|
|
410
|
+
|
|
411
|
+
def validate(self):
|
|
412
|
+
pass
|
|
413
|
+
|
|
414
|
+
def to_map(self):
|
|
415
|
+
result = dict()
|
|
416
|
+
_map = super().to_map()
|
|
417
|
+
if _map is not None:
|
|
418
|
+
result = _map
|
|
419
|
+
if self.key is not None:
|
|
420
|
+
result['Key'] = self.key
|
|
421
|
+
|
|
422
|
+
if self.value is not None:
|
|
423
|
+
result['Value'] = self.value
|
|
424
|
+
|
|
425
|
+
return result
|
|
426
|
+
|
|
427
|
+
def from_map(self, m: dict = None):
|
|
428
|
+
m = m or dict()
|
|
429
|
+
if m.get('Key') is not None:
|
|
430
|
+
self.key = m.get('Key')
|
|
431
|
+
|
|
432
|
+
if m.get('Value') is not None:
|
|
433
|
+
self.value = m.get('Value')
|
|
434
|
+
|
|
435
|
+
return self
|
|
436
|
+
|
|
369
437
|
class AddDatasetDocumentRequestDocumentMetadataAsrSentences(DaraModel):
|
|
370
438
|
def __init__(
|
|
371
439
|
self,
|