alibabacloud-rdsai20250507 2.1.0__py3-none-any.whl → 2.2.0__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_rdsai20250507/__init__.py +1 -1
- alibabacloud_rdsai20250507/client.py +750 -0
- alibabacloud_rdsai20250507/models/__init__.py +83 -1
- alibabacloud_rdsai20250507/models/_create_custom_agent_request.py +8 -0
- alibabacloud_rdsai20250507/models/_create_custom_agent_response_body.py +69 -1
- alibabacloud_rdsai20250507/models/_create_custom_agent_shrink_request.py +8 -0
- alibabacloud_rdsai20250507/models/_create_inspection_task_request.py +58 -0
- alibabacloud_rdsai20250507/models/_create_inspection_task_response.py +54 -0
- alibabacloud_rdsai20250507/models/_create_inspection_task_response_body.py +87 -0
- alibabacloud_rdsai20250507/models/_create_scheduled_task_request.py +75 -0
- alibabacloud_rdsai20250507/models/_create_scheduled_task_response.py +54 -0
- alibabacloud_rdsai20250507/models/_create_scheduled_task_response_body.py +57 -0
- alibabacloud_rdsai20250507/models/_delete_scheduled_task_request.py +34 -0
- alibabacloud_rdsai20250507/models/_delete_scheduled_task_response.py +54 -0
- alibabacloud_rdsai20250507/models/_delete_scheduled_task_response_body.py +49 -0
- alibabacloud_rdsai20250507/models/_describe_app_instance_attribute_response_body.py +24 -0
- alibabacloud_rdsai20250507/models/_get_custom_agent_response_body.py +69 -1
- alibabacloud_rdsai20250507/models/_get_inspection_report_request.py +42 -0
- alibabacloud_rdsai20250507/models/_get_inspection_report_response.py +54 -0
- alibabacloud_rdsai20250507/models/_get_inspection_report_response_body.py +358 -0
- alibabacloud_rdsai20250507/models/_get_scheduled_instances_request.py +50 -0
- alibabacloud_rdsai20250507/models/_get_scheduled_instances_response.py +54 -0
- alibabacloud_rdsai20250507/models/_get_scheduled_instances_response_body.py +151 -0
- alibabacloud_rdsai20250507/models/_get_scheduled_reports_request.py +66 -0
- alibabacloud_rdsai20250507/models/_get_scheduled_reports_response.py +54 -0
- alibabacloud_rdsai20250507/models/_get_scheduled_reports_response_body.py +151 -0
- alibabacloud_rdsai20250507/models/_get_stand_alone_reports_request.py +57 -0
- alibabacloud_rdsai20250507/models/_get_stand_alone_reports_response.py +54 -0
- alibabacloud_rdsai20250507/models/_get_stand_alone_reports_response_body.py +151 -0
- alibabacloud_rdsai20250507/models/_list_custom_agent_response_body.py +68 -0
- alibabacloud_rdsai20250507/models/_list_scheduled_tasks_request.py +49 -0
- alibabacloud_rdsai20250507/models/_list_scheduled_tasks_response.py +54 -0
- alibabacloud_rdsai20250507/models/_list_scheduled_tasks_response_body.py +175 -0
- alibabacloud_rdsai20250507/models/_modify_instances_sslrequest.py +17 -0
- alibabacloud_rdsai20250507/models/_modify_instances_sslresponse_body.py +2 -0
- alibabacloud_rdsai20250507/models/_modify_instances_sslshrink_request.py +17 -0
- alibabacloud_rdsai20250507/models/_modify_scheduled_task_request.py +82 -0
- alibabacloud_rdsai20250507/models/_modify_scheduled_task_response.py +54 -0
- alibabacloud_rdsai20250507/models/_modify_scheduled_task_response_body.py +49 -0
- alibabacloud_rdsai20250507/models/_update_custom_agent_request.py +8 -0
- alibabacloud_rdsai20250507/models/_update_custom_agent_response_body.py +69 -1
- alibabacloud_rdsai20250507/models/_update_custom_agent_shrink_request.py +8 -0
- {alibabacloud_rdsai20250507-2.1.0.dist-info → alibabacloud_rdsai20250507-2.2.0.dist-info}/METADATA +1 -1
- {alibabacloud_rdsai20250507-2.1.0.dist-info → alibabacloud_rdsai20250507-2.2.0.dist-info}/RECORD +47 -20
- {alibabacloud_rdsai20250507-2.1.0.dist-info → alibabacloud_rdsai20250507-2.2.0.dist-info}/LICENSE +0 -0
- {alibabacloud_rdsai20250507-2.1.0.dist-info → alibabacloud_rdsai20250507-2.2.0.dist-info}/WHEEL +0 -0
- {alibabacloud_rdsai20250507-2.1.0.dist-info → alibabacloud_rdsai20250507-2.2.0.dist-info}/top_level.txt +0 -0
|
@@ -447,6 +447,8 @@ class Client(OpenApiClient):
|
|
|
447
447
|
tmp_req.validate()
|
|
448
448
|
request = main_models.CreateCustomAgentShrinkRequest()
|
|
449
449
|
Utils.convert(tmp_req, request)
|
|
450
|
+
if not DaraCore.is_null(tmp_req.skill_ids):
|
|
451
|
+
request.skill_ids_shrink = Utils.array_to_string_with_specified_style(tmp_req.skill_ids, 'SkillIds', 'json')
|
|
450
452
|
if not DaraCore.is_null(tmp_req.tools):
|
|
451
453
|
request.tools_shrink = Utils.array_to_string_with_specified_style(tmp_req.tools, 'Tools', 'json')
|
|
452
454
|
query = {}
|
|
@@ -454,6 +456,8 @@ class Client(OpenApiClient):
|
|
|
454
456
|
query['EnableTools'] = request.enable_tools
|
|
455
457
|
if not DaraCore.is_null(request.name):
|
|
456
458
|
query['Name'] = request.name
|
|
459
|
+
if not DaraCore.is_null(request.skill_ids_shrink):
|
|
460
|
+
query['SkillIds'] = request.skill_ids_shrink
|
|
457
461
|
if not DaraCore.is_null(request.system_prompt):
|
|
458
462
|
query['SystemPrompt'] = request.system_prompt
|
|
459
463
|
if not DaraCore.is_null(request.tools_shrink):
|
|
@@ -485,6 +489,8 @@ class Client(OpenApiClient):
|
|
|
485
489
|
tmp_req.validate()
|
|
486
490
|
request = main_models.CreateCustomAgentShrinkRequest()
|
|
487
491
|
Utils.convert(tmp_req, request)
|
|
492
|
+
if not DaraCore.is_null(tmp_req.skill_ids):
|
|
493
|
+
request.skill_ids_shrink = Utils.array_to_string_with_specified_style(tmp_req.skill_ids, 'SkillIds', 'json')
|
|
488
494
|
if not DaraCore.is_null(tmp_req.tools):
|
|
489
495
|
request.tools_shrink = Utils.array_to_string_with_specified_style(tmp_req.tools, 'Tools', 'json')
|
|
490
496
|
query = {}
|
|
@@ -492,6 +498,8 @@ class Client(OpenApiClient):
|
|
|
492
498
|
query['EnableTools'] = request.enable_tools
|
|
493
499
|
if not DaraCore.is_null(request.name):
|
|
494
500
|
query['Name'] = request.name
|
|
501
|
+
if not DaraCore.is_null(request.skill_ids_shrink):
|
|
502
|
+
query['SkillIds'] = request.skill_ids_shrink
|
|
495
503
|
if not DaraCore.is_null(request.system_prompt):
|
|
496
504
|
query['SystemPrompt'] = request.system_prompt
|
|
497
505
|
if not DaraCore.is_null(request.tools_shrink):
|
|
@@ -529,6 +537,178 @@ class Client(OpenApiClient):
|
|
|
529
537
|
runtime = RuntimeOptions()
|
|
530
538
|
return await self.create_custom_agent_with_options_async(request, runtime)
|
|
531
539
|
|
|
540
|
+
def create_inspection_task_with_options(
|
|
541
|
+
self,
|
|
542
|
+
request: main_models.CreateInspectionTaskRequest,
|
|
543
|
+
runtime: RuntimeOptions,
|
|
544
|
+
) -> main_models.CreateInspectionTaskResponse:
|
|
545
|
+
request.validate()
|
|
546
|
+
query = {}
|
|
547
|
+
if not DaraCore.is_null(request.end_time):
|
|
548
|
+
query['EndTime'] = request.end_time
|
|
549
|
+
if not DaraCore.is_null(request.inspection_items):
|
|
550
|
+
query['InspectionItems'] = request.inspection_items
|
|
551
|
+
if not DaraCore.is_null(request.instance_ids):
|
|
552
|
+
query['InstanceIds'] = request.instance_ids
|
|
553
|
+
if not DaraCore.is_null(request.start_time):
|
|
554
|
+
query['StartTime'] = request.start_time
|
|
555
|
+
req = open_api_util_models.OpenApiRequest(
|
|
556
|
+
query = Utils.query(query)
|
|
557
|
+
)
|
|
558
|
+
params = open_api_util_models.Params(
|
|
559
|
+
action = 'CreateInspectionTask',
|
|
560
|
+
version = '2025-05-07',
|
|
561
|
+
protocol = 'HTTPS',
|
|
562
|
+
pathname = '/',
|
|
563
|
+
method = 'POST',
|
|
564
|
+
auth_type = 'AK',
|
|
565
|
+
style = 'RPC',
|
|
566
|
+
req_body_type = 'formData',
|
|
567
|
+
body_type = 'json'
|
|
568
|
+
)
|
|
569
|
+
return DaraCore.from_map(
|
|
570
|
+
main_models.CreateInspectionTaskResponse(),
|
|
571
|
+
self.call_api(params, req, runtime)
|
|
572
|
+
)
|
|
573
|
+
|
|
574
|
+
async def create_inspection_task_with_options_async(
|
|
575
|
+
self,
|
|
576
|
+
request: main_models.CreateInspectionTaskRequest,
|
|
577
|
+
runtime: RuntimeOptions,
|
|
578
|
+
) -> main_models.CreateInspectionTaskResponse:
|
|
579
|
+
request.validate()
|
|
580
|
+
query = {}
|
|
581
|
+
if not DaraCore.is_null(request.end_time):
|
|
582
|
+
query['EndTime'] = request.end_time
|
|
583
|
+
if not DaraCore.is_null(request.inspection_items):
|
|
584
|
+
query['InspectionItems'] = request.inspection_items
|
|
585
|
+
if not DaraCore.is_null(request.instance_ids):
|
|
586
|
+
query['InstanceIds'] = request.instance_ids
|
|
587
|
+
if not DaraCore.is_null(request.start_time):
|
|
588
|
+
query['StartTime'] = request.start_time
|
|
589
|
+
req = open_api_util_models.OpenApiRequest(
|
|
590
|
+
query = Utils.query(query)
|
|
591
|
+
)
|
|
592
|
+
params = open_api_util_models.Params(
|
|
593
|
+
action = 'CreateInspectionTask',
|
|
594
|
+
version = '2025-05-07',
|
|
595
|
+
protocol = 'HTTPS',
|
|
596
|
+
pathname = '/',
|
|
597
|
+
method = 'POST',
|
|
598
|
+
auth_type = 'AK',
|
|
599
|
+
style = 'RPC',
|
|
600
|
+
req_body_type = 'formData',
|
|
601
|
+
body_type = 'json'
|
|
602
|
+
)
|
|
603
|
+
return DaraCore.from_map(
|
|
604
|
+
main_models.CreateInspectionTaskResponse(),
|
|
605
|
+
await self.call_api_async(params, req, runtime)
|
|
606
|
+
)
|
|
607
|
+
|
|
608
|
+
def create_inspection_task(
|
|
609
|
+
self,
|
|
610
|
+
request: main_models.CreateInspectionTaskRequest,
|
|
611
|
+
) -> main_models.CreateInspectionTaskResponse:
|
|
612
|
+
runtime = RuntimeOptions()
|
|
613
|
+
return self.create_inspection_task_with_options(request, runtime)
|
|
614
|
+
|
|
615
|
+
async def create_inspection_task_async(
|
|
616
|
+
self,
|
|
617
|
+
request: main_models.CreateInspectionTaskRequest,
|
|
618
|
+
) -> main_models.CreateInspectionTaskResponse:
|
|
619
|
+
runtime = RuntimeOptions()
|
|
620
|
+
return await self.create_inspection_task_with_options_async(request, runtime)
|
|
621
|
+
|
|
622
|
+
def create_scheduled_task_with_options(
|
|
623
|
+
self,
|
|
624
|
+
request: main_models.CreateScheduledTaskRequest,
|
|
625
|
+
runtime: RuntimeOptions,
|
|
626
|
+
) -> main_models.CreateScheduledTaskResponse:
|
|
627
|
+
request.validate()
|
|
628
|
+
query = {}
|
|
629
|
+
if not DaraCore.is_null(request.description):
|
|
630
|
+
query['Description'] = request.description
|
|
631
|
+
if not DaraCore.is_null(request.frequency):
|
|
632
|
+
query['Frequency'] = request.frequency
|
|
633
|
+
if not DaraCore.is_null(request.instance_ids):
|
|
634
|
+
query['InstanceIds'] = request.instance_ids
|
|
635
|
+
if not DaraCore.is_null(request.name):
|
|
636
|
+
query['Name'] = request.name
|
|
637
|
+
if not DaraCore.is_null(request.start_time):
|
|
638
|
+
query['StartTime'] = request.start_time
|
|
639
|
+
if not DaraCore.is_null(request.time_range):
|
|
640
|
+
query['TimeRange'] = request.time_range
|
|
641
|
+
req = open_api_util_models.OpenApiRequest(
|
|
642
|
+
query = Utils.query(query)
|
|
643
|
+
)
|
|
644
|
+
params = open_api_util_models.Params(
|
|
645
|
+
action = 'CreateScheduledTask',
|
|
646
|
+
version = '2025-05-07',
|
|
647
|
+
protocol = 'HTTPS',
|
|
648
|
+
pathname = '/',
|
|
649
|
+
method = 'POST',
|
|
650
|
+
auth_type = 'AK',
|
|
651
|
+
style = 'RPC',
|
|
652
|
+
req_body_type = 'formData',
|
|
653
|
+
body_type = 'json'
|
|
654
|
+
)
|
|
655
|
+
return DaraCore.from_map(
|
|
656
|
+
main_models.CreateScheduledTaskResponse(),
|
|
657
|
+
self.call_api(params, req, runtime)
|
|
658
|
+
)
|
|
659
|
+
|
|
660
|
+
async def create_scheduled_task_with_options_async(
|
|
661
|
+
self,
|
|
662
|
+
request: main_models.CreateScheduledTaskRequest,
|
|
663
|
+
runtime: RuntimeOptions,
|
|
664
|
+
) -> main_models.CreateScheduledTaskResponse:
|
|
665
|
+
request.validate()
|
|
666
|
+
query = {}
|
|
667
|
+
if not DaraCore.is_null(request.description):
|
|
668
|
+
query['Description'] = request.description
|
|
669
|
+
if not DaraCore.is_null(request.frequency):
|
|
670
|
+
query['Frequency'] = request.frequency
|
|
671
|
+
if not DaraCore.is_null(request.instance_ids):
|
|
672
|
+
query['InstanceIds'] = request.instance_ids
|
|
673
|
+
if not DaraCore.is_null(request.name):
|
|
674
|
+
query['Name'] = request.name
|
|
675
|
+
if not DaraCore.is_null(request.start_time):
|
|
676
|
+
query['StartTime'] = request.start_time
|
|
677
|
+
if not DaraCore.is_null(request.time_range):
|
|
678
|
+
query['TimeRange'] = request.time_range
|
|
679
|
+
req = open_api_util_models.OpenApiRequest(
|
|
680
|
+
query = Utils.query(query)
|
|
681
|
+
)
|
|
682
|
+
params = open_api_util_models.Params(
|
|
683
|
+
action = 'CreateScheduledTask',
|
|
684
|
+
version = '2025-05-07',
|
|
685
|
+
protocol = 'HTTPS',
|
|
686
|
+
pathname = '/',
|
|
687
|
+
method = 'POST',
|
|
688
|
+
auth_type = 'AK',
|
|
689
|
+
style = 'RPC',
|
|
690
|
+
req_body_type = 'formData',
|
|
691
|
+
body_type = 'json'
|
|
692
|
+
)
|
|
693
|
+
return DaraCore.from_map(
|
|
694
|
+
main_models.CreateScheduledTaskResponse(),
|
|
695
|
+
await self.call_api_async(params, req, runtime)
|
|
696
|
+
)
|
|
697
|
+
|
|
698
|
+
def create_scheduled_task(
|
|
699
|
+
self,
|
|
700
|
+
request: main_models.CreateScheduledTaskRequest,
|
|
701
|
+
) -> main_models.CreateScheduledTaskResponse:
|
|
702
|
+
runtime = RuntimeOptions()
|
|
703
|
+
return self.create_scheduled_task_with_options(request, runtime)
|
|
704
|
+
|
|
705
|
+
async def create_scheduled_task_async(
|
|
706
|
+
self,
|
|
707
|
+
request: main_models.CreateScheduledTaskRequest,
|
|
708
|
+
) -> main_models.CreateScheduledTaskResponse:
|
|
709
|
+
runtime = RuntimeOptions()
|
|
710
|
+
return await self.create_scheduled_task_with_options_async(request, runtime)
|
|
711
|
+
|
|
532
712
|
def delete_app_instance_with_options(
|
|
533
713
|
self,
|
|
534
714
|
request: main_models.DeleteAppInstanceRequest,
|
|
@@ -677,6 +857,76 @@ class Client(OpenApiClient):
|
|
|
677
857
|
runtime = RuntimeOptions()
|
|
678
858
|
return await self.delete_custom_agent_with_options_async(request, runtime)
|
|
679
859
|
|
|
860
|
+
def delete_scheduled_task_with_options(
|
|
861
|
+
self,
|
|
862
|
+
request: main_models.DeleteScheduledTaskRequest,
|
|
863
|
+
runtime: RuntimeOptions,
|
|
864
|
+
) -> main_models.DeleteScheduledTaskResponse:
|
|
865
|
+
request.validate()
|
|
866
|
+
query = {}
|
|
867
|
+
if not DaraCore.is_null(request.scheduled_id):
|
|
868
|
+
query['ScheduledId'] = request.scheduled_id
|
|
869
|
+
req = open_api_util_models.OpenApiRequest(
|
|
870
|
+
query = Utils.query(query)
|
|
871
|
+
)
|
|
872
|
+
params = open_api_util_models.Params(
|
|
873
|
+
action = 'DeleteScheduledTask',
|
|
874
|
+
version = '2025-05-07',
|
|
875
|
+
protocol = 'HTTPS',
|
|
876
|
+
pathname = '/',
|
|
877
|
+
method = 'POST',
|
|
878
|
+
auth_type = 'AK',
|
|
879
|
+
style = 'RPC',
|
|
880
|
+
req_body_type = 'formData',
|
|
881
|
+
body_type = 'json'
|
|
882
|
+
)
|
|
883
|
+
return DaraCore.from_map(
|
|
884
|
+
main_models.DeleteScheduledTaskResponse(),
|
|
885
|
+
self.call_api(params, req, runtime)
|
|
886
|
+
)
|
|
887
|
+
|
|
888
|
+
async def delete_scheduled_task_with_options_async(
|
|
889
|
+
self,
|
|
890
|
+
request: main_models.DeleteScheduledTaskRequest,
|
|
891
|
+
runtime: RuntimeOptions,
|
|
892
|
+
) -> main_models.DeleteScheduledTaskResponse:
|
|
893
|
+
request.validate()
|
|
894
|
+
query = {}
|
|
895
|
+
if not DaraCore.is_null(request.scheduled_id):
|
|
896
|
+
query['ScheduledId'] = request.scheduled_id
|
|
897
|
+
req = open_api_util_models.OpenApiRequest(
|
|
898
|
+
query = Utils.query(query)
|
|
899
|
+
)
|
|
900
|
+
params = open_api_util_models.Params(
|
|
901
|
+
action = 'DeleteScheduledTask',
|
|
902
|
+
version = '2025-05-07',
|
|
903
|
+
protocol = 'HTTPS',
|
|
904
|
+
pathname = '/',
|
|
905
|
+
method = 'POST',
|
|
906
|
+
auth_type = 'AK',
|
|
907
|
+
style = 'RPC',
|
|
908
|
+
req_body_type = 'formData',
|
|
909
|
+
body_type = 'json'
|
|
910
|
+
)
|
|
911
|
+
return DaraCore.from_map(
|
|
912
|
+
main_models.DeleteScheduledTaskResponse(),
|
|
913
|
+
await self.call_api_async(params, req, runtime)
|
|
914
|
+
)
|
|
915
|
+
|
|
916
|
+
def delete_scheduled_task(
|
|
917
|
+
self,
|
|
918
|
+
request: main_models.DeleteScheduledTaskRequest,
|
|
919
|
+
) -> main_models.DeleteScheduledTaskResponse:
|
|
920
|
+
runtime = RuntimeOptions()
|
|
921
|
+
return self.delete_scheduled_task_with_options(request, runtime)
|
|
922
|
+
|
|
923
|
+
async def delete_scheduled_task_async(
|
|
924
|
+
self,
|
|
925
|
+
request: main_models.DeleteScheduledTaskRequest,
|
|
926
|
+
) -> main_models.DeleteScheduledTaskResponse:
|
|
927
|
+
runtime = RuntimeOptions()
|
|
928
|
+
return await self.delete_scheduled_task_with_options_async(request, runtime)
|
|
929
|
+
|
|
680
930
|
def describe_app_instance_attribute_with_options(
|
|
681
931
|
self,
|
|
682
932
|
request: main_models.DescribeAppInstanceAttributeRequest,
|
|
@@ -1527,6 +1777,80 @@ class Client(OpenApiClient):
|
|
|
1527
1777
|
runtime = RuntimeOptions()
|
|
1528
1778
|
return await self.get_custom_agent_with_options_async(request, runtime)
|
|
1529
1779
|
|
|
1780
|
+
def get_inspection_report_with_options(
|
|
1781
|
+
self,
|
|
1782
|
+
request: main_models.GetInspectionReportRequest,
|
|
1783
|
+
runtime: RuntimeOptions,
|
|
1784
|
+
) -> main_models.GetInspectionReportResponse:
|
|
1785
|
+
request.validate()
|
|
1786
|
+
query = {}
|
|
1787
|
+
if not DaraCore.is_null(request.instance_id):
|
|
1788
|
+
query['InstanceId'] = request.instance_id
|
|
1789
|
+
if not DaraCore.is_null(request.task_id):
|
|
1790
|
+
query['TaskId'] = request.task_id
|
|
1791
|
+
req = open_api_util_models.OpenApiRequest(
|
|
1792
|
+
query = Utils.query(query)
|
|
1793
|
+
)
|
|
1794
|
+
params = open_api_util_models.Params(
|
|
1795
|
+
action = 'GetInspectionReport',
|
|
1796
|
+
version = '2025-05-07',
|
|
1797
|
+
protocol = 'HTTPS',
|
|
1798
|
+
pathname = '/',
|
|
1799
|
+
method = 'POST',
|
|
1800
|
+
auth_type = 'AK',
|
|
1801
|
+
style = 'RPC',
|
|
1802
|
+
req_body_type = 'formData',
|
|
1803
|
+
body_type = 'json'
|
|
1804
|
+
)
|
|
1805
|
+
return DaraCore.from_map(
|
|
1806
|
+
main_models.GetInspectionReportResponse(),
|
|
1807
|
+
self.call_api(params, req, runtime)
|
|
1808
|
+
)
|
|
1809
|
+
|
|
1810
|
+
async def get_inspection_report_with_options_async(
|
|
1811
|
+
self,
|
|
1812
|
+
request: main_models.GetInspectionReportRequest,
|
|
1813
|
+
runtime: RuntimeOptions,
|
|
1814
|
+
) -> main_models.GetInspectionReportResponse:
|
|
1815
|
+
request.validate()
|
|
1816
|
+
query = {}
|
|
1817
|
+
if not DaraCore.is_null(request.instance_id):
|
|
1818
|
+
query['InstanceId'] = request.instance_id
|
|
1819
|
+
if not DaraCore.is_null(request.task_id):
|
|
1820
|
+
query['TaskId'] = request.task_id
|
|
1821
|
+
req = open_api_util_models.OpenApiRequest(
|
|
1822
|
+
query = Utils.query(query)
|
|
1823
|
+
)
|
|
1824
|
+
params = open_api_util_models.Params(
|
|
1825
|
+
action = 'GetInspectionReport',
|
|
1826
|
+
version = '2025-05-07',
|
|
1827
|
+
protocol = 'HTTPS',
|
|
1828
|
+
pathname = '/',
|
|
1829
|
+
method = 'POST',
|
|
1830
|
+
auth_type = 'AK',
|
|
1831
|
+
style = 'RPC',
|
|
1832
|
+
req_body_type = 'formData',
|
|
1833
|
+
body_type = 'json'
|
|
1834
|
+
)
|
|
1835
|
+
return DaraCore.from_map(
|
|
1836
|
+
main_models.GetInspectionReportResponse(),
|
|
1837
|
+
await self.call_api_async(params, req, runtime)
|
|
1838
|
+
)
|
|
1839
|
+
|
|
1840
|
+
def get_inspection_report(
|
|
1841
|
+
self,
|
|
1842
|
+
request: main_models.GetInspectionReportRequest,
|
|
1843
|
+
) -> main_models.GetInspectionReportResponse:
|
|
1844
|
+
runtime = RuntimeOptions()
|
|
1845
|
+
return self.get_inspection_report_with_options(request, runtime)
|
|
1846
|
+
|
|
1847
|
+
async def get_inspection_report_async(
|
|
1848
|
+
self,
|
|
1849
|
+
request: main_models.GetInspectionReportRequest,
|
|
1850
|
+
) -> main_models.GetInspectionReportResponse:
|
|
1851
|
+
runtime = RuntimeOptions()
|
|
1852
|
+
return await self.get_inspection_report_with_options_async(request, runtime)
|
|
1853
|
+
|
|
1530
1854
|
def get_messages_with_options(
|
|
1531
1855
|
self,
|
|
1532
1856
|
request: main_models.GetMessagesRequest,
|
|
@@ -1609,6 +1933,252 @@ class Client(OpenApiClient):
|
|
|
1609
1933
|
runtime = RuntimeOptions()
|
|
1610
1934
|
return await self.get_messages_with_options_async(request, runtime)
|
|
1611
1935
|
|
|
1936
|
+
def get_scheduled_instances_with_options(
|
|
1937
|
+
self,
|
|
1938
|
+
request: main_models.GetScheduledInstancesRequest,
|
|
1939
|
+
runtime: RuntimeOptions,
|
|
1940
|
+
) -> main_models.GetScheduledInstancesResponse:
|
|
1941
|
+
request.validate()
|
|
1942
|
+
query = {}
|
|
1943
|
+
if not DaraCore.is_null(request.page_number):
|
|
1944
|
+
query['PageNumber'] = request.page_number
|
|
1945
|
+
if not DaraCore.is_null(request.page_size):
|
|
1946
|
+
query['PageSize'] = request.page_size
|
|
1947
|
+
if not DaraCore.is_null(request.scheduled_id):
|
|
1948
|
+
query['ScheduledId'] = request.scheduled_id
|
|
1949
|
+
req = open_api_util_models.OpenApiRequest(
|
|
1950
|
+
query = Utils.query(query)
|
|
1951
|
+
)
|
|
1952
|
+
params = open_api_util_models.Params(
|
|
1953
|
+
action = 'GetScheduledInstances',
|
|
1954
|
+
version = '2025-05-07',
|
|
1955
|
+
protocol = 'HTTPS',
|
|
1956
|
+
pathname = '/',
|
|
1957
|
+
method = 'POST',
|
|
1958
|
+
auth_type = 'AK',
|
|
1959
|
+
style = 'RPC',
|
|
1960
|
+
req_body_type = 'formData',
|
|
1961
|
+
body_type = 'json'
|
|
1962
|
+
)
|
|
1963
|
+
return DaraCore.from_map(
|
|
1964
|
+
main_models.GetScheduledInstancesResponse(),
|
|
1965
|
+
self.call_api(params, req, runtime)
|
|
1966
|
+
)
|
|
1967
|
+
|
|
1968
|
+
async def get_scheduled_instances_with_options_async(
|
|
1969
|
+
self,
|
|
1970
|
+
request: main_models.GetScheduledInstancesRequest,
|
|
1971
|
+
runtime: RuntimeOptions,
|
|
1972
|
+
) -> main_models.GetScheduledInstancesResponse:
|
|
1973
|
+
request.validate()
|
|
1974
|
+
query = {}
|
|
1975
|
+
if not DaraCore.is_null(request.page_number):
|
|
1976
|
+
query['PageNumber'] = request.page_number
|
|
1977
|
+
if not DaraCore.is_null(request.page_size):
|
|
1978
|
+
query['PageSize'] = request.page_size
|
|
1979
|
+
if not DaraCore.is_null(request.scheduled_id):
|
|
1980
|
+
query['ScheduledId'] = request.scheduled_id
|
|
1981
|
+
req = open_api_util_models.OpenApiRequest(
|
|
1982
|
+
query = Utils.query(query)
|
|
1983
|
+
)
|
|
1984
|
+
params = open_api_util_models.Params(
|
|
1985
|
+
action = 'GetScheduledInstances',
|
|
1986
|
+
version = '2025-05-07',
|
|
1987
|
+
protocol = 'HTTPS',
|
|
1988
|
+
pathname = '/',
|
|
1989
|
+
method = 'POST',
|
|
1990
|
+
auth_type = 'AK',
|
|
1991
|
+
style = 'RPC',
|
|
1992
|
+
req_body_type = 'formData',
|
|
1993
|
+
body_type = 'json'
|
|
1994
|
+
)
|
|
1995
|
+
return DaraCore.from_map(
|
|
1996
|
+
main_models.GetScheduledInstancesResponse(),
|
|
1997
|
+
await self.call_api_async(params, req, runtime)
|
|
1998
|
+
)
|
|
1999
|
+
|
|
2000
|
+
def get_scheduled_instances(
|
|
2001
|
+
self,
|
|
2002
|
+
request: main_models.GetScheduledInstancesRequest,
|
|
2003
|
+
) -> main_models.GetScheduledInstancesResponse:
|
|
2004
|
+
runtime = RuntimeOptions()
|
|
2005
|
+
return self.get_scheduled_instances_with_options(request, runtime)
|
|
2006
|
+
|
|
2007
|
+
async def get_scheduled_instances_async(
|
|
2008
|
+
self,
|
|
2009
|
+
request: main_models.GetScheduledInstancesRequest,
|
|
2010
|
+
) -> main_models.GetScheduledInstancesResponse:
|
|
2011
|
+
runtime = RuntimeOptions()
|
|
2012
|
+
return await self.get_scheduled_instances_with_options_async(request, runtime)
|
|
2013
|
+
|
|
2014
|
+
def get_scheduled_reports_with_options(
|
|
2015
|
+
self,
|
|
2016
|
+
request: main_models.GetScheduledReportsRequest,
|
|
2017
|
+
runtime: RuntimeOptions,
|
|
2018
|
+
) -> main_models.GetScheduledReportsResponse:
|
|
2019
|
+
request.validate()
|
|
2020
|
+
query = {}
|
|
2021
|
+
if not DaraCore.is_null(request.end_time):
|
|
2022
|
+
query['EndTime'] = request.end_time
|
|
2023
|
+
if not DaraCore.is_null(request.page_number):
|
|
2024
|
+
query['PageNumber'] = request.page_number
|
|
2025
|
+
if not DaraCore.is_null(request.page_size):
|
|
2026
|
+
query['PageSize'] = request.page_size
|
|
2027
|
+
if not DaraCore.is_null(request.scheduled_id):
|
|
2028
|
+
query['ScheduledId'] = request.scheduled_id
|
|
2029
|
+
if not DaraCore.is_null(request.start_time):
|
|
2030
|
+
query['StartTime'] = request.start_time
|
|
2031
|
+
req = open_api_util_models.OpenApiRequest(
|
|
2032
|
+
query = Utils.query(query)
|
|
2033
|
+
)
|
|
2034
|
+
params = open_api_util_models.Params(
|
|
2035
|
+
action = 'GetScheduledReports',
|
|
2036
|
+
version = '2025-05-07',
|
|
2037
|
+
protocol = 'HTTPS',
|
|
2038
|
+
pathname = '/',
|
|
2039
|
+
method = 'POST',
|
|
2040
|
+
auth_type = 'AK',
|
|
2041
|
+
style = 'RPC',
|
|
2042
|
+
req_body_type = 'formData',
|
|
2043
|
+
body_type = 'json'
|
|
2044
|
+
)
|
|
2045
|
+
return DaraCore.from_map(
|
|
2046
|
+
main_models.GetScheduledReportsResponse(),
|
|
2047
|
+
self.call_api(params, req, runtime)
|
|
2048
|
+
)
|
|
2049
|
+
|
|
2050
|
+
async def get_scheduled_reports_with_options_async(
|
|
2051
|
+
self,
|
|
2052
|
+
request: main_models.GetScheduledReportsRequest,
|
|
2053
|
+
runtime: RuntimeOptions,
|
|
2054
|
+
) -> main_models.GetScheduledReportsResponse:
|
|
2055
|
+
request.validate()
|
|
2056
|
+
query = {}
|
|
2057
|
+
if not DaraCore.is_null(request.end_time):
|
|
2058
|
+
query['EndTime'] = request.end_time
|
|
2059
|
+
if not DaraCore.is_null(request.page_number):
|
|
2060
|
+
query['PageNumber'] = request.page_number
|
|
2061
|
+
if not DaraCore.is_null(request.page_size):
|
|
2062
|
+
query['PageSize'] = request.page_size
|
|
2063
|
+
if not DaraCore.is_null(request.scheduled_id):
|
|
2064
|
+
query['ScheduledId'] = request.scheduled_id
|
|
2065
|
+
if not DaraCore.is_null(request.start_time):
|
|
2066
|
+
query['StartTime'] = request.start_time
|
|
2067
|
+
req = open_api_util_models.OpenApiRequest(
|
|
2068
|
+
query = Utils.query(query)
|
|
2069
|
+
)
|
|
2070
|
+
params = open_api_util_models.Params(
|
|
2071
|
+
action = 'GetScheduledReports',
|
|
2072
|
+
version = '2025-05-07',
|
|
2073
|
+
protocol = 'HTTPS',
|
|
2074
|
+
pathname = '/',
|
|
2075
|
+
method = 'POST',
|
|
2076
|
+
auth_type = 'AK',
|
|
2077
|
+
style = 'RPC',
|
|
2078
|
+
req_body_type = 'formData',
|
|
2079
|
+
body_type = 'json'
|
|
2080
|
+
)
|
|
2081
|
+
return DaraCore.from_map(
|
|
2082
|
+
main_models.GetScheduledReportsResponse(),
|
|
2083
|
+
await self.call_api_async(params, req, runtime)
|
|
2084
|
+
)
|
|
2085
|
+
|
|
2086
|
+
def get_scheduled_reports(
|
|
2087
|
+
self,
|
|
2088
|
+
request: main_models.GetScheduledReportsRequest,
|
|
2089
|
+
) -> main_models.GetScheduledReportsResponse:
|
|
2090
|
+
runtime = RuntimeOptions()
|
|
2091
|
+
return self.get_scheduled_reports_with_options(request, runtime)
|
|
2092
|
+
|
|
2093
|
+
async def get_scheduled_reports_async(
|
|
2094
|
+
self,
|
|
2095
|
+
request: main_models.GetScheduledReportsRequest,
|
|
2096
|
+
) -> main_models.GetScheduledReportsResponse:
|
|
2097
|
+
runtime = RuntimeOptions()
|
|
2098
|
+
return await self.get_scheduled_reports_with_options_async(request, runtime)
|
|
2099
|
+
|
|
2100
|
+
def get_stand_alone_reports_with_options(
|
|
2101
|
+
self,
|
|
2102
|
+
request: main_models.GetStandAloneReportsRequest,
|
|
2103
|
+
runtime: RuntimeOptions,
|
|
2104
|
+
) -> main_models.GetStandAloneReportsResponse:
|
|
2105
|
+
request.validate()
|
|
2106
|
+
query = {}
|
|
2107
|
+
if not DaraCore.is_null(request.end_time):
|
|
2108
|
+
query['EndTime'] = request.end_time
|
|
2109
|
+
if not DaraCore.is_null(request.page_number):
|
|
2110
|
+
query['PageNumber'] = request.page_number
|
|
2111
|
+
if not DaraCore.is_null(request.page_size):
|
|
2112
|
+
query['PageSize'] = request.page_size
|
|
2113
|
+
if not DaraCore.is_null(request.start_time):
|
|
2114
|
+
query['StartTime'] = request.start_time
|
|
2115
|
+
req = open_api_util_models.OpenApiRequest(
|
|
2116
|
+
query = Utils.query(query)
|
|
2117
|
+
)
|
|
2118
|
+
params = open_api_util_models.Params(
|
|
2119
|
+
action = 'GetStandAloneReports',
|
|
2120
|
+
version = '2025-05-07',
|
|
2121
|
+
protocol = 'HTTPS',
|
|
2122
|
+
pathname = '/',
|
|
2123
|
+
method = 'POST',
|
|
2124
|
+
auth_type = 'AK',
|
|
2125
|
+
style = 'RPC',
|
|
2126
|
+
req_body_type = 'formData',
|
|
2127
|
+
body_type = 'json'
|
|
2128
|
+
)
|
|
2129
|
+
return DaraCore.from_map(
|
|
2130
|
+
main_models.GetStandAloneReportsResponse(),
|
|
2131
|
+
self.call_api(params, req, runtime)
|
|
2132
|
+
)
|
|
2133
|
+
|
|
2134
|
+
async def get_stand_alone_reports_with_options_async(
|
|
2135
|
+
self,
|
|
2136
|
+
request: main_models.GetStandAloneReportsRequest,
|
|
2137
|
+
runtime: RuntimeOptions,
|
|
2138
|
+
) -> main_models.GetStandAloneReportsResponse:
|
|
2139
|
+
request.validate()
|
|
2140
|
+
query = {}
|
|
2141
|
+
if not DaraCore.is_null(request.end_time):
|
|
2142
|
+
query['EndTime'] = request.end_time
|
|
2143
|
+
if not DaraCore.is_null(request.page_number):
|
|
2144
|
+
query['PageNumber'] = request.page_number
|
|
2145
|
+
if not DaraCore.is_null(request.page_size):
|
|
2146
|
+
query['PageSize'] = request.page_size
|
|
2147
|
+
if not DaraCore.is_null(request.start_time):
|
|
2148
|
+
query['StartTime'] = request.start_time
|
|
2149
|
+
req = open_api_util_models.OpenApiRequest(
|
|
2150
|
+
query = Utils.query(query)
|
|
2151
|
+
)
|
|
2152
|
+
params = open_api_util_models.Params(
|
|
2153
|
+
action = 'GetStandAloneReports',
|
|
2154
|
+
version = '2025-05-07',
|
|
2155
|
+
protocol = 'HTTPS',
|
|
2156
|
+
pathname = '/',
|
|
2157
|
+
method = 'POST',
|
|
2158
|
+
auth_type = 'AK',
|
|
2159
|
+
style = 'RPC',
|
|
2160
|
+
req_body_type = 'formData',
|
|
2161
|
+
body_type = 'json'
|
|
2162
|
+
)
|
|
2163
|
+
return DaraCore.from_map(
|
|
2164
|
+
main_models.GetStandAloneReportsResponse(),
|
|
2165
|
+
await self.call_api_async(params, req, runtime)
|
|
2166
|
+
)
|
|
2167
|
+
|
|
2168
|
+
def get_stand_alone_reports(
|
|
2169
|
+
self,
|
|
2170
|
+
request: main_models.GetStandAloneReportsRequest,
|
|
2171
|
+
) -> main_models.GetStandAloneReportsResponse:
|
|
2172
|
+
runtime = RuntimeOptions()
|
|
2173
|
+
return self.get_stand_alone_reports_with_options(request, runtime)
|
|
2174
|
+
|
|
2175
|
+
async def get_stand_alone_reports_async(
|
|
2176
|
+
self,
|
|
2177
|
+
request: main_models.GetStandAloneReportsRequest,
|
|
2178
|
+
) -> main_models.GetStandAloneReportsResponse:
|
|
2179
|
+
runtime = RuntimeOptions()
|
|
2180
|
+
return await self.get_stand_alone_reports_with_options_async(request, runtime)
|
|
2181
|
+
|
|
1612
2182
|
def list_custom_agent_with_options(
|
|
1613
2183
|
self,
|
|
1614
2184
|
request: main_models.ListCustomAgentRequest,
|
|
@@ -1733,6 +2303,84 @@ class Client(OpenApiClient):
|
|
|
1733
2303
|
runtime = RuntimeOptions()
|
|
1734
2304
|
return await self.list_custom_agent_tools_with_options_async(runtime)
|
|
1735
2305
|
|
|
2306
|
+
def list_scheduled_tasks_with_options(
|
|
2307
|
+
self,
|
|
2308
|
+
request: main_models.ListScheduledTasksRequest,
|
|
2309
|
+
runtime: RuntimeOptions,
|
|
2310
|
+
) -> main_models.ListScheduledTasksResponse:
|
|
2311
|
+
request.validate()
|
|
2312
|
+
query = {}
|
|
2313
|
+
if not DaraCore.is_null(request.page_number):
|
|
2314
|
+
query['PageNumber'] = request.page_number
|
|
2315
|
+
if not DaraCore.is_null(request.page_size):
|
|
2316
|
+
query['PageSize'] = request.page_size
|
|
2317
|
+
if not DaraCore.is_null(request.scheduled_id):
|
|
2318
|
+
query['ScheduledId'] = request.scheduled_id
|
|
2319
|
+
req = open_api_util_models.OpenApiRequest(
|
|
2320
|
+
query = Utils.query(query)
|
|
2321
|
+
)
|
|
2322
|
+
params = open_api_util_models.Params(
|
|
2323
|
+
action = 'ListScheduledTasks',
|
|
2324
|
+
version = '2025-05-07',
|
|
2325
|
+
protocol = 'HTTPS',
|
|
2326
|
+
pathname = '/',
|
|
2327
|
+
method = 'POST',
|
|
2328
|
+
auth_type = 'AK',
|
|
2329
|
+
style = 'RPC',
|
|
2330
|
+
req_body_type = 'formData',
|
|
2331
|
+
body_type = 'json'
|
|
2332
|
+
)
|
|
2333
|
+
return DaraCore.from_map(
|
|
2334
|
+
main_models.ListScheduledTasksResponse(),
|
|
2335
|
+
self.call_api(params, req, runtime)
|
|
2336
|
+
)
|
|
2337
|
+
|
|
2338
|
+
async def list_scheduled_tasks_with_options_async(
|
|
2339
|
+
self,
|
|
2340
|
+
request: main_models.ListScheduledTasksRequest,
|
|
2341
|
+
runtime: RuntimeOptions,
|
|
2342
|
+
) -> main_models.ListScheduledTasksResponse:
|
|
2343
|
+
request.validate()
|
|
2344
|
+
query = {}
|
|
2345
|
+
if not DaraCore.is_null(request.page_number):
|
|
2346
|
+
query['PageNumber'] = request.page_number
|
|
2347
|
+
if not DaraCore.is_null(request.page_size):
|
|
2348
|
+
query['PageSize'] = request.page_size
|
|
2349
|
+
if not DaraCore.is_null(request.scheduled_id):
|
|
2350
|
+
query['ScheduledId'] = request.scheduled_id
|
|
2351
|
+
req = open_api_util_models.OpenApiRequest(
|
|
2352
|
+
query = Utils.query(query)
|
|
2353
|
+
)
|
|
2354
|
+
params = open_api_util_models.Params(
|
|
2355
|
+
action = 'ListScheduledTasks',
|
|
2356
|
+
version = '2025-05-07',
|
|
2357
|
+
protocol = 'HTTPS',
|
|
2358
|
+
pathname = '/',
|
|
2359
|
+
method = 'POST',
|
|
2360
|
+
auth_type = 'AK',
|
|
2361
|
+
style = 'RPC',
|
|
2362
|
+
req_body_type = 'formData',
|
|
2363
|
+
body_type = 'json'
|
|
2364
|
+
)
|
|
2365
|
+
return DaraCore.from_map(
|
|
2366
|
+
main_models.ListScheduledTasksResponse(),
|
|
2367
|
+
await self.call_api_async(params, req, runtime)
|
|
2368
|
+
)
|
|
2369
|
+
|
|
2370
|
+
def list_scheduled_tasks(
|
|
2371
|
+
self,
|
|
2372
|
+
request: main_models.ListScheduledTasksRequest,
|
|
2373
|
+
) -> main_models.ListScheduledTasksResponse:
|
|
2374
|
+
runtime = RuntimeOptions()
|
|
2375
|
+
return self.list_scheduled_tasks_with_options(request, runtime)
|
|
2376
|
+
|
|
2377
|
+
async def list_scheduled_tasks_async(
|
|
2378
|
+
self,
|
|
2379
|
+
request: main_models.ListScheduledTasksRequest,
|
|
2380
|
+
) -> main_models.ListScheduledTasksResponse:
|
|
2381
|
+
runtime = RuntimeOptions()
|
|
2382
|
+
return await self.list_scheduled_tasks_with_options_async(request, runtime)
|
|
2383
|
+
|
|
1736
2384
|
def modify_instance_auth_config_with_options(
|
|
1737
2385
|
self,
|
|
1738
2386
|
tmp_req: main_models.ModifyInstanceAuthConfigRequest,
|
|
@@ -2445,6 +3093,100 @@ class Client(OpenApiClient):
|
|
|
2445
3093
|
runtime = RuntimeOptions()
|
|
2446
3094
|
return await self.modify_messages_feedbacks_with_options_async(request, runtime)
|
|
2447
3095
|
|
|
3096
|
+
def modify_scheduled_task_with_options(
|
|
3097
|
+
self,
|
|
3098
|
+
request: main_models.ModifyScheduledTaskRequest,
|
|
3099
|
+
runtime: RuntimeOptions,
|
|
3100
|
+
) -> main_models.ModifyScheduledTaskResponse:
|
|
3101
|
+
request.validate()
|
|
3102
|
+
query = {}
|
|
3103
|
+
if not DaraCore.is_null(request.description):
|
|
3104
|
+
query['Description'] = request.description
|
|
3105
|
+
if not DaraCore.is_null(request.frequency):
|
|
3106
|
+
query['Frequency'] = request.frequency
|
|
3107
|
+
if not DaraCore.is_null(request.instance_ids):
|
|
3108
|
+
query['InstanceIds'] = request.instance_ids
|
|
3109
|
+
if not DaraCore.is_null(request.name):
|
|
3110
|
+
query['Name'] = request.name
|
|
3111
|
+
if not DaraCore.is_null(request.scheduled_id):
|
|
3112
|
+
query['ScheduledId'] = request.scheduled_id
|
|
3113
|
+
if not DaraCore.is_null(request.start_time):
|
|
3114
|
+
query['StartTime'] = request.start_time
|
|
3115
|
+
if not DaraCore.is_null(request.time_range):
|
|
3116
|
+
query['TimeRange'] = request.time_range
|
|
3117
|
+
req = open_api_util_models.OpenApiRequest(
|
|
3118
|
+
query = Utils.query(query)
|
|
3119
|
+
)
|
|
3120
|
+
params = open_api_util_models.Params(
|
|
3121
|
+
action = 'ModifyScheduledTask',
|
|
3122
|
+
version = '2025-05-07',
|
|
3123
|
+
protocol = 'HTTPS',
|
|
3124
|
+
pathname = '/',
|
|
3125
|
+
method = 'POST',
|
|
3126
|
+
auth_type = 'AK',
|
|
3127
|
+
style = 'RPC',
|
|
3128
|
+
req_body_type = 'formData',
|
|
3129
|
+
body_type = 'json'
|
|
3130
|
+
)
|
|
3131
|
+
return DaraCore.from_map(
|
|
3132
|
+
main_models.ModifyScheduledTaskResponse(),
|
|
3133
|
+
self.call_api(params, req, runtime)
|
|
3134
|
+
)
|
|
3135
|
+
|
|
3136
|
+
async def modify_scheduled_task_with_options_async(
|
|
3137
|
+
self,
|
|
3138
|
+
request: main_models.ModifyScheduledTaskRequest,
|
|
3139
|
+
runtime: RuntimeOptions,
|
|
3140
|
+
) -> main_models.ModifyScheduledTaskResponse:
|
|
3141
|
+
request.validate()
|
|
3142
|
+
query = {}
|
|
3143
|
+
if not DaraCore.is_null(request.description):
|
|
3144
|
+
query['Description'] = request.description
|
|
3145
|
+
if not DaraCore.is_null(request.frequency):
|
|
3146
|
+
query['Frequency'] = request.frequency
|
|
3147
|
+
if not DaraCore.is_null(request.instance_ids):
|
|
3148
|
+
query['InstanceIds'] = request.instance_ids
|
|
3149
|
+
if not DaraCore.is_null(request.name):
|
|
3150
|
+
query['Name'] = request.name
|
|
3151
|
+
if not DaraCore.is_null(request.scheduled_id):
|
|
3152
|
+
query['ScheduledId'] = request.scheduled_id
|
|
3153
|
+
if not DaraCore.is_null(request.start_time):
|
|
3154
|
+
query['StartTime'] = request.start_time
|
|
3155
|
+
if not DaraCore.is_null(request.time_range):
|
|
3156
|
+
query['TimeRange'] = request.time_range
|
|
3157
|
+
req = open_api_util_models.OpenApiRequest(
|
|
3158
|
+
query = Utils.query(query)
|
|
3159
|
+
)
|
|
3160
|
+
params = open_api_util_models.Params(
|
|
3161
|
+
action = 'ModifyScheduledTask',
|
|
3162
|
+
version = '2025-05-07',
|
|
3163
|
+
protocol = 'HTTPS',
|
|
3164
|
+
pathname = '/',
|
|
3165
|
+
method = 'POST',
|
|
3166
|
+
auth_type = 'AK',
|
|
3167
|
+
style = 'RPC',
|
|
3168
|
+
req_body_type = 'formData',
|
|
3169
|
+
body_type = 'json'
|
|
3170
|
+
)
|
|
3171
|
+
return DaraCore.from_map(
|
|
3172
|
+
main_models.ModifyScheduledTaskResponse(),
|
|
3173
|
+
await self.call_api_async(params, req, runtime)
|
|
3174
|
+
)
|
|
3175
|
+
|
|
3176
|
+
def modify_scheduled_task(
|
|
3177
|
+
self,
|
|
3178
|
+
request: main_models.ModifyScheduledTaskRequest,
|
|
3179
|
+
) -> main_models.ModifyScheduledTaskResponse:
|
|
3180
|
+
runtime = RuntimeOptions()
|
|
3181
|
+
return self.modify_scheduled_task_with_options(request, runtime)
|
|
3182
|
+
|
|
3183
|
+
async def modify_scheduled_task_async(
|
|
3184
|
+
self,
|
|
3185
|
+
request: main_models.ModifyScheduledTaskRequest,
|
|
3186
|
+
) -> main_models.ModifyScheduledTaskResponse:
|
|
3187
|
+
runtime = RuntimeOptions()
|
|
3188
|
+
return await self.modify_scheduled_task_with_options_async(request, runtime)
|
|
3189
|
+
|
|
2448
3190
|
def reset_instance_password_with_options(
|
|
2449
3191
|
self,
|
|
2450
3192
|
request: main_models.ResetInstancePasswordRequest,
|
|
@@ -2757,6 +3499,8 @@ class Client(OpenApiClient):
|
|
|
2757
3499
|
tmp_req.validate()
|
|
2758
3500
|
request = main_models.UpdateCustomAgentShrinkRequest()
|
|
2759
3501
|
Utils.convert(tmp_req, request)
|
|
3502
|
+
if not DaraCore.is_null(tmp_req.skill_ids):
|
|
3503
|
+
request.skill_ids_shrink = Utils.array_to_string_with_specified_style(tmp_req.skill_ids, 'SkillIds', 'json')
|
|
2760
3504
|
if not DaraCore.is_null(tmp_req.tools):
|
|
2761
3505
|
request.tools_shrink = Utils.array_to_string_with_specified_style(tmp_req.tools, 'Tools', 'json')
|
|
2762
3506
|
query = {}
|
|
@@ -2766,6 +3510,8 @@ class Client(OpenApiClient):
|
|
|
2766
3510
|
query['EnableTools'] = request.enable_tools
|
|
2767
3511
|
if not DaraCore.is_null(request.name):
|
|
2768
3512
|
query['Name'] = request.name
|
|
3513
|
+
if not DaraCore.is_null(request.skill_ids_shrink):
|
|
3514
|
+
query['SkillIds'] = request.skill_ids_shrink
|
|
2769
3515
|
if not DaraCore.is_null(request.system_prompt):
|
|
2770
3516
|
query['SystemPrompt'] = request.system_prompt
|
|
2771
3517
|
if not DaraCore.is_null(request.tools_shrink):
|
|
@@ -2797,6 +3543,8 @@ class Client(OpenApiClient):
|
|
|
2797
3543
|
tmp_req.validate()
|
|
2798
3544
|
request = main_models.UpdateCustomAgentShrinkRequest()
|
|
2799
3545
|
Utils.convert(tmp_req, request)
|
|
3546
|
+
if not DaraCore.is_null(tmp_req.skill_ids):
|
|
3547
|
+
request.skill_ids_shrink = Utils.array_to_string_with_specified_style(tmp_req.skill_ids, 'SkillIds', 'json')
|
|
2800
3548
|
if not DaraCore.is_null(tmp_req.tools):
|
|
2801
3549
|
request.tools_shrink = Utils.array_to_string_with_specified_style(tmp_req.tools, 'Tools', 'json')
|
|
2802
3550
|
query = {}
|
|
@@ -2806,6 +3554,8 @@ class Client(OpenApiClient):
|
|
|
2806
3554
|
query['EnableTools'] = request.enable_tools
|
|
2807
3555
|
if not DaraCore.is_null(request.name):
|
|
2808
3556
|
query['Name'] = request.name
|
|
3557
|
+
if not DaraCore.is_null(request.skill_ids_shrink):
|
|
3558
|
+
query['SkillIds'] = request.skill_ids_shrink
|
|
2809
3559
|
if not DaraCore.is_null(request.system_prompt):
|
|
2810
3560
|
query['SystemPrompt'] = request.system_prompt
|
|
2811
3561
|
if not DaraCore.is_null(request.tools_shrink):
|