huaweicloudsdkcodeartsbuild 3.1.165__py3-none-any.whl → 3.1.167__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 (76) hide show
  1. huaweicloudsdkcodeartsbuild/v3/__init__.py +66 -0
  2. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1553 -172
  3. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1553 -172
  4. huaweicloudsdkcodeartsbuild/v3/model/__init__.py +66 -0
  5. huaweicloudsdkcodeartsbuild/v3/model/add_favourite_custom_template_request.py +114 -0
  6. huaweicloudsdkcodeartsbuild/v3/model/add_favourite_custom_template_response.py +116 -0
  7. huaweicloudsdkcodeartsbuild/v3/model/add_keystore_permission_request_body.py +30 -1
  8. huaweicloudsdkcodeartsbuild/v3/model/apply_project_permission_request.py +111 -0
  9. huaweicloudsdkcodeartsbuild/v3/model/apply_project_permission_response.py +174 -0
  10. huaweicloudsdkcodeartsbuild/v3/model/batch_delete_build_jobs_request.py +111 -0
  11. huaweicloudsdkcodeartsbuild/v3/model/batch_delete_build_jobs_request_body.py +114 -0
  12. huaweicloudsdkcodeartsbuild/v3/model/batch_delete_build_jobs_response.py +170 -0
  13. huaweicloudsdkcodeartsbuild/v3/model/batch_update_job_role_permission_request.py +111 -0
  14. huaweicloudsdkcodeartsbuild/v3/model/batch_update_job_role_permission_response.py +174 -0
  15. huaweicloudsdkcodeartsbuild/v3/model/check_job_internal_request.py +84 -0
  16. huaweicloudsdkcodeartsbuild/v3/model/check_job_internal_response.py +174 -0
  17. huaweicloudsdkcodeartsbuild/v3/model/countdown_list.py +256 -0
  18. huaweicloudsdkcodeartsbuild/v3/model/countdown_list_tips.py +111 -0
  19. huaweicloudsdkcodeartsbuild/v3/model/countdown_request_body.py +170 -0
  20. huaweicloudsdkcodeartsbuild/v3/model/create_job_group_request.py +139 -0
  21. huaweicloudsdkcodeartsbuild/v3/model/create_job_group_response.py +174 -0
  22. huaweicloudsdkcodeartsbuild/v3/model/delete_group_request.py +142 -0
  23. huaweicloudsdkcodeartsbuild/v3/model/delete_group_response.py +174 -0
  24. huaweicloudsdkcodeartsbuild/v3/model/domain_statuses.py +521 -0
  25. huaweicloudsdkcodeartsbuild/v3/model/domains_statuses_request_body.py +115 -0
  26. huaweicloudsdkcodeartsbuild/v3/model/end_point_response.py +339 -0
  27. huaweicloudsdkcodeartsbuild/v3/model/end_point_response_authorization.py +144 -0
  28. huaweicloudsdkcodeartsbuild/v3/model/end_point_response_created_by.py +144 -0
  29. huaweicloudsdkcodeartsbuild/v3/model/job_group_request_body.py +231 -0
  30. huaweicloudsdkcodeartsbuild/v3/model/job_group_response_body_result.py +434 -0
  31. huaweicloudsdkcodeartsbuild/v3/model/job_group_tree_response_body.py +434 -0
  32. huaweicloudsdkcodeartsbuild/v3/model/job_role_permission.py +434 -0
  33. huaweicloudsdkcodeartsbuild/v3/model/job_status_result_response_body_result.py +173 -0
  34. huaweicloudsdkcodeartsbuild/v3/model/list_end_points_request.py +171 -0
  35. huaweicloudsdkcodeartsbuild/v3/model/list_end_points_response.py +170 -0
  36. huaweicloudsdkcodeartsbuild/v3/model/list_end_points_result_response_body_result.py +144 -0
  37. huaweicloudsdkcodeartsbuild/v3/model/list_group_tree_request.py +114 -0
  38. huaweicloudsdkcodeartsbuild/v3/model/list_group_tree_response.py +174 -0
  39. huaweicloudsdkcodeartsbuild/v3/model/move_group_request.py +139 -0
  40. huaweicloudsdkcodeartsbuild/v3/model/move_group_response.py +174 -0
  41. huaweicloudsdkcodeartsbuild/v3/model/move_job_group_request_body.py +144 -0
  42. huaweicloudsdkcodeartsbuild/v3/model/move_job_group_request_body_jobs.py +144 -0
  43. huaweicloudsdkcodeartsbuild/v3/model/move_job_group_response_body_result.py +144 -0
  44. huaweicloudsdkcodeartsbuild/v3/model/project_permission_request_body.py +173 -0
  45. huaweicloudsdkcodeartsbuild/v3/model/remover_favourite_custom_template_request.py +114 -0
  46. huaweicloudsdkcodeartsbuild/v3/model/remover_favourite_custom_template_response.py +116 -0
  47. huaweicloudsdkcodeartsbuild/v3/model/role_permissions_request_body.py +202 -0
  48. huaweicloudsdkcodeartsbuild/v3/model/show_available_inner_spec_request.py +142 -0
  49. huaweicloudsdkcodeartsbuild/v3/model/show_available_inner_spec_response.py +116 -0
  50. huaweicloudsdkcodeartsbuild/v3/model/show_build_details_request.py +142 -0
  51. huaweicloudsdkcodeartsbuild/v3/model/show_build_details_response.py +170 -0
  52. huaweicloudsdkcodeartsbuild/v3/model/show_domain_status_request.py +84 -0
  53. huaweicloudsdkcodeartsbuild/v3/model/show_domain_status_response.py +170 -0
  54. huaweicloudsdkcodeartsbuild/v3/model/show_domain_status_result.py +173 -0
  55. huaweicloudsdkcodeartsbuild/v3/model/show_domains_statuses_request.py +111 -0
  56. huaweicloudsdkcodeartsbuild/v3/model/show_domains_statuses_response.py +174 -0
  57. huaweicloudsdkcodeartsbuild/v3/model/show_package_spec_count_down_request.py +111 -0
  58. huaweicloudsdkcodeartsbuild/v3/model/show_package_spec_count_down_response.py +174 -0
  59. huaweicloudsdkcodeartsbuild/v3/model/show_template_request.py +114 -0
  60. huaweicloudsdkcodeartsbuild/v3/model/show_template_response.py +170 -0
  61. huaweicloudsdkcodeartsbuild/v3/model/show_user_charge_type_request.py +84 -0
  62. huaweicloudsdkcodeartsbuild/v3/model/show_user_charge_type_response.py +170 -0
  63. huaweicloudsdkcodeartsbuild/v3/model/show_user_charge_type_result.py +173 -0
  64. huaweicloudsdkcodeartsbuild/v3/model/show_user_charge_type_result_main_resource_list.py +202 -0
  65. huaweicloudsdkcodeartsbuild/v3/model/switched_packet_request.py +170 -0
  66. huaweicloudsdkcodeartsbuild/v3/model/switched_packet_response.py +174 -0
  67. huaweicloudsdkcodeartsbuild/v3/model/tips.py +202 -0
  68. huaweicloudsdkcodeartsbuild/v3/model/update_job_group_request.py +139 -0
  69. huaweicloudsdkcodeartsbuild/v3/model/update_job_group_response.py +174 -0
  70. huaweicloudsdkcodeartsbuild/v3/model/update_new_notice_new_request.py +139 -0
  71. huaweicloudsdkcodeartsbuild/v3/model/update_new_notice_new_response.py +174 -0
  72. {huaweicloudsdkcodeartsbuild-3.1.165.dist-info → huaweicloudsdkcodeartsbuild-3.1.167.dist-info}/METADATA +9 -10
  73. {huaweicloudsdkcodeartsbuild-3.1.165.dist-info → huaweicloudsdkcodeartsbuild-3.1.167.dist-info}/RECORD +75 -10
  74. {huaweicloudsdkcodeartsbuild-3.1.165.dist-info → huaweicloudsdkcodeartsbuild-3.1.167.dist-info}/WHEEL +1 -2
  75. huaweicloudsdkcodeartsbuild-3.1.165.dist-info/top_level.txt +0 -1
  76. {huaweicloudsdkcodeartsbuild-3.1.165.dist-info → huaweicloudsdkcodeartsbuild-3.1.167.dist-info/licenses}/LICENSE +0 -0
@@ -33,6 +33,71 @@ class CodeArtsBuildClient(Client):
33
33
 
34
34
  return client_builder
35
35
 
36
+ def batch_delete_build_jobs(self, request):
37
+ r"""批量删除构建任务
38
+
39
+ 批量删除构建任务
40
+
41
+ Please refer to HUAWEI cloud API Explorer for details.
42
+
43
+ :param request: Request instance for BatchDeleteBuildJobs
44
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.BatchDeleteBuildJobsRequest`
45
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.BatchDeleteBuildJobsResponse`
46
+ """
47
+ http_info = self._batch_delete_build_jobs_http_info(request)
48
+ return self._call_api(**http_info)
49
+
50
+ def batch_delete_build_jobs_invoker(self, request):
51
+ http_info = self._batch_delete_build_jobs_http_info(request)
52
+ return SyncInvoker(self, http_info)
53
+
54
+ @classmethod
55
+ def _batch_delete_build_jobs_http_info(cls, request):
56
+ http_info = {
57
+ "method": "DELETE",
58
+ "resource_path": "/v1/job/batch-delete",
59
+ "request_type": request.__class__.__name__,
60
+ "response_type": "BatchDeleteBuildJobsResponse"
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
+
73
+ header_params = {}
74
+
75
+ form_params = {}
76
+
77
+ body = None
78
+ if 'body' in local_var_params:
79
+ body = local_var_params['body']
80
+ if isinstance(request, SdkStreamRequest):
81
+ body = request.get_file_stream()
82
+
83
+ response_headers = []
84
+
85
+ header_params['Content-Type'] = http_utils.select_header_content_type(
86
+ ['application/json'])
87
+
88
+ auth_settings = []
89
+
90
+ http_info["cname"] = cname
91
+ http_info["collection_formats"] = collection_formats
92
+ http_info["path_params"] = path_params
93
+ http_info["query_params"] = query_params
94
+ http_info["header_params"] = header_params
95
+ http_info["post_params"] = form_params
96
+ http_info["body"] = body
97
+ http_info["response_headers"] = response_headers
98
+
99
+ return http_info
100
+
36
101
  def create_build_job(self, request):
37
102
  r"""创建构建任务
38
103
 
@@ -1986,31 +2051,31 @@ class CodeArtsBuildClient(Client):
1986
2051
 
1987
2052
  return http_info
1988
2053
 
1989
- def show_project_permission(self, request):
1990
- r"""获取用户权限
2054
+ def show_available_inner_spec(self, request):
2055
+ r"""查内置执行机规格
1991
2056
 
1992
- 获取用户权限
2057
+ 查内置执行机规格。
1993
2058
 
1994
2059
  Please refer to HUAWEI cloud API Explorer for details.
1995
2060
 
1996
- :param request: Request instance for ShowProjectPermission
1997
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowProjectPermissionRequest`
1998
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowProjectPermissionResponse`
2061
+ :param request: Request instance for ShowAvailableInnerSpec
2062
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowAvailableInnerSpecRequest`
2063
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowAvailableInnerSpecResponse`
1999
2064
  """
2000
- http_info = self._show_project_permission_http_info(request)
2065
+ http_info = self._show_available_inner_spec_http_info(request)
2001
2066
  return self._call_api(**http_info)
2002
2067
 
2003
- def show_project_permission_invoker(self, request):
2004
- http_info = self._show_project_permission_http_info(request)
2068
+ def show_available_inner_spec_invoker(self, request):
2069
+ http_info = self._show_available_inner_spec_http_info(request)
2005
2070
  return SyncInvoker(self, http_info)
2006
2071
 
2007
2072
  @classmethod
2008
- def _show_project_permission_http_info(cls, request):
2073
+ def _show_available_inner_spec_http_info(cls, request):
2009
2074
  http_info = {
2010
2075
  "method": "GET",
2011
- "resource_path": "/v1/domain/user-permission",
2076
+ "resource_path": "/v2/resource/spec",
2012
2077
  "request_type": request.__class__.__name__,
2013
- "response_type": "ShowProjectPermissionResponse"
2078
+ "response_type": "ShowAvailableInnerSpecResponse"
2014
2079
  }
2015
2080
 
2016
2081
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -2024,6 +2089,8 @@ class CodeArtsBuildClient(Client):
2024
2089
  query_params = []
2025
2090
  if 'project_id' in local_var_params:
2026
2091
  query_params.append(('project_id', local_var_params['project_id']))
2092
+ if 'arch' in local_var_params:
2093
+ query_params.append(('arch', local_var_params['arch']))
2027
2094
 
2028
2095
  header_params = {}
2029
2096
 
@@ -2051,31 +2118,31 @@ class CodeArtsBuildClient(Client):
2051
2118
 
2052
2119
  return http_info
2053
2120
 
2054
- def show_related_project(self, request):
2055
- r"""获取当前用户的项目信息列表
2121
+ def show_domain_status(self, request):
2122
+ r"""查询租户状态
2056
2123
 
2057
- 获取当前用户的项目信息列表
2124
+ 查询租户状态。
2058
2125
 
2059
2126
  Please refer to HUAWEI cloud API Explorer for details.
2060
2127
 
2061
- :param request: Request instance for ShowRelatedProject
2062
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRelatedProjectRequest`
2063
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRelatedProjectResponse`
2128
+ :param request: Request instance for ShowDomainStatus
2129
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDomainStatusRequest`
2130
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDomainStatusResponse`
2064
2131
  """
2065
- http_info = self._show_related_project_http_info(request)
2132
+ http_info = self._show_domain_status_http_info(request)
2066
2133
  return self._call_api(**http_info)
2067
2134
 
2068
- def show_related_project_invoker(self, request):
2069
- http_info = self._show_related_project_http_info(request)
2135
+ def show_domain_status_invoker(self, request):
2136
+ http_info = self._show_domain_status_http_info(request)
2070
2137
  return SyncInvoker(self, http_info)
2071
2138
 
2072
2139
  @classmethod
2073
- def _show_related_project_http_info(cls, request):
2140
+ def _show_domain_status_http_info(cls, request):
2074
2141
  http_info = {
2075
2142
  "method": "GET",
2076
- "resource_path": "/v1/domain/project/related",
2143
+ "resource_path": "/v1/domain/status",
2077
2144
  "request_type": request.__class__.__name__,
2078
- "response_type": "ShowRelatedProjectResponse"
2145
+ "response_type": "ShowDomainStatusResponse"
2079
2146
  }
2080
2147
 
2081
2148
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -2114,31 +2181,31 @@ class CodeArtsBuildClient(Client):
2114
2181
 
2115
2182
  return http_info
2116
2183
 
2117
- def show_summary_build_job_info(self, request):
2118
- r"""获取租户任务总数和成功率接口
2184
+ def show_package_spec_count_down(self, request):
2185
+ r"""获取套餐临期信息
2119
2186
 
2120
- 获取租户任务总数和成功率接口
2187
+ 获取套餐临期信息。
2121
2188
 
2122
2189
  Please refer to HUAWEI cloud API Explorer for details.
2123
2190
 
2124
- :param request: Request instance for ShowSummaryBuildJobInfo
2125
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowSummaryBuildJobInfoRequest`
2126
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowSummaryBuildJobInfoResponse`
2191
+ :param request: Request instance for ShowPackageSpecCountDown
2192
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowPackageSpecCountDownRequest`
2193
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowPackageSpecCountDownResponse`
2127
2194
  """
2128
- http_info = self._show_summary_build_job_info_http_info(request)
2195
+ http_info = self._show_package_spec_count_down_http_info(request)
2129
2196
  return self._call_api(**http_info)
2130
2197
 
2131
- def show_summary_build_job_info_invoker(self, request):
2132
- http_info = self._show_summary_build_job_info_http_info(request)
2198
+ def show_package_spec_count_down_invoker(self, request):
2199
+ http_info = self._show_package_spec_count_down_http_info(request)
2133
2200
  return SyncInvoker(self, http_info)
2134
2201
 
2135
2202
  @classmethod
2136
- def _show_summary_build_job_info_http_info(cls, request):
2203
+ def _show_package_spec_count_down_http_info(cls, request):
2137
2204
  http_info = {
2138
- "method": "GET",
2139
- "resource_path": "/v1/domain/job-summary",
2205
+ "method": "POST",
2206
+ "resource_path": "/v2/resource/countdown",
2140
2207
  "request_type": request.__class__.__name__,
2141
- "response_type": "ShowSummaryBuildJobInfoResponse"
2208
+ "response_type": "ShowPackageSpecCountDownResponse"
2142
2209
  }
2143
2210
 
2144
2211
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -2156,6 +2223,8 @@ class CodeArtsBuildClient(Client):
2156
2223
  form_params = {}
2157
2224
 
2158
2225
  body = None
2226
+ if 'body' in local_var_params:
2227
+ body = local_var_params['body']
2159
2228
  if isinstance(request, SdkStreamRequest):
2160
2229
  body = request.get_file_stream()
2161
2230
 
@@ -2177,31 +2246,31 @@ class CodeArtsBuildClient(Client):
2177
2246
 
2178
2247
  return http_info
2179
2248
 
2180
- def show_user_over_package_quota(self, request):
2181
- r"""当前用户所在项目所属租户的包周期每月时长是否超额
2249
+ def show_project_permission(self, request):
2250
+ r"""获取用户权限
2182
2251
 
2183
- 当前用户所在项目所属租户的包周期每月时长是否超额
2252
+ 获取用户权限
2184
2253
 
2185
2254
  Please refer to HUAWEI cloud API Explorer for details.
2186
2255
 
2187
- :param request: Request instance for ShowUserOverPackageQuota
2188
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowUserOverPackageQuotaRequest`
2189
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowUserOverPackageQuotaResponse`
2256
+ :param request: Request instance for ShowProjectPermission
2257
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowProjectPermissionRequest`
2258
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowProjectPermissionResponse`
2190
2259
  """
2191
- http_info = self._show_user_over_package_quota_http_info(request)
2260
+ http_info = self._show_project_permission_http_info(request)
2192
2261
  return self._call_api(**http_info)
2193
2262
 
2194
- def show_user_over_package_quota_invoker(self, request):
2195
- http_info = self._show_user_over_package_quota_http_info(request)
2263
+ def show_project_permission_invoker(self, request):
2264
+ http_info = self._show_project_permission_http_info(request)
2196
2265
  return SyncInvoker(self, http_info)
2197
2266
 
2198
2267
  @classmethod
2199
- def _show_user_over_package_quota_http_info(cls, request):
2268
+ def _show_project_permission_http_info(cls, request):
2200
2269
  http_info = {
2201
2270
  "method": "GET",
2202
- "resource_path": "/v1/domain/package/quota",
2271
+ "resource_path": "/v1/domain/user-permission",
2203
2272
  "request_type": request.__class__.__name__,
2204
- "response_type": "ShowUserOverPackageQuotaResponse"
2273
+ "response_type": "ShowProjectPermissionResponse"
2205
2274
  }
2206
2275
 
2207
2276
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -2242,31 +2311,31 @@ class CodeArtsBuildClient(Client):
2242
2311
 
2243
2312
  return http_info
2244
2313
 
2245
- def show_dockerfile_template(self, request):
2246
- r"""获取dockerfileTemplate
2314
+ def show_related_project(self, request):
2315
+ r"""获取当前用户的项目信息列表
2247
2316
 
2248
- 获取dockerfileTemplate
2317
+ 获取当前用户的项目信息列表
2249
2318
 
2250
2319
  Please refer to HUAWEI cloud API Explorer for details.
2251
2320
 
2252
- :param request: Request instance for ShowDockerfileTemplate
2253
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDockerfileTemplateRequest`
2254
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDockerfileTemplateResponse`
2321
+ :param request: Request instance for ShowRelatedProject
2322
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRelatedProjectRequest`
2323
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRelatedProjectResponse`
2255
2324
  """
2256
- http_info = self._show_dockerfile_template_http_info(request)
2325
+ http_info = self._show_related_project_http_info(request)
2257
2326
  return self._call_api(**http_info)
2258
2327
 
2259
- def show_dockerfile_template_invoker(self, request):
2260
- http_info = self._show_dockerfile_template_http_info(request)
2328
+ def show_related_project_invoker(self, request):
2329
+ http_info = self._show_related_project_http_info(request)
2261
2330
  return SyncInvoker(self, http_info)
2262
2331
 
2263
2332
  @classmethod
2264
- def _show_dockerfile_template_http_info(cls, request):
2333
+ def _show_related_project_http_info(cls, request):
2265
2334
  http_info = {
2266
2335
  "method": "GET",
2267
- "resource_path": "/v1/image/dockerfile-template",
2336
+ "resource_path": "/v1/domain/project/related",
2268
2337
  "request_type": request.__class__.__name__,
2269
- "response_type": "ShowDockerfileTemplateResponse"
2338
+ "response_type": "ShowRelatedProjectResponse"
2270
2339
  }
2271
2340
 
2272
2341
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -2278,8 +2347,6 @@ class CodeArtsBuildClient(Client):
2278
2347
  path_params = {}
2279
2348
 
2280
2349
  query_params = []
2281
- if 'image_id' in local_var_params:
2282
- query_params.append(('image_id', local_var_params['image_id']))
2283
2350
 
2284
2351
  header_params = {}
2285
2352
 
@@ -2307,31 +2374,31 @@ class CodeArtsBuildClient(Client):
2307
2374
 
2308
2375
  return http_info
2309
2376
 
2310
- def show_image_template_list(self, request):
2311
- r"""获取镜像模板列表
2377
+ def show_summary_build_job_info(self, request):
2378
+ r"""获取租户任务总数和成功率接口
2312
2379
 
2313
- 获取镜像模板列表
2380
+ 获取租户任务总数和成功率接口
2314
2381
 
2315
2382
  Please refer to HUAWEI cloud API Explorer for details.
2316
2383
 
2317
- :param request: Request instance for ShowImageTemplateList
2318
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowImageTemplateListRequest`
2319
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowImageTemplateListResponse`
2384
+ :param request: Request instance for ShowSummaryBuildJobInfo
2385
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowSummaryBuildJobInfoRequest`
2386
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowSummaryBuildJobInfoResponse`
2320
2387
  """
2321
- http_info = self._show_image_template_list_http_info(request)
2388
+ http_info = self._show_summary_build_job_info_http_info(request)
2322
2389
  return self._call_api(**http_info)
2323
2390
 
2324
- def show_image_template_list_invoker(self, request):
2325
- http_info = self._show_image_template_list_http_info(request)
2391
+ def show_summary_build_job_info_invoker(self, request):
2392
+ http_info = self._show_summary_build_job_info_http_info(request)
2326
2393
  return SyncInvoker(self, http_info)
2327
2394
 
2328
2395
  @classmethod
2329
- def _show_image_template_list_http_info(cls, request):
2396
+ def _show_summary_build_job_info_http_info(cls, request):
2330
2397
  http_info = {
2331
2398
  "method": "GET",
2332
- "resource_path": "/v1/image/templates",
2399
+ "resource_path": "/v1/domain/job-summary",
2333
2400
  "request_type": request.__class__.__name__,
2334
- "response_type": "ShowImageTemplateListResponse"
2401
+ "response_type": "ShowSummaryBuildJobInfoResponse"
2335
2402
  }
2336
2403
 
2337
2404
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -2370,31 +2437,31 @@ class CodeArtsBuildClient(Client):
2370
2437
 
2371
2438
  return http_info
2372
2439
 
2373
- def check_job_count_is_top_limit(self, request):
2374
- r"""检查任务数量是否上限
2440
+ def show_user_charge_type(self, request):
2441
+ r"""查询当前租户(计费)类型
2375
2442
 
2376
- 检查任务数量是否上限
2443
+ 查询当前租户(计费)类型。
2377
2444
 
2378
2445
  Please refer to HUAWEI cloud API Explorer for details.
2379
2446
 
2380
- :param request: Request instance for CheckJobCountIsTopLimit
2381
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobCountIsTopLimitRequest`
2382
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobCountIsTopLimitResponse`
2447
+ :param request: Request instance for ShowUserChargeType
2448
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowUserChargeTypeRequest`
2449
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowUserChargeTypeResponse`
2383
2450
  """
2384
- http_info = self._check_job_count_is_top_limit_http_info(request)
2451
+ http_info = self._show_user_charge_type_http_info(request)
2385
2452
  return self._call_api(**http_info)
2386
2453
 
2387
- def check_job_count_is_top_limit_invoker(self, request):
2388
- http_info = self._check_job_count_is_top_limit_http_info(request)
2454
+ def show_user_charge_type_invoker(self, request):
2455
+ http_info = self._show_user_charge_type_http_info(request)
2389
2456
  return SyncInvoker(self, http_info)
2390
2457
 
2391
2458
  @classmethod
2392
- def _check_job_count_is_top_limit_http_info(cls, request):
2459
+ def _show_user_charge_type_http_info(cls, request):
2393
2460
  http_info = {
2394
2461
  "method": "GET",
2395
- "resource_path": "/v1/job/check/count",
2462
+ "resource_path": "/v1/domain/charge-type",
2396
2463
  "request_type": request.__class__.__name__,
2397
- "response_type": "CheckJobCountIsTopLimitResponse"
2464
+ "response_type": "ShowUserChargeTypeResponse"
2398
2465
  }
2399
2466
 
2400
2467
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -2433,31 +2500,31 @@ class CodeArtsBuildClient(Client):
2433
2500
 
2434
2501
  return http_info
2435
2502
 
2436
- def check_job_name_is_exists(self, request):
2437
- r"""查看项目下任务名是否存在
2503
+ def show_user_over_package_quota(self, request):
2504
+ r"""当前用户所在项目所属租户的包周期每月时长是否超额
2438
2505
 
2439
- 查看项目下任务名是否存在
2506
+ 当前用户所在项目所属租户的包周期每月时长是否超额
2440
2507
 
2441
2508
  Please refer to HUAWEI cloud API Explorer for details.
2442
2509
 
2443
- :param request: Request instance for CheckJobNameIsExists
2444
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobNameIsExistsRequest`
2445
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobNameIsExistsResponse`
2510
+ :param request: Request instance for ShowUserOverPackageQuota
2511
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowUserOverPackageQuotaRequest`
2512
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowUserOverPackageQuotaResponse`
2446
2513
  """
2447
- http_info = self._check_job_name_is_exists_http_info(request)
2514
+ http_info = self._show_user_over_package_quota_http_info(request)
2448
2515
  return self._call_api(**http_info)
2449
2516
 
2450
- def check_job_name_is_exists_invoker(self, request):
2451
- http_info = self._check_job_name_is_exists_http_info(request)
2517
+ def show_user_over_package_quota_invoker(self, request):
2518
+ http_info = self._show_user_over_package_quota_http_info(request)
2452
2519
  return SyncInvoker(self, http_info)
2453
2520
 
2454
2521
  @classmethod
2455
- def _check_job_name_is_exists_http_info(cls, request):
2522
+ def _show_user_over_package_quota_http_info(cls, request):
2456
2523
  http_info = {
2457
2524
  "method": "GET",
2458
- "resource_path": "/v1/job/check/exist",
2525
+ "resource_path": "/v1/domain/package/quota",
2459
2526
  "request_type": request.__class__.__name__,
2460
- "response_type": "CheckJobNameIsExistsResponse"
2527
+ "response_type": "ShowUserOverPackageQuotaResponse"
2461
2528
  }
2462
2529
 
2463
2530
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -2471,8 +2538,6 @@ class CodeArtsBuildClient(Client):
2471
2538
  query_params = []
2472
2539
  if 'project_id' in local_var_params:
2473
2540
  query_params.append(('project_id', local_var_params['project_id']))
2474
- if 'job_name' in local_var_params:
2475
- query_params.append(('job_name', local_var_params['job_name']))
2476
2541
 
2477
2542
  header_params = {}
2478
2543
 
@@ -2500,31 +2565,31 @@ class CodeArtsBuildClient(Client):
2500
2565
 
2501
2566
  return http_info
2502
2567
 
2503
- def check_webhook_url(self, request):
2504
- r"""检查webhook地址参数
2568
+ def create_job_group(self, request):
2569
+ r"""创建构建任务分组
2505
2570
 
2506
- 检查webhook地址参数
2571
+ 创建构建任务分组
2507
2572
 
2508
2573
  Please refer to HUAWEI cloud API Explorer for details.
2509
2574
 
2510
- :param request: Request instance for CheckWebhookUrl
2511
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.CheckWebhookUrlRequest`
2512
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CheckWebhookUrlResponse`
2575
+ :param request: Request instance for CreateJobGroup
2576
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.CreateJobGroupRequest`
2577
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CreateJobGroupResponse`
2513
2578
  """
2514
- http_info = self._check_webhook_url_http_info(request)
2579
+ http_info = self._create_job_group_http_info(request)
2515
2580
  return self._call_api(**http_info)
2516
2581
 
2517
- def check_webhook_url_invoker(self, request):
2518
- http_info = self._check_webhook_url_http_info(request)
2582
+ def create_job_group_invoker(self, request):
2583
+ http_info = self._create_job_group_http_info(request)
2519
2584
  return SyncInvoker(self, http_info)
2520
2585
 
2521
2586
  @classmethod
2522
- def _check_webhook_url_http_info(cls, request):
2587
+ def _create_job_group_http_info(cls, request):
2523
2588
  http_info = {
2524
2589
  "method": "POST",
2525
- "resource_path": "/v1/job/check/webhook-url",
2590
+ "resource_path": "/v1/job/{project_id}/group/create",
2526
2591
  "request_type": request.__class__.__name__,
2527
- "response_type": "CheckWebhookUrlResponse"
2592
+ "response_type": "CreateJobGroupResponse"
2528
2593
  }
2529
2594
 
2530
2595
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -2534,6 +2599,8 @@ class CodeArtsBuildClient(Client):
2534
2599
  collection_formats = {}
2535
2600
 
2536
2601
  path_params = {}
2602
+ if 'project_id' in local_var_params:
2603
+ path_params['project_id'] = local_var_params['project_id']
2537
2604
 
2538
2605
  query_params = []
2539
2606
 
@@ -2565,31 +2632,31 @@ class CodeArtsBuildClient(Client):
2565
2632
 
2566
2633
  return http_info
2567
2634
 
2568
- def clear_recycling_jobs(self, request):
2569
- r"""清空回收站中的任务
2635
+ def delete_group(self, request):
2636
+ r"""删除分组
2570
2637
 
2571
- 清空回收站中的任务
2638
+ 删除分组
2572
2639
 
2573
2640
  Please refer to HUAWEI cloud API Explorer for details.
2574
2641
 
2575
- :param request: Request instance for ClearRecyclingJobs
2576
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ClearRecyclingJobsRequest`
2577
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ClearRecyclingJobsResponse`
2642
+ :param request: Request instance for DeleteGroup
2643
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteGroupRequest`
2644
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteGroupResponse`
2578
2645
  """
2579
- http_info = self._clear_recycling_jobs_http_info(request)
2646
+ http_info = self._delete_group_http_info(request)
2580
2647
  return self._call_api(**http_info)
2581
2648
 
2582
- def clear_recycling_jobs_invoker(self, request):
2583
- http_info = self._clear_recycling_jobs_http_info(request)
2649
+ def delete_group_invoker(self, request):
2650
+ http_info = self._delete_group_http_info(request)
2584
2651
  return SyncInvoker(self, http_info)
2585
2652
 
2586
2653
  @classmethod
2587
- def _clear_recycling_jobs_http_info(cls, request):
2654
+ def _delete_group_http_info(cls, request):
2588
2655
  http_info = {
2589
2656
  "method": "DELETE",
2590
- "resource_path": "/v1/job/recycling-empty",
2657
+ "resource_path": "/v1/job/{project_id}/group/delete",
2591
2658
  "request_type": request.__class__.__name__,
2592
- "response_type": "ClearRecyclingJobsResponse"
2659
+ "response_type": "DeleteGroupResponse"
2593
2660
  }
2594
2661
 
2595
2662
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -2599,8 +2666,12 @@ class CodeArtsBuildClient(Client):
2599
2666
  collection_formats = {}
2600
2667
 
2601
2668
  path_params = {}
2669
+ if 'project_id' in local_var_params:
2670
+ path_params['project_id'] = local_var_params['project_id']
2602
2671
 
2603
2672
  query_params = []
2673
+ if 'id' in local_var_params:
2674
+ query_params.append(('id', local_var_params['id']))
2604
2675
 
2605
2676
  header_params = {}
2606
2677
 
@@ -2628,31 +2699,31 @@ class CodeArtsBuildClient(Client):
2628
2699
 
2629
2700
  return http_info
2630
2701
 
2631
- def copy_job(self, request):
2632
- r"""复制构建任务
2702
+ def list_group_tree(self, request):
2703
+ r"""查询分组树
2633
2704
 
2634
- 复制构建任务
2705
+ 查询分组树
2635
2706
 
2636
2707
  Please refer to HUAWEI cloud API Explorer for details.
2637
2708
 
2638
- :param request: Request instance for CopyJob
2639
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.CopyJobRequest`
2640
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CopyJobResponse`
2709
+ :param request: Request instance for ListGroupTree
2710
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListGroupTreeRequest`
2711
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListGroupTreeResponse`
2641
2712
  """
2642
- http_info = self._copy_job_http_info(request)
2713
+ http_info = self._list_group_tree_http_info(request)
2643
2714
  return self._call_api(**http_info)
2644
2715
 
2645
- def copy_job_invoker(self, request):
2646
- http_info = self._copy_job_http_info(request)
2716
+ def list_group_tree_invoker(self, request):
2717
+ http_info = self._list_group_tree_http_info(request)
2647
2718
  return SyncInvoker(self, http_info)
2648
2719
 
2649
2720
  @classmethod
2650
- def _copy_job_http_info(cls, request):
2721
+ def _list_group_tree_http_info(cls, request):
2651
2722
  http_info = {
2652
- "method": "POST",
2653
- "resource_path": "/v1/job/copy",
2723
+ "method": "GET",
2724
+ "resource_path": "/v1/job/{project_id}/group/tree",
2654
2725
  "request_type": request.__class__.__name__,
2655
- "response_type": "CopyJobResponse"
2726
+ "response_type": "ListGroupTreeResponse"
2656
2727
  }
2657
2728
 
2658
2729
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -2662,6 +2733,8 @@ class CodeArtsBuildClient(Client):
2662
2733
  collection_formats = {}
2663
2734
 
2664
2735
  path_params = {}
2736
+ if 'project_id' in local_var_params:
2737
+ path_params['project_id'] = local_var_params['project_id']
2665
2738
 
2666
2739
  query_params = []
2667
2740
 
@@ -2670,8 +2743,6 @@ class CodeArtsBuildClient(Client):
2670
2743
  form_params = {}
2671
2744
 
2672
2745
  body = None
2673
- if 'body' in local_var_params:
2674
- body = local_var_params['body']
2675
2746
  if isinstance(request, SdkStreamRequest):
2676
2747
  body = request.get_file_stream()
2677
2748
 
@@ -2693,14 +2764,861 @@ class CodeArtsBuildClient(Client):
2693
2764
 
2694
2765
  return http_info
2695
2766
 
2696
- def create_new_job(self, request):
2697
- r"""创建构建任务
2767
+ def move_group(self, request):
2768
+ r"""移动构建任务至指定分组
2698
2769
 
2699
- 创建构建任务
2770
+ 移动构建任务至指定分组
2700
2771
 
2701
2772
  Please refer to HUAWEI cloud API Explorer for details.
2702
2773
 
2703
- :param request: Request instance for CreateNewJob
2774
+ :param request: Request instance for MoveGroup
2775
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.MoveGroupRequest`
2776
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.MoveGroupResponse`
2777
+ """
2778
+ http_info = self._move_group_http_info(request)
2779
+ return self._call_api(**http_info)
2780
+
2781
+ def move_group_invoker(self, request):
2782
+ http_info = self._move_group_http_info(request)
2783
+ return SyncInvoker(self, http_info)
2784
+
2785
+ @classmethod
2786
+ def _move_group_http_info(cls, request):
2787
+ http_info = {
2788
+ "method": "POST",
2789
+ "resource_path": "/v1/job/{project_id}/group/move",
2790
+ "request_type": request.__class__.__name__,
2791
+ "response_type": "MoveGroupResponse"
2792
+ }
2793
+
2794
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2795
+
2796
+ cname = None
2797
+
2798
+ collection_formats = {}
2799
+
2800
+ path_params = {}
2801
+ if 'project_id' in local_var_params:
2802
+ path_params['project_id'] = local_var_params['project_id']
2803
+
2804
+ query_params = []
2805
+
2806
+ header_params = {}
2807
+
2808
+ form_params = {}
2809
+
2810
+ body = None
2811
+ if 'body' in local_var_params:
2812
+ body = local_var_params['body']
2813
+ if isinstance(request, SdkStreamRequest):
2814
+ body = request.get_file_stream()
2815
+
2816
+ response_headers = []
2817
+
2818
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2819
+ ['application/json'])
2820
+
2821
+ auth_settings = ['apig-auth-iam']
2822
+
2823
+ http_info["cname"] = cname
2824
+ http_info["collection_formats"] = collection_formats
2825
+ http_info["path_params"] = path_params
2826
+ http_info["query_params"] = query_params
2827
+ http_info["header_params"] = header_params
2828
+ http_info["post_params"] = form_params
2829
+ http_info["body"] = body
2830
+ http_info["response_headers"] = response_headers
2831
+
2832
+ return http_info
2833
+
2834
+ def switched_packet(self, request):
2835
+ r"""交换分组顺序
2836
+
2837
+ 交换分组顺序
2838
+
2839
+ Please refer to HUAWEI cloud API Explorer for details.
2840
+
2841
+ :param request: Request instance for SwitchedPacket
2842
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.SwitchedPacketRequest`
2843
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.SwitchedPacketResponse`
2844
+ """
2845
+ http_info = self._switched_packet_http_info(request)
2846
+ return self._call_api(**http_info)
2847
+
2848
+ def switched_packet_invoker(self, request):
2849
+ http_info = self._switched_packet_http_info(request)
2850
+ return SyncInvoker(self, http_info)
2851
+
2852
+ @classmethod
2853
+ def _switched_packet_http_info(cls, request):
2854
+ http_info = {
2855
+ "method": "POST",
2856
+ "resource_path": "/v1/job/{project_id}/group/swap",
2857
+ "request_type": request.__class__.__name__,
2858
+ "response_type": "SwitchedPacketResponse"
2859
+ }
2860
+
2861
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2862
+
2863
+ cname = None
2864
+
2865
+ collection_formats = {}
2866
+
2867
+ path_params = {}
2868
+ if 'project_id' in local_var_params:
2869
+ path_params['project_id'] = local_var_params['project_id']
2870
+
2871
+ query_params = []
2872
+ if 'source_group_id' in local_var_params:
2873
+ query_params.append(('source_group_id', local_var_params['source_group_id']))
2874
+ if 'target_group_id' in local_var_params:
2875
+ query_params.append(('target_group_id', local_var_params['target_group_id']))
2876
+
2877
+ header_params = {}
2878
+
2879
+ form_params = {}
2880
+
2881
+ body = None
2882
+ if isinstance(request, SdkStreamRequest):
2883
+ body = request.get_file_stream()
2884
+
2885
+ response_headers = []
2886
+
2887
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2888
+ ['application/json'])
2889
+
2890
+ auth_settings = ['apig-auth-iam']
2891
+
2892
+ http_info["cname"] = cname
2893
+ http_info["collection_formats"] = collection_formats
2894
+ http_info["path_params"] = path_params
2895
+ http_info["query_params"] = query_params
2896
+ http_info["header_params"] = header_params
2897
+ http_info["post_params"] = form_params
2898
+ http_info["body"] = body
2899
+ http_info["response_headers"] = response_headers
2900
+
2901
+ return http_info
2902
+
2903
+ def update_job_group(self, request):
2904
+ r"""修改分组信息
2905
+
2906
+ 修改分组信息
2907
+
2908
+ Please refer to HUAWEI cloud API Explorer for details.
2909
+
2910
+ :param request: Request instance for UpdateJobGroup
2911
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateJobGroupRequest`
2912
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateJobGroupResponse`
2913
+ """
2914
+ http_info = self._update_job_group_http_info(request)
2915
+ return self._call_api(**http_info)
2916
+
2917
+ def update_job_group_invoker(self, request):
2918
+ http_info = self._update_job_group_http_info(request)
2919
+ return SyncInvoker(self, http_info)
2920
+
2921
+ @classmethod
2922
+ def _update_job_group_http_info(cls, request):
2923
+ http_info = {
2924
+ "method": "PUT",
2925
+ "resource_path": "/v1/job/{project_id}/group/update",
2926
+ "request_type": request.__class__.__name__,
2927
+ "response_type": "UpdateJobGroupResponse"
2928
+ }
2929
+
2930
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2931
+
2932
+ cname = None
2933
+
2934
+ collection_formats = {}
2935
+
2936
+ path_params = {}
2937
+ if 'project_id' in local_var_params:
2938
+ path_params['project_id'] = local_var_params['project_id']
2939
+
2940
+ query_params = []
2941
+
2942
+ header_params = {}
2943
+
2944
+ form_params = {}
2945
+
2946
+ body = None
2947
+ if 'body' in local_var_params:
2948
+ body = local_var_params['body']
2949
+ if isinstance(request, SdkStreamRequest):
2950
+ body = request.get_file_stream()
2951
+
2952
+ response_headers = []
2953
+
2954
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2955
+ ['application/json'])
2956
+
2957
+ auth_settings = ['apig-auth-iam']
2958
+
2959
+ http_info["cname"] = cname
2960
+ http_info["collection_formats"] = collection_formats
2961
+ http_info["path_params"] = path_params
2962
+ http_info["query_params"] = query_params
2963
+ http_info["header_params"] = header_params
2964
+ http_info["post_params"] = form_params
2965
+ http_info["body"] = body
2966
+ http_info["response_headers"] = response_headers
2967
+
2968
+ return http_info
2969
+
2970
+ def show_dockerfile_template(self, request):
2971
+ r"""获取dockerfileTemplate
2972
+
2973
+ 获取dockerfileTemplate
2974
+
2975
+ Please refer to HUAWEI cloud API Explorer for details.
2976
+
2977
+ :param request: Request instance for ShowDockerfileTemplate
2978
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDockerfileTemplateRequest`
2979
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDockerfileTemplateResponse`
2980
+ """
2981
+ http_info = self._show_dockerfile_template_http_info(request)
2982
+ return self._call_api(**http_info)
2983
+
2984
+ def show_dockerfile_template_invoker(self, request):
2985
+ http_info = self._show_dockerfile_template_http_info(request)
2986
+ return SyncInvoker(self, http_info)
2987
+
2988
+ @classmethod
2989
+ def _show_dockerfile_template_http_info(cls, request):
2990
+ http_info = {
2991
+ "method": "GET",
2992
+ "resource_path": "/v1/image/dockerfile-template",
2993
+ "request_type": request.__class__.__name__,
2994
+ "response_type": "ShowDockerfileTemplateResponse"
2995
+ }
2996
+
2997
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2998
+
2999
+ cname = None
3000
+
3001
+ collection_formats = {}
3002
+
3003
+ path_params = {}
3004
+
3005
+ query_params = []
3006
+ if 'image_id' in local_var_params:
3007
+ query_params.append(('image_id', local_var_params['image_id']))
3008
+
3009
+ header_params = {}
3010
+
3011
+ form_params = {}
3012
+
3013
+ body = None
3014
+ if isinstance(request, SdkStreamRequest):
3015
+ body = request.get_file_stream()
3016
+
3017
+ response_headers = []
3018
+
3019
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3020
+ ['application/json'])
3021
+
3022
+ auth_settings = ['apig-auth-iam']
3023
+
3024
+ http_info["cname"] = cname
3025
+ http_info["collection_formats"] = collection_formats
3026
+ http_info["path_params"] = path_params
3027
+ http_info["query_params"] = query_params
3028
+ http_info["header_params"] = header_params
3029
+ http_info["post_params"] = form_params
3030
+ http_info["body"] = body
3031
+ http_info["response_headers"] = response_headers
3032
+
3033
+ return http_info
3034
+
3035
+ def show_image_template_list(self, request):
3036
+ r"""获取镜像模板列表
3037
+
3038
+ 获取镜像模板列表
3039
+
3040
+ Please refer to HUAWEI cloud API Explorer for details.
3041
+
3042
+ :param request: Request instance for ShowImageTemplateList
3043
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowImageTemplateListRequest`
3044
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowImageTemplateListResponse`
3045
+ """
3046
+ http_info = self._show_image_template_list_http_info(request)
3047
+ return self._call_api(**http_info)
3048
+
3049
+ def show_image_template_list_invoker(self, request):
3050
+ http_info = self._show_image_template_list_http_info(request)
3051
+ return SyncInvoker(self, http_info)
3052
+
3053
+ @classmethod
3054
+ def _show_image_template_list_http_info(cls, request):
3055
+ http_info = {
3056
+ "method": "GET",
3057
+ "resource_path": "/v1/image/templates",
3058
+ "request_type": request.__class__.__name__,
3059
+ "response_type": "ShowImageTemplateListResponse"
3060
+ }
3061
+
3062
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3063
+
3064
+ cname = None
3065
+
3066
+ collection_formats = {}
3067
+
3068
+ path_params = {}
3069
+
3070
+ query_params = []
3071
+
3072
+ header_params = {}
3073
+
3074
+ form_params = {}
3075
+
3076
+ body = None
3077
+ if isinstance(request, SdkStreamRequest):
3078
+ body = request.get_file_stream()
3079
+
3080
+ response_headers = []
3081
+
3082
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3083
+ ['application/json'])
3084
+
3085
+ auth_settings = ['apig-auth-iam']
3086
+
3087
+ http_info["cname"] = cname
3088
+ http_info["collection_formats"] = collection_formats
3089
+ http_info["path_params"] = path_params
3090
+ http_info["query_params"] = query_params
3091
+ http_info["header_params"] = header_params
3092
+ http_info["post_params"] = form_params
3093
+ http_info["body"] = body
3094
+ http_info["response_headers"] = response_headers
3095
+
3096
+ return http_info
3097
+
3098
+ def apply_project_permission(self, request):
3099
+ r"""任务是否使用项目级权限
3100
+
3101
+ 任务是否使用项目级权限
3102
+
3103
+ Please refer to HUAWEI cloud API Explorer for details.
3104
+
3105
+ :param request: Request instance for ApplyProjectPermission
3106
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ApplyProjectPermissionRequest`
3107
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ApplyProjectPermissionResponse`
3108
+ """
3109
+ http_info = self._apply_project_permission_http_info(request)
3110
+ return self._call_api(**http_info)
3111
+
3112
+ def apply_project_permission_invoker(self, request):
3113
+ http_info = self._apply_project_permission_http_info(request)
3114
+ return SyncInvoker(self, http_info)
3115
+
3116
+ @classmethod
3117
+ def _apply_project_permission_http_info(cls, request):
3118
+ http_info = {
3119
+ "method": "POST",
3120
+ "resource_path": "/v1/job/project/permission",
3121
+ "request_type": request.__class__.__name__,
3122
+ "response_type": "ApplyProjectPermissionResponse"
3123
+ }
3124
+
3125
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3126
+
3127
+ cname = None
3128
+
3129
+ collection_formats = {}
3130
+
3131
+ path_params = {}
3132
+
3133
+ query_params = []
3134
+
3135
+ header_params = {}
3136
+
3137
+ form_params = {}
3138
+
3139
+ body = None
3140
+ if 'body' in local_var_params:
3141
+ body = local_var_params['body']
3142
+ if isinstance(request, SdkStreamRequest):
3143
+ body = request.get_file_stream()
3144
+
3145
+ response_headers = []
3146
+
3147
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3148
+ ['application/json'])
3149
+
3150
+ auth_settings = ['apig-auth-iam']
3151
+
3152
+ http_info["cname"] = cname
3153
+ http_info["collection_formats"] = collection_formats
3154
+ http_info["path_params"] = path_params
3155
+ http_info["query_params"] = query_params
3156
+ http_info["header_params"] = header_params
3157
+ http_info["post_params"] = form_params
3158
+ http_info["body"] = body
3159
+ http_info["response_headers"] = response_headers
3160
+
3161
+ return http_info
3162
+
3163
+ def batch_update_job_role_permission(self, request):
3164
+ r"""批量修改任务权限
3165
+
3166
+ 批量修改任务权限
3167
+
3168
+ Please refer to HUAWEI cloud API Explorer for details.
3169
+
3170
+ :param request: Request instance for BatchUpdateJobRolePermission
3171
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.BatchUpdateJobRolePermissionRequest`
3172
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.BatchUpdateJobRolePermissionResponse`
3173
+ """
3174
+ http_info = self._batch_update_job_role_permission_http_info(request)
3175
+ return self._call_api(**http_info)
3176
+
3177
+ def batch_update_job_role_permission_invoker(self, request):
3178
+ http_info = self._batch_update_job_role_permission_http_info(request)
3179
+ return SyncInvoker(self, http_info)
3180
+
3181
+ @classmethod
3182
+ def _batch_update_job_role_permission_http_info(cls, request):
3183
+ http_info = {
3184
+ "method": "POST",
3185
+ "resource_path": "/v1/job/permissions/batch",
3186
+ "request_type": request.__class__.__name__,
3187
+ "response_type": "BatchUpdateJobRolePermissionResponse"
3188
+ }
3189
+
3190
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3191
+
3192
+ cname = None
3193
+
3194
+ collection_formats = {}
3195
+
3196
+ path_params = {}
3197
+
3198
+ query_params = []
3199
+
3200
+ header_params = {}
3201
+
3202
+ form_params = {}
3203
+
3204
+ body = None
3205
+ if 'body' in local_var_params:
3206
+ body = local_var_params['body']
3207
+ if isinstance(request, SdkStreamRequest):
3208
+ body = request.get_file_stream()
3209
+
3210
+ response_headers = []
3211
+
3212
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3213
+ ['application/json'])
3214
+
3215
+ auth_settings = ['apig-auth-iam']
3216
+
3217
+ http_info["cname"] = cname
3218
+ http_info["collection_formats"] = collection_formats
3219
+ http_info["path_params"] = path_params
3220
+ http_info["query_params"] = query_params
3221
+ http_info["header_params"] = header_params
3222
+ http_info["post_params"] = form_params
3223
+ http_info["body"] = body
3224
+ http_info["response_headers"] = response_headers
3225
+
3226
+ return http_info
3227
+
3228
+ def check_job_count_is_top_limit(self, request):
3229
+ r"""检查任务数量是否上限
3230
+
3231
+ 检查任务数量是否上限
3232
+
3233
+ Please refer to HUAWEI cloud API Explorer for details.
3234
+
3235
+ :param request: Request instance for CheckJobCountIsTopLimit
3236
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobCountIsTopLimitRequest`
3237
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobCountIsTopLimitResponse`
3238
+ """
3239
+ http_info = self._check_job_count_is_top_limit_http_info(request)
3240
+ return self._call_api(**http_info)
3241
+
3242
+ def check_job_count_is_top_limit_invoker(self, request):
3243
+ http_info = self._check_job_count_is_top_limit_http_info(request)
3244
+ return SyncInvoker(self, http_info)
3245
+
3246
+ @classmethod
3247
+ def _check_job_count_is_top_limit_http_info(cls, request):
3248
+ http_info = {
3249
+ "method": "GET",
3250
+ "resource_path": "/v1/job/check/count",
3251
+ "request_type": request.__class__.__name__,
3252
+ "response_type": "CheckJobCountIsTopLimitResponse"
3253
+ }
3254
+
3255
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3256
+
3257
+ cname = None
3258
+
3259
+ collection_formats = {}
3260
+
3261
+ path_params = {}
3262
+
3263
+ query_params = []
3264
+
3265
+ header_params = {}
3266
+
3267
+ form_params = {}
3268
+
3269
+ body = None
3270
+ if isinstance(request, SdkStreamRequest):
3271
+ body = request.get_file_stream()
3272
+
3273
+ response_headers = []
3274
+
3275
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3276
+ ['application/json'])
3277
+
3278
+ auth_settings = ['apig-auth-iam']
3279
+
3280
+ http_info["cname"] = cname
3281
+ http_info["collection_formats"] = collection_formats
3282
+ http_info["path_params"] = path_params
3283
+ http_info["query_params"] = query_params
3284
+ http_info["header_params"] = header_params
3285
+ http_info["post_params"] = form_params
3286
+ http_info["body"] = body
3287
+ http_info["response_headers"] = response_headers
3288
+
3289
+ return http_info
3290
+
3291
+ def check_job_internal(self, request):
3292
+ r"""是否已开启内网安全访问
3293
+
3294
+ 是否已开启内网安全访问。
3295
+
3296
+ Please refer to HUAWEI cloud API Explorer for details.
3297
+
3298
+ :param request: Request instance for CheckJobInternal
3299
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobInternalRequest`
3300
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobInternalResponse`
3301
+ """
3302
+ http_info = self._check_job_internal_http_info(request)
3303
+ return self._call_api(**http_info)
3304
+
3305
+ def check_job_internal_invoker(self, request):
3306
+ http_info = self._check_job_internal_http_info(request)
3307
+ return SyncInvoker(self, http_info)
3308
+
3309
+ @classmethod
3310
+ def _check_job_internal_http_info(cls, request):
3311
+ http_info = {
3312
+ "method": "GET",
3313
+ "resource_path": "/v1/job/permission/internal",
3314
+ "request_type": request.__class__.__name__,
3315
+ "response_type": "CheckJobInternalResponse"
3316
+ }
3317
+
3318
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3319
+
3320
+ cname = None
3321
+
3322
+ collection_formats = {}
3323
+
3324
+ path_params = {}
3325
+
3326
+ query_params = []
3327
+
3328
+ header_params = {}
3329
+
3330
+ form_params = {}
3331
+
3332
+ body = None
3333
+ if isinstance(request, SdkStreamRequest):
3334
+ body = request.get_file_stream()
3335
+
3336
+ response_headers = []
3337
+
3338
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3339
+ ['application/json'])
3340
+
3341
+ auth_settings = ['apig-auth-iam']
3342
+
3343
+ http_info["cname"] = cname
3344
+ http_info["collection_formats"] = collection_formats
3345
+ http_info["path_params"] = path_params
3346
+ http_info["query_params"] = query_params
3347
+ http_info["header_params"] = header_params
3348
+ http_info["post_params"] = form_params
3349
+ http_info["body"] = body
3350
+ http_info["response_headers"] = response_headers
3351
+
3352
+ return http_info
3353
+
3354
+ def check_job_name_is_exists(self, request):
3355
+ r"""查看项目下任务名是否存在
3356
+
3357
+ 查看项目下任务名是否存在
3358
+
3359
+ Please refer to HUAWEI cloud API Explorer for details.
3360
+
3361
+ :param request: Request instance for CheckJobNameIsExists
3362
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobNameIsExistsRequest`
3363
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobNameIsExistsResponse`
3364
+ """
3365
+ http_info = self._check_job_name_is_exists_http_info(request)
3366
+ return self._call_api(**http_info)
3367
+
3368
+ def check_job_name_is_exists_invoker(self, request):
3369
+ http_info = self._check_job_name_is_exists_http_info(request)
3370
+ return SyncInvoker(self, http_info)
3371
+
3372
+ @classmethod
3373
+ def _check_job_name_is_exists_http_info(cls, request):
3374
+ http_info = {
3375
+ "method": "GET",
3376
+ "resource_path": "/v1/job/check/exist",
3377
+ "request_type": request.__class__.__name__,
3378
+ "response_type": "CheckJobNameIsExistsResponse"
3379
+ }
3380
+
3381
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3382
+
3383
+ cname = None
3384
+
3385
+ collection_formats = {}
3386
+
3387
+ path_params = {}
3388
+
3389
+ query_params = []
3390
+ if 'project_id' in local_var_params:
3391
+ query_params.append(('project_id', local_var_params['project_id']))
3392
+ if 'job_name' in local_var_params:
3393
+ query_params.append(('job_name', local_var_params['job_name']))
3394
+
3395
+ header_params = {}
3396
+
3397
+ form_params = {}
3398
+
3399
+ body = None
3400
+ if isinstance(request, SdkStreamRequest):
3401
+ body = request.get_file_stream()
3402
+
3403
+ response_headers = []
3404
+
3405
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3406
+ ['application/json'])
3407
+
3408
+ auth_settings = ['apig-auth-iam']
3409
+
3410
+ http_info["cname"] = cname
3411
+ http_info["collection_formats"] = collection_formats
3412
+ http_info["path_params"] = path_params
3413
+ http_info["query_params"] = query_params
3414
+ http_info["header_params"] = header_params
3415
+ http_info["post_params"] = form_params
3416
+ http_info["body"] = body
3417
+ http_info["response_headers"] = response_headers
3418
+
3419
+ return http_info
3420
+
3421
+ def check_webhook_url(self, request):
3422
+ r"""检查webhook地址参数
3423
+
3424
+ 检查webhook地址参数
3425
+
3426
+ Please refer to HUAWEI cloud API Explorer for details.
3427
+
3428
+ :param request: Request instance for CheckWebhookUrl
3429
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.CheckWebhookUrlRequest`
3430
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CheckWebhookUrlResponse`
3431
+ """
3432
+ http_info = self._check_webhook_url_http_info(request)
3433
+ return self._call_api(**http_info)
3434
+
3435
+ def check_webhook_url_invoker(self, request):
3436
+ http_info = self._check_webhook_url_http_info(request)
3437
+ return SyncInvoker(self, http_info)
3438
+
3439
+ @classmethod
3440
+ def _check_webhook_url_http_info(cls, request):
3441
+ http_info = {
3442
+ "method": "POST",
3443
+ "resource_path": "/v1/job/check/webhook-url",
3444
+ "request_type": request.__class__.__name__,
3445
+ "response_type": "CheckWebhookUrlResponse"
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
+
3458
+ header_params = {}
3459
+
3460
+ form_params = {}
3461
+
3462
+ body = None
3463
+ if 'body' in local_var_params:
3464
+ body = local_var_params['body']
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
+
3486
+ def clear_recycling_jobs(self, request):
3487
+ r"""清空回收站中的任务
3488
+
3489
+ 清空回收站中的任务
3490
+
3491
+ Please refer to HUAWEI cloud API Explorer for details.
3492
+
3493
+ :param request: Request instance for ClearRecyclingJobs
3494
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ClearRecyclingJobsRequest`
3495
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ClearRecyclingJobsResponse`
3496
+ """
3497
+ http_info = self._clear_recycling_jobs_http_info(request)
3498
+ return self._call_api(**http_info)
3499
+
3500
+ def clear_recycling_jobs_invoker(self, request):
3501
+ http_info = self._clear_recycling_jobs_http_info(request)
3502
+ return SyncInvoker(self, http_info)
3503
+
3504
+ @classmethod
3505
+ def _clear_recycling_jobs_http_info(cls, request):
3506
+ http_info = {
3507
+ "method": "DELETE",
3508
+ "resource_path": "/v1/job/recycling-empty",
3509
+ "request_type": request.__class__.__name__,
3510
+ "response_type": "ClearRecyclingJobsResponse"
3511
+ }
3512
+
3513
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3514
+
3515
+ cname = None
3516
+
3517
+ collection_formats = {}
3518
+
3519
+ path_params = {}
3520
+
3521
+ query_params = []
3522
+
3523
+ header_params = {}
3524
+
3525
+ form_params = {}
3526
+
3527
+ body = None
3528
+ if isinstance(request, SdkStreamRequest):
3529
+ body = request.get_file_stream()
3530
+
3531
+ response_headers = []
3532
+
3533
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3534
+ ['application/json'])
3535
+
3536
+ auth_settings = ['apig-auth-iam']
3537
+
3538
+ http_info["cname"] = cname
3539
+ http_info["collection_formats"] = collection_formats
3540
+ http_info["path_params"] = path_params
3541
+ http_info["query_params"] = query_params
3542
+ http_info["header_params"] = header_params
3543
+ http_info["post_params"] = form_params
3544
+ http_info["body"] = body
3545
+ http_info["response_headers"] = response_headers
3546
+
3547
+ return http_info
3548
+
3549
+ def copy_job(self, request):
3550
+ r"""复制构建任务
3551
+
3552
+ 复制构建任务
3553
+
3554
+ Please refer to HUAWEI cloud API Explorer for details.
3555
+
3556
+ :param request: Request instance for CopyJob
3557
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.CopyJobRequest`
3558
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CopyJobResponse`
3559
+ """
3560
+ http_info = self._copy_job_http_info(request)
3561
+ return self._call_api(**http_info)
3562
+
3563
+ def copy_job_invoker(self, request):
3564
+ http_info = self._copy_job_http_info(request)
3565
+ return SyncInvoker(self, http_info)
3566
+
3567
+ @classmethod
3568
+ def _copy_job_http_info(cls, request):
3569
+ http_info = {
3570
+ "method": "POST",
3571
+ "resource_path": "/v1/job/copy",
3572
+ "request_type": request.__class__.__name__,
3573
+ "response_type": "CopyJobResponse"
3574
+ }
3575
+
3576
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3577
+
3578
+ cname = None
3579
+
3580
+ collection_formats = {}
3581
+
3582
+ path_params = {}
3583
+
3584
+ query_params = []
3585
+
3586
+ header_params = {}
3587
+
3588
+ form_params = {}
3589
+
3590
+ body = None
3591
+ if 'body' in local_var_params:
3592
+ body = local_var_params['body']
3593
+ if isinstance(request, SdkStreamRequest):
3594
+ body = request.get_file_stream()
3595
+
3596
+ response_headers = []
3597
+
3598
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3599
+ ['application/json'])
3600
+
3601
+ auth_settings = ['apig-auth-iam']
3602
+
3603
+ http_info["cname"] = cname
3604
+ http_info["collection_formats"] = collection_formats
3605
+ http_info["path_params"] = path_params
3606
+ http_info["query_params"] = query_params
3607
+ http_info["header_params"] = header_params
3608
+ http_info["post_params"] = form_params
3609
+ http_info["body"] = body
3610
+ http_info["response_headers"] = response_headers
3611
+
3612
+ return http_info
3613
+
3614
+ def create_new_job(self, request):
3615
+ r"""创建构建任务
3616
+
3617
+ 创建构建任务
3618
+
3619
+ Please refer to HUAWEI cloud API Explorer for details.
3620
+
3621
+ :param request: Request instance for CreateNewJob
2704
3622
  :type request: :class:`huaweicloudsdkcodeartsbuild.v3.CreateNewJobRequest`
2705
3623
  :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CreateNewJobResponse`
2706
3624
  """
@@ -3087,6 +4005,75 @@ class CodeArtsBuildClient(Client):
3087
4005
 
3088
4006
  return http_info
3089
4007
 
4008
+ def list_end_points(self, request):
4009
+ r"""查询私有依赖仓库列表
4010
+
4011
+ 查询私有依赖仓库列表
4012
+
4013
+ Please refer to HUAWEI cloud API Explorer for details.
4014
+
4015
+ :param request: Request instance for ListEndPoints
4016
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListEndPointsRequest`
4017
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListEndPointsResponse`
4018
+ """
4019
+ http_info = self._list_end_points_http_info(request)
4020
+ return self._call_api(**http_info)
4021
+
4022
+ def list_end_points_invoker(self, request):
4023
+ http_info = self._list_end_points_http_info(request)
4024
+ return SyncInvoker(self, http_info)
4025
+
4026
+ @classmethod
4027
+ def _list_end_points_http_info(cls, request):
4028
+ http_info = {
4029
+ "method": "GET",
4030
+ "resource_path": "/v1/job/{project_id}/nexus",
4031
+ "request_type": request.__class__.__name__,
4032
+ "response_type": "ListEndPointsResponse"
4033
+ }
4034
+
4035
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
4036
+
4037
+ cname = None
4038
+
4039
+ collection_formats = {}
4040
+
4041
+ path_params = {}
4042
+ if 'project_id' in local_var_params:
4043
+ path_params['project_id'] = local_var_params['project_id']
4044
+
4045
+ query_params = []
4046
+ if 'limit' in local_var_params:
4047
+ query_params.append(('limit', local_var_params['limit']))
4048
+ if 'offset' in local_var_params:
4049
+ query_params.append(('offset', local_var_params['offset']))
4050
+
4051
+ header_params = {}
4052
+
4053
+ form_params = {}
4054
+
4055
+ body = None
4056
+ if isinstance(request, SdkStreamRequest):
4057
+ body = request.get_file_stream()
4058
+
4059
+ response_headers = []
4060
+
4061
+ header_params['Content-Type'] = http_utils.select_header_content_type(
4062
+ ['application/json'])
4063
+
4064
+ auth_settings = ['apig-auth-iam']
4065
+
4066
+ http_info["cname"] = cname
4067
+ http_info["collection_formats"] = collection_formats
4068
+ http_info["path_params"] = path_params
4069
+ http_info["query_params"] = query_params
4070
+ http_info["header_params"] = header_params
4071
+ http_info["post_params"] = form_params
4072
+ http_info["body"] = body
4073
+ http_info["response_headers"] = response_headers
4074
+
4075
+ return http_info
4076
+
3090
4077
  def list_job(self, request):
3091
4078
  r"""查看用户全部的构建任务列表
3092
4079
 
@@ -3515,6 +4502,73 @@ class CodeArtsBuildClient(Client):
3515
4502
 
3516
4503
  return http_info
3517
4504
 
4505
+ def show_build_details(self, request):
4506
+ r"""根据持续构建名称,获取任务构建状态、百分比、剩余时间
4507
+
4508
+ 根据持续构建名称,获取任务构建状态、百分比、剩余时间
4509
+
4510
+ Please refer to HUAWEI cloud API Explorer for details.
4511
+
4512
+ :param request: Request instance for ShowBuildDetails
4513
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildDetailsRequest`
4514
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildDetailsResponse`
4515
+ """
4516
+ http_info = self._show_build_details_http_info(request)
4517
+ return self._call_api(**http_info)
4518
+
4519
+ def show_build_details_invoker(self, request):
4520
+ http_info = self._show_build_details_http_info(request)
4521
+ return SyncInvoker(self, http_info)
4522
+
4523
+ @classmethod
4524
+ def _show_build_details_http_info(cls, request):
4525
+ http_info = {
4526
+ "method": "GET",
4527
+ "resource_path": "/v1/job/{job_id}/{build_no}/build-info",
4528
+ "request_type": request.__class__.__name__,
4529
+ "response_type": "ShowBuildDetailsResponse"
4530
+ }
4531
+
4532
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
4533
+
4534
+ cname = None
4535
+
4536
+ collection_formats = {}
4537
+
4538
+ path_params = {}
4539
+ if 'job_id' in local_var_params:
4540
+ path_params['job_id'] = local_var_params['job_id']
4541
+ if 'build_no' in local_var_params:
4542
+ path_params['build_no'] = local_var_params['build_no']
4543
+
4544
+ query_params = []
4545
+
4546
+ header_params = {}
4547
+
4548
+ form_params = {}
4549
+
4550
+ body = None
4551
+ if isinstance(request, SdkStreamRequest):
4552
+ body = request.get_file_stream()
4553
+
4554
+ response_headers = []
4555
+
4556
+ header_params['Content-Type'] = http_utils.select_header_content_type(
4557
+ ['application/json'])
4558
+
4559
+ auth_settings = ['apig-auth-iam']
4560
+
4561
+ http_info["cname"] = cname
4562
+ http_info["collection_formats"] = collection_formats
4563
+ http_info["path_params"] = path_params
4564
+ http_info["query_params"] = query_params
4565
+ http_info["header_params"] = header_params
4566
+ http_info["post_params"] = form_params
4567
+ http_info["body"] = body
4568
+ http_info["response_headers"] = response_headers
4569
+
4570
+ return http_info
4571
+
3518
4572
  def show_build_params_list(self, request):
3519
4573
  r"""编辑页获取参数类型的接口
3520
4574
 
@@ -3713,24 +4767,91 @@ class CodeArtsBuildClient(Client):
3713
4767
 
3714
4768
  Please refer to HUAWEI cloud API Explorer for details.
3715
4769
 
3716
- :param request: Request instance for ShowDefaultProjectPermission
3717
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDefaultProjectPermissionRequest`
3718
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDefaultProjectPermissionResponse`
4770
+ :param request: Request instance for ShowDefaultProjectPermission
4771
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDefaultProjectPermissionRequest`
4772
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDefaultProjectPermissionResponse`
4773
+ """
4774
+ http_info = self._show_default_project_permission_http_info(request)
4775
+ return self._call_api(**http_info)
4776
+
4777
+ def show_default_project_permission_invoker(self, request):
4778
+ http_info = self._show_default_project_permission_http_info(request)
4779
+ return SyncInvoker(self, http_info)
4780
+
4781
+ @classmethod
4782
+ def _show_default_project_permission_http_info(cls, request):
4783
+ http_info = {
4784
+ "method": "GET",
4785
+ "resource_path": "/v1/job/project/default-permission",
4786
+ "request_type": request.__class__.__name__,
4787
+ "response_type": "ShowDefaultProjectPermissionResponse"
4788
+ }
4789
+
4790
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
4791
+
4792
+ cname = None
4793
+
4794
+ collection_formats = {}
4795
+
4796
+ path_params = {}
4797
+
4798
+ query_params = []
4799
+ if 'project_id' in local_var_params:
4800
+ query_params.append(('project_id', local_var_params['project_id']))
4801
+ if 'job_id' in local_var_params:
4802
+ query_params.append(('job_id', local_var_params['job_id']))
4803
+
4804
+ header_params = {}
4805
+
4806
+ form_params = {}
4807
+
4808
+ body = None
4809
+ if isinstance(request, SdkStreamRequest):
4810
+ body = request.get_file_stream()
4811
+
4812
+ response_headers = []
4813
+
4814
+ header_params['Content-Type'] = http_utils.select_header_content_type(
4815
+ ['application/json'])
4816
+
4817
+ auth_settings = ['apig-auth-iam']
4818
+
4819
+ http_info["cname"] = cname
4820
+ http_info["collection_formats"] = collection_formats
4821
+ http_info["path_params"] = path_params
4822
+ http_info["query_params"] = query_params
4823
+ http_info["header_params"] = header_params
4824
+ http_info["post_params"] = form_params
4825
+ http_info["body"] = body
4826
+ http_info["response_headers"] = response_headers
4827
+
4828
+ return http_info
4829
+
4830
+ def show_disable(self, request):
4831
+ r"""查询任务是否已禁用
4832
+
4833
+ 查询任务是否已禁用
4834
+
4835
+ Please refer to HUAWEI cloud API Explorer for details.
4836
+
4837
+ :param request: Request instance for ShowDisable
4838
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDisableRequest`
4839
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDisableResponse`
3719
4840
  """
3720
- http_info = self._show_default_project_permission_http_info(request)
4841
+ http_info = self._show_disable_http_info(request)
3721
4842
  return self._call_api(**http_info)
3722
4843
 
3723
- def show_default_project_permission_invoker(self, request):
3724
- http_info = self._show_default_project_permission_http_info(request)
4844
+ def show_disable_invoker(self, request):
4845
+ http_info = self._show_disable_http_info(request)
3725
4846
  return SyncInvoker(self, http_info)
3726
4847
 
3727
4848
  @classmethod
3728
- def _show_default_project_permission_http_info(cls, request):
4849
+ def _show_disable_http_info(cls, request):
3729
4850
  http_info = {
3730
4851
  "method": "GET",
3731
- "resource_path": "/v1/job/project/default-permission",
4852
+ "resource_path": "/v1/job/{job_id}/check/disable",
3732
4853
  "request_type": request.__class__.__name__,
3733
- "response_type": "ShowDefaultProjectPermissionResponse"
4854
+ "response_type": "ShowDisableResponse"
3734
4855
  }
3735
4856
 
3736
4857
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -3740,12 +4861,10 @@ class CodeArtsBuildClient(Client):
3740
4861
  collection_formats = {}
3741
4862
 
3742
4863
  path_params = {}
4864
+ if 'job_id' in local_var_params:
4865
+ path_params['job_id'] = local_var_params['job_id']
3743
4866
 
3744
4867
  query_params = []
3745
- if 'project_id' in local_var_params:
3746
- query_params.append(('project_id', local_var_params['project_id']))
3747
- if 'job_id' in local_var_params:
3748
- query_params.append(('job_id', local_var_params['job_id']))
3749
4868
 
3750
4869
  header_params = {}
3751
4870
 
@@ -3773,31 +4892,31 @@ class CodeArtsBuildClient(Client):
3773
4892
 
3774
4893
  return http_info
3775
4894
 
3776
- def show_disable(self, request):
3777
- r"""查询任务是否已禁用
4895
+ def show_domains_statuses(self, request):
4896
+ r"""查询跨租户场景下其他租户的状态
3778
4897
 
3779
- 查询任务是否已禁用
4898
+ 查询跨租户场景下其他租户的状态
3780
4899
 
3781
4900
  Please refer to HUAWEI cloud API Explorer for details.
3782
4901
 
3783
- :param request: Request instance for ShowDisable
3784
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDisableRequest`
3785
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDisableResponse`
4902
+ :param request: Request instance for ShowDomainsStatuses
4903
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDomainsStatusesRequest`
4904
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDomainsStatusesResponse`
3786
4905
  """
3787
- http_info = self._show_disable_http_info(request)
4906
+ http_info = self._show_domains_statuses_http_info(request)
3788
4907
  return self._call_api(**http_info)
3789
4908
 
3790
- def show_disable_invoker(self, request):
3791
- http_info = self._show_disable_http_info(request)
4909
+ def show_domains_statuses_invoker(self, request):
4910
+ http_info = self._show_domains_statuses_http_info(request)
3792
4911
  return SyncInvoker(self, http_info)
3793
4912
 
3794
4913
  @classmethod
3795
- def _show_disable_http_info(cls, request):
4914
+ def _show_domains_statuses_http_info(cls, request):
3796
4915
  http_info = {
3797
- "method": "GET",
3798
- "resource_path": "/v1/job/{job_id}/check/disable",
4916
+ "method": "POST",
4917
+ "resource_path": "/v1/domain/domains-statuses",
3799
4918
  "request_type": request.__class__.__name__,
3800
- "response_type": "ShowDisableResponse"
4919
+ "response_type": "ShowDomainsStatusesResponse"
3801
4920
  }
3802
4921
 
3803
4922
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -3807,8 +4926,6 @@ class CodeArtsBuildClient(Client):
3807
4926
  collection_formats = {}
3808
4927
 
3809
4928
  path_params = {}
3810
- if 'job_id' in local_var_params:
3811
- path_params['job_id'] = local_var_params['job_id']
3812
4929
 
3813
4930
  query_params = []
3814
4931
 
@@ -3817,6 +4934,8 @@ class CodeArtsBuildClient(Client):
3817
4934
  form_params = {}
3818
4935
 
3819
4936
  body = None
4937
+ if 'body' in local_var_params:
4938
+ body = local_var_params['body']
3820
4939
  if isinstance(request, SdkStreamRequest):
3821
4940
  body = request.get_file_stream()
3822
4941
 
@@ -4632,6 +5751,73 @@ class CodeArtsBuildClient(Client):
4632
5751
 
4633
5752
  return http_info
4634
5753
 
5754
+ def update_new_notice_new(self, request):
5755
+ r"""更新通知配置
5756
+
5757
+ 更新通知配置。
5758
+
5759
+ Please refer to HUAWEI cloud API Explorer for details.
5760
+
5761
+ :param request: Request instance for UpdateNewNoticeNew
5762
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateNewNoticeNewRequest`
5763
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateNewNoticeNewResponse`
5764
+ """
5765
+ http_info = self._update_new_notice_new_http_info(request)
5766
+ return self._call_api(**http_info)
5767
+
5768
+ def update_new_notice_new_invoker(self, request):
5769
+ http_info = self._update_new_notice_new_http_info(request)
5770
+ return SyncInvoker(self, http_info)
5771
+
5772
+ @classmethod
5773
+ def _update_new_notice_new_http_info(cls, request):
5774
+ http_info = {
5775
+ "method": "PUT",
5776
+ "resource_path": "/v1/job/{job_id}/notice",
5777
+ "request_type": request.__class__.__name__,
5778
+ "response_type": "UpdateNewNoticeNewResponse"
5779
+ }
5780
+
5781
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
5782
+
5783
+ cname = None
5784
+
5785
+ collection_formats = {}
5786
+
5787
+ path_params = {}
5788
+ if 'job_id' in local_var_params:
5789
+ path_params['job_id'] = local_var_params['job_id']
5790
+
5791
+ query_params = []
5792
+
5793
+ header_params = {}
5794
+
5795
+ form_params = {}
5796
+
5797
+ body = None
5798
+ if 'body' in local_var_params:
5799
+ body = local_var_params['body']
5800
+ if isinstance(request, SdkStreamRequest):
5801
+ body = request.get_file_stream()
5802
+
5803
+ response_headers = []
5804
+
5805
+ header_params['Content-Type'] = http_utils.select_header_content_type(
5806
+ ['application/json'])
5807
+
5808
+ auth_settings = ['apig-auth-iam']
5809
+
5810
+ http_info["cname"] = cname
5811
+ http_info["collection_formats"] = collection_formats
5812
+ http_info["path_params"] = path_params
5813
+ http_info["query_params"] = query_params
5814
+ http_info["header_params"] = header_params
5815
+ http_info["post_params"] = form_params
5816
+ http_info["body"] = body
5817
+ http_info["response_headers"] = response_headers
5818
+
5819
+ return http_info
5820
+
4635
5821
  def add_keystore_permission(self, request):
4636
5822
  r"""添加文件权限
4637
5823
 
@@ -6726,6 +7912,71 @@ class CodeArtsBuildClient(Client):
6726
7912
 
6727
7913
  return http_info
6728
7914
 
7915
+ def add_favourite_custom_template(self, request):
7916
+ r"""收藏自定义模板
7917
+
7918
+ 收藏自定义模板
7919
+
7920
+ Please refer to HUAWEI cloud API Explorer for details.
7921
+
7922
+ :param request: Request instance for AddFavouriteCustomTemplate
7923
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.AddFavouriteCustomTemplateRequest`
7924
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.AddFavouriteCustomTemplateResponse`
7925
+ """
7926
+ http_info = self._add_favourite_custom_template_http_info(request)
7927
+ return self._call_api(**http_info)
7928
+
7929
+ def add_favourite_custom_template_invoker(self, request):
7930
+ http_info = self._add_favourite_custom_template_http_info(request)
7931
+ return SyncInvoker(self, http_info)
7932
+
7933
+ @classmethod
7934
+ def _add_favourite_custom_template_http_info(cls, request):
7935
+ http_info = {
7936
+ "method": "POST",
7937
+ "resource_path": "/v1/template/custom/{uuid}/follow",
7938
+ "request_type": request.__class__.__name__,
7939
+ "response_type": "AddFavouriteCustomTemplateResponse"
7940
+ }
7941
+
7942
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
7943
+
7944
+ cname = None
7945
+
7946
+ collection_formats = {}
7947
+
7948
+ path_params = {}
7949
+ if 'uuid' in local_var_params:
7950
+ path_params['uuid'] = local_var_params['uuid']
7951
+
7952
+ query_params = []
7953
+
7954
+ header_params = {}
7955
+
7956
+ form_params = {}
7957
+
7958
+ body = None
7959
+ if isinstance(request, SdkStreamRequest):
7960
+ body = request.get_file_stream()
7961
+
7962
+ response_headers = []
7963
+
7964
+ header_params['Content-Type'] = http_utils.select_header_content_type(
7965
+ ['application/json'])
7966
+
7967
+ auth_settings = ['apig-auth-iam']
7968
+
7969
+ http_info["cname"] = cname
7970
+ http_info["collection_formats"] = collection_formats
7971
+ http_info["path_params"] = path_params
7972
+ http_info["query_params"] = query_params
7973
+ http_info["header_params"] = header_params
7974
+ http_info["post_params"] = form_params
7975
+ http_info["body"] = body
7976
+ http_info["response_headers"] = response_headers
7977
+
7978
+ return http_info
7979
+
6729
7980
  def create_template(self, request):
6730
7981
  r"""创建构建模板
6731
7982
 
@@ -7063,6 +8314,71 @@ class CodeArtsBuildClient(Client):
7063
8314
 
7064
8315
  return http_info
7065
8316
 
8317
+ def remover_favourite_custom_template(self, request):
8318
+ r"""取消收藏自定义模板
8319
+
8320
+ 取消收藏自定义模板
8321
+
8322
+ Please refer to HUAWEI cloud API Explorer for details.
8323
+
8324
+ :param request: Request instance for RemoverFavouriteCustomTemplate
8325
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.RemoverFavouriteCustomTemplateRequest`
8326
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.RemoverFavouriteCustomTemplateResponse`
8327
+ """
8328
+ http_info = self._remover_favourite_custom_template_http_info(request)
8329
+ return self._call_api(**http_info)
8330
+
8331
+ def remover_favourite_custom_template_invoker(self, request):
8332
+ http_info = self._remover_favourite_custom_template_http_info(request)
8333
+ return SyncInvoker(self, http_info)
8334
+
8335
+ @classmethod
8336
+ def _remover_favourite_custom_template_http_info(cls, request):
8337
+ http_info = {
8338
+ "method": "POST",
8339
+ "resource_path": "/v1/template/custom/{uuid}/unfollow",
8340
+ "request_type": request.__class__.__name__,
8341
+ "response_type": "RemoverFavouriteCustomTemplateResponse"
8342
+ }
8343
+
8344
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
8345
+
8346
+ cname = None
8347
+
8348
+ collection_formats = {}
8349
+
8350
+ path_params = {}
8351
+ if 'uuid' in local_var_params:
8352
+ path_params['uuid'] = local_var_params['uuid']
8353
+
8354
+ query_params = []
8355
+
8356
+ header_params = {}
8357
+
8358
+ form_params = {}
8359
+
8360
+ body = None
8361
+ if isinstance(request, SdkStreamRequest):
8362
+ body = request.get_file_stream()
8363
+
8364
+ response_headers = []
8365
+
8366
+ header_params['Content-Type'] = http_utils.select_header_content_type(
8367
+ ['application/json'])
8368
+
8369
+ auth_settings = ['apig-auth-iam']
8370
+
8371
+ http_info["cname"] = cname
8372
+ http_info["collection_formats"] = collection_formats
8373
+ http_info["path_params"] = path_params
8374
+ http_info["query_params"] = query_params
8375
+ http_info["header_params"] = header_params
8376
+ http_info["post_params"] = form_params
8377
+ http_info["body"] = body
8378
+ http_info["response_headers"] = response_headers
8379
+
8380
+ return http_info
8381
+
7066
8382
  def save_template_used_info(self, request):
7067
8383
  r"""保存模板使用记录
7068
8384
 
@@ -7128,6 +8444,71 @@ class CodeArtsBuildClient(Client):
7128
8444
 
7129
8445
  return http_info
7130
8446
 
8447
+ def show_template(self, request):
8448
+ r"""根据模板uuid查询特定模板
8449
+
8450
+ 根据模板uuid查询特定模板
8451
+
8452
+ Please refer to HUAWEI cloud API Explorer for details.
8453
+
8454
+ :param request: Request instance for ShowTemplate
8455
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowTemplateRequest`
8456
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowTemplateResponse`
8457
+ """
8458
+ http_info = self._show_template_http_info(request)
8459
+ return self._call_api(**http_info)
8460
+
8461
+ def show_template_invoker(self, request):
8462
+ http_info = self._show_template_http_info(request)
8463
+ return SyncInvoker(self, http_info)
8464
+
8465
+ @classmethod
8466
+ def _show_template_http_info(cls, request):
8467
+ http_info = {
8468
+ "method": "GET",
8469
+ "resource_path": "/v1/template/{uuid}/custom",
8470
+ "request_type": request.__class__.__name__,
8471
+ "response_type": "ShowTemplateResponse"
8472
+ }
8473
+
8474
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
8475
+
8476
+ cname = None
8477
+
8478
+ collection_formats = {}
8479
+
8480
+ path_params = {}
8481
+ if 'uuid' in local_var_params:
8482
+ path_params['uuid'] = local_var_params['uuid']
8483
+
8484
+ query_params = []
8485
+
8486
+ header_params = {}
8487
+
8488
+ form_params = {}
8489
+
8490
+ body = None
8491
+ if isinstance(request, SdkStreamRequest):
8492
+ body = request.get_file_stream()
8493
+
8494
+ response_headers = []
8495
+
8496
+ header_params['Content-Type'] = http_utils.select_header_content_type(
8497
+ ['application/json'])
8498
+
8499
+ auth_settings = ['apig-auth-iam']
8500
+
8501
+ http_info["cname"] = cname
8502
+ http_info["collection_formats"] = collection_formats
8503
+ http_info["path_params"] = path_params
8504
+ http_info["query_params"] = query_params
8505
+ http_info["header_params"] = header_params
8506
+ http_info["post_params"] = form_params
8507
+ http_info["body"] = body
8508
+ http_info["response_headers"] = response_headers
8509
+
8510
+ return http_info
8511
+
7131
8512
  def show_yaml_template(self, request):
7132
8513
  r"""获取代码化构建默认模板
7133
8514