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.
Files changed (88) hide show
  1. huaweicloudsdkcodeartsbuild/v3/__init__.py +77 -2
  2. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1619 -123
  3. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1619 -123
  4. huaweicloudsdkcodeartsbuild/v3/model/__init__.py +77 -2
  5. huaweicloudsdkcodeartsbuild/v3/model/build_info_record.py +604 -0
  6. huaweicloudsdkcodeartsbuild/v3/model/build_info_record_commit_info.py +144 -0
  7. huaweicloudsdkcodeartsbuild/v3/model/build_params.py +173 -0
  8. huaweicloudsdkcodeartsbuild/v3/model/build_params_body_result.py +115 -0
  9. huaweicloudsdkcodeartsbuild/v3/model/build_record.py +981 -0
  10. huaweicloudsdkcodeartsbuild/v3/model/build_record_build_record_type.py +202 -0
  11. huaweicloudsdkcodeartsbuild/v3/model/build_record_parameters.py +202 -0
  12. huaweicloudsdkcodeartsbuild/v3/model/build_stage_record.py +608 -0
  13. huaweicloudsdkcodeartsbuild/v3/model/constraints.py +173 -0
  14. huaweicloudsdkcodeartsbuild/v3/model/download_real_time_log_request.py +199 -0
  15. huaweicloudsdkcodeartsbuild/v3/model/download_real_time_log_response.py +170 -0
  16. huaweicloudsdkcodeartsbuild/v3/model/{flow_graph_result.py → flow_graph2_result.py} +15 -15
  17. huaweicloudsdkcodeartsbuild/v3/model/{flow_graph_result_edges.py → flow_graph2_result_edges.py} +11 -11
  18. huaweicloudsdkcodeartsbuild/v3/model/full_stages_result.py +115 -0
  19. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_body_result.py +231 -0
  20. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_request.py +228 -0
  21. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_response.py +170 -0
  22. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_request.py +228 -0
  23. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_response.py +170 -0
  24. huaweicloudsdkcodeartsbuild/v3/model/list_official_template_request.py +173 -0
  25. huaweicloudsdkcodeartsbuild/v3/model/list_official_template_response.py +170 -0
  26. huaweicloudsdkcodeartsbuild/v3/model/list_official_template_result.py +144 -0
  27. huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_request.py +373 -0
  28. huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_response.py +145 -0
  29. huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_request.py +173 -0
  30. huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_response.py +228 -0
  31. huaweicloudsdkcodeartsbuild/v3/model/parameter.py +144 -0
  32. huaweicloudsdkcodeartsbuild/v3/model/params.py +289 -0
  33. huaweicloudsdkcodeartsbuild/v3/model/real_time_log_response_body_result.py +202 -0
  34. huaweicloudsdkcodeartsbuild/v3/model/recycling_job.py +347 -0
  35. huaweicloudsdkcodeartsbuild/v3/model/recycling_jobs_result.py +173 -0
  36. huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_request.py +84 -0
  37. huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_response.py +170 -0
  38. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_request.py +114 -0
  39. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_response.py +174 -0
  40. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_full_stages_request.py +143 -0
  41. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_full_stages_response.py +170 -0
  42. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_request.py +114 -0
  43. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_response.py +170 -0
  44. huaweicloudsdkcodeartsbuild/v3/model/show_flow_graph_response.py +4 -4
  45. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_request.py +84 -0
  46. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response.py +170 -0
  47. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result.py +115 -0
  48. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result_image_templates.py +318 -0
  49. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_request.py +199 -0
  50. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_response.py +141 -0
  51. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_result.py +260 -0
  52. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_result_every_day_report.py +144 -0
  53. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_request.py +199 -0
  54. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_response.py +141 -0
  55. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result.py +231 -0
  56. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result_chart.py +202 -0
  57. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_request.py +170 -0
  58. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_response.py +145 -0
  59. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_request.py +143 -0
  60. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_response.py +170 -0
  61. huaweicloudsdkcodeartsbuild/v3/model/show_job_info_request.py +114 -0
  62. huaweicloudsdkcodeartsbuild/v3/model/show_job_info_response.py +170 -0
  63. huaweicloudsdkcodeartsbuild/v3/model/show_job_info_result.py +724 -0
  64. huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_request.py +114 -0
  65. huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_response.py +145 -0
  66. huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_result.py +492 -0
  67. huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_request.py +84 -0
  68. huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_response.py +174 -0
  69. huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_request.py +114 -0
  70. huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_response.py +170 -0
  71. huaweicloudsdkcodeartsbuild/v3/model/show_report_summary.py +463 -0
  72. huaweicloudsdkcodeartsbuild/v3/model/show_report_summary_body_result.py +140 -0
  73. huaweicloudsdkcodeartsbuild/v3/model/show_report_summary_request.py +142 -0
  74. huaweicloudsdkcodeartsbuild/v3/model/show_report_summary_response.py +170 -0
  75. huaweicloudsdkcodeartsbuild/v3/model/show_running_status_request.py +114 -0
  76. huaweicloudsdkcodeartsbuild/v3/model/show_running_status_response.py +170 -0
  77. huaweicloudsdkcodeartsbuild/v3/model/show_running_status_result.py +202 -0
  78. huaweicloudsdkcodeartsbuild/v3/model/show_user_project_permission_result.py +260 -0
  79. huaweicloudsdkcodeartsbuild/v3/model/show_yaml_template_request.py +143 -0
  80. huaweicloudsdkcodeartsbuild/v3/model/show_yaml_template_response.py +174 -0
  81. huaweicloudsdkcodeartsbuild/v3/model/system_parameters_result.py +173 -0
  82. huaweicloudsdkcodeartsbuild/v3/model/template_list.py +459 -0
  83. huaweicloudsdkcodeartsbuild/v3/region/codeartsbuild_region.py +6 -0
  84. {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/METADATA +2 -2
  85. {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/RECORD +88 -13
  86. {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/LICENSE +0 -0
  87. {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/WHEEL +0 -0
  88. {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/top_level.txt +0 -0
@@ -559,6 +559,77 @@ class CodeArtsBuildClient(Client):
559
559
 
560
560
  return http_info
561
561
 
562
+ def download_real_time_log(self, request):
563
+ r"""下载构建实时日志
564
+
565
+ 下载构建实时日志
566
+
567
+ Please refer to HUAWEI cloud API Explorer for details.
568
+
569
+ :param request: Request instance for DownloadRealTimeLog
570
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadRealTimeLogRequest`
571
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadRealTimeLogResponse`
572
+ """
573
+ http_info = self._download_real_time_log_http_info(request)
574
+ return self._call_api(**http_info)
575
+
576
+ def download_real_time_log_invoker(self, request):
577
+ http_info = self._download_real_time_log_http_info(request)
578
+ return SyncInvoker(self, http_info)
579
+
580
+ @classmethod
581
+ def _download_real_time_log_http_info(cls, 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(self, request):
563
634
  r"""下载构建步骤日志
564
635
 
@@ -693,31 +764,31 @@ class CodeArtsBuildClient(Client):
693
764
 
694
765
  return http_info
695
766
 
696
- def list_job_config(self, request):
697
- r"""获取构建任务详情
767
+ def list_build_info_record(self, request):
768
+ r"""获取任务构建记录列表
698
769
 
699
- 获取构建任务详情
770
+ 获取任务构建记录列表
700
771
 
701
772
  Please refer to HUAWEI cloud API Explorer for details.
702
773
 
703
- :param request: Request instance for ListJobConfig
704
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListJobConfigRequest`
705
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListJobConfigResponse`
774
+ :param request: Request instance for ListBuildInfoRecord
775
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListBuildInfoRecordRequest`
776
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListBuildInfoRecordResponse`
706
777
  """
707
- http_info = self._list_job_config_http_info(request)
778
+ http_info = self._list_build_info_record_http_info(request)
708
779
  return self._call_api(**http_info)
709
780
 
710
- def list_job_config_invoker(self, request):
711
- http_info = self._list_job_config_http_info(request)
781
+ def list_build_info_record_invoker(self, request):
782
+ http_info = self._list_build_info_record_http_info(request)
712
783
  return SyncInvoker(self, http_info)
713
784
 
714
785
  @classmethod
715
- def _list_job_config_http_info(cls, request):
786
+ def _list_build_info_record_http_info(cls, request):
716
787
  http_info = {
717
788
  "method": "GET",
718
- "resource_path": "/v3/jobs/{job_id}/query",
789
+ "resource_path": "/v3/jobs/{job_id}/build-info-records",
719
790
  "request_type": request.__class__.__name__,
720
- "response_type": "ListJobConfigResponse"
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 CodeArtsBuildClient(Client):
731
802
  path_params['job_id'] = local_var_params['job_id']
732
803
 
733
804
  query_params = []
734
- if 'get_all_params' in local_var_params:
735
- query_params.append(('get_all_params', local_var_params['get_all_params']))
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 CodeArtsBuildClient(Client):
760
837
 
761
838
  return http_info
762
839
 
763
- def list_notice(self, request):
764
- r"""查询通知
840
+ def list_build_info_record_by_job_id(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
- :param request: Request instance for ListNotice
771
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListNoticeRequest`
772
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListNoticeResponse`
847
+ :param request: Request instance for ListBuildInfoRecordByJobId
848
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListBuildInfoRecordByJobIdRequest`
849
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListBuildInfoRecordByJobIdResponse`
773
850
  """
774
- http_info = self._list_notice_http_info(request)
851
+ http_info = self._list_build_info_record_by_job_id_http_info(request)
775
852
  return self._call_api(**http_info)
776
853
 
777
- def list_notice_invoker(self, request):
778
- http_info = self._list_notice_http_info(request)
854
+ def list_build_info_record_by_job_id_invoker(self, request):
855
+ http_info = self._list_build_info_record_by_job_id_http_info(request)
779
856
  return SyncInvoker(self, http_info)
780
857
 
781
858
  @classmethod
782
- def _list_notice_http_info(cls, request):
859
+ def _list_build_info_record_by_job_id_http_info(cls, request):
783
860
  http_info = {
784
861
  "method": "GET",
785
- "resource_path": "/v3/jobs/notice/{job_id}/query",
862
+ "resource_path": "/v1/record/{job_id}/list",
786
863
  "request_type": request.__class__.__name__,
787
- "response_type": "ListNoticeResponse"
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 CodeArtsBuildClient(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 CodeArtsBuildClient(Client):
825
910
 
826
911
  return http_info
827
912
 
828
- def list_templates(self, request):
829
- r"""查询构建模板
913
+ def list_job_config(self, request):
914
+ r"""获取构建任务详情
830
915
 
831
- 查询构建模板
916
+ 获取构建任务详情
832
917
 
833
918
  Please refer to HUAWEI cloud API Explorer for details.
834
919
 
835
- :param request: Request instance for ListTemplates
836
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListTemplatesRequest`
837
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListTemplatesResponse`
920
+ :param request: Request instance for ListJobConfig
921
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListJobConfigRequest`
922
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListJobConfigResponse`
838
923
  """
839
- http_info = self._list_templates_http_info(request)
924
+ http_info = self._list_job_config_http_info(request)
840
925
  return self._call_api(**http_info)
841
926
 
842
- def list_templates_invoker(self, request):
843
- http_info = self._list_templates_http_info(request)
927
+ def list_job_config_invoker(self, request):
928
+ http_info = self._list_job_config_http_info(request)
844
929
  return SyncInvoker(self, http_info)
845
930
 
846
931
  @classmethod
847
- def _list_templates_http_info(cls, request):
932
+ def _list_job_config_http_info(cls, request):
848
933
  http_info = {
849
934
  "method": "GET",
850
- "resource_path": "/v3/templates/query",
935
+ "resource_path": "/v3/jobs/{job_id}/query",
851
936
  "request_type": request.__class__.__name__,
852
- "response_type": "ListTemplatesResponse"
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 CodeArtsBuildClient(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 'name' in local_var_params:
865
- query_params.append(('name', local_var_params['name']))
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 CodeArtsBuildClient(Client):
894
977
 
895
978
  return http_info
896
979
 
897
- def run_job(self, request):
898
- r"""执行构建任务
980
+ def list_notice(self, request):
981
+ r"""查询通知
899
982
 
900
- 执行构建任务,可传自定义参数
983
+ 查询通知
901
984
 
902
985
  Please refer to HUAWEI cloud API Explorer for details.
903
986
 
904
- :param request: Request instance for RunJob
905
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.RunJobRequest`
906
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.RunJobResponse`
987
+ :param request: Request instance for ListNotice
988
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListNoticeRequest`
989
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListNoticeResponse`
907
990
  """
908
- http_info = self._run_job_http_info(request)
991
+ http_info = self._list_notice_http_info(request)
909
992
  return self._call_api(**http_info)
910
993
 
911
- def run_job_invoker(self, request):
912
- http_info = self._run_job_http_info(request)
994
+ def list_notice_invoker(self, request):
995
+ http_info = self._list_notice_http_info(request)
913
996
  return SyncInvoker(self, http_info)
914
997
 
915
998
  @classmethod
916
- def _run_job_http_info(cls, request):
999
+ def _list_notice_http_info(cls, request):
917
1000
  http_info = {
918
- "method": "POST",
919
- "resource_path": "/v3/jobs/build",
1001
+ "method": "GET",
1002
+ "resource_path": "/v3/jobs/notice/{job_id}/query",
920
1003
  "request_type": request.__class__.__name__,
921
- "response_type": "RunJobResponse"
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 CodeArtsBuildClient(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 CodeArtsBuildClient(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 CodeArtsBuildClient(Client):
959
1042
 
960
1043
  return http_info
961
1044
 
962
- def show_history_details(self, request):
963
- r"""获取构建历史详情信息接口
1045
+ def list_official_template(self, request):
1046
+ r"""查询官方模版
964
1047
 
965
- 获取构建历史详情信息接口
1048
+ 查询官方模版
966
1049
 
967
1050
  Please refer to HUAWEI cloud API Explorer for details.
968
1051
 
969
- :param request: Request instance for ShowHistoryDetails
970
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowHistoryDetailsRequest`
971
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowHistoryDetailsResponse`
1052
+ :param request: Request instance for ListOfficialTemplate
1053
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListOfficialTemplateRequest`
1054
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListOfficialTemplateResponse`
972
1055
  """
973
- http_info = self._show_history_details_http_info(request)
1056
+ http_info = self._list_official_template_http_info(request)
974
1057
  return self._call_api(**http_info)
975
1058
 
976
- def show_history_details_invoker(self, request):
977
- http_info = self._show_history_details_http_info(request)
1059
+ def list_official_template_invoker(self, request):
1060
+ http_info = self._list_official_template_http_info(request)
978
1061
  return SyncInvoker(self, http_info)
979
1062
 
980
1063
  @classmethod
981
- def _show_history_details_http_info(cls, request):
1064
+ def _list_official_template_http_info(cls, request):
982
1065
  http_info = {
983
1066
  "method": "GET",
984
- "resource_path": "/v3/jobs/{job_id}/{build_number}/history-details",
1067
+ "resource_path": "/v1/template/officialtemplates",
985
1068
  "request_type": request.__class__.__name__,
986
- "response_type": "ShowHistoryDetailsResponse"
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 CodeArtsBuildClient(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 CodeArtsBuildClient(Client):
1026
1111
 
1027
1112
  return http_info
1028
1113
 
1029
- def show_job_list_by_project_id(self, request):
1030
- r"""查看项目下用户的构建任务列表
1114
+ def list_project_jobs(self, request):
1115
+ r"""查询项目任务列表
1031
1116
 
1032
- 查看项目下用户的构建任务列表
1117
+ 查询项目任务列表
1033
1118
 
1034
1119
  Please refer to HUAWEI cloud API Explorer for details.
1035
1120
 
1036
- :param request: Request instance for ShowJobListByProjectId
1037
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobListByProjectIdRequest`
1038
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobListByProjectIdResponse`
1121
+ :param request: Request instance for ListProjectJobs
1122
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListProjectJobsRequest`
1123
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListProjectJobsResponse`
1039
1124
  """
1040
- http_info = self._show_job_list_by_project_id_http_info(request)
1125
+ http_info = self._list_project_jobs_http_info(request)
1041
1126
  return self._call_api(**http_info)
1042
1127
 
1043
- def show_job_list_by_project_id_invoker(self, request):
1044
- http_info = self._show_job_list_by_project_id_http_info(request)
1128
+ def list_project_jobs_invoker(self, request):
1129
+ http_info = self._list_project_jobs_http_info(request)
1045
1130
  return SyncInvoker(self, http_info)
1046
1131
 
1047
1132
  @classmethod
1048
- def _show_job_list_by_project_id_http_info(cls, request):
1133
+ def _list_project_jobs_http_info(cls, request):
1049
1134
  http_info = {
1050
1135
  "method": "GET",
1051
- "resource_path": "/v3/{project_id}/jobs",
1136
+ "resource_path": "/v1/job/{project_id}/list",
1052
1137
  "request_type": request.__class__.__name__,
1053
- "response_type": "ShowJobListByProjectIdResponse"
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 CodeArtsBuildClient(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 CodeArtsBuildClient(Client):
1095
1194
 
1096
1195
  return http_info
1097
1196
 
1098
- def show_job_status(self, request):
1099
- r"""查看任务运行状态
1197
+ def list_recycling_job(self, request):
1198
+ r"""查看回收站中删除的构建任务列表
1100
1199
 
1101
- 查看任务运行状态
1200
+ 查看回收站中删除的构建任务列表
1102
1201
 
1103
1202
  Please refer to HUAWEI cloud API Explorer for details.
1104
1203
 
1105
- :param request: Request instance for ShowJobStatus
1106
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobStatusRequest`
1107
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobStatusResponse`
1204
+ :param request: Request instance for ListRecyclingJob
1205
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecyclingJobRequest`
1206
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecyclingJobResponse`
1108
1207
  """
1109
- http_info = self._show_job_status_http_info(request)
1208
+ http_info = self._list_recycling_job_http_info(request)
1110
1209
  return self._call_api(**http_info)
1111
1210
 
1112
- def show_job_status_invoker(self, request):
1113
- http_info = self._show_job_status_http_info(request)
1211
+ def list_recycling_job_invoker(self, request):
1212
+ http_info = self._list_recycling_job_http_info(request)
1114
1213
  return SyncInvoker(self, http_info)
1115
1214
 
1116
1215
  @classmethod
1117
- def _show_job_status_http_info(cls, request):
1216
+ def _list_recycling_job_http_info(cls, request):
1118
1217
  http_info = {
1119
1218
  "method": "GET",
1120
- "resource_path": "/v3/jobs/{job_id}/status",
1219
+ "resource_path": "/v1/job/recycling-jobs",
1121
1220
  "request_type": request.__class__.__name__,
1122
- "response_type": "ShowJobStatusResponse"
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 CodeArtsBuildClient(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 CodeArtsBuildClient(Client):
1160
1263
 
1161
1264
  return http_info
1162
1265
 
1163
- def show_job_success_ratio(self, request):
1164
- r"""根据开始时间和结束时间查看构建任务的构建成功率
1266
+ def list_templates(self, request):
1267
+ r"""查询构建模板
1165
1268
 
1166
- 根据开始时间和结束时间查看构建任务的构建成功率
1269
+ 查询构建模板
1167
1270
 
1168
1271
  Please refer to HUAWEI cloud API Explorer for details.
1169
1272
 
1170
- :param request: Request instance for ShowJobSuccessRatio
1171
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSuccessRatioRequest`
1172
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSuccessRatioResponse`
1273
+ :param request: Request instance for ListTemplates
1274
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListTemplatesRequest`
1275
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListTemplatesResponse`
1173
1276
  """
1174
- http_info = self._show_job_success_ratio_http_info(request)
1277
+ http_info = self._list_templates_http_info(request)
1175
1278
  return self._call_api(**http_info)
1176
1279
 
1177
- def show_job_success_ratio_invoker(self, request):
1178
- http_info = self._show_job_success_ratio_http_info(request)
1280
+ def list_templates_invoker(self, request):
1281
+ http_info = self._list_templates_http_info(request)
1179
1282
  return SyncInvoker(self, http_info)
1180
1283
 
1181
1284
  @classmethod
1182
- def _show_job_success_ratio_http_info(cls, request):
1285
+ def _list_templates_http_info(cls, request):
1183
1286
  http_info = {
1184
1287
  "method": "GET",
1185
- "resource_path": "/v3/jobs/{job_id}/success-ratio",
1288
+ "resource_path": "/v3/templates/query",
1186
1289
  "request_type": request.__class__.__name__,
1187
- "response_type": "ShowJobSuccessRatioResponse"
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 CodeArtsBuildClient(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 'start_time' in local_var_params:
1202
- query_params.append(('start_time', local_var_params['start_time']))
1203
- if 'end_time' in local_var_params:
1204
- query_params.append(('end_time', local_var_params['end_time']))
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,14 +1332,1143 @@ class CodeArtsBuildClient(Client):
1229
1332
 
1230
1333
  return http_info
1231
1334
 
1232
- def show_last_history(self, request):
1233
- r"""查询指定代码仓库最近一次成功的构建历史
1335
+ def run_job(self, request):
1336
+ r"""执行构建任务
1234
1337
 
1235
- 查询指定代码仓库最近一次成功的构建历史
1338
+ 执行构建任务,可传自定义参数
1236
1339
 
1237
1340
  Please refer to HUAWEI cloud API Explorer for details.
1238
1341
 
1239
- :param request: Request instance for ShowLastHistory
1342
+ :param request: Request instance for RunJob
1343
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.RunJobRequest`
1344
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.RunJobResponse`
1345
+ """
1346
+ http_info = self._run_job_http_info(request)
1347
+ return self._call_api(**http_info)
1348
+
1349
+ def run_job_invoker(self, request):
1350
+ http_info = self._run_job_http_info(request)
1351
+ return SyncInvoker(self, http_info)
1352
+
1353
+ @classmethod
1354
+ def _run_job_http_info(cls, 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(self, request):
1401
+ r"""编辑页获取参数类型的接口
1402
+
1403
+ 编辑页获取参数类型的接口
1404
+
1405
+ Please refer to HUAWEI cloud API Explorer for details.
1406
+
1407
+ :param request: Request instance for ShowBuildParamsList
1408
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildParamsListRequest`
1409
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildParamsListResponse`
1410
+ """
1411
+ http_info = self._show_build_params_list_http_info(request)
1412
+ return self._call_api(**http_info)
1413
+
1414
+ def show_build_params_list_invoker(self, request):
1415
+ http_info = self._show_build_params_list_http_info(request)
1416
+ return SyncInvoker(self, http_info)
1417
+
1418
+ @classmethod
1419
+ def _show_build_params_list_http_info(cls, 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(self, request):
1464
+ r"""查询指定构建记录详情
1465
+
1466
+ 查询指定构建记录详情
1467
+
1468
+ Please refer to HUAWEI cloud API Explorer for details.
1469
+
1470
+ :param request: Request instance for ShowBuildRecord
1471
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordRequest`
1472
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordResponse`
1473
+ """
1474
+ http_info = self._show_build_record_http_info(request)
1475
+ return self._call_api(**http_info)
1476
+
1477
+ def show_build_record_invoker(self, request):
1478
+ http_info = self._show_build_record_http_info(request)
1479
+ return SyncInvoker(self, http_info)
1480
+
1481
+ @classmethod
1482
+ def _show_build_record_http_info(cls, 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(self, request):
1529
+ r"""获取构建记录的构建脚本
1530
+
1531
+ 获取构建记录的构建脚本
1532
+
1533
+ Please refer to HUAWEI cloud API Explorer for details.
1534
+
1535
+ :param request: Request instance for ShowBuildRecordBuildScript
1536
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordBuildScriptRequest`
1537
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordBuildScriptResponse`
1538
+ """
1539
+ http_info = self._show_build_record_build_script_http_info(request)
1540
+ return self._call_api(**http_info)
1541
+
1542
+ def show_build_record_build_script_invoker(self, request):
1543
+ http_info = self._show_build_record_build_script_http_info(request)
1544
+ return SyncInvoker(self, http_info)
1545
+
1546
+ @classmethod
1547
+ def _show_build_record_build_script_http_info(cls, 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(self, request):
1594
+ r"""获取任务各阶段信息
1595
+
1596
+ 获取任务各阶段信息
1597
+
1598
+ Please refer to HUAWEI cloud API Explorer for details.
1599
+
1600
+ :param request: Request instance for ShowBuildRecordFullStages
1601
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFullStagesRequest`
1602
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFullStagesResponse`
1603
+ """
1604
+ http_info = self._show_build_record_full_stages_http_info(request)
1605
+ return self._call_api(**http_info)
1606
+
1607
+ def show_build_record_full_stages_invoker(self, request):
1608
+ http_info = self._show_build_record_full_stages_http_info(request)
1609
+ return SyncInvoker(self, http_info)
1610
+
1611
+ @classmethod
1612
+ def _show_build_record_full_stages_http_info(cls, 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(self, request):
1661
+ r"""获取构建历史详情信息接口
1662
+
1663
+ 获取构建历史详情信息接口
1664
+
1665
+ Please refer to HUAWEI cloud API Explorer for details.
1666
+
1667
+ :param request: Request instance for ShowHistoryDetails
1668
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowHistoryDetailsRequest`
1669
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowHistoryDetailsResponse`
1670
+ """
1671
+ http_info = self._show_history_details_http_info(request)
1672
+ return self._call_api(**http_info)
1673
+
1674
+ def show_history_details_invoker(self, request):
1675
+ http_info = self._show_history_details_http_info(request)
1676
+ return SyncInvoker(self, http_info)
1677
+
1678
+ @classmethod
1679
+ def _show_history_details_http_info(cls, 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(self, request):
1728
+ r"""获取镜像模板列表
1729
+
1730
+ 获取镜像模板列表
1731
+
1732
+ Please refer to HUAWEI cloud API Explorer for details.
1733
+
1734
+ :param request: Request instance for ShowImageTemplateList
1735
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowImageTemplateListRequest`
1736
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowImageTemplateListResponse`
1737
+ """
1738
+ http_info = self._show_image_template_list_http_info(request)
1739
+ return self._call_api(**http_info)
1740
+
1741
+ def show_image_template_list_invoker(self, request):
1742
+ http_info = self._show_image_template_list_http_info(request)
1743
+ return SyncInvoker(self, http_info)
1744
+
1745
+ @classmethod
1746
+ def _show_image_template_list_http_info(cls, 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(self, request):
1791
+ r"""查询构建成功率
1792
+
1793
+ 查询构建成功率
1794
+
1795
+ Please refer to HUAWEI cloud API Explorer for details.
1796
+
1797
+ :param request: Request instance for ShowJobBuildSuccessRatio
1798
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioRequest`
1799
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioResponse`
1800
+ """
1801
+ http_info = self._show_job_build_success_ratio_http_info(request)
1802
+ return self._call_api(**http_info)
1803
+
1804
+ def show_job_build_success_ratio_invoker(self, request):
1805
+ http_info = self._show_job_build_success_ratio_http_info(request)
1806
+ return SyncInvoker(self, http_info)
1807
+
1808
+ @classmethod
1809
+ def _show_job_build_success_ratio_http_info(cls, 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(self, request):
1862
+ r"""洞察构建时长
1863
+
1864
+ 洞察构建时长
1865
+
1866
+ Please refer to HUAWEI cloud API Explorer for details.
1867
+
1868
+ :param request: Request instance for ShowJobBuildTime
1869
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildTimeRequest`
1870
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildTimeResponse`
1871
+ """
1872
+ http_info = self._show_job_build_time_http_info(request)
1873
+ return self._call_api(**http_info)
1874
+
1875
+ def show_job_build_time_invoker(self, request):
1876
+ http_info = self._show_job_build_time_http_info(request)
1877
+ return SyncInvoker(self, http_info)
1878
+
1879
+ @classmethod
1880
+ def _show_job_build_time_http_info(cls, 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(self, request):
1933
+ r"""获取构建任务详情
1934
+
1935
+ 获取构建任务详情
1936
+
1937
+ Please refer to HUAWEI cloud API Explorer for details.
1938
+
1939
+ :param request: Request instance for ShowJobConfig
1940
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigRequest`
1941
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigResponse`
1942
+ """
1943
+ http_info = self._show_job_config_http_info(request)
1944
+ return self._call_api(**http_info)
1945
+
1946
+ def show_job_config_invoker(self, request):
1947
+ http_info = self._show_job_config_http_info(request)
1948
+ return SyncInvoker(self, http_info)
1949
+
1950
+ @classmethod
1951
+ def _show_job_config_http_info(cls, 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(self, request):
2000
+ r"""获取构建任务配置的对比差异
2001
+
2002
+ 获取构建任务配置的对比差异
2003
+
2004
+ Please refer to HUAWEI cloud API Explorer for details.
2005
+
2006
+ :param request: Request instance for ShowJobConfigDiff
2007
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigDiffRequest`
2008
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigDiffResponse`
2009
+ """
2010
+ http_info = self._show_job_config_diff_http_info(request)
2011
+ return self._call_api(**http_info)
2012
+
2013
+ def show_job_config_diff_invoker(self, request):
2014
+ http_info = self._show_job_config_diff_http_info(request)
2015
+ return SyncInvoker(self, http_info)
2016
+
2017
+ @classmethod
2018
+ def _show_job_config_diff_http_info(cls, 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(self, request):
2069
+ r"""查看构建任务构建信息
2070
+
2071
+ 查看构建任务构建信息
2072
+
2073
+ Please refer to HUAWEI cloud API Explorer for details.
2074
+
2075
+ :param request: Request instance for ShowJobInfo
2076
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobInfoRequest`
2077
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobInfoResponse`
2078
+ """
2079
+ http_info = self._show_job_info_http_info(request)
2080
+ return self._call_api(**http_info)
2081
+
2082
+ def show_job_info_invoker(self, request):
2083
+ http_info = self._show_job_info_http_info(request)
2084
+ return SyncInvoker(self, http_info)
2085
+
2086
+ @classmethod
2087
+ def _show_job_info_http_info(cls, 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(self, request):
2134
+ r"""查看项目下用户的构建任务列表
2135
+
2136
+ 查看项目下用户的构建任务列表
2137
+
2138
+ Please refer to HUAWEI cloud API Explorer for details.
2139
+
2140
+ :param request: Request instance for ShowJobListByProjectId
2141
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobListByProjectIdRequest`
2142
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobListByProjectIdResponse`
2143
+ """
2144
+ http_info = self._show_job_list_by_project_id_http_info(request)
2145
+ return self._call_api(**http_info)
2146
+
2147
+ def show_job_list_by_project_id_invoker(self, request):
2148
+ http_info = self._show_job_list_by_project_id_http_info(request)
2149
+ return SyncInvoker(self, http_info)
2150
+
2151
+ @classmethod
2152
+ def _show_job_list_by_project_id_http_info(cls, 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(self, request):
2203
+ r"""获取构建任务的角色权限矩阵信息
2204
+
2205
+ 获取构建任务的角色权限矩阵信息
2206
+
2207
+ Please refer to HUAWEI cloud API Explorer for details.
2208
+
2209
+ :param request: Request instance for ShowJobRolePermission
2210
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobRolePermissionRequest`
2211
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobRolePermissionResponse`
2212
+ """
2213
+ http_info = self._show_job_role_permission_http_info(request)
2214
+ return self._call_api(**http_info)
2215
+
2216
+ def show_job_role_permission_invoker(self, request):
2217
+ http_info = self._show_job_role_permission_http_info(request)
2218
+ return SyncInvoker(self, http_info)
2219
+
2220
+ @classmethod
2221
+ def _show_job_role_permission_http_info(cls, 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(self, request):
2268
+ r"""查看任务运行状态
2269
+
2270
+ 查看任务运行状态
2271
+
2272
+ Please refer to HUAWEI cloud API Explorer for details.
2273
+
2274
+ :param request: Request instance for ShowJobStatus
2275
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobStatusRequest`
2276
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobStatusResponse`
2277
+ """
2278
+ http_info = self._show_job_status_http_info(request)
2279
+ return self._call_api(**http_info)
2280
+
2281
+ def show_job_status_invoker(self, request):
2282
+ http_info = self._show_job_status_http_info(request)
2283
+ return SyncInvoker(self, http_info)
2284
+
2285
+ @classmethod
2286
+ def _show_job_status_http_info(cls, 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(self, request):
2333
+ r"""根据开始时间和结束时间查看构建任务的构建成功率
2334
+
2335
+ 根据开始时间和结束时间查看构建任务的构建成功率
2336
+
2337
+ Please refer to HUAWEI cloud API Explorer for details.
2338
+
2339
+ :param request: Request instance for ShowJobSuccessRatio
2340
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSuccessRatioRequest`
2341
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSuccessRatioResponse`
2342
+ """
2343
+ http_info = self._show_job_success_ratio_http_info(request)
2344
+ return self._call_api(**http_info)
2345
+
2346
+ def show_job_success_ratio_invoker(self, request):
2347
+ http_info = self._show_job_success_ratio_http_info(request)
2348
+ return SyncInvoker(self, http_info)
2349
+
2350
+ @classmethod
2351
+ def _show_job_success_ratio_http_info(cls, 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(self, request):
2402
+ r"""查看系统预定义参数
2403
+
2404
+ 查看系统预定义参数
2405
+
2406
+ Please refer to HUAWEI cloud API Explorer for details.
2407
+
2408
+ :param request: Request instance for ShowJobSystemParameters
2409
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSystemParametersRequest`
2410
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSystemParametersResponse`
2411
+ """
2412
+ http_info = self._show_job_system_parameters_http_info(request)
2413
+ return self._call_api(**http_info)
2414
+
2415
+ def show_job_system_parameters_invoker(self, request):
2416
+ http_info = self._show_job_system_parameters_http_info(request)
2417
+ return SyncInvoker(self, http_info)
2418
+
2419
+ @classmethod
2420
+ def _show_job_system_parameters_http_info(cls, 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(self, request):
2465
+ r"""查询指定代码仓库最近一次成功的构建历史
2466
+
2467
+ 查询指定代码仓库最近一次成功的构建历史
2468
+
2469
+ Please refer to HUAWEI cloud API Explorer for details.
2470
+
2471
+ :param request: Request instance for ShowLastHistory
1240
2472
  :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowLastHistoryRequest`
1241
2473
  :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowLastHistoryResponse`
1242
2474
  """
@@ -1507,6 +2739,71 @@ class CodeArtsBuildClient(Client):
1507
2739
 
1508
2740
  return http_info
1509
2741
 
2742
+ def show_project_permission(self, request):
2743
+ r"""获取用户权限
2744
+
2745
+ 获取用户权限
2746
+
2747
+ Please refer to HUAWEI cloud API Explorer for details.
2748
+
2749
+ :param request: Request instance for ShowProjectPermission
2750
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowProjectPermissionRequest`
2751
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowProjectPermissionResponse`
2752
+ """
2753
+ http_info = self._show_project_permission_http_info(request)
2754
+ return self._call_api(**http_info)
2755
+
2756
+ def show_project_permission_invoker(self, request):
2757
+ http_info = self._show_project_permission_http_info(request)
2758
+ return SyncInvoker(self, http_info)
2759
+
2760
+ @classmethod
2761
+ def _show_project_permission_http_info(cls, 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(self, request):
1511
2808
  r"""获取构建记录信息
1512
2809
 
@@ -1574,6 +2871,205 @@ class CodeArtsBuildClient(Client):
1574
2871
 
1575
2872
  return http_info
1576
2873
 
2874
+ def show_report_summary(self, request):
2875
+ r"""获取覆盖率接口
2876
+
2877
+ 获取覆盖率接口
2878
+
2879
+ Please refer to HUAWEI cloud API Explorer for details.
2880
+
2881
+ :param request: Request instance for ShowReportSummary
2882
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowReportSummaryRequest`
2883
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowReportSummaryResponse`
2884
+ """
2885
+ http_info = self._show_report_summary_http_info(request)
2886
+ return self._call_api(**http_info)
2887
+
2888
+ def show_report_summary_invoker(self, request):
2889
+ http_info = self._show_report_summary_http_info(request)
2890
+ return SyncInvoker(self, http_info)
2891
+
2892
+ @classmethod
2893
+ def _show_report_summary_http_info(cls, 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(self, request):
2942
+ r"""查看任务是否在构建
2943
+
2944
+ 查看任务是否在构建
2945
+
2946
+ Please refer to HUAWEI cloud API Explorer for details.
2947
+
2948
+ :param request: Request instance for ShowRunningStatus
2949
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRunningStatusRequest`
2950
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRunningStatusResponse`
2951
+ """
2952
+ http_info = self._show_running_status_http_info(request)
2953
+ return self._call_api(**http_info)
2954
+
2955
+ def show_running_status_invoker(self, request):
2956
+ http_info = self._show_running_status_http_info(request)
2957
+ return SyncInvoker(self, http_info)
2958
+
2959
+ @classmethod
2960
+ def _show_running_status_http_info(cls, 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(self, request):
3007
+ r"""获取代码化构建默认模板
3008
+
3009
+ 获取代码化构建默认模板
3010
+
3011
+ Please refer to HUAWEI cloud API Explorer for details.
3012
+
3013
+ :param request: Request instance for ShowYamlTemplate
3014
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowYamlTemplateRequest`
3015
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowYamlTemplateResponse`
3016
+ """
3017
+ http_info = self._show_yaml_template_http_info(request)
3018
+ return self._call_api(**http_info)
3019
+
3020
+ def show_yaml_template_invoker(self, request):
3021
+ http_info = self._show_yaml_template_http_info(request)
3022
+ return SyncInvoker(self, http_info)
3023
+
3024
+ @classmethod
3025
+ def _show_yaml_template_http_info(cls, 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(self, request):
1578
3074
  r"""停止构建任务
1579
3075