huaweicloudsdkcodeartsbuild 3.1.148__py2.py3-none-any.whl → 3.1.150__py2.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.
- huaweicloudsdkcodeartsbuild/v3/__init__.py +77 -2
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1619 -123
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1619 -123
- huaweicloudsdkcodeartsbuild/v3/model/__init__.py +77 -2
- huaweicloudsdkcodeartsbuild/v3/model/build_info_record.py +604 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_info_record_commit_info.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_params.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_params_body_result.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_record.py +981 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_record_build_record_type.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_record_parameters.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_stage_record.py +608 -0
- huaweicloudsdkcodeartsbuild/v3/model/constraints.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/download_real_time_log_request.py +199 -0
- huaweicloudsdkcodeartsbuild/v3/model/download_real_time_log_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/{flow_graph_result.py → flow_graph2_result.py} +15 -15
- huaweicloudsdkcodeartsbuild/v3/model/{flow_graph_result_edges.py → flow_graph2_result_edges.py} +11 -11
- huaweicloudsdkcodeartsbuild/v3/model/full_stages_result.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_body_result.py +231 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_request.py +228 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_request.py +228 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_official_template_request.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_official_template_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_official_template_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_request.py +373 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_request.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_response.py +228 -0
- huaweicloudsdkcodeartsbuild/v3/model/parameter.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/params.py +289 -0
- huaweicloudsdkcodeartsbuild/v3/model/real_time_log_response_body_result.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/recycling_job.py +347 -0
- huaweicloudsdkcodeartsbuild/v3/model/recycling_jobs_result.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_full_stages_request.py +143 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_full_stages_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_flow_graph_response.py +4 -4
- huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result_image_templates.py +318 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_request.py +199 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_response.py +141 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_result.py +260 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_result_every_day_report.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_request.py +199 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_response.py +141 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result.py +231 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result_chart.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_request.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_config_request.py +143 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_config_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_info_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_info_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_info_result.py +724 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_result.py +492 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_report_summary.py +463 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_report_summary_body_result.py +140 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_report_summary_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_report_summary_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_running_status_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_running_status_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_running_status_result.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_user_project_permission_result.py +260 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_yaml_template_request.py +143 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_yaml_template_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/system_parameters_result.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/template_list.py +459 -0
- huaweicloudsdkcodeartsbuild/v3/region/codeartsbuild_region.py +6 -0
- {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/METADATA +2 -2
- {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/RECORD +88 -13
- {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/top_level.txt +0 -0
@@ -559,6 +559,77 @@ class CodeArtsBuildAsyncClient(Client):
|
|
559
559
|
|
560
560
|
return http_info
|
561
561
|
|
562
|
+
def download_real_time_log_async(self, request):
|
563
|
+
r"""下载构建实时日志
|
564
|
+
|
565
|
+
下载构建实时日志
|
566
|
+
|
567
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
568
|
+
|
569
|
+
|
570
|
+
:param request: Request instance for DownloadRealTimeLog
|
571
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadRealTimeLogRequest`
|
572
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadRealTimeLogResponse`
|
573
|
+
"""
|
574
|
+
http_info = self._download_real_time_log_http_info(request)
|
575
|
+
return self._call_api(**http_info)
|
576
|
+
|
577
|
+
def download_real_time_log_async_invoker(self, request):
|
578
|
+
http_info = self._download_real_time_log_http_info(request)
|
579
|
+
return AsyncInvoker(self, http_info)
|
580
|
+
|
581
|
+
def _download_real_time_log_http_info(self, request):
|
582
|
+
http_info = {
|
583
|
+
"method": "GET",
|
584
|
+
"resource_path": "/v3/jobs/{job_id}/{build_no}/real-time-log",
|
585
|
+
"request_type": request.__class__.__name__,
|
586
|
+
"response_type": "DownloadRealTimeLogResponse"
|
587
|
+
}
|
588
|
+
|
589
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
590
|
+
|
591
|
+
cname = None
|
592
|
+
|
593
|
+
collection_formats = {}
|
594
|
+
|
595
|
+
path_params = {}
|
596
|
+
if 'job_id' in local_var_params:
|
597
|
+
path_params['job_id'] = local_var_params['job_id']
|
598
|
+
if 'build_no' in local_var_params:
|
599
|
+
path_params['build_no'] = local_var_params['build_no']
|
600
|
+
|
601
|
+
query_params = []
|
602
|
+
if 'offset' in local_var_params:
|
603
|
+
query_params.append(('offset', local_var_params['offset']))
|
604
|
+
if 'length' in local_var_params:
|
605
|
+
query_params.append(('length', local_var_params['length']))
|
606
|
+
|
607
|
+
header_params = {}
|
608
|
+
|
609
|
+
form_params = {}
|
610
|
+
|
611
|
+
body = None
|
612
|
+
if isinstance(request, SdkStreamRequest):
|
613
|
+
body = request.get_file_stream()
|
614
|
+
|
615
|
+
response_headers = []
|
616
|
+
|
617
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
618
|
+
['application/json'])
|
619
|
+
|
620
|
+
auth_settings = ['apig-auth-iam']
|
621
|
+
|
622
|
+
http_info["cname"] = cname
|
623
|
+
http_info["collection_formats"] = collection_formats
|
624
|
+
http_info["path_params"] = path_params
|
625
|
+
http_info["query_params"] = query_params
|
626
|
+
http_info["header_params"] = header_params
|
627
|
+
http_info["post_params"] = form_params
|
628
|
+
http_info["body"] = body
|
629
|
+
http_info["response_headers"] = response_headers
|
630
|
+
|
631
|
+
return http_info
|
632
|
+
|
562
633
|
def download_task_log_async(self, request):
|
563
634
|
r"""下载构建步骤日志
|
564
635
|
|
@@ -693,31 +764,31 @@ class CodeArtsBuildAsyncClient(Client):
|
|
693
764
|
|
694
765
|
return http_info
|
695
766
|
|
696
|
-
def
|
697
|
-
r"""
|
767
|
+
def list_build_info_record_async(self, request):
|
768
|
+
r"""获取任务构建记录列表
|
698
769
|
|
699
|
-
|
770
|
+
获取任务构建记录列表
|
700
771
|
|
701
772
|
Please refer to HUAWEI cloud API Explorer for details.
|
702
773
|
|
703
774
|
|
704
|
-
:param request: Request instance for
|
705
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
706
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
775
|
+
:param request: Request instance for ListBuildInfoRecord
|
776
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListBuildInfoRecordRequest`
|
777
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListBuildInfoRecordResponse`
|
707
778
|
"""
|
708
|
-
http_info = self.
|
779
|
+
http_info = self._list_build_info_record_http_info(request)
|
709
780
|
return self._call_api(**http_info)
|
710
781
|
|
711
|
-
def
|
712
|
-
http_info = self.
|
782
|
+
def list_build_info_record_async_invoker(self, request):
|
783
|
+
http_info = self._list_build_info_record_http_info(request)
|
713
784
|
return AsyncInvoker(self, http_info)
|
714
785
|
|
715
|
-
def
|
786
|
+
def _list_build_info_record_http_info(self, request):
|
716
787
|
http_info = {
|
717
788
|
"method": "GET",
|
718
|
-
"resource_path": "/v3/jobs/{job_id}/
|
789
|
+
"resource_path": "/v3/jobs/{job_id}/build-info-records",
|
719
790
|
"request_type": request.__class__.__name__,
|
720
|
-
"response_type": "
|
791
|
+
"response_type": "ListBuildInfoRecordResponse"
|
721
792
|
}
|
722
793
|
|
723
794
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -731,8 +802,14 @@ class CodeArtsBuildAsyncClient(Client):
|
|
731
802
|
path_params['job_id'] = local_var_params['job_id']
|
732
803
|
|
733
804
|
query_params = []
|
734
|
-
if '
|
735
|
-
query_params.append(('
|
805
|
+
if 'start_time' in local_var_params:
|
806
|
+
query_params.append(('start_time', local_var_params['start_time']))
|
807
|
+
if 'end_time' in local_var_params:
|
808
|
+
query_params.append(('end_time', local_var_params['end_time']))
|
809
|
+
if 'page_index' in local_var_params:
|
810
|
+
query_params.append(('page_index', local_var_params['page_index']))
|
811
|
+
if 'page_size' in local_var_params:
|
812
|
+
query_params.append(('page_size', local_var_params['page_size']))
|
736
813
|
|
737
814
|
header_params = {}
|
738
815
|
|
@@ -760,31 +837,31 @@ class CodeArtsBuildAsyncClient(Client):
|
|
760
837
|
|
761
838
|
return http_info
|
762
839
|
|
763
|
-
def
|
764
|
-
r"""
|
840
|
+
def list_build_info_record_by_job_id_async(self, request):
|
841
|
+
r"""获取任务构建记录列表v1
|
765
842
|
|
766
|
-
|
843
|
+
获取任务构建记录列表v1
|
767
844
|
|
768
845
|
Please refer to HUAWEI cloud API Explorer for details.
|
769
846
|
|
770
847
|
|
771
|
-
:param request: Request instance for
|
772
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
773
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
848
|
+
:param request: Request instance for ListBuildInfoRecordByJobId
|
849
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListBuildInfoRecordByJobIdRequest`
|
850
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListBuildInfoRecordByJobIdResponse`
|
774
851
|
"""
|
775
|
-
http_info = self.
|
852
|
+
http_info = self._list_build_info_record_by_job_id_http_info(request)
|
776
853
|
return self._call_api(**http_info)
|
777
854
|
|
778
|
-
def
|
779
|
-
http_info = self.
|
855
|
+
def list_build_info_record_by_job_id_async_invoker(self, request):
|
856
|
+
http_info = self._list_build_info_record_by_job_id_http_info(request)
|
780
857
|
return AsyncInvoker(self, http_info)
|
781
858
|
|
782
|
-
def
|
859
|
+
def _list_build_info_record_by_job_id_http_info(self, request):
|
783
860
|
http_info = {
|
784
861
|
"method": "GET",
|
785
|
-
"resource_path": "/
|
862
|
+
"resource_path": "/v1/record/{job_id}/list",
|
786
863
|
"request_type": request.__class__.__name__,
|
787
|
-
"response_type": "
|
864
|
+
"response_type": "ListBuildInfoRecordByJobIdResponse"
|
788
865
|
}
|
789
866
|
|
790
867
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -798,6 +875,14 @@ class CodeArtsBuildAsyncClient(Client):
|
|
798
875
|
path_params['job_id'] = local_var_params['job_id']
|
799
876
|
|
800
877
|
query_params = []
|
878
|
+
if 'start_time' in local_var_params:
|
879
|
+
query_params.append(('start_time', local_var_params['start_time']))
|
880
|
+
if 'end_time' in local_var_params:
|
881
|
+
query_params.append(('end_time', local_var_params['end_time']))
|
882
|
+
if 'page_index' in local_var_params:
|
883
|
+
query_params.append(('page_index', local_var_params['page_index']))
|
884
|
+
if 'page_size' in local_var_params:
|
885
|
+
query_params.append(('page_size', local_var_params['page_size']))
|
801
886
|
|
802
887
|
header_params = {}
|
803
888
|
|
@@ -825,31 +910,31 @@ class CodeArtsBuildAsyncClient(Client):
|
|
825
910
|
|
826
911
|
return http_info
|
827
912
|
|
828
|
-
def
|
829
|
-
r"""
|
913
|
+
def list_job_config_async(self, request):
|
914
|
+
r"""获取构建任务详情
|
830
915
|
|
831
|
-
|
916
|
+
获取构建任务详情
|
832
917
|
|
833
918
|
Please refer to HUAWEI cloud API Explorer for details.
|
834
919
|
|
835
920
|
|
836
|
-
:param request: Request instance for
|
837
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
838
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
921
|
+
:param request: Request instance for ListJobConfig
|
922
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListJobConfigRequest`
|
923
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListJobConfigResponse`
|
839
924
|
"""
|
840
|
-
http_info = self.
|
925
|
+
http_info = self._list_job_config_http_info(request)
|
841
926
|
return self._call_api(**http_info)
|
842
927
|
|
843
|
-
def
|
844
|
-
http_info = self.
|
928
|
+
def list_job_config_async_invoker(self, request):
|
929
|
+
http_info = self._list_job_config_http_info(request)
|
845
930
|
return AsyncInvoker(self, http_info)
|
846
931
|
|
847
|
-
def
|
932
|
+
def _list_job_config_http_info(self, request):
|
848
933
|
http_info = {
|
849
934
|
"method": "GET",
|
850
|
-
"resource_path": "/v3/
|
935
|
+
"resource_path": "/v3/jobs/{job_id}/query",
|
851
936
|
"request_type": request.__class__.__name__,
|
852
|
-
"response_type": "
|
937
|
+
"response_type": "ListJobConfigResponse"
|
853
938
|
}
|
854
939
|
|
855
940
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -859,14 +944,12 @@ class CodeArtsBuildAsyncClient(Client):
|
|
859
944
|
collection_formats = {}
|
860
945
|
|
861
946
|
path_params = {}
|
947
|
+
if 'job_id' in local_var_params:
|
948
|
+
path_params['job_id'] = local_var_params['job_id']
|
862
949
|
|
863
950
|
query_params = []
|
864
|
-
if '
|
865
|
-
query_params.append(('
|
866
|
-
if 'page' in local_var_params:
|
867
|
-
query_params.append(('page', local_var_params['page']))
|
868
|
-
if 'page_size' in local_var_params:
|
869
|
-
query_params.append(('page_size', local_var_params['page_size']))
|
951
|
+
if 'get_all_params' in local_var_params:
|
952
|
+
query_params.append(('get_all_params', local_var_params['get_all_params']))
|
870
953
|
|
871
954
|
header_params = {}
|
872
955
|
|
@@ -894,31 +977,31 @@ class CodeArtsBuildAsyncClient(Client):
|
|
894
977
|
|
895
978
|
return http_info
|
896
979
|
|
897
|
-
def
|
898
|
-
r"""
|
980
|
+
def list_notice_async(self, request):
|
981
|
+
r"""查询通知
|
899
982
|
|
900
|
-
|
983
|
+
查询通知
|
901
984
|
|
902
985
|
Please refer to HUAWEI cloud API Explorer for details.
|
903
986
|
|
904
987
|
|
905
|
-
:param request: Request instance for
|
906
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
907
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
988
|
+
:param request: Request instance for ListNotice
|
989
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListNoticeRequest`
|
990
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListNoticeResponse`
|
908
991
|
"""
|
909
|
-
http_info = self.
|
992
|
+
http_info = self._list_notice_http_info(request)
|
910
993
|
return self._call_api(**http_info)
|
911
994
|
|
912
|
-
def
|
913
|
-
http_info = self.
|
995
|
+
def list_notice_async_invoker(self, request):
|
996
|
+
http_info = self._list_notice_http_info(request)
|
914
997
|
return AsyncInvoker(self, http_info)
|
915
998
|
|
916
|
-
def
|
999
|
+
def _list_notice_http_info(self, request):
|
917
1000
|
http_info = {
|
918
|
-
"method": "
|
919
|
-
"resource_path": "/v3/jobs/
|
1001
|
+
"method": "GET",
|
1002
|
+
"resource_path": "/v3/jobs/notice/{job_id}/query",
|
920
1003
|
"request_type": request.__class__.__name__,
|
921
|
-
"response_type": "
|
1004
|
+
"response_type": "ListNoticeResponse"
|
922
1005
|
}
|
923
1006
|
|
924
1007
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -928,6 +1011,8 @@ class CodeArtsBuildAsyncClient(Client):
|
|
928
1011
|
collection_formats = {}
|
929
1012
|
|
930
1013
|
path_params = {}
|
1014
|
+
if 'job_id' in local_var_params:
|
1015
|
+
path_params['job_id'] = local_var_params['job_id']
|
931
1016
|
|
932
1017
|
query_params = []
|
933
1018
|
|
@@ -936,8 +1021,6 @@ class CodeArtsBuildAsyncClient(Client):
|
|
936
1021
|
form_params = {}
|
937
1022
|
|
938
1023
|
body = None
|
939
|
-
if 'body' in local_var_params:
|
940
|
-
body = local_var_params['body']
|
941
1024
|
if isinstance(request, SdkStreamRequest):
|
942
1025
|
body = request.get_file_stream()
|
943
1026
|
|
@@ -959,31 +1042,31 @@ class CodeArtsBuildAsyncClient(Client):
|
|
959
1042
|
|
960
1043
|
return http_info
|
961
1044
|
|
962
|
-
def
|
963
|
-
r"""
|
1045
|
+
def list_official_template_async(self, request):
|
1046
|
+
r"""查询官方模版
|
964
1047
|
|
965
|
-
|
1048
|
+
查询官方模版
|
966
1049
|
|
967
1050
|
Please refer to HUAWEI cloud API Explorer for details.
|
968
1051
|
|
969
1052
|
|
970
|
-
:param request: Request instance for
|
971
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
972
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1053
|
+
:param request: Request instance for ListOfficialTemplate
|
1054
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListOfficialTemplateRequest`
|
1055
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListOfficialTemplateResponse`
|
973
1056
|
"""
|
974
|
-
http_info = self.
|
1057
|
+
http_info = self._list_official_template_http_info(request)
|
975
1058
|
return self._call_api(**http_info)
|
976
1059
|
|
977
|
-
def
|
978
|
-
http_info = self.
|
1060
|
+
def list_official_template_async_invoker(self, request):
|
1061
|
+
http_info = self._list_official_template_http_info(request)
|
979
1062
|
return AsyncInvoker(self, http_info)
|
980
1063
|
|
981
|
-
def
|
1064
|
+
def _list_official_template_http_info(self, request):
|
982
1065
|
http_info = {
|
983
1066
|
"method": "GET",
|
984
|
-
"resource_path": "/
|
1067
|
+
"resource_path": "/v1/template/officialtemplates",
|
985
1068
|
"request_type": request.__class__.__name__,
|
986
|
-
"response_type": "
|
1069
|
+
"response_type": "ListOfficialTemplateResponse"
|
987
1070
|
}
|
988
1071
|
|
989
1072
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -993,12 +1076,14 @@ class CodeArtsBuildAsyncClient(Client):
|
|
993
1076
|
collection_formats = {}
|
994
1077
|
|
995
1078
|
path_params = {}
|
996
|
-
if 'job_id' in local_var_params:
|
997
|
-
path_params['job_id'] = local_var_params['job_id']
|
998
|
-
if 'build_number' in local_var_params:
|
999
|
-
path_params['build_number'] = local_var_params['build_number']
|
1000
1079
|
|
1001
1080
|
query_params = []
|
1081
|
+
if 'name' in local_var_params:
|
1082
|
+
query_params.append(('name', local_var_params['name']))
|
1083
|
+
if 'page' in local_var_params:
|
1084
|
+
query_params.append(('page', local_var_params['page']))
|
1085
|
+
if 'page_size' in local_var_params:
|
1086
|
+
query_params.append(('page_size', local_var_params['page_size']))
|
1002
1087
|
|
1003
1088
|
header_params = {}
|
1004
1089
|
|
@@ -1026,31 +1111,31 @@ class CodeArtsBuildAsyncClient(Client):
|
|
1026
1111
|
|
1027
1112
|
return http_info
|
1028
1113
|
|
1029
|
-
def
|
1030
|
-
r"""
|
1114
|
+
def list_project_jobs_async(self, request):
|
1115
|
+
r"""查询项目任务列表
|
1031
1116
|
|
1032
|
-
|
1117
|
+
查询项目任务列表
|
1033
1118
|
|
1034
1119
|
Please refer to HUAWEI cloud API Explorer for details.
|
1035
1120
|
|
1036
1121
|
|
1037
|
-
:param request: Request instance for
|
1038
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1039
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1122
|
+
:param request: Request instance for ListProjectJobs
|
1123
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListProjectJobsRequest`
|
1124
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListProjectJobsResponse`
|
1040
1125
|
"""
|
1041
|
-
http_info = self.
|
1126
|
+
http_info = self._list_project_jobs_http_info(request)
|
1042
1127
|
return self._call_api(**http_info)
|
1043
1128
|
|
1044
|
-
def
|
1045
|
-
http_info = self.
|
1129
|
+
def list_project_jobs_async_invoker(self, request):
|
1130
|
+
http_info = self._list_project_jobs_http_info(request)
|
1046
1131
|
return AsyncInvoker(self, http_info)
|
1047
1132
|
|
1048
|
-
def
|
1133
|
+
def _list_project_jobs_http_info(self, request):
|
1049
1134
|
http_info = {
|
1050
1135
|
"method": "GET",
|
1051
|
-
"resource_path": "/
|
1136
|
+
"resource_path": "/v1/job/{project_id}/list",
|
1052
1137
|
"request_type": request.__class__.__name__,
|
1053
|
-
"response_type": "
|
1138
|
+
"response_type": "ListProjectJobsResponse"
|
1054
1139
|
}
|
1055
1140
|
|
1056
1141
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -1068,6 +1153,20 @@ class CodeArtsBuildAsyncClient(Client):
|
|
1068
1153
|
query_params.append(('page_index', local_var_params['page_index']))
|
1069
1154
|
if 'page_size' in local_var_params:
|
1070
1155
|
query_params.append(('page_size', local_var_params['page_size']))
|
1156
|
+
if 'search' in local_var_params:
|
1157
|
+
query_params.append(('search', local_var_params['search']))
|
1158
|
+
if 'sort_field' in local_var_params:
|
1159
|
+
query_params.append(('sort_field', local_var_params['sort_field']))
|
1160
|
+
if 'sort_order' in local_var_params:
|
1161
|
+
query_params.append(('sort_order', local_var_params['sort_order']))
|
1162
|
+
if 'creator_id' in local_var_params:
|
1163
|
+
query_params.append(('creator_id', local_var_params['creator_id']))
|
1164
|
+
if 'build_status' in local_var_params:
|
1165
|
+
query_params.append(('build_status', local_var_params['build_status']))
|
1166
|
+
if 'by_group' in local_var_params:
|
1167
|
+
query_params.append(('by_group', local_var_params['by_group']))
|
1168
|
+
if 'group_path_id' in local_var_params:
|
1169
|
+
query_params.append(('group_path_id', local_var_params['group_path_id']))
|
1071
1170
|
|
1072
1171
|
header_params = {}
|
1073
1172
|
|
@@ -1095,31 +1194,31 @@ class CodeArtsBuildAsyncClient(Client):
|
|
1095
1194
|
|
1096
1195
|
return http_info
|
1097
1196
|
|
1098
|
-
def
|
1099
|
-
r"""
|
1197
|
+
def list_recycling_job_async(self, request):
|
1198
|
+
r"""查看回收站中删除的构建任务列表
|
1100
1199
|
|
1101
|
-
|
1200
|
+
查看回收站中删除的构建任务列表
|
1102
1201
|
|
1103
1202
|
Please refer to HUAWEI cloud API Explorer for details.
|
1104
1203
|
|
1105
1204
|
|
1106
|
-
:param request: Request instance for
|
1107
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1108
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1205
|
+
:param request: Request instance for ListRecyclingJob
|
1206
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecyclingJobRequest`
|
1207
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecyclingJobResponse`
|
1109
1208
|
"""
|
1110
|
-
http_info = self.
|
1209
|
+
http_info = self._list_recycling_job_http_info(request)
|
1111
1210
|
return self._call_api(**http_info)
|
1112
1211
|
|
1113
|
-
def
|
1114
|
-
http_info = self.
|
1212
|
+
def list_recycling_job_async_invoker(self, request):
|
1213
|
+
http_info = self._list_recycling_job_http_info(request)
|
1115
1214
|
return AsyncInvoker(self, http_info)
|
1116
1215
|
|
1117
|
-
def
|
1216
|
+
def _list_recycling_job_http_info(self, request):
|
1118
1217
|
http_info = {
|
1119
1218
|
"method": "GET",
|
1120
|
-
"resource_path": "/
|
1219
|
+
"resource_path": "/v1/job/recycling-jobs",
|
1121
1220
|
"request_type": request.__class__.__name__,
|
1122
|
-
"response_type": "
|
1221
|
+
"response_type": "ListRecyclingJobResponse"
|
1123
1222
|
}
|
1124
1223
|
|
1125
1224
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -1129,10 +1228,14 @@ class CodeArtsBuildAsyncClient(Client):
|
|
1129
1228
|
collection_formats = {}
|
1130
1229
|
|
1131
1230
|
path_params = {}
|
1132
|
-
if 'job_id' in local_var_params:
|
1133
|
-
path_params['job_id'] = local_var_params['job_id']
|
1134
1231
|
|
1135
1232
|
query_params = []
|
1233
|
+
if 'page_size' in local_var_params:
|
1234
|
+
query_params.append(('page_size', local_var_params['page_size']))
|
1235
|
+
if 'page_no' in local_var_params:
|
1236
|
+
query_params.append(('page_no', local_var_params['page_no']))
|
1237
|
+
if 'search' in local_var_params:
|
1238
|
+
query_params.append(('search', local_var_params['search']))
|
1136
1239
|
|
1137
1240
|
header_params = {}
|
1138
1241
|
|
@@ -1160,31 +1263,31 @@ class CodeArtsBuildAsyncClient(Client):
|
|
1160
1263
|
|
1161
1264
|
return http_info
|
1162
1265
|
|
1163
|
-
def
|
1164
|
-
r"""
|
1266
|
+
def list_templates_async(self, request):
|
1267
|
+
r"""查询构建模板
|
1165
1268
|
|
1166
|
-
|
1269
|
+
查询构建模板
|
1167
1270
|
|
1168
1271
|
Please refer to HUAWEI cloud API Explorer for details.
|
1169
1272
|
|
1170
1273
|
|
1171
|
-
:param request: Request instance for
|
1172
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1173
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1274
|
+
:param request: Request instance for ListTemplates
|
1275
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListTemplatesRequest`
|
1276
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListTemplatesResponse`
|
1174
1277
|
"""
|
1175
|
-
http_info = self.
|
1278
|
+
http_info = self._list_templates_http_info(request)
|
1176
1279
|
return self._call_api(**http_info)
|
1177
1280
|
|
1178
|
-
def
|
1179
|
-
http_info = self.
|
1281
|
+
def list_templates_async_invoker(self, request):
|
1282
|
+
http_info = self._list_templates_http_info(request)
|
1180
1283
|
return AsyncInvoker(self, http_info)
|
1181
1284
|
|
1182
|
-
def
|
1285
|
+
def _list_templates_http_info(self, request):
|
1183
1286
|
http_info = {
|
1184
1287
|
"method": "GET",
|
1185
|
-
"resource_path": "/v3/
|
1288
|
+
"resource_path": "/v3/templates/query",
|
1186
1289
|
"request_type": request.__class__.__name__,
|
1187
|
-
"response_type": "
|
1290
|
+
"response_type": "ListTemplatesResponse"
|
1188
1291
|
}
|
1189
1292
|
|
1190
1293
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -1194,14 +1297,14 @@ class CodeArtsBuildAsyncClient(Client):
|
|
1194
1297
|
collection_formats = {}
|
1195
1298
|
|
1196
1299
|
path_params = {}
|
1197
|
-
if 'job_id' in local_var_params:
|
1198
|
-
path_params['job_id'] = local_var_params['job_id']
|
1199
1300
|
|
1200
1301
|
query_params = []
|
1201
|
-
if '
|
1202
|
-
query_params.append(('
|
1203
|
-
if '
|
1204
|
-
query_params.append(('
|
1302
|
+
if 'name' in local_var_params:
|
1303
|
+
query_params.append(('name', local_var_params['name']))
|
1304
|
+
if 'page' in local_var_params:
|
1305
|
+
query_params.append(('page', local_var_params['page']))
|
1306
|
+
if 'page_size' in local_var_params:
|
1307
|
+
query_params.append(('page_size', local_var_params['page_size']))
|
1205
1308
|
|
1206
1309
|
header_params = {}
|
1207
1310
|
|
@@ -1229,15 +1332,1144 @@ class CodeArtsBuildAsyncClient(Client):
|
|
1229
1332
|
|
1230
1333
|
return http_info
|
1231
1334
|
|
1232
|
-
def
|
1233
|
-
r"""
|
1335
|
+
def run_job_async(self, request):
|
1336
|
+
r"""执行构建任务
|
1234
1337
|
|
1235
|
-
|
1338
|
+
执行构建任务,可传自定义参数
|
1236
1339
|
|
1237
1340
|
Please refer to HUAWEI cloud API Explorer for details.
|
1238
1341
|
|
1239
1342
|
|
1240
|
-
:param request: Request instance for
|
1343
|
+
:param request: Request instance for RunJob
|
1344
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.RunJobRequest`
|
1345
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.RunJobResponse`
|
1346
|
+
"""
|
1347
|
+
http_info = self._run_job_http_info(request)
|
1348
|
+
return self._call_api(**http_info)
|
1349
|
+
|
1350
|
+
def run_job_async_invoker(self, request):
|
1351
|
+
http_info = self._run_job_http_info(request)
|
1352
|
+
return AsyncInvoker(self, http_info)
|
1353
|
+
|
1354
|
+
def _run_job_http_info(self, request):
|
1355
|
+
http_info = {
|
1356
|
+
"method": "POST",
|
1357
|
+
"resource_path": "/v3/jobs/build",
|
1358
|
+
"request_type": request.__class__.__name__,
|
1359
|
+
"response_type": "RunJobResponse"
|
1360
|
+
}
|
1361
|
+
|
1362
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1363
|
+
|
1364
|
+
cname = None
|
1365
|
+
|
1366
|
+
collection_formats = {}
|
1367
|
+
|
1368
|
+
path_params = {}
|
1369
|
+
|
1370
|
+
query_params = []
|
1371
|
+
|
1372
|
+
header_params = {}
|
1373
|
+
|
1374
|
+
form_params = {}
|
1375
|
+
|
1376
|
+
body = None
|
1377
|
+
if 'body' in local_var_params:
|
1378
|
+
body = local_var_params['body']
|
1379
|
+
if isinstance(request, SdkStreamRequest):
|
1380
|
+
body = request.get_file_stream()
|
1381
|
+
|
1382
|
+
response_headers = []
|
1383
|
+
|
1384
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1385
|
+
['application/json'])
|
1386
|
+
|
1387
|
+
auth_settings = ['apig-auth-iam']
|
1388
|
+
|
1389
|
+
http_info["cname"] = cname
|
1390
|
+
http_info["collection_formats"] = collection_formats
|
1391
|
+
http_info["path_params"] = path_params
|
1392
|
+
http_info["query_params"] = query_params
|
1393
|
+
http_info["header_params"] = header_params
|
1394
|
+
http_info["post_params"] = form_params
|
1395
|
+
http_info["body"] = body
|
1396
|
+
http_info["response_headers"] = response_headers
|
1397
|
+
|
1398
|
+
return http_info
|
1399
|
+
|
1400
|
+
def show_build_params_list_async(self, request):
|
1401
|
+
r"""编辑页获取参数类型的接口
|
1402
|
+
|
1403
|
+
编辑页获取参数类型的接口
|
1404
|
+
|
1405
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1406
|
+
|
1407
|
+
|
1408
|
+
:param request: Request instance for ShowBuildParamsList
|
1409
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildParamsListRequest`
|
1410
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildParamsListResponse`
|
1411
|
+
"""
|
1412
|
+
http_info = self._show_build_params_list_http_info(request)
|
1413
|
+
return self._call_api(**http_info)
|
1414
|
+
|
1415
|
+
def show_build_params_list_async_invoker(self, request):
|
1416
|
+
http_info = self._show_build_params_list_http_info(request)
|
1417
|
+
return AsyncInvoker(self, http_info)
|
1418
|
+
|
1419
|
+
def _show_build_params_list_http_info(self, request):
|
1420
|
+
http_info = {
|
1421
|
+
"method": "GET",
|
1422
|
+
"resource_path": "/v1/job/build-params",
|
1423
|
+
"request_type": request.__class__.__name__,
|
1424
|
+
"response_type": "ShowBuildParamsListResponse"
|
1425
|
+
}
|
1426
|
+
|
1427
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1428
|
+
|
1429
|
+
cname = None
|
1430
|
+
|
1431
|
+
collection_formats = {}
|
1432
|
+
|
1433
|
+
path_params = {}
|
1434
|
+
|
1435
|
+
query_params = []
|
1436
|
+
|
1437
|
+
header_params = {}
|
1438
|
+
|
1439
|
+
form_params = {}
|
1440
|
+
|
1441
|
+
body = None
|
1442
|
+
if isinstance(request, SdkStreamRequest):
|
1443
|
+
body = request.get_file_stream()
|
1444
|
+
|
1445
|
+
response_headers = []
|
1446
|
+
|
1447
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1448
|
+
['application/json'])
|
1449
|
+
|
1450
|
+
auth_settings = ['apig-auth-iam']
|
1451
|
+
|
1452
|
+
http_info["cname"] = cname
|
1453
|
+
http_info["collection_formats"] = collection_formats
|
1454
|
+
http_info["path_params"] = path_params
|
1455
|
+
http_info["query_params"] = query_params
|
1456
|
+
http_info["header_params"] = header_params
|
1457
|
+
http_info["post_params"] = form_params
|
1458
|
+
http_info["body"] = body
|
1459
|
+
http_info["response_headers"] = response_headers
|
1460
|
+
|
1461
|
+
return http_info
|
1462
|
+
|
1463
|
+
def show_build_record_async(self, request):
|
1464
|
+
r"""查询指定构建记录详情
|
1465
|
+
|
1466
|
+
查询指定构建记录详情
|
1467
|
+
|
1468
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1469
|
+
|
1470
|
+
|
1471
|
+
:param request: Request instance for ShowBuildRecord
|
1472
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordRequest`
|
1473
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordResponse`
|
1474
|
+
"""
|
1475
|
+
http_info = self._show_build_record_http_info(request)
|
1476
|
+
return self._call_api(**http_info)
|
1477
|
+
|
1478
|
+
def show_build_record_async_invoker(self, request):
|
1479
|
+
http_info = self._show_build_record_http_info(request)
|
1480
|
+
return AsyncInvoker(self, http_info)
|
1481
|
+
|
1482
|
+
def _show_build_record_http_info(self, request):
|
1483
|
+
http_info = {
|
1484
|
+
"method": "GET",
|
1485
|
+
"resource_path": "/v1/record/{record_id}/info",
|
1486
|
+
"request_type": request.__class__.__name__,
|
1487
|
+
"response_type": "ShowBuildRecordResponse"
|
1488
|
+
}
|
1489
|
+
|
1490
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1491
|
+
|
1492
|
+
cname = None
|
1493
|
+
|
1494
|
+
collection_formats = {}
|
1495
|
+
|
1496
|
+
path_params = {}
|
1497
|
+
if 'record_id' in local_var_params:
|
1498
|
+
path_params['record_id'] = local_var_params['record_id']
|
1499
|
+
|
1500
|
+
query_params = []
|
1501
|
+
|
1502
|
+
header_params = {}
|
1503
|
+
|
1504
|
+
form_params = {}
|
1505
|
+
|
1506
|
+
body = None
|
1507
|
+
if isinstance(request, SdkStreamRequest):
|
1508
|
+
body = request.get_file_stream()
|
1509
|
+
|
1510
|
+
response_headers = []
|
1511
|
+
|
1512
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1513
|
+
['application/json'])
|
1514
|
+
|
1515
|
+
auth_settings = ['apig-auth-iam']
|
1516
|
+
|
1517
|
+
http_info["cname"] = cname
|
1518
|
+
http_info["collection_formats"] = collection_formats
|
1519
|
+
http_info["path_params"] = path_params
|
1520
|
+
http_info["query_params"] = query_params
|
1521
|
+
http_info["header_params"] = header_params
|
1522
|
+
http_info["post_params"] = form_params
|
1523
|
+
http_info["body"] = body
|
1524
|
+
http_info["response_headers"] = response_headers
|
1525
|
+
|
1526
|
+
return http_info
|
1527
|
+
|
1528
|
+
def show_build_record_build_script_async(self, request):
|
1529
|
+
r"""获取构建记录的构建脚本
|
1530
|
+
|
1531
|
+
获取构建记录的构建脚本
|
1532
|
+
|
1533
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1534
|
+
|
1535
|
+
|
1536
|
+
:param request: Request instance for ShowBuildRecordBuildScript
|
1537
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordBuildScriptRequest`
|
1538
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordBuildScriptResponse`
|
1539
|
+
"""
|
1540
|
+
http_info = self._show_build_record_build_script_http_info(request)
|
1541
|
+
return self._call_api(**http_info)
|
1542
|
+
|
1543
|
+
def show_build_record_build_script_async_invoker(self, request):
|
1544
|
+
http_info = self._show_build_record_build_script_http_info(request)
|
1545
|
+
return AsyncInvoker(self, http_info)
|
1546
|
+
|
1547
|
+
def _show_build_record_build_script_http_info(self, request):
|
1548
|
+
http_info = {
|
1549
|
+
"method": "GET",
|
1550
|
+
"resource_path": "/v1/record/{record_id}/build-script",
|
1551
|
+
"request_type": request.__class__.__name__,
|
1552
|
+
"response_type": "ShowBuildRecordBuildScriptResponse"
|
1553
|
+
}
|
1554
|
+
|
1555
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1556
|
+
|
1557
|
+
cname = None
|
1558
|
+
|
1559
|
+
collection_formats = {}
|
1560
|
+
|
1561
|
+
path_params = {}
|
1562
|
+
if 'record_id' in local_var_params:
|
1563
|
+
path_params['record_id'] = local_var_params['record_id']
|
1564
|
+
|
1565
|
+
query_params = []
|
1566
|
+
|
1567
|
+
header_params = {}
|
1568
|
+
|
1569
|
+
form_params = {}
|
1570
|
+
|
1571
|
+
body = None
|
1572
|
+
if isinstance(request, SdkStreamRequest):
|
1573
|
+
body = request.get_file_stream()
|
1574
|
+
|
1575
|
+
response_headers = []
|
1576
|
+
|
1577
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1578
|
+
['application/json'])
|
1579
|
+
|
1580
|
+
auth_settings = ['apig-auth-iam']
|
1581
|
+
|
1582
|
+
http_info["cname"] = cname
|
1583
|
+
http_info["collection_formats"] = collection_formats
|
1584
|
+
http_info["path_params"] = path_params
|
1585
|
+
http_info["query_params"] = query_params
|
1586
|
+
http_info["header_params"] = header_params
|
1587
|
+
http_info["post_params"] = form_params
|
1588
|
+
http_info["body"] = body
|
1589
|
+
http_info["response_headers"] = response_headers
|
1590
|
+
|
1591
|
+
return http_info
|
1592
|
+
|
1593
|
+
def show_build_record_full_stages_async(self, request):
|
1594
|
+
r"""获取任务各阶段信息
|
1595
|
+
|
1596
|
+
获取任务各阶段信息
|
1597
|
+
|
1598
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1599
|
+
|
1600
|
+
|
1601
|
+
:param request: Request instance for ShowBuildRecordFullStages
|
1602
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFullStagesRequest`
|
1603
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFullStagesResponse`
|
1604
|
+
"""
|
1605
|
+
http_info = self._show_build_record_full_stages_http_info(request)
|
1606
|
+
return self._call_api(**http_info)
|
1607
|
+
|
1608
|
+
def show_build_record_full_stages_async_invoker(self, request):
|
1609
|
+
http_info = self._show_build_record_full_stages_http_info(request)
|
1610
|
+
return AsyncInvoker(self, http_info)
|
1611
|
+
|
1612
|
+
def _show_build_record_full_stages_http_info(self, request):
|
1613
|
+
http_info = {
|
1614
|
+
"method": "GET",
|
1615
|
+
"resource_path": "/v1/record/{record_id}/full-stages",
|
1616
|
+
"request_type": request.__class__.__name__,
|
1617
|
+
"response_type": "ShowBuildRecordFullStagesResponse"
|
1618
|
+
}
|
1619
|
+
|
1620
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1621
|
+
|
1622
|
+
cname = None
|
1623
|
+
|
1624
|
+
collection_formats = {}
|
1625
|
+
|
1626
|
+
path_params = {}
|
1627
|
+
if 'record_id' in local_var_params:
|
1628
|
+
path_params['record_id'] = local_var_params['record_id']
|
1629
|
+
|
1630
|
+
query_params = []
|
1631
|
+
if 'cascade' in local_var_params:
|
1632
|
+
query_params.append(('cascade', local_var_params['cascade']))
|
1633
|
+
|
1634
|
+
header_params = {}
|
1635
|
+
|
1636
|
+
form_params = {}
|
1637
|
+
|
1638
|
+
body = None
|
1639
|
+
if isinstance(request, SdkStreamRequest):
|
1640
|
+
body = request.get_file_stream()
|
1641
|
+
|
1642
|
+
response_headers = []
|
1643
|
+
|
1644
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1645
|
+
['application/json'])
|
1646
|
+
|
1647
|
+
auth_settings = ['apig-auth-iam']
|
1648
|
+
|
1649
|
+
http_info["cname"] = cname
|
1650
|
+
http_info["collection_formats"] = collection_formats
|
1651
|
+
http_info["path_params"] = path_params
|
1652
|
+
http_info["query_params"] = query_params
|
1653
|
+
http_info["header_params"] = header_params
|
1654
|
+
http_info["post_params"] = form_params
|
1655
|
+
http_info["body"] = body
|
1656
|
+
http_info["response_headers"] = response_headers
|
1657
|
+
|
1658
|
+
return http_info
|
1659
|
+
|
1660
|
+
def show_history_details_async(self, request):
|
1661
|
+
r"""获取构建历史详情信息接口
|
1662
|
+
|
1663
|
+
获取构建历史详情信息接口
|
1664
|
+
|
1665
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1666
|
+
|
1667
|
+
|
1668
|
+
:param request: Request instance for ShowHistoryDetails
|
1669
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowHistoryDetailsRequest`
|
1670
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowHistoryDetailsResponse`
|
1671
|
+
"""
|
1672
|
+
http_info = self._show_history_details_http_info(request)
|
1673
|
+
return self._call_api(**http_info)
|
1674
|
+
|
1675
|
+
def show_history_details_async_invoker(self, request):
|
1676
|
+
http_info = self._show_history_details_http_info(request)
|
1677
|
+
return AsyncInvoker(self, http_info)
|
1678
|
+
|
1679
|
+
def _show_history_details_http_info(self, request):
|
1680
|
+
http_info = {
|
1681
|
+
"method": "GET",
|
1682
|
+
"resource_path": "/v3/jobs/{job_id}/{build_number}/history-details",
|
1683
|
+
"request_type": request.__class__.__name__,
|
1684
|
+
"response_type": "ShowHistoryDetailsResponse"
|
1685
|
+
}
|
1686
|
+
|
1687
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1688
|
+
|
1689
|
+
cname = None
|
1690
|
+
|
1691
|
+
collection_formats = {}
|
1692
|
+
|
1693
|
+
path_params = {}
|
1694
|
+
if 'job_id' in local_var_params:
|
1695
|
+
path_params['job_id'] = local_var_params['job_id']
|
1696
|
+
if 'build_number' in local_var_params:
|
1697
|
+
path_params['build_number'] = local_var_params['build_number']
|
1698
|
+
|
1699
|
+
query_params = []
|
1700
|
+
|
1701
|
+
header_params = {}
|
1702
|
+
|
1703
|
+
form_params = {}
|
1704
|
+
|
1705
|
+
body = None
|
1706
|
+
if isinstance(request, SdkStreamRequest):
|
1707
|
+
body = request.get_file_stream()
|
1708
|
+
|
1709
|
+
response_headers = []
|
1710
|
+
|
1711
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1712
|
+
['application/json'])
|
1713
|
+
|
1714
|
+
auth_settings = ['apig-auth-iam']
|
1715
|
+
|
1716
|
+
http_info["cname"] = cname
|
1717
|
+
http_info["collection_formats"] = collection_formats
|
1718
|
+
http_info["path_params"] = path_params
|
1719
|
+
http_info["query_params"] = query_params
|
1720
|
+
http_info["header_params"] = header_params
|
1721
|
+
http_info["post_params"] = form_params
|
1722
|
+
http_info["body"] = body
|
1723
|
+
http_info["response_headers"] = response_headers
|
1724
|
+
|
1725
|
+
return http_info
|
1726
|
+
|
1727
|
+
def show_image_template_list_async(self, request):
|
1728
|
+
r"""获取镜像模板列表
|
1729
|
+
|
1730
|
+
获取镜像模板列表
|
1731
|
+
|
1732
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1733
|
+
|
1734
|
+
|
1735
|
+
:param request: Request instance for ShowImageTemplateList
|
1736
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowImageTemplateListRequest`
|
1737
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowImageTemplateListResponse`
|
1738
|
+
"""
|
1739
|
+
http_info = self._show_image_template_list_http_info(request)
|
1740
|
+
return self._call_api(**http_info)
|
1741
|
+
|
1742
|
+
def show_image_template_list_async_invoker(self, request):
|
1743
|
+
http_info = self._show_image_template_list_http_info(request)
|
1744
|
+
return AsyncInvoker(self, http_info)
|
1745
|
+
|
1746
|
+
def _show_image_template_list_http_info(self, request):
|
1747
|
+
http_info = {
|
1748
|
+
"method": "GET",
|
1749
|
+
"resource_path": "/v1/image/templates",
|
1750
|
+
"request_type": request.__class__.__name__,
|
1751
|
+
"response_type": "ShowImageTemplateListResponse"
|
1752
|
+
}
|
1753
|
+
|
1754
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1755
|
+
|
1756
|
+
cname = None
|
1757
|
+
|
1758
|
+
collection_formats = {}
|
1759
|
+
|
1760
|
+
path_params = {}
|
1761
|
+
|
1762
|
+
query_params = []
|
1763
|
+
|
1764
|
+
header_params = {}
|
1765
|
+
|
1766
|
+
form_params = {}
|
1767
|
+
|
1768
|
+
body = None
|
1769
|
+
if isinstance(request, SdkStreamRequest):
|
1770
|
+
body = request.get_file_stream()
|
1771
|
+
|
1772
|
+
response_headers = []
|
1773
|
+
|
1774
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1775
|
+
['application/json'])
|
1776
|
+
|
1777
|
+
auth_settings = ['apig-auth-iam']
|
1778
|
+
|
1779
|
+
http_info["cname"] = cname
|
1780
|
+
http_info["collection_formats"] = collection_formats
|
1781
|
+
http_info["path_params"] = path_params
|
1782
|
+
http_info["query_params"] = query_params
|
1783
|
+
http_info["header_params"] = header_params
|
1784
|
+
http_info["post_params"] = form_params
|
1785
|
+
http_info["body"] = body
|
1786
|
+
http_info["response_headers"] = response_headers
|
1787
|
+
|
1788
|
+
return http_info
|
1789
|
+
|
1790
|
+
def show_job_build_success_ratio_async(self, request):
|
1791
|
+
r"""查询构建成功率
|
1792
|
+
|
1793
|
+
查询构建成功率
|
1794
|
+
|
1795
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1796
|
+
|
1797
|
+
|
1798
|
+
:param request: Request instance for ShowJobBuildSuccessRatio
|
1799
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioRequest`
|
1800
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioResponse`
|
1801
|
+
"""
|
1802
|
+
http_info = self._show_job_build_success_ratio_http_info(request)
|
1803
|
+
return self._call_api(**http_info)
|
1804
|
+
|
1805
|
+
def show_job_build_success_ratio_async_invoker(self, request):
|
1806
|
+
http_info = self._show_job_build_success_ratio_http_info(request)
|
1807
|
+
return AsyncInvoker(self, http_info)
|
1808
|
+
|
1809
|
+
def _show_job_build_success_ratio_http_info(self, request):
|
1810
|
+
http_info = {
|
1811
|
+
"method": "GET",
|
1812
|
+
"resource_path": "/v1/report/ratio",
|
1813
|
+
"request_type": request.__class__.__name__,
|
1814
|
+
"response_type": "ShowJobBuildSuccessRatioResponse"
|
1815
|
+
}
|
1816
|
+
|
1817
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1818
|
+
|
1819
|
+
cname = None
|
1820
|
+
|
1821
|
+
collection_formats = {}
|
1822
|
+
|
1823
|
+
path_params = {}
|
1824
|
+
|
1825
|
+
query_params = []
|
1826
|
+
if 'job_id' in local_var_params:
|
1827
|
+
query_params.append(('job_id', local_var_params['job_id']))
|
1828
|
+
if 'repository_name' in local_var_params:
|
1829
|
+
query_params.append(('repository_name', local_var_params['repository_name']))
|
1830
|
+
if 'branch' in local_var_params:
|
1831
|
+
query_params.append(('branch', local_var_params['branch']))
|
1832
|
+
if 'interval' in local_var_params:
|
1833
|
+
query_params.append(('interval', local_var_params['interval']))
|
1834
|
+
|
1835
|
+
header_params = {}
|
1836
|
+
|
1837
|
+
form_params = {}
|
1838
|
+
|
1839
|
+
body = None
|
1840
|
+
if isinstance(request, SdkStreamRequest):
|
1841
|
+
body = request.get_file_stream()
|
1842
|
+
|
1843
|
+
response_headers = []
|
1844
|
+
|
1845
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1846
|
+
['application/json'])
|
1847
|
+
|
1848
|
+
auth_settings = ['apig-auth-iam']
|
1849
|
+
|
1850
|
+
http_info["cname"] = cname
|
1851
|
+
http_info["collection_formats"] = collection_formats
|
1852
|
+
http_info["path_params"] = path_params
|
1853
|
+
http_info["query_params"] = query_params
|
1854
|
+
http_info["header_params"] = header_params
|
1855
|
+
http_info["post_params"] = form_params
|
1856
|
+
http_info["body"] = body
|
1857
|
+
http_info["response_headers"] = response_headers
|
1858
|
+
|
1859
|
+
return http_info
|
1860
|
+
|
1861
|
+
def show_job_build_time_async(self, request):
|
1862
|
+
r"""洞察构建时长
|
1863
|
+
|
1864
|
+
洞察构建时长
|
1865
|
+
|
1866
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1867
|
+
|
1868
|
+
|
1869
|
+
:param request: Request instance for ShowJobBuildTime
|
1870
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildTimeRequest`
|
1871
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildTimeResponse`
|
1872
|
+
"""
|
1873
|
+
http_info = self._show_job_build_time_http_info(request)
|
1874
|
+
return self._call_api(**http_info)
|
1875
|
+
|
1876
|
+
def show_job_build_time_async_invoker(self, request):
|
1877
|
+
http_info = self._show_job_build_time_http_info(request)
|
1878
|
+
return AsyncInvoker(self, http_info)
|
1879
|
+
|
1880
|
+
def _show_job_build_time_http_info(self, request):
|
1881
|
+
http_info = {
|
1882
|
+
"method": "GET",
|
1883
|
+
"resource_path": "/v1/report/time",
|
1884
|
+
"request_type": request.__class__.__name__,
|
1885
|
+
"response_type": "ShowJobBuildTimeResponse"
|
1886
|
+
}
|
1887
|
+
|
1888
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1889
|
+
|
1890
|
+
cname = None
|
1891
|
+
|
1892
|
+
collection_formats = {}
|
1893
|
+
|
1894
|
+
path_params = {}
|
1895
|
+
|
1896
|
+
query_params = []
|
1897
|
+
if 'job_id' in local_var_params:
|
1898
|
+
query_params.append(('job_id', local_var_params['job_id']))
|
1899
|
+
if 'repository_name' in local_var_params:
|
1900
|
+
query_params.append(('repository_name', local_var_params['repository_name']))
|
1901
|
+
if 'branch' in local_var_params:
|
1902
|
+
query_params.append(('branch', local_var_params['branch']))
|
1903
|
+
if 'interval' in local_var_params:
|
1904
|
+
query_params.append(('interval', local_var_params['interval']))
|
1905
|
+
|
1906
|
+
header_params = {}
|
1907
|
+
|
1908
|
+
form_params = {}
|
1909
|
+
|
1910
|
+
body = None
|
1911
|
+
if isinstance(request, SdkStreamRequest):
|
1912
|
+
body = request.get_file_stream()
|
1913
|
+
|
1914
|
+
response_headers = []
|
1915
|
+
|
1916
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1917
|
+
['application/json'])
|
1918
|
+
|
1919
|
+
auth_settings = ['apig-auth-iam']
|
1920
|
+
|
1921
|
+
http_info["cname"] = cname
|
1922
|
+
http_info["collection_formats"] = collection_formats
|
1923
|
+
http_info["path_params"] = path_params
|
1924
|
+
http_info["query_params"] = query_params
|
1925
|
+
http_info["header_params"] = header_params
|
1926
|
+
http_info["post_params"] = form_params
|
1927
|
+
http_info["body"] = body
|
1928
|
+
http_info["response_headers"] = response_headers
|
1929
|
+
|
1930
|
+
return http_info
|
1931
|
+
|
1932
|
+
def show_job_config_async(self, request):
|
1933
|
+
r"""获取构建任务详情
|
1934
|
+
|
1935
|
+
获取构建任务详情
|
1936
|
+
|
1937
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1938
|
+
|
1939
|
+
|
1940
|
+
:param request: Request instance for ShowJobConfig
|
1941
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigRequest`
|
1942
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigResponse`
|
1943
|
+
"""
|
1944
|
+
http_info = self._show_job_config_http_info(request)
|
1945
|
+
return self._call_api(**http_info)
|
1946
|
+
|
1947
|
+
def show_job_config_async_invoker(self, request):
|
1948
|
+
http_info = self._show_job_config_http_info(request)
|
1949
|
+
return AsyncInvoker(self, http_info)
|
1950
|
+
|
1951
|
+
def _show_job_config_http_info(self, request):
|
1952
|
+
http_info = {
|
1953
|
+
"method": "GET",
|
1954
|
+
"resource_path": "/v1/job/{job_id}/config",
|
1955
|
+
"request_type": request.__class__.__name__,
|
1956
|
+
"response_type": "ShowJobConfigResponse"
|
1957
|
+
}
|
1958
|
+
|
1959
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1960
|
+
|
1961
|
+
cname = None
|
1962
|
+
|
1963
|
+
collection_formats = {}
|
1964
|
+
|
1965
|
+
path_params = {}
|
1966
|
+
if 'job_id' in local_var_params:
|
1967
|
+
path_params['job_id'] = local_var_params['job_id']
|
1968
|
+
|
1969
|
+
query_params = []
|
1970
|
+
if 'get_all_params' in local_var_params:
|
1971
|
+
query_params.append(('get_all_params', local_var_params['get_all_params']))
|
1972
|
+
|
1973
|
+
header_params = {}
|
1974
|
+
|
1975
|
+
form_params = {}
|
1976
|
+
|
1977
|
+
body = None
|
1978
|
+
if isinstance(request, SdkStreamRequest):
|
1979
|
+
body = request.get_file_stream()
|
1980
|
+
|
1981
|
+
response_headers = []
|
1982
|
+
|
1983
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1984
|
+
['application/json'])
|
1985
|
+
|
1986
|
+
auth_settings = ['apig-auth-iam']
|
1987
|
+
|
1988
|
+
http_info["cname"] = cname
|
1989
|
+
http_info["collection_formats"] = collection_formats
|
1990
|
+
http_info["path_params"] = path_params
|
1991
|
+
http_info["query_params"] = query_params
|
1992
|
+
http_info["header_params"] = header_params
|
1993
|
+
http_info["post_params"] = form_params
|
1994
|
+
http_info["body"] = body
|
1995
|
+
http_info["response_headers"] = response_headers
|
1996
|
+
|
1997
|
+
return http_info
|
1998
|
+
|
1999
|
+
def show_job_config_diff_async(self, request):
|
2000
|
+
r"""获取构建任务配置的对比差异
|
2001
|
+
|
2002
|
+
获取构建任务配置的对比差异
|
2003
|
+
|
2004
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2005
|
+
|
2006
|
+
|
2007
|
+
:param request: Request instance for ShowJobConfigDiff
|
2008
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigDiffRequest`
|
2009
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigDiffResponse`
|
2010
|
+
"""
|
2011
|
+
http_info = self._show_job_config_diff_http_info(request)
|
2012
|
+
return self._call_api(**http_info)
|
2013
|
+
|
2014
|
+
def show_job_config_diff_async_invoker(self, request):
|
2015
|
+
http_info = self._show_job_config_diff_http_info(request)
|
2016
|
+
return AsyncInvoker(self, http_info)
|
2017
|
+
|
2018
|
+
def _show_job_config_diff_http_info(self, request):
|
2019
|
+
http_info = {
|
2020
|
+
"method": "GET",
|
2021
|
+
"resource_path": "/v1/job/{job_id}/diff",
|
2022
|
+
"request_type": request.__class__.__name__,
|
2023
|
+
"response_type": "ShowJobConfigDiffResponse"
|
2024
|
+
}
|
2025
|
+
|
2026
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2027
|
+
|
2028
|
+
cname = None
|
2029
|
+
|
2030
|
+
collection_formats = {}
|
2031
|
+
|
2032
|
+
path_params = {}
|
2033
|
+
if 'job_id' in local_var_params:
|
2034
|
+
path_params['job_id'] = local_var_params['job_id']
|
2035
|
+
|
2036
|
+
query_params = []
|
2037
|
+
if 'revisedl_no' in local_var_params:
|
2038
|
+
query_params.append(('revisedl_no', local_var_params['revisedl_no']))
|
2039
|
+
if 'original_no' in local_var_params:
|
2040
|
+
query_params.append(('original_no', local_var_params['original_no']))
|
2041
|
+
|
2042
|
+
header_params = {}
|
2043
|
+
|
2044
|
+
form_params = {}
|
2045
|
+
|
2046
|
+
body = None
|
2047
|
+
if isinstance(request, SdkStreamRequest):
|
2048
|
+
body = request.get_file_stream()
|
2049
|
+
|
2050
|
+
response_headers = []
|
2051
|
+
|
2052
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2053
|
+
['application/json'])
|
2054
|
+
|
2055
|
+
auth_settings = ['apig-auth-iam']
|
2056
|
+
|
2057
|
+
http_info["cname"] = cname
|
2058
|
+
http_info["collection_formats"] = collection_formats
|
2059
|
+
http_info["path_params"] = path_params
|
2060
|
+
http_info["query_params"] = query_params
|
2061
|
+
http_info["header_params"] = header_params
|
2062
|
+
http_info["post_params"] = form_params
|
2063
|
+
http_info["body"] = body
|
2064
|
+
http_info["response_headers"] = response_headers
|
2065
|
+
|
2066
|
+
return http_info
|
2067
|
+
|
2068
|
+
def show_job_info_async(self, request):
|
2069
|
+
r"""查看构建任务构建信息
|
2070
|
+
|
2071
|
+
查看构建任务构建信息
|
2072
|
+
|
2073
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2074
|
+
|
2075
|
+
|
2076
|
+
:param request: Request instance for ShowJobInfo
|
2077
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobInfoRequest`
|
2078
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobInfoResponse`
|
2079
|
+
"""
|
2080
|
+
http_info = self._show_job_info_http_info(request)
|
2081
|
+
return self._call_api(**http_info)
|
2082
|
+
|
2083
|
+
def show_job_info_async_invoker(self, request):
|
2084
|
+
http_info = self._show_job_info_http_info(request)
|
2085
|
+
return AsyncInvoker(self, http_info)
|
2086
|
+
|
2087
|
+
def _show_job_info_http_info(self, request):
|
2088
|
+
http_info = {
|
2089
|
+
"method": "GET",
|
2090
|
+
"resource_path": "/v1/job/{job_id}/info",
|
2091
|
+
"request_type": request.__class__.__name__,
|
2092
|
+
"response_type": "ShowJobInfoResponse"
|
2093
|
+
}
|
2094
|
+
|
2095
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2096
|
+
|
2097
|
+
cname = None
|
2098
|
+
|
2099
|
+
collection_formats = {}
|
2100
|
+
|
2101
|
+
path_params = {}
|
2102
|
+
if 'job_id' in local_var_params:
|
2103
|
+
path_params['job_id'] = local_var_params['job_id']
|
2104
|
+
|
2105
|
+
query_params = []
|
2106
|
+
|
2107
|
+
header_params = {}
|
2108
|
+
|
2109
|
+
form_params = {}
|
2110
|
+
|
2111
|
+
body = None
|
2112
|
+
if isinstance(request, SdkStreamRequest):
|
2113
|
+
body = request.get_file_stream()
|
2114
|
+
|
2115
|
+
response_headers = []
|
2116
|
+
|
2117
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2118
|
+
['application/json'])
|
2119
|
+
|
2120
|
+
auth_settings = ['apig-auth-iam']
|
2121
|
+
|
2122
|
+
http_info["cname"] = cname
|
2123
|
+
http_info["collection_formats"] = collection_formats
|
2124
|
+
http_info["path_params"] = path_params
|
2125
|
+
http_info["query_params"] = query_params
|
2126
|
+
http_info["header_params"] = header_params
|
2127
|
+
http_info["post_params"] = form_params
|
2128
|
+
http_info["body"] = body
|
2129
|
+
http_info["response_headers"] = response_headers
|
2130
|
+
|
2131
|
+
return http_info
|
2132
|
+
|
2133
|
+
def show_job_list_by_project_id_async(self, request):
|
2134
|
+
r"""查看项目下用户的构建任务列表
|
2135
|
+
|
2136
|
+
查看项目下用户的构建任务列表
|
2137
|
+
|
2138
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2139
|
+
|
2140
|
+
|
2141
|
+
:param request: Request instance for ShowJobListByProjectId
|
2142
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobListByProjectIdRequest`
|
2143
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobListByProjectIdResponse`
|
2144
|
+
"""
|
2145
|
+
http_info = self._show_job_list_by_project_id_http_info(request)
|
2146
|
+
return self._call_api(**http_info)
|
2147
|
+
|
2148
|
+
def show_job_list_by_project_id_async_invoker(self, request):
|
2149
|
+
http_info = self._show_job_list_by_project_id_http_info(request)
|
2150
|
+
return AsyncInvoker(self, http_info)
|
2151
|
+
|
2152
|
+
def _show_job_list_by_project_id_http_info(self, request):
|
2153
|
+
http_info = {
|
2154
|
+
"method": "GET",
|
2155
|
+
"resource_path": "/v3/{project_id}/jobs",
|
2156
|
+
"request_type": request.__class__.__name__,
|
2157
|
+
"response_type": "ShowJobListByProjectIdResponse"
|
2158
|
+
}
|
2159
|
+
|
2160
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2161
|
+
|
2162
|
+
cname = None
|
2163
|
+
|
2164
|
+
collection_formats = {}
|
2165
|
+
|
2166
|
+
path_params = {}
|
2167
|
+
if 'project_id' in local_var_params:
|
2168
|
+
path_params['project_id'] = local_var_params['project_id']
|
2169
|
+
|
2170
|
+
query_params = []
|
2171
|
+
if 'page_index' in local_var_params:
|
2172
|
+
query_params.append(('page_index', local_var_params['page_index']))
|
2173
|
+
if 'page_size' in local_var_params:
|
2174
|
+
query_params.append(('page_size', local_var_params['page_size']))
|
2175
|
+
|
2176
|
+
header_params = {}
|
2177
|
+
|
2178
|
+
form_params = {}
|
2179
|
+
|
2180
|
+
body = None
|
2181
|
+
if isinstance(request, SdkStreamRequest):
|
2182
|
+
body = request.get_file_stream()
|
2183
|
+
|
2184
|
+
response_headers = []
|
2185
|
+
|
2186
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2187
|
+
['application/json'])
|
2188
|
+
|
2189
|
+
auth_settings = ['apig-auth-iam']
|
2190
|
+
|
2191
|
+
http_info["cname"] = cname
|
2192
|
+
http_info["collection_formats"] = collection_formats
|
2193
|
+
http_info["path_params"] = path_params
|
2194
|
+
http_info["query_params"] = query_params
|
2195
|
+
http_info["header_params"] = header_params
|
2196
|
+
http_info["post_params"] = form_params
|
2197
|
+
http_info["body"] = body
|
2198
|
+
http_info["response_headers"] = response_headers
|
2199
|
+
|
2200
|
+
return http_info
|
2201
|
+
|
2202
|
+
def show_job_role_permission_async(self, request):
|
2203
|
+
r"""获取构建任务的角色权限矩阵信息
|
2204
|
+
|
2205
|
+
获取构建任务的角色权限矩阵信息
|
2206
|
+
|
2207
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2208
|
+
|
2209
|
+
|
2210
|
+
:param request: Request instance for ShowJobRolePermission
|
2211
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobRolePermissionRequest`
|
2212
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobRolePermissionResponse`
|
2213
|
+
"""
|
2214
|
+
http_info = self._show_job_role_permission_http_info(request)
|
2215
|
+
return self._call_api(**http_info)
|
2216
|
+
|
2217
|
+
def show_job_role_permission_async_invoker(self, request):
|
2218
|
+
http_info = self._show_job_role_permission_http_info(request)
|
2219
|
+
return AsyncInvoker(self, http_info)
|
2220
|
+
|
2221
|
+
def _show_job_role_permission_http_info(self, request):
|
2222
|
+
http_info = {
|
2223
|
+
"method": "GET",
|
2224
|
+
"resource_path": "/v1/job/permission/role",
|
2225
|
+
"request_type": request.__class__.__name__,
|
2226
|
+
"response_type": "ShowJobRolePermissionResponse"
|
2227
|
+
}
|
2228
|
+
|
2229
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2230
|
+
|
2231
|
+
cname = None
|
2232
|
+
|
2233
|
+
collection_formats = {}
|
2234
|
+
|
2235
|
+
path_params = {}
|
2236
|
+
|
2237
|
+
query_params = []
|
2238
|
+
if 'job_id' in local_var_params:
|
2239
|
+
query_params.append(('job_id', local_var_params['job_id']))
|
2240
|
+
|
2241
|
+
header_params = {}
|
2242
|
+
|
2243
|
+
form_params = {}
|
2244
|
+
|
2245
|
+
body = None
|
2246
|
+
if isinstance(request, SdkStreamRequest):
|
2247
|
+
body = request.get_file_stream()
|
2248
|
+
|
2249
|
+
response_headers = []
|
2250
|
+
|
2251
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2252
|
+
['application/json'])
|
2253
|
+
|
2254
|
+
auth_settings = ['apig-auth-iam']
|
2255
|
+
|
2256
|
+
http_info["cname"] = cname
|
2257
|
+
http_info["collection_formats"] = collection_formats
|
2258
|
+
http_info["path_params"] = path_params
|
2259
|
+
http_info["query_params"] = query_params
|
2260
|
+
http_info["header_params"] = header_params
|
2261
|
+
http_info["post_params"] = form_params
|
2262
|
+
http_info["body"] = body
|
2263
|
+
http_info["response_headers"] = response_headers
|
2264
|
+
|
2265
|
+
return http_info
|
2266
|
+
|
2267
|
+
def show_job_status_async(self, request):
|
2268
|
+
r"""查看任务运行状态
|
2269
|
+
|
2270
|
+
查看任务运行状态
|
2271
|
+
|
2272
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2273
|
+
|
2274
|
+
|
2275
|
+
:param request: Request instance for ShowJobStatus
|
2276
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobStatusRequest`
|
2277
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobStatusResponse`
|
2278
|
+
"""
|
2279
|
+
http_info = self._show_job_status_http_info(request)
|
2280
|
+
return self._call_api(**http_info)
|
2281
|
+
|
2282
|
+
def show_job_status_async_invoker(self, request):
|
2283
|
+
http_info = self._show_job_status_http_info(request)
|
2284
|
+
return AsyncInvoker(self, http_info)
|
2285
|
+
|
2286
|
+
def _show_job_status_http_info(self, request):
|
2287
|
+
http_info = {
|
2288
|
+
"method": "GET",
|
2289
|
+
"resource_path": "/v3/jobs/{job_id}/status",
|
2290
|
+
"request_type": request.__class__.__name__,
|
2291
|
+
"response_type": "ShowJobStatusResponse"
|
2292
|
+
}
|
2293
|
+
|
2294
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2295
|
+
|
2296
|
+
cname = None
|
2297
|
+
|
2298
|
+
collection_formats = {}
|
2299
|
+
|
2300
|
+
path_params = {}
|
2301
|
+
if 'job_id' in local_var_params:
|
2302
|
+
path_params['job_id'] = local_var_params['job_id']
|
2303
|
+
|
2304
|
+
query_params = []
|
2305
|
+
|
2306
|
+
header_params = {}
|
2307
|
+
|
2308
|
+
form_params = {}
|
2309
|
+
|
2310
|
+
body = None
|
2311
|
+
if isinstance(request, SdkStreamRequest):
|
2312
|
+
body = request.get_file_stream()
|
2313
|
+
|
2314
|
+
response_headers = []
|
2315
|
+
|
2316
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2317
|
+
['application/json'])
|
2318
|
+
|
2319
|
+
auth_settings = ['apig-auth-iam']
|
2320
|
+
|
2321
|
+
http_info["cname"] = cname
|
2322
|
+
http_info["collection_formats"] = collection_formats
|
2323
|
+
http_info["path_params"] = path_params
|
2324
|
+
http_info["query_params"] = query_params
|
2325
|
+
http_info["header_params"] = header_params
|
2326
|
+
http_info["post_params"] = form_params
|
2327
|
+
http_info["body"] = body
|
2328
|
+
http_info["response_headers"] = response_headers
|
2329
|
+
|
2330
|
+
return http_info
|
2331
|
+
|
2332
|
+
def show_job_success_ratio_async(self, request):
|
2333
|
+
r"""根据开始时间和结束时间查看构建任务的构建成功率
|
2334
|
+
|
2335
|
+
根据开始时间和结束时间查看构建任务的构建成功率
|
2336
|
+
|
2337
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2338
|
+
|
2339
|
+
|
2340
|
+
:param request: Request instance for ShowJobSuccessRatio
|
2341
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSuccessRatioRequest`
|
2342
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSuccessRatioResponse`
|
2343
|
+
"""
|
2344
|
+
http_info = self._show_job_success_ratio_http_info(request)
|
2345
|
+
return self._call_api(**http_info)
|
2346
|
+
|
2347
|
+
def show_job_success_ratio_async_invoker(self, request):
|
2348
|
+
http_info = self._show_job_success_ratio_http_info(request)
|
2349
|
+
return AsyncInvoker(self, http_info)
|
2350
|
+
|
2351
|
+
def _show_job_success_ratio_http_info(self, request):
|
2352
|
+
http_info = {
|
2353
|
+
"method": "GET",
|
2354
|
+
"resource_path": "/v3/jobs/{job_id}/success-ratio",
|
2355
|
+
"request_type": request.__class__.__name__,
|
2356
|
+
"response_type": "ShowJobSuccessRatioResponse"
|
2357
|
+
}
|
2358
|
+
|
2359
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2360
|
+
|
2361
|
+
cname = None
|
2362
|
+
|
2363
|
+
collection_formats = {}
|
2364
|
+
|
2365
|
+
path_params = {}
|
2366
|
+
if 'job_id' in local_var_params:
|
2367
|
+
path_params['job_id'] = local_var_params['job_id']
|
2368
|
+
|
2369
|
+
query_params = []
|
2370
|
+
if 'start_time' in local_var_params:
|
2371
|
+
query_params.append(('start_time', local_var_params['start_time']))
|
2372
|
+
if 'end_time' in local_var_params:
|
2373
|
+
query_params.append(('end_time', local_var_params['end_time']))
|
2374
|
+
|
2375
|
+
header_params = {}
|
2376
|
+
|
2377
|
+
form_params = {}
|
2378
|
+
|
2379
|
+
body = None
|
2380
|
+
if isinstance(request, SdkStreamRequest):
|
2381
|
+
body = request.get_file_stream()
|
2382
|
+
|
2383
|
+
response_headers = []
|
2384
|
+
|
2385
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2386
|
+
['application/json'])
|
2387
|
+
|
2388
|
+
auth_settings = ['apig-auth-iam']
|
2389
|
+
|
2390
|
+
http_info["cname"] = cname
|
2391
|
+
http_info["collection_formats"] = collection_formats
|
2392
|
+
http_info["path_params"] = path_params
|
2393
|
+
http_info["query_params"] = query_params
|
2394
|
+
http_info["header_params"] = header_params
|
2395
|
+
http_info["post_params"] = form_params
|
2396
|
+
http_info["body"] = body
|
2397
|
+
http_info["response_headers"] = response_headers
|
2398
|
+
|
2399
|
+
return http_info
|
2400
|
+
|
2401
|
+
def show_job_system_parameters_async(self, request):
|
2402
|
+
r"""查看系统预定义参数
|
2403
|
+
|
2404
|
+
查看系统预定义参数
|
2405
|
+
|
2406
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2407
|
+
|
2408
|
+
|
2409
|
+
:param request: Request instance for ShowJobSystemParameters
|
2410
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSystemParametersRequest`
|
2411
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSystemParametersResponse`
|
2412
|
+
"""
|
2413
|
+
http_info = self._show_job_system_parameters_http_info(request)
|
2414
|
+
return self._call_api(**http_info)
|
2415
|
+
|
2416
|
+
def show_job_system_parameters_async_invoker(self, request):
|
2417
|
+
http_info = self._show_job_system_parameters_http_info(request)
|
2418
|
+
return AsyncInvoker(self, http_info)
|
2419
|
+
|
2420
|
+
def _show_job_system_parameters_http_info(self, request):
|
2421
|
+
http_info = {
|
2422
|
+
"method": "GET",
|
2423
|
+
"resource_path": "/v1/job/system-parameters",
|
2424
|
+
"request_type": request.__class__.__name__,
|
2425
|
+
"response_type": "ShowJobSystemParametersResponse"
|
2426
|
+
}
|
2427
|
+
|
2428
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2429
|
+
|
2430
|
+
cname = None
|
2431
|
+
|
2432
|
+
collection_formats = {}
|
2433
|
+
|
2434
|
+
path_params = {}
|
2435
|
+
|
2436
|
+
query_params = []
|
2437
|
+
|
2438
|
+
header_params = {}
|
2439
|
+
|
2440
|
+
form_params = {}
|
2441
|
+
|
2442
|
+
body = None
|
2443
|
+
if isinstance(request, SdkStreamRequest):
|
2444
|
+
body = request.get_file_stream()
|
2445
|
+
|
2446
|
+
response_headers = []
|
2447
|
+
|
2448
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2449
|
+
['application/json'])
|
2450
|
+
|
2451
|
+
auth_settings = ['apig-auth-iam']
|
2452
|
+
|
2453
|
+
http_info["cname"] = cname
|
2454
|
+
http_info["collection_formats"] = collection_formats
|
2455
|
+
http_info["path_params"] = path_params
|
2456
|
+
http_info["query_params"] = query_params
|
2457
|
+
http_info["header_params"] = header_params
|
2458
|
+
http_info["post_params"] = form_params
|
2459
|
+
http_info["body"] = body
|
2460
|
+
http_info["response_headers"] = response_headers
|
2461
|
+
|
2462
|
+
return http_info
|
2463
|
+
|
2464
|
+
def show_last_history_async(self, request):
|
2465
|
+
r"""查询指定代码仓库最近一次成功的构建历史
|
2466
|
+
|
2467
|
+
查询指定代码仓库最近一次成功的构建历史
|
2468
|
+
|
2469
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2470
|
+
|
2471
|
+
|
2472
|
+
:param request: Request instance for ShowLastHistory
|
1241
2473
|
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowLastHistoryRequest`
|
1242
2474
|
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowLastHistoryResponse`
|
1243
2475
|
"""
|
@@ -1507,6 +2739,71 @@ class CodeArtsBuildAsyncClient(Client):
|
|
1507
2739
|
|
1508
2740
|
return http_info
|
1509
2741
|
|
2742
|
+
def show_project_permission_async(self, request):
|
2743
|
+
r"""获取用户权限
|
2744
|
+
|
2745
|
+
获取用户权限
|
2746
|
+
|
2747
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2748
|
+
|
2749
|
+
|
2750
|
+
:param request: Request instance for ShowProjectPermission
|
2751
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowProjectPermissionRequest`
|
2752
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowProjectPermissionResponse`
|
2753
|
+
"""
|
2754
|
+
http_info = self._show_project_permission_http_info(request)
|
2755
|
+
return self._call_api(**http_info)
|
2756
|
+
|
2757
|
+
def show_project_permission_async_invoker(self, request):
|
2758
|
+
http_info = self._show_project_permission_http_info(request)
|
2759
|
+
return AsyncInvoker(self, http_info)
|
2760
|
+
|
2761
|
+
def _show_project_permission_http_info(self, request):
|
2762
|
+
http_info = {
|
2763
|
+
"method": "GET",
|
2764
|
+
"resource_path": "/v1/domain/user-permission",
|
2765
|
+
"request_type": request.__class__.__name__,
|
2766
|
+
"response_type": "ShowProjectPermissionResponse"
|
2767
|
+
}
|
2768
|
+
|
2769
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2770
|
+
|
2771
|
+
cname = None
|
2772
|
+
|
2773
|
+
collection_formats = {}
|
2774
|
+
|
2775
|
+
path_params = {}
|
2776
|
+
|
2777
|
+
query_params = []
|
2778
|
+
if 'project_id' in local_var_params:
|
2779
|
+
query_params.append(('project_id', local_var_params['project_id']))
|
2780
|
+
|
2781
|
+
header_params = {}
|
2782
|
+
|
2783
|
+
form_params = {}
|
2784
|
+
|
2785
|
+
body = None
|
2786
|
+
if isinstance(request, SdkStreamRequest):
|
2787
|
+
body = request.get_file_stream()
|
2788
|
+
|
2789
|
+
response_headers = []
|
2790
|
+
|
2791
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2792
|
+
['application/json'])
|
2793
|
+
|
2794
|
+
auth_settings = ['apig-auth-iam']
|
2795
|
+
|
2796
|
+
http_info["cname"] = cname
|
2797
|
+
http_info["collection_formats"] = collection_formats
|
2798
|
+
http_info["path_params"] = path_params
|
2799
|
+
http_info["query_params"] = query_params
|
2800
|
+
http_info["header_params"] = header_params
|
2801
|
+
http_info["post_params"] = form_params
|
2802
|
+
http_info["body"] = body
|
2803
|
+
http_info["response_headers"] = response_headers
|
2804
|
+
|
2805
|
+
return http_info
|
2806
|
+
|
1510
2807
|
def show_record_detail_async(self, request):
|
1511
2808
|
r"""获取构建记录信息
|
1512
2809
|
|
@@ -1574,6 +2871,205 @@ class CodeArtsBuildAsyncClient(Client):
|
|
1574
2871
|
|
1575
2872
|
return http_info
|
1576
2873
|
|
2874
|
+
def show_report_summary_async(self, request):
|
2875
|
+
r"""获取覆盖率接口
|
2876
|
+
|
2877
|
+
获取覆盖率接口
|
2878
|
+
|
2879
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2880
|
+
|
2881
|
+
|
2882
|
+
:param request: Request instance for ShowReportSummary
|
2883
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowReportSummaryRequest`
|
2884
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowReportSummaryResponse`
|
2885
|
+
"""
|
2886
|
+
http_info = self._show_report_summary_http_info(request)
|
2887
|
+
return self._call_api(**http_info)
|
2888
|
+
|
2889
|
+
def show_report_summary_async_invoker(self, request):
|
2890
|
+
http_info = self._show_report_summary_http_info(request)
|
2891
|
+
return AsyncInvoker(self, http_info)
|
2892
|
+
|
2893
|
+
def _show_report_summary_http_info(self, request):
|
2894
|
+
http_info = {
|
2895
|
+
"method": "GET",
|
2896
|
+
"resource_path": "/v1/report/{job_id}/summary",
|
2897
|
+
"request_type": request.__class__.__name__,
|
2898
|
+
"response_type": "ShowReportSummaryResponse"
|
2899
|
+
}
|
2900
|
+
|
2901
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2902
|
+
|
2903
|
+
cname = None
|
2904
|
+
|
2905
|
+
collection_formats = {}
|
2906
|
+
|
2907
|
+
path_params = {}
|
2908
|
+
if 'job_id' in local_var_params:
|
2909
|
+
path_params['job_id'] = local_var_params['job_id']
|
2910
|
+
|
2911
|
+
query_params = []
|
2912
|
+
if 'build_no' in local_var_params:
|
2913
|
+
query_params.append(('build_no', local_var_params['build_no']))
|
2914
|
+
|
2915
|
+
header_params = {}
|
2916
|
+
|
2917
|
+
form_params = {}
|
2918
|
+
|
2919
|
+
body = None
|
2920
|
+
if isinstance(request, SdkStreamRequest):
|
2921
|
+
body = request.get_file_stream()
|
2922
|
+
|
2923
|
+
response_headers = []
|
2924
|
+
|
2925
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2926
|
+
['application/json'])
|
2927
|
+
|
2928
|
+
auth_settings = ['apig-auth-iam']
|
2929
|
+
|
2930
|
+
http_info["cname"] = cname
|
2931
|
+
http_info["collection_formats"] = collection_formats
|
2932
|
+
http_info["path_params"] = path_params
|
2933
|
+
http_info["query_params"] = query_params
|
2934
|
+
http_info["header_params"] = header_params
|
2935
|
+
http_info["post_params"] = form_params
|
2936
|
+
http_info["body"] = body
|
2937
|
+
http_info["response_headers"] = response_headers
|
2938
|
+
|
2939
|
+
return http_info
|
2940
|
+
|
2941
|
+
def show_running_status_async(self, request):
|
2942
|
+
r"""查看任务是否在构建
|
2943
|
+
|
2944
|
+
查看任务是否在构建
|
2945
|
+
|
2946
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2947
|
+
|
2948
|
+
|
2949
|
+
:param request: Request instance for ShowRunningStatus
|
2950
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRunningStatusRequest`
|
2951
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRunningStatusResponse`
|
2952
|
+
"""
|
2953
|
+
http_info = self._show_running_status_http_info(request)
|
2954
|
+
return self._call_api(**http_info)
|
2955
|
+
|
2956
|
+
def show_running_status_async_invoker(self, request):
|
2957
|
+
http_info = self._show_running_status_http_info(request)
|
2958
|
+
return AsyncInvoker(self, http_info)
|
2959
|
+
|
2960
|
+
def _show_running_status_http_info(self, request):
|
2961
|
+
http_info = {
|
2962
|
+
"method": "GET",
|
2963
|
+
"resource_path": "/v1/job/{job_id}/running-status",
|
2964
|
+
"request_type": request.__class__.__name__,
|
2965
|
+
"response_type": "ShowRunningStatusResponse"
|
2966
|
+
}
|
2967
|
+
|
2968
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2969
|
+
|
2970
|
+
cname = None
|
2971
|
+
|
2972
|
+
collection_formats = {}
|
2973
|
+
|
2974
|
+
path_params = {}
|
2975
|
+
if 'job_id' in local_var_params:
|
2976
|
+
path_params['job_id'] = local_var_params['job_id']
|
2977
|
+
|
2978
|
+
query_params = []
|
2979
|
+
|
2980
|
+
header_params = {}
|
2981
|
+
|
2982
|
+
form_params = {}
|
2983
|
+
|
2984
|
+
body = None
|
2985
|
+
if isinstance(request, SdkStreamRequest):
|
2986
|
+
body = request.get_file_stream()
|
2987
|
+
|
2988
|
+
response_headers = []
|
2989
|
+
|
2990
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2991
|
+
['application/json'])
|
2992
|
+
|
2993
|
+
auth_settings = ['apig-auth-iam']
|
2994
|
+
|
2995
|
+
http_info["cname"] = cname
|
2996
|
+
http_info["collection_formats"] = collection_formats
|
2997
|
+
http_info["path_params"] = path_params
|
2998
|
+
http_info["query_params"] = query_params
|
2999
|
+
http_info["header_params"] = header_params
|
3000
|
+
http_info["post_params"] = form_params
|
3001
|
+
http_info["body"] = body
|
3002
|
+
http_info["response_headers"] = response_headers
|
3003
|
+
|
3004
|
+
return http_info
|
3005
|
+
|
3006
|
+
def show_yaml_template_async(self, request):
|
3007
|
+
r"""获取代码化构建默认模板
|
3008
|
+
|
3009
|
+
获取代码化构建默认模板
|
3010
|
+
|
3011
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3012
|
+
|
3013
|
+
|
3014
|
+
:param request: Request instance for ShowYamlTemplate
|
3015
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowYamlTemplateRequest`
|
3016
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowYamlTemplateResponse`
|
3017
|
+
"""
|
3018
|
+
http_info = self._show_yaml_template_http_info(request)
|
3019
|
+
return self._call_api(**http_info)
|
3020
|
+
|
3021
|
+
def show_yaml_template_async_invoker(self, request):
|
3022
|
+
http_info = self._show_yaml_template_http_info(request)
|
3023
|
+
return AsyncInvoker(self, http_info)
|
3024
|
+
|
3025
|
+
def _show_yaml_template_http_info(self, request):
|
3026
|
+
http_info = {
|
3027
|
+
"method": "GET",
|
3028
|
+
"resource_path": "/v1/template/{job_id}/default-template",
|
3029
|
+
"request_type": request.__class__.__name__,
|
3030
|
+
"response_type": "ShowYamlTemplateResponse"
|
3031
|
+
}
|
3032
|
+
|
3033
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3034
|
+
|
3035
|
+
cname = None
|
3036
|
+
|
3037
|
+
collection_formats = {}
|
3038
|
+
|
3039
|
+
path_params = {}
|
3040
|
+
if 'job_id' in local_var_params:
|
3041
|
+
path_params['job_id'] = local_var_params['job_id']
|
3042
|
+
|
3043
|
+
query_params = []
|
3044
|
+
if 'default_host' in local_var_params:
|
3045
|
+
query_params.append(('default_host', local_var_params['default_host']))
|
3046
|
+
|
3047
|
+
header_params = {}
|
3048
|
+
|
3049
|
+
form_params = {}
|
3050
|
+
|
3051
|
+
body = None
|
3052
|
+
if isinstance(request, SdkStreamRequest):
|
3053
|
+
body = request.get_file_stream()
|
3054
|
+
|
3055
|
+
response_headers = []
|
3056
|
+
|
3057
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3058
|
+
['application/json'])
|
3059
|
+
|
3060
|
+
auth_settings = ['apig-auth-iam']
|
3061
|
+
|
3062
|
+
http_info["cname"] = cname
|
3063
|
+
http_info["collection_formats"] = collection_formats
|
3064
|
+
http_info["path_params"] = path_params
|
3065
|
+
http_info["query_params"] = query_params
|
3066
|
+
http_info["header_params"] = header_params
|
3067
|
+
http_info["post_params"] = form_params
|
3068
|
+
http_info["body"] = body
|
3069
|
+
http_info["response_headers"] = response_headers
|
3070
|
+
|
3071
|
+
return http_info
|
3072
|
+
|
1577
3073
|
def stop_build_job_async(self, request):
|
1578
3074
|
r"""停止构建任务
|
1579
3075
|
|