huaweicloudsdkcodeartsbuild 3.1.149__py2.py3-none-any.whl → 3.1.151__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 (92) hide show
  1. huaweicloudsdkcodeartsbuild/v3/__init__.py +83 -0
  2. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1885 -128
  3. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1885 -128
  4. huaweicloudsdkcodeartsbuild/v3/model/__init__.py +83 -0
  5. huaweicloudsdkcodeartsbuild/v3/model/add_keystore_permission_response_body.py +347 -0
  6. huaweicloudsdkcodeartsbuild/v3/model/build_params.py +173 -0
  7. huaweicloudsdkcodeartsbuild/v3/model/build_params_body_result.py +115 -0
  8. huaweicloudsdkcodeartsbuild/v3/model/build_record.py +981 -0
  9. huaweicloudsdkcodeartsbuild/v3/model/build_record_build_record_type.py +202 -0
  10. huaweicloudsdkcodeartsbuild/v3/model/build_record_parameters.py +202 -0
  11. huaweicloudsdkcodeartsbuild/v3/model/check_job_name_is_exists_request.py +142 -0
  12. huaweicloudsdkcodeartsbuild/v3/model/check_job_name_is_exists_response.py +145 -0
  13. huaweicloudsdkcodeartsbuild/v3/model/constraints.py +173 -0
  14. huaweicloudsdkcodeartsbuild/v3/model/download_keystore_by_name_request.py +170 -0
  15. huaweicloudsdkcodeartsbuild/v3/model/download_keystore_by_name_response.py +85 -0
  16. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_request.py +228 -0
  17. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_response.py +170 -0
  18. huaweicloudsdkcodeartsbuild/v3/model/list_keystore_request.py +84 -0
  19. huaweicloudsdkcodeartsbuild/v3/model/list_keystore_response.py +145 -0
  20. huaweicloudsdkcodeartsbuild/v3/model/list_keystore_result.py +144 -0
  21. huaweicloudsdkcodeartsbuild/v3/model/list_official_template_request.py +173 -0
  22. huaweicloudsdkcodeartsbuild/v3/model/list_official_template_response.py +170 -0
  23. huaweicloudsdkcodeartsbuild/v3/model/list_official_template_result.py +144 -0
  24. huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_request.py +373 -0
  25. huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_response.py +145 -0
  26. huaweicloudsdkcodeartsbuild/v3/model/list_records_request.py +317 -0
  27. huaweicloudsdkcodeartsbuild/v3/model/list_records_response.py +170 -0
  28. huaweicloudsdkcodeartsbuild/v3/model/list_records_result.py +140 -0
  29. huaweicloudsdkcodeartsbuild/v3/model/list_records_result_pagination.py +173 -0
  30. huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_request.py +173 -0
  31. huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_response.py +228 -0
  32. huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_request.py +173 -0
  33. huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_response.py +170 -0
  34. huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_result.py +144 -0
  35. huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_result_project_info_list.py +231 -0
  36. huaweicloudsdkcodeartsbuild/v3/model/parameter.py +144 -0
  37. huaweicloudsdkcodeartsbuild/v3/model/params.py +289 -0
  38. huaweicloudsdkcodeartsbuild/v3/model/recycling_job.py +347 -0
  39. huaweicloudsdkcodeartsbuild/v3/model/recycling_jobs_result.py +173 -0
  40. huaweicloudsdkcodeartsbuild/v3/model/show_build_info_record_request.py +142 -0
  41. huaweicloudsdkcodeartsbuild/v3/model/show_build_info_record_response.py +170 -0
  42. huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_request.py +84 -0
  43. huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_response.py +170 -0
  44. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_request.py +114 -0
  45. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_response.py +174 -0
  46. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_request.py +114 -0
  47. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_response.py +170 -0
  48. huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_params.py +144 -0
  49. huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_request.py +84 -0
  50. huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_response.py +145 -0
  51. huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_result.py +144 -0
  52. huaweicloudsdkcodeartsbuild/v3/model/show_dockerfile_template_request.py +114 -0
  53. huaweicloudsdkcodeartsbuild/v3/model/show_dockerfile_template_response.py +85 -0
  54. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_request.py +84 -0
  55. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response.py +170 -0
  56. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result.py +115 -0
  57. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result_image_templates.py +318 -0
  58. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_request.py +199 -0
  59. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_response.py +141 -0
  60. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result.py +231 -0
  61. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result_chart.py +202 -0
  62. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_request.py +170 -0
  63. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_response.py +145 -0
  64. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_request.py +143 -0
  65. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_response.py +170 -0
  66. huaweicloudsdkcodeartsbuild/v3/model/show_job_info_request.py +114 -0
  67. huaweicloudsdkcodeartsbuild/v3/model/show_job_info_response.py +170 -0
  68. huaweicloudsdkcodeartsbuild/v3/model/show_job_info_result.py +724 -0
  69. huaweicloudsdkcodeartsbuild/v3/model/show_job_notice_config_info_request.py +114 -0
  70. huaweicloudsdkcodeartsbuild/v3/model/show_job_notice_config_info_response.py +174 -0
  71. huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_request.py +114 -0
  72. huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_response.py +145 -0
  73. huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_result.py +492 -0
  74. huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_request.py +84 -0
  75. huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_response.py +174 -0
  76. huaweicloudsdkcodeartsbuild/v3/model/show_keystore_permission_request.py +170 -0
  77. huaweicloudsdkcodeartsbuild/v3/model/show_keystore_permission_response.py +170 -0
  78. huaweicloudsdkcodeartsbuild/v3/model/show_keystore_permission_response_body_result.py +144 -0
  79. huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_request.py +114 -0
  80. huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_response.py +170 -0
  81. huaweicloudsdkcodeartsbuild/v3/model/show_related_project_request.py +84 -0
  82. huaweicloudsdkcodeartsbuild/v3/model/show_related_project_response.py +170 -0
  83. huaweicloudsdkcodeartsbuild/v3/model/show_related_project_result.py +144 -0
  84. huaweicloudsdkcodeartsbuild/v3/model/show_related_project_result_project_info_list.py +231 -0
  85. huaweicloudsdkcodeartsbuild/v3/model/show_user_project_permission_result.py +260 -0
  86. huaweicloudsdkcodeartsbuild/v3/model/system_parameters_result.py +173 -0
  87. huaweicloudsdkcodeartsbuild/v3/model/template_list.py +459 -0
  88. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/METADATA +2 -2
  89. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/RECORD +92 -9
  90. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/LICENSE +0 -0
  91. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/WHEEL +0 -0
  92. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/top_level.txt +0 -0
@@ -33,6 +33,73 @@ class CodeArtsBuildClient(Client):
33
33
 
34
34
  return client_builder
35
35
 
36
+ def check_job_name_is_exists(self, request):
37
+ r"""查看项目下任务名是否存在
38
+
39
+ 查看项目下任务名是否存在
40
+
41
+ Please refer to HUAWEI cloud API Explorer for details.
42
+
43
+ :param request: Request instance for CheckJobNameIsExists
44
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobNameIsExistsRequest`
45
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobNameIsExistsResponse`
46
+ """
47
+ http_info = self._check_job_name_is_exists_http_info(request)
48
+ return self._call_api(**http_info)
49
+
50
+ def check_job_name_is_exists_invoker(self, request):
51
+ http_info = self._check_job_name_is_exists_http_info(request)
52
+ return SyncInvoker(self, http_info)
53
+
54
+ @classmethod
55
+ def _check_job_name_is_exists_http_info(cls, request):
56
+ http_info = {
57
+ "method": "GET",
58
+ "resource_path": "/v1/job/check/exist",
59
+ "request_type": request.__class__.__name__,
60
+ "response_type": "CheckJobNameIsExistsResponse"
61
+ }
62
+
63
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
64
+
65
+ cname = None
66
+
67
+ collection_formats = {}
68
+
69
+ path_params = {}
70
+
71
+ query_params = []
72
+ if 'project_id' in local_var_params:
73
+ query_params.append(('project_id', local_var_params['project_id']))
74
+ if 'job_name' in local_var_params:
75
+ query_params.append(('job_name', local_var_params['job_name']))
76
+
77
+ header_params = {}
78
+
79
+ form_params = {}
80
+
81
+ body = None
82
+ if isinstance(request, SdkStreamRequest):
83
+ body = request.get_file_stream()
84
+
85
+ response_headers = []
86
+
87
+ header_params['Content-Type'] = http_utils.select_header_content_type(
88
+ ['application/json'])
89
+
90
+ auth_settings = ['apig-auth-iam']
91
+
92
+ http_info["cname"] = cname
93
+ http_info["collection_formats"] = collection_formats
94
+ http_info["path_params"] = path_params
95
+ http_info["query_params"] = query_params
96
+ http_info["header_params"] = header_params
97
+ http_info["post_params"] = form_params
98
+ http_info["body"] = body
99
+ http_info["response_headers"] = response_headers
100
+
101
+ return http_info
102
+
36
103
  def create_build_job(self, request):
37
104
  r"""创建构建任务
38
105
 
@@ -559,6 +626,75 @@ class CodeArtsBuildClient(Client):
559
626
 
560
627
  return http_info
561
628
 
629
+ def download_keystore_by_name(self, request):
630
+ r"""文件管理文件下载
631
+
632
+ 文件管理文件下载
633
+
634
+ Please refer to HUAWEI cloud API Explorer for details.
635
+
636
+ :param request: Request instance for DownloadKeystoreByName
637
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadKeystoreByNameRequest`
638
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadKeystoreByNameResponse`
639
+ """
640
+ http_info = self._download_keystore_by_name_http_info(request)
641
+ return self._call_api(**http_info)
642
+
643
+ def download_keystore_by_name_invoker(self, request):
644
+ http_info = self._download_keystore_by_name_http_info(request)
645
+ return SyncInvoker(self, http_info)
646
+
647
+ @classmethod
648
+ def _download_keystore_by_name_http_info(cls, request):
649
+ http_info = {
650
+ "method": "GET",
651
+ "resource_path": "/v2/keystore/download",
652
+ "request_type": request.__class__.__name__,
653
+ "response_type": "DownloadKeystoreByNameResponse"
654
+ }
655
+
656
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
657
+
658
+ cname = None
659
+
660
+ collection_formats = {}
661
+
662
+ path_params = {}
663
+
664
+ query_params = []
665
+ if 'name' in local_var_params:
666
+ query_params.append(('name', local_var_params['name']))
667
+ if 'domain_id' in local_var_params:
668
+ query_params.append(('domain_id', local_var_params['domain_id']))
669
+ if 'id' in local_var_params:
670
+ query_params.append(('id', local_var_params['id']))
671
+
672
+ header_params = {}
673
+
674
+ form_params = {}
675
+
676
+ body = None
677
+ if isinstance(request, SdkStreamRequest):
678
+ body = request.get_file_stream()
679
+
680
+ response_headers = []
681
+
682
+ header_params['Content-Type'] = http_utils.select_header_content_type(
683
+ ['application/json'])
684
+
685
+ auth_settings = ['apig-auth-iam']
686
+
687
+ http_info["cname"] = cname
688
+ http_info["collection_formats"] = collection_formats
689
+ http_info["path_params"] = path_params
690
+ http_info["query_params"] = query_params
691
+ http_info["header_params"] = header_params
692
+ http_info["post_params"] = form_params
693
+ http_info["body"] = body
694
+ http_info["response_headers"] = response_headers
695
+
696
+ return http_info
697
+
562
698
  def download_real_time_log(self, request):
563
699
  r"""下载构建实时日志
564
700
 
@@ -837,31 +973,31 @@ class CodeArtsBuildClient(Client):
837
973
 
838
974
  return http_info
839
975
 
840
- def list_job_config(self, request):
841
- r"""获取构建任务详情
976
+ def list_build_info_record_by_job_id(self, request):
977
+ r"""获取任务构建记录列表v1
842
978
 
843
- 获取构建任务详情
979
+ 获取任务构建记录列表v1
844
980
 
845
981
  Please refer to HUAWEI cloud API Explorer for details.
846
982
 
847
- :param request: Request instance for ListJobConfig
848
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListJobConfigRequest`
849
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListJobConfigResponse`
983
+ :param request: Request instance for ListBuildInfoRecordByJobId
984
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListBuildInfoRecordByJobIdRequest`
985
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListBuildInfoRecordByJobIdResponse`
850
986
  """
851
- http_info = self._list_job_config_http_info(request)
987
+ http_info = self._list_build_info_record_by_job_id_http_info(request)
852
988
  return self._call_api(**http_info)
853
989
 
854
- def list_job_config_invoker(self, request):
855
- http_info = self._list_job_config_http_info(request)
990
+ def list_build_info_record_by_job_id_invoker(self, request):
991
+ http_info = self._list_build_info_record_by_job_id_http_info(request)
856
992
  return SyncInvoker(self, http_info)
857
993
 
858
994
  @classmethod
859
- def _list_job_config_http_info(cls, request):
995
+ def _list_build_info_record_by_job_id_http_info(cls, request):
860
996
  http_info = {
861
997
  "method": "GET",
862
- "resource_path": "/v3/jobs/{job_id}/query",
998
+ "resource_path": "/v1/record/{job_id}/list",
863
999
  "request_type": request.__class__.__name__,
864
- "response_type": "ListJobConfigResponse"
1000
+ "response_type": "ListBuildInfoRecordByJobIdResponse"
865
1001
  }
866
1002
 
867
1003
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -875,8 +1011,14 @@ class CodeArtsBuildClient(Client):
875
1011
  path_params['job_id'] = local_var_params['job_id']
876
1012
 
877
1013
  query_params = []
878
- if 'get_all_params' in local_var_params:
879
- query_params.append(('get_all_params', local_var_params['get_all_params']))
1014
+ if 'start_time' in local_var_params:
1015
+ query_params.append(('start_time', local_var_params['start_time']))
1016
+ if 'end_time' in local_var_params:
1017
+ query_params.append(('end_time', local_var_params['end_time']))
1018
+ if 'page_index' in local_var_params:
1019
+ query_params.append(('page_index', local_var_params['page_index']))
1020
+ if 'page_size' in local_var_params:
1021
+ query_params.append(('page_size', local_var_params['page_size']))
880
1022
 
881
1023
  header_params = {}
882
1024
 
@@ -904,31 +1046,31 @@ class CodeArtsBuildClient(Client):
904
1046
 
905
1047
  return http_info
906
1048
 
907
- def list_notice(self, request):
908
- r"""查询通知
1049
+ def list_job_config(self, request):
1050
+ r"""获取构建任务详情
909
1051
 
910
- 查询通知
1052
+ 获取构建任务详情
911
1053
 
912
1054
  Please refer to HUAWEI cloud API Explorer for details.
913
1055
 
914
- :param request: Request instance for ListNotice
915
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListNoticeRequest`
916
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListNoticeResponse`
1056
+ :param request: Request instance for ListJobConfig
1057
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListJobConfigRequest`
1058
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListJobConfigResponse`
917
1059
  """
918
- http_info = self._list_notice_http_info(request)
1060
+ http_info = self._list_job_config_http_info(request)
919
1061
  return self._call_api(**http_info)
920
1062
 
921
- def list_notice_invoker(self, request):
922
- http_info = self._list_notice_http_info(request)
1063
+ def list_job_config_invoker(self, request):
1064
+ http_info = self._list_job_config_http_info(request)
923
1065
  return SyncInvoker(self, http_info)
924
1066
 
925
1067
  @classmethod
926
- def _list_notice_http_info(cls, request):
1068
+ def _list_job_config_http_info(cls, request):
927
1069
  http_info = {
928
1070
  "method": "GET",
929
- "resource_path": "/v3/jobs/notice/{job_id}/query",
1071
+ "resource_path": "/v3/jobs/{job_id}/query",
930
1072
  "request_type": request.__class__.__name__,
931
- "response_type": "ListNoticeResponse"
1073
+ "response_type": "ListJobConfigResponse"
932
1074
  }
933
1075
 
934
1076
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -942,6 +1084,8 @@ class CodeArtsBuildClient(Client):
942
1084
  path_params['job_id'] = local_var_params['job_id']
943
1085
 
944
1086
  query_params = []
1087
+ if 'get_all_params' in local_var_params:
1088
+ query_params.append(('get_all_params', local_var_params['get_all_params']))
945
1089
 
946
1090
  header_params = {}
947
1091
 
@@ -969,31 +1113,31 @@ class CodeArtsBuildClient(Client):
969
1113
 
970
1114
  return http_info
971
1115
 
972
- def list_templates(self, request):
973
- r"""查询构建模板
1116
+ def list_keystore(self, request):
1117
+ r"""查询用户可使用文件
974
1118
 
975
- 查询构建模板
1119
+ 查询用户可使用文件
976
1120
 
977
1121
  Please refer to HUAWEI cloud API Explorer for details.
978
1122
 
979
- :param request: Request instance for ListTemplates
980
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListTemplatesRequest`
981
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListTemplatesResponse`
1123
+ :param request: Request instance for ListKeystore
1124
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListKeystoreRequest`
1125
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListKeystoreResponse`
982
1126
  """
983
- http_info = self._list_templates_http_info(request)
1127
+ http_info = self._list_keystore_http_info(request)
984
1128
  return self._call_api(**http_info)
985
1129
 
986
- def list_templates_invoker(self, request):
987
- http_info = self._list_templates_http_info(request)
1130
+ def list_keystore_invoker(self, request):
1131
+ http_info = self._list_keystore_http_info(request)
988
1132
  return SyncInvoker(self, http_info)
989
1133
 
990
1134
  @classmethod
991
- def _list_templates_http_info(cls, request):
1135
+ def _list_keystore_http_info(cls, request):
992
1136
  http_info = {
993
1137
  "method": "GET",
994
- "resource_path": "/v3/templates/query",
1138
+ "resource_path": "/v2/keystore/name",
995
1139
  "request_type": request.__class__.__name__,
996
- "response_type": "ListTemplatesResponse"
1140
+ "response_type": "ListKeystoreResponse"
997
1141
  }
998
1142
 
999
1143
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1005,12 +1149,6 @@ class CodeArtsBuildClient(Client):
1005
1149
  path_params = {}
1006
1150
 
1007
1151
  query_params = []
1008
- if 'name' in local_var_params:
1009
- query_params.append(('name', local_var_params['name']))
1010
- if 'page' in local_var_params:
1011
- query_params.append(('page', local_var_params['page']))
1012
- if 'page_size' in local_var_params:
1013
- query_params.append(('page_size', local_var_params['page_size']))
1014
1152
 
1015
1153
  header_params = {}
1016
1154
 
@@ -1038,31 +1176,31 @@ class CodeArtsBuildClient(Client):
1038
1176
 
1039
1177
  return http_info
1040
1178
 
1041
- def run_job(self, request):
1042
- r"""执行构建任务
1179
+ def list_notice(self, request):
1180
+ r"""查询通知
1043
1181
 
1044
- 执行构建任务,可传自定义参数
1182
+ 查询通知
1045
1183
 
1046
1184
  Please refer to HUAWEI cloud API Explorer for details.
1047
1185
 
1048
- :param request: Request instance for RunJob
1049
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.RunJobRequest`
1050
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.RunJobResponse`
1186
+ :param request: Request instance for ListNotice
1187
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListNoticeRequest`
1188
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListNoticeResponse`
1051
1189
  """
1052
- http_info = self._run_job_http_info(request)
1190
+ http_info = self._list_notice_http_info(request)
1053
1191
  return self._call_api(**http_info)
1054
1192
 
1055
- def run_job_invoker(self, request):
1056
- http_info = self._run_job_http_info(request)
1193
+ def list_notice_invoker(self, request):
1194
+ http_info = self._list_notice_http_info(request)
1057
1195
  return SyncInvoker(self, http_info)
1058
1196
 
1059
1197
  @classmethod
1060
- def _run_job_http_info(cls, request):
1198
+ def _list_notice_http_info(cls, request):
1061
1199
  http_info = {
1062
- "method": "POST",
1063
- "resource_path": "/v3/jobs/build",
1200
+ "method": "GET",
1201
+ "resource_path": "/v3/jobs/notice/{job_id}/query",
1064
1202
  "request_type": request.__class__.__name__,
1065
- "response_type": "RunJobResponse"
1203
+ "response_type": "ListNoticeResponse"
1066
1204
  }
1067
1205
 
1068
1206
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1072,6 +1210,8 @@ class CodeArtsBuildClient(Client):
1072
1210
  collection_formats = {}
1073
1211
 
1074
1212
  path_params = {}
1213
+ if 'job_id' in local_var_params:
1214
+ path_params['job_id'] = local_var_params['job_id']
1075
1215
 
1076
1216
  query_params = []
1077
1217
 
@@ -1080,8 +1220,6 @@ class CodeArtsBuildClient(Client):
1080
1220
  form_params = {}
1081
1221
 
1082
1222
  body = None
1083
- if 'body' in local_var_params:
1084
- body = local_var_params['body']
1085
1223
  if isinstance(request, SdkStreamRequest):
1086
1224
  body = request.get_file_stream()
1087
1225
 
@@ -1103,31 +1241,31 @@ class CodeArtsBuildClient(Client):
1103
1241
 
1104
1242
  return http_info
1105
1243
 
1106
- def show_build_record_full_stages(self, request):
1107
- r"""获取任务各阶段信息
1244
+ def list_official_template(self, request):
1245
+ r"""查询官方模版
1108
1246
 
1109
- 获取任务各阶段信息
1247
+ 查询官方模版
1110
1248
 
1111
1249
  Please refer to HUAWEI cloud API Explorer for details.
1112
1250
 
1113
- :param request: Request instance for ShowBuildRecordFullStages
1114
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFullStagesRequest`
1115
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFullStagesResponse`
1251
+ :param request: Request instance for ListOfficialTemplate
1252
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListOfficialTemplateRequest`
1253
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListOfficialTemplateResponse`
1116
1254
  """
1117
- http_info = self._show_build_record_full_stages_http_info(request)
1255
+ http_info = self._list_official_template_http_info(request)
1118
1256
  return self._call_api(**http_info)
1119
1257
 
1120
- def show_build_record_full_stages_invoker(self, request):
1121
- http_info = self._show_build_record_full_stages_http_info(request)
1258
+ def list_official_template_invoker(self, request):
1259
+ http_info = self._list_official_template_http_info(request)
1122
1260
  return SyncInvoker(self, http_info)
1123
1261
 
1124
1262
  @classmethod
1125
- def _show_build_record_full_stages_http_info(cls, request):
1263
+ def _list_official_template_http_info(cls, request):
1126
1264
  http_info = {
1127
1265
  "method": "GET",
1128
- "resource_path": "/v1/record/{record_id}/full-stages",
1266
+ "resource_path": "/v1/template/officialtemplates",
1129
1267
  "request_type": request.__class__.__name__,
1130
- "response_type": "ShowBuildRecordFullStagesResponse"
1268
+ "response_type": "ListOfficialTemplateResponse"
1131
1269
  }
1132
1270
 
1133
1271
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1137,12 +1275,14 @@ class CodeArtsBuildClient(Client):
1137
1275
  collection_formats = {}
1138
1276
 
1139
1277
  path_params = {}
1140
- if 'record_id' in local_var_params:
1141
- path_params['record_id'] = local_var_params['record_id']
1142
1278
 
1143
1279
  query_params = []
1144
- if 'cascade' in local_var_params:
1145
- query_params.append(('cascade', local_var_params['cascade']))
1280
+ if 'name' in local_var_params:
1281
+ query_params.append(('name', local_var_params['name']))
1282
+ if 'page' in local_var_params:
1283
+ query_params.append(('page', local_var_params['page']))
1284
+ if 'page_size' in local_var_params:
1285
+ query_params.append(('page_size', local_var_params['page_size']))
1146
1286
 
1147
1287
  header_params = {}
1148
1288
 
@@ -1170,31 +1310,31 @@ class CodeArtsBuildClient(Client):
1170
1310
 
1171
1311
  return http_info
1172
1312
 
1173
- def show_history_details(self, request):
1174
- r"""获取构建历史详情信息接口
1313
+ def list_project_jobs(self, request):
1314
+ r"""查询项目任务列表
1175
1315
 
1176
- 获取构建历史详情信息接口
1316
+ 查询项目任务列表
1177
1317
 
1178
1318
  Please refer to HUAWEI cloud API Explorer for details.
1179
1319
 
1180
- :param request: Request instance for ShowHistoryDetails
1181
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowHistoryDetailsRequest`
1182
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowHistoryDetailsResponse`
1320
+ :param request: Request instance for ListProjectJobs
1321
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListProjectJobsRequest`
1322
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListProjectJobsResponse`
1183
1323
  """
1184
- http_info = self._show_history_details_http_info(request)
1324
+ http_info = self._list_project_jobs_http_info(request)
1185
1325
  return self._call_api(**http_info)
1186
1326
 
1187
- def show_history_details_invoker(self, request):
1188
- http_info = self._show_history_details_http_info(request)
1327
+ def list_project_jobs_invoker(self, request):
1328
+ http_info = self._list_project_jobs_http_info(request)
1189
1329
  return SyncInvoker(self, http_info)
1190
1330
 
1191
1331
  @classmethod
1192
- def _show_history_details_http_info(cls, request):
1332
+ def _list_project_jobs_http_info(cls, request):
1193
1333
  http_info = {
1194
1334
  "method": "GET",
1195
- "resource_path": "/v3/jobs/{job_id}/{build_number}/history-details",
1335
+ "resource_path": "/v1/job/{project_id}/list",
1196
1336
  "request_type": request.__class__.__name__,
1197
- "response_type": "ShowHistoryDetailsResponse"
1337
+ "response_type": "ListProjectJobsResponse"
1198
1338
  }
1199
1339
 
1200
1340
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1204,12 +1344,28 @@ class CodeArtsBuildClient(Client):
1204
1344
  collection_formats = {}
1205
1345
 
1206
1346
  path_params = {}
1207
- if 'job_id' in local_var_params:
1208
- path_params['job_id'] = local_var_params['job_id']
1209
- if 'build_number' in local_var_params:
1210
- path_params['build_number'] = local_var_params['build_number']
1347
+ if 'project_id' in local_var_params:
1348
+ path_params['project_id'] = local_var_params['project_id']
1211
1349
 
1212
1350
  query_params = []
1351
+ if 'page_index' in local_var_params:
1352
+ query_params.append(('page_index', local_var_params['page_index']))
1353
+ if 'page_size' in local_var_params:
1354
+ query_params.append(('page_size', local_var_params['page_size']))
1355
+ if 'search' in local_var_params:
1356
+ query_params.append(('search', local_var_params['search']))
1357
+ if 'sort_field' in local_var_params:
1358
+ query_params.append(('sort_field', local_var_params['sort_field']))
1359
+ if 'sort_order' in local_var_params:
1360
+ query_params.append(('sort_order', local_var_params['sort_order']))
1361
+ if 'creator_id' in local_var_params:
1362
+ query_params.append(('creator_id', local_var_params['creator_id']))
1363
+ if 'build_status' in local_var_params:
1364
+ query_params.append(('build_status', local_var_params['build_status']))
1365
+ if 'by_group' in local_var_params:
1366
+ query_params.append(('by_group', local_var_params['by_group']))
1367
+ if 'group_path_id' in local_var_params:
1368
+ query_params.append(('group_path_id', local_var_params['group_path_id']))
1213
1369
 
1214
1370
  header_params = {}
1215
1371
 
@@ -1237,31 +1393,1382 @@ class CodeArtsBuildClient(Client):
1237
1393
 
1238
1394
  return http_info
1239
1395
 
1240
- def show_job_build_success_ratio(self, request):
1241
- r"""查询构建成功率
1396
+ def list_records(self, request):
1397
+ r"""获取指定工程的构建记录列表
1242
1398
 
1243
- 查询构建成功率
1399
+ 获取指定工程的构建记录列表
1244
1400
 
1245
1401
  Please refer to HUAWEI cloud API Explorer for details.
1246
1402
 
1247
- :param request: Request instance for ShowJobBuildSuccessRatio
1248
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioRequest`
1249
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioResponse`
1403
+ :param request: Request instance for ListRecords
1404
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecordsRequest`
1405
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecordsResponse`
1250
1406
  """
1251
- http_info = self._show_job_build_success_ratio_http_info(request)
1407
+ http_info = self._list_records_http_info(request)
1252
1408
  return self._call_api(**http_info)
1253
1409
 
1254
- def show_job_build_success_ratio_invoker(self, request):
1255
- http_info = self._show_job_build_success_ratio_http_info(request)
1410
+ def list_records_invoker(self, request):
1411
+ http_info = self._list_records_http_info(request)
1412
+ return SyncInvoker(self, http_info)
1413
+
1414
+ @classmethod
1415
+ def _list_records_http_info(cls, request):
1416
+ http_info = {
1417
+ "method": "GET",
1418
+ "resource_path": "/v1/record/{build_project_id}/records",
1419
+ "request_type": request.__class__.__name__,
1420
+ "response_type": "ListRecordsResponse"
1421
+ }
1422
+
1423
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1424
+
1425
+ cname = None
1426
+
1427
+ collection_formats = {}
1428
+
1429
+ path_params = {}
1430
+ if 'build_project_id' in local_var_params:
1431
+ path_params['build_project_id'] = local_var_params['build_project_id']
1432
+
1433
+ query_params = []
1434
+ if 'page' in local_var_params:
1435
+ query_params.append(('page', local_var_params['page']))
1436
+ if 'limit' in local_var_params:
1437
+ query_params.append(('limit', local_var_params['limit']))
1438
+ if 'triggers' in local_var_params:
1439
+ query_params.append(('triggers', local_var_params['triggers']))
1440
+ collection_formats['triggers'] = 'csv'
1441
+ if 'branches' in local_var_params:
1442
+ query_params.append(('branches', local_var_params['branches']))
1443
+ collection_formats['branches'] = 'csv'
1444
+ if 'tags' in local_var_params:
1445
+ query_params.append(('tags', local_var_params['tags']))
1446
+ collection_formats['tags'] = 'csv'
1447
+ if 'from_date' in local_var_params:
1448
+ query_params.append(('from_date', local_var_params['from_date']))
1449
+ if 'to_date' in local_var_params:
1450
+ query_params.append(('to_date', local_var_params['to_date']))
1451
+
1452
+ header_params = {}
1453
+
1454
+ form_params = {}
1455
+
1456
+ body = None
1457
+ if isinstance(request, SdkStreamRequest):
1458
+ body = request.get_file_stream()
1459
+
1460
+ response_headers = []
1461
+
1462
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1463
+ ['application/json'])
1464
+
1465
+ auth_settings = ['apig-auth-iam']
1466
+
1467
+ http_info["cname"] = cname
1468
+ http_info["collection_formats"] = collection_formats
1469
+ http_info["path_params"] = path_params
1470
+ http_info["query_params"] = query_params
1471
+ http_info["header_params"] = header_params
1472
+ http_info["post_params"] = form_params
1473
+ http_info["body"] = body
1474
+ http_info["response_headers"] = response_headers
1475
+
1476
+ return http_info
1477
+
1478
+ def list_recycling_job(self, request):
1479
+ r"""查看回收站中删除的构建任务列表
1480
+
1481
+ 查看回收站中删除的构建任务列表
1482
+
1483
+ Please refer to HUAWEI cloud API Explorer for details.
1484
+
1485
+ :param request: Request instance for ListRecyclingJob
1486
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecyclingJobRequest`
1487
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecyclingJobResponse`
1488
+ """
1489
+ http_info = self._list_recycling_job_http_info(request)
1490
+ return self._call_api(**http_info)
1491
+
1492
+ def list_recycling_job_invoker(self, request):
1493
+ http_info = self._list_recycling_job_http_info(request)
1494
+ return SyncInvoker(self, http_info)
1495
+
1496
+ @classmethod
1497
+ def _list_recycling_job_http_info(cls, request):
1498
+ http_info = {
1499
+ "method": "GET",
1500
+ "resource_path": "/v1/job/recycling-jobs",
1501
+ "request_type": request.__class__.__name__,
1502
+ "response_type": "ListRecyclingJobResponse"
1503
+ }
1504
+
1505
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1506
+
1507
+ cname = None
1508
+
1509
+ collection_formats = {}
1510
+
1511
+ path_params = {}
1512
+
1513
+ query_params = []
1514
+ if 'page_size' in local_var_params:
1515
+ query_params.append(('page_size', local_var_params['page_size']))
1516
+ if 'page_no' in local_var_params:
1517
+ query_params.append(('page_no', local_var_params['page_no']))
1518
+ if 'search' in local_var_params:
1519
+ query_params.append(('search', local_var_params['search']))
1520
+
1521
+ header_params = {}
1522
+
1523
+ form_params = {}
1524
+
1525
+ body = None
1526
+ if isinstance(request, SdkStreamRequest):
1527
+ body = request.get_file_stream()
1528
+
1529
+ response_headers = []
1530
+
1531
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1532
+ ['application/json'])
1533
+
1534
+ auth_settings = ['apig-auth-iam']
1535
+
1536
+ http_info["cname"] = cname
1537
+ http_info["collection_formats"] = collection_formats
1538
+ http_info["path_params"] = path_params
1539
+ http_info["query_params"] = query_params
1540
+ http_info["header_params"] = header_params
1541
+ http_info["post_params"] = form_params
1542
+ http_info["body"] = body
1543
+ http_info["response_headers"] = response_headers
1544
+
1545
+ return http_info
1546
+
1547
+ def list_related_project_info(self, request):
1548
+ r"""获取项目列表
1549
+
1550
+ 获取项目列表
1551
+
1552
+ Please refer to HUAWEI cloud API Explorer for details.
1553
+
1554
+ :param request: Request instance for ListRelatedProjectInfo
1555
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListRelatedProjectInfoRequest`
1556
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRelatedProjectInfoResponse`
1557
+ """
1558
+ http_info = self._list_related_project_info_http_info(request)
1559
+ return self._call_api(**http_info)
1560
+
1561
+ def list_related_project_info_invoker(self, request):
1562
+ http_info = self._list_related_project_info_http_info(request)
1563
+ return SyncInvoker(self, http_info)
1564
+
1565
+ @classmethod
1566
+ def _list_related_project_info_http_info(cls, request):
1567
+ http_info = {
1568
+ "method": "GET",
1569
+ "resource_path": "/v1/domain/project/related-page",
1570
+ "request_type": request.__class__.__name__,
1571
+ "response_type": "ListRelatedProjectInfoResponse"
1572
+ }
1573
+
1574
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1575
+
1576
+ cname = None
1577
+
1578
+ collection_formats = {}
1579
+
1580
+ path_params = {}
1581
+
1582
+ query_params = []
1583
+ if 'page_size' in local_var_params:
1584
+ query_params.append(('page_size', local_var_params['page_size']))
1585
+ if 'page_no' in local_var_params:
1586
+ query_params.append(('page_no', local_var_params['page_no']))
1587
+ if 'search' in local_var_params:
1588
+ query_params.append(('search', local_var_params['search']))
1589
+
1590
+ header_params = {}
1591
+
1592
+ form_params = {}
1593
+
1594
+ body = None
1595
+ if isinstance(request, SdkStreamRequest):
1596
+ body = request.get_file_stream()
1597
+
1598
+ response_headers = []
1599
+
1600
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1601
+ ['application/json'])
1602
+
1603
+ auth_settings = ['apig-auth-iam']
1604
+
1605
+ http_info["cname"] = cname
1606
+ http_info["collection_formats"] = collection_formats
1607
+ http_info["path_params"] = path_params
1608
+ http_info["query_params"] = query_params
1609
+ http_info["header_params"] = header_params
1610
+ http_info["post_params"] = form_params
1611
+ http_info["body"] = body
1612
+ http_info["response_headers"] = response_headers
1613
+
1614
+ return http_info
1615
+
1616
+ def list_templates(self, request):
1617
+ r"""查询构建模板
1618
+
1619
+ 查询构建模板
1620
+
1621
+ Please refer to HUAWEI cloud API Explorer for details.
1622
+
1623
+ :param request: Request instance for ListTemplates
1624
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListTemplatesRequest`
1625
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListTemplatesResponse`
1626
+ """
1627
+ http_info = self._list_templates_http_info(request)
1628
+ return self._call_api(**http_info)
1629
+
1630
+ def list_templates_invoker(self, request):
1631
+ http_info = self._list_templates_http_info(request)
1632
+ return SyncInvoker(self, http_info)
1633
+
1634
+ @classmethod
1635
+ def _list_templates_http_info(cls, request):
1636
+ http_info = {
1637
+ "method": "GET",
1638
+ "resource_path": "/v3/templates/query",
1639
+ "request_type": request.__class__.__name__,
1640
+ "response_type": "ListTemplatesResponse"
1641
+ }
1642
+
1643
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1644
+
1645
+ cname = None
1646
+
1647
+ collection_formats = {}
1648
+
1649
+ path_params = {}
1650
+
1651
+ query_params = []
1652
+ if 'name' in local_var_params:
1653
+ query_params.append(('name', local_var_params['name']))
1654
+ if 'page' in local_var_params:
1655
+ query_params.append(('page', local_var_params['page']))
1656
+ if 'page_size' in local_var_params:
1657
+ query_params.append(('page_size', local_var_params['page_size']))
1658
+
1659
+ header_params = {}
1660
+
1661
+ form_params = {}
1662
+
1663
+ body = None
1664
+ if isinstance(request, SdkStreamRequest):
1665
+ body = request.get_file_stream()
1666
+
1667
+ response_headers = []
1668
+
1669
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1670
+ ['application/json'])
1671
+
1672
+ auth_settings = ['apig-auth-iam']
1673
+
1674
+ http_info["cname"] = cname
1675
+ http_info["collection_formats"] = collection_formats
1676
+ http_info["path_params"] = path_params
1677
+ http_info["query_params"] = query_params
1678
+ http_info["header_params"] = header_params
1679
+ http_info["post_params"] = form_params
1680
+ http_info["body"] = body
1681
+ http_info["response_headers"] = response_headers
1682
+
1683
+ return http_info
1684
+
1685
+ def run_job(self, request):
1686
+ r"""执行构建任务
1687
+
1688
+ 执行构建任务,可传自定义参数
1689
+
1690
+ Please refer to HUAWEI cloud API Explorer for details.
1691
+
1692
+ :param request: Request instance for RunJob
1693
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.RunJobRequest`
1694
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.RunJobResponse`
1695
+ """
1696
+ http_info = self._run_job_http_info(request)
1697
+ return self._call_api(**http_info)
1698
+
1699
+ def run_job_invoker(self, request):
1700
+ http_info = self._run_job_http_info(request)
1701
+ return SyncInvoker(self, http_info)
1702
+
1703
+ @classmethod
1704
+ def _run_job_http_info(cls, request):
1705
+ http_info = {
1706
+ "method": "POST",
1707
+ "resource_path": "/v3/jobs/build",
1708
+ "request_type": request.__class__.__name__,
1709
+ "response_type": "RunJobResponse"
1710
+ }
1711
+
1712
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1713
+
1714
+ cname = None
1715
+
1716
+ collection_formats = {}
1717
+
1718
+ path_params = {}
1719
+
1720
+ query_params = []
1721
+
1722
+ header_params = {}
1723
+
1724
+ form_params = {}
1725
+
1726
+ body = None
1727
+ if 'body' in local_var_params:
1728
+ body = local_var_params['body']
1729
+ if isinstance(request, SdkStreamRequest):
1730
+ body = request.get_file_stream()
1731
+
1732
+ response_headers = []
1733
+
1734
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1735
+ ['application/json'])
1736
+
1737
+ auth_settings = ['apig-auth-iam']
1738
+
1739
+ http_info["cname"] = cname
1740
+ http_info["collection_formats"] = collection_formats
1741
+ http_info["path_params"] = path_params
1742
+ http_info["query_params"] = query_params
1743
+ http_info["header_params"] = header_params
1744
+ http_info["post_params"] = form_params
1745
+ http_info["body"] = body
1746
+ http_info["response_headers"] = response_headers
1747
+
1748
+ return http_info
1749
+
1750
+ def show_build_info_record(self, request):
1751
+ r"""获取任务构建记录列表
1752
+
1753
+ 获取任务构建记录列表
1754
+
1755
+ Please refer to HUAWEI cloud API Explorer for details.
1756
+
1757
+ :param request: Request instance for ShowBuildInfoRecord
1758
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildInfoRecordRequest`
1759
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildInfoRecordResponse`
1760
+ """
1761
+ http_info = self._show_build_info_record_http_info(request)
1762
+ return self._call_api(**http_info)
1763
+
1764
+ def show_build_info_record_invoker(self, request):
1765
+ http_info = self._show_build_info_record_http_info(request)
1766
+ return SyncInvoker(self, http_info)
1767
+
1768
+ @classmethod
1769
+ def _show_build_info_record_http_info(cls, request):
1770
+ http_info = {
1771
+ "method": "GET",
1772
+ "resource_path": "/v1/record/{job_id}/{build_no}/build-info-record",
1773
+ "request_type": request.__class__.__name__,
1774
+ "response_type": "ShowBuildInfoRecordResponse"
1775
+ }
1776
+
1777
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1778
+
1779
+ cname = None
1780
+
1781
+ collection_formats = {}
1782
+
1783
+ path_params = {}
1784
+ if 'job_id' in local_var_params:
1785
+ path_params['job_id'] = local_var_params['job_id']
1786
+ if 'build_no' in local_var_params:
1787
+ path_params['build_no'] = local_var_params['build_no']
1788
+
1789
+ query_params = []
1790
+
1791
+ header_params = {}
1792
+
1793
+ form_params = {}
1794
+
1795
+ body = None
1796
+ if isinstance(request, SdkStreamRequest):
1797
+ body = request.get_file_stream()
1798
+
1799
+ response_headers = []
1800
+
1801
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1802
+ ['application/json'])
1803
+
1804
+ auth_settings = ['apig-auth-iam']
1805
+
1806
+ http_info["cname"] = cname
1807
+ http_info["collection_formats"] = collection_formats
1808
+ http_info["path_params"] = path_params
1809
+ http_info["query_params"] = query_params
1810
+ http_info["header_params"] = header_params
1811
+ http_info["post_params"] = form_params
1812
+ http_info["body"] = body
1813
+ http_info["response_headers"] = response_headers
1814
+
1815
+ return http_info
1816
+
1817
+ def show_build_params_list(self, request):
1818
+ r"""编辑页获取参数类型的接口
1819
+
1820
+ 编辑页获取参数类型的接口
1821
+
1822
+ Please refer to HUAWEI cloud API Explorer for details.
1823
+
1824
+ :param request: Request instance for ShowBuildParamsList
1825
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildParamsListRequest`
1826
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildParamsListResponse`
1827
+ """
1828
+ http_info = self._show_build_params_list_http_info(request)
1829
+ return self._call_api(**http_info)
1830
+
1831
+ def show_build_params_list_invoker(self, request):
1832
+ http_info = self._show_build_params_list_http_info(request)
1833
+ return SyncInvoker(self, http_info)
1834
+
1835
+ @classmethod
1836
+ def _show_build_params_list_http_info(cls, request):
1837
+ http_info = {
1838
+ "method": "GET",
1839
+ "resource_path": "/v1/job/build-params",
1840
+ "request_type": request.__class__.__name__,
1841
+ "response_type": "ShowBuildParamsListResponse"
1842
+ }
1843
+
1844
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1845
+
1846
+ cname = None
1847
+
1848
+ collection_formats = {}
1849
+
1850
+ path_params = {}
1851
+
1852
+ query_params = []
1853
+
1854
+ header_params = {}
1855
+
1856
+ form_params = {}
1857
+
1858
+ body = None
1859
+ if isinstance(request, SdkStreamRequest):
1860
+ body = request.get_file_stream()
1861
+
1862
+ response_headers = []
1863
+
1864
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1865
+ ['application/json'])
1866
+
1867
+ auth_settings = ['apig-auth-iam']
1868
+
1869
+ http_info["cname"] = cname
1870
+ http_info["collection_formats"] = collection_formats
1871
+ http_info["path_params"] = path_params
1872
+ http_info["query_params"] = query_params
1873
+ http_info["header_params"] = header_params
1874
+ http_info["post_params"] = form_params
1875
+ http_info["body"] = body
1876
+ http_info["response_headers"] = response_headers
1877
+
1878
+ return http_info
1879
+
1880
+ def show_build_record(self, request):
1881
+ r"""查询指定构建记录详情
1882
+
1883
+ 查询指定构建记录详情
1884
+
1885
+ Please refer to HUAWEI cloud API Explorer for details.
1886
+
1887
+ :param request: Request instance for ShowBuildRecord
1888
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordRequest`
1889
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordResponse`
1890
+ """
1891
+ http_info = self._show_build_record_http_info(request)
1892
+ return self._call_api(**http_info)
1893
+
1894
+ def show_build_record_invoker(self, request):
1895
+ http_info = self._show_build_record_http_info(request)
1896
+ return SyncInvoker(self, http_info)
1897
+
1898
+ @classmethod
1899
+ def _show_build_record_http_info(cls, request):
1900
+ http_info = {
1901
+ "method": "GET",
1902
+ "resource_path": "/v1/record/{record_id}/info",
1903
+ "request_type": request.__class__.__name__,
1904
+ "response_type": "ShowBuildRecordResponse"
1905
+ }
1906
+
1907
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1908
+
1909
+ cname = None
1910
+
1911
+ collection_formats = {}
1912
+
1913
+ path_params = {}
1914
+ if 'record_id' in local_var_params:
1915
+ path_params['record_id'] = local_var_params['record_id']
1916
+
1917
+ query_params = []
1918
+
1919
+ header_params = {}
1920
+
1921
+ form_params = {}
1922
+
1923
+ body = None
1924
+ if isinstance(request, SdkStreamRequest):
1925
+ body = request.get_file_stream()
1926
+
1927
+ response_headers = []
1928
+
1929
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1930
+ ['application/json'])
1931
+
1932
+ auth_settings = ['apig-auth-iam']
1933
+
1934
+ http_info["cname"] = cname
1935
+ http_info["collection_formats"] = collection_formats
1936
+ http_info["path_params"] = path_params
1937
+ http_info["query_params"] = query_params
1938
+ http_info["header_params"] = header_params
1939
+ http_info["post_params"] = form_params
1940
+ http_info["body"] = body
1941
+ http_info["response_headers"] = response_headers
1942
+
1943
+ return http_info
1944
+
1945
+ def show_build_record_build_script(self, request):
1946
+ r"""获取构建记录的构建脚本
1947
+
1948
+ 获取构建记录的构建脚本
1949
+
1950
+ Please refer to HUAWEI cloud API Explorer for details.
1951
+
1952
+ :param request: Request instance for ShowBuildRecordBuildScript
1953
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordBuildScriptRequest`
1954
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordBuildScriptResponse`
1955
+ """
1956
+ http_info = self._show_build_record_build_script_http_info(request)
1957
+ return self._call_api(**http_info)
1958
+
1959
+ def show_build_record_build_script_invoker(self, request):
1960
+ http_info = self._show_build_record_build_script_http_info(request)
1961
+ return SyncInvoker(self, http_info)
1962
+
1963
+ @classmethod
1964
+ def _show_build_record_build_script_http_info(cls, request):
1965
+ http_info = {
1966
+ "method": "GET",
1967
+ "resource_path": "/v1/record/{record_id}/build-script",
1968
+ "request_type": request.__class__.__name__,
1969
+ "response_type": "ShowBuildRecordBuildScriptResponse"
1970
+ }
1971
+
1972
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1973
+
1974
+ cname = None
1975
+
1976
+ collection_formats = {}
1977
+
1978
+ path_params = {}
1979
+ if 'record_id' in local_var_params:
1980
+ path_params['record_id'] = local_var_params['record_id']
1981
+
1982
+ query_params = []
1983
+
1984
+ header_params = {}
1985
+
1986
+ form_params = {}
1987
+
1988
+ body = None
1989
+ if isinstance(request, SdkStreamRequest):
1990
+ body = request.get_file_stream()
1991
+
1992
+ response_headers = []
1993
+
1994
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1995
+ ['application/json'])
1996
+
1997
+ auth_settings = ['apig-auth-iam']
1998
+
1999
+ http_info["cname"] = cname
2000
+ http_info["collection_formats"] = collection_formats
2001
+ http_info["path_params"] = path_params
2002
+ http_info["query_params"] = query_params
2003
+ http_info["header_params"] = header_params
2004
+ http_info["post_params"] = form_params
2005
+ http_info["body"] = body
2006
+ http_info["response_headers"] = response_headers
2007
+
2008
+ return http_info
2009
+
2010
+ def show_build_record_full_stages(self, request):
2011
+ r"""获取任务各阶段信息
2012
+
2013
+ 获取任务各阶段信息
2014
+
2015
+ Please refer to HUAWEI cloud API Explorer for details.
2016
+
2017
+ :param request: Request instance for ShowBuildRecordFullStages
2018
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFullStagesRequest`
2019
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFullStagesResponse`
2020
+ """
2021
+ http_info = self._show_build_record_full_stages_http_info(request)
2022
+ return self._call_api(**http_info)
2023
+
2024
+ def show_build_record_full_stages_invoker(self, request):
2025
+ http_info = self._show_build_record_full_stages_http_info(request)
2026
+ return SyncInvoker(self, http_info)
2027
+
2028
+ @classmethod
2029
+ def _show_build_record_full_stages_http_info(cls, request):
2030
+ http_info = {
2031
+ "method": "GET",
2032
+ "resource_path": "/v1/record/{record_id}/full-stages",
2033
+ "request_type": request.__class__.__name__,
2034
+ "response_type": "ShowBuildRecordFullStagesResponse"
2035
+ }
2036
+
2037
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2038
+
2039
+ cname = None
2040
+
2041
+ collection_formats = {}
2042
+
2043
+ path_params = {}
2044
+ if 'record_id' in local_var_params:
2045
+ path_params['record_id'] = local_var_params['record_id']
2046
+
2047
+ query_params = []
2048
+ if 'cascade' in local_var_params:
2049
+ query_params.append(('cascade', local_var_params['cascade']))
2050
+
2051
+ header_params = {}
2052
+
2053
+ form_params = {}
2054
+
2055
+ body = None
2056
+ if isinstance(request, SdkStreamRequest):
2057
+ body = request.get_file_stream()
2058
+
2059
+ response_headers = []
2060
+
2061
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2062
+ ['application/json'])
2063
+
2064
+ auth_settings = ['apig-auth-iam']
2065
+
2066
+ http_info["cname"] = cname
2067
+ http_info["collection_formats"] = collection_formats
2068
+ http_info["path_params"] = path_params
2069
+ http_info["query_params"] = query_params
2070
+ http_info["header_params"] = header_params
2071
+ http_info["post_params"] = form_params
2072
+ http_info["body"] = body
2073
+ http_info["response_headers"] = response_headers
2074
+
2075
+ return http_info
2076
+
2077
+ def show_default_build_parameters(self, request):
2078
+ r"""获取编译构建默认参数
2079
+
2080
+ 获取编译构建默认参数
2081
+
2082
+ Please refer to HUAWEI cloud API Explorer for details.
2083
+
2084
+ :param request: Request instance for ShowDefaultBuildParameters
2085
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDefaultBuildParametersRequest`
2086
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDefaultBuildParametersResponse`
2087
+ """
2088
+ http_info = self._show_default_build_parameters_http_info(request)
2089
+ return self._call_api(**http_info)
2090
+
2091
+ def show_default_build_parameters_invoker(self, request):
2092
+ http_info = self._show_default_build_parameters_http_info(request)
2093
+ return SyncInvoker(self, http_info)
2094
+
2095
+ @classmethod
2096
+ def _show_default_build_parameters_http_info(cls, request):
2097
+ http_info = {
2098
+ "method": "GET",
2099
+ "resource_path": "/v1/job/default-parameters",
2100
+ "request_type": request.__class__.__name__,
2101
+ "response_type": "ShowDefaultBuildParametersResponse"
2102
+ }
2103
+
2104
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2105
+
2106
+ cname = None
2107
+
2108
+ collection_formats = {}
2109
+
2110
+ path_params = {}
2111
+
2112
+ query_params = []
2113
+
2114
+ header_params = {}
2115
+
2116
+ form_params = {}
2117
+
2118
+ body = None
2119
+ if isinstance(request, SdkStreamRequest):
2120
+ body = request.get_file_stream()
2121
+
2122
+ response_headers = []
2123
+
2124
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2125
+ ['application/json'])
2126
+
2127
+ auth_settings = ['apig-auth-iam']
2128
+
2129
+ http_info["cname"] = cname
2130
+ http_info["collection_formats"] = collection_formats
2131
+ http_info["path_params"] = path_params
2132
+ http_info["query_params"] = query_params
2133
+ http_info["header_params"] = header_params
2134
+ http_info["post_params"] = form_params
2135
+ http_info["body"] = body
2136
+ http_info["response_headers"] = response_headers
2137
+
2138
+ return http_info
2139
+
2140
+ def show_dockerfile_template(self, request):
2141
+ r"""获取dockerfileTemplate
2142
+
2143
+ 获取dockerfileTemplate
2144
+
2145
+ Please refer to HUAWEI cloud API Explorer for details.
2146
+
2147
+ :param request: Request instance for ShowDockerfileTemplate
2148
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDockerfileTemplateRequest`
2149
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDockerfileTemplateResponse`
2150
+ """
2151
+ http_info = self._show_dockerfile_template_http_info(request)
2152
+ return self._call_api(**http_info)
2153
+
2154
+ def show_dockerfile_template_invoker(self, request):
2155
+ http_info = self._show_dockerfile_template_http_info(request)
2156
+ return SyncInvoker(self, http_info)
2157
+
2158
+ @classmethod
2159
+ def _show_dockerfile_template_http_info(cls, request):
2160
+ http_info = {
2161
+ "method": "GET",
2162
+ "resource_path": "/v1/image/dockerfile-template",
2163
+ "request_type": request.__class__.__name__,
2164
+ "response_type": "ShowDockerfileTemplateResponse"
2165
+ }
2166
+
2167
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2168
+
2169
+ cname = None
2170
+
2171
+ collection_formats = {}
2172
+
2173
+ path_params = {}
2174
+
2175
+ query_params = []
2176
+ if 'image_id' in local_var_params:
2177
+ query_params.append(('image_id', local_var_params['image_id']))
2178
+
2179
+ header_params = {}
2180
+
2181
+ form_params = {}
2182
+
2183
+ body = None
2184
+ if isinstance(request, SdkStreamRequest):
2185
+ body = request.get_file_stream()
2186
+
2187
+ response_headers = []
2188
+
2189
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2190
+ ['application/json'])
2191
+
2192
+ auth_settings = ['apig-auth-iam']
2193
+
2194
+ http_info["cname"] = cname
2195
+ http_info["collection_formats"] = collection_formats
2196
+ http_info["path_params"] = path_params
2197
+ http_info["query_params"] = query_params
2198
+ http_info["header_params"] = header_params
2199
+ http_info["post_params"] = form_params
2200
+ http_info["body"] = body
2201
+ http_info["response_headers"] = response_headers
2202
+
2203
+ return http_info
2204
+
2205
+ def show_history_details(self, request):
2206
+ r"""获取构建历史详情信息接口
2207
+
2208
+ 获取构建历史详情信息接口
2209
+
2210
+ Please refer to HUAWEI cloud API Explorer for details.
2211
+
2212
+ :param request: Request instance for ShowHistoryDetails
2213
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowHistoryDetailsRequest`
2214
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowHistoryDetailsResponse`
2215
+ """
2216
+ http_info = self._show_history_details_http_info(request)
2217
+ return self._call_api(**http_info)
2218
+
2219
+ def show_history_details_invoker(self, request):
2220
+ http_info = self._show_history_details_http_info(request)
2221
+ return SyncInvoker(self, http_info)
2222
+
2223
+ @classmethod
2224
+ def _show_history_details_http_info(cls, request):
2225
+ http_info = {
2226
+ "method": "GET",
2227
+ "resource_path": "/v3/jobs/{job_id}/{build_number}/history-details",
2228
+ "request_type": request.__class__.__name__,
2229
+ "response_type": "ShowHistoryDetailsResponse"
2230
+ }
2231
+
2232
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2233
+
2234
+ cname = None
2235
+
2236
+ collection_formats = {}
2237
+
2238
+ path_params = {}
2239
+ if 'job_id' in local_var_params:
2240
+ path_params['job_id'] = local_var_params['job_id']
2241
+ if 'build_number' in local_var_params:
2242
+ path_params['build_number'] = local_var_params['build_number']
2243
+
2244
+ query_params = []
2245
+
2246
+ header_params = {}
2247
+
2248
+ form_params = {}
2249
+
2250
+ body = None
2251
+ if isinstance(request, SdkStreamRequest):
2252
+ body = request.get_file_stream()
2253
+
2254
+ response_headers = []
2255
+
2256
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2257
+ ['application/json'])
2258
+
2259
+ auth_settings = ['apig-auth-iam']
2260
+
2261
+ http_info["cname"] = cname
2262
+ http_info["collection_formats"] = collection_formats
2263
+ http_info["path_params"] = path_params
2264
+ http_info["query_params"] = query_params
2265
+ http_info["header_params"] = header_params
2266
+ http_info["post_params"] = form_params
2267
+ http_info["body"] = body
2268
+ http_info["response_headers"] = response_headers
2269
+
2270
+ return http_info
2271
+
2272
+ def show_image_template_list(self, request):
2273
+ r"""获取镜像模板列表
2274
+
2275
+ 获取镜像模板列表
2276
+
2277
+ Please refer to HUAWEI cloud API Explorer for details.
2278
+
2279
+ :param request: Request instance for ShowImageTemplateList
2280
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowImageTemplateListRequest`
2281
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowImageTemplateListResponse`
2282
+ """
2283
+ http_info = self._show_image_template_list_http_info(request)
2284
+ return self._call_api(**http_info)
2285
+
2286
+ def show_image_template_list_invoker(self, request):
2287
+ http_info = self._show_image_template_list_http_info(request)
2288
+ return SyncInvoker(self, http_info)
2289
+
2290
+ @classmethod
2291
+ def _show_image_template_list_http_info(cls, request):
2292
+ http_info = {
2293
+ "method": "GET",
2294
+ "resource_path": "/v1/image/templates",
2295
+ "request_type": request.__class__.__name__,
2296
+ "response_type": "ShowImageTemplateListResponse"
2297
+ }
2298
+
2299
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2300
+
2301
+ cname = None
2302
+
2303
+ collection_formats = {}
2304
+
2305
+ path_params = {}
2306
+
2307
+ query_params = []
2308
+
2309
+ header_params = {}
2310
+
2311
+ form_params = {}
2312
+
2313
+ body = None
2314
+ if isinstance(request, SdkStreamRequest):
2315
+ body = request.get_file_stream()
2316
+
2317
+ response_headers = []
2318
+
2319
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2320
+ ['application/json'])
2321
+
2322
+ auth_settings = ['apig-auth-iam']
2323
+
2324
+ http_info["cname"] = cname
2325
+ http_info["collection_formats"] = collection_formats
2326
+ http_info["path_params"] = path_params
2327
+ http_info["query_params"] = query_params
2328
+ http_info["header_params"] = header_params
2329
+ http_info["post_params"] = form_params
2330
+ http_info["body"] = body
2331
+ http_info["response_headers"] = response_headers
2332
+
2333
+ return http_info
2334
+
2335
+ def show_job_build_success_ratio(self, request):
2336
+ r"""查询构建成功率
2337
+
2338
+ 查询构建成功率
2339
+
2340
+ Please refer to HUAWEI cloud API Explorer for details.
2341
+
2342
+ :param request: Request instance for ShowJobBuildSuccessRatio
2343
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioRequest`
2344
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioResponse`
2345
+ """
2346
+ http_info = self._show_job_build_success_ratio_http_info(request)
2347
+ return self._call_api(**http_info)
2348
+
2349
+ def show_job_build_success_ratio_invoker(self, request):
2350
+ http_info = self._show_job_build_success_ratio_http_info(request)
1256
2351
  return SyncInvoker(self, http_info)
1257
2352
 
1258
2353
  @classmethod
1259
2354
  def _show_job_build_success_ratio_http_info(cls, request):
1260
2355
  http_info = {
1261
2356
  "method": "GET",
1262
- "resource_path": "/v1/report/ratio",
2357
+ "resource_path": "/v1/report/ratio",
2358
+ "request_type": request.__class__.__name__,
2359
+ "response_type": "ShowJobBuildSuccessRatioResponse"
2360
+ }
2361
+
2362
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2363
+
2364
+ cname = None
2365
+
2366
+ collection_formats = {}
2367
+
2368
+ path_params = {}
2369
+
2370
+ query_params = []
2371
+ if 'job_id' in local_var_params:
2372
+ query_params.append(('job_id', local_var_params['job_id']))
2373
+ if 'repository_name' in local_var_params:
2374
+ query_params.append(('repository_name', local_var_params['repository_name']))
2375
+ if 'branch' in local_var_params:
2376
+ query_params.append(('branch', local_var_params['branch']))
2377
+ if 'interval' in local_var_params:
2378
+ query_params.append(('interval', local_var_params['interval']))
2379
+
2380
+ header_params = {}
2381
+
2382
+ form_params = {}
2383
+
2384
+ body = None
2385
+ if isinstance(request, SdkStreamRequest):
2386
+ body = request.get_file_stream()
2387
+
2388
+ response_headers = []
2389
+
2390
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2391
+ ['application/json'])
2392
+
2393
+ auth_settings = ['apig-auth-iam']
2394
+
2395
+ http_info["cname"] = cname
2396
+ http_info["collection_formats"] = collection_formats
2397
+ http_info["path_params"] = path_params
2398
+ http_info["query_params"] = query_params
2399
+ http_info["header_params"] = header_params
2400
+ http_info["post_params"] = form_params
2401
+ http_info["body"] = body
2402
+ http_info["response_headers"] = response_headers
2403
+
2404
+ return http_info
2405
+
2406
+ def show_job_build_time(self, request):
2407
+ r"""洞察构建时长
2408
+
2409
+ 洞察构建时长
2410
+
2411
+ Please refer to HUAWEI cloud API Explorer for details.
2412
+
2413
+ :param request: Request instance for ShowJobBuildTime
2414
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildTimeRequest`
2415
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildTimeResponse`
2416
+ """
2417
+ http_info = self._show_job_build_time_http_info(request)
2418
+ return self._call_api(**http_info)
2419
+
2420
+ def show_job_build_time_invoker(self, request):
2421
+ http_info = self._show_job_build_time_http_info(request)
2422
+ return SyncInvoker(self, http_info)
2423
+
2424
+ @classmethod
2425
+ def _show_job_build_time_http_info(cls, request):
2426
+ http_info = {
2427
+ "method": "GET",
2428
+ "resource_path": "/v1/report/time",
2429
+ "request_type": request.__class__.__name__,
2430
+ "response_type": "ShowJobBuildTimeResponse"
2431
+ }
2432
+
2433
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2434
+
2435
+ cname = None
2436
+
2437
+ collection_formats = {}
2438
+
2439
+ path_params = {}
2440
+
2441
+ query_params = []
2442
+ if 'job_id' in local_var_params:
2443
+ query_params.append(('job_id', local_var_params['job_id']))
2444
+ if 'repository_name' in local_var_params:
2445
+ query_params.append(('repository_name', local_var_params['repository_name']))
2446
+ if 'branch' in local_var_params:
2447
+ query_params.append(('branch', local_var_params['branch']))
2448
+ if 'interval' in local_var_params:
2449
+ query_params.append(('interval', local_var_params['interval']))
2450
+
2451
+ header_params = {}
2452
+
2453
+ form_params = {}
2454
+
2455
+ body = None
2456
+ if isinstance(request, SdkStreamRequest):
2457
+ body = request.get_file_stream()
2458
+
2459
+ response_headers = []
2460
+
2461
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2462
+ ['application/json'])
2463
+
2464
+ auth_settings = ['apig-auth-iam']
2465
+
2466
+ http_info["cname"] = cname
2467
+ http_info["collection_formats"] = collection_formats
2468
+ http_info["path_params"] = path_params
2469
+ http_info["query_params"] = query_params
2470
+ http_info["header_params"] = header_params
2471
+ http_info["post_params"] = form_params
2472
+ http_info["body"] = body
2473
+ http_info["response_headers"] = response_headers
2474
+
2475
+ return http_info
2476
+
2477
+ def show_job_config(self, request):
2478
+ r"""获取构建任务详情
2479
+
2480
+ 获取构建任务详情
2481
+
2482
+ Please refer to HUAWEI cloud API Explorer for details.
2483
+
2484
+ :param request: Request instance for ShowJobConfig
2485
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigRequest`
2486
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigResponse`
2487
+ """
2488
+ http_info = self._show_job_config_http_info(request)
2489
+ return self._call_api(**http_info)
2490
+
2491
+ def show_job_config_invoker(self, request):
2492
+ http_info = self._show_job_config_http_info(request)
2493
+ return SyncInvoker(self, http_info)
2494
+
2495
+ @classmethod
2496
+ def _show_job_config_http_info(cls, request):
2497
+ http_info = {
2498
+ "method": "GET",
2499
+ "resource_path": "/v1/job/{job_id}/config",
2500
+ "request_type": request.__class__.__name__,
2501
+ "response_type": "ShowJobConfigResponse"
2502
+ }
2503
+
2504
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2505
+
2506
+ cname = None
2507
+
2508
+ collection_formats = {}
2509
+
2510
+ path_params = {}
2511
+ if 'job_id' in local_var_params:
2512
+ path_params['job_id'] = local_var_params['job_id']
2513
+
2514
+ query_params = []
2515
+ if 'get_all_params' in local_var_params:
2516
+ query_params.append(('get_all_params', local_var_params['get_all_params']))
2517
+
2518
+ header_params = {}
2519
+
2520
+ form_params = {}
2521
+
2522
+ body = None
2523
+ if isinstance(request, SdkStreamRequest):
2524
+ body = request.get_file_stream()
2525
+
2526
+ response_headers = []
2527
+
2528
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2529
+ ['application/json'])
2530
+
2531
+ auth_settings = ['apig-auth-iam']
2532
+
2533
+ http_info["cname"] = cname
2534
+ http_info["collection_formats"] = collection_formats
2535
+ http_info["path_params"] = path_params
2536
+ http_info["query_params"] = query_params
2537
+ http_info["header_params"] = header_params
2538
+ http_info["post_params"] = form_params
2539
+ http_info["body"] = body
2540
+ http_info["response_headers"] = response_headers
2541
+
2542
+ return http_info
2543
+
2544
+ def show_job_config_diff(self, request):
2545
+ r"""获取构建任务配置的对比差异
2546
+
2547
+ 获取构建任务配置的对比差异
2548
+
2549
+ Please refer to HUAWEI cloud API Explorer for details.
2550
+
2551
+ :param request: Request instance for ShowJobConfigDiff
2552
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigDiffRequest`
2553
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigDiffResponse`
2554
+ """
2555
+ http_info = self._show_job_config_diff_http_info(request)
2556
+ return self._call_api(**http_info)
2557
+
2558
+ def show_job_config_diff_invoker(self, request):
2559
+ http_info = self._show_job_config_diff_http_info(request)
2560
+ return SyncInvoker(self, http_info)
2561
+
2562
+ @classmethod
2563
+ def _show_job_config_diff_http_info(cls, request):
2564
+ http_info = {
2565
+ "method": "GET",
2566
+ "resource_path": "/v1/job/{job_id}/diff",
2567
+ "request_type": request.__class__.__name__,
2568
+ "response_type": "ShowJobConfigDiffResponse"
2569
+ }
2570
+
2571
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2572
+
2573
+ cname = None
2574
+
2575
+ collection_formats = {}
2576
+
2577
+ path_params = {}
2578
+ if 'job_id' in local_var_params:
2579
+ path_params['job_id'] = local_var_params['job_id']
2580
+
2581
+ query_params = []
2582
+ if 'revisedl_no' in local_var_params:
2583
+ query_params.append(('revisedl_no', local_var_params['revisedl_no']))
2584
+ if 'original_no' in local_var_params:
2585
+ query_params.append(('original_no', local_var_params['original_no']))
2586
+
2587
+ header_params = {}
2588
+
2589
+ form_params = {}
2590
+
2591
+ body = None
2592
+ if isinstance(request, SdkStreamRequest):
2593
+ body = request.get_file_stream()
2594
+
2595
+ response_headers = []
2596
+
2597
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2598
+ ['application/json'])
2599
+
2600
+ auth_settings = ['apig-auth-iam']
2601
+
2602
+ http_info["cname"] = cname
2603
+ http_info["collection_formats"] = collection_formats
2604
+ http_info["path_params"] = path_params
2605
+ http_info["query_params"] = query_params
2606
+ http_info["header_params"] = header_params
2607
+ http_info["post_params"] = form_params
2608
+ http_info["body"] = body
2609
+ http_info["response_headers"] = response_headers
2610
+
2611
+ return http_info
2612
+
2613
+ def show_job_info(self, request):
2614
+ r"""查看构建任务构建信息
2615
+
2616
+ 查看构建任务构建信息
2617
+
2618
+ Please refer to HUAWEI cloud API Explorer for details.
2619
+
2620
+ :param request: Request instance for ShowJobInfo
2621
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobInfoRequest`
2622
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobInfoResponse`
2623
+ """
2624
+ http_info = self._show_job_info_http_info(request)
2625
+ return self._call_api(**http_info)
2626
+
2627
+ def show_job_info_invoker(self, request):
2628
+ http_info = self._show_job_info_http_info(request)
2629
+ return SyncInvoker(self, http_info)
2630
+
2631
+ @classmethod
2632
+ def _show_job_info_http_info(cls, request):
2633
+ http_info = {
2634
+ "method": "GET",
2635
+ "resource_path": "/v1/job/{job_id}/info",
2636
+ "request_type": request.__class__.__name__,
2637
+ "response_type": "ShowJobInfoResponse"
2638
+ }
2639
+
2640
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2641
+
2642
+ cname = None
2643
+
2644
+ collection_formats = {}
2645
+
2646
+ path_params = {}
2647
+ if 'job_id' in local_var_params:
2648
+ path_params['job_id'] = local_var_params['job_id']
2649
+
2650
+ query_params = []
2651
+
2652
+ header_params = {}
2653
+
2654
+ form_params = {}
2655
+
2656
+ body = None
2657
+ if isinstance(request, SdkStreamRequest):
2658
+ body = request.get_file_stream()
2659
+
2660
+ response_headers = []
2661
+
2662
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2663
+ ['application/json'])
2664
+
2665
+ auth_settings = ['apig-auth-iam']
2666
+
2667
+ http_info["cname"] = cname
2668
+ http_info["collection_formats"] = collection_formats
2669
+ http_info["path_params"] = path_params
2670
+ http_info["query_params"] = query_params
2671
+ http_info["header_params"] = header_params
2672
+ http_info["post_params"] = form_params
2673
+ http_info["body"] = body
2674
+ http_info["response_headers"] = response_headers
2675
+
2676
+ return http_info
2677
+
2678
+ def show_job_list_by_project_id(self, request):
2679
+ r"""查看项目下用户的构建任务列表
2680
+
2681
+ 查看项目下用户的构建任务列表
2682
+
2683
+ Please refer to HUAWEI cloud API Explorer for details.
2684
+
2685
+ :param request: Request instance for ShowJobListByProjectId
2686
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobListByProjectIdRequest`
2687
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobListByProjectIdResponse`
2688
+ """
2689
+ http_info = self._show_job_list_by_project_id_http_info(request)
2690
+ return self._call_api(**http_info)
2691
+
2692
+ def show_job_list_by_project_id_invoker(self, request):
2693
+ http_info = self._show_job_list_by_project_id_http_info(request)
2694
+ return SyncInvoker(self, http_info)
2695
+
2696
+ @classmethod
2697
+ def _show_job_list_by_project_id_http_info(cls, request):
2698
+ http_info = {
2699
+ "method": "GET",
2700
+ "resource_path": "/v3/{project_id}/jobs",
2701
+ "request_type": request.__class__.__name__,
2702
+ "response_type": "ShowJobListByProjectIdResponse"
2703
+ }
2704
+
2705
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2706
+
2707
+ cname = None
2708
+
2709
+ collection_formats = {}
2710
+
2711
+ path_params = {}
2712
+ if 'project_id' in local_var_params:
2713
+ path_params['project_id'] = local_var_params['project_id']
2714
+
2715
+ query_params = []
2716
+ if 'page_index' in local_var_params:
2717
+ query_params.append(('page_index', local_var_params['page_index']))
2718
+ if 'page_size' in local_var_params:
2719
+ query_params.append(('page_size', local_var_params['page_size']))
2720
+
2721
+ header_params = {}
2722
+
2723
+ form_params = {}
2724
+
2725
+ body = None
2726
+ if isinstance(request, SdkStreamRequest):
2727
+ body = request.get_file_stream()
2728
+
2729
+ response_headers = []
2730
+
2731
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2732
+ ['application/json'])
2733
+
2734
+ auth_settings = ['apig-auth-iam']
2735
+
2736
+ http_info["cname"] = cname
2737
+ http_info["collection_formats"] = collection_formats
2738
+ http_info["path_params"] = path_params
2739
+ http_info["query_params"] = query_params
2740
+ http_info["header_params"] = header_params
2741
+ http_info["post_params"] = form_params
2742
+ http_info["body"] = body
2743
+ http_info["response_headers"] = response_headers
2744
+
2745
+ return http_info
2746
+
2747
+ def show_job_notice_config_info(self, request):
2748
+ r"""获取通知信息
2749
+
2750
+ 获取通知信息
2751
+
2752
+ Please refer to HUAWEI cloud API Explorer for details.
2753
+
2754
+ :param request: Request instance for ShowJobNoticeConfigInfo
2755
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobNoticeConfigInfoRequest`
2756
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobNoticeConfigInfoResponse`
2757
+ """
2758
+ http_info = self._show_job_notice_config_info_http_info(request)
2759
+ return self._call_api(**http_info)
2760
+
2761
+ def show_job_notice_config_info_invoker(self, request):
2762
+ http_info = self._show_job_notice_config_info_http_info(request)
2763
+ return SyncInvoker(self, http_info)
2764
+
2765
+ @classmethod
2766
+ def _show_job_notice_config_info_http_info(cls, request):
2767
+ http_info = {
2768
+ "method": "GET",
2769
+ "resource_path": "/v1/job/{job_id}/notice",
1263
2770
  "request_type": request.__class__.__name__,
1264
- "response_type": "ShowJobBuildSuccessRatioResponse"
2771
+ "response_type": "ShowJobNoticeConfigInfoResponse"
1265
2772
  }
1266
2773
 
1267
2774
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1271,16 +2778,10 @@ class CodeArtsBuildClient(Client):
1271
2778
  collection_formats = {}
1272
2779
 
1273
2780
  path_params = {}
2781
+ if 'job_id' in local_var_params:
2782
+ path_params['job_id'] = local_var_params['job_id']
1274
2783
 
1275
2784
  query_params = []
1276
- if 'job_id' in local_var_params:
1277
- query_params.append(('job_id', local_var_params['job_id']))
1278
- if 'repository_name' in local_var_params:
1279
- query_params.append(('repository_name', local_var_params['repository_name']))
1280
- if 'branch' in local_var_params:
1281
- query_params.append(('branch', local_var_params['branch']))
1282
- if 'interval' in local_var_params:
1283
- query_params.append(('interval', local_var_params['interval']))
1284
2785
 
1285
2786
  header_params = {}
1286
2787
 
@@ -1308,31 +2809,31 @@ class CodeArtsBuildClient(Client):
1308
2809
 
1309
2810
  return http_info
1310
2811
 
1311
- def show_job_list_by_project_id(self, request):
1312
- r"""查看项目下用户的构建任务列表
2812
+ def show_job_role_permission(self, request):
2813
+ r"""获取构建任务的角色权限矩阵信息
1313
2814
 
1314
- 查看项目下用户的构建任务列表
2815
+ 获取构建任务的角色权限矩阵信息
1315
2816
 
1316
2817
  Please refer to HUAWEI cloud API Explorer for details.
1317
2818
 
1318
- :param request: Request instance for ShowJobListByProjectId
1319
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobListByProjectIdRequest`
1320
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobListByProjectIdResponse`
2819
+ :param request: Request instance for ShowJobRolePermission
2820
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobRolePermissionRequest`
2821
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobRolePermissionResponse`
1321
2822
  """
1322
- http_info = self._show_job_list_by_project_id_http_info(request)
2823
+ http_info = self._show_job_role_permission_http_info(request)
1323
2824
  return self._call_api(**http_info)
1324
2825
 
1325
- def show_job_list_by_project_id_invoker(self, request):
1326
- http_info = self._show_job_list_by_project_id_http_info(request)
2826
+ def show_job_role_permission_invoker(self, request):
2827
+ http_info = self._show_job_role_permission_http_info(request)
1327
2828
  return SyncInvoker(self, http_info)
1328
2829
 
1329
2830
  @classmethod
1330
- def _show_job_list_by_project_id_http_info(cls, request):
2831
+ def _show_job_role_permission_http_info(cls, request):
1331
2832
  http_info = {
1332
2833
  "method": "GET",
1333
- "resource_path": "/v3/{project_id}/jobs",
2834
+ "resource_path": "/v1/job/permission/role",
1334
2835
  "request_type": request.__class__.__name__,
1335
- "response_type": "ShowJobListByProjectIdResponse"
2836
+ "response_type": "ShowJobRolePermissionResponse"
1336
2837
  }
1337
2838
 
1338
2839
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1342,14 +2843,10 @@ class CodeArtsBuildClient(Client):
1342
2843
  collection_formats = {}
1343
2844
 
1344
2845
  path_params = {}
1345
- if 'project_id' in local_var_params:
1346
- path_params['project_id'] = local_var_params['project_id']
1347
2846
 
1348
2847
  query_params = []
1349
- if 'page_index' in local_var_params:
1350
- query_params.append(('page_index', local_var_params['page_index']))
1351
- if 'page_size' in local_var_params:
1352
- query_params.append(('page_size', local_var_params['page_size']))
2848
+ if 'job_id' in local_var_params:
2849
+ query_params.append(('job_id', local_var_params['job_id']))
1353
2850
 
1354
2851
  header_params = {}
1355
2852
 
@@ -1511,6 +3008,138 @@ class CodeArtsBuildClient(Client):
1511
3008
 
1512
3009
  return http_info
1513
3010
 
3011
+ def show_job_system_parameters(self, request):
3012
+ r"""查看系统预定义参数
3013
+
3014
+ 查看系统预定义参数
3015
+
3016
+ Please refer to HUAWEI cloud API Explorer for details.
3017
+
3018
+ :param request: Request instance for ShowJobSystemParameters
3019
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSystemParametersRequest`
3020
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSystemParametersResponse`
3021
+ """
3022
+ http_info = self._show_job_system_parameters_http_info(request)
3023
+ return self._call_api(**http_info)
3024
+
3025
+ def show_job_system_parameters_invoker(self, request):
3026
+ http_info = self._show_job_system_parameters_http_info(request)
3027
+ return SyncInvoker(self, http_info)
3028
+
3029
+ @classmethod
3030
+ def _show_job_system_parameters_http_info(cls, request):
3031
+ http_info = {
3032
+ "method": "GET",
3033
+ "resource_path": "/v1/job/system-parameters",
3034
+ "request_type": request.__class__.__name__,
3035
+ "response_type": "ShowJobSystemParametersResponse"
3036
+ }
3037
+
3038
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3039
+
3040
+ cname = None
3041
+
3042
+ collection_formats = {}
3043
+
3044
+ path_params = {}
3045
+
3046
+ query_params = []
3047
+
3048
+ header_params = {}
3049
+
3050
+ form_params = {}
3051
+
3052
+ body = None
3053
+ if isinstance(request, SdkStreamRequest):
3054
+ body = request.get_file_stream()
3055
+
3056
+ response_headers = []
3057
+
3058
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3059
+ ['application/json'])
3060
+
3061
+ auth_settings = ['apig-auth-iam']
3062
+
3063
+ http_info["cname"] = cname
3064
+ http_info["collection_formats"] = collection_formats
3065
+ http_info["path_params"] = path_params
3066
+ http_info["query_params"] = query_params
3067
+ http_info["header_params"] = header_params
3068
+ http_info["post_params"] = form_params
3069
+ http_info["body"] = body
3070
+ http_info["response_headers"] = response_headers
3071
+
3072
+ return http_info
3073
+
3074
+ def show_keystore_permission(self, request):
3075
+ r"""文件管理查询权限
3076
+
3077
+ 文件管理查询权限
3078
+
3079
+ Please refer to HUAWEI cloud API Explorer for details.
3080
+
3081
+ :param request: Request instance for ShowKeystorePermission
3082
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowKeystorePermissionRequest`
3083
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowKeystorePermissionResponse`
3084
+ """
3085
+ http_info = self._show_keystore_permission_http_info(request)
3086
+ return self._call_api(**http_info)
3087
+
3088
+ def show_keystore_permission_invoker(self, request):
3089
+ http_info = self._show_keystore_permission_http_info(request)
3090
+ return SyncInvoker(self, http_info)
3091
+
3092
+ @classmethod
3093
+ def _show_keystore_permission_http_info(cls, request):
3094
+ http_info = {
3095
+ "method": "GET",
3096
+ "resource_path": "/v2/keystore/permission/{keystore_id}/query",
3097
+ "request_type": request.__class__.__name__,
3098
+ "response_type": "ShowKeystorePermissionResponse"
3099
+ }
3100
+
3101
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3102
+
3103
+ cname = None
3104
+
3105
+ collection_formats = {}
3106
+
3107
+ path_params = {}
3108
+ if 'keystore_id' in local_var_params:
3109
+ path_params['keystore_id'] = local_var_params['keystore_id']
3110
+
3111
+ query_params = []
3112
+ if 'page_size' in local_var_params:
3113
+ query_params.append(('page_size', local_var_params['page_size']))
3114
+ if 'page' in local_var_params:
3115
+ query_params.append(('page', local_var_params['page']))
3116
+
3117
+ header_params = {}
3118
+
3119
+ form_params = {}
3120
+
3121
+ body = None
3122
+ if isinstance(request, SdkStreamRequest):
3123
+ body = request.get_file_stream()
3124
+
3125
+ response_headers = []
3126
+
3127
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3128
+ ['application/json'])
3129
+
3130
+ auth_settings = ['apig-auth-iam']
3131
+
3132
+ http_info["cname"] = cname
3133
+ http_info["collection_formats"] = collection_formats
3134
+ http_info["path_params"] = path_params
3135
+ http_info["query_params"] = query_params
3136
+ http_info["header_params"] = header_params
3137
+ http_info["post_params"] = form_params
3138
+ http_info["body"] = body
3139
+ http_info["response_headers"] = response_headers
3140
+
3141
+ return http_info
3142
+
1514
3143
  def show_last_history(self, request):
1515
3144
  r"""查询指定代码仓库最近一次成功的构建历史
1516
3145
 
@@ -1789,6 +3418,71 @@ class CodeArtsBuildClient(Client):
1789
3418
 
1790
3419
  return http_info
1791
3420
 
3421
+ def show_project_permission(self, request):
3422
+ r"""获取用户权限
3423
+
3424
+ 获取用户权限
3425
+
3426
+ Please refer to HUAWEI cloud API Explorer for details.
3427
+
3428
+ :param request: Request instance for ShowProjectPermission
3429
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowProjectPermissionRequest`
3430
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowProjectPermissionResponse`
3431
+ """
3432
+ http_info = self._show_project_permission_http_info(request)
3433
+ return self._call_api(**http_info)
3434
+
3435
+ def show_project_permission_invoker(self, request):
3436
+ http_info = self._show_project_permission_http_info(request)
3437
+ return SyncInvoker(self, http_info)
3438
+
3439
+ @classmethod
3440
+ def _show_project_permission_http_info(cls, request):
3441
+ http_info = {
3442
+ "method": "GET",
3443
+ "resource_path": "/v1/domain/user-permission",
3444
+ "request_type": request.__class__.__name__,
3445
+ "response_type": "ShowProjectPermissionResponse"
3446
+ }
3447
+
3448
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3449
+
3450
+ cname = None
3451
+
3452
+ collection_formats = {}
3453
+
3454
+ path_params = {}
3455
+
3456
+ query_params = []
3457
+ if 'project_id' in local_var_params:
3458
+ query_params.append(('project_id', local_var_params['project_id']))
3459
+
3460
+ header_params = {}
3461
+
3462
+ form_params = {}
3463
+
3464
+ body = None
3465
+ if isinstance(request, SdkStreamRequest):
3466
+ body = request.get_file_stream()
3467
+
3468
+ response_headers = []
3469
+
3470
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3471
+ ['application/json'])
3472
+
3473
+ auth_settings = ['apig-auth-iam']
3474
+
3475
+ http_info["cname"] = cname
3476
+ http_info["collection_formats"] = collection_formats
3477
+ http_info["path_params"] = path_params
3478
+ http_info["query_params"] = query_params
3479
+ http_info["header_params"] = header_params
3480
+ http_info["post_params"] = form_params
3481
+ http_info["body"] = body
3482
+ http_info["response_headers"] = response_headers
3483
+
3484
+ return http_info
3485
+
1792
3486
  def show_record_detail(self, request):
1793
3487
  r"""获取构建记录信息
1794
3488
 
@@ -1856,6 +3550,69 @@ class CodeArtsBuildClient(Client):
1856
3550
 
1857
3551
  return http_info
1858
3552
 
3553
+ def show_related_project(self, request):
3554
+ r"""获取当前用户的项目信息列表
3555
+
3556
+ 获取当前用户的项目信息列表
3557
+
3558
+ Please refer to HUAWEI cloud API Explorer for details.
3559
+
3560
+ :param request: Request instance for ShowRelatedProject
3561
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRelatedProjectRequest`
3562
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRelatedProjectResponse`
3563
+ """
3564
+ http_info = self._show_related_project_http_info(request)
3565
+ return self._call_api(**http_info)
3566
+
3567
+ def show_related_project_invoker(self, request):
3568
+ http_info = self._show_related_project_http_info(request)
3569
+ return SyncInvoker(self, http_info)
3570
+
3571
+ @classmethod
3572
+ def _show_related_project_http_info(cls, request):
3573
+ http_info = {
3574
+ "method": "GET",
3575
+ "resource_path": "/v1/domain/project/related",
3576
+ "request_type": request.__class__.__name__,
3577
+ "response_type": "ShowRelatedProjectResponse"
3578
+ }
3579
+
3580
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3581
+
3582
+ cname = None
3583
+
3584
+ collection_formats = {}
3585
+
3586
+ path_params = {}
3587
+
3588
+ query_params = []
3589
+
3590
+ header_params = {}
3591
+
3592
+ form_params = {}
3593
+
3594
+ body = None
3595
+ if isinstance(request, SdkStreamRequest):
3596
+ body = request.get_file_stream()
3597
+
3598
+ response_headers = []
3599
+
3600
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3601
+ ['application/json'])
3602
+
3603
+ auth_settings = ['apig-auth-iam']
3604
+
3605
+ http_info["cname"] = cname
3606
+ http_info["collection_formats"] = collection_formats
3607
+ http_info["path_params"] = path_params
3608
+ http_info["query_params"] = query_params
3609
+ http_info["header_params"] = header_params
3610
+ http_info["post_params"] = form_params
3611
+ http_info["body"] = body
3612
+ http_info["response_headers"] = response_headers
3613
+
3614
+ return http_info
3615
+
1859
3616
  def show_report_summary(self, request):
1860
3617
  r"""获取覆盖率接口
1861
3618