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 CodeArtsBuildAsyncClient(Client):
33
33
 
34
34
  return client_builder
35
35
 
36
+ def check_job_name_is_exists_async(self, request):
37
+ r"""查看项目下任务名是否存在
38
+
39
+ 查看项目下任务名是否存在
40
+
41
+ Please refer to HUAWEI cloud API Explorer for details.
42
+
43
+
44
+ :param request: Request instance for CheckJobNameIsExists
45
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobNameIsExistsRequest`
46
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobNameIsExistsResponse`
47
+ """
48
+ http_info = self._check_job_name_is_exists_http_info(request)
49
+ return self._call_api(**http_info)
50
+
51
+ def check_job_name_is_exists_async_invoker(self, request):
52
+ http_info = self._check_job_name_is_exists_http_info(request)
53
+ return AsyncInvoker(self, http_info)
54
+
55
+ def _check_job_name_is_exists_http_info(self, 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_async(self, request):
37
104
  r"""创建构建任务
38
105
 
@@ -559,6 +626,75 @@ class CodeArtsBuildAsyncClient(Client):
559
626
 
560
627
  return http_info
561
628
 
629
+ def download_keystore_by_name_async(self, request):
630
+ r"""文件管理文件下载
631
+
632
+ 文件管理文件下载
633
+
634
+ Please refer to HUAWEI cloud API Explorer for details.
635
+
636
+
637
+ :param request: Request instance for DownloadKeystoreByName
638
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadKeystoreByNameRequest`
639
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadKeystoreByNameResponse`
640
+ """
641
+ http_info = self._download_keystore_by_name_http_info(request)
642
+ return self._call_api(**http_info)
643
+
644
+ def download_keystore_by_name_async_invoker(self, request):
645
+ http_info = self._download_keystore_by_name_http_info(request)
646
+ return AsyncInvoker(self, http_info)
647
+
648
+ def _download_keystore_by_name_http_info(self, 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_async(self, request):
563
699
  r"""下载构建实时日志
564
700
 
@@ -837,31 +973,31 @@ class CodeArtsBuildAsyncClient(Client):
837
973
 
838
974
  return http_info
839
975
 
840
- def list_job_config_async(self, request):
841
- r"""获取构建任务详情
976
+ def list_build_info_record_by_job_id_async(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
983
 
848
- :param request: Request instance for ListJobConfig
849
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListJobConfigRequest`
850
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListJobConfigResponse`
984
+ :param request: Request instance for ListBuildInfoRecordByJobId
985
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListBuildInfoRecordByJobIdRequest`
986
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListBuildInfoRecordByJobIdResponse`
851
987
  """
852
- http_info = self._list_job_config_http_info(request)
988
+ http_info = self._list_build_info_record_by_job_id_http_info(request)
853
989
  return self._call_api(**http_info)
854
990
 
855
- def list_job_config_async_invoker(self, request):
856
- http_info = self._list_job_config_http_info(request)
991
+ def list_build_info_record_by_job_id_async_invoker(self, request):
992
+ http_info = self._list_build_info_record_by_job_id_http_info(request)
857
993
  return AsyncInvoker(self, http_info)
858
994
 
859
- def _list_job_config_http_info(self, request):
995
+ def _list_build_info_record_by_job_id_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
904
1046
 
905
1047
  return http_info
906
1048
 
907
- def list_notice_async(self, request):
908
- r"""查询通知
1049
+ def list_job_config_async(self, request):
1050
+ r"""获取构建任务详情
909
1051
 
910
- 查询通知
1052
+ 获取构建任务详情
911
1053
 
912
1054
  Please refer to HUAWEI cloud API Explorer for details.
913
1055
 
914
1056
 
915
- :param request: Request instance for ListNotice
916
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListNoticeRequest`
917
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListNoticeResponse`
1057
+ :param request: Request instance for ListJobConfig
1058
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListJobConfigRequest`
1059
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListJobConfigResponse`
918
1060
  """
919
- http_info = self._list_notice_http_info(request)
1061
+ http_info = self._list_job_config_http_info(request)
920
1062
  return self._call_api(**http_info)
921
1063
 
922
- def list_notice_async_invoker(self, request):
923
- http_info = self._list_notice_http_info(request)
1064
+ def list_job_config_async_invoker(self, request):
1065
+ http_info = self._list_job_config_http_info(request)
924
1066
  return AsyncInvoker(self, http_info)
925
1067
 
926
- def _list_notice_http_info(self, request):
1068
+ def _list_job_config_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
969
1113
 
970
1114
  return http_info
971
1115
 
972
- def list_templates_async(self, request):
973
- r"""查询构建模板
1116
+ def list_keystore_async(self, request):
1117
+ r"""查询用户可使用文件
974
1118
 
975
- 查询构建模板
1119
+ 查询用户可使用文件
976
1120
 
977
1121
  Please refer to HUAWEI cloud API Explorer for details.
978
1122
 
979
1123
 
980
- :param request: Request instance for ListTemplates
981
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListTemplatesRequest`
982
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListTemplatesResponse`
1124
+ :param request: Request instance for ListKeystore
1125
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListKeystoreRequest`
1126
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListKeystoreResponse`
983
1127
  """
984
- http_info = self._list_templates_http_info(request)
1128
+ http_info = self._list_keystore_http_info(request)
985
1129
  return self._call_api(**http_info)
986
1130
 
987
- def list_templates_async_invoker(self, request):
988
- http_info = self._list_templates_http_info(request)
1131
+ def list_keystore_async_invoker(self, request):
1132
+ http_info = self._list_keystore_http_info(request)
989
1133
  return AsyncInvoker(self, http_info)
990
1134
 
991
- def _list_templates_http_info(self, request):
1135
+ def _list_keystore_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
1038
1176
 
1039
1177
  return http_info
1040
1178
 
1041
- def run_job_async(self, request):
1042
- r"""执行构建任务
1179
+ def list_notice_async(self, request):
1180
+ r"""查询通知
1043
1181
 
1044
- 执行构建任务,可传自定义参数
1182
+ 查询通知
1045
1183
 
1046
1184
  Please refer to HUAWEI cloud API Explorer for details.
1047
1185
 
1048
1186
 
1049
- :param request: Request instance for RunJob
1050
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.RunJobRequest`
1051
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.RunJobResponse`
1187
+ :param request: Request instance for ListNotice
1188
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListNoticeRequest`
1189
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListNoticeResponse`
1052
1190
  """
1053
- http_info = self._run_job_http_info(request)
1191
+ http_info = self._list_notice_http_info(request)
1054
1192
  return self._call_api(**http_info)
1055
1193
 
1056
- def run_job_async_invoker(self, request):
1057
- http_info = self._run_job_http_info(request)
1194
+ def list_notice_async_invoker(self, request):
1195
+ http_info = self._list_notice_http_info(request)
1058
1196
  return AsyncInvoker(self, http_info)
1059
1197
 
1060
- def _run_job_http_info(self, request):
1198
+ def _list_notice_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
1103
1241
 
1104
1242
  return http_info
1105
1243
 
1106
- def show_build_record_full_stages_async(self, request):
1107
- r"""获取任务各阶段信息
1244
+ def list_official_template_async(self, request):
1245
+ r"""查询官方模版
1108
1246
 
1109
- 获取任务各阶段信息
1247
+ 查询官方模版
1110
1248
 
1111
1249
  Please refer to HUAWEI cloud API Explorer for details.
1112
1250
 
1113
1251
 
1114
- :param request: Request instance for ShowBuildRecordFullStages
1115
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFullStagesRequest`
1116
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFullStagesResponse`
1252
+ :param request: Request instance for ListOfficialTemplate
1253
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListOfficialTemplateRequest`
1254
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListOfficialTemplateResponse`
1117
1255
  """
1118
- http_info = self._show_build_record_full_stages_http_info(request)
1256
+ http_info = self._list_official_template_http_info(request)
1119
1257
  return self._call_api(**http_info)
1120
1258
 
1121
- def show_build_record_full_stages_async_invoker(self, request):
1122
- http_info = self._show_build_record_full_stages_http_info(request)
1259
+ def list_official_template_async_invoker(self, request):
1260
+ http_info = self._list_official_template_http_info(request)
1123
1261
  return AsyncInvoker(self, http_info)
1124
1262
 
1125
- def _show_build_record_full_stages_http_info(self, request):
1263
+ def _list_official_template_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
1170
1310
 
1171
1311
  return http_info
1172
1312
 
1173
- def show_history_details_async(self, request):
1174
- r"""获取构建历史详情信息接口
1313
+ def list_project_jobs_async(self, request):
1314
+ r"""查询项目任务列表
1175
1315
 
1176
- 获取构建历史详情信息接口
1316
+ 查询项目任务列表
1177
1317
 
1178
1318
  Please refer to HUAWEI cloud API Explorer for details.
1179
1319
 
1180
1320
 
1181
- :param request: Request instance for ShowHistoryDetails
1182
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowHistoryDetailsRequest`
1183
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowHistoryDetailsResponse`
1321
+ :param request: Request instance for ListProjectJobs
1322
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListProjectJobsRequest`
1323
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListProjectJobsResponse`
1184
1324
  """
1185
- http_info = self._show_history_details_http_info(request)
1325
+ http_info = self._list_project_jobs_http_info(request)
1186
1326
  return self._call_api(**http_info)
1187
1327
 
1188
- def show_history_details_async_invoker(self, request):
1189
- http_info = self._show_history_details_http_info(request)
1328
+ def list_project_jobs_async_invoker(self, request):
1329
+ http_info = self._list_project_jobs_http_info(request)
1190
1330
  return AsyncInvoker(self, http_info)
1191
1331
 
1192
- def _show_history_details_http_info(self, request):
1332
+ def _list_project_jobs_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
1237
1393
 
1238
1394
  return http_info
1239
1395
 
1240
- def show_job_build_success_ratio_async(self, request):
1241
- r"""查询构建成功率
1396
+ def list_records_async(self, request):
1397
+ r"""获取指定工程的构建记录列表
1242
1398
 
1243
- 查询构建成功率
1399
+ 获取指定工程的构建记录列表
1244
1400
 
1245
1401
  Please refer to HUAWEI cloud API Explorer for details.
1246
1402
 
1247
1403
 
1248
- :param request: Request instance for ShowJobBuildSuccessRatio
1249
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioRequest`
1250
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioResponse`
1404
+ :param request: Request instance for ListRecords
1405
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecordsRequest`
1406
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecordsResponse`
1251
1407
  """
1252
- http_info = self._show_job_build_success_ratio_http_info(request)
1408
+ http_info = self._list_records_http_info(request)
1253
1409
  return self._call_api(**http_info)
1254
1410
 
1255
- def show_job_build_success_ratio_async_invoker(self, request):
1256
- http_info = self._show_job_build_success_ratio_http_info(request)
1411
+ def list_records_async_invoker(self, request):
1412
+ http_info = self._list_records_http_info(request)
1413
+ return AsyncInvoker(self, http_info)
1414
+
1415
+ def _list_records_http_info(self, 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_async(self, request):
1479
+ r"""查看回收站中删除的构建任务列表
1480
+
1481
+ 查看回收站中删除的构建任务列表
1482
+
1483
+ Please refer to HUAWEI cloud API Explorer for details.
1484
+
1485
+
1486
+ :param request: Request instance for ListRecyclingJob
1487
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecyclingJobRequest`
1488
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecyclingJobResponse`
1489
+ """
1490
+ http_info = self._list_recycling_job_http_info(request)
1491
+ return self._call_api(**http_info)
1492
+
1493
+ def list_recycling_job_async_invoker(self, request):
1494
+ http_info = self._list_recycling_job_http_info(request)
1495
+ return AsyncInvoker(self, http_info)
1496
+
1497
+ def _list_recycling_job_http_info(self, 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_async(self, request):
1548
+ r"""获取项目列表
1549
+
1550
+ 获取项目列表
1551
+
1552
+ Please refer to HUAWEI cloud API Explorer for details.
1553
+
1554
+
1555
+ :param request: Request instance for ListRelatedProjectInfo
1556
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListRelatedProjectInfoRequest`
1557
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRelatedProjectInfoResponse`
1558
+ """
1559
+ http_info = self._list_related_project_info_http_info(request)
1560
+ return self._call_api(**http_info)
1561
+
1562
+ def list_related_project_info_async_invoker(self, request):
1563
+ http_info = self._list_related_project_info_http_info(request)
1564
+ return AsyncInvoker(self, http_info)
1565
+
1566
+ def _list_related_project_info_http_info(self, 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_async(self, request):
1617
+ r"""查询构建模板
1618
+
1619
+ 查询构建模板
1620
+
1621
+ Please refer to HUAWEI cloud API Explorer for details.
1622
+
1623
+
1624
+ :param request: Request instance for ListTemplates
1625
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListTemplatesRequest`
1626
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListTemplatesResponse`
1627
+ """
1628
+ http_info = self._list_templates_http_info(request)
1629
+ return self._call_api(**http_info)
1630
+
1631
+ def list_templates_async_invoker(self, request):
1632
+ http_info = self._list_templates_http_info(request)
1633
+ return AsyncInvoker(self, http_info)
1634
+
1635
+ def _list_templates_http_info(self, 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_async(self, request):
1686
+ r"""执行构建任务
1687
+
1688
+ 执行构建任务,可传自定义参数
1689
+
1690
+ Please refer to HUAWEI cloud API Explorer for details.
1691
+
1692
+
1693
+ :param request: Request instance for RunJob
1694
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.RunJobRequest`
1695
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.RunJobResponse`
1696
+ """
1697
+ http_info = self._run_job_http_info(request)
1698
+ return self._call_api(**http_info)
1699
+
1700
+ def run_job_async_invoker(self, request):
1701
+ http_info = self._run_job_http_info(request)
1702
+ return AsyncInvoker(self, http_info)
1703
+
1704
+ def _run_job_http_info(self, 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_async(self, request):
1751
+ r"""获取任务构建记录列表
1752
+
1753
+ 获取任务构建记录列表
1754
+
1755
+ Please refer to HUAWEI cloud API Explorer for details.
1756
+
1757
+
1758
+ :param request: Request instance for ShowBuildInfoRecord
1759
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildInfoRecordRequest`
1760
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildInfoRecordResponse`
1761
+ """
1762
+ http_info = self._show_build_info_record_http_info(request)
1763
+ return self._call_api(**http_info)
1764
+
1765
+ def show_build_info_record_async_invoker(self, request):
1766
+ http_info = self._show_build_info_record_http_info(request)
1767
+ return AsyncInvoker(self, http_info)
1768
+
1769
+ def _show_build_info_record_http_info(self, 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_async(self, request):
1818
+ r"""编辑页获取参数类型的接口
1819
+
1820
+ 编辑页获取参数类型的接口
1821
+
1822
+ Please refer to HUAWEI cloud API Explorer for details.
1823
+
1824
+
1825
+ :param request: Request instance for ShowBuildParamsList
1826
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildParamsListRequest`
1827
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildParamsListResponse`
1828
+ """
1829
+ http_info = self._show_build_params_list_http_info(request)
1830
+ return self._call_api(**http_info)
1831
+
1832
+ def show_build_params_list_async_invoker(self, request):
1833
+ http_info = self._show_build_params_list_http_info(request)
1834
+ return AsyncInvoker(self, http_info)
1835
+
1836
+ def _show_build_params_list_http_info(self, 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_async(self, request):
1881
+ r"""查询指定构建记录详情
1882
+
1883
+ 查询指定构建记录详情
1884
+
1885
+ Please refer to HUAWEI cloud API Explorer for details.
1886
+
1887
+
1888
+ :param request: Request instance for ShowBuildRecord
1889
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordRequest`
1890
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordResponse`
1891
+ """
1892
+ http_info = self._show_build_record_http_info(request)
1893
+ return self._call_api(**http_info)
1894
+
1895
+ def show_build_record_async_invoker(self, request):
1896
+ http_info = self._show_build_record_http_info(request)
1897
+ return AsyncInvoker(self, http_info)
1898
+
1899
+ def _show_build_record_http_info(self, 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_async(self, request):
1946
+ r"""获取构建记录的构建脚本
1947
+
1948
+ 获取构建记录的构建脚本
1949
+
1950
+ Please refer to HUAWEI cloud API Explorer for details.
1951
+
1952
+
1953
+ :param request: Request instance for ShowBuildRecordBuildScript
1954
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordBuildScriptRequest`
1955
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordBuildScriptResponse`
1956
+ """
1957
+ http_info = self._show_build_record_build_script_http_info(request)
1958
+ return self._call_api(**http_info)
1959
+
1960
+ def show_build_record_build_script_async_invoker(self, request):
1961
+ http_info = self._show_build_record_build_script_http_info(request)
1962
+ return AsyncInvoker(self, http_info)
1963
+
1964
+ def _show_build_record_build_script_http_info(self, 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_async(self, request):
2011
+ r"""获取任务各阶段信息
2012
+
2013
+ 获取任务各阶段信息
2014
+
2015
+ Please refer to HUAWEI cloud API Explorer for details.
2016
+
2017
+
2018
+ :param request: Request instance for ShowBuildRecordFullStages
2019
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFullStagesRequest`
2020
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFullStagesResponse`
2021
+ """
2022
+ http_info = self._show_build_record_full_stages_http_info(request)
2023
+ return self._call_api(**http_info)
2024
+
2025
+ def show_build_record_full_stages_async_invoker(self, request):
2026
+ http_info = self._show_build_record_full_stages_http_info(request)
2027
+ return AsyncInvoker(self, http_info)
2028
+
2029
+ def _show_build_record_full_stages_http_info(self, 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_async(self, request):
2078
+ r"""获取编译构建默认参数
2079
+
2080
+ 获取编译构建默认参数
2081
+
2082
+ Please refer to HUAWEI cloud API Explorer for details.
2083
+
2084
+
2085
+ :param request: Request instance for ShowDefaultBuildParameters
2086
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDefaultBuildParametersRequest`
2087
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDefaultBuildParametersResponse`
2088
+ """
2089
+ http_info = self._show_default_build_parameters_http_info(request)
2090
+ return self._call_api(**http_info)
2091
+
2092
+ def show_default_build_parameters_async_invoker(self, request):
2093
+ http_info = self._show_default_build_parameters_http_info(request)
2094
+ return AsyncInvoker(self, http_info)
2095
+
2096
+ def _show_default_build_parameters_http_info(self, 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_async(self, request):
2141
+ r"""获取dockerfileTemplate
2142
+
2143
+ 获取dockerfileTemplate
2144
+
2145
+ Please refer to HUAWEI cloud API Explorer for details.
2146
+
2147
+
2148
+ :param request: Request instance for ShowDockerfileTemplate
2149
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDockerfileTemplateRequest`
2150
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDockerfileTemplateResponse`
2151
+ """
2152
+ http_info = self._show_dockerfile_template_http_info(request)
2153
+ return self._call_api(**http_info)
2154
+
2155
+ def show_dockerfile_template_async_invoker(self, request):
2156
+ http_info = self._show_dockerfile_template_http_info(request)
2157
+ return AsyncInvoker(self, http_info)
2158
+
2159
+ def _show_dockerfile_template_http_info(self, 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_async(self, request):
2206
+ r"""获取构建历史详情信息接口
2207
+
2208
+ 获取构建历史详情信息接口
2209
+
2210
+ Please refer to HUAWEI cloud API Explorer for details.
2211
+
2212
+
2213
+ :param request: Request instance for ShowHistoryDetails
2214
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowHistoryDetailsRequest`
2215
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowHistoryDetailsResponse`
2216
+ """
2217
+ http_info = self._show_history_details_http_info(request)
2218
+ return self._call_api(**http_info)
2219
+
2220
+ def show_history_details_async_invoker(self, request):
2221
+ http_info = self._show_history_details_http_info(request)
2222
+ return AsyncInvoker(self, http_info)
2223
+
2224
+ def _show_history_details_http_info(self, 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_async(self, request):
2273
+ r"""获取镜像模板列表
2274
+
2275
+ 获取镜像模板列表
2276
+
2277
+ Please refer to HUAWEI cloud API Explorer for details.
2278
+
2279
+
2280
+ :param request: Request instance for ShowImageTemplateList
2281
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowImageTemplateListRequest`
2282
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowImageTemplateListResponse`
2283
+ """
2284
+ http_info = self._show_image_template_list_http_info(request)
2285
+ return self._call_api(**http_info)
2286
+
2287
+ def show_image_template_list_async_invoker(self, request):
2288
+ http_info = self._show_image_template_list_http_info(request)
2289
+ return AsyncInvoker(self, http_info)
2290
+
2291
+ def _show_image_template_list_http_info(self, 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_async(self, request):
2336
+ r"""查询构建成功率
2337
+
2338
+ 查询构建成功率
2339
+
2340
+ Please refer to HUAWEI cloud API Explorer for details.
2341
+
2342
+
2343
+ :param request: Request instance for ShowJobBuildSuccessRatio
2344
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioRequest`
2345
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioResponse`
2346
+ """
2347
+ http_info = self._show_job_build_success_ratio_http_info(request)
2348
+ return self._call_api(**http_info)
2349
+
2350
+ def show_job_build_success_ratio_async_invoker(self, request):
2351
+ http_info = self._show_job_build_success_ratio_http_info(request)
1257
2352
  return AsyncInvoker(self, http_info)
1258
2353
 
1259
2354
  def _show_job_build_success_ratio_http_info(self, 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_async(self, request):
2407
+ r"""洞察构建时长
2408
+
2409
+ 洞察构建时长
2410
+
2411
+ Please refer to HUAWEI cloud API Explorer for details.
2412
+
2413
+
2414
+ :param request: Request instance for ShowJobBuildTime
2415
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildTimeRequest`
2416
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildTimeResponse`
2417
+ """
2418
+ http_info = self._show_job_build_time_http_info(request)
2419
+ return self._call_api(**http_info)
2420
+
2421
+ def show_job_build_time_async_invoker(self, request):
2422
+ http_info = self._show_job_build_time_http_info(request)
2423
+ return AsyncInvoker(self, http_info)
2424
+
2425
+ def _show_job_build_time_http_info(self, 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_async(self, request):
2478
+ r"""获取构建任务详情
2479
+
2480
+ 获取构建任务详情
2481
+
2482
+ Please refer to HUAWEI cloud API Explorer for details.
2483
+
2484
+
2485
+ :param request: Request instance for ShowJobConfig
2486
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigRequest`
2487
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigResponse`
2488
+ """
2489
+ http_info = self._show_job_config_http_info(request)
2490
+ return self._call_api(**http_info)
2491
+
2492
+ def show_job_config_async_invoker(self, request):
2493
+ http_info = self._show_job_config_http_info(request)
2494
+ return AsyncInvoker(self, http_info)
2495
+
2496
+ def _show_job_config_http_info(self, 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_async(self, request):
2545
+ r"""获取构建任务配置的对比差异
2546
+
2547
+ 获取构建任务配置的对比差异
2548
+
2549
+ Please refer to HUAWEI cloud API Explorer for details.
2550
+
2551
+
2552
+ :param request: Request instance for ShowJobConfigDiff
2553
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigDiffRequest`
2554
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigDiffResponse`
2555
+ """
2556
+ http_info = self._show_job_config_diff_http_info(request)
2557
+ return self._call_api(**http_info)
2558
+
2559
+ def show_job_config_diff_async_invoker(self, request):
2560
+ http_info = self._show_job_config_diff_http_info(request)
2561
+ return AsyncInvoker(self, http_info)
2562
+
2563
+ def _show_job_config_diff_http_info(self, 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_async(self, request):
2614
+ r"""查看构建任务构建信息
2615
+
2616
+ 查看构建任务构建信息
2617
+
2618
+ Please refer to HUAWEI cloud API Explorer for details.
2619
+
2620
+
2621
+ :param request: Request instance for ShowJobInfo
2622
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobInfoRequest`
2623
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobInfoResponse`
2624
+ """
2625
+ http_info = self._show_job_info_http_info(request)
2626
+ return self._call_api(**http_info)
2627
+
2628
+ def show_job_info_async_invoker(self, request):
2629
+ http_info = self._show_job_info_http_info(request)
2630
+ return AsyncInvoker(self, http_info)
2631
+
2632
+ def _show_job_info_http_info(self, 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_async(self, request):
2679
+ r"""查看项目下用户的构建任务列表
2680
+
2681
+ 查看项目下用户的构建任务列表
2682
+
2683
+ Please refer to HUAWEI cloud API Explorer for details.
2684
+
2685
+
2686
+ :param request: Request instance for ShowJobListByProjectId
2687
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobListByProjectIdRequest`
2688
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobListByProjectIdResponse`
2689
+ """
2690
+ http_info = self._show_job_list_by_project_id_http_info(request)
2691
+ return self._call_api(**http_info)
2692
+
2693
+ def show_job_list_by_project_id_async_invoker(self, request):
2694
+ http_info = self._show_job_list_by_project_id_http_info(request)
2695
+ return AsyncInvoker(self, http_info)
2696
+
2697
+ def _show_job_list_by_project_id_http_info(self, 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_async(self, request):
2748
+ r"""获取通知信息
2749
+
2750
+ 获取通知信息
2751
+
2752
+ Please refer to HUAWEI cloud API Explorer for details.
2753
+
2754
+
2755
+ :param request: Request instance for ShowJobNoticeConfigInfo
2756
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobNoticeConfigInfoRequest`
2757
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobNoticeConfigInfoResponse`
2758
+ """
2759
+ http_info = self._show_job_notice_config_info_http_info(request)
2760
+ return self._call_api(**http_info)
2761
+
2762
+ def show_job_notice_config_info_async_invoker(self, request):
2763
+ http_info = self._show_job_notice_config_info_http_info(request)
2764
+ return AsyncInvoker(self, http_info)
2765
+
2766
+ def _show_job_notice_config_info_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
1308
2809
 
1309
2810
  return http_info
1310
2811
 
1311
- def show_job_list_by_project_id_async(self, request):
1312
- r"""查看项目下用户的构建任务列表
2812
+ def show_job_role_permission_async(self, request):
2813
+ r"""获取构建任务的角色权限矩阵信息
1313
2814
 
1314
- 查看项目下用户的构建任务列表
2815
+ 获取构建任务的角色权限矩阵信息
1315
2816
 
1316
2817
  Please refer to HUAWEI cloud API Explorer for details.
1317
2818
 
1318
2819
 
1319
- :param request: Request instance for ShowJobListByProjectId
1320
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobListByProjectIdRequest`
1321
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobListByProjectIdResponse`
2820
+ :param request: Request instance for ShowJobRolePermission
2821
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobRolePermissionRequest`
2822
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobRolePermissionResponse`
1322
2823
  """
1323
- http_info = self._show_job_list_by_project_id_http_info(request)
2824
+ http_info = self._show_job_role_permission_http_info(request)
1324
2825
  return self._call_api(**http_info)
1325
2826
 
1326
- def show_job_list_by_project_id_async_invoker(self, request):
1327
- http_info = self._show_job_list_by_project_id_http_info(request)
2827
+ def show_job_role_permission_async_invoker(self, request):
2828
+ http_info = self._show_job_role_permission_http_info(request)
1328
2829
  return AsyncInvoker(self, http_info)
1329
2830
 
1330
- def _show_job_list_by_project_id_http_info(self, request):
2831
+ def _show_job_role_permission_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
1511
3008
 
1512
3009
  return http_info
1513
3010
 
3011
+ def show_job_system_parameters_async(self, request):
3012
+ r"""查看系统预定义参数
3013
+
3014
+ 查看系统预定义参数
3015
+
3016
+ Please refer to HUAWEI cloud API Explorer for details.
3017
+
3018
+
3019
+ :param request: Request instance for ShowJobSystemParameters
3020
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSystemParametersRequest`
3021
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSystemParametersResponse`
3022
+ """
3023
+ http_info = self._show_job_system_parameters_http_info(request)
3024
+ return self._call_api(**http_info)
3025
+
3026
+ def show_job_system_parameters_async_invoker(self, request):
3027
+ http_info = self._show_job_system_parameters_http_info(request)
3028
+ return AsyncInvoker(self, http_info)
3029
+
3030
+ def _show_job_system_parameters_http_info(self, 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_async(self, request):
3075
+ r"""文件管理查询权限
3076
+
3077
+ 文件管理查询权限
3078
+
3079
+ Please refer to HUAWEI cloud API Explorer for details.
3080
+
3081
+
3082
+ :param request: Request instance for ShowKeystorePermission
3083
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowKeystorePermissionRequest`
3084
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowKeystorePermissionResponse`
3085
+ """
3086
+ http_info = self._show_keystore_permission_http_info(request)
3087
+ return self._call_api(**http_info)
3088
+
3089
+ def show_keystore_permission_async_invoker(self, request):
3090
+ http_info = self._show_keystore_permission_http_info(request)
3091
+ return AsyncInvoker(self, http_info)
3092
+
3093
+ def _show_keystore_permission_http_info(self, 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_async(self, request):
1515
3144
  r"""查询指定代码仓库最近一次成功的构建历史
1516
3145
 
@@ -1789,6 +3418,71 @@ class CodeArtsBuildAsyncClient(Client):
1789
3418
 
1790
3419
  return http_info
1791
3420
 
3421
+ def show_project_permission_async(self, request):
3422
+ r"""获取用户权限
3423
+
3424
+ 获取用户权限
3425
+
3426
+ Please refer to HUAWEI cloud API Explorer for details.
3427
+
3428
+
3429
+ :param request: Request instance for ShowProjectPermission
3430
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowProjectPermissionRequest`
3431
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowProjectPermissionResponse`
3432
+ """
3433
+ http_info = self._show_project_permission_http_info(request)
3434
+ return self._call_api(**http_info)
3435
+
3436
+ def show_project_permission_async_invoker(self, request):
3437
+ http_info = self._show_project_permission_http_info(request)
3438
+ return AsyncInvoker(self, http_info)
3439
+
3440
+ def _show_project_permission_http_info(self, 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_async(self, request):
1793
3487
  r"""获取构建记录信息
1794
3488
 
@@ -1856,6 +3550,69 @@ class CodeArtsBuildAsyncClient(Client):
1856
3550
 
1857
3551
  return http_info
1858
3552
 
3553
+ def show_related_project_async(self, request):
3554
+ r"""获取当前用户的项目信息列表
3555
+
3556
+ 获取当前用户的项目信息列表
3557
+
3558
+ Please refer to HUAWEI cloud API Explorer for details.
3559
+
3560
+
3561
+ :param request: Request instance for ShowRelatedProject
3562
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRelatedProjectRequest`
3563
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRelatedProjectResponse`
3564
+ """
3565
+ http_info = self._show_related_project_http_info(request)
3566
+ return self._call_api(**http_info)
3567
+
3568
+ def show_related_project_async_invoker(self, request):
3569
+ http_info = self._show_related_project_http_info(request)
3570
+ return AsyncInvoker(self, http_info)
3571
+
3572
+ def _show_related_project_http_info(self, 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_async(self, request):
1860
3617
  r"""获取覆盖率接口
1861
3618